054e33ea47bc9627f156d6ddf7a5488fea26376f
[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.20\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-09-26 22:40+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:324 ../tools/virt-resize.pl:329 ../tools/virt-resize.pl:339
723 msgid "*"
724 msgstr ""
725
726 # type: textblock
727 #: ../src/guestfs.pod:347
728 msgid ""
729 "The kernel version that the command runs under will be different from what "
730 "it expects."
731 msgstr ""
732
733 # type: textblock
734 #: ../src/guestfs.pod:352
735 msgid ""
736 "If the command needs to communicate with daemons, then most likely they "
737 "won't be running."
738 msgstr ""
739
740 # type: textblock
741 #: ../src/guestfs.pod:357
742 msgid "The command will be running in limited memory."
743 msgstr ""
744
745 # type: textblock
746 #: ../src/guestfs.pod:361
747 msgid ""
748 "The network may not be available unless you enable it (see "
749 "L</guestfs_set_network>)."
750 msgstr ""
751
752 # type: textblock
753 #: ../src/guestfs.pod:366
754 msgid "Only supports Linux guests (not Windows, BSD, etc)."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:370
759 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
760 msgstr ""
761
762 # type: textblock
763 #: ../src/guestfs.pod:375
764 msgid ""
765 "For SELinux guests, you may need to enable SELinux and load policy first.  "
766 "See L</SELINUX> in this manpage."
767 msgstr ""
768
769 # type: textblock
770 #: ../src/guestfs.pod:380
771 msgid ""
772 "The two main API calls to run commands are L</guestfs_command> and "
773 "L</guestfs_sh> (there are also variations)."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:383
778 msgid ""
779 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
780 "shell globs, redirections, etc will work."
781 msgstr ""
782
783 # type: =head2
784 #: ../src/guestfs.pod:386
785 msgid "CONFIGURATION FILES"
786 msgstr ""
787
788 # type: textblock
789 #: ../src/guestfs.pod:388
790 msgid ""
791 "To read and write configuration files in Linux guest filesystems, we "
792 "strongly recommend using Augeas.  For example, Augeas understands how to "
793 "read and write, say, a Linux shadow password file or X.org configuration "
794 "file, and so avoids you having to write that code."
795 msgstr ""
796
797 # type: textblock
798 #: ../src/guestfs.pod:393
799 msgid ""
800 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
801 "document Augeas itself here because there is excellent documentation on the "
802 "L<http://augeas.net/> website."
803 msgstr ""
804
805 # type: textblock
806 #: ../src/guestfs.pod:397
807 msgid ""
808 "If you don't want to use Augeas (you fool!) then try calling "
809 "L</guestfs_read_lines> to get the file as a list of lines which you can "
810 "iterate over."
811 msgstr ""
812
813 # type: =head2
814 #: ../src/guestfs.pod:401
815 msgid "SELINUX"
816 msgstr ""
817
818 # type: textblock
819 #: ../src/guestfs.pod:403
820 msgid ""
821 "We support SELinux guests.  To ensure that labeling happens correctly in "
822 "SELinux guests, you need to enable SELinux and load the guest's policy:"
823 msgstr ""
824
825 # type: =item
826 #: ../src/guestfs.pod:409
827 msgid "1."
828 msgstr ""
829
830 # type: textblock
831 #: ../src/guestfs.pod:411
832 msgid "Before launching, do:"
833 msgstr ""
834
835 # type: verbatim
836 #: ../src/guestfs.pod:413
837 #, no-wrap
838 msgid ""
839 " guestfs_set_selinux (g, 1);\n"
840 "\n"
841 msgstr ""
842
843 # type: =item
844 #: ../src/guestfs.pod:415
845 msgid "2."
846 msgstr ""
847
848 # type: textblock
849 #: ../src/guestfs.pod:417
850 msgid ""
851 "After mounting the guest's filesystem(s), load the policy.  This is best "
852 "done by running the L<load_policy(8)> command in the guest itself:"
853 msgstr ""
854
855 # type: verbatim
856 #: ../src/guestfs.pod:421
857 #, no-wrap
858 msgid ""
859 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
860 "\n"
861 msgstr ""
862
863 # type: textblock
864 #: ../src/guestfs.pod:423
865 msgid ""
866 "(Older versions of C<load_policy> require you to specify the name of the "
867 "policy file)."
868 msgstr ""
869
870 # type: =item
871 #: ../src/guestfs.pod:426
872 msgid "3."
873 msgstr ""
874
875 # type: textblock
876 #: ../src/guestfs.pod:428
877 msgid ""
878 "Optionally, set the security context for the API.  The correct security "
879 "context to use can only be known by inspecting the guest.  As an example:"
880 msgstr ""
881
882 # type: verbatim
883 #: ../src/guestfs.pod:432
884 #, no-wrap
885 msgid ""
886 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
887 "\n"
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:436
892 msgid "This will work for running commands and editing existing files."
893 msgstr ""
894
895 # type: textblock
896 #: ../src/guestfs.pod:438
897 msgid ""
898 "When new files are created, you may need to label them explicitly, for "
899 "example by running the external command C<restorecon pathname>."
900 msgstr ""
901
902 # type: =head2
903 #: ../src/guestfs.pod:442
904 msgid "UMASK"
905 msgstr ""
906
907 # type: textblock
908 #: ../src/guestfs.pod:444
909 msgid ""
910 "Certain calls are affected by the current file mode creation mask (the "
911 "\"umask\").  In particular ones which create files or directories, such as "
912 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
913 "either the default mode that the file is created with or modifies the mode "
914 "that you supply."
915 msgstr ""
916
917 # type: textblock
918 #: ../src/guestfs.pod:450
919 msgid ""
920 "The default umask is C<022>, so files are created with modes such as C<0644> "
921 "and directories with C<0755>."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:453
926 msgid ""
927 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
928 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
929 "L</guestfs_chmod> after creating each file or directory."
930 msgstr ""
931
932 # type: textblock
933 #: ../src/guestfs.pod:457
934 msgid "For more information about umask, see L<umask(2)>."
935 msgstr ""
936
937 # type: =head1
938 #: ../src/guestfs.pod:459 ../fish/guestfish.pod: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:846 ../tools/virt-edit.pl:325 ../tools/virt-win-reg.pl:461 ../tools/virt-df.pl:536 ../tools/virt-ls.pl:210 ../tools/virt-resize.pl:1390 ../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
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:476 ../tools/virt-make-fs.pl:541
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:855
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:861 ../tools/virt-edit.pl:341 ../tools/virt-win-reg.pl:491 ../tools/virt-df.pl:549 ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1411 ../tools/virt-list-filesystems.pl:207 ../tools/virt-cat.pl:177 ../tools/virt-tar.pl:272 ../tools/virt-rescue.pl:245 ../tools/virt-make-fs.pl:556 ../tools/virt-list-partitions.pl:244
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:3847 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3882 ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4153 ../src/guestfs-actions.pod:4164 ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4193 ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4235 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4351 ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4381 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4671 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4786 ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:4825 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4855 ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4917 ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4957 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4981 ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5084 ../src/guestfs-actions.pod:5099 ../src/guestfs-actions.pod:5125 ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5403 ../src/guestfs-actions.pod:5445 ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5541 ../src/guestfs-actions.pod:5567
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:3941 ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5413 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5433
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:3919 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4123 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5385 ../src/guestfs-actions.pod:5615
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:3896 ../src/guestfs-actions.pod:4005 ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:4660 ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:5298 ../src/guestfs-actions.pod:5315 ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5489 ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5578 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5650
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:3995 ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:3085
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:3943 ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:4713 ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:4902 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:648 ../fish/guestfish-actions.pod:660 ../fish/guestfish-actions.pod:861 ../fish/guestfish-actions.pod:871 ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:948 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:1428 ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:1471 ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:2970 ../fish/guestfish-actions.pod:3046 ../fish/guestfish-actions.pod:3063 ../fish/guestfish-actions.pod:3078 ../fish/guestfish-actions.pod:3661 ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3792 ../fish/guestfish-actions.pod:3807 ../fish/guestfish-actions.pod:4217 ../fish/guestfish-actions.pod:4235 ../fish/guestfish-actions.pod:4252 ../fish/guestfish-actions.pod:4262 ../fish/guestfish-actions.pod:4310 ../fish/guestfish-actions.pod:4320 ../fish/guestfish-actions.pod:4349 ../fish/guestfish-actions.pod:4359
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:5527 ../src/guestfs-actions.pod:5543
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:5095 ../fish/guestfish-actions.pod:779 ../fish/guestfish-actions.pod:3965
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:5476 ../src/guestfs-actions.pod:5621 ../fish/guestfish-actions.pod:907 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1278 ../fish/guestfish-actions.pod:4241 ../fish/guestfish-actions.pod:4338
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:4348 ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:1293 ../fish/guestfish-actions.pod:1344 ../fish/guestfish-actions.pod:3372 ../fish/guestfish-actions.pod:3459
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:4896 ../fish/guestfish-actions.pod:1469 ../fish/guestfish-actions.pod:3805
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:3983
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:5013
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:4678 ../fish/guestfish-actions.pod:2101 ../fish/guestfish-actions.pod:3640
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:4682
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:4219 ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:2168 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2767 ../fish/guestfish-actions.pod:3259 ../fish/guestfish-actions.pod:3539 ../fish/guestfish-actions.pod:3555 ../fish/guestfish-actions.pod:3570 ../fish/guestfish-actions.pod:4285
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 ../fish/guestfish-actions.pod:2965
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 ../src/guestfs-actions.pod:3962
10357 msgid "See also C<guestfs_pwrite>."
10358 msgstr ""
10359
10360 # type: =head2
10361 #: ../src/guestfs-actions.pod:3838
10362 msgid "guestfs_pvcreate"
10363 msgstr ""
10364
10365 # type: verbatim
10366 #: ../src/guestfs-actions.pod:3840
10367 #, no-wrap
10368 msgid ""
10369 " int guestfs_pvcreate (guestfs_h *g,\n"
10370 "\t\tconst char *device);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2977
10376 msgid ""
10377 "This creates an LVM physical volume on the named C<device>, where C<device> "
10378 "should usually be a partition name such as C</dev/sda1>."
10379 msgstr ""
10380
10381 # type: =head2
10382 #: ../src/guestfs-actions.pod:3849
10383 msgid "guestfs_pvremove"
10384 msgstr ""
10385
10386 # type: verbatim
10387 #: ../src/guestfs-actions.pod:3851
10388 #, no-wrap
10389 msgid ""
10390 " int guestfs_pvremove (guestfs_h *g,\n"
10391 "\t\tconst char *device);\n"
10392 "\n"
10393 msgstr ""
10394
10395 # type: textblock
10396 #: ../src/guestfs-actions.pod:3854 ../fish/guestfish-actions.pod:2985
10397 msgid ""
10398 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10399 "it."
10400 msgstr ""
10401
10402 # type: textblock
10403 #: ../src/guestfs-actions.pod:3857 ../fish/guestfish-actions.pod:2988
10404 msgid ""
10405 "The implementation uses the C<pvremove> command which refuses to wipe "
10406 "physical volumes that contain any volume groups, so you have to remove those "
10407 "first."
10408 msgstr ""
10409
10410 # type: =head2
10411 #: ../src/guestfs-actions.pod:3863
10412 msgid "guestfs_pvresize"
10413 msgstr ""
10414
10415 # type: verbatim
10416 #: ../src/guestfs-actions.pod:3865
10417 #, no-wrap
10418 msgid ""
10419 " int guestfs_pvresize (guestfs_h *g,\n"
10420 "\t\tconst char *device);\n"
10421 "\n"
10422 msgstr ""
10423
10424 # type: textblock
10425 #: ../src/guestfs-actions.pod:3868 ../fish/guestfish-actions.pod:2996
10426 msgid ""
10427 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10428 "the new size of the underlying device."
10429 msgstr ""
10430
10431 # type: =head2
10432 #: ../src/guestfs-actions.pod:3873
10433 msgid "guestfs_pvresize_size"
10434 msgstr ""
10435
10436 # type: verbatim
10437 #: ../src/guestfs-actions.pod:3875
10438 #, no-wrap
10439 msgid ""
10440 " int guestfs_pvresize_size (guestfs_h *g,\n"
10441 "\t\tconst char *device,\n"
10442 "\t\tint64_t size);\n"
10443 "\n"
10444 msgstr ""
10445
10446 # type: textblock
10447 #: ../src/guestfs-actions.pod:3879
10448 msgid ""
10449 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10450 "specify the new size (in bytes) explicitly."
10451 msgstr ""
10452
10453 # type: =head2
10454 #: ../src/guestfs-actions.pod:3884
10455 msgid "guestfs_pvs"
10456 msgstr ""
10457
10458 # type: verbatim
10459 #: ../src/guestfs-actions.pod:3886
10460 #, no-wrap
10461 msgid ""
10462 " char **guestfs_pvs (guestfs_h *g);\n"
10463 "\n"
10464 msgstr ""
10465
10466 # type: textblock
10467 #: ../src/guestfs-actions.pod:3888 ../fish/guestfish-actions.pod:3010
10468 msgid ""
10469 "List all the physical volumes detected.  This is the equivalent of the "
10470 "L<pvs(8)> command."
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:3891 ../fish/guestfish-actions.pod:3013
10475 msgid ""
10476 "This returns a list of just the device names that contain PVs "
10477 "(eg. C</dev/sda2>)."
10478 msgstr ""
10479
10480 # type: textblock
10481 #: ../src/guestfs-actions.pod:3894
10482 msgid "See also C<guestfs_pvs_full>."
10483 msgstr ""
10484
10485 # type: =head2
10486 #: ../src/guestfs-actions.pod:3900
10487 msgid "guestfs_pvs_full"
10488 msgstr ""
10489
10490 # type: verbatim
10491 #: ../src/guestfs-actions.pod:3902
10492 #, no-wrap
10493 msgid ""
10494 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10495 "\n"
10496 msgstr ""
10497
10498 # type: textblock
10499 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:3022
10500 msgid ""
10501 "List all the physical volumes detected.  This is the equivalent of the "
10502 "L<pvs(8)> command.  The \"full\" version includes all fields."
10503 msgstr ""
10504
10505 # type: textblock
10506 #: ../src/guestfs-actions.pod:3907
10507 msgid ""
10508 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10509 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10510 "must call C<guestfs_free_lvm_pv_list> after use>."
10511 msgstr ""
10512
10513 # type: =head2
10514 #: ../src/guestfs-actions.pod:3912
10515 msgid "guestfs_pvuuid"
10516 msgstr ""
10517
10518 # type: verbatim
10519 #: ../src/guestfs-actions.pod:3914
10520 #, no-wrap
10521 msgid ""
10522 " char *guestfs_pvuuid (guestfs_h *g,\n"
10523 "\t\tconst char *device);\n"
10524 "\n"
10525 msgstr ""
10526
10527 # type: textblock
10528 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:3029
10529 msgid "This command returns the UUID of the LVM PV C<device>."
10530 msgstr ""
10531
10532 # type: =head2
10533 #: ../src/guestfs-actions.pod:3922
10534 msgid "guestfs_pwrite"
10535 msgstr ""
10536
10537 # type: verbatim
10538 #: ../src/guestfs-actions.pod:3924
10539 #, no-wrap
10540 msgid ""
10541 " int guestfs_pwrite (guestfs_h *g,\n"
10542 "\t\tconst char *path,\n"
10543 "\t\tconst char *content,\n"
10544 "\t\tsize_t content_size,\n"
10545 "\t\tint64_t offset);\n"
10546 "\n"
10547 msgstr ""
10548
10549 # type: textblock
10550 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:3035
10551 msgid ""
10552 "This command writes to part of a file.  It writes the data buffer C<content> "
10553 "to the file C<path> starting at offset C<offset>."
10554 msgstr ""
10555
10556 # type: textblock
10557 #: ../src/guestfs-actions.pod:3933 ../fish/guestfish-actions.pod:3038
10558 msgid ""
10559 "This command implements the L<pwrite(2)> system call, and like that system "
10560 "call it may not write the full data requested.  The return value is the "
10561 "number of bytes that were actually written to the file.  This could even be "
10562 "0, although short writes are unlikely for regular files in ordinary "
10563 "circumstances."
10564 msgstr ""
10565
10566 # type: textblock
10567 #: ../src/guestfs-actions.pod:3939
10568 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
10569 msgstr ""
10570
10571 # type: =head2
10572 #: ../src/guestfs-actions.pod:3946
10573 msgid "guestfs_pwrite_device"
10574 msgstr ""
10575
10576 # type: verbatim
10577 #: ../src/guestfs-actions.pod:3948
10578 #, no-wrap
10579 msgid ""
10580 " int guestfs_pwrite_device (guestfs_h *g,\n"
10581 "\t\tconst char *device,\n"
10582 "\t\tconst char *content,\n"
10583 "\t\tsize_t content_size,\n"
10584 "\t\tint64_t offset);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3954 ../fish/guestfish-actions.pod:3053
10590 msgid ""
10591 "This command writes to part of a device.  It writes the data buffer "
10592 "C<content> to C<device> starting at offset C<offset>."
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:3056
10597 msgid ""
10598 "This command implements the L<pwrite(2)> system call, and like that system "
10599 "call it may not write the full data requested (although short writes to disk "
10600 "devices and partitions are probably impossible with standard Linux kernels)."
10601 msgstr ""
10602
10603 # type: =head2
10604 #: ../src/guestfs-actions.pod:3969
10605 msgid "guestfs_read_file"
10606 msgstr ""
10607
10608 # type: verbatim
10609 #: ../src/guestfs-actions.pod:3971
10610 #, no-wrap
10611 msgid ""
10612 " char *guestfs_read_file (guestfs_h *g,\n"
10613 "\t\tconst char *path,\n"
10614 "\t\tsize_t *size_r);\n"
10615 "\n"
10616 msgstr ""
10617
10618 # type: textblock
10619 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:3070
10620 msgid "This calls returns the contents of the file C<path> as a buffer."
10621 msgstr ""
10622
10623 # type: textblock
10624 #: ../src/guestfs-actions.pod:3978
10625 msgid ""
10626 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10627 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10628 "function is limited in the total size of file that can be handled."
10629 msgstr ""
10630
10631 # type: =head2
10632 #: ../src/guestfs-actions.pod:3990
10633 msgid "guestfs_read_lines"
10634 msgstr ""
10635
10636 # type: verbatim
10637 #: ../src/guestfs-actions.pod:3992
10638 #, no-wrap
10639 msgid ""
10640 " char **guestfs_read_lines (guestfs_h *g,\n"
10641 "\t\tconst char *path);\n"
10642 "\n"
10643 msgstr ""
10644
10645 # type: textblock
10646 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:3087
10647 msgid ""
10648 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10649 "C<CRLF> character sequences are I<not> returned."
10650 msgstr ""
10651
10652 # type: textblock
10653 #: ../src/guestfs-actions.pod:4000
10654 msgid ""
10655 "Note that this function cannot correctly handle binary files (specifically, "
10656 "files containing C<\\0> character which is treated as end of line).  For "
10657 "those you need to use the C<guestfs_read_file> function which has a more "
10658 "complex interface."
10659 msgstr ""
10660
10661 # type: =head2
10662 #: ../src/guestfs-actions.pod:4009
10663 msgid "guestfs_readdir"
10664 msgstr ""
10665
10666 # type: verbatim
10667 #: ../src/guestfs-actions.pod:4011
10668 #, no-wrap
10669 msgid ""
10670 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10671 "\t\tconst char *dir);\n"
10672 "\n"
10673 msgstr ""
10674
10675 # type: textblock
10676 #: ../src/guestfs-actions.pod:4014 ../fish/guestfish-actions.pod:3099
10677 msgid "This returns the list of directory entries in directory C<dir>."
10678 msgstr ""
10679
10680 # type: textblock
10681 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:3101
10682 msgid ""
10683 "All entries in the directory are returned, including C<.> and C<..>.  The "
10684 "entries are I<not> sorted, but returned in the same order as the underlying "
10685 "filesystem."
10686 msgstr ""
10687
10688 # type: textblock
10689 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:3105
10690 msgid ""
10691 "Also this call returns basic file type information about each file.  The "
10692 "C<ftyp> field will contain one of the following characters:"
10693 msgstr ""
10694
10695 # type: =item
10696 #: ../src/guestfs-actions.pod:4025 ../fish/guestfish-actions.pod:3110
10697 msgid "'b'"
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:3112
10702 msgid "Block special"
10703 msgstr ""
10704
10705 # type: =item
10706 #: ../src/guestfs-actions.pod:4029 ../fish/guestfish-actions.pod:3114
10707 msgid "'c'"
10708 msgstr ""
10709
10710 # type: textblock
10711 #: ../src/guestfs-actions.pod:4031 ../fish/guestfish-actions.pod:3116
10712 msgid "Char special"
10713 msgstr ""
10714
10715 # type: =item
10716 #: ../src/guestfs-actions.pod:4033 ../fish/guestfish-actions.pod:3118
10717 msgid "'d'"
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:4035 ../fish/guestfish-actions.pod:3120
10722 msgid "Directory"
10723 msgstr ""
10724
10725 # type: =item
10726 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:3122
10727 msgid "'f'"
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:3124
10732 msgid "FIFO (named pipe)"
10733 msgstr ""
10734
10735 # type: =item
10736 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:3126
10737 msgid "'l'"
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:4043 ../fish/guestfish-actions.pod:3128
10742 msgid "Symbolic link"
10743 msgstr ""
10744
10745 # type: =item
10746 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:3130
10747 msgid "'r'"
10748 msgstr ""
10749
10750 # type: textblock
10751 #: ../src/guestfs-actions.pod:4047 ../fish/guestfish-actions.pod:3132
10752 msgid "Regular file"
10753 msgstr ""
10754
10755 # type: =item
10756 #: ../src/guestfs-actions.pod:4049 ../fish/guestfish-actions.pod:3134
10757 msgid "'s'"
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:4051 ../fish/guestfish-actions.pod:3136
10762 msgid "Socket"
10763 msgstr ""
10764
10765 # type: =item
10766 #: ../src/guestfs-actions.pod:4053 ../fish/guestfish-actions.pod:3138
10767 msgid "'u'"
10768 msgstr ""
10769
10770 # type: textblock
10771 #: ../src/guestfs-actions.pod:4055 ../fish/guestfish-actions.pod:3140
10772 msgid "Unknown file type"
10773 msgstr ""
10774
10775 # type: =item
10776 #: ../src/guestfs-actions.pod:4057 ../fish/guestfish-actions.pod:3142
10777 msgid "'?'"
10778 msgstr ""
10779
10780 # type: textblock
10781 #: ../src/guestfs-actions.pod:4059 ../fish/guestfish-actions.pod:3144
10782 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10783 msgstr ""
10784
10785 # type: textblock
10786 #: ../src/guestfs-actions.pod:4064
10787 msgid ""
10788 "This function is primarily intended for use by programs.  To get a simple "
10789 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10790 "consumption, use C<guestfs_ll>."
10791 msgstr ""
10792
10793 # type: textblock
10794 #: ../src/guestfs-actions.pod:4068
10795 msgid ""
10796 "This function returns a C<struct guestfs_dirent_list *> (see "
10797 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10798 "must call C<guestfs_free_dirent_list> after use>."
10799 msgstr ""
10800
10801 # type: =head2
10802 #: ../src/guestfs-actions.pod:4073
10803 msgid "guestfs_readlink"
10804 msgstr ""
10805
10806 # type: verbatim
10807 #: ../src/guestfs-actions.pod:4075
10808 #, no-wrap
10809 msgid ""
10810 " char *guestfs_readlink (guestfs_h *g,\n"
10811 "\t\tconst char *path);\n"
10812 "\n"
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:3157
10817 msgid "This command reads the target of a symbolic link."
10818 msgstr ""
10819
10820 # type: =head2
10821 #: ../src/guestfs-actions.pod:4083
10822 msgid "guestfs_readlinklist"
10823 msgstr ""
10824
10825 # type: verbatim
10826 #: ../src/guestfs-actions.pod:4085
10827 #, no-wrap
10828 msgid ""
10829 " char **guestfs_readlinklist (guestfs_h *g,\n"
10830 "\t\tconst char *path,\n"
10831 "\t\tchar *const *names);\n"
10832 "\n"
10833 msgstr ""
10834
10835 # type: textblock
10836 #: ../src/guestfs-actions.pod:4089 ../fish/guestfish-actions.pod:3163
10837 msgid ""
10838 "This call allows you to do a C<readlink> operation on multiple files, where "
10839 "all files are in the directory C<path>.  C<names> is the list of files from "
10840 "this directory."
10841 msgstr ""
10842
10843 # type: textblock
10844 #: ../src/guestfs-actions.pod:4093 ../fish/guestfish-actions.pod:3167
10845 msgid ""
10846 "On return you get a list of strings, with a one-to-one correspondence to the "
10847 "C<names> list.  Each string is the value of the symbolic link."
10848 msgstr ""
10849
10850 # type: textblock
10851 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3171
10852 msgid ""
10853 "If the C<readlink(2)> operation fails on any name, then the corresponding "
10854 "result string is the empty string C<\"\">.  However the whole operation is "
10855 "completed even if there were C<readlink(2)> errors, and so you can call this "
10856 "function with names where you don't know if they are symbolic links already "
10857 "(albeit slightly less efficient)."
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:4104 ../fish/guestfish-actions.pod:3178
10862 msgid ""
10863 "This call is intended for programs that want to efficiently list a directory "
10864 "contents without making many round-trips.  Very long directory listings "
10865 "might cause the protocol message size to be exceeded, causing this call to "
10866 "fail.  The caller must split up such requests into smaller groups of names."
10867 msgstr ""
10868
10869 # type: =head2
10870 #: ../src/guestfs-actions.pod:4115
10871 msgid "guestfs_realpath"
10872 msgstr ""
10873
10874 # type: verbatim
10875 #: ../src/guestfs-actions.pod:4117
10876 #, no-wrap
10877 msgid ""
10878 " char *guestfs_realpath (guestfs_h *g,\n"
10879 "\t\tconst char *path);\n"
10880 "\n"
10881 msgstr ""
10882
10883 # type: textblock
10884 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3189
10885 msgid ""
10886 "Return the canonicalized absolute pathname of C<path>.  The returned path "
10887 "has no C<.>, C<..> or symbolic link path elements."
10888 msgstr ""
10889
10890 # type: =head2
10891 #: ../src/guestfs-actions.pod:4126
10892 msgid "guestfs_removexattr"
10893 msgstr ""
10894
10895 # type: verbatim
10896 #: ../src/guestfs-actions.pod:4128
10897 #, no-wrap
10898 msgid ""
10899 " int guestfs_removexattr (guestfs_h *g,\n"
10900 "\t\tconst char *xattr,\n"
10901 "\t\tconst char *path);\n"
10902 "\n"
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:3196
10907 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:4135
10912 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
10913 msgstr ""
10914
10915 # type: =head2
10916 #: ../src/guestfs-actions.pod:4139
10917 msgid "guestfs_resize2fs"
10918 msgstr ""
10919
10920 # type: verbatim
10921 #: ../src/guestfs-actions.pod:4141
10922 #, no-wrap
10923 msgid ""
10924 " int guestfs_resize2fs (guestfs_h *g,\n"
10925 "\t\tconst char *device);\n"
10926 "\n"
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:3205
10931 msgid ""
10932 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
10933 "underlying device."
10934 msgstr ""
10935
10936 # type: textblock
10937 #: ../src/guestfs-actions.pod:4147
10938 msgid ""
10939 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
10940 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
10941 "sometimes gives an error about this and sometimes not.  In any case, it is "
10942 "always safe to call C<guestfs_e2fsck_f> before calling this function."
10943 msgstr ""
10944
10945 # type: =head2
10946 #: ../src/guestfs-actions.pod:4155
10947 msgid "guestfs_resize2fs_size"
10948 msgstr ""
10949
10950 # type: verbatim
10951 #: ../src/guestfs-actions.pod:4157
10952 #, no-wrap
10953 msgid ""
10954 " int guestfs_resize2fs_size (guestfs_h *g,\n"
10955 "\t\tconst char *device,\n"
10956 "\t\tint64_t size);\n"
10957 "\n"
10958 msgstr ""
10959
10960 # type: textblock
10961 #: ../src/guestfs-actions.pod:4161
10962 msgid ""
10963 "This command is the same as C<guestfs_resize2fs> except that it allows you "
10964 "to specify the new size (in bytes) explicitly."
10965 msgstr ""
10966
10967 # type: =head2
10968 #: ../src/guestfs-actions.pod:4166
10969 msgid "guestfs_rm"
10970 msgstr ""
10971
10972 # type: verbatim
10973 #: ../src/guestfs-actions.pod:4168
10974 #, no-wrap
10975 msgid ""
10976 " int guestfs_rm (guestfs_h *g,\n"
10977 "\t\tconst char *path);\n"
10978 "\n"
10979 msgstr ""
10980
10981 # type: textblock
10982 #: ../src/guestfs-actions.pod:4171 ../fish/guestfish-actions.pod:3225
10983 msgid "Remove the single file C<path>."
10984 msgstr ""
10985
10986 # type: =head2
10987 #: ../src/guestfs-actions.pod:4175
10988 msgid "guestfs_rm_rf"
10989 msgstr ""
10990
10991 # type: verbatim
10992 #: ../src/guestfs-actions.pod:4177
10993 #, no-wrap
10994 msgid ""
10995 " int guestfs_rm_rf (guestfs_h *g,\n"
10996 "\t\tconst char *path);\n"
10997 "\n"
10998 msgstr ""
10999
11000 # type: textblock
11001 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:3231
11002 msgid ""
11003 "Remove the file or directory C<path>, recursively removing the contents if "
11004 "its a directory.  This is like the C<rm -rf> shell command."
11005 msgstr ""
11006
11007 # type: =head2
11008 #: ../src/guestfs-actions.pod:4186
11009 msgid "guestfs_rmdir"
11010 msgstr ""
11011
11012 # type: verbatim
11013 #: ../src/guestfs-actions.pod:4188
11014 #, no-wrap
11015 msgid ""
11016 " int guestfs_rmdir (guestfs_h *g,\n"
11017 "\t\tconst char *path);\n"
11018 "\n"
11019 msgstr ""
11020
11021 # type: textblock
11022 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:3239
11023 msgid "Remove the single directory C<path>."
11024 msgstr ""
11025
11026 # type: =head2
11027 #: ../src/guestfs-actions.pod:4195
11028 msgid "guestfs_rmmountpoint"
11029 msgstr ""
11030
11031 # type: verbatim
11032 #: ../src/guestfs-actions.pod:4197
11033 #, no-wrap
11034 msgid ""
11035 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11036 "\t\tconst char *exemptpath);\n"
11037 "\n"
11038 msgstr ""
11039
11040 # type: textblock
11041 #: ../src/guestfs-actions.pod:4200
11042 msgid ""
11043 "This calls removes a mountpoint that was previously created with "
11044 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11045 msgstr ""
11046
11047 # type: =head2
11048 #: ../src/guestfs-actions.pod:4206
11049 msgid "guestfs_scrub_device"
11050 msgstr ""
11051
11052 # type: verbatim
11053 #: ../src/guestfs-actions.pod:4208
11054 #, no-wrap
11055 msgid ""
11056 " int guestfs_scrub_device (guestfs_h *g,\n"
11057 "\t\tconst char *device);\n"
11058 "\n"
11059 msgstr ""
11060
11061 # type: textblock
11062 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:3253
11063 msgid ""
11064 "This command writes patterns over C<device> to make data retrieval more "
11065 "difficult."
11066 msgstr ""
11067
11068 # type: textblock
11069 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4248 ../fish/guestfish-actions.pod:3256 ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3284
11070 msgid ""
11071 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11072 "more details."
11073 msgstr ""
11074
11075 # type: =head2
11076 #: ../src/guestfs-actions.pod:4222
11077 msgid "guestfs_scrub_file"
11078 msgstr ""
11079
11080 # type: verbatim
11081 #: ../src/guestfs-actions.pod:4224
11082 #, no-wrap
11083 msgid ""
11084 " int guestfs_scrub_file (guestfs_h *g,\n"
11085 "\t\tconst char *file);\n"
11086 "\n"
11087 msgstr ""
11088
11089 # type: textblock
11090 #: ../src/guestfs-actions.pod:4227 ../fish/guestfish-actions.pod:3266
11091 msgid ""
11092 "This command writes patterns over a file to make data retrieval more "
11093 "difficult."
11094 msgstr ""
11095
11096 # type: textblock
11097 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:3269
11098 msgid "The file is I<removed> after scrubbing."
11099 msgstr ""
11100
11101 # type: =head2
11102 #: ../src/guestfs-actions.pod:4237
11103 msgid "guestfs_scrub_freespace"
11104 msgstr ""
11105
11106 # type: verbatim
11107 #: ../src/guestfs-actions.pod:4239
11108 #, no-wrap
11109 msgid ""
11110 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11111 "\t\tconst char *dir);\n"
11112 "\n"
11113 msgstr ""
11114
11115 # type: textblock
11116 #: ../src/guestfs-actions.pod:4242
11117 msgid ""
11118 "This command creates the directory C<dir> and then fills it with files until "
11119 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11120 "and deletes them.  The intention is to scrub any free space on the partition "
11121 "containing C<dir>."
11122 msgstr ""
11123
11124 # type: =head2
11125 #: ../src/guestfs-actions.pod:4253
11126 msgid "guestfs_set_append"
11127 msgstr ""
11128
11129 # type: verbatim
11130 #: ../src/guestfs-actions.pod:4255
11131 #, no-wrap
11132 msgid ""
11133 " int guestfs_set_append (guestfs_h *g,\n"
11134 "\t\tconst char *append);\n"
11135 "\n"
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:4258 ../fish/guestfish-actions.pod:3293
11140 msgid ""
11141 "This function is used to add additional options to the guest kernel command "
11142 "line."
11143 msgstr ""
11144
11145 # type: textblock
11146 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:3296
11147 msgid ""
11148 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11149 "environment variable."
11150 msgstr ""
11151
11152 # type: textblock
11153 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:3299
11154 msgid ""
11155 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11156 "(libguestfs always adds a few of its own)."
11157 msgstr ""
11158
11159 # type: =head2
11160 #: ../src/guestfs-actions.pod:4269
11161 msgid "guestfs_set_autosync"
11162 msgstr ""
11163
11164 # type: verbatim
11165 #: ../src/guestfs-actions.pod:4271
11166 #, no-wrap
11167 msgid ""
11168 " int guestfs_set_autosync (guestfs_h *g,\n"
11169 "\t\tint autosync);\n"
11170 "\n"
11171 msgstr ""
11172
11173 # type: textblock
11174 #: ../src/guestfs-actions.pod:4274
11175 msgid ""
11176 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11177 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11178 "the handle is closed (also if the program exits without closing handles)."
11179 msgstr ""
11180
11181 # type: textblock
11182 #: ../src/guestfs-actions.pod:4279 ../fish/guestfish-actions.pod:3313
11183 msgid ""
11184 "This is disabled by default (except in guestfish where it is enabled by "
11185 "default)."
11186 msgstr ""
11187
11188 # type: =head2
11189 #: ../src/guestfs-actions.pod:4284
11190 msgid "guestfs_set_direct"
11191 msgstr ""
11192
11193 # type: verbatim
11194 #: ../src/guestfs-actions.pod:4286
11195 #, no-wrap
11196 msgid ""
11197 " int guestfs_set_direct (guestfs_h *g,\n"
11198 "\t\tint direct);\n"
11199 "\n"
11200 msgstr ""
11201
11202 # type: textblock
11203 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:3322
11204 msgid ""
11205 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11206 "passed directly through to the appliance once it is launched."
11207 msgstr ""
11208
11209 # type: textblock
11210 #: ../src/guestfs-actions.pod:4293
11211 msgid ""
11212 "One consequence of this is that log messages aren't caught by the library "
11213 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11214 "stdout."
11215 msgstr ""
11216
11217 # type: textblock
11218 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:3330
11219 msgid "You probably don't want to use this unless you know what you are doing."
11220 msgstr ""
11221
11222 # type: textblock
11223 #: ../src/guestfs-actions.pod:4300 ../fish/guestfish-actions.pod:3333
11224 msgid "The default is disabled."
11225 msgstr ""
11226
11227 # type: =head2
11228 #: ../src/guestfs-actions.pod:4304
11229 msgid "guestfs_set_e2label"
11230 msgstr ""
11231
11232 # type: verbatim
11233 #: ../src/guestfs-actions.pod:4306
11234 #, no-wrap
11235 msgid ""
11236 " int guestfs_set_e2label (guestfs_h *g,\n"
11237 "\t\tconst char *device,\n"
11238 "\t\tconst char *label);\n"
11239 "\n"
11240 msgstr ""
11241
11242 # type: textblock
11243 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:3339
11244 msgid ""
11245 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11246 "C<label>.  Filesystem labels are limited to 16 characters."
11247 msgstr ""
11248
11249 # type: textblock
11250 #: ../src/guestfs-actions.pod:4314
11251 msgid ""
11252 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11253 "the existing label on a filesystem."
11254 msgstr ""
11255
11256 # type: =head2
11257 #: ../src/guestfs-actions.pod:4319
11258 msgid "guestfs_set_e2uuid"
11259 msgstr ""
11260
11261 # type: verbatim
11262 #: ../src/guestfs-actions.pod:4321
11263 #, no-wrap
11264 msgid ""
11265 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11266 "\t\tconst char *device,\n"
11267 "\t\tconst char *uuid);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:3350
11273 msgid ""
11274 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11275 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11276 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11277 msgstr ""
11278
11279 # type: textblock
11280 #: ../src/guestfs-actions.pod:4330
11281 msgid ""
11282 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11283 "the existing UUID of a filesystem."
11284 msgstr ""
11285
11286 # type: =head2
11287 #: ../src/guestfs-actions.pod:4335
11288 msgid "guestfs_set_memsize"
11289 msgstr ""
11290
11291 # type: verbatim
11292 #: ../src/guestfs-actions.pod:4337
11293 #, no-wrap
11294 msgid ""
11295 " int guestfs_set_memsize (guestfs_h *g,\n"
11296 "\t\tint memsize);\n"
11297 "\n"
11298 msgstr ""
11299
11300 # type: textblock
11301 #: ../src/guestfs-actions.pod:4340
11302 msgid ""
11303 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11304 "This only has any effect if called before C<guestfs_launch>."
11305 msgstr ""
11306
11307 # type: textblock
11308 #: ../src/guestfs-actions.pod:4344 ../fish/guestfish-actions.pod:3368
11309 msgid ""
11310 "You can also change this by setting the environment variable "
11311 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11312 msgstr ""
11313
11314 # type: =head2
11315 #: ../src/guestfs-actions.pod:4353
11316 msgid "guestfs_set_network"
11317 msgstr ""
11318
11319 # type: verbatim
11320 #: ../src/guestfs-actions.pod:4355
11321 #, no-wrap
11322 msgid ""
11323 " int guestfs_set_network (guestfs_h *g,\n"
11324 "\t\tint network);\n"
11325 "\n"
11326 msgstr ""
11327
11328 # type: textblock
11329 #: ../src/guestfs-actions.pod:4358 ../fish/guestfish-actions.pod:3381
11330 msgid ""
11331 "If C<network> is true, then the network is enabled in the libguestfs "
11332 "appliance.  The default is false."
11333 msgstr ""
11334
11335 # type: textblock
11336 #: ../src/guestfs-actions.pod:4361 ../fish/guestfish-actions.pod:3384
11337 msgid ""
11338 "This affects whether commands are able to access the network (see "
11339 "L<guestfs(3)/RUNNING COMMANDS>)."
11340 msgstr ""
11341
11342 # type: textblock
11343 #: ../src/guestfs-actions.pod:4364
11344 msgid ""
11345 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11346 "effect."
11347 msgstr ""
11348
11349 # type: =head2
11350 #: ../src/guestfs-actions.pod:4369
11351 msgid "guestfs_set_path"
11352 msgstr ""
11353
11354 # type: verbatim
11355 #: ../src/guestfs-actions.pod:4371
11356 #, no-wrap
11357 msgid ""
11358 " int guestfs_set_path (guestfs_h *g,\n"
11359 "\t\tconst char *searchpath);\n"
11360 "\n"
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:3396
11365 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11366 msgstr ""
11367
11368 # type: textblock
11369 #: ../src/guestfs-actions.pod:4376 ../fish/guestfish-actions.pod:3398
11370 msgid ""
11371 "The default is C<$libdir/guestfs> unless overridden by setting "
11372 "C<LIBGUESTFS_PATH> environment variable."
11373 msgstr ""
11374
11375 # type: textblock
11376 #: ../src/guestfs-actions.pod:4379 ../fish/guestfish-actions.pod:3401
11377 msgid "Setting C<path> to C<NULL> restores the default path."
11378 msgstr ""
11379
11380 # type: =head2
11381 #: ../src/guestfs-actions.pod:4383
11382 msgid "guestfs_set_qemu"
11383 msgstr ""
11384
11385 # type: verbatim
11386 #: ../src/guestfs-actions.pod:4385
11387 #, no-wrap
11388 msgid ""
11389 " int guestfs_set_qemu (guestfs_h *g,\n"
11390 "\t\tconst char *qemu);\n"
11391 "\n"
11392 msgstr ""
11393
11394 # type: textblock
11395 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3409
11396 msgid "Set the qemu binary that we will use."
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4390 ../fish/guestfish-actions.pod:3411
11401 msgid "The default is chosen when the library was compiled by the configure script."
11402 msgstr ""
11403
11404 # type: textblock
11405 #: ../src/guestfs-actions.pod:4393 ../fish/guestfish-actions.pod:3414
11406 msgid ""
11407 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11408 "variable."
11409 msgstr ""
11410
11411 # type: textblock
11412 #: ../src/guestfs-actions.pod:4396 ../fish/guestfish-actions.pod:3417
11413 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11414 msgstr ""
11415
11416 # type: textblock
11417 #: ../src/guestfs-actions.pod:4398 ../fish/guestfish-actions.pod:3419
11418 msgid ""
11419 "Note that you should call this function as early as possible after creating "
11420 "the handle.  This is because some pre-launch operations depend on testing "
11421 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11422 "don't retest features, and so you might see inconsistent results.  Using the "
11423 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11424 "the qemu binary at the same time as the handle is created."
11425 msgstr ""
11426
11427 # type: =head2
11428 #: ../src/guestfs-actions.pod:4408
11429 msgid "guestfs_set_recovery_proc"
11430 msgstr ""
11431
11432 # type: verbatim
11433 #: ../src/guestfs-actions.pod:4410
11434 #, no-wrap
11435 msgid ""
11436 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11437 "\t\tint recoveryproc);\n"
11438 "\n"
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4413
11443 msgid ""
11444 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11445 "not create a recovery process.  The purpose of the recovery process is to "
11446 "stop runaway qemu processes in the case where the main program aborts "
11447 "abruptly."
11448 msgstr ""
11449
11450 # type: textblock
11451 #: ../src/guestfs-actions.pod:4418
11452 msgid ""
11453 "This only has any effect if called before C<guestfs_launch>, and the default "
11454 "is true."
11455 msgstr ""
11456
11457 # type: textblock
11458 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3441
11459 msgid ""
11460 "About the only time when you would want to disable this is if the main "
11461 "process will fork itself into the background (\"daemonize\" itself).  In "
11462 "this case the recovery process thinks that the main program has disappeared "
11463 "and so kills qemu, which is not very helpful."
11464 msgstr ""
11465
11466 # type: =head2
11467 #: ../src/guestfs-actions.pod:4429
11468 msgid "guestfs_set_selinux"
11469 msgstr ""
11470
11471 # type: verbatim
11472 #: ../src/guestfs-actions.pod:4431
11473 #, no-wrap
11474 msgid ""
11475 " int guestfs_set_selinux (guestfs_h *g,\n"
11476 "\t\tint selinux);\n"
11477 "\n"
11478 msgstr ""
11479
11480 # type: textblock
11481 #: ../src/guestfs-actions.pod:4434 ../fish/guestfish-actions.pod:3453
11482 msgid ""
11483 "This sets the selinux flag that is passed to the appliance at boot time.  "
11484 "The default is C<selinux=0> (disabled)."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:3456
11489 msgid ""
11490 "Note that if SELinux is enabled, it is always in Permissive mode "
11491 "(C<enforcing=0>)."
11492 msgstr ""
11493
11494 # type: =head2
11495 #: ../src/guestfs-actions.pod:4445
11496 msgid "guestfs_set_trace"
11497 msgstr ""
11498
11499 # type: verbatim
11500 #: ../src/guestfs-actions.pod:4447
11501 #, no-wrap
11502 msgid ""
11503 " int guestfs_set_trace (guestfs_h *g,\n"
11504 "\t\tint trace);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3468
11510 msgid ""
11511 "If the command trace flag is set to 1, then commands are printed on stderr "
11512 "before they are executed in a format which is very similar to the one used "
11513 "by guestfish.  In other words, you can run a program with this enabled, and "
11514 "you will get out a script which you can feed to guestfish to perform the "
11515 "same set of actions."
11516 msgstr ""
11517
11518 # type: textblock
11519 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3475
11520 msgid ""
11521 "If you want to trace C API calls into libguestfs (and other libraries) then "
11522 "possibly a better way is to use the external ltrace(1) command."
11523 msgstr ""
11524
11525 # type: textblock
11526 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:3479
11527 msgid ""
11528 "Command traces are disabled unless the environment variable "
11529 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11530 msgstr ""
11531
11532 # type: =head2
11533 #: ../src/guestfs-actions.pod:4466
11534 msgid "guestfs_set_verbose"
11535 msgstr ""
11536
11537 # type: verbatim
11538 #: ../src/guestfs-actions.pod:4468
11539 #, no-wrap
11540 msgid ""
11541 " int guestfs_set_verbose (guestfs_h *g,\n"
11542 "\t\tint verbose);\n"
11543 "\n"
11544 msgstr ""
11545
11546 # type: textblock
11547 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3488
11548 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11549 msgstr ""
11550
11551 # type: textblock
11552 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3490
11553 msgid ""
11554 "Verbose messages are disabled unless the environment variable "
11555 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11556 msgstr ""
11557
11558 # type: =head2
11559 #: ../src/guestfs-actions.pod:4478
11560 msgid "guestfs_setcon"
11561 msgstr ""
11562
11563 # type: verbatim
11564 #: ../src/guestfs-actions.pod:4480
11565 #, no-wrap
11566 msgid ""
11567 " int guestfs_setcon (guestfs_h *g,\n"
11568 "\t\tconst char *context);\n"
11569 "\n"
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3497
11574 msgid ""
11575 "This sets the SELinux security context of the daemon to the string "
11576 "C<context>."
11577 msgstr ""
11578
11579 # type: textblock
11580 #: ../src/guestfs-actions.pod:4486 ../fish/guestfish-actions.pod:3500
11581 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11582 msgstr ""
11583
11584 # type: =head2
11585 #: ../src/guestfs-actions.pod:4490
11586 msgid "guestfs_setxattr"
11587 msgstr ""
11588
11589 # type: verbatim
11590 #: ../src/guestfs-actions.pod:4492
11591 #, no-wrap
11592 msgid ""
11593 " int guestfs_setxattr (guestfs_h *g,\n"
11594 "\t\tconst char *xattr,\n"
11595 "\t\tconst char *val,\n"
11596 "\t\tint vallen,\n"
11597 "\t\tconst char *path);\n"
11598 "\n"
11599 msgstr ""
11600
11601 # type: textblock
11602 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:3506
11603 msgid ""
11604 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11605 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4502
11610 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11611 msgstr ""
11612
11613 # type: =head2
11614 #: ../src/guestfs-actions.pod:4506
11615 msgid "guestfs_sfdisk"
11616 msgstr ""
11617
11618 # type: verbatim
11619 #: ../src/guestfs-actions.pod:4508
11620 #, no-wrap
11621 msgid ""
11622 " int guestfs_sfdisk (guestfs_h *g,\n"
11623 "\t\tconst char *device,\n"
11624 "\t\tint cyls,\n"
11625 "\t\tint heads,\n"
11626 "\t\tint sectors,\n"
11627 "\t\tchar *const *lines);\n"
11628 "\n"
11629 msgstr ""
11630
11631 # type: textblock
11632 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3516
11633 msgid ""
11634 "This is a direct interface to the L<sfdisk(8)> program for creating "
11635 "partitions on block devices."
11636 msgstr ""
11637
11638 # type: textblock
11639 #: ../src/guestfs-actions.pod:4518 ../fish/guestfish-actions.pod:3519
11640 msgid "C<device> should be a block device, for example C</dev/sda>."
11641 msgstr ""
11642
11643 # type: textblock
11644 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3521
11645 msgid ""
11646 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11647 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
11648 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11649 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11650 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11651 "the kernel) cannot work out the right geometry and you will need to tell it."
11652 msgstr ""
11653
11654 # type: textblock
11655 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3529
11656 msgid ""
11657 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11658 "refer to the L<sfdisk(8)> manpage."
11659 msgstr ""
11660
11661 # type: textblock
11662 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3532
11663 msgid ""
11664 "To create a single partition occupying the whole disk, you would pass "
11665 "C<lines> as a single element list, when the single element being the string "
11666 "C<,> (comma)."
11667 msgstr ""
11668
11669 # type: textblock
11670 #: ../src/guestfs-actions.pod:4535
11671 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11672 msgstr ""
11673
11674 # type: =head2
11675 #: ../src/guestfs-actions.pod:4543
11676 msgid "guestfs_sfdiskM"
11677 msgstr ""
11678
11679 # type: verbatim
11680 #: ../src/guestfs-actions.pod:4545
11681 #, no-wrap
11682 msgid ""
11683 " int guestfs_sfdiskM (guestfs_h *g,\n"
11684 "\t\tconst char *device,\n"
11685 "\t\tchar *const *lines);\n"
11686 "\n"
11687 msgstr ""
11688
11689 # type: textblock
11690 #: ../src/guestfs-actions.pod:4549
11691 msgid ""
11692 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11693 "partition sizes are specified in megabytes only (rounded to the nearest "
11694 "cylinder) and you don't need to specify the cyls, heads and sectors "
11695 "parameters which were rarely if ever used anyway."
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4555
11700 msgid ""
11701 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11702 "C<guestfs_part_disk>"
11703 msgstr ""
11704
11705 # type: =head2
11706 #: ../src/guestfs-actions.pod:4563
11707 msgid "guestfs_sfdisk_N"
11708 msgstr ""
11709
11710 # type: verbatim
11711 #: ../src/guestfs-actions.pod:4565
11712 #, no-wrap
11713 msgid ""
11714 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11715 "\t\tconst char *device,\n"
11716 "\t\tint partnum,\n"
11717 "\t\tint cyls,\n"
11718 "\t\tint heads,\n"
11719 "\t\tint sectors,\n"
11720 "\t\tconst char *line);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4573 ../fish/guestfish-actions.pod:3562
11726 msgid ""
11727 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11728 "(note: C<n> counts from 1)."
11729 msgstr ""
11730
11731 # type: textblock
11732 #: ../src/guestfs-actions.pod:4576
11733 msgid ""
11734 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11735 "for the cyls/heads/sectors parameters."
11736 msgstr ""
11737
11738 # type: textblock
11739 #: ../src/guestfs-actions.pod:4579
11740 msgid "See also: C<guestfs_part_add>"
11741 msgstr ""
11742
11743 # type: =head2
11744 #: ../src/guestfs-actions.pod:4586
11745 msgid "guestfs_sfdisk_disk_geometry"
11746 msgstr ""
11747
11748 # type: verbatim
11749 #: ../src/guestfs-actions.pod:4588
11750 #, no-wrap
11751 msgid ""
11752 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11753 "\t\tconst char *device);\n"
11754 "\n"
11755 msgstr ""
11756
11757 # type: textblock
11758 #: ../src/guestfs-actions.pod:4591
11759 msgid ""
11760 "This displays the disk geometry of C<device> read from the partition table.  "
11761 "Especially in the case where the underlying block device has been resized, "
11762 "this can be different from the kernel's idea of the geometry (see "
11763 "C<guestfs_sfdisk_kernel_geometry>)."
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3582 ../fish/guestfish-actions.pod:3591
11768 msgid "The result is in human-readable format, and not designed to be parsed."
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4602
11773 msgid "guestfs_sfdisk_kernel_geometry"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4604
11778 #, no-wrap
11779 msgid ""
11780 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11781 "\t\tconst char *device);\n"
11782 "\n"
11783 msgstr ""
11784
11785 # type: textblock
11786 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3589
11787 msgid "This displays the kernel's idea of the geometry of C<device>."
11788 msgstr ""
11789
11790 # type: =head2
11791 #: ../src/guestfs-actions.pod:4615
11792 msgid "guestfs_sfdisk_l"
11793 msgstr ""
11794
11795 # type: verbatim
11796 #: ../src/guestfs-actions.pod:4617
11797 #, no-wrap
11798 msgid ""
11799 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
11800 "\t\tconst char *device);\n"
11801 "\n"
11802 msgstr ""
11803
11804 # type: textblock
11805 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3598
11806 msgid ""
11807 "This displays the partition table on C<device>, in the human-readable output "
11808 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
11809 msgstr ""
11810
11811 # type: textblock
11812 #: ../src/guestfs-actions.pod:4624
11813 msgid "See also: C<guestfs_part_list>"
11814 msgstr ""
11815
11816 # type: =head2
11817 #: ../src/guestfs-actions.pod:4629
11818 msgid "guestfs_sh"
11819 msgstr ""
11820
11821 # type: verbatim
11822 #: ../src/guestfs-actions.pod:4631
11823 #, no-wrap
11824 msgid ""
11825 " char *guestfs_sh (guestfs_h *g,\n"
11826 "\t\tconst char *command);\n"
11827 "\n"
11828 msgstr ""
11829
11830 # type: textblock
11831 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3608
11832 msgid ""
11833 "This call runs a command from the guest filesystem via the guest's "
11834 "C</bin/sh>."
11835 msgstr ""
11836
11837 # type: textblock
11838 #: ../src/guestfs-actions.pod:4637
11839 msgid "This is like C<guestfs_command>, but passes the command to:"
11840 msgstr ""
11841
11842 # type: verbatim
11843 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3613
11844 #, no-wrap
11845 msgid ""
11846 " /bin/sh -c \"command\"\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3615
11852 msgid ""
11853 "Depending on the guest's shell, this usually results in wildcards being "
11854 "expanded, shell expressions being interpolated and so on."
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4645
11859 msgid "All the provisos about C<guestfs_command> apply to this call."
11860 msgstr ""
11861
11862 # type: =head2
11863 #: ../src/guestfs-actions.pod:4650
11864 msgid "guestfs_sh_lines"
11865 msgstr ""
11866
11867 # type: verbatim
11868 #: ../src/guestfs-actions.pod:4652
11869 #, no-wrap
11870 msgid ""
11871 " char **guestfs_sh_lines (guestfs_h *g,\n"
11872 "\t\tconst char *command);\n"
11873 "\n"
11874 msgstr ""
11875
11876 # type: textblock
11877 #: ../src/guestfs-actions.pod:4655
11878 msgid ""
11879 "This is the same as C<guestfs_sh>, but splits the result into a list of "
11880 "lines."
11881 msgstr ""
11882
11883 # type: textblock
11884 #: ../src/guestfs-actions.pod:4658
11885 msgid "See also: C<guestfs_command_lines>"
11886 msgstr ""
11887
11888 # type: =head2
11889 #: ../src/guestfs-actions.pod:4664
11890 msgid "guestfs_sleep"
11891 msgstr ""
11892
11893 # type: verbatim
11894 #: ../src/guestfs-actions.pod:4666
11895 #, no-wrap
11896 msgid ""
11897 " int guestfs_sleep (guestfs_h *g,\n"
11898 "\t\tint secs);\n"
11899 "\n"
11900 msgstr ""
11901
11902 # type: textblock
11903 #: ../src/guestfs-actions.pod:4669 ../fish/guestfish-actions.pod:3634
11904 msgid "Sleep for C<secs> seconds."
11905 msgstr ""
11906
11907 # type: =head2
11908 #: ../src/guestfs-actions.pod:4673 ../src/guestfs-structs.pod:109
11909 msgid "guestfs_stat"
11910 msgstr ""
11911
11912 # type: verbatim
11913 #: ../src/guestfs-actions.pod:4675
11914 #, no-wrap
11915 msgid ""
11916 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
11917 "\t\tconst char *path);\n"
11918 "\n"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3642
11923 msgid "This is the same as the C<stat(2)> system call."
11924 msgstr ""
11925
11926 # type: =head2
11927 #: ../src/guestfs-actions.pod:4686 ../src/guestfs-structs.pod:135
11928 msgid "guestfs_statvfs"
11929 msgstr ""
11930
11931 # type: verbatim
11932 #: ../src/guestfs-actions.pod:4688
11933 #, no-wrap
11934 msgid ""
11935 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
11936 "\t\tconst char *path);\n"
11937 "\n"
11938 msgstr ""
11939
11940 # type: textblock
11941 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3648
11942 msgid ""
11943 "Returns file system statistics for any mounted file system.  C<path> should "
11944 "be a file or directory in the mounted file system (typically it is the mount "
11945 "point itself, but it doesn't need to be)."
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4695 ../fish/guestfish-actions.pod:3652
11950 msgid "This is the same as the C<statvfs(2)> system call."
11951 msgstr ""
11952
11953 # type: textblock
11954 #: ../src/guestfs-actions.pod:4697
11955 msgid ""
11956 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
11957 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
11958 msgstr ""
11959
11960 # type: =head2
11961 #: ../src/guestfs-actions.pod:4701
11962 msgid "guestfs_strings"
11963 msgstr ""
11964
11965 # type: verbatim
11966 #: ../src/guestfs-actions.pod:4703
11967 #, no-wrap
11968 msgid ""
11969 " char **guestfs_strings (guestfs_h *g,\n"
11970 "\t\tconst char *path);\n"
11971 "\n"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3658
11976 msgid ""
11977 "This runs the L<strings(1)> command on a file and returns the list of "
11978 "printable strings found."
11979 msgstr ""
11980
11981 # type: =head2
11982 #: ../src/guestfs-actions.pod:4716
11983 msgid "guestfs_strings_e"
11984 msgstr ""
11985
11986 # type: verbatim
11987 #: ../src/guestfs-actions.pod:4718
11988 #, no-wrap
11989 msgid ""
11990 " char **guestfs_strings_e (guestfs_h *g,\n"
11991 "\t\tconst char *encoding,\n"
11992 "\t\tconst char *path);\n"
11993 "\n"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4722
11998 msgid ""
11999 "This is like the C<guestfs_strings> command, but allows you to specify the "
12000 "encoding of strings that are looked for in the source file C<path>."
12001 msgstr ""
12002
12003 # type: textblock
12004 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3672
12005 msgid "Allowed encodings are:"
12006 msgstr ""
12007
12008 # type: =item
12009 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3676
12010 msgid "s"
12011 msgstr ""
12012
12013 # type: textblock
12014 #: ../src/guestfs-actions.pod:4732
12015 msgid ""
12016 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12017 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12018 msgstr ""
12019
12020 # type: =item
12021 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3681
12022 msgid "S"
12023 msgstr ""
12024
12025 # type: textblock
12026 #: ../src/guestfs-actions.pod:4737 ../fish/guestfish-actions.pod:3683
12027 msgid "Single 8-bit-byte characters."
12028 msgstr ""
12029
12030 # type: =item
12031 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3685
12032 msgid "b"
12033 msgstr ""
12034
12035 # type: textblock
12036 #: ../src/guestfs-actions.pod:4741 ../fish/guestfish-actions.pod:3687
12037 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12038 msgstr ""
12039
12040 # type: =item
12041 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3690
12042 msgid "l (lower case letter L)"
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3692
12047 msgid ""
12048 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12049 "examining binaries in Windows guests."
12050 msgstr ""
12051
12052 # type: =item
12053 #: ../src/guestfs-actions.pod:4749 ../fish/guestfish-actions.pod:3695
12054 msgid "B"
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4751 ../fish/guestfish-actions.pod:3697
12059 msgid "32-bit big endian such as UCS-4BE."
12060 msgstr ""
12061
12062 # type: =item
12063 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3699
12064 msgid "L"
12065 msgstr ""
12066
12067 # type: textblock
12068 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3701
12069 msgid "32-bit little endian such as UCS-4LE."
12070 msgstr ""
12071
12072 # type: textblock
12073 #: ../src/guestfs-actions.pod:4759 ../fish/guestfish-actions.pod:3705
12074 msgid "The returned strings are transcoded to UTF-8."
12075 msgstr ""
12076
12077 # type: =head2
12078 #: ../src/guestfs-actions.pod:4768
12079 msgid "guestfs_swapoff_device"
12080 msgstr ""
12081
12082 # type: verbatim
12083 #: ../src/guestfs-actions.pod:4770
12084 #, no-wrap
12085 msgid ""
12086 " int guestfs_swapoff_device (guestfs_h *g,\n"
12087 "\t\tconst char *device);\n"
12088 "\n"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4773
12093 msgid ""
12094 "This command disables the libguestfs appliance swap device or partition "
12095 "named C<device>.  See C<guestfs_swapon_device>."
12096 msgstr ""
12097
12098 # type: =head2
12099 #: ../src/guestfs-actions.pod:4779
12100 msgid "guestfs_swapoff_file"
12101 msgstr ""
12102
12103 # type: verbatim
12104 #: ../src/guestfs-actions.pod:4781
12105 #, no-wrap
12106 msgid ""
12107 " int guestfs_swapoff_file (guestfs_h *g,\n"
12108 "\t\tconst char *file);\n"
12109 "\n"
12110 msgstr ""
12111
12112 # type: textblock
12113 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3722
12114 msgid "This command disables the libguestfs appliance swap on file."
12115 msgstr ""
12116
12117 # type: =head2
12118 #: ../src/guestfs-actions.pod:4788
12119 msgid "guestfs_swapoff_label"
12120 msgstr ""
12121
12122 # type: verbatim
12123 #: ../src/guestfs-actions.pod:4790
12124 #, no-wrap
12125 msgid ""
12126 " int guestfs_swapoff_label (guestfs_h *g,\n"
12127 "\t\tconst char *label);\n"
12128 "\n"
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4793 ../fish/guestfish-actions.pod:3728
12133 msgid ""
12134 "This command disables the libguestfs appliance swap on labeled swap "
12135 "partition."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4798
12140 msgid "guestfs_swapoff_uuid"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4800
12145 #, no-wrap
12146 msgid ""
12147 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12148 "\t\tconst char *uuid);\n"
12149 "\n"
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3735
12154 msgid ""
12155 "This command disables the libguestfs appliance swap partition with the given "
12156 "UUID."
12157 msgstr ""
12158
12159 # type: =head2
12160 #: ../src/guestfs-actions.pod:4808
12161 msgid "guestfs_swapon_device"
12162 msgstr ""
12163
12164 # type: verbatim
12165 #: ../src/guestfs-actions.pod:4810
12166 #, no-wrap
12167 msgid ""
12168 " int guestfs_swapon_device (guestfs_h *g,\n"
12169 "\t\tconst char *device);\n"
12170 "\n"
12171 msgstr ""
12172
12173 # type: textblock
12174 #: ../src/guestfs-actions.pod:4813
12175 msgid ""
12176 "This command enables the libguestfs appliance to use the swap device or "
12177 "partition named C<device>.  The increased memory is made available for all "
12178 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12179 msgstr ""
12180
12181 # type: textblock
12182 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3747
12183 msgid ""
12184 "Note that you should not swap to existing guest swap partitions unless you "
12185 "know what you are doing.  They may contain hibernation information, or other "
12186 "information that the guest doesn't want you to trash.  You also risk leaking "
12187 "information about the host to the guest this way.  Instead, attach a new "
12188 "host device to the guest and swap on that."
12189 msgstr ""
12190
12191 # type: =head2
12192 #: ../src/guestfs-actions.pod:4827
12193 msgid "guestfs_swapon_file"
12194 msgstr ""
12195
12196 # type: verbatim
12197 #: ../src/guestfs-actions.pod:4829
12198 #, no-wrap
12199 msgid ""
12200 " int guestfs_swapon_file (guestfs_h *g,\n"
12201 "\t\tconst char *file);\n"
12202 "\n"
12203 msgstr ""
12204
12205 # type: textblock
12206 #: ../src/guestfs-actions.pod:4832
12207 msgid ""
12208 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12209 "notes."
12210 msgstr ""
12211
12212 # type: =head2
12213 #: ../src/guestfs-actions.pod:4837
12214 msgid "guestfs_swapon_label"
12215 msgstr ""
12216
12217 # type: verbatim
12218 #: ../src/guestfs-actions.pod:4839
12219 #, no-wrap
12220 msgid ""
12221 " int guestfs_swapon_label (guestfs_h *g,\n"
12222 "\t\tconst char *label);\n"
12223 "\n"
12224 msgstr ""
12225
12226 # type: textblock
12227 #: ../src/guestfs-actions.pod:4842
12228 msgid ""
12229 "This command enables swap to a labeled swap partition.  See "
12230 "C<guestfs_swapon_device> for other notes."
12231 msgstr ""
12232
12233 # type: =head2
12234 #: ../src/guestfs-actions.pod:4847
12235 msgid "guestfs_swapon_uuid"
12236 msgstr ""
12237
12238 # type: verbatim
12239 #: ../src/guestfs-actions.pod:4849
12240 #, no-wrap
12241 msgid ""
12242 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12243 "\t\tconst char *uuid);\n"
12244 "\n"
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:4852
12249 msgid ""
12250 "This command enables swap to a swap partition with the given UUID.  See "
12251 "C<guestfs_swapon_device> for other notes."
12252 msgstr ""
12253
12254 # type: =head2
12255 #: ../src/guestfs-actions.pod:4857
12256 msgid "guestfs_sync"
12257 msgstr ""
12258
12259 # type: verbatim
12260 #: ../src/guestfs-actions.pod:4859
12261 #, no-wrap
12262 msgid ""
12263 " int guestfs_sync (guestfs_h *g);\n"
12264 "\n"
12265 msgstr ""
12266
12267 # type: textblock
12268 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3779
12269 msgid ""
12270 "This syncs the disk, so that any writes are flushed through to the "
12271 "underlying disk image."
12272 msgstr ""
12273
12274 # type: textblock
12275 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3782
12276 msgid ""
12277 "You should always call this if you have modified a disk image, before "
12278 "closing the handle."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:4869
12283 msgid "guestfs_tail"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:4871
12288 #, no-wrap
12289 msgid ""
12290 " char **guestfs_tail (guestfs_h *g,\n"
12291 "\t\tconst char *path);\n"
12292 "\n"
12293 msgstr ""
12294
12295 # type: textblock
12296 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3789
12297 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12298 msgstr ""
12299
12300 # type: =head2
12301 #: ../src/guestfs-actions.pod:4884
12302 msgid "guestfs_tail_n"
12303 msgstr ""
12304
12305 # type: verbatim
12306 #: ../src/guestfs-actions.pod:4886
12307 #, no-wrap
12308 msgid ""
12309 " char **guestfs_tail_n (guestfs_h *g,\n"
12310 "\t\tint nrlines,\n"
12311 "\t\tconst char *path);\n"
12312 "\n"
12313 msgstr ""
12314
12315 # type: textblock
12316 #: ../src/guestfs-actions.pod:4890 ../fish/guestfish-actions.pod:3799
12317 msgid ""
12318 "If the parameter C<nrlines> is a positive number, this returns the last "
12319 "C<nrlines> lines of the file C<path>."
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4893 ../fish/guestfish-actions.pod:3802
12324 msgid ""
12325 "If the parameter C<nrlines> is a negative number, this returns lines from "
12326 "the file C<path>, starting with the C<-nrlines>th line."
12327 msgstr ""
12328
12329 # type: =head2
12330 #: ../src/guestfs-actions.pod:4905
12331 msgid "guestfs_tar_in"
12332 msgstr ""
12333
12334 # type: verbatim
12335 #: ../src/guestfs-actions.pod:4907
12336 #, no-wrap
12337 msgid ""
12338 " int guestfs_tar_in (guestfs_h *g,\n"
12339 "\t\tconst char *tarfile,\n"
12340 "\t\tconst char *directory);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3814
12346 msgid ""
12347 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12348 "tar file) into C<directory>."
12349 msgstr ""
12350
12351 # type: textblock
12352 #: ../src/guestfs-actions.pod:4914
12353 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12354 msgstr ""
12355
12356 # type: =head2
12357 #: ../src/guestfs-actions.pod:4919
12358 msgid "guestfs_tar_out"
12359 msgstr ""
12360
12361 # type: verbatim
12362 #: ../src/guestfs-actions.pod:4921
12363 #, no-wrap
12364 msgid ""
12365 " int guestfs_tar_out (guestfs_h *g,\n"
12366 "\t\tconst char *directory,\n"
12367 "\t\tconst char *tarfile);\n"
12368 "\n"
12369 msgstr ""
12370
12371 # type: textblock
12372 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3826
12373 msgid ""
12374 "This command packs the contents of C<directory> and downloads it to local "
12375 "file C<tarfile>."
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4928
12380 msgid ""
12381 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12382 "C<guestfs_txz_out>."
12383 msgstr ""
12384
12385 # type: =head2
12386 #: ../src/guestfs-actions.pod:4933
12387 msgid "guestfs_tgz_in"
12388 msgstr ""
12389
12390 # type: verbatim
12391 #: ../src/guestfs-actions.pod:4935
12392 #, no-wrap
12393 msgid ""
12394 " int guestfs_tgz_in (guestfs_h *g,\n"
12395 "\t\tconst char *tarball,\n"
12396 "\t\tconst char *directory);\n"
12397 "\n"
12398 msgstr ""
12399
12400 # type: textblock
12401 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3838
12402 msgid ""
12403 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12404 "tar file) into C<directory>."
12405 msgstr ""
12406
12407 # type: textblock
12408 #: ../src/guestfs-actions.pod:4942
12409 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12410 msgstr ""
12411
12412 # type: =head2
12413 #: ../src/guestfs-actions.pod:4946
12414 msgid "guestfs_tgz_out"
12415 msgstr ""
12416
12417 # type: verbatim
12418 #: ../src/guestfs-actions.pod:4948
12419 #, no-wrap
12420 msgid ""
12421 " int guestfs_tgz_out (guestfs_h *g,\n"
12422 "\t\tconst char *directory,\n"
12423 "\t\tconst char *tarball);\n"
12424 "\n"
12425 msgstr ""
12426
12427 # type: textblock
12428 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3849
12429 msgid ""
12430 "This command packs the contents of C<directory> and downloads it to local "
12431 "file C<tarball>."
12432 msgstr ""
12433
12434 # type: textblock
12435 #: ../src/guestfs-actions.pod:4955
12436 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12437 msgstr ""
12438
12439 # type: =head2
12440 #: ../src/guestfs-actions.pod:4959
12441 msgid "guestfs_touch"
12442 msgstr ""
12443
12444 # type: verbatim
12445 #: ../src/guestfs-actions.pod:4961
12446 #, no-wrap
12447 msgid ""
12448 " int guestfs_touch (guestfs_h *g,\n"
12449 "\t\tconst char *path);\n"
12450 "\n"
12451 msgstr ""
12452
12453 # type: textblock
12454 #: ../src/guestfs-actions.pod:4964 ../fish/guestfish-actions.pod:3860
12455 msgid ""
12456 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12457 "timestamps on a file, or, if the file does not exist, to create a new "
12458 "zero-length file."
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4968 ../fish/guestfish-actions.pod:3864
12463 msgid ""
12464 "This command only works on regular files, and will fail on other file types "
12465 "such as directories, symbolic links, block special etc."
12466 msgstr ""
12467
12468 # type: =head2
12469 #: ../src/guestfs-actions.pod:4973
12470 msgid "guestfs_truncate"
12471 msgstr ""
12472
12473 # type: verbatim
12474 #: ../src/guestfs-actions.pod:4975
12475 #, no-wrap
12476 msgid ""
12477 " int guestfs_truncate (guestfs_h *g,\n"
12478 "\t\tconst char *path);\n"
12479 "\n"
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3871
12484 msgid ""
12485 "This command truncates C<path> to a zero-length file.  The file must exist "
12486 "already."
12487 msgstr ""
12488
12489 # type: =head2
12490 #: ../src/guestfs-actions.pod:4983
12491 msgid "guestfs_truncate_size"
12492 msgstr ""
12493
12494 # type: verbatim
12495 #: ../src/guestfs-actions.pod:4985
12496 #, no-wrap
12497 msgid ""
12498 " int guestfs_truncate_size (guestfs_h *g,\n"
12499 "\t\tconst char *path,\n"
12500 "\t\tint64_t size);\n"
12501 "\n"
12502 msgstr ""
12503
12504 # type: textblock
12505 #: ../src/guestfs-actions.pod:4989 ../fish/guestfish-actions.pod:3878
12506 msgid ""
12507 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12508 "already."
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:4992
12513 msgid ""
12514 "If the current file size is less than C<size> then the file is extended to "
12515 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12516 "blocks are not allocated for the file until you write to it).  To create a "
12517 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12518 msgstr ""
12519
12520 # type: =head2
12521 #: ../src/guestfs-actions.pod:5000
12522 msgid "guestfs_tune2fs_l"
12523 msgstr ""
12524
12525 # type: verbatim
12526 #: ../src/guestfs-actions.pod:5002
12527 #, no-wrap
12528 msgid ""
12529 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12530 "\t\tconst char *device);\n"
12531 "\n"
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3891
12536 msgid ""
12537 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12538 "C<device>."
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3894
12543 msgid ""
12544 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12545 "for more details.  The list of fields returned isn't clearly defined, and "
12546 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12547 "and the filesystem itself."
12548 msgstr ""
12549
12550 # type: =head2
12551 #: ../src/guestfs-actions.pod:5019
12552 msgid "guestfs_txz_in"
12553 msgstr ""
12554
12555 # type: verbatim
12556 #: ../src/guestfs-actions.pod:5021
12557 #, no-wrap
12558 msgid ""
12559 " int guestfs_txz_in (guestfs_h *g,\n"
12560 "\t\tconst char *tarball,\n"
12561 "\t\tconst char *directory);\n"
12562 "\n"
12563 msgstr ""
12564
12565 # type: textblock
12566 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3903
12567 msgid ""
12568 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12569 "tar file) into C<directory>."
12570 msgstr ""
12571
12572 # type: =head2
12573 #: ../src/guestfs-actions.pod:5030
12574 msgid "guestfs_txz_out"
12575 msgstr ""
12576
12577 # type: verbatim
12578 #: ../src/guestfs-actions.pod:5032
12579 #, no-wrap
12580 msgid ""
12581 " int guestfs_txz_out (guestfs_h *g,\n"
12582 "\t\tconst char *directory,\n"
12583 "\t\tconst char *tarball);\n"
12584 "\n"
12585 msgstr ""
12586
12587 # type: textblock
12588 #: ../src/guestfs-actions.pod:5036 ../fish/guestfish-actions.pod:3912
12589 msgid ""
12590 "This command packs the contents of C<directory> and downloads it to local "
12591 "file C<tarball> (as an xz compressed tar archive)."
12592 msgstr ""
12593
12594 # type: =head2
12595 #: ../src/guestfs-actions.pod:5041
12596 msgid "guestfs_umask"
12597 msgstr ""
12598
12599 # type: verbatim
12600 #: ../src/guestfs-actions.pod:5043
12601 #, no-wrap
12602 msgid ""
12603 " int guestfs_umask (guestfs_h *g,\n"
12604 "\t\tint mask);\n"
12605 "\n"
12606 msgstr ""
12607
12608 # type: textblock
12609 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3921
12610 msgid ""
12611 "This function sets the mask used for creating new files and device nodes to "
12612 "C<mask & 0777>."
12613 msgstr ""
12614
12615 # type: textblock
12616 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3924
12617 msgid ""
12618 "Typical umask values would be C<022> which creates new files with "
12619 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12620 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12621 msgstr ""
12622
12623 # type: textblock
12624 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3929
12625 msgid ""
12626 "The default umask is C<022>.  This is important because it means that "
12627 "directories and device nodes will be created with C<0644> or C<0755> mode "
12628 "even if you specify C<0777>."
12629 msgstr ""
12630
12631 # type: textblock
12632 #: ../src/guestfs-actions.pod:5058
12633 msgid ""
12634 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12635 "C<guestfs_mkdir>."
12636 msgstr ""
12637
12638 # type: textblock
12639 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3936
12640 msgid "This call returns the previous umask."
12641 msgstr ""
12642
12643 # type: =head2
12644 #: ../src/guestfs-actions.pod:5065
12645 msgid "guestfs_umount"
12646 msgstr ""
12647
12648 # type: verbatim
12649 #: ../src/guestfs-actions.pod:5067
12650 #, no-wrap
12651 msgid ""
12652 " int guestfs_umount (guestfs_h *g,\n"
12653 "\t\tconst char *pathordevice);\n"
12654 "\n"
12655 msgstr ""
12656
12657 # type: textblock
12658 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3944
12659 msgid ""
12660 "This unmounts the given filesystem.  The filesystem may be specified either "
12661 "by its mountpoint (path) or the device which contains the filesystem."
12662 msgstr ""
12663
12664 # type: =head2
12665 #: ../src/guestfs-actions.pod:5076
12666 msgid "guestfs_umount_all"
12667 msgstr ""
12668
12669 # type: verbatim
12670 #: ../src/guestfs-actions.pod:5078
12671 #, no-wrap
12672 msgid ""
12673 " int guestfs_umount_all (guestfs_h *g);\n"
12674 "\n"
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3954
12679 msgid "This unmounts all mounted filesystems."
12680 msgstr ""
12681
12682 # type: textblock
12683 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3956
12684 msgid "Some internal mounts are not unmounted by this call."
12685 msgstr ""
12686
12687 # type: =head2
12688 #: ../src/guestfs-actions.pod:5086
12689 msgid "guestfs_upload"
12690 msgstr ""
12691
12692 # type: verbatim
12693 #: ../src/guestfs-actions.pod:5088
12694 #, no-wrap
12695 msgid ""
12696 " int guestfs_upload (guestfs_h *g,\n"
12697 "\t\tconst char *filename,\n"
12698 "\t\tconst char *remotefilename);\n"
12699 "\n"
12700 msgstr ""
12701
12702 # type: textblock
12703 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3962 ../fish/guestfish-actions.pod:3975
12704 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12705 msgstr ""
12706
12707 # type: textblock
12708 #: ../src/guestfs-actions.pod:5097
12709 msgid "See also C<guestfs_download>."
12710 msgstr ""
12711
12712 # type: =head2
12713 #: ../src/guestfs-actions.pod:5101
12714 msgid "guestfs_upload_offset"
12715 msgstr ""
12716
12717 # type: verbatim
12718 #: ../src/guestfs-actions.pod:5103
12719 #, no-wrap
12720 msgid ""
12721 " int guestfs_upload_offset (guestfs_h *g,\n"
12722 "\t\tconst char *filename,\n"
12723 "\t\tconst char *remotefilename,\n"
12724 "\t\tint64_t offset);\n"
12725 "\n"
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3978
12730 msgid ""
12731 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
12732 "The intention is to overwrite parts of existing files or devices, although "
12733 "if a non-existant file is specified then it is created with a \"hole\" "
12734 "before C<offset>.  The size of the data written is implicit in the size of "
12735 "the source C<filename>."
12736 msgstr ""
12737
12738 # type: textblock
12739 #: ../src/guestfs-actions.pod:5118
12740 msgid ""
12741 "Note that there is no limit on the amount of data that can be uploaded with "
12742 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
12743 "full amount unless an error occurs."
12744 msgstr ""
12745
12746 # type: textblock
12747 #: ../src/guestfs-actions.pod:5123
12748 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
12749 msgstr ""
12750
12751 # type: =head2
12752 #: ../src/guestfs-actions.pod:5127
12753 msgid "guestfs_utimens"
12754 msgstr ""
12755
12756 # type: verbatim
12757 #: ../src/guestfs-actions.pod:5129
12758 #, no-wrap
12759 msgid ""
12760 " int guestfs_utimens (guestfs_h *g,\n"
12761 "\t\tconst char *path,\n"
12762 "\t\tint64_t atsecs,\n"
12763 "\t\tint64_t atnsecs,\n"
12764 "\t\tint64_t mtsecs,\n"
12765 "\t\tint64_t mtnsecs);\n"
12766 "\n"
12767 msgstr ""
12768
12769 # type: textblock
12770 #: ../src/guestfs-actions.pod:5136 ../fish/guestfish-actions.pod:3998
12771 msgid "This command sets the timestamps of a file with nanosecond precision."
12772 msgstr ""
12773
12774 # type: textblock
12775 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:4001
12776 msgid ""
12777 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12778 "from the epoch."
12779 msgstr ""
12780
12781 # type: textblock
12782 #: ../src/guestfs-actions.pod:5142 ../fish/guestfish-actions.pod:4004
12783 msgid ""
12784 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12785 "nanoseconds from the epoch."
12786 msgstr ""
12787
12788 # type: textblock
12789 #: ../src/guestfs-actions.pod:5145 ../fish/guestfish-actions.pod:4007
12790 msgid ""
12791 "If the C<*nsecs> field contains the special value C<-1> then the "
12792 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12793 "ignored in this case)."
12794 msgstr ""
12795
12796 # type: textblock
12797 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:4011
12798 msgid ""
12799 "If the C<*nsecs> field contains the special value C<-2> then the "
12800 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12801 "in this case)."
12802 msgstr ""
12803
12804 # type: =head2
12805 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-structs.pod:175
12806 msgid "guestfs_version"
12807 msgstr ""
12808
12809 # type: verbatim
12810 #: ../src/guestfs-actions.pod:5157
12811 #, no-wrap
12812 msgid ""
12813 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12814 "\n"
12815 msgstr ""
12816
12817 # type: textblock
12818 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:4019
12819 msgid "Return the libguestfs version number that the program is linked against."
12820 msgstr ""
12821
12822 # type: textblock
12823 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:4022
12824 msgid ""
12825 "Note that because of dynamic linking this is not necessarily the version of "
12826 "libguestfs that you compiled against.  You can compile the program, and then "
12827 "at runtime dynamically link against a completely different C<libguestfs.so> "
12828 "library."
12829 msgstr ""
12830
12831 # type: textblock
12832 #: ../src/guestfs-actions.pod:5167 ../fish/guestfish-actions.pod:4027
12833 msgid ""
12834 "This call was added in version C<1.0.58>.  In previous versions of "
12835 "libguestfs there was no way to get the version number.  From C code you can "
12836 "use dynamic linker functions to find out if this symbol exists (if it "
12837 "doesn't, then it's an earlier version)."
12838 msgstr ""
12839
12840 # type: textblock
12841 #: ../src/guestfs-actions.pod:5173 ../fish/guestfish-actions.pod:4033
12842 msgid ""
12843 "The call returns a structure with four elements.  The first three (C<major>, "
12844 "C<minor> and C<release>) are numbers and correspond to the usual version "
12845 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
12846 "but may be used for distro-specific information."
12847 msgstr ""
12848
12849 # type: textblock
12850 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:4039
12851 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
12852 msgstr ""
12853
12854 # type: textblock
12855 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:4042
12856 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
12857 msgstr ""
12858
12859 # type: textblock
12860 #: ../src/guestfs-actions.pod:5184
12861 msgid ""
12862 "I<Note:> Don't use this call to test for availability of features.  In "
12863 "enterprise distributions we backport features from later versions into "
12864 "earlier versions, making this an unreliable way to test for features.  Use "
12865 "C<guestfs_available> instead."
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:5190
12870 msgid ""
12871 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
12872 "error.  I<The caller must call C<guestfs_free_version> after use>."
12873 msgstr ""
12874
12875 # type: =head2
12876 #: ../src/guestfs-actions.pod:5194
12877 msgid "guestfs_vfs_label"
12878 msgstr ""
12879
12880 # type: verbatim
12881 #: ../src/guestfs-actions.pod:5196
12882 #, no-wrap
12883 msgid ""
12884 " char *guestfs_vfs_label (guestfs_h *g,\n"
12885 "\t\tconst char *device);\n"
12886 "\n"
12887 msgstr ""
12888
12889 # type: textblock
12890 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:4054
12891 msgid "This returns the filesystem label of the filesystem on C<device>."
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:5202 ../fish/guestfish-actions.pod:4057
12896 msgid "If the filesystem is unlabeled, this returns the empty string."
12897 msgstr ""
12898
12899 # type: textblock
12900 #: ../src/guestfs-actions.pod:5204
12901 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
12902 msgstr ""
12903
12904 # type: =head2
12905 #: ../src/guestfs-actions.pod:5209
12906 msgid "guestfs_vfs_type"
12907 msgstr ""
12908
12909 # type: verbatim
12910 #: ../src/guestfs-actions.pod:5211
12911 #, no-wrap
12912 msgid ""
12913 " char *guestfs_vfs_type (guestfs_h *g,\n"
12914 "\t\tconst char *device);\n"
12915 "\n"
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:5214 ../fish/guestfish-actions.pod:4065
12920 msgid ""
12921 "This command gets the filesystem type corresponding to the filesystem on "
12922 "C<device>."
12923 msgstr ""
12924
12925 # type: textblock
12926 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:4068
12927 msgid ""
12928 "For most filesystems, the result is the name of the Linux VFS module which "
12929 "would be used to mount this filesystem if you mounted it without specifying "
12930 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
12931 msgstr ""
12932
12933 # type: =head2
12934 #: ../src/guestfs-actions.pod:5225
12935 msgid "guestfs_vfs_uuid"
12936 msgstr ""
12937
12938 # type: verbatim
12939 #: ../src/guestfs-actions.pod:5227
12940 #, no-wrap
12941 msgid ""
12942 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
12943 "\t\tconst char *device);\n"
12944 "\n"
12945 msgstr ""
12946
12947 # type: textblock
12948 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:4077
12949 msgid "This returns the filesystem UUID of the filesystem on C<device>."
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:5233 ../fish/guestfish-actions.pod:4080
12954 msgid "If the filesystem does not have a UUID, this returns the empty string."
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5235
12959 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
12960 msgstr ""
12961
12962 # type: =head2
12963 #: ../src/guestfs-actions.pod:5240
12964 msgid "guestfs_vg_activate"
12965 msgstr ""
12966
12967 # type: verbatim
12968 #: ../src/guestfs-actions.pod:5242
12969 #, no-wrap
12970 msgid ""
12971 " int guestfs_vg_activate (guestfs_h *g,\n"
12972 "\t\tint activate,\n"
12973 "\t\tchar *const *volgroups);\n"
12974 "\n"
12975 msgstr ""
12976
12977 # type: textblock
12978 #: ../src/guestfs-actions.pod:5246 ../fish/guestfish-actions.pod:4088
12979 msgid ""
12980 "This command activates or (if C<activate> is false) deactivates all logical "
12981 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
12982 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
12983 "deactivated, then those devices disappear."
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:4094
12988 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
12989 msgstr ""
12990
12991 # type: textblock
12992 #: ../src/guestfs-actions.pod:5254 ../fish/guestfish-actions.pod:4096
12993 msgid ""
12994 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
12995 "activated or deactivated."
12996 msgstr ""
12997
12998 # type: =head2
12999 #: ../src/guestfs-actions.pod:5259
13000 msgid "guestfs_vg_activate_all"
13001 msgstr ""
13002
13003 # type: verbatim
13004 #: ../src/guestfs-actions.pod:5261
13005 #, no-wrap
13006 msgid ""
13007 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13008 "\t\tint activate);\n"
13009 "\n"
13010 msgstr ""
13011
13012 # type: textblock
13013 #: ../src/guestfs-actions.pod:5264 ../fish/guestfish-actions.pod:4103
13014 msgid ""
13015 "This command activates or (if C<activate> is false) deactivates all logical "
13016 "volumes in all volume groups.  If activated, then they are made known to the "
13017 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13018 "those devices disappear."
13019 msgstr ""
13020
13021 # type: textblock
13022 #: ../src/guestfs-actions.pod:5270 ../fish/guestfish-actions.pod:4109
13023 msgid "This command is the same as running C<vgchange -a y|n>"
13024 msgstr ""
13025
13026 # type: =head2
13027 #: ../src/guestfs-actions.pod:5274
13028 msgid "guestfs_vgcreate"
13029 msgstr ""
13030
13031 # type: verbatim
13032 #: ../src/guestfs-actions.pod:5276
13033 #, no-wrap
13034 msgid ""
13035 " int guestfs_vgcreate (guestfs_h *g,\n"
13036 "\t\tconst char *volgroup,\n"
13037 "\t\tchar *const *physvols);\n"
13038 "\n"
13039 msgstr ""
13040
13041 # type: textblock
13042 #: ../src/guestfs-actions.pod:5280 ../fish/guestfish-actions.pod:4115
13043 msgid ""
13044 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13045 "of physical volumes C<physvols>."
13046 msgstr ""
13047
13048 # type: =head2
13049 #: ../src/guestfs-actions.pod:5285
13050 msgid "guestfs_vglvuuids"
13051 msgstr ""
13052
13053 # type: verbatim
13054 #: ../src/guestfs-actions.pod:5287
13055 #, no-wrap
13056 msgid ""
13057 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13058 "\t\tconst char *vgname);\n"
13059 "\n"
13060 msgstr ""
13061
13062 # type: textblock
13063 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:4122
13064 msgid ""
13065 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13066 "volumes created in this volume group."
13067 msgstr ""
13068
13069 # type: textblock
13070 #: ../src/guestfs-actions.pod:5293
13071 msgid ""
13072 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13073 "associate logical volumes and volume groups."
13074 msgstr ""
13075
13076 # type: textblock
13077 #: ../src/guestfs-actions.pod:5296
13078 msgid "See also C<guestfs_vgpvuuids>."
13079 msgstr ""
13080
13081 # type: =head2
13082 #: ../src/guestfs-actions.pod:5302
13083 msgid "guestfs_vgpvuuids"
13084 msgstr ""
13085
13086 # type: verbatim
13087 #: ../src/guestfs-actions.pod:5304
13088 #, no-wrap
13089 msgid ""
13090 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13091 "\t\tconst char *vgname);\n"
13092 "\n"
13093 msgstr ""
13094
13095 # type: textblock
13096 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:4134
13097 msgid ""
13098 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13099 "volumes that this volume group resides on."
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5310
13104 msgid ""
13105 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13106 "associate physical volumes and volume groups."
13107 msgstr ""
13108
13109 # type: textblock
13110 #: ../src/guestfs-actions.pod:5313
13111 msgid "See also C<guestfs_vglvuuids>."
13112 msgstr ""
13113
13114 # type: =head2
13115 #: ../src/guestfs-actions.pod:5319
13116 msgid "guestfs_vgremove"
13117 msgstr ""
13118
13119 # type: verbatim
13120 #: ../src/guestfs-actions.pod:5321
13121 #, no-wrap
13122 msgid ""
13123 " int guestfs_vgremove (guestfs_h *g,\n"
13124 "\t\tconst char *vgname);\n"
13125 "\n"
13126 msgstr ""
13127
13128 # type: textblock
13129 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:4146
13130 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13131 msgstr ""
13132
13133 # type: textblock
13134 #: ../src/guestfs-actions.pod:5326 ../fish/guestfish-actions.pod:4148
13135 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13136 msgstr ""
13137
13138 # type: =head2
13139 #: ../src/guestfs-actions.pod:5331
13140 msgid "guestfs_vgrename"
13141 msgstr ""
13142
13143 # type: verbatim
13144 #: ../src/guestfs-actions.pod:5333
13145 #, no-wrap
13146 msgid ""
13147 " int guestfs_vgrename (guestfs_h *g,\n"
13148 "\t\tconst char *volgroup,\n"
13149 "\t\tconst char *newvolgroup);\n"
13150 "\n"
13151 msgstr ""
13152
13153 # type: textblock
13154 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:4155
13155 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13156 msgstr ""
13157
13158 # type: =head2
13159 #: ../src/guestfs-actions.pod:5341
13160 msgid "guestfs_vgs"
13161 msgstr ""
13162
13163 # type: verbatim
13164 #: ../src/guestfs-actions.pod:5343
13165 #, no-wrap
13166 msgid ""
13167 " char **guestfs_vgs (guestfs_h *g);\n"
13168 "\n"
13169 msgstr ""
13170
13171 # type: textblock
13172 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:4161
13173 msgid ""
13174 "List all the volumes groups detected.  This is the equivalent of the "
13175 "L<vgs(8)> command."
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:4164
13180 msgid ""
13181 "This returns a list of just the volume group names that were detected "
13182 "(eg. C<VolGroup00>)."
13183 msgstr ""
13184
13185 # type: textblock
13186 #: ../src/guestfs-actions.pod:5351
13187 msgid "See also C<guestfs_vgs_full>."
13188 msgstr ""
13189
13190 # type: =head2
13191 #: ../src/guestfs-actions.pod:5357
13192 msgid "guestfs_vgs_full"
13193 msgstr ""
13194
13195 # type: verbatim
13196 #: ../src/guestfs-actions.pod:5359
13197 #, no-wrap
13198 msgid ""
13199 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13200 "\n"
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:4173
13205 msgid ""
13206 "List all the volumes groups detected.  This is the equivalent of the "
13207 "L<vgs(8)> command.  The \"full\" version includes all fields."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5364
13212 msgid ""
13213 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13214 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13215 "must call C<guestfs_free_lvm_vg_list> after use>."
13216 msgstr ""
13217
13218 # type: =head2
13219 #: ../src/guestfs-actions.pod:5369
13220 msgid "guestfs_vgscan"
13221 msgstr ""
13222
13223 # type: verbatim
13224 #: ../src/guestfs-actions.pod:5371
13225 #, no-wrap
13226 msgid ""
13227 " int guestfs_vgscan (guestfs_h *g);\n"
13228 "\n"
13229 msgstr ""
13230
13231 # type: textblock
13232 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:4180
13233 msgid ""
13234 "This rescans all block devices and rebuilds the list of LVM physical "
13235 "volumes, volume groups and logical volumes."
13236 msgstr ""
13237
13238 # type: =head2
13239 #: ../src/guestfs-actions.pod:5378
13240 msgid "guestfs_vguuid"
13241 msgstr ""
13242
13243 # type: verbatim
13244 #: ../src/guestfs-actions.pod:5380
13245 #, no-wrap
13246 msgid ""
13247 " char *guestfs_vguuid (guestfs_h *g,\n"
13248 "\t\tconst char *vgname);\n"
13249 "\n"
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:4187
13254 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13255 msgstr ""
13256
13257 # type: =head2
13258 #: ../src/guestfs-actions.pod:5388
13259 msgid "guestfs_wait_ready"
13260 msgstr ""
13261
13262 # type: verbatim
13263 #: ../src/guestfs-actions.pod:5390
13264 #, no-wrap
13265 msgid ""
13266 " int guestfs_wait_ready (guestfs_h *g);\n"
13267 "\n"
13268 msgstr ""
13269
13270 # type: textblock
13271 #: ../src/guestfs-actions.pod:5392
13272 msgid "This function is a no op."
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5394
13277 msgid ""
13278 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13279 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13280 "is no longer necessary because C<guestfs_launch> now does the waiting."
13281 msgstr ""
13282
13283 # type: textblock
13284 #: ../src/guestfs-actions.pod:5399
13285 msgid ""
13286 "If you see any calls to this function in code then you can just remove them, "
13287 "unless you want to retain compatibility with older versions of the API."
13288 msgstr ""
13289
13290 # type: =head2
13291 #: ../src/guestfs-actions.pod:5405
13292 msgid "guestfs_wc_c"
13293 msgstr ""
13294
13295 # type: verbatim
13296 #: ../src/guestfs-actions.pod:5407
13297 #, no-wrap
13298 msgid ""
13299 " int guestfs_wc_c (guestfs_h *g,\n"
13300 "\t\tconst char *path);\n"
13301 "\n"
13302 msgstr ""
13303
13304 # type: textblock
13305 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:4193
13306 msgid ""
13307 "This command counts the characters in a file, using the C<wc -c> external "
13308 "command."
13309 msgstr ""
13310
13311 # type: =head2
13312 #: ../src/guestfs-actions.pod:5415
13313 msgid "guestfs_wc_l"
13314 msgstr ""
13315
13316 # type: verbatim
13317 #: ../src/guestfs-actions.pod:5417
13318 #, no-wrap
13319 msgid ""
13320 " int guestfs_wc_l (guestfs_h *g,\n"
13321 "\t\tconst char *path);\n"
13322 "\n"
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:4200
13327 msgid ""
13328 "This command counts the lines in a file, using the C<wc -l> external "
13329 "command."
13330 msgstr ""
13331
13332 # type: =head2
13333 #: ../src/guestfs-actions.pod:5425
13334 msgid "guestfs_wc_w"
13335 msgstr ""
13336
13337 # type: verbatim
13338 #: ../src/guestfs-actions.pod:5427
13339 #, no-wrap
13340 msgid ""
13341 " int guestfs_wc_w (guestfs_h *g,\n"
13342 "\t\tconst char *path);\n"
13343 "\n"
13344 msgstr ""
13345
13346 # type: textblock
13347 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:4207
13348 msgid ""
13349 "This command counts the words in a file, using the C<wc -w> external "
13350 "command."
13351 msgstr ""
13352
13353 # type: =head2
13354 #: ../src/guestfs-actions.pod:5435
13355 msgid "guestfs_write"
13356 msgstr ""
13357
13358 # type: verbatim
13359 #: ../src/guestfs-actions.pod:5437
13360 #, no-wrap
13361 msgid ""
13362 " int guestfs_write (guestfs_h *g,\n"
13363 "\t\tconst char *path,\n"
13364 "\t\tconst char *content,\n"
13365 "\t\tsize_t content_size);\n"
13366 "\n"
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:4214
13371 msgid ""
13372 "This call creates a file called C<path>.  The content of the file is the "
13373 "string C<content> (which can contain any 8 bit data)."
13374 msgstr ""
13375
13376 # type: =head2
13377 #: ../src/guestfs-actions.pod:5450
13378 msgid "guestfs_write_file"
13379 msgstr ""
13380
13381 # type: verbatim
13382 #: ../src/guestfs-actions.pod:5452
13383 #, no-wrap
13384 msgid ""
13385 " int guestfs_write_file (guestfs_h *g,\n"
13386 "\t\tconst char *path,\n"
13387 "\t\tconst char *content,\n"
13388 "\t\tint size);\n"
13389 "\n"
13390 msgstr ""
13391
13392 # type: textblock
13393 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:4224
13394 msgid ""
13395 "This call creates a file called C<path>.  The contents of the file is the "
13396 "string C<content> (which can contain any 8 bit data), with length C<size>."
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5461 ../fish/guestfish-actions.pod:4228
13401 msgid ""
13402 "As a special case, if C<size> is C<0> then the length is calculated using "
13403 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13404 msgstr ""
13405
13406 # type: textblock
13407 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:4232
13408 msgid ""
13409 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13410 "I<not> work, even if the length is specified."
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:4238
13415 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13416 msgstr ""
13417
13418 # type: =head2
13419 #: ../src/guestfs-actions.pod:5480
13420 msgid "guestfs_zegrep"
13421 msgstr ""
13422
13423 # type: verbatim
13424 #: ../src/guestfs-actions.pod:5482
13425 #, no-wrap
13426 msgid ""
13427 " char **guestfs_zegrep (guestfs_h *g,\n"
13428 "\t\tconst char *regex,\n"
13429 "\t\tconst char *path);\n"
13430 "\n"
13431 msgstr ""
13432
13433 # type: textblock
13434 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:4249
13435 msgid "This calls the external C<zegrep> program and returns the matching lines."
13436 msgstr ""
13437
13438 # type: =head2
13439 #: ../src/guestfs-actions.pod:5496
13440 msgid "guestfs_zegrepi"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #: ../src/guestfs-actions.pod:5498
13445 #, no-wrap
13446 msgid ""
13447 " char **guestfs_zegrepi (guestfs_h *g,\n"
13448 "\t\tconst char *regex,\n"
13449 "\t\tconst char *path);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:4259
13455 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13456 msgstr ""
13457
13458 # type: =head2
13459 #: ../src/guestfs-actions.pod:5512
13460 msgid "guestfs_zero"
13461 msgstr ""
13462
13463 # type: verbatim
13464 #: ../src/guestfs-actions.pod:5514
13465 #, no-wrap
13466 msgid ""
13467 " int guestfs_zero (guestfs_h *g,\n"
13468 "\t\tconst char *device);\n"
13469 "\n"
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:4269
13474 msgid "This command writes zeroes over the first few blocks of C<device>."
13475 msgstr ""
13476
13477 # type: textblock
13478 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:4271
13479 msgid ""
13480 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13481 "securely wipe the device).  It should be sufficient to remove any partition "
13482 "tables, filesystem superblocks and so on."
13483 msgstr ""
13484
13485 # type: textblock
13486 #: ../src/guestfs-actions.pod:5523
13487 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13488 msgstr ""
13489
13490 # type: =head2
13491 #: ../src/guestfs-actions.pod:5532
13492 msgid "guestfs_zero_device"
13493 msgstr ""
13494
13495 # type: verbatim
13496 #: ../src/guestfs-actions.pod:5534
13497 #, no-wrap
13498 msgid ""
13499 " int guestfs_zero_device (guestfs_h *g,\n"
13500 "\t\tconst char *device);\n"
13501 "\n"
13502 msgstr ""
13503
13504 # type: textblock
13505 #: ../src/guestfs-actions.pod:5537
13506 msgid ""
13507 "This command writes zeroes over the entire C<device>.  Compare with "
13508 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13509 msgstr ""
13510
13511 # type: =head2
13512 #: ../src/guestfs-actions.pod:5551
13513 msgid "guestfs_zerofree"
13514 msgstr ""
13515
13516 # type: verbatim
13517 #: ../src/guestfs-actions.pod:5553
13518 #, no-wrap
13519 msgid ""
13520 " int guestfs_zerofree (guestfs_h *g,\n"
13521 "\t\tconst char *device);\n"
13522 "\n"
13523 msgstr ""
13524
13525 # type: textblock
13526 #: ../src/guestfs-actions.pod:5556 ../fish/guestfish-actions.pod:4292
13527 msgid ""
13528 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13529 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13530 "possible to compress the filesystem more effectively."
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:4297
13535 msgid "You should B<not> run this program if the filesystem is mounted."
13536 msgstr ""
13537
13538 # type: textblock
13539 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:4300
13540 msgid ""
13541 "It is possible that using this program can damage the filesystem or data on "
13542 "the filesystem."
13543 msgstr ""
13544
13545 # type: =head2
13546 #: ../src/guestfs-actions.pod:5569
13547 msgid "guestfs_zfgrep"
13548 msgstr ""
13549
13550 # type: verbatim
13551 #: ../src/guestfs-actions.pod:5571
13552 #, no-wrap
13553 msgid ""
13554 " char **guestfs_zfgrep (guestfs_h *g,\n"
13555 "\t\tconst char *pattern,\n"
13556 "\t\tconst char *path);\n"
13557 "\n"
13558 msgstr ""
13559
13560 # type: textblock
13561 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:4307
13562 msgid "This calls the external C<zfgrep> program and returns the matching lines."
13563 msgstr ""
13564
13565 # type: =head2
13566 #: ../src/guestfs-actions.pod:5585
13567 msgid "guestfs_zfgrepi"
13568 msgstr ""
13569
13570 # type: verbatim
13571 #: ../src/guestfs-actions.pod:5587
13572 #, no-wrap
13573 msgid ""
13574 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13575 "\t\tconst char *pattern,\n"
13576 "\t\tconst char *path);\n"
13577 "\n"
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:4317
13582 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
13583 msgstr ""
13584
13585 # type: =head2
13586 #: ../src/guestfs-actions.pod:5601
13587 msgid "guestfs_zfile"
13588 msgstr ""
13589
13590 # type: verbatim
13591 #: ../src/guestfs-actions.pod:5603
13592 #, no-wrap
13593 msgid ""
13594 " char *guestfs_zfile (guestfs_h *g,\n"
13595 "\t\tconst char *meth,\n"
13596 "\t\tconst char *path);\n"
13597 "\n"
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5607 ../fish/guestfish-actions.pod:4327
13602 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
13603 msgstr ""
13604
13605 # type: textblock
13606 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:4330
13607 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13608 msgstr ""
13609
13610 # type: textblock
13611 #: ../src/guestfs-actions.pod:5612
13612 msgid ""
13613 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13614 "files."
13615 msgstr ""
13616
13617 # type: textblock
13618 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:4335
13619 msgid "This function is deprecated.  In new code, use the C<file> call instead."
13620 msgstr ""
13621
13622 # type: =head2
13623 #: ../src/guestfs-actions.pod:5625
13624 msgid "guestfs_zgrep"
13625 msgstr ""
13626
13627 # type: verbatim
13628 #: ../src/guestfs-actions.pod:5627
13629 #, no-wrap
13630 msgid ""
13631 " char **guestfs_zgrep (guestfs_h *g,\n"
13632 "\t\tconst char *regex,\n"
13633 "\t\tconst char *path);\n"
13634 "\n"
13635 msgstr ""
13636
13637 # type: textblock
13638 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:4346
13639 msgid "This calls the external C<zgrep> program and returns the matching lines."
13640 msgstr ""
13641
13642 # type: =head2
13643 #: ../src/guestfs-actions.pod:5641
13644 msgid "guestfs_zgrepi"
13645 msgstr ""
13646
13647 # type: verbatim
13648 #: ../src/guestfs-actions.pod:5643
13649 #, no-wrap
13650 msgid ""
13651 " char **guestfs_zgrepi (guestfs_h *g,\n"
13652 "\t\tconst char *regex,\n"
13653 "\t\tconst char *path);\n"
13654 "\n"
13655 msgstr ""
13656
13657 # type: textblock
13658 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:4356
13659 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
13660 msgstr ""
13661
13662 # type: =item
13663 #: ../src/guestfs-availability.pod:3
13664 msgid "B<augeas>"
13665 msgstr ""
13666
13667 # type: textblock
13668 #: ../src/guestfs-availability.pod:5
13669 msgid ""
13670 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
13671 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
13672 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
13673 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
13674 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
13675 msgstr ""
13676
13677 # type: =item
13678 #: ../src/guestfs-availability.pod:21
13679 msgid "B<inotify>"
13680 msgstr ""
13681
13682 # type: textblock
13683 #: ../src/guestfs-availability.pod:23
13684 msgid ""
13685 "The following functions: L</guestfs_inotify_add_watch> "
13686 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
13687 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13688 msgstr ""
13689
13690 # type: =item
13691 #: ../src/guestfs-availability.pod:31
13692 msgid "B<linuxfsuuid>"
13693 msgstr ""
13694
13695 # type: textblock
13696 #: ../src/guestfs-availability.pod:33
13697 msgid ""
13698 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
13699 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13700 msgstr ""
13701
13702 # type: =item
13703 #: ../src/guestfs-availability.pod:40
13704 msgid "B<linuxmodules>"
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-availability.pod:42
13709 msgid "The following functions: L</guestfs_modprobe>"
13710 msgstr ""
13711
13712 # type: =item
13713 #: ../src/guestfs-availability.pod:45
13714 msgid "B<linuxxattrs>"
13715 msgstr ""
13716
13717 # type: textblock
13718 #: ../src/guestfs-availability.pod:47
13719 msgid ""
13720 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
13721 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
13722 "L</guestfs_removexattr> L</guestfs_setxattr>"
13723 msgstr ""
13724
13725 # type: =item
13726 #: ../src/guestfs-availability.pod:56
13727 msgid "B<luks>"
13728 msgstr ""
13729
13730 # type: textblock
13731 #: ../src/guestfs-availability.pod:58
13732 msgid ""
13733 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
13734 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
13735 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13736 msgstr ""
13737
13738 # type: =item
13739 #: ../src/guestfs-availability.pod:67
13740 msgid "B<lvm2>"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-availability.pod:69
13745 msgid ""
13746 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
13747 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
13748 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
13749 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
13750 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
13751 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
13752 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
13753 "L</guestfs_vgs_full>"
13754 msgstr ""
13755
13756 # type: =item
13757 #: ../src/guestfs-availability.pod:92
13758 msgid "B<mknod>"
13759 msgstr ""
13760
13761 # type: textblock
13762 #: ../src/guestfs-availability.pod:94
13763 msgid ""
13764 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
13765 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
13766 msgstr ""
13767
13768 # type: =item
13769 #: ../src/guestfs-availability.pod:100
13770 msgid "B<ntfs3g>"
13771 msgstr ""
13772
13773 # type: textblock
13774 #: ../src/guestfs-availability.pod:102
13775 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13776 msgstr ""
13777
13778 # type: =item
13779 #: ../src/guestfs-availability.pod:105
13780 msgid "B<ntfsprogs>"
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-availability.pod:107
13785 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13786 msgstr ""
13787
13788 # type: =item
13789 #: ../src/guestfs-availability.pod:111
13790 msgid "B<realpath>"
13791 msgstr ""
13792
13793 # type: textblock
13794 #: ../src/guestfs-availability.pod:113
13795 msgid "The following functions: L</guestfs_realpath>"
13796 msgstr ""
13797
13798 # type: =item
13799 #: ../src/guestfs-availability.pod:116
13800 msgid "B<scrub>"
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-availability.pod:118
13805 msgid ""
13806 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
13807 "L</guestfs_scrub_freespace>"
13808 msgstr ""
13809
13810 # type: =item
13811 #: ../src/guestfs-availability.pod:123
13812 msgid "B<selinux>"
13813 msgstr ""
13814
13815 # type: textblock
13816 #: ../src/guestfs-availability.pod:125
13817 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
13818 msgstr ""
13819
13820 # type: =item
13821 #: ../src/guestfs-availability.pod:129
13822 msgid "B<xz>"
13823 msgstr ""
13824
13825 # type: textblock
13826 #: ../src/guestfs-availability.pod:131
13827 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
13828 msgstr ""
13829
13830 # type: =item
13831 #: ../src/guestfs-availability.pod:135
13832 msgid "B<zerofree>"
13833 msgstr ""
13834
13835 # type: textblock
13836 #: ../src/guestfs-availability.pod:137
13837 msgid "The following functions: L</guestfs_zerofree>"
13838 msgstr ""
13839
13840 # type: =head2
13841 #: ../src/guestfs-structs.pod:1
13842 msgid "guestfs_int_bool"
13843 msgstr ""
13844
13845 # type: verbatim
13846 #: ../src/guestfs-structs.pod:3
13847 #, no-wrap
13848 msgid ""
13849 " struct guestfs_int_bool {\n"
13850 "   int32_t i;\n"
13851 "   int32_t b;\n"
13852 " };\n"
13853 " \n"
13854 msgstr ""
13855
13856 # type: verbatim
13857 #: ../src/guestfs-structs.pod:8
13858 #, no-wrap
13859 msgid ""
13860 " struct guestfs_int_bool_list {\n"
13861 "   uint32_t len; /* Number of elements in list. */\n"
13862 "   struct guestfs_int_bool *val; /* Elements. */\n"
13863 " };\n"
13864 " \n"
13865 msgstr ""
13866
13867 # type: verbatim
13868 #: ../src/guestfs-structs.pod:13
13869 #, no-wrap
13870 msgid ""
13871 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
13872 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
13873 "\n"
13874 msgstr ""
13875
13876 # type: =head2
13877 #: ../src/guestfs-structs.pod:16
13878 msgid "guestfs_lvm_pv"
13879 msgstr ""
13880
13881 # type: verbatim
13882 #: ../src/guestfs-structs.pod:18
13883 #, no-wrap
13884 msgid ""
13885 " struct guestfs_lvm_pv {\n"
13886 "   char *pv_name;\n"
13887 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13888 "*/\n"
13889 "   char pv_uuid[32];\n"
13890 "   char *pv_fmt;\n"
13891 "   uint64_t pv_size;\n"
13892 "   uint64_t dev_size;\n"
13893 "   uint64_t pv_free;\n"
13894 "   uint64_t pv_used;\n"
13895 "   char *pv_attr;\n"
13896 "   int64_t pv_pe_count;\n"
13897 "   int64_t pv_pe_alloc_count;\n"
13898 "   char *pv_tags;\n"
13899 "   uint64_t pe_start;\n"
13900 "   int64_t pv_mda_count;\n"
13901 "   uint64_t pv_mda_free;\n"
13902 " };\n"
13903 " \n"
13904 msgstr ""
13905
13906 # type: verbatim
13907 #: ../src/guestfs-structs.pod:36
13908 #, no-wrap
13909 msgid ""
13910 " struct guestfs_lvm_pv_list {\n"
13911 "   uint32_t len; /* Number of elements in list. */\n"
13912 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
13913 " };\n"
13914 " \n"
13915 msgstr ""
13916
13917 # type: verbatim
13918 #: ../src/guestfs-structs.pod:41
13919 #, no-wrap
13920 msgid ""
13921 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
13922 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
13923 "\n"
13924 msgstr ""
13925
13926 # type: =head2
13927 #: ../src/guestfs-structs.pod:44
13928 msgid "guestfs_lvm_vg"
13929 msgstr ""
13930
13931 # type: verbatim
13932 #: ../src/guestfs-structs.pod:46
13933 #, no-wrap
13934 msgid ""
13935 " struct guestfs_lvm_vg {\n"
13936 "   char *vg_name;\n"
13937 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13938 "*/\n"
13939 "   char vg_uuid[32];\n"
13940 "   char *vg_fmt;\n"
13941 "   char *vg_attr;\n"
13942 "   uint64_t vg_size;\n"
13943 "   uint64_t vg_free;\n"
13944 "   char *vg_sysid;\n"
13945 "   uint64_t vg_extent_size;\n"
13946 "   int64_t vg_extent_count;\n"
13947 "   int64_t vg_free_count;\n"
13948 "   int64_t max_lv;\n"
13949 "   int64_t max_pv;\n"
13950 "   int64_t pv_count;\n"
13951 "   int64_t lv_count;\n"
13952 "   int64_t snap_count;\n"
13953 "   int64_t vg_seqno;\n"
13954 "   char *vg_tags;\n"
13955 "   int64_t vg_mda_count;\n"
13956 "   uint64_t vg_mda_free;\n"
13957 " };\n"
13958 " \n"
13959 msgstr ""
13960
13961 # type: verbatim
13962 #: ../src/guestfs-structs.pod:69
13963 #, no-wrap
13964 msgid ""
13965 " struct guestfs_lvm_vg_list {\n"
13966 "   uint32_t len; /* Number of elements in list. */\n"
13967 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
13968 " };\n"
13969 " \n"
13970 msgstr ""
13971
13972 # type: verbatim
13973 #: ../src/guestfs-structs.pod:74
13974 #, no-wrap
13975 msgid ""
13976 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
13977 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
13978 "\n"
13979 msgstr ""
13980
13981 # type: =head2
13982 #: ../src/guestfs-structs.pod:77
13983 msgid "guestfs_lvm_lv"
13984 msgstr ""
13985
13986 # type: verbatim
13987 #: ../src/guestfs-structs.pod:79
13988 #, no-wrap
13989 msgid ""
13990 " struct guestfs_lvm_lv {\n"
13991 "   char *lv_name;\n"
13992 "   /* The next field is NOT nul-terminated, be careful when printing it: "
13993 "*/\n"
13994 "   char lv_uuid[32];\n"
13995 "   char *lv_attr;\n"
13996 "   int64_t lv_major;\n"
13997 "   int64_t lv_minor;\n"
13998 "   int64_t lv_kernel_major;\n"
13999 "   int64_t lv_kernel_minor;\n"
14000 "   uint64_t lv_size;\n"
14001 "   int64_t seg_count;\n"
14002 "   char *origin;\n"
14003 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14004 "   float snap_percent;\n"
14005 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14006 "   float copy_percent;\n"
14007 "   char *move_pv;\n"
14008 "   char *lv_tags;\n"
14009 "   char *mirror_log;\n"
14010 "   char *modules;\n"
14011 " };\n"
14012 " \n"
14013 msgstr ""
14014
14015 # type: verbatim
14016 #: ../src/guestfs-structs.pod:101
14017 #, no-wrap
14018 msgid ""
14019 " struct guestfs_lvm_lv_list {\n"
14020 "   uint32_t len; /* Number of elements in list. */\n"
14021 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14022 " };\n"
14023 " \n"
14024 msgstr ""
14025
14026 # type: verbatim
14027 #: ../src/guestfs-structs.pod:106
14028 #, no-wrap
14029 msgid ""
14030 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14031 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14032 "\n"
14033 msgstr ""
14034
14035 # type: verbatim
14036 #: ../src/guestfs-structs.pod:111
14037 #, no-wrap
14038 msgid ""
14039 " struct guestfs_stat {\n"
14040 "   int64_t dev;\n"
14041 "   int64_t ino;\n"
14042 "   int64_t mode;\n"
14043 "   int64_t nlink;\n"
14044 "   int64_t uid;\n"
14045 "   int64_t gid;\n"
14046 "   int64_t rdev;\n"
14047 "   int64_t size;\n"
14048 "   int64_t blksize;\n"
14049 "   int64_t blocks;\n"
14050 "   int64_t atime;\n"
14051 "   int64_t mtime;\n"
14052 "   int64_t ctime;\n"
14053 " };\n"
14054 " \n"
14055 msgstr ""
14056
14057 # type: verbatim
14058 #: ../src/guestfs-structs.pod:127
14059 #, no-wrap
14060 msgid ""
14061 " struct guestfs_stat_list {\n"
14062 "   uint32_t len; /* Number of elements in list. */\n"
14063 "   struct guestfs_stat *val; /* Elements. */\n"
14064 " };\n"
14065 " \n"
14066 msgstr ""
14067
14068 # type: verbatim
14069 #: ../src/guestfs-structs.pod:132
14070 #, no-wrap
14071 msgid ""
14072 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14073 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14074 "\n"
14075 msgstr ""
14076
14077 # type: verbatim
14078 #: ../src/guestfs-structs.pod:137
14079 #, no-wrap
14080 msgid ""
14081 " struct guestfs_statvfs {\n"
14082 "   int64_t bsize;\n"
14083 "   int64_t frsize;\n"
14084 "   int64_t blocks;\n"
14085 "   int64_t bfree;\n"
14086 "   int64_t bavail;\n"
14087 "   int64_t files;\n"
14088 "   int64_t ffree;\n"
14089 "   int64_t favail;\n"
14090 "   int64_t fsid;\n"
14091 "   int64_t flag;\n"
14092 "   int64_t namemax;\n"
14093 " };\n"
14094 " \n"
14095 msgstr ""
14096
14097 # type: verbatim
14098 #: ../src/guestfs-structs.pod:151
14099 #, no-wrap
14100 msgid ""
14101 " struct guestfs_statvfs_list {\n"
14102 "   uint32_t len; /* Number of elements in list. */\n"
14103 "   struct guestfs_statvfs *val; /* Elements. */\n"
14104 " };\n"
14105 " \n"
14106 msgstr ""
14107
14108 # type: verbatim
14109 #: ../src/guestfs-structs.pod:156
14110 #, no-wrap
14111 msgid ""
14112 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14113 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14114 "\n"
14115 msgstr ""
14116
14117 # type: =head2
14118 #: ../src/guestfs-structs.pod:159
14119 msgid "guestfs_dirent"
14120 msgstr ""
14121
14122 # type: verbatim
14123 #: ../src/guestfs-structs.pod:161
14124 #, no-wrap
14125 msgid ""
14126 " struct guestfs_dirent {\n"
14127 "   int64_t ino;\n"
14128 "   char ftyp;\n"
14129 "   char *name;\n"
14130 " };\n"
14131 " \n"
14132 msgstr ""
14133
14134 # type: verbatim
14135 #: ../src/guestfs-structs.pod:167
14136 #, no-wrap
14137 msgid ""
14138 " struct guestfs_dirent_list {\n"
14139 "   uint32_t len; /* Number of elements in list. */\n"
14140 "   struct guestfs_dirent *val; /* Elements. */\n"
14141 " };\n"
14142 " \n"
14143 msgstr ""
14144
14145 # type: verbatim
14146 #: ../src/guestfs-structs.pod:172
14147 #, no-wrap
14148 msgid ""
14149 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14150 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14151 "\n"
14152 msgstr ""
14153
14154 # type: verbatim
14155 #: ../src/guestfs-structs.pod:177
14156 #, no-wrap
14157 msgid ""
14158 " struct guestfs_version {\n"
14159 "   int64_t major;\n"
14160 "   int64_t minor;\n"
14161 "   int64_t release;\n"
14162 "   char *extra;\n"
14163 " };\n"
14164 " \n"
14165 msgstr ""
14166
14167 # type: verbatim
14168 #: ../src/guestfs-structs.pod:184
14169 #, no-wrap
14170 msgid ""
14171 " struct guestfs_version_list {\n"
14172 "   uint32_t len; /* Number of elements in list. */\n"
14173 "   struct guestfs_version *val; /* Elements. */\n"
14174 " };\n"
14175 " \n"
14176 msgstr ""
14177
14178 # type: verbatim
14179 #: ../src/guestfs-structs.pod:189
14180 #, no-wrap
14181 msgid ""
14182 " void guestfs_free_version (struct guestfs_free_version *);\n"
14183 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14184 "\n"
14185 msgstr ""
14186
14187 # type: =head2
14188 #: ../src/guestfs-structs.pod:192
14189 msgid "guestfs_xattr"
14190 msgstr ""
14191
14192 # type: verbatim
14193 #: ../src/guestfs-structs.pod:194
14194 #, no-wrap
14195 msgid ""
14196 " struct guestfs_xattr {\n"
14197 "   char *attrname;\n"
14198 "   /* The next two fields describe a byte array. */\n"
14199 "   uint32_t attrval_len;\n"
14200 "   char *attrval;\n"
14201 " };\n"
14202 " \n"
14203 msgstr ""
14204
14205 # type: verbatim
14206 #: ../src/guestfs-structs.pod:201
14207 #, no-wrap
14208 msgid ""
14209 " struct guestfs_xattr_list {\n"
14210 "   uint32_t len; /* Number of elements in list. */\n"
14211 "   struct guestfs_xattr *val; /* Elements. */\n"
14212 " };\n"
14213 " \n"
14214 msgstr ""
14215
14216 # type: verbatim
14217 #: ../src/guestfs-structs.pod:206
14218 #, no-wrap
14219 msgid ""
14220 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14221 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14222 "\n"
14223 msgstr ""
14224
14225 # type: =head2
14226 #: ../src/guestfs-structs.pod:209
14227 msgid "guestfs_inotify_event"
14228 msgstr ""
14229
14230 # type: verbatim
14231 #: ../src/guestfs-structs.pod:211
14232 #, no-wrap
14233 msgid ""
14234 " struct guestfs_inotify_event {\n"
14235 "   int64_t in_wd;\n"
14236 "   uint32_t in_mask;\n"
14237 "   uint32_t in_cookie;\n"
14238 "   char *in_name;\n"
14239 " };\n"
14240 " \n"
14241 msgstr ""
14242
14243 # type: verbatim
14244 #: ../src/guestfs-structs.pod:218
14245 #, no-wrap
14246 msgid ""
14247 " struct guestfs_inotify_event_list {\n"
14248 "   uint32_t len; /* Number of elements in list. */\n"
14249 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14250 " };\n"
14251 " \n"
14252 msgstr ""
14253
14254 # type: verbatim
14255 #: ../src/guestfs-structs.pod:223
14256 #, no-wrap
14257 msgid ""
14258 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14259 " void guestfs_free_inotify_event_list (struct "
14260 "guestfs_free_inotify_event_list *);\n"
14261 "\n"
14262 msgstr ""
14263
14264 # type: =head2
14265 #: ../src/guestfs-structs.pod:226
14266 msgid "guestfs_partition"
14267 msgstr ""
14268
14269 # type: verbatim
14270 #: ../src/guestfs-structs.pod:228
14271 #, no-wrap
14272 msgid ""
14273 " struct guestfs_partition {\n"
14274 "   int32_t part_num;\n"
14275 "   uint64_t part_start;\n"
14276 "   uint64_t part_end;\n"
14277 "   uint64_t part_size;\n"
14278 " };\n"
14279 " \n"
14280 msgstr ""
14281
14282 # type: verbatim
14283 #: ../src/guestfs-structs.pod:235
14284 #, no-wrap
14285 msgid ""
14286 " struct guestfs_partition_list {\n"
14287 "   uint32_t len; /* Number of elements in list. */\n"
14288 "   struct guestfs_partition *val; /* Elements. */\n"
14289 " };\n"
14290 " \n"
14291 msgstr ""
14292
14293 # type: verbatim
14294 #: ../src/guestfs-structs.pod:240
14295 #, no-wrap
14296 msgid ""
14297 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14298 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14299 "\n"
14300 msgstr ""
14301
14302 # type: textblock
14303 #: ../fish/guestfish.pod:5
14304 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14305 msgstr ""
14306
14307 # type: verbatim
14308 #: ../fish/guestfish.pod:9
14309 #, no-wrap
14310 msgid ""
14311 " guestfish [--options] [commands]\n"
14312 "\n"
14313 msgstr ""
14314
14315 # type: verbatim
14316 #: ../fish/guestfish.pod:11
14317 #, no-wrap
14318 msgid ""
14319 " guestfish\n"
14320 "\n"
14321 msgstr ""
14322
14323 # type: verbatim
14324 #: ../fish/guestfish.pod:13
14325 #, no-wrap
14326 msgid ""
14327 " guestfish -a disk.img\n"
14328 "\n"
14329 msgstr ""
14330
14331 # type: verbatim
14332 #: ../fish/guestfish.pod:15
14333 #, no-wrap
14334 msgid ""
14335 " guestfish -a disk.img -m dev[:mountpoint]\n"
14336 "\n"
14337 msgstr ""
14338
14339 # type: verbatim
14340 #: ../fish/guestfish.pod:17
14341 #, no-wrap
14342 msgid ""
14343 " guestfish -d libvirt-domain\n"
14344 "\n"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../fish/guestfish.pod:19
14349 #, no-wrap
14350 msgid ""
14351 " guestfish -a disk.img -i\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: verbatim
14356 #: ../fish/guestfish.pod:21
14357 #, no-wrap
14358 msgid ""
14359 " guestfish -d libvirt-domain -i\n"
14360 "\n"
14361 msgstr ""
14362
14363 # type: =head1
14364 #: ../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
14365 msgid "WARNING"
14366 msgstr ""
14367
14368 # type: textblock
14369 #: ../fish/guestfish.pod:25
14370 msgid ""
14371 "Using guestfish in read/write mode on live virtual machines can be "
14372 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14373 "option to use guestfish safely if the disk image or virtual machine might be "
14374 "live."
14375 msgstr ""
14376
14377 # type: textblock
14378 #: ../fish/guestfish.pod:32
14379 msgid ""
14380 "Guestfish is a shell and command-line tool for examining and modifying "
14381 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14382 "functionality of the guestfs API, see L<guestfs(3)>."
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../fish/guestfish.pod:36
14387 msgid ""
14388 "Guestfish gives you structured access to the libguestfs API, from shell "
14389 "scripts or the command line or interactively.  If you want to rescue a "
14390 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14391 "command."
14392 msgstr ""
14393
14394 # type: =head1
14395 #: ../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
14396 msgid "EXAMPLES"
14397 msgstr ""
14398
14399 # type: =head2
14400 #: ../fish/guestfish.pod:43
14401 msgid "As an interactive shell"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #: ../fish/guestfish.pod:45
14406 #, no-wrap
14407 msgid ""
14408 " $ guestfish\n"
14409 " \n"
14410 msgstr ""
14411
14412 # type: verbatim
14413 #: ../fish/guestfish.pod:47
14414 #, no-wrap
14415 msgid ""
14416 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14417 " editing virtual machine filesystems.\n"
14418 " \n"
14419 msgstr ""
14420
14421 # type: verbatim
14422 #: ../fish/guestfish.pod:50
14423 #, no-wrap
14424 msgid ""
14425 " Type: 'help' for a list of commands\n"
14426 "       'man' to read the manual\n"
14427 "       'quit' to quit the shell\n"
14428 " \n"
14429 msgstr ""
14430
14431 # type: verbatim
14432 #: ../fish/guestfish.pod:54
14433 #, no-wrap
14434 msgid ""
14435 " ><fs> add-ro disk.img\n"
14436 " ><fs> run\n"
14437 " ><fs> list-filesystems\n"
14438 " /dev/sda1: ext4\n"
14439 " /dev/vg_guest/lv_root: ext4\n"
14440 " /dev/vg_guest/lv_swap: swap\n"
14441 " ><fs> mount /dev/vg_guest/lv_root /\n"
14442 " ><fs> cat /etc/fstab\n"
14443 " # /etc/fstab\n"
14444 " # Created by anaconda\n"
14445 " [...]\n"
14446 " ><fs> exit\n"
14447 "\n"
14448 msgstr ""
14449
14450 # type: =head2
14451 #: ../fish/guestfish.pod:67
14452 msgid "From shell scripts"
14453 msgstr ""
14454
14455 # type: textblock
14456 #: ../fish/guestfish.pod:69
14457 msgid "Create a new C</etc/motd> file in a guest or disk image:"
14458 msgstr ""
14459
14460 # type: verbatim
14461 #: ../fish/guestfish.pod:71
14462 #, no-wrap
14463 msgid ""
14464 " guestfish <<_EOF_\n"
14465 " add disk.img\n"
14466 " run\n"
14467 " mount /dev/vg_guest/lv_root /\n"
14468 " write /etc/motd \"Welcome, new users\"\n"
14469 " _EOF_\n"
14470 "\n"
14471 msgstr ""
14472
14473 # type: textblock
14474 #: ../fish/guestfish.pod:78
14475 msgid "List the LVM logical volumes in a disk image:"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../fish/guestfish.pod:80
14480 #, no-wrap
14481 msgid ""
14482 " guestfish -a disk.img --ro <<_EOF_\n"
14483 " run\n"
14484 " lvs\n"
14485 " _EOF_\n"
14486 "\n"
14487 msgstr ""
14488
14489 # type: textblock
14490 #: ../fish/guestfish.pod:85
14491 msgid "List all the filesystems in a disk image:"
14492 msgstr ""
14493
14494 # type: verbatim
14495 #: ../fish/guestfish.pod:87
14496 #, no-wrap
14497 msgid ""
14498 " guestfish -a disk.img --ro <<_EOF_\n"
14499 " run\n"
14500 " list-filesystems\n"
14501 " _EOF_\n"
14502 "\n"
14503 msgstr ""
14504
14505 # type: =head2
14506 #: ../fish/guestfish.pod:92
14507 msgid "On one command line"
14508 msgstr ""
14509
14510 # type: textblock
14511 #: ../fish/guestfish.pod:94
14512 msgid "Update C</etc/resolv.conf> in a guest:"
14513 msgstr ""
14514
14515 # type: verbatim
14516 #: ../fish/guestfish.pod:96
14517 #, no-wrap
14518 msgid ""
14519 " guestfish \\\n"
14520 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14521 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14522 "\n"
14523 msgstr ""
14524
14525 # type: textblock
14526 #: ../fish/guestfish.pod:100
14527 msgid "Edit C</boot/grub/grub.conf> interactively:"
14528 msgstr ""
14529
14530 # type: verbatim
14531 #: ../fish/guestfish.pod:102
14532 #, no-wrap
14533 msgid ""
14534 " guestfish --add disk.img \\\n"
14535 "   --mount /dev/vg_guest/lv_root \\\n"
14536 "   --mount /dev/sda1:/boot \\\n"
14537 "   edit /boot/grub/grub.conf\n"
14538 "\n"
14539 msgstr ""
14540
14541 # type: =head2
14542 #: ../fish/guestfish.pod:107
14543 msgid "Mount disks automatically"
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../fish/guestfish.pod:109
14548 msgid ""
14549 "Use the I<-i> option to automatically mount the disks from a virtual "
14550 "machine:"
14551 msgstr ""
14552
14553 # type: verbatim
14554 #: ../fish/guestfish.pod:112
14555 #, no-wrap
14556 msgid ""
14557 " guestfish --ro -a disk.img -i cat /etc/group\n"
14558 "\n"
14559 msgstr ""
14560
14561 # type: verbatim
14562 #: ../fish/guestfish.pod:114
14563 #, no-wrap
14564 msgid ""
14565 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14566 "\n"
14567 msgstr ""
14568
14569 # type: textblock
14570 #: ../fish/guestfish.pod:116
14571 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
14572 msgstr ""
14573
14574 # type: verbatim
14575 #: ../fish/guestfish.pod:118
14576 #, no-wrap
14577 msgid ""
14578 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
14579 "\n"
14580 msgstr ""
14581
14582 # type: =head2
14583 #: ../fish/guestfish.pod:120
14584 msgid "As a script interpreter"
14585 msgstr ""
14586
14587 # type: textblock
14588 #: ../fish/guestfish.pod:122
14589 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14590 msgstr ""
14591
14592 # type: verbatim
14593 #: ../fish/guestfish.pod:124
14594 #, no-wrap
14595 msgid ""
14596 " #!/usr/bin/guestfish -f\n"
14597 " sparse test1.img 100M\n"
14598 " run\n"
14599 " part-disk /dev/sda mbr\n"
14600 " mkfs ext2 /dev/sda1\n"
14601 "\n"
14602 msgstr ""
14603
14604 # type: =head2
14605 #: ../fish/guestfish.pod:130
14606 msgid "Start with a prepared disk"
14607 msgstr ""
14608
14609 # type: textblock
14610 #: ../fish/guestfish.pod:132
14611 msgid ""
14612 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14613 "single ext2-formatted partition:"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #: ../fish/guestfish.pod:135
14618 #, no-wrap
14619 msgid ""
14620 " guestfish -N fs\n"
14621 "\n"
14622 msgstr ""
14623
14624 # type: textblock
14625 #: ../fish/guestfish.pod:137
14626 msgid "To list what is available do:"
14627 msgstr ""
14628
14629 # type: verbatim
14630 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:750
14631 #, no-wrap
14632 msgid ""
14633 " guestfish -N help | less\n"
14634 "\n"
14635 msgstr ""
14636
14637 # type: =head2
14638 #: ../fish/guestfish.pod:141
14639 msgid "Remote control"
14640 msgstr ""
14641
14642 # type: verbatim
14643 #: ../fish/guestfish.pod:143
14644 #, no-wrap
14645 msgid ""
14646 " eval `guestfish --listen`\n"
14647 " guestfish --remote add-ro disk.img\n"
14648 " guestfish --remote run\n"
14649 " guestfish --remote lvs\n"
14650 "\n"
14651 msgstr ""
14652
14653 # type: =head1
14654 #: ../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:233 ../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
14655 msgid "OPTIONS"
14656 msgstr ""
14657
14658 # type: =item
14659 #: ../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:241 ../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
14660 msgid "B<--help>"
14661 msgstr ""
14662
14663 # type: textblock
14664 #: ../fish/guestfish.pod:154
14665 msgid "Displays general help on options."
14666 msgstr ""
14667
14668 # type: =item
14669 #: ../fish/guestfish.pod:156
14670 msgid "B<-h> | B<--cmd-help>"
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../fish/guestfish.pod:158
14675 msgid "Lists all available guestfish commands."
14676 msgstr ""
14677
14678 # type: =item
14679 #: ../fish/guestfish.pod:160
14680 msgid "B<-h cmd> | B<--cmd-help cmd>"
14681 msgstr ""
14682
14683 # type: textblock
14684 #: ../fish/guestfish.pod:162
14685 msgid "Displays detailed help on a single command C<cmd>."
14686 msgstr ""
14687
14688 # type: =item
14689 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:74
14690 msgid "B<-a image> | B<--add image>"
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../fish/guestfish.pod:166
14695 msgid "Add a block device or virtual machine image to the shell."
14696 msgstr ""
14697
14698 # type: =item
14699 #: ../fish/guestfish.pod:168
14700 msgid "B<-c URI> | B<--connect URI>"
14701 msgstr ""
14702
14703 # type: textblock
14704 #: ../fish/guestfish.pod:170
14705 msgid ""
14706 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14707 "URI to use.  The default is to use the default libvirt connection."
14708 msgstr ""
14709
14710 # type: =item
14711 #: ../fish/guestfish.pod:174
14712 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14713 msgstr ""
14714
14715 # type: textblock
14716 #: ../fish/guestfish.pod:176
14717 msgid ""
14718 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14719 "used, then any libvirt domain can be used.  However in write mode, only "
14720 "libvirt domains which are shut down can be named here."
14721 msgstr ""
14722
14723 # type: =item
14724 #: ../fish/guestfish.pod:180
14725 msgid "B<-D> | B<--no-dest-paths>"
14726 msgstr ""
14727
14728 # type: textblock
14729 #: ../fish/guestfish.pod:182
14730 msgid ""
14731 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14732 "to hit the tab key to complete paths on the guest filesystem, but this "
14733 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14734 "allow this feature to be disabled."
14735 msgstr ""
14736
14737 # type: =item
14738 #: ../fish/guestfish.pod:187
14739 msgid "B<--echo-keys>"
14740 msgstr ""
14741
14742 # type: textblock
14743 #: ../fish/guestfish.pod:189
14744 msgid ""
14745 "When prompting for keys and passphrases, guestfish normally turns echoing "
14746 "off so you cannot see what you are typing.  If you are not worried about "
14747 "Tempest attacks and there is no one else in the room you can specify this "
14748 "flag to see what you are typing."
14749 msgstr ""
14750
14751 # type: =item
14752 #: ../fish/guestfish.pod:194
14753 msgid "B<-f file> | B<--file file>"
14754 msgstr ""
14755
14756 # type: textblock
14757 #: ../fish/guestfish.pod:196
14758 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14759 msgstr ""
14760
14761 # type: verbatim
14762 #: ../fish/guestfish.pod:199
14763 #, no-wrap
14764 msgid ""
14765 " #!/usr/bin/guestfish -f\n"
14766 "\n"
14767 msgstr ""
14768
14769 # type: =item
14770 #: ../fish/guestfish.pod:201
14771 msgid "B<-i> | B<--inspector>"
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../fish/guestfish.pod:203
14776 msgid ""
14777 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14778 "system and mount filesystems as they would be mounted on the real virtual "
14779 "machine."
14780 msgstr ""
14781
14782 # type: textblock
14783 #: ../fish/guestfish.pod:207
14784 msgid "Typical usage is either:"
14785 msgstr ""
14786
14787 # type: verbatim
14788 #: ../fish/guestfish.pod:209
14789 #, no-wrap
14790 msgid ""
14791 " guestfish -d myguest -i\n"
14792 "\n"
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../fish/guestfish.pod:211
14797 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14798 msgstr ""
14799
14800 # type: verbatim
14801 #: ../fish/guestfish.pod:213
14802 #, no-wrap
14803 msgid ""
14804 " guestfish --ro -d myguest -i\n"
14805 "\n"
14806 msgstr ""
14807
14808 # type: textblock
14809 #: ../fish/guestfish.pod:215
14810 msgid "(for active domains, readonly), or specify the block device directly:"
14811 msgstr ""
14812
14813 # type: verbatim
14814 #: ../fish/guestfish.pod:217
14815 #, no-wrap
14816 msgid ""
14817 " guestfish -a /dev/Guests/MyGuest -i\n"
14818 "\n"
14819 msgstr ""
14820
14821 # type: textblock
14822 #: ../fish/guestfish.pod:219
14823 msgid ""
14824 "Note that the command line syntax changed slightly over older versions of "
14825 "guestfish.  You can still use the old syntax:"
14826 msgstr ""
14827
14828 # type: verbatim
14829 #: ../fish/guestfish.pod:222
14830 #, no-wrap
14831 msgid ""
14832 " guestfish [--ro] -i disk.img\n"
14833 "\n"
14834 msgstr ""
14835
14836 # type: verbatim
14837 #: ../fish/guestfish.pod:224
14838 #, no-wrap
14839 msgid ""
14840 " guestfish [--ro] -i libvirt-domain\n"
14841 "\n"
14842 msgstr ""
14843
14844 # type: =item
14845 #: ../fish/guestfish.pod:226
14846 msgid "B<--keys-from-stdin>"
14847 msgstr ""
14848
14849 # type: textblock
14850 #: ../fish/guestfish.pod:228
14851 msgid ""
14852 "Read key or passphrase parameters from stdin.  The default is to try to read "
14853 "passphrases from the user by opening C</dev/tty>."
14854 msgstr ""
14855
14856 # type: =item
14857 #: ../fish/guestfish.pod:231
14858 msgid "B<--listen>"
14859 msgstr ""
14860
14861 # type: textblock
14862 #: ../fish/guestfish.pod:233
14863 msgid ""
14864 "Fork into the background and listen for remote commands.  See section "
14865 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
14866 msgstr ""
14867
14868 # type: =item
14869 #: ../fish/guestfish.pod:236
14870 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
14871 msgstr ""
14872
14873 # type: textblock
14874 #: ../fish/guestfish.pod:238
14875 msgid "Mount the named partition or logical volume on the given mountpoint."
14876 msgstr ""
14877
14878 # type: textblock
14879 #: ../fish/guestfish.pod:240
14880 msgid "If the mountpoint is omitted, it defaults to C</>."
14881 msgstr ""
14882
14883 # type: textblock
14884 #: ../fish/guestfish.pod:242
14885 msgid "You have to mount something on C</> before most commands will work."
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../fish/guestfish.pod:244
14890 msgid ""
14891 "If any I<-m> or I<--mount> options are given, the guest is automatically "
14892 "launched."
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../fish/guestfish.pod:247
14897 msgid ""
14898 "If you don't know what filesystems a disk image contains, you can either run "
14899 "guestfish without this option, then list the partitions and LVs available "
14900 "(see L</list-partitions> and L</lvs> commands), or you can use the "
14901 "L<virt-list-filesystems(1)> program."
14902 msgstr ""
14903
14904 # type: =item
14905 #: ../fish/guestfish.pod:252 ../fuse/guestmount.pod:106
14906 msgid "B<-n> | B<--no-sync>"
14907 msgstr ""
14908
14909 # type: textblock
14910 #: ../fish/guestfish.pod:254
14911 msgid ""
14912 "Disable autosync.  This is enabled by default.  See the discussion of "
14913 "autosync in the L<guestfs(3)> manpage."
14914 msgstr ""
14915
14916 # type: =item
14917 #: ../fish/guestfish.pod:257
14918 msgid "B<-N type> | B<--new type> | B<-N help>"
14919 msgstr ""
14920
14921 # type: textblock
14922 #: ../fish/guestfish.pod:259
14923 msgid ""
14924 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
14925 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
14926 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
14927 "IMAGES> below."
14928 msgstr ""
14929
14930 # type: =item
14931 #: ../fish/guestfish.pod:264
14932 msgid "B<--progress-bars>"
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../fish/guestfish.pod:266
14937 msgid "Enable progress bars, even when guestfish is used non-interactively."
14938 msgstr ""
14939
14940 # type: textblock
14941 #: ../fish/guestfish.pod:268
14942 msgid ""
14943 "Progress bars are enabled by default when guestfish is used as an "
14944 "interactive shell."
14945 msgstr ""
14946
14947 # type: =item
14948 #: ../fish/guestfish.pod:271
14949 msgid "B<--no-progress-bars>"
14950 msgstr ""
14951
14952 # type: textblock
14953 #: ../fish/guestfish.pod:273
14954 msgid "Disable progress bars."
14955 msgstr ""
14956
14957 # type: =item
14958 #: ../fish/guestfish.pod:275
14959 msgid "B<--remote[=pid]>"
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../fish/guestfish.pod:277
14964 msgid ""
14965 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
14966 "CONTROL GUESTFISH OVER A SOCKET> below."
14967 msgstr ""
14968
14969 # type: =item
14970 #: ../fish/guestfish.pod:280 ../fuse/guestmount.pod:148
14971 msgid "B<-r> | B<--ro>"
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../fish/guestfish.pod:282
14976 msgid ""
14977 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
14978 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
14979 msgstr ""
14980
14981 # type: textblock
14982 #: ../fish/guestfish.pod:285 ../tools/virt-rescue.pl:162
14983 msgid ""
14984 "The option must always be used if the disk image or virtual machine might be "
14985 "running, and is generally recommended in cases where you don't need write "
14986 "access to the disk."
14987 msgstr ""
14988
14989 # type: textblock
14990 #: ../fish/guestfish.pod:289
14991 msgid ""
14992 "Note that prepared disk images created with I<-N> are not affected by the "
14993 "I<--ro> option."
14994 msgstr ""
14995
14996 # type: =item
14997 #: ../fish/guestfish.pod:292 ../fuse/guestmount.pod:158 ../tools/virt-rescue.pl:170
14998 msgid "B<--selinux>"
14999 msgstr ""
15000
15001 # type: textblock
15002 #: ../fish/guestfish.pod:294
15003 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15004 msgstr ""
15005
15006 # type: =item
15007 #: ../fish/guestfish.pod:296 ../fuse/guestmount.pod:168
15008 msgid "B<-v> | B<--verbose>"
15009 msgstr ""
15010
15011 # type: textblock
15012 #: ../fish/guestfish.pod:298
15013 msgid ""
15014 "Enable very verbose messages.  This is particularly useful if you find a "
15015 "bug."
15016 msgstr ""
15017
15018 # type: =item
15019 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:172
15020 msgid "B<-V> | B<--version>"
15021 msgstr ""
15022
15023 # type: textblock
15024 #: ../fish/guestfish.pod:303
15025 msgid "Display the guestfish / libguestfs version number and exit."
15026 msgstr ""
15027
15028 # type: =item
15029 #: ../fish/guestfish.pod:305
15030 msgid "B<-x>"
15031 msgstr ""
15032
15033 # type: textblock
15034 #: ../fish/guestfish.pod:307
15035 msgid "Echo each command before executing it."
15036 msgstr ""
15037
15038 # type: =head1
15039 #: ../fish/guestfish.pod:311
15040 msgid "COMMANDS ON COMMAND LINE"
15041 msgstr ""
15042
15043 # type: textblock
15044 #: ../fish/guestfish.pod:313
15045 msgid "Any additional (non-option) arguments are treated as commands to execute."
15046 msgstr ""
15047
15048 # type: textblock
15049 #: ../fish/guestfish.pod:316
15050 msgid ""
15051 "Commands to execute should be separated by a colon (C<:>), where the colon "
15052 "is a separate parameter.  Thus:"
15053 msgstr ""
15054
15055 # type: verbatim
15056 #: ../fish/guestfish.pod:319
15057 #, no-wrap
15058 msgid ""
15059 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15060 "\n"
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../fish/guestfish.pod:321
15065 msgid ""
15066 "If there are no additional arguments, then we enter a shell, either an "
15067 "interactive shell with a prompt (if the input is a terminal) or a "
15068 "non-interactive shell."
15069 msgstr ""
15070
15071 # type: textblock
15072 #: ../fish/guestfish.pod:325
15073 msgid ""
15074 "In either command line mode or non-interactive shell, the first command that "
15075 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15076 "prompt) if a command fails, you can continue to enter commands."
15077 msgstr ""
15078
15079 # type: =head1
15080 #: ../fish/guestfish.pod:330
15081 msgid "USING launch (OR run)"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../fish/guestfish.pod:332
15086 msgid ""
15087 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15088 "then launch it, then mount any disks you need, and finally issue "
15089 "actions/commands.  So the general order of the day is:"
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../fish/guestfish.pod:340
15094 msgid "add or -a/--add"
15095 msgstr ""
15096
15097 # type: textblock
15098 #: ../fish/guestfish.pod:344
15099 msgid "launch (aka run)"
15100 msgstr ""
15101
15102 # type: textblock
15103 #: ../fish/guestfish.pod:348
15104 msgid "mount or -m/--mount"
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../fish/guestfish.pod:352
15109 msgid "any other commands"
15110 msgstr ""
15111
15112 # type: textblock
15113 #: ../fish/guestfish.pod:356
15114 msgid ""
15115 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15116 "guest before mounting or performing any other commands."
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../fish/guestfish.pod:359
15121 msgid ""
15122 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15123 "I<--new> options were given then C<run> is done automatically, simply "
15124 "because guestfish can't perform the action you asked for without doing this."
15125 msgstr ""
15126
15127 # type: =head1
15128 #: ../fish/guestfish.pod:364
15129 msgid "QUOTING"
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../fish/guestfish.pod:366
15134 msgid ""
15135 "You can quote ordinary parameters using either single or double quotes.  For "
15136 "example:"
15137 msgstr ""
15138
15139 # type: verbatim
15140 #: ../fish/guestfish.pod:369
15141 #, no-wrap
15142 msgid ""
15143 " add \"file with a space.img\"\n"
15144 "\n"
15145 msgstr ""
15146
15147 # type: verbatim
15148 #: ../fish/guestfish.pod:371
15149 #, no-wrap
15150 msgid ""
15151 " rm '/file name'\n"
15152 "\n"
15153 msgstr ""
15154
15155 # type: verbatim
15156 #: ../fish/guestfish.pod:373
15157 #, no-wrap
15158 msgid ""
15159 " rm '/\"'\n"
15160 "\n"
15161 msgstr ""
15162
15163 # type: textblock
15164 #: ../fish/guestfish.pod:375
15165 msgid ""
15166 "A few commands require a list of strings to be passed.  For these, use a "
15167 "whitespace-separated list, enclosed in quotes.  Strings containing "
15168 "whitespace to be passed through must be enclosed in single quotes.  A "
15169 "literal single quote must be escaped with a backslash."
15170 msgstr ""
15171
15172 # type: verbatim
15173 #: ../fish/guestfish.pod:380
15174 #, no-wrap
15175 msgid ""
15176 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15177 " command \"/bin/echo 'foo      bar'\"\n"
15178 " command \"/bin/echo \\'foo\\'\"\n"
15179 "\n"
15180 msgstr ""
15181
15182 # type: =head1
15183 #: ../fish/guestfish.pod:384
15184 msgid "NUMBERS"
15185 msgstr ""
15186
15187 # type: textblock
15188 #: ../fish/guestfish.pod:386
15189 msgid "This section applies to all commands which can take integers as parameters."
15190 msgstr ""
15191
15192 # type: =head2
15193 #: ../fish/guestfish.pod:389
15194 msgid "SIZE SUFFIX"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../fish/guestfish.pod:391
15199 msgid ""
15200 "When the command takes a parameter measured in bytes, you can use one of the "
15201 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15202 msgstr ""
15203
15204 # type: =item
15205 #: ../fish/guestfish.pod:397
15206 msgid "B<k> or B<K> or B<KiB>"
15207 msgstr ""
15208
15209 # type: textblock
15210 #: ../fish/guestfish.pod:399
15211 msgid "The size in kilobytes (multiplied by 1024)."
15212 msgstr ""
15213
15214 # type: =item
15215 #: ../fish/guestfish.pod:401
15216 msgid "B<KB>"
15217 msgstr ""
15218
15219 # type: textblock
15220 #: ../fish/guestfish.pod:403
15221 msgid "The size in SI 1000 byte units."
15222 msgstr ""
15223
15224 # type: =item
15225 #: ../fish/guestfish.pod:405
15226 msgid "B<M> or B<MiB>"
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../fish/guestfish.pod:407
15231 msgid "The size in megabytes (multiplied by 1048576)."
15232 msgstr ""
15233
15234 # type: =item
15235 #: ../fish/guestfish.pod:409
15236 msgid "B<MB>"
15237 msgstr ""
15238
15239 # type: textblock
15240 #: ../fish/guestfish.pod:411
15241 msgid "The size in SI 1000000 byte units."
15242 msgstr ""
15243
15244 # type: =item
15245 #: ../fish/guestfish.pod:413
15246 msgid "B<G> or B<GiB>"
15247 msgstr ""
15248
15249 # type: textblock
15250 #: ../fish/guestfish.pod:415
15251 msgid "The size in gigabytes (multiplied by 2**30)."
15252 msgstr ""
15253
15254 # type: =item
15255 #: ../fish/guestfish.pod:417
15256 msgid "B<GB>"
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../fish/guestfish.pod:419
15261 msgid "The size in SI 10**9 byte units."
15262 msgstr ""
15263
15264 # type: =item
15265 #: ../fish/guestfish.pod:421
15266 msgid "B<T> or B<TiB>"
15267 msgstr ""
15268
15269 # type: textblock
15270 #: ../fish/guestfish.pod:423
15271 msgid "The size in terabytes (multiplied by 2**40)."
15272 msgstr ""
15273
15274 # type: =item
15275 #: ../fish/guestfish.pod:425
15276 msgid "B<TB>"
15277 msgstr ""
15278
15279 # type: textblock
15280 #: ../fish/guestfish.pod:427
15281 msgid "The size in SI 10**12 byte units."
15282 msgstr ""
15283
15284 # type: =item
15285 #: ../fish/guestfish.pod:429
15286 msgid "B<P> or B<PiB>"
15287 msgstr ""
15288
15289 # type: textblock
15290 #: ../fish/guestfish.pod:431
15291 msgid "The size in petabytes (multiplied by 2**50)."
15292 msgstr ""
15293
15294 # type: =item
15295 #: ../fish/guestfish.pod:433
15296 msgid "B<PB>"
15297 msgstr ""
15298
15299 # type: textblock
15300 #: ../fish/guestfish.pod:435
15301 msgid "The size in SI 10**15 byte units."
15302 msgstr ""
15303
15304 # type: =item
15305 #: ../fish/guestfish.pod:437
15306 msgid "B<E> or B<EiB>"
15307 msgstr ""
15308
15309 # type: textblock
15310 #: ../fish/guestfish.pod:439
15311 msgid "The size in exabytes (multiplied by 2**60)."
15312 msgstr ""
15313
15314 # type: =item
15315 #: ../fish/guestfish.pod:441
15316 msgid "B<EB>"
15317 msgstr ""
15318
15319 # type: textblock
15320 #: ../fish/guestfish.pod:443
15321 msgid "The size in SI 10**18 byte units."
15322 msgstr ""
15323
15324 # type: =item
15325 #: ../fish/guestfish.pod:445
15326 msgid "B<Z> or B<ZiB>"
15327 msgstr ""
15328
15329 # type: textblock
15330 #: ../fish/guestfish.pod:447
15331 msgid "The size in zettabytes (multiplied by 2**70)."
15332 msgstr ""
15333
15334 # type: =item
15335 #: ../fish/guestfish.pod:449
15336 msgid "B<ZB>"
15337 msgstr ""
15338
15339 # type: textblock
15340 #: ../fish/guestfish.pod:451
15341 msgid "The size in SI 10**21 byte units."
15342 msgstr ""
15343
15344 # type: =item
15345 #: ../fish/guestfish.pod:453
15346 msgid "B<Y> or B<YiB>"
15347 msgstr ""
15348
15349 # type: textblock
15350 #: ../fish/guestfish.pod:455
15351 msgid "The size in yottabytes (multiplied by 2**80)."
15352 msgstr ""
15353
15354 # type: =item
15355 #: ../fish/guestfish.pod:457
15356 msgid "B<YB>"
15357 msgstr ""
15358
15359 # type: textblock
15360 #: ../fish/guestfish.pod:459
15361 msgid "The size in SI 10**24 byte units."
15362 msgstr ""
15363
15364 # type: textblock
15365 #: ../fish/guestfish.pod:463
15366 msgid "For example:"
15367 msgstr ""
15368
15369 # type: verbatim
15370 #: ../fish/guestfish.pod:465
15371 #, no-wrap
15372 msgid ""
15373 " truncate-size /file 1G\n"
15374 "\n"
15375 msgstr ""
15376
15377 # type: textblock
15378 #: ../fish/guestfish.pod:467
15379 msgid "would truncate the file to 1 gigabyte."
15380 msgstr ""
15381
15382 # type: textblock
15383 #: ../fish/guestfish.pod:469
15384 msgid ""
15385 "Be careful because a few commands take sizes in kilobytes or megabytes "
15386 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15387 "Adding a suffix will probably not do what you expect."
15388 msgstr ""
15389
15390 # type: =head2
15391 #: ../fish/guestfish.pod:473
15392 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../fish/guestfish.pod:475
15397 msgid ""
15398 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15399 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15400 msgstr ""
15401
15402 # type: verbatim
15403 #: ../fish/guestfish.pod:478
15404 #, no-wrap
15405 msgid ""
15406 " 1234      decimal number 1234\n"
15407 " 02322     octal number, equivalent to decimal 1234\n"
15408 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15409 "\n"
15410 msgstr ""
15411
15412 # type: textblock
15413 #: ../fish/guestfish.pod:482
15414 msgid ""
15415 "When using the C<chmod> command, you almost always want to specify an octal "
15416 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15417 "L<chmod(1)> program):"
15418 msgstr ""
15419
15420 # type: verbatim
15421 #: ../fish/guestfish.pod:486
15422 #, no-wrap
15423 msgid ""
15424 " chmod 0777 /public  # OK\n"
15425 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15426 "\n"
15427 msgstr ""
15428
15429 # type: textblock
15430 #: ../fish/guestfish.pod:489
15431 msgid ""
15432 "Commands that return numbers usually print them in decimal, but some "
15433 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15434 "octal, preceeded by C<0>)."
15435 msgstr ""
15436
15437 # type: =head1
15438 #: ../fish/guestfish.pod:493
15439 msgid "WILDCARDS AND GLOBBING"
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../fish/guestfish.pod:495
15444 msgid ""
15445 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15446 "(globbing) by default.  So for example the following will not do what you "
15447 "expect:"
15448 msgstr ""
15449
15450 # type: verbatim
15451 #: ../fish/guestfish.pod:499
15452 #, no-wrap
15453 msgid ""
15454 " rm-rf /home/*\n"
15455 "\n"
15456 msgstr ""
15457
15458 # type: textblock
15459 #: ../fish/guestfish.pod:501
15460 msgid ""
15461 "Assuming you don't have a directory called literally C</home/*> then the "
15462 "above command will return an error."
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../fish/guestfish.pod:504
15467 msgid "To perform wildcard expansion, use the C<glob> command."
15468 msgstr ""
15469
15470 # type: verbatim
15471 #: ../fish/guestfish.pod:506
15472 #, no-wrap
15473 msgid ""
15474 " glob rm-rf /home/*\n"
15475 "\n"
15476 msgstr ""
15477
15478 # type: textblock
15479 #: ../fish/guestfish.pod:508
15480 msgid ""
15481 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15482 "many times), equivalent to:"
15483 msgstr ""
15484
15485 # type: verbatim
15486 #: ../fish/guestfish.pod:511
15487 #, no-wrap
15488 msgid ""
15489 " rm-rf /home/jim\n"
15490 " rm-rf /home/joe\n"
15491 " rm-rf /home/mary\n"
15492 "\n"
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../fish/guestfish.pod:515
15497 msgid "C<glob> only works on simple guest paths and not on device names."
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../fish/guestfish.pod:517
15502 msgid ""
15503 "If you have several parameters, each containing a wildcard, then glob will "
15504 "perform a Cartesian product."
15505 msgstr ""
15506
15507 # type: =head1
15508 #: ../fish/guestfish.pod:520
15509 msgid "COMMENTS"
15510 msgstr ""
15511
15512 # type: textblock
15513 #: ../fish/guestfish.pod:522
15514 msgid ""
15515 "Any line which starts with a I<#> character is treated as a comment and "
15516 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15517 "a command.  For example:"
15518 msgstr ""
15519
15520 # type: verbatim
15521 #: ../fish/guestfish.pod:526
15522 #, no-wrap
15523 msgid ""
15524 " # this is a comment\n"
15525 "         # this is a comment\n"
15526 " foo # NOT a comment\n"
15527 "\n"
15528 msgstr ""
15529
15530 # type: textblock
15531 #: ../fish/guestfish.pod:530
15532 msgid "Blank lines are also ignored."
15533 msgstr ""
15534
15535 # type: =head1
15536 #: ../fish/guestfish.pod:532
15537 msgid "RUNNING COMMANDS LOCALLY"
15538 msgstr ""
15539
15540 # type: textblock
15541 #: ../fish/guestfish.pod:534
15542 msgid ""
15543 "Any line which starts with a I<!> character is treated as a command sent to "
15544 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15545 msgstr ""
15546
15547 # type: verbatim
15548 #: ../fish/guestfish.pod:538
15549 #, no-wrap
15550 msgid ""
15551 " !mkdir local\n"
15552 " tgz-out /remote local/remote-data.tar.gz\n"
15553 "\n"
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../fish/guestfish.pod:541
15558 msgid ""
15559 "will create a directory C<local> on the host, and then export the contents "
15560 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15561 "(See C<tgz-out>)."
15562 msgstr ""
15563
15564 # type: textblock
15565 #: ../fish/guestfish.pod:545
15566 msgid ""
15567 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15568 "effect, due to the way that subprocesses work in Unix."
15569 msgstr ""
15570
15571 # type: =head1
15572 #: ../fish/guestfish.pod:548
15573 msgid "PIPES"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../fish/guestfish.pod:550
15578 msgid ""
15579 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15580 "command (a guestfish command) to the second command (any host command).  For "
15581 "example:"
15582 msgstr ""
15583
15584 # type: verbatim
15585 #: ../fish/guestfish.pod:554
15586 #, no-wrap
15587 msgid ""
15588 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15589 "\n"
15590 msgstr ""
15591
15592 # type: textblock
15593 #: ../fish/guestfish.pod:556
15594 msgid ""
15595 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15596 "program).  The above command would list all accounts in the guest filesystem "
15597 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #: ../fish/guestfish.pod:561
15602 #, no-wrap
15603 msgid ""
15604 " hexdump /bin/ls | head\n"
15605 " list-devices | tail -1\n"
15606 " tgz-out / - | tar ztf -\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: textblock
15611 #: ../fish/guestfish.pod:565
15612 msgid ""
15613 "The space before the pipe symbol is required, any space after the pipe "
15614 "symbol is optional.  Everything after the pipe symbol is just passed "
15615 "straight to the host shell, so it can contain redirections, globs and "
15616 "anything else that makes sense on the host side."
15617 msgstr ""
15618
15619 # type: textblock
15620 #: ../fish/guestfish.pod:570
15621 msgid ""
15622 "To use a literal argument which begins with a pipe symbol, you have to quote "
15623 "it, eg:"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #: ../fish/guestfish.pod:573
15628 #, no-wrap
15629 msgid ""
15630 " echo \"|\"\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: =head1
15635 #: ../fish/guestfish.pod:575
15636 msgid "HOME DIRECTORIES"
15637 msgstr ""
15638
15639 # type: textblock
15640 #: ../fish/guestfish.pod:577
15641 msgid ""
15642 "If a parameter starts with the character C<~> then the tilde may be expanded "
15643 "as a home directory path (either C<~> for the current user's home directory, "
15644 "or C<~user> for another user)."
15645 msgstr ""
15646
15647 # type: textblock
15648 #: ../fish/guestfish.pod:581
15649 msgid ""
15650 "Note that home directory expansion happens for users known I<on the host>, "
15651 "not in the guest filesystem."
15652 msgstr ""
15653
15654 # type: textblock
15655 #: ../fish/guestfish.pod:584
15656 msgid ""
15657 "To use a literal argument which begins with a tilde, you have to quote it, "
15658 "eg:"
15659 msgstr ""
15660
15661 # type: verbatim
15662 #: ../fish/guestfish.pod:587
15663 #, no-wrap
15664 msgid ""
15665 " echo \"~\"\n"
15666 "\n"
15667 msgstr ""
15668
15669 # type: textblock
15670 #: ../fish/guestfish.pod:591
15671 msgid ""
15672 "Libguestfs has some support for Linux guests encrypted according to the "
15673 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15674 "disk encryption systems used by modern Linux guests.  Currently only "
15675 "LVM-on-LUKS is supported."
15676 msgstr ""
15677
15678 # type: textblock
15679 #: ../fish/guestfish.pod:596
15680 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15681 msgstr ""
15682
15683 # type: verbatim
15684 #: ../fish/guestfish.pod:598
15685 #, no-wrap
15686 msgid ""
15687 " ><fs> vfs-type /dev/sda2\n"
15688 " crypto_LUKS\n"
15689 "\n"
15690 msgstr ""
15691
15692 # type: textblock
15693 #: ../fish/guestfish.pod:601
15694 msgid ""
15695 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15696 "device called C</dev/mapper/luksdev>."
15697 msgstr ""
15698
15699 # type: verbatim
15700 #: ../fish/guestfish.pod:604
15701 #, no-wrap
15702 msgid ""
15703 " ><fs> luks-open /dev/sda2 luksdev\n"
15704 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15705 "\n"
15706 msgstr ""
15707
15708 # type: textblock
15709 #: ../fish/guestfish.pod:607
15710 msgid ""
15711 "Finally you have to tell LVM to scan for volume groups on the newly created "
15712 "mapper device:"
15713 msgstr ""
15714
15715 # type: verbatim
15716 #: ../fish/guestfish.pod:610
15717 #, no-wrap
15718 msgid ""
15719 " vgscan\n"
15720 " vg-activate-all true\n"
15721 "\n"
15722 msgstr ""
15723
15724 # type: textblock
15725 #: ../fish/guestfish.pod:613
15726 msgid "The logical volume(s) can now be mounted in the usual way."
15727 msgstr ""
15728
15729 # type: textblock
15730 #: ../fish/guestfish.pod:615
15731 msgid ""
15732 "Before closing a LUKS device you must unmount any logical volumes on it and "
15733 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15734 "one.  Then you can close the mapper device:"
15735 msgstr ""
15736
15737 # type: verbatim
15738 #: ../fish/guestfish.pod:619
15739 #, no-wrap
15740 msgid ""
15741 " vg-activate false /dev/VG\n"
15742 " luks-close /dev/mapper/luksdev\n"
15743 "\n"
15744 msgstr ""
15745
15746 # type: =head1
15747 #: ../fish/guestfish.pod:622
15748 msgid "WINDOWS PATHS"
15749 msgstr ""
15750
15751 # type: textblock
15752 #: ../fish/guestfish.pod:624
15753 msgid ""
15754 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15755 "(with some limitations).  The following commands are equivalent:"
15756 msgstr ""
15757
15758 # type: verbatim
15759 #: ../fish/guestfish.pod:627
15760 #, no-wrap
15761 msgid ""
15762 " file /WINDOWS/system32/config/system.LOG\n"
15763 "\n"
15764 msgstr ""
15765
15766 # type: verbatim
15767 #: ../fish/guestfish.pod:629
15768 #, no-wrap
15769 msgid ""
15770 " file win:/windows/system32/config/system.log\n"
15771 "\n"
15772 msgstr ""
15773
15774 # type: verbatim
15775 #: ../fish/guestfish.pod:631
15776 #, no-wrap
15777 msgid ""
15778 " file win:\\windows\\system32\\config\\system.log\n"
15779 "\n"
15780 msgstr ""
15781
15782 # type: verbatim
15783 #: ../fish/guestfish.pod:633
15784 #, no-wrap
15785 msgid ""
15786 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: textblock
15791 #: ../fish/guestfish.pod:635
15792 msgid ""
15793 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15794 "handles case insensitivity like Windows would.  This only works in argument "
15795 "positions that expect a path."
15796 msgstr ""
15797
15798 # type: =head1
15799 #: ../fish/guestfish.pod:639
15800 msgid "UPLOADING AND DOWNLOADING FILES"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../fish/guestfish.pod:641
15805 msgid ""
15806 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15807 "others which upload from or download to a local file, you can use the "
15808 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15809 msgstr ""
15810
15811 # type: verbatim
15812 #: ../fish/guestfish.pod:645
15813 #, no-wrap
15814 msgid ""
15815 " upload - /foo\n"
15816 "\n"
15817 msgstr ""
15818
15819 # type: textblock
15820 #: ../fish/guestfish.pod:647
15821 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
15822 msgstr ""
15823
15824 # type: verbatim
15825 #: ../fish/guestfish.pod:650
15826 #, no-wrap
15827 msgid ""
15828 " tar-out /etc - | tar tf -\n"
15829 "\n"
15830 msgstr ""
15831
15832 # type: textblock
15833 #: ../fish/guestfish.pod:652
15834 msgid ""
15835 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15836 "command (see L</PIPES>)."
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../fish/guestfish.pod:655
15841 msgid ""
15842 "When using C<-> to read from stdin, the input is read up to the end of "
15843 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15844 "some arbitrary end marker:"
15845 msgstr ""
15846
15847 # type: verbatim
15848 #: ../fish/guestfish.pod:659
15849 #, no-wrap
15850 msgid ""
15851 " upload -<<END /foo\n"
15852 " input line 1\n"
15853 " input line 2\n"
15854 " input line 3\n"
15855 " END\n"
15856 "\n"
15857 msgstr ""
15858
15859 # type: textblock
15860 #: ../fish/guestfish.pod:665
15861 msgid ""
15862 "Any string of characters can be used instead of C<END>.  The end marker must "
15863 "appear on a line of its own, without any preceeding or following characters "
15864 "(not even spaces)."
15865 msgstr ""
15866
15867 # type: textblock
15868 #: ../fish/guestfish.pod:669
15869 msgid ""
15870 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
15871 "upload local files (so-called \"FileIn\" parameters in the generator)."
15872 msgstr ""
15873
15874 # type: =head1
15875 #: ../fish/guestfish.pod:672
15876 msgid "EXIT ON ERROR BEHAVIOUR"
15877 msgstr ""
15878
15879 # type: textblock
15880 #: ../fish/guestfish.pod:674
15881 msgid ""
15882 "By default, guestfish will ignore any errors when in interactive mode "
15883 "(ie. taking commands from a human over a tty), and will exit on the first "
15884 "error in non-interactive mode (scripts, commands given on the command line)."
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../fish/guestfish.pod:679
15889 msgid ""
15890 "If you prefix a command with a I<-> character, then that command will not "
15891 "cause guestfish to exit, even if that (one) command returns an error."
15892 msgstr ""
15893
15894 # type: =head1
15895 #: ../fish/guestfish.pod:683
15896 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
15897 msgstr ""
15898
15899 # type: textblock
15900 #: ../fish/guestfish.pod:685
15901 msgid ""
15902 "Guestfish can be remote-controlled over a socket.  This is useful "
15903 "particularly in shell scripts where you want to make several different "
15904 "changes to a filesystem, but you don't want the overhead of starting up a "
15905 "guestfish process each time."
15906 msgstr ""
15907
15908 # type: textblock
15909 #: ../fish/guestfish.pod:690
15910 msgid "Start a guestfish server process using:"
15911 msgstr ""
15912
15913 # type: verbatim
15914 #: ../fish/guestfish.pod:692
15915 #, no-wrap
15916 msgid ""
15917 " eval `guestfish --listen`\n"
15918 "\n"
15919 msgstr ""
15920
15921 # type: textblock
15922 #: ../fish/guestfish.pod:694
15923 msgid "and then send it commands by doing:"
15924 msgstr ""
15925
15926 # type: verbatim
15927 #: ../fish/guestfish.pod:696
15928 #, no-wrap
15929 msgid ""
15930 " guestfish --remote cmd [...]\n"
15931 "\n"
15932 msgstr ""
15933
15934 # type: textblock
15935 #: ../fish/guestfish.pod:698
15936 msgid "To cause the server to exit, send it the exit command:"
15937 msgstr ""
15938
15939 # type: verbatim
15940 #: ../fish/guestfish.pod:700
15941 #, no-wrap
15942 msgid ""
15943 " guestfish --remote exit\n"
15944 "\n"
15945 msgstr ""
15946
15947 # type: textblock
15948 #: ../fish/guestfish.pod:702
15949 msgid ""
15950 "Note that the server will normally exit if there is an error in a command.  "
15951 "You can change this in the usual way.  See section L</EXIT ON ERROR "
15952 "BEHAVIOUR>."
15953 msgstr ""
15954
15955 # type: =head2
15956 #: ../fish/guestfish.pod:706
15957 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
15958 msgstr ""
15959
15960 # type: textblock
15961 #: ../fish/guestfish.pod:708
15962 msgid ""
15963 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
15964 "is how the I<--remote> option knows where to send the commands.  You can "
15965 "have several guestfish listener processes running using:"
15966 msgstr ""
15967
15968 # type: verbatim
15969 #: ../fish/guestfish.pod:712
15970 #, no-wrap
15971 msgid ""
15972 " eval `guestfish --listen`\n"
15973 " pid1=$GUESTFISH_PID\n"
15974 " eval `guestfish --listen`\n"
15975 " pid2=$GUESTFISH_PID\n"
15976 " ...\n"
15977 " guestfish --remote=$pid1 cmd\n"
15978 " guestfish --remote=$pid2 cmd\n"
15979 "\n"
15980 msgstr ""
15981
15982 # type: =head2
15983 #: ../fish/guestfish.pod:720
15984 msgid "REMOTE CONTROL DETAILS"
15985 msgstr ""
15986
15987 # type: textblock
15988 #: ../fish/guestfish.pod:722
15989 msgid ""
15990 "Remote control happens over a Unix domain socket called "
15991 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
15992 "of the process, and C<$PID> is the process ID of the server."
15993 msgstr ""
15994
15995 # type: textblock
15996 #: ../fish/guestfish.pod:726
15997 msgid "Guestfish client and server versions must match exactly."
15998 msgstr ""
15999
16000 # type: =head1
16001 #: ../fish/guestfish.pod:728
16002 msgid "PREPARED DISK IMAGES"
16003 msgstr ""
16004
16005 # type: textblock
16006 #: ../fish/guestfish.pod:730
16007 msgid ""
16008 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16009 "preformatted disk images that guestfish can make for you to save typing.  "
16010 "This is particularly useful for testing purposes.  This option is used "
16011 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16012 "can be mixed with I<-a>)."
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../fish/guestfish.pod:736
16017 msgid ""
16018 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16019 "the second and so on.  Existing files in the current directory are "
16020 "I<overwritten>."
16021 msgstr ""
16022
16023 # type: textblock
16024 #: ../fish/guestfish.pod:740
16025 msgid ""
16026 "The type briefly describes how the disk should be sized, partitioned, how "
16027 "filesystem(s) should be created, and how content should be added.  "
16028 "Optionally the type can be followed by extra parameters, separated by C<:> "
16029 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
16030 "sparsely-allocated disk, containing a single partition, with the partition "
16031 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
16032 "on a 1GB disk instead."
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../fish/guestfish.pod:748
16037 msgid "To list the available types and any extra parameters they take, run:"
16038 msgstr ""
16039
16040 # type: textblock
16041 #: ../fish/guestfish.pod:752
16042 msgid ""
16043 "Note that the prepared filesystem is not mounted.  You would usually have to "
16044 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16045 msgstr ""
16046
16047 # type: textblock
16048 #: ../fish/guestfish.pod:756
16049 msgid ""
16050 "If any I<-N> or I<--new> options are given, the guest is automatically "
16051 "launched."
16052 msgstr ""
16053
16054 # type: textblock
16055 #: ../fish/guestfish.pod:761
16056 msgid "Create a 100MB disk with an ext4-formatted partition:"
16057 msgstr ""
16058
16059 # type: verbatim
16060 #: ../fish/guestfish.pod:763
16061 #, no-wrap
16062 msgid ""
16063 " guestfish -N fs:ext4\n"
16064 "\n"
16065 msgstr ""
16066
16067 # type: textblock
16068 #: ../fish/guestfish.pod:765
16069 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16070 msgstr ""
16071
16072 # type: verbatim
16073 #: ../fish/guestfish.pod:767
16074 #, no-wrap
16075 msgid ""
16076 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16077 "\n"
16078 msgstr ""
16079
16080 # type: textblock
16081 #: ../fish/guestfish.pod:769
16082 msgid "Create a blank 200MB disk:"
16083 msgstr ""
16084
16085 # type: verbatim
16086 #: ../fish/guestfish.pod:771
16087 #, no-wrap
16088 msgid ""
16089 " guestfish -N disk:200M\n"
16090 "\n"
16091 msgstr ""
16092
16093 # type: =head1
16094 #: ../fish/guestfish.pod:773
16095 msgid "PROGRESS BARS"
16096 msgstr ""
16097
16098 # type: textblock
16099 #: ../fish/guestfish.pod:775
16100 msgid ""
16101 "Some (not all) long-running commands send progress notification messages as "
16102 "they are running.  Guestfish turns these messages into progress bars."
16103 msgstr ""
16104
16105 # type: textblock
16106 #: ../fish/guestfish.pod:779
16107 msgid ""
16108 "When a command that supports progress bars takes longer than two seconds to "
16109 "run, and if progress bars are enabled, then you will see one appearing below "
16110 "the command:"
16111 msgstr ""
16112
16113 # type: verbatim
16114 #: ../fish/guestfish.pod:783
16115 #, no-wrap
16116 msgid ""
16117 " ><fs> copy-size /large-file /another-file 2048M\n"
16118 " / 10% [#####-----------------------------------------] 00:30\n"
16119 "\n"
16120 msgstr ""
16121
16122 # type: textblock
16123 #: ../fish/guestfish.pod:786
16124 msgid ""
16125 "The spinner on the left hand side moves round once for every progress "
16126 "notification received from the backend.  This is a (reasonably) golden "
16127 "assurance that the command is \"doing something\" even if the progress bar "
16128 "is not moving, because the command is able to send the progress "
16129 "notifications.  When the bar reaches 100% and the command finishes, the "
16130 "spinner disappears."
16131 msgstr ""
16132
16133 # type: textblock
16134 #: ../fish/guestfish.pod:793
16135 msgid ""
16136 "Progress bars are enabled by default when guestfish is used interactively.  "
16137 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16138 "and you can disable them completely using I<--no-progress-bars>."
16139 msgstr ""
16140
16141 # type: =head1
16142 #: ../fish/guestfish.pod:798
16143 msgid "GUESTFISH COMMANDS"
16144 msgstr ""
16145
16146 # type: textblock
16147 #: ../fish/guestfish.pod:800
16148 msgid ""
16149 "The commands in this section are guestfish convenience commands, in other "
16150 "words, they are not part of the L<guestfs(3)> API."
16151 msgstr ""
16152
16153 # type: =head2
16154 #: ../fish/guestfish.pod:803
16155 msgid "help"
16156 msgstr ""
16157
16158 # type: verbatim
16159 #: ../fish/guestfish.pod:805
16160 #, no-wrap
16161 msgid ""
16162 " help\n"
16163 " help cmd\n"
16164 "\n"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../fish/guestfish.pod:808
16169 msgid ""
16170 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16171 "this displays detailed help for a command."
16172 msgstr ""
16173
16174 # type: =head2
16175 #: ../fish/guestfish.pod:811
16176 msgid "quit | exit"
16177 msgstr ""
16178
16179 # type: textblock
16180 #: ../fish/guestfish.pod:813
16181 msgid "This exits guestfish.  You can also use C<^D> key."
16182 msgstr ""
16183
16184 # type: textblock
16185 #: ../fish/guestfish.pod:815
16186 msgid "@FISH_COMMANDS@"
16187 msgstr ""
16188
16189 # type: =head1
16190 #: ../fish/guestfish.pod:817
16191 msgid "COMMANDS"
16192 msgstr ""
16193
16194 # type: =head1
16195 #: ../fish/guestfish.pod:821 ../test-tool/libguestfs-test-tool.pod:83
16196 msgid "EXIT CODE"
16197 msgstr ""
16198
16199 # type: textblock
16200 #: ../fish/guestfish.pod:823
16201 msgid ""
16202 "guestfish returns 0 if the commands completed without error, or 1 if there "
16203 "was an error."
16204 msgstr ""
16205
16206 # type: =item
16207 #: ../fish/guestfish.pod:830
16208 msgid "EDITOR"
16209 msgstr ""
16210
16211 # type: textblock
16212 #: ../fish/guestfish.pod:832
16213 msgid ""
16214 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16215 "C<vi>."
16216 msgstr ""
16217
16218 # type: =item
16219 #: ../fish/guestfish.pod:835
16220 msgid "GUESTFISH_PID"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:837
16225 msgid ""
16226 "Used with the I<--remote> option to specify the remote guestfish process to "
16227 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16228 msgstr ""
16229
16230 # type: =item
16231 #: ../fish/guestfish.pod:841
16232 msgid "HEXEDITOR"
16233 msgstr ""
16234
16235 # type: textblock
16236 #: ../fish/guestfish.pod:843
16237 msgid ""
16238 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16239 "not specified, the external L<hexedit(1)> program is used."
16240 msgstr ""
16241
16242 # type: =item
16243 #: ../fish/guestfish.pod:847
16244 msgid "HOME"
16245 msgstr ""
16246
16247 # type: textblock
16248 #: ../fish/guestfish.pod:849
16249 msgid ""
16250 "If compiled with GNU readline support, various files in the home directory "
16251 "can be used.  See L</FILES>."
16252 msgstr ""
16253
16254 # type: textblock
16255 #: ../fish/guestfish.pod:858
16256 msgid ""
16257 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16258 "effect as using the B<-v> option."
16259 msgstr ""
16260
16261 # type: textblock
16262 #: ../fish/guestfish.pod:870
16263 msgid ""
16264 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16265 "the discussion of paths in L<guestfs(3)>."
16266 msgstr ""
16267
16268 # type: textblock
16269 #: ../fish/guestfish.pod:881
16270 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16271 msgstr ""
16272
16273 # type: =item
16274 #: ../fish/guestfish.pod:883
16275 msgid "PAGER"
16276 msgstr ""
16277
16278 # type: textblock
16279 #: ../fish/guestfish.pod:885
16280 msgid ""
16281 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16282 "C<more>."
16283 msgstr ""
16284
16285 # type: =head1
16286 #: ../fish/guestfish.pod:900 ../test-tool/libguestfs-test-tool.pod:88
16287 msgid "FILES"
16288 msgstr ""
16289
16290 # type: =item
16291 #: ../fish/guestfish.pod:904
16292 msgid "$HOME/.guestfish"
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../fish/guestfish.pod:906
16297 msgid ""
16298 "If compiled with GNU readline support, then the command history is saved in "
16299 "this file."
16300 msgstr ""
16301
16302 # type: =item
16303 #: ../fish/guestfish.pod:909
16304 msgid "$HOME/.inputrc"
16305 msgstr ""
16306
16307 # type: =item
16308 #: ../fish/guestfish.pod:911
16309 msgid "/etc/inputrc"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../fish/guestfish.pod:913
16314 msgid ""
16315 "If compiled with GNU readline support, then these files can be used to "
16316 "configure readline.  For further information, please see "
16317 "L<readline(3)/INITIALIZATION FILE>."
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../fish/guestfish.pod:917
16322 msgid "To write rules which only apply to guestfish, use:"
16323 msgstr ""
16324
16325 # type: verbatim
16326 #: ../fish/guestfish.pod:919
16327 #, no-wrap
16328 msgid ""
16329 " $if guestfish\n"
16330 " ...\n"
16331 " $endif\n"
16332 "\n"
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../fish/guestfish.pod:923
16337 msgid ""
16338 "Variables that you can set in inputrc that change the behaviour of guestfish "
16339 "in useful ways include:"
16340 msgstr ""
16341
16342 # type: =item
16343 #: ../fish/guestfish.pod:928
16344 msgid "completion-ignore-case (default: on)"
16345 msgstr ""
16346
16347 # type: textblock
16348 #: ../fish/guestfish.pod:930
16349 msgid ""
16350 "By default, guestfish will ignore case when tab-completing paths on the "
16351 "disk.  Use:"
16352 msgstr ""
16353
16354 # type: verbatim
16355 #: ../fish/guestfish.pod:933
16356 #, no-wrap
16357 msgid ""
16358 " set completion-ignore-case off\n"
16359 "\n"
16360 msgstr ""
16361
16362 # type: textblock
16363 #: ../fish/guestfish.pod:935
16364 msgid "to make guestfish case sensitive."
16365 msgstr ""
16366
16367 # type: =item
16368 #: ../fish/guestfish.pod:939
16369 msgid "test1.img"
16370 msgstr ""
16371
16372 # type: =item
16373 #: ../fish/guestfish.pod:941
16374 msgid "test2.img (etc)"
16375 msgstr ""
16376
16377 # type: textblock
16378 #: ../fish/guestfish.pod:943
16379 msgid ""
16380 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16381 "will be created in the file C<test1.img> in the current directory.  The "
16382 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16383 "the same name will be overwritten."
16384 msgstr ""
16385
16386 # type: textblock
16387 #: ../fish/guestfish.pod:952
16388 msgid ""
16389 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16390 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16391 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16392 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../fish/guestfish.pod:976 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:865 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:495 ../tools/virt-df.pl:553 ../tools/virt-ls.pl:229 ../tools/virt-resize.pl:1415 ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:181 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:249 ../tools/virt-make-fs.pl:560 ../tools/virt-list-partitions.pl:248
16397 msgid ""
16398 "This program is free software; you can redistribute it and/or modify it "
16399 "under the terms of the GNU General Public License as published by the Free "
16400 "Software Foundation; either version 2 of the License, or (at your option) "
16401 "any later version."
16402 msgstr ""
16403
16404 # type: textblock
16405 #: ../fish/guestfish.pod:981 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:870 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:500 ../tools/virt-df.pl:558 ../tools/virt-ls.pl:234 ../tools/virt-resize.pl:1420 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:186 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:254 ../tools/virt-make-fs.pl:565 ../tools/virt-list-partitions.pl:253
16406 msgid ""
16407 "This program is distributed in the hope that it will be useful, but WITHOUT "
16408 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16409 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16410 "more details."
16411 msgstr ""
16412
16413 # type: textblock
16414 #: ../fish/guestfish.pod:986 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:875 ../tools/virt-edit.pl:355 ../tools/virt-win-reg.pl:505 ../tools/virt-df.pl:563 ../tools/virt-ls.pl:239 ../tools/virt-resize.pl:1425 ../tools/virt-list-filesystems.pl:221 ../tools/virt-cat.pl:191 ../tools/virt-tar.pl:286 ../tools/virt-rescue.pl:259 ../tools/virt-make-fs.pl:570 ../tools/virt-list-partitions.pl:258
16415 msgid ""
16416 "You should have received a copy of the GNU General Public License along with "
16417 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16418 "Ave, Cambridge, MA 02139, USA."
16419 msgstr ""
16420
16421 # type: =head2
16422 #: ../fish/guestfish-actions.pod:1
16423 msgid "add-cdrom"
16424 msgstr ""
16425
16426 # type: =head2
16427 #: ../fish/guestfish-actions.pod:3
16428 msgid "cdrom"
16429 msgstr ""
16430
16431 # type: verbatim
16432 #: ../fish/guestfish-actions.pod:5
16433 #, no-wrap
16434 msgid ""
16435 " add-cdrom filename\n"
16436 "\n"
16437 msgstr ""
16438
16439 # type: textblock
16440 #: ../fish/guestfish-actions.pod:17
16441 msgid ""
16442 "This call checks for the existence of C<filename>.  This stops you from "
16443 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16444 "and C<http:> URLs.  To specify those, use the general L</config> call "
16445 "instead."
16446 msgstr ""
16447
16448 # type: textblock
16449 #: ../fish/guestfish-actions.pod:24
16450 msgid ""
16451 "If you just want to add an ISO file (often you use this as an efficient way "
16452 "to transfer large files into the guest), then you should probably use "
16453 "L</add-drive-ro> instead."
16454 msgstr ""
16455
16456 # type: =head2
16457 #: ../fish/guestfish-actions.pod:30
16458 msgid "add-drive"
16459 msgstr ""
16460
16461 # type: =head2
16462 #: ../fish/guestfish-actions.pod:32
16463 msgid "add"
16464 msgstr ""
16465
16466 # type: verbatim
16467 #: ../fish/guestfish-actions.pod:34
16468 #, no-wrap
16469 msgid ""
16470 " add-drive filename\n"
16471 "\n"
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish-actions.pod:53 ../fish/guestfish-actions.pod:81
16476 msgid ""
16477 "C<if=...> is set at compile time by the configuration option C<./configure "
16478 "--with-drive-if=...>.  In the rare case where you might need to change this "
16479 "at run time, use L</add-drive-with-if> or L</add-drive-ro-with-if>."
16480 msgstr ""
16481
16482 # type: textblock
16483 #: ../fish/guestfish-actions.pod:58 ../fish/guestfish-actions.pod:86
16484 msgid ""
16485 "Note that this call checks for the existence of C<filename>.  This stops you "
16486 "from specifying other types of drive which are supported by qemu such as "
16487 "C<nbd:> and C<http:> URLs.  To specify those, use the general L</config> "
16488 "call instead."
16489 msgstr ""
16490
16491 # type: =head2
16492 #: ../fish/guestfish-actions.pod:63
16493 msgid "add-drive-ro"
16494 msgstr ""
16495
16496 # type: =head2
16497 #: ../fish/guestfish-actions.pod:65
16498 msgid "add-ro"
16499 msgstr ""
16500
16501 # type: verbatim
16502 #: ../fish/guestfish-actions.pod:67
16503 #, no-wrap
16504 msgid ""
16505 " add-drive-ro filename\n"
16506 "\n"
16507 msgstr ""
16508
16509 # type: =head2
16510 #: ../fish/guestfish-actions.pod:91
16511 msgid "add-drive-ro-with-if"
16512 msgstr ""
16513
16514 # type: verbatim
16515 #: ../fish/guestfish-actions.pod:93
16516 #, no-wrap
16517 msgid ""
16518 " add-drive-ro-with-if filename iface\n"
16519 "\n"
16520 msgstr ""
16521
16522 # type: textblock
16523 #: ../fish/guestfish-actions.pod:95
16524 msgid ""
16525 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
16526 "interface emulation to use at run time."
16527 msgstr ""
16528
16529 # type: =head2
16530 #: ../fish/guestfish-actions.pod:98
16531 msgid "add-drive-with-if"
16532 msgstr ""
16533
16534 # type: verbatim
16535 #: ../fish/guestfish-actions.pod:100
16536 #, no-wrap
16537 msgid ""
16538 " add-drive-with-if filename iface\n"
16539 "\n"
16540 msgstr ""
16541
16542 # type: textblock
16543 #: ../fish/guestfish-actions.pod:102
16544 msgid ""
16545 "This is the same as L</add-drive> but it allows you to specify the QEMU "
16546 "interface emulation to use at run time."
16547 msgstr ""
16548
16549 # type: =head2
16550 #: ../fish/guestfish-actions.pod:105
16551 msgid "aug-clear"
16552 msgstr ""
16553
16554 # type: verbatim
16555 #: ../fish/guestfish-actions.pod:107
16556 #, no-wrap
16557 msgid ""
16558 " aug-clear augpath\n"
16559 "\n"
16560 msgstr ""
16561
16562 # type: =head2
16563 #: ../fish/guestfish-actions.pod:112
16564 msgid "aug-close"
16565 msgstr ""
16566
16567 # type: verbatim
16568 #: ../fish/guestfish-actions.pod:114
16569 #, no-wrap
16570 msgid ""
16571 " aug-close\n"
16572 "\n"
16573 msgstr ""
16574
16575 # type: textblock
16576 #: ../fish/guestfish-actions.pod:116
16577 msgid ""
16578 "Close the current Augeas handle and free up any resources used by it.  After "
16579 "calling this, you have to call L</aug-init> again before you can use any "
16580 "other Augeas functions."
16581 msgstr ""
16582
16583 # type: =head2
16584 #: ../fish/guestfish-actions.pod:121
16585 msgid "aug-defnode"
16586 msgstr ""
16587
16588 # type: verbatim
16589 #: ../fish/guestfish-actions.pod:123
16590 #, no-wrap
16591 msgid ""
16592 " aug-defnode name expr val\n"
16593 "\n"
16594 msgstr ""
16595
16596 # type: textblock
16597 #: ../fish/guestfish-actions.pod:128
16598 msgid ""
16599 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16600 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16601 "containing that single node."
16602 msgstr ""
16603
16604 # type: =head2
16605 #: ../fish/guestfish-actions.pod:136
16606 msgid "aug-defvar"
16607 msgstr ""
16608
16609 # type: verbatim
16610 #: ../fish/guestfish-actions.pod:138
16611 #, no-wrap
16612 msgid ""
16613 " aug-defvar name expr\n"
16614 "\n"
16615 msgstr ""
16616
16617 # type: =head2
16618 #: ../fish/guestfish-actions.pod:147
16619 msgid "aug-get"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #: ../fish/guestfish-actions.pod:149
16624 #, no-wrap
16625 msgid ""
16626 " aug-get augpath\n"
16627 "\n"
16628 msgstr ""
16629
16630 # type: =head2
16631 #: ../fish/guestfish-actions.pod:154
16632 msgid "aug-init"
16633 msgstr ""
16634
16635 # type: verbatim
16636 #: ../fish/guestfish-actions.pod:156
16637 #, no-wrap
16638 msgid ""
16639 " aug-init root flags\n"
16640 "\n"
16641 msgstr ""
16642
16643 # type: textblock
16644 #: ../fish/guestfish-actions.pod:162
16645 msgid "You must call this before using any other L</aug-*> commands."
16646 msgstr ""
16647
16648 # type: textblock
16649 #: ../fish/guestfish-actions.pod:197
16650 msgid "Do not load the tree in L</aug-init>."
16651 msgstr ""
16652
16653 # type: textblock
16654 #: ../fish/guestfish-actions.pod:201
16655 msgid "To close the handle, you can call L</aug-close>."
16656 msgstr ""
16657
16658 # type: =head2
16659 #: ../fish/guestfish-actions.pod:205
16660 msgid "aug-insert"
16661 msgstr ""
16662
16663 # type: verbatim
16664 #: ../fish/guestfish-actions.pod:207
16665 #, no-wrap
16666 msgid ""
16667 " aug-insert augpath label true|false\n"
16668 "\n"
16669 msgstr ""
16670
16671 # type: =head2
16672 #: ../fish/guestfish-actions.pod:217
16673 msgid "aug-load"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../fish/guestfish-actions.pod:219
16678 #, no-wrap
16679 msgid ""
16680 " aug-load\n"
16681 "\n"
16682 msgstr ""
16683
16684 # type: =head2
16685 #: ../fish/guestfish-actions.pod:226
16686 msgid "aug-ls"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../fish/guestfish-actions.pod:228
16691 #, no-wrap
16692 msgid ""
16693 " aug-ls augpath\n"
16694 "\n"
16695 msgstr ""
16696
16697 # type: textblock
16698 #: ../fish/guestfish-actions.pod:230
16699 msgid ""
16700 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
16701 "resulting nodes into alphabetical order."
16702 msgstr ""
16703
16704 # type: =head2
16705 #: ../fish/guestfish-actions.pod:233
16706 msgid "aug-match"
16707 msgstr ""
16708
16709 # type: verbatim
16710 #: ../fish/guestfish-actions.pod:235
16711 #, no-wrap
16712 msgid ""
16713 " aug-match augpath\n"
16714 "\n"
16715 msgstr ""
16716
16717 # type: =head2
16718 #: ../fish/guestfish-actions.pod:241
16719 msgid "aug-mv"
16720 msgstr ""
16721
16722 # type: verbatim
16723 #: ../fish/guestfish-actions.pod:243
16724 #, no-wrap
16725 msgid ""
16726 " aug-mv src dest\n"
16727 "\n"
16728 msgstr ""
16729
16730 # type: =head2
16731 #: ../fish/guestfish-actions.pod:248
16732 msgid "aug-rm"
16733 msgstr ""
16734
16735 # type: verbatim
16736 #: ../fish/guestfish-actions.pod:250
16737 #, no-wrap
16738 msgid ""
16739 " aug-rm augpath\n"
16740 "\n"
16741 msgstr ""
16742
16743 # type: =head2
16744 #: ../fish/guestfish-actions.pod:256
16745 msgid "aug-save"
16746 msgstr ""
16747
16748 # type: verbatim
16749 #: ../fish/guestfish-actions.pod:258
16750 #, no-wrap
16751 msgid ""
16752 " aug-save\n"
16753 "\n"
16754 msgstr ""
16755
16756 # type: textblock
16757 #: ../fish/guestfish-actions.pod:262
16758 msgid ""
16759 "The flags which were passed to L</aug-init> affect exactly how files are "
16760 "saved."
16761 msgstr ""
16762
16763 # type: =head2
16764 #: ../fish/guestfish-actions.pod:265
16765 msgid "aug-set"
16766 msgstr ""
16767
16768 # type: verbatim
16769 #: ../fish/guestfish-actions.pod:267
16770 #, no-wrap
16771 msgid ""
16772 " aug-set augpath val\n"
16773 "\n"
16774 msgstr ""
16775
16776 # type: textblock
16777 #: ../fish/guestfish-actions.pod:271
16778 msgid ""
16779 "In the Augeas API, it is possible to clear a node by setting the value to "
16780 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
16781 "this call.  Instead you must use the L</aug-clear> call."
16782 msgstr ""
16783
16784 # type: =head2
16785 #: ../fish/guestfish-actions.pod:276
16786 msgid "available"
16787 msgstr ""
16788
16789 # type: verbatim
16790 #: ../fish/guestfish-actions.pod:278
16791 #, no-wrap
16792 msgid ""
16793 " available 'groups ...'\n"
16794 "\n"
16795 msgstr ""
16796
16797 # type: textblock
16798 #: ../fish/guestfish-actions.pod:284
16799 msgid ""
16800 "The libguestfs groups, and the functions that those groups correspond to, "
16801 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
16802 "runtime by calling L</available-all-groups>."
16803 msgstr ""
16804
16805 # type: textblock
16806 #: ../fish/guestfish-actions.pod:308
16807 msgid "You must call L</launch> before calling this function."
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish-actions.pod:330
16812 msgid ""
16813 "This call was added in version C<1.0.80>.  In previous versions of "
16814 "libguestfs all you could do would be to speculatively execute a command to "
16815 "find out if the daemon implemented it.  See also L</version>."
16816 msgstr ""
16817
16818 # type: =head2
16819 #: ../fish/guestfish-actions.pod:337
16820 msgid "available-all-groups"
16821 msgstr ""
16822
16823 # type: verbatim
16824 #: ../fish/guestfish-actions.pod:339
16825 #, no-wrap
16826 msgid ""
16827 " available-all-groups\n"
16828 "\n"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish-actions.pod:341
16833 msgid ""
16834 "This command returns a list of all optional groups that this daemon knows "
16835 "about.  Note this returns both supported and unsupported groups.  To find "
16836 "out which ones the daemon can actually support you have to call "
16837 "L</available> on each member of the returned list."
16838 msgstr ""
16839
16840 # type: textblock
16841 #: ../fish/guestfish-actions.pod:347
16842 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
16843 msgstr ""
16844
16845 # type: =head2
16846 #: ../fish/guestfish-actions.pod:349
16847 msgid "base64-in"
16848 msgstr ""
16849
16850 # type: verbatim
16851 #: ../fish/guestfish-actions.pod:351
16852 #, no-wrap
16853 msgid ""
16854 " base64-in (base64file|-) filename\n"
16855 "\n"
16856 msgstr ""
16857
16858 # type: textblock
16859 #: ../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:3820 ../fish/guestfish-actions.pod:3832 ../fish/guestfish-actions.pod:3843 ../fish/guestfish-actions.pod:3854 ../fish/guestfish-actions.pod:3906 ../fish/guestfish-actions.pod:3915 ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:3992
16860 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
16861 msgstr ""
16862
16863 # type: =head2
16864 #: ../fish/guestfish-actions.pod:358
16865 msgid "base64-out"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #: ../fish/guestfish-actions.pod:360
16870 #, no-wrap
16871 msgid ""
16872 " base64-out filename (base64file|-)\n"
16873 "\n"
16874 msgstr ""
16875
16876 # type: =head2
16877 #: ../fish/guestfish-actions.pod:367
16878 msgid "blockdev-flushbufs"
16879 msgstr ""
16880
16881 # type: verbatim
16882 #: ../fish/guestfish-actions.pod:369
16883 #, no-wrap
16884 msgid ""
16885 " blockdev-flushbufs device\n"
16886 "\n"
16887 msgstr ""
16888
16889 # type: =head2
16890 #: ../fish/guestfish-actions.pod:376
16891 msgid "blockdev-getbsz"
16892 msgstr ""
16893
16894 # type: verbatim
16895 #: ../fish/guestfish-actions.pod:378
16896 #, no-wrap
16897 msgid ""
16898 " blockdev-getbsz device\n"
16899 "\n"
16900 msgstr ""
16901
16902 # type: =head2
16903 #: ../fish/guestfish-actions.pod:387
16904 msgid "blockdev-getro"
16905 msgstr ""
16906
16907 # type: verbatim
16908 #: ../fish/guestfish-actions.pod:389
16909 #, no-wrap
16910 msgid ""
16911 " blockdev-getro device\n"
16912 "\n"
16913 msgstr ""
16914
16915 # type: =head2
16916 #: ../fish/guestfish-actions.pod:396
16917 msgid "blockdev-getsize64"
16918 msgstr ""
16919
16920 # type: verbatim
16921 #: ../fish/guestfish-actions.pod:398
16922 #, no-wrap
16923 msgid ""
16924 " blockdev-getsize64 device\n"
16925 "\n"
16926 msgstr ""
16927
16928 # type: textblock
16929 #: ../fish/guestfish-actions.pod:402
16930 msgid "See also L</blockdev-getsz>."
16931 msgstr ""
16932
16933 # type: =head2
16934 #: ../fish/guestfish-actions.pod:406
16935 msgid "blockdev-getss"
16936 msgstr ""
16937
16938 # type: verbatim
16939 #: ../fish/guestfish-actions.pod:408
16940 #, no-wrap
16941 msgid ""
16942 " blockdev-getss device\n"
16943 "\n"
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish-actions.pod:413
16948 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
16949 msgstr ""
16950
16951 # type: =head2
16952 #: ../fish/guestfish-actions.pod:418
16953 msgid "blockdev-getsz"
16954 msgstr ""
16955
16956 # type: verbatim
16957 #: ../fish/guestfish-actions.pod:420
16958 #, no-wrap
16959 msgid ""
16960 " blockdev-getsz device\n"
16961 "\n"
16962 msgstr ""
16963
16964 # type: textblock
16965 #: ../fish/guestfish-actions.pod:425
16966 msgid ""
16967 "See also L</blockdev-getss> for the real sector size of the device, and "
16968 "L</blockdev-getsize64> for the more useful I<size in bytes>."
16969 msgstr ""
16970
16971 # type: =head2
16972 #: ../fish/guestfish-actions.pod:431
16973 msgid "blockdev-rereadpt"
16974 msgstr ""
16975
16976 # type: verbatim
16977 #: ../fish/guestfish-actions.pod:433
16978 #, no-wrap
16979 msgid ""
16980 " blockdev-rereadpt device\n"
16981 "\n"
16982 msgstr ""
16983
16984 # type: =head2
16985 #: ../fish/guestfish-actions.pod:439
16986 msgid "blockdev-setbsz"
16987 msgstr ""
16988
16989 # type: verbatim
16990 #: ../fish/guestfish-actions.pod:441
16991 #, no-wrap
16992 msgid ""
16993 " blockdev-setbsz device blocksize\n"
16994 "\n"
16995 msgstr ""
16996
16997 # type: =head2
16998 #: ../fish/guestfish-actions.pod:450
16999 msgid "blockdev-setro"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish-actions.pod:452
17004 #, no-wrap
17005 msgid ""
17006 " blockdev-setro device\n"
17007 "\n"
17008 msgstr ""
17009
17010 # type: =head2
17011 #: ../fish/guestfish-actions.pod:458
17012 msgid "blockdev-setrw"
17013 msgstr ""
17014
17015 # type: verbatim
17016 #: ../fish/guestfish-actions.pod:460
17017 #, no-wrap
17018 msgid ""
17019 " blockdev-setrw device\n"
17020 "\n"
17021 msgstr ""
17022
17023 # type: =head2
17024 #: ../fish/guestfish-actions.pod:466
17025 msgid "case-sensitive-path"
17026 msgstr ""
17027
17028 # type: verbatim
17029 #: ../fish/guestfish-actions.pod:468
17030 #, no-wrap
17031 msgid ""
17032 " case-sensitive-path path\n"
17033 "\n"
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish-actions.pod:492
17038 msgid ""
17039 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
17040 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17041 "how the directories were originally created under Windows)."
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish-actions.pod:500
17046 msgid "See also L</realpath>."
17047 msgstr ""
17048
17049 # type: =head2
17050 #: ../fish/guestfish-actions.pod:502
17051 msgid "cat"
17052 msgstr ""
17053
17054 # type: verbatim
17055 #: ../fish/guestfish-actions.pod:504
17056 #, no-wrap
17057 msgid ""
17058 " cat path\n"
17059 "\n"
17060 msgstr ""
17061
17062 # type: textblock
17063 #: ../fish/guestfish-actions.pod:508
17064 msgid ""
17065 "Note that this function cannot correctly handle binary files (specifically, "
17066 "files containing C<\\0> character which is treated as end of string).  For "
17067 "those you need to use the L</read-file> or L</download> functions which have "
17068 "a more complex interface."
17069 msgstr ""
17070
17071 # type: =head2
17072 #: ../fish/guestfish-actions.pod:516
17073 msgid "checksum"
17074 msgstr ""
17075
17076 # type: verbatim
17077 #: ../fish/guestfish-actions.pod:518
17078 #, no-wrap
17079 msgid ""
17080 " checksum csumtype path\n"
17081 "\n"
17082 msgstr ""
17083
17084 # type: textblock
17085 #: ../fish/guestfish-actions.pod:561
17086 msgid "To get the checksum for a device, use L</checksum-device>."
17087 msgstr ""
17088
17089 # type: textblock
17090 #: ../fish/guestfish-actions.pod:563
17091 msgid "To get the checksums for many files, use L</checksums-out>."
17092 msgstr ""
17093
17094 # type: =head2
17095 #: ../fish/guestfish-actions.pod:565
17096 msgid "checksum-device"
17097 msgstr ""
17098
17099 # type: verbatim
17100 #: ../fish/guestfish-actions.pod:567
17101 #, no-wrap
17102 msgid ""
17103 " checksum-device csumtype device\n"
17104 "\n"
17105 msgstr ""
17106
17107 # type: textblock
17108 #: ../fish/guestfish-actions.pod:569
17109 msgid ""
17110 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17111 "device named C<device>.  For the types of checksums supported see the "
17112 "L</checksum> command."
17113 msgstr ""
17114
17115 # type: =head2
17116 #: ../fish/guestfish-actions.pod:573
17117 msgid "checksums-out"
17118 msgstr ""
17119
17120 # type: verbatim
17121 #: ../fish/guestfish-actions.pod:575
17122 #, no-wrap
17123 msgid ""
17124 " checksums-out csumtype directory (sumsfile|-)\n"
17125 "\n"
17126 msgstr ""
17127
17128 # type: =head2
17129 #: ../fish/guestfish-actions.pod:591
17130 msgid "chmod"
17131 msgstr ""
17132
17133 # type: verbatim
17134 #: ../fish/guestfish-actions.pod:593
17135 #, no-wrap
17136 msgid ""
17137 " chmod mode path\n"
17138 "\n"
17139 msgstr ""
17140
17141 # type: =head2
17142 #: ../fish/guestfish-actions.pod:604
17143 msgid "chown"
17144 msgstr ""
17145
17146 # type: verbatim
17147 #: ../fish/guestfish-actions.pod:606
17148 #, no-wrap
17149 msgid ""
17150 " chown owner group path\n"
17151 "\n"
17152 msgstr ""
17153
17154 # type: =head2
17155 #: ../fish/guestfish-actions.pod:614
17156 msgid "command"
17157 msgstr ""
17158
17159 # type: verbatim
17160 #: ../fish/guestfish-actions.pod:616
17161 #, no-wrap
17162 msgid ""
17163 " command 'arguments ...'\n"
17164 "\n"
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish-actions.pod:623
17169 msgid ""
17170 "The single parameter is an argv-style list of arguments.  The first element "
17171 "is the name of the program to run.  Subsequent elements are parameters.  The "
17172 "list must be non-empty (ie. must contain a program name).  Note that the "
17173 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17174 msgstr ""
17175
17176 # type: =head2
17177 #: ../fish/guestfish-actions.pod:651
17178 msgid "command-lines"
17179 msgstr ""
17180
17181 # type: verbatim
17182 #: ../fish/guestfish-actions.pod:653
17183 #, no-wrap
17184 msgid ""
17185 " command-lines 'arguments ...'\n"
17186 "\n"
17187 msgstr ""
17188
17189 # type: textblock
17190 #: ../fish/guestfish-actions.pod:655
17191 msgid "This is the same as L</command>, but splits the result into a list of lines."
17192 msgstr ""
17193
17194 # type: textblock
17195 #: ../fish/guestfish-actions.pod:658
17196 msgid "See also: L</sh-lines>"
17197 msgstr ""
17198
17199 # type: =head2
17200 #: ../fish/guestfish-actions.pod:663
17201 msgid "config"
17202 msgstr ""
17203
17204 # type: verbatim
17205 #: ../fish/guestfish-actions.pod:665
17206 #, no-wrap
17207 msgid ""
17208 " config qemuparam qemuvalue\n"
17209 "\n"
17210 msgstr ""
17211
17212 # type: =head2
17213 #: ../fish/guestfish-actions.pod:676
17214 msgid "copy-size"
17215 msgstr ""
17216
17217 # type: verbatim
17218 #: ../fish/guestfish-actions.pod:678
17219 #, no-wrap
17220 msgid ""
17221 " copy-size src dest size\n"
17222 "\n"
17223 msgstr ""
17224
17225 # type: =head2
17226 #: ../fish/guestfish-actions.pod:686
17227 msgid "cp"
17228 msgstr ""
17229
17230 # type: verbatim
17231 #: ../fish/guestfish-actions.pod:688
17232 #, no-wrap
17233 msgid ""
17234 " cp src dest\n"
17235 "\n"
17236 msgstr ""
17237
17238 # type: =head2
17239 #: ../fish/guestfish-actions.pod:693
17240 msgid "cp-a"
17241 msgstr ""
17242
17243 # type: verbatim
17244 #: ../fish/guestfish-actions.pod:695
17245 #, no-wrap
17246 msgid ""
17247 " cp-a src dest\n"
17248 "\n"
17249 msgstr ""
17250
17251 # type: =head2
17252 #: ../fish/guestfish-actions.pod:700
17253 msgid "dd"
17254 msgstr ""
17255
17256 # type: verbatim
17257 #: ../fish/guestfish-actions.pod:702
17258 #, no-wrap
17259 msgid ""
17260 " dd src dest\n"
17261 "\n"
17262 msgstr ""
17263
17264 # type: textblock
17265 #: ../fish/guestfish-actions.pod:709
17266 msgid ""
17267 "If the destination is a device, it must be as large or larger than the "
17268 "source file or device, otherwise the copy will fail.  This command cannot do "
17269 "partial copies (see L</copy-size>)."
17270 msgstr ""
17271
17272 # type: =head2
17273 #: ../fish/guestfish-actions.pod:713
17274 msgid "debug"
17275 msgstr ""
17276
17277 # type: verbatim
17278 #: ../fish/guestfish-actions.pod:715
17279 #, no-wrap
17280 msgid ""
17281 " debug subcmd 'extraargs ...'\n"
17282 "\n"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish-actions.pod:717
17287 msgid ""
17288 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17289 "daemon) that runs inside the qemu subprocess."
17290 msgstr ""
17291
17292 # type: =head2
17293 #: ../fish/guestfish-actions.pod:725
17294 msgid "debug-upload"
17295 msgstr ""
17296
17297 # type: verbatim
17298 #: ../fish/guestfish-actions.pod:727
17299 #, no-wrap
17300 msgid ""
17301 " debug-upload (filename|-) tmpname mode\n"
17302 "\n"
17303 msgstr ""
17304
17305 # type: textblock
17306 #: ../fish/guestfish-actions.pod:729
17307 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17308 msgstr ""
17309
17310 # type: =head2
17311 #: ../fish/guestfish-actions.pod:738
17312 msgid "df"
17313 msgstr ""
17314
17315 # type: verbatim
17316 #: ../fish/guestfish-actions.pod:740
17317 #, no-wrap
17318 msgid ""
17319 " df\n"
17320 "\n"
17321 msgstr ""
17322
17323 # type: =head2
17324 #: ../fish/guestfish-actions.pod:748
17325 msgid "df-h"
17326 msgstr ""
17327
17328 # type: verbatim
17329 #: ../fish/guestfish-actions.pod:750
17330 #, no-wrap
17331 msgid ""
17332 " df-h\n"
17333 "\n"
17334 msgstr ""
17335
17336 # type: =head2
17337 #: ../fish/guestfish-actions.pod:759
17338 msgid "dmesg"
17339 msgstr ""
17340
17341 # type: verbatim
17342 #: ../fish/guestfish-actions.pod:761
17343 #, no-wrap
17344 msgid ""
17345 " dmesg\n"
17346 "\n"
17347 msgstr ""
17348
17349 # type: textblock
17350 #: ../fish/guestfish-actions.pod:767
17351 msgid ""
17352 "Another way to get the same information is to enable verbose messages with "
17353 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17354 "before running the program."
17355 msgstr ""
17356
17357 # type: =head2
17358 #: ../fish/guestfish-actions.pod:772
17359 msgid "download"
17360 msgstr ""
17361
17362 # type: verbatim
17363 #: ../fish/guestfish-actions.pod:774
17364 #, no-wrap
17365 msgid ""
17366 " download remotefilename (filename|-)\n"
17367 "\n"
17368 msgstr ""
17369
17370 # type: textblock
17371 #: ../fish/guestfish-actions.pod:781
17372 msgid "See also L</upload>, L</cat>."
17373 msgstr ""
17374
17375 # type: =head2
17376 #: ../fish/guestfish-actions.pod:785
17377 msgid "download-offset"
17378 msgstr ""
17379
17380 # type: verbatim
17381 #: ../fish/guestfish-actions.pod:787
17382 #, no-wrap
17383 msgid ""
17384 " download-offset remotefilename (filename|-) offset size\n"
17385 "\n"
17386 msgstr ""
17387
17388 # type: textblock
17389 #: ../fish/guestfish-actions.pod:795
17390 msgid ""
17391 "Note that there is no limit on the amount of data that can be downloaded "
17392 "with this call, unlike with L</pread>, and this call always reads the full "
17393 "amount unless an error occurs."
17394 msgstr ""
17395
17396 # type: textblock
17397 #: ../fish/guestfish-actions.pod:800
17398 msgid "See also L</download>, L</pread>."
17399 msgstr ""
17400
17401 # type: =head2
17402 #: ../fish/guestfish-actions.pod:804
17403 msgid "drop-caches"
17404 msgstr ""
17405
17406 # type: verbatim
17407 #: ../fish/guestfish-actions.pod:806
17408 #, no-wrap
17409 msgid ""
17410 " drop-caches whattodrop\n"
17411 "\n"
17412 msgstr ""
17413
17414 # type: =head2
17415 #: ../fish/guestfish-actions.pod:818
17416 msgid "du"
17417 msgstr ""
17418
17419 # type: verbatim
17420 #: ../fish/guestfish-actions.pod:820
17421 #, no-wrap
17422 msgid ""
17423 " du path\n"
17424 "\n"
17425 msgstr ""
17426
17427 # type: =head2
17428 #: ../fish/guestfish-actions.pod:832
17429 msgid "e2fsck-f"
17430 msgstr ""
17431
17432 # type: verbatim
17433 #: ../fish/guestfish-actions.pod:834
17434 #, no-wrap
17435 msgid ""
17436 " e2fsck-f device\n"
17437 "\n"
17438 msgstr ""
17439
17440 # type: textblock
17441 #: ../fish/guestfish-actions.pod:840
17442 msgid ""
17443 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
17444 "should use L</fsck>."
17445 msgstr ""
17446
17447 # type: =head2
17448 #: ../fish/guestfish-actions.pod:843
17449 msgid "echo-daemon"
17450 msgstr ""
17451
17452 # type: verbatim
17453 #: ../fish/guestfish-actions.pod:845
17454 #, no-wrap
17455 msgid ""
17456 " echo-daemon 'words ...'\n"
17457 "\n"
17458 msgstr ""
17459
17460 # type: textblock
17461 #: ../fish/guestfish-actions.pod:852
17462 msgid "See also L</ping-daemon>."
17463 msgstr ""
17464
17465 # type: =head2
17466 #: ../fish/guestfish-actions.pod:854
17467 msgid "egrep"
17468 msgstr ""
17469
17470 # type: verbatim
17471 #: ../fish/guestfish-actions.pod:856
17472 #, no-wrap
17473 msgid ""
17474 " egrep regex path\n"
17475 "\n"
17476 msgstr ""
17477
17478 # type: =head2
17479 #: ../fish/guestfish-actions.pod:864
17480 msgid "egrepi"
17481 msgstr ""
17482
17483 # type: verbatim
17484 #: ../fish/guestfish-actions.pod:866
17485 #, no-wrap
17486 msgid ""
17487 " egrepi regex path\n"
17488 "\n"
17489 msgstr ""
17490
17491 # type: =head2
17492 #: ../fish/guestfish-actions.pod:874
17493 msgid "equal"
17494 msgstr ""
17495
17496 # type: verbatim
17497 #: ../fish/guestfish-actions.pod:876
17498 #, no-wrap
17499 msgid ""
17500 " equal file1 file2\n"
17501 "\n"
17502 msgstr ""
17503
17504 # type: =head2
17505 #: ../fish/guestfish-actions.pod:883
17506 msgid "exists"
17507 msgstr ""
17508
17509 # type: verbatim
17510 #: ../fish/guestfish-actions.pod:885
17511 #, no-wrap
17512 msgid ""
17513 " exists path\n"
17514 "\n"
17515 msgstr ""
17516
17517 # type: textblock
17518 #: ../fish/guestfish-actions.pod:890
17519 msgid "See also L</is-file>, L</is-dir>, L</stat>."
17520 msgstr ""
17521
17522 # type: =head2
17523 #: ../fish/guestfish-actions.pod:892
17524 msgid "fallocate"
17525 msgstr ""
17526
17527 # type: verbatim
17528 #: ../fish/guestfish-actions.pod:894
17529 #, no-wrap
17530 msgid ""
17531 " fallocate path len\n"
17532 "\n"
17533 msgstr ""
17534
17535 # type: =head2
17536 #: ../fish/guestfish-actions.pod:911
17537 msgid "fallocate64"
17538 msgstr ""
17539
17540 # type: verbatim
17541 #: ../fish/guestfish-actions.pod:913
17542 #, no-wrap
17543 msgid ""
17544 " fallocate64 path len\n"
17545 "\n"
17546 msgstr ""
17547
17548 # type: textblock
17549 #: ../fish/guestfish-actions.pod:919
17550 msgid ""
17551 "Note that this call allocates disk blocks for the file.  To create a sparse "
17552 "file use L</truncate-size> instead."
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish-actions.pod:922
17557 msgid ""
17558 "The deprecated call L</fallocate> does the same, but owing to an oversight "
17559 "it only allowed 30 bit lengths to be specified, effectively limiting the "
17560 "maximum size of files created through that call to 1GB."
17561 msgstr ""
17562
17563 # type: =head2
17564 #: ../fish/guestfish-actions.pod:931
17565 msgid "fgrep"
17566 msgstr ""
17567
17568 # type: verbatim
17569 #: ../fish/guestfish-actions.pod:933
17570 #, no-wrap
17571 msgid ""
17572 " fgrep pattern path\n"
17573 "\n"
17574 msgstr ""
17575
17576 # type: =head2
17577 #: ../fish/guestfish-actions.pod:941
17578 msgid "fgrepi"
17579 msgstr ""
17580
17581 # type: verbatim
17582 #: ../fish/guestfish-actions.pod:943
17583 #, no-wrap
17584 msgid ""
17585 " fgrepi pattern path\n"
17586 "\n"
17587 msgstr ""
17588
17589 # type: =head2
17590 #: ../fish/guestfish-actions.pod:951
17591 msgid "file"
17592 msgstr ""
17593
17594 # type: verbatim
17595 #: ../fish/guestfish-actions.pod:953
17596 #, no-wrap
17597 msgid ""
17598 " file path\n"
17599 "\n"
17600 msgstr ""
17601
17602 # type: textblock
17603 #: ../fish/guestfish-actions.pod:965
17604 msgid ""
17605 "This command can also be used on C</dev/> devices (and partitions, LV "
17606 "names).  You can for example use this to determine if a device contains a "
17607 "filesystem, although it's usually better to use L</vfs-type>."
17608 msgstr ""
17609
17610 # type: =head2
17611 #: ../fish/guestfish-actions.pod:975
17612 msgid "file-architecture"
17613 msgstr ""
17614
17615 # type: verbatim
17616 #: ../fish/guestfish-actions.pod:977
17617 #, no-wrap
17618 msgid ""
17619 " file-architecture filename\n"
17620 "\n"
17621 msgstr ""
17622
17623 # type: =head2
17624 #: ../fish/guestfish-actions.pod:1080
17625 msgid "filesize"
17626 msgstr ""
17627
17628 # type: verbatim
17629 #: ../fish/guestfish-actions.pod:1082
17630 #, no-wrap
17631 msgid ""
17632 " filesize file\n"
17633 "\n"
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish-actions.pod:1086
17638 msgid ""
17639 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
17640 "L</is-file> etc.  To get the size of block devices, use "
17641 "L</blockdev-getsize64>."
17642 msgstr ""
17643
17644 # type: =head2
17645 #: ../fish/guestfish-actions.pod:1090
17646 msgid "fill"
17647 msgstr ""
17648
17649 # type: verbatim
17650 #: ../fish/guestfish-actions.pod:1092
17651 #, no-wrap
17652 msgid ""
17653 " fill c len path\n"
17654 "\n"
17655 msgstr ""
17656
17657 # type: textblock
17658 #: ../fish/guestfish-actions.pod:1098
17659 msgid ""
17660 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
17661 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
17662 "L</fill-pattern>."
17663 msgstr ""
17664
17665 # type: =head2
17666 #: ../fish/guestfish-actions.pod:1103
17667 msgid "fill-pattern"
17668 msgstr ""
17669
17670 # type: verbatim
17671 #: ../fish/guestfish-actions.pod:1105
17672 #, no-wrap
17673 msgid ""
17674 " fill-pattern pattern len path\n"
17675 "\n"
17676 msgstr ""
17677
17678 # type: textblock
17679 #: ../fish/guestfish-actions.pod:1107
17680 msgid ""
17681 "This function is like L</fill> except that it creates a new file of length "
17682 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
17683 "is truncated if necessary to ensure the length of the file is exactly C<len> "
17684 "bytes."
17685 msgstr ""
17686
17687 # type: =head2
17688 #: ../fish/guestfish-actions.pod:1112
17689 msgid "find"
17690 msgstr ""
17691
17692 # type: verbatim
17693 #: ../fish/guestfish-actions.pod:1114
17694 #, no-wrap
17695 msgid ""
17696 " find directory\n"
17697 "\n"
17698 msgstr ""
17699
17700 # type: textblock
17701 #: ../fish/guestfish-actions.pod:1128
17702 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
17703 msgstr ""
17704
17705 # type: textblock
17706 #: ../fish/guestfish-actions.pod:1141
17707 msgid "See also L</find0>."
17708 msgstr ""
17709
17710 # type: =head2
17711 #: ../fish/guestfish-actions.pod:1146
17712 msgid "find0"
17713 msgstr ""
17714
17715 # type: verbatim
17716 #: ../fish/guestfish-actions.pod:1148
17717 #, no-wrap
17718 msgid ""
17719 " find0 directory (files|-)\n"
17720 "\n"
17721 msgstr ""
17722
17723 # type: textblock
17724 #: ../fish/guestfish-actions.pod:1154
17725 msgid "This command works the same way as L</find> with the following exceptions:"
17726 msgstr ""
17727
17728 # type: =head2
17729 #: ../fish/guestfish-actions.pod:1181
17730 msgid "findfs-label"
17731 msgstr ""
17732
17733 # type: verbatim
17734 #: ../fish/guestfish-actions.pod:1183
17735 #, no-wrap
17736 msgid ""
17737 " findfs-label label\n"
17738 "\n"
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish-actions.pod:1189
17743 msgid "To find the label of a filesystem, use L</vfs-label>."
17744 msgstr ""
17745
17746 # type: =head2
17747 #: ../fish/guestfish-actions.pod:1191
17748 msgid "findfs-uuid"
17749 msgstr ""
17750
17751 # type: verbatim
17752 #: ../fish/guestfish-actions.pod:1193
17753 #, no-wrap
17754 msgid ""
17755 " findfs-uuid uuid\n"
17756 "\n"
17757 msgstr ""
17758
17759 # type: textblock
17760 #: ../fish/guestfish-actions.pod:1199
17761 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
17762 msgstr ""
17763
17764 # type: =head2
17765 #: ../fish/guestfish-actions.pod:1201
17766 msgid "fsck"
17767 msgstr ""
17768
17769 # type: verbatim
17770 #: ../fish/guestfish-actions.pod:1203
17771 #, no-wrap
17772 msgid ""
17773 " fsck fstype device\n"
17774 "\n"
17775 msgstr ""
17776
17777 # type: =head2
17778 #: ../fish/guestfish-actions.pod:1233
17779 msgid "get-append"
17780 msgstr ""
17781
17782 # type: verbatim
17783 #: ../fish/guestfish-actions.pod:1235
17784 #, no-wrap
17785 msgid ""
17786 " get-append\n"
17787 "\n"
17788 msgstr ""
17789
17790 # type: =head2
17791 #: ../fish/guestfish-actions.pod:1242
17792 msgid "get-autosync"
17793 msgstr ""
17794
17795 # type: verbatim
17796 #: ../fish/guestfish-actions.pod:1244
17797 #, no-wrap
17798 msgid ""
17799 " get-autosync\n"
17800 "\n"
17801 msgstr ""
17802
17803 # type: =head2
17804 #: ../fish/guestfish-actions.pod:1248
17805 msgid "get-direct"
17806 msgstr ""
17807
17808 # type: verbatim
17809 #: ../fish/guestfish-actions.pod:1250
17810 #, no-wrap
17811 msgid ""
17812 " get-direct\n"
17813 "\n"
17814 msgstr ""
17815
17816 # type: =head2
17817 #: ../fish/guestfish-actions.pod:1254
17818 msgid "get-e2label"
17819 msgstr ""
17820
17821 # type: verbatim
17822 #: ../fish/guestfish-actions.pod:1256
17823 #, no-wrap
17824 msgid ""
17825 " get-e2label device\n"
17826 "\n"
17827 msgstr ""
17828
17829 # type: =head2
17830 #: ../fish/guestfish-actions.pod:1268
17831 msgid "get-e2uuid"
17832 msgstr ""
17833
17834 # type: verbatim
17835 #: ../fish/guestfish-actions.pod:1270
17836 #, no-wrap
17837 msgid ""
17838 " get-e2uuid device\n"
17839 "\n"
17840 msgstr ""
17841
17842 # type: =head2
17843 #: ../fish/guestfish-actions.pod:1282
17844 msgid "get-memsize"
17845 msgstr ""
17846
17847 # type: verbatim
17848 #: ../fish/guestfish-actions.pod:1284
17849 #, no-wrap
17850 msgid ""
17851 " get-memsize\n"
17852 "\n"
17853 msgstr ""
17854
17855 # type: textblock
17856 #: ../fish/guestfish-actions.pod:1289
17857 msgid ""
17858 "If L</set-memsize> was not called on this handle, and if "
17859 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
17860 "value for memsize."
17861 msgstr ""
17862
17863 # type: =head2
17864 #: ../fish/guestfish-actions.pod:1296
17865 msgid "get-network"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #: ../fish/guestfish-actions.pod:1298
17870 #, no-wrap
17871 msgid ""
17872 " get-network\n"
17873 "\n"
17874 msgstr ""
17875
17876 # type: =head2
17877 #: ../fish/guestfish-actions.pod:1302
17878 msgid "get-path"
17879 msgstr ""
17880
17881 # type: verbatim
17882 #: ../fish/guestfish-actions.pod:1304
17883 #, no-wrap
17884 msgid ""
17885 " get-path\n"
17886 "\n"
17887 msgstr ""
17888
17889 # type: =head2
17890 #: ../fish/guestfish-actions.pod:1311
17891 msgid "get-pid"
17892 msgstr ""
17893
17894 # type: =head2
17895 #: ../fish/guestfish-actions.pod:1313
17896 msgid "pid"
17897 msgstr ""
17898
17899 # type: verbatim
17900 #: ../fish/guestfish-actions.pod:1315
17901 #, no-wrap
17902 msgid ""
17903 " get-pid\n"
17904 "\n"
17905 msgstr ""
17906
17907 # type: =head2
17908 #: ../fish/guestfish-actions.pod:1322
17909 msgid "get-qemu"
17910 msgstr ""
17911
17912 # type: verbatim
17913 #: ../fish/guestfish-actions.pod:1324
17914 #, no-wrap
17915 msgid ""
17916 " get-qemu\n"
17917 "\n"
17918 msgstr ""
17919
17920 # type: =head2
17921 #: ../fish/guestfish-actions.pod:1331
17922 msgid "get-recovery-proc"
17923 msgstr ""
17924
17925 # type: verbatim
17926 #: ../fish/guestfish-actions.pod:1333
17927 #, no-wrap
17928 msgid ""
17929 " get-recovery-proc\n"
17930 "\n"
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:1337
17935 msgid "get-selinux"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:1339
17940 #, no-wrap
17941 msgid ""
17942 " get-selinux\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: textblock
17947 #: ../fish/guestfish-actions.pod:1341
17948 msgid ""
17949 "This returns the current setting of the selinux flag which is passed to the "
17950 "appliance at boot time.  See L</set-selinux>."
17951 msgstr ""
17952
17953 # type: =head2
17954 #: ../fish/guestfish-actions.pod:1347
17955 msgid "get-state"
17956 msgstr ""
17957
17958 # type: verbatim
17959 #: ../fish/guestfish-actions.pod:1349
17960 #, no-wrap
17961 msgid ""
17962 " get-state\n"
17963 "\n"
17964 msgstr ""
17965
17966 # type: =head2
17967 #: ../fish/guestfish-actions.pod:1356
17968 msgid "get-trace"
17969 msgstr ""
17970
17971 # type: verbatim
17972 #: ../fish/guestfish-actions.pod:1358
17973 #, no-wrap
17974 msgid ""
17975 " get-trace\n"
17976 "\n"
17977 msgstr ""
17978
17979 # type: =head2
17980 #: ../fish/guestfish-actions.pod:1362
17981 msgid "get-umask"
17982 msgstr ""
17983
17984 # type: verbatim
17985 #: ../fish/guestfish-actions.pod:1364
17986 #, no-wrap
17987 msgid ""
17988 " get-umask\n"
17989 "\n"
17990 msgstr ""
17991
17992 # type: textblock
17993 #: ../fish/guestfish-actions.pod:1366
17994 msgid ""
17995 "Return the current umask.  By default the umask is C<022> unless it has been "
17996 "set by calling L</umask>."
17997 msgstr ""
17998
17999 # type: =head2
18000 #: ../fish/guestfish-actions.pod:1369
18001 msgid "get-verbose"
18002 msgstr ""
18003
18004 # type: verbatim
18005 #: ../fish/guestfish-actions.pod:1371
18006 #, no-wrap
18007 msgid ""
18008 " get-verbose\n"
18009 "\n"
18010 msgstr ""
18011
18012 # type: =head2
18013 #: ../fish/guestfish-actions.pod:1375
18014 msgid "getcon"
18015 msgstr ""
18016
18017 # type: verbatim
18018 #: ../fish/guestfish-actions.pod:1377
18019 #, no-wrap
18020 msgid ""
18021 " getcon\n"
18022 "\n"
18023 msgstr ""
18024
18025 # type: textblock
18026 #: ../fish/guestfish-actions.pod:1381
18027 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18028 msgstr ""
18029
18030 # type: =head2
18031 #: ../fish/guestfish-actions.pod:1384
18032 msgid "getxattrs"
18033 msgstr ""
18034
18035 # type: verbatim
18036 #: ../fish/guestfish-actions.pod:1386
18037 #, no-wrap
18038 msgid ""
18039 " getxattrs path\n"
18040 "\n"
18041 msgstr ""
18042
18043 # type: textblock
18044 #: ../fish/guestfish-actions.pod:1394
18045 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18046 msgstr ""
18047
18048 # type: =head2
18049 #: ../fish/guestfish-actions.pod:1396
18050 msgid "glob-expand"
18051 msgstr ""
18052
18053 # type: verbatim
18054 #: ../fish/guestfish-actions.pod:1398
18055 #, no-wrap
18056 msgid ""
18057 " glob-expand pattern\n"
18058 "\n"
18059 msgstr ""
18060
18061 # type: =head2
18062 #: ../fish/guestfish-actions.pod:1411
18063 msgid "grep"
18064 msgstr ""
18065
18066 # type: verbatim
18067 #: ../fish/guestfish-actions.pod:1413
18068 #, no-wrap
18069 msgid ""
18070 " grep regex path\n"
18071 "\n"
18072 msgstr ""
18073
18074 # type: =head2
18075 #: ../fish/guestfish-actions.pod:1421
18076 msgid "grepi"
18077 msgstr ""
18078
18079 # type: verbatim
18080 #: ../fish/guestfish-actions.pod:1423
18081 #, no-wrap
18082 msgid ""
18083 " grepi regex path\n"
18084 "\n"
18085 msgstr ""
18086
18087 # type: =head2
18088 #: ../fish/guestfish-actions.pod:1431
18089 msgid "grub-install"
18090 msgstr ""
18091
18092 # type: verbatim
18093 #: ../fish/guestfish-actions.pod:1433
18094 #, no-wrap
18095 msgid ""
18096 " grub-install root device\n"
18097 "\n"
18098 msgstr ""
18099
18100 # type: =head2
18101 #: ../fish/guestfish-actions.pod:1449
18102 msgid "head"
18103 msgstr ""
18104
18105 # type: verbatim
18106 #: ../fish/guestfish-actions.pod:1451
18107 #, no-wrap
18108 msgid ""
18109 " head path\n"
18110 "\n"
18111 msgstr ""
18112
18113 # type: =head2
18114 #: ../fish/guestfish-actions.pod:1459
18115 msgid "head-n"
18116 msgstr ""
18117
18118 # type: verbatim
18119 #: ../fish/guestfish-actions.pod:1461
18120 #, no-wrap
18121 msgid ""
18122 " head-n nrlines path\n"
18123 "\n"
18124 msgstr ""
18125
18126 # type: =head2
18127 #: ../fish/guestfish-actions.pod:1474
18128 msgid "hexdump"
18129 msgstr ""
18130
18131 # type: verbatim
18132 #: ../fish/guestfish-actions.pod:1476
18133 #, no-wrap
18134 msgid ""
18135 " hexdump path\n"
18136 "\n"
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish-actions.pod:1484
18141 msgid "initrd-cat"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #: ../fish/guestfish-actions.pod:1486
18146 #, no-wrap
18147 msgid ""
18148 " initrd-cat initrdpath filename\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish-actions.pod:1498
18154 msgid "See also L</initrd-list>."
18155 msgstr ""
18156
18157 # type: =head2
18158 #: ../fish/guestfish-actions.pod:1503
18159 msgid "initrd-list"
18160 msgstr ""
18161
18162 # type: verbatim
18163 #: ../fish/guestfish-actions.pod:1505
18164 #, no-wrap
18165 msgid ""
18166 " initrd-list path\n"
18167 "\n"
18168 msgstr ""
18169
18170 # type: =head2
18171 #: ../fish/guestfish-actions.pod:1517
18172 msgid "inotify-add-watch"
18173 msgstr ""
18174
18175 # type: verbatim
18176 #: ../fish/guestfish-actions.pod:1519
18177 #, no-wrap
18178 msgid ""
18179 " inotify-add-watch path mask\n"
18180 "\n"
18181 msgstr ""
18182
18183 # type: =head2
18184 #: ../fish/guestfish-actions.pod:1531
18185 msgid "inotify-close"
18186 msgstr ""
18187
18188 # type: verbatim
18189 #: ../fish/guestfish-actions.pod:1533
18190 #, no-wrap
18191 msgid ""
18192 " inotify-close\n"
18193 "\n"
18194 msgstr ""
18195
18196 # type: =head2
18197 #: ../fish/guestfish-actions.pod:1539
18198 msgid "inotify-files"
18199 msgstr ""
18200
18201 # type: verbatim
18202 #: ../fish/guestfish-actions.pod:1541
18203 #, no-wrap
18204 msgid ""
18205 " inotify-files\n"
18206 "\n"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish-actions.pod:1543
18211 msgid ""
18212 "This function is a helpful wrapper around L</inotify-read> which just "
18213 "returns a list of pathnames of objects that were touched.  The returned "
18214 "pathnames are sorted and deduplicated."
18215 msgstr ""
18216
18217 # type: =head2
18218 #: ../fish/guestfish-actions.pod:1547
18219 msgid "inotify-init"
18220 msgstr ""
18221
18222 # type: verbatim
18223 #: ../fish/guestfish-actions.pod:1549
18224 #, no-wrap
18225 msgid ""
18226 " inotify-init maxevents\n"
18227 "\n"
18228 msgstr ""
18229
18230 # type: textblock
18231 #: ../fish/guestfish-actions.pod:1555
18232 msgid ""
18233 "C<maxevents> is the maximum number of events which will be queued up between "
18234 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18235 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18236 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18237 "but records the fact that it threw them away by setting a flag "
18238 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18239 msgstr ""
18240
18241 # type: textblock
18242 #: ../fish/guestfish-actions.pod:1565
18243 msgid ""
18244 "Before any events are generated, you have to add some watches to the "
18245 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18246 "L</inotify-watch-all>."
18247 msgstr ""
18248
18249 # type: textblock
18250 #: ../fish/guestfish-actions.pod:1571
18251 msgid ""
18252 "Queued up events should be read periodically by calling L</inotify-read> (or "
18253 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18254 "If you don't read the events out often enough then you risk the internal "
18255 "queue overflowing."
18256 msgstr ""
18257
18258 # type: textblock
18259 #: ../fish/guestfish-actions.pod:1578
18260 msgid ""
18261 "The handle should be closed after use by calling L</inotify-close>.  This "
18262 "also removes any watches automatically."
18263 msgstr ""
18264
18265 # type: =head2
18266 #: ../fish/guestfish-actions.pod:1587
18267 msgid "inotify-read"
18268 msgstr ""
18269
18270 # type: verbatim
18271 #: ../fish/guestfish-actions.pod:1589
18272 #, no-wrap
18273 msgid ""
18274 " inotify-read\n"
18275 "\n"
18276 msgstr ""
18277
18278 # type: =head2
18279 #: ../fish/guestfish-actions.pod:1602
18280 msgid "inotify-rm-watch"
18281 msgstr ""
18282
18283 # type: verbatim
18284 #: ../fish/guestfish-actions.pod:1604
18285 #, no-wrap
18286 msgid ""
18287 " inotify-rm-watch wd\n"
18288 "\n"
18289 msgstr ""
18290
18291 # type: textblock
18292 #: ../fish/guestfish-actions.pod:1606
18293 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18294 msgstr ""
18295
18296 # type: =head2
18297 #: ../fish/guestfish-actions.pod:1609
18298 msgid "inspect-get-arch"
18299 msgstr ""
18300
18301 # type: verbatim
18302 #: ../fish/guestfish-actions.pod:1611
18303 #, no-wrap
18304 msgid ""
18305 " inspect-get-arch root\n"
18306 "\n"
18307 msgstr ""
18308
18309 # type: textblock
18310 #: ../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
18311 msgid ""
18312 "This function should only be called with a root device string as returned by "
18313 "L</inspect-os>."
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish-actions.pod:1616
18318 msgid ""
18319 "This returns the architecture of the inspected operating system.  The "
18320 "possible return values are listed under L</file-architecture>."
18321 msgstr ""
18322
18323 # type: =head2
18324 #: ../fish/guestfish-actions.pod:1625
18325 msgid "inspect-get-distro"
18326 msgstr ""
18327
18328 # type: verbatim
18329 #: ../fish/guestfish-actions.pod:1627
18330 #, no-wrap
18331 msgid ""
18332 " inspect-get-distro root\n"
18333 "\n"
18334 msgstr ""
18335
18336 # type: =head2
18337 #: ../fish/guestfish-actions.pod:1671
18338 msgid "inspect-get-filesystems"
18339 msgstr ""
18340
18341 # type: verbatim
18342 #: ../fish/guestfish-actions.pod:1673
18343 #, no-wrap
18344 msgid ""
18345 " inspect-get-filesystems root\n"
18346 "\n"
18347 msgstr ""
18348
18349 # type: textblock
18350 #: ../fish/guestfish-actions.pod:1686
18351 msgid ""
18352 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18353 "L</inspect-get-mountpoints>."
18354 msgstr ""
18355
18356 # type: =head2
18357 #: ../fish/guestfish-actions.pod:1689
18358 msgid "inspect-get-major-version"
18359 msgstr ""
18360
18361 # type: verbatim
18362 #: ../fish/guestfish-actions.pod:1691
18363 #, no-wrap
18364 msgid ""
18365 " inspect-get-major-version root\n"
18366 "\n"
18367 msgstr ""
18368
18369 # type: =head2
18370 #: ../fish/guestfish-actions.pod:1710
18371 msgid "inspect-get-minor-version"
18372 msgstr ""
18373
18374 # type: verbatim
18375 #: ../fish/guestfish-actions.pod:1712
18376 #, no-wrap
18377 msgid ""
18378 " inspect-get-minor-version root\n"
18379 "\n"
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish-actions.pod:1722
18384 msgid ""
18385 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18386 "L</inspect-get-major-version>."
18387 msgstr ""
18388
18389 # type: =head2
18390 #: ../fish/guestfish-actions.pod:1725
18391 msgid "inspect-get-mountpoints"
18392 msgstr ""
18393
18394 # type: verbatim
18395 #: ../fish/guestfish-actions.pod:1727
18396 #, no-wrap
18397 msgid ""
18398 " inspect-get-mountpoints root\n"
18399 "\n"
18400 msgstr ""
18401
18402 # type: textblock
18403 #: ../fish/guestfish-actions.pod:1745
18404 msgid ""
18405 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18406 "L</inspect-get-filesystems>."
18407 msgstr ""
18408
18409 # type: =head2
18410 #: ../fish/guestfish-actions.pod:1748
18411 msgid "inspect-get-product-name"
18412 msgstr ""
18413
18414 # type: verbatim
18415 #: ../fish/guestfish-actions.pod:1750
18416 #, no-wrap
18417 msgid ""
18418 " inspect-get-product-name root\n"
18419 "\n"
18420 msgstr ""
18421
18422 # type: =head2
18423 #: ../fish/guestfish-actions.pod:1765
18424 msgid "inspect-get-type"
18425 msgstr ""
18426
18427 # type: verbatim
18428 #: ../fish/guestfish-actions.pod:1767
18429 #, no-wrap
18430 msgid ""
18431 " inspect-get-type root\n"
18432 "\n"
18433 msgstr ""
18434
18435 # type: =head2
18436 #: ../fish/guestfish-actions.pod:1796
18437 msgid "inspect-os"
18438 msgstr ""
18439
18440 # type: verbatim
18441 #: ../fish/guestfish-actions.pod:1798
18442 #, no-wrap
18443 msgid ""
18444 " inspect-os\n"
18445 "\n"
18446 msgstr ""
18447
18448 # type: textblock
18449 #: ../fish/guestfish-actions.pod:1813
18450 msgid ""
18451 "You can pass the root string(s) returned to other L</inspect-get-*> "
18452 "functions in order to query further information about each operating system, "
18453 "such as the name and version."
18454 msgstr ""
18455
18456 # type: textblock
18457 #: ../fish/guestfish-actions.pod:1818
18458 msgid ""
18459 "This function uses other libguestfs features such as L</mount-ro> and "
18460 "L</umount-all> in order to mount and unmount filesystems and look at the "
18461 "contents.  This should be called with no disks currently mounted.  The "
18462 "function may also use Augeas, so any existing Augeas handle will be closed."
18463 msgstr ""
18464
18465 # type: textblock
18466 #: ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2032
18467 msgid "See also L</list-filesystems>."
18468 msgstr ""
18469
18470 # type: =head2
18471 #: ../fish/guestfish-actions.pod:1832
18472 msgid "is-blockdev"
18473 msgstr ""
18474
18475 # type: verbatim
18476 #: ../fish/guestfish-actions.pod:1834
18477 #, no-wrap
18478 msgid ""
18479 " is-blockdev path\n"
18480 "\n"
18481 msgstr ""
18482
18483 # type: textblock
18484 #: ../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
18485 msgid "See also L</stat>."
18486 msgstr ""
18487
18488 # type: =head2
18489 #: ../fish/guestfish-actions.pod:1841
18490 msgid "is-busy"
18491 msgstr ""
18492
18493 # type: verbatim
18494 #: ../fish/guestfish-actions.pod:1843
18495 #, no-wrap
18496 msgid ""
18497 " is-busy\n"
18498 "\n"
18499 msgstr ""
18500
18501 # type: =head2
18502 #: ../fish/guestfish-actions.pod:1850
18503 msgid "is-chardev"
18504 msgstr ""
18505
18506 # type: verbatim
18507 #: ../fish/guestfish-actions.pod:1852
18508 #, no-wrap
18509 msgid ""
18510 " is-chardev path\n"
18511 "\n"
18512 msgstr ""
18513
18514 # type: =head2
18515 #: ../fish/guestfish-actions.pod:1859
18516 msgid "is-config"
18517 msgstr ""
18518
18519 # type: verbatim
18520 #: ../fish/guestfish-actions.pod:1861
18521 #, no-wrap
18522 msgid ""
18523 " is-config\n"
18524 "\n"
18525 msgstr ""
18526
18527 # type: =head2
18528 #: ../fish/guestfish-actions.pod:1868
18529 msgid "is-dir"
18530 msgstr ""
18531
18532 # type: verbatim
18533 #: ../fish/guestfish-actions.pod:1870
18534 #, no-wrap
18535 msgid ""
18536 " is-dir path\n"
18537 "\n"
18538 msgstr ""
18539
18540 # type: =head2
18541 #: ../fish/guestfish-actions.pod:1878
18542 msgid "is-fifo"
18543 msgstr ""
18544
18545 # type: verbatim
18546 #: ../fish/guestfish-actions.pod:1880
18547 #, no-wrap
18548 msgid ""
18549 " is-fifo path\n"
18550 "\n"
18551 msgstr ""
18552
18553 # type: =head2
18554 #: ../fish/guestfish-actions.pod:1887
18555 msgid "is-file"
18556 msgstr ""
18557
18558 # type: verbatim
18559 #: ../fish/guestfish-actions.pod:1889
18560 #, no-wrap
18561 msgid ""
18562 " is-file path\n"
18563 "\n"
18564 msgstr ""
18565
18566 # type: =head2
18567 #: ../fish/guestfish-actions.pod:1897
18568 msgid "is-launching"
18569 msgstr ""
18570
18571 # type: verbatim
18572 #: ../fish/guestfish-actions.pod:1899
18573 #, no-wrap
18574 msgid ""
18575 " is-launching\n"
18576 "\n"
18577 msgstr ""
18578
18579 # type: =head2
18580 #: ../fish/guestfish-actions.pod:1906
18581 msgid "is-lv"
18582 msgstr ""
18583
18584 # type: verbatim
18585 #: ../fish/guestfish-actions.pod:1908
18586 #, no-wrap
18587 msgid ""
18588 " is-lv device\n"
18589 "\n"
18590 msgstr ""
18591
18592 # type: =head2
18593 #: ../fish/guestfish-actions.pod:1913
18594 msgid "is-ready"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #: ../fish/guestfish-actions.pod:1915
18599 #, no-wrap
18600 msgid ""
18601 " is-ready\n"
18602 "\n"
18603 msgstr ""
18604
18605 # type: =head2
18606 #: ../fish/guestfish-actions.pod:1922
18607 msgid "is-socket"
18608 msgstr ""
18609
18610 # type: verbatim
18611 #: ../fish/guestfish-actions.pod:1924
18612 #, no-wrap
18613 msgid ""
18614 " is-socket path\n"
18615 "\n"
18616 msgstr ""
18617
18618 # type: =head2
18619 #: ../fish/guestfish-actions.pod:1931
18620 msgid "is-symlink"
18621 msgstr ""
18622
18623 # type: verbatim
18624 #: ../fish/guestfish-actions.pod:1933
18625 #, no-wrap
18626 msgid ""
18627 " is-symlink path\n"
18628 "\n"
18629 msgstr ""
18630
18631 # type: =head2
18632 #: ../fish/guestfish-actions.pod:1940
18633 msgid "kill-subprocess"
18634 msgstr ""
18635
18636 # type: verbatim
18637 #: ../fish/guestfish-actions.pod:1942
18638 #, no-wrap
18639 msgid ""
18640 " kill-subprocess\n"
18641 "\n"
18642 msgstr ""
18643
18644 # type: =head2
18645 #: ../fish/guestfish-actions.pod:1946
18646 msgid "launch"
18647 msgstr ""
18648
18649 # type: =head2
18650 #: ../fish/guestfish-actions.pod:1948
18651 msgid "run"
18652 msgstr ""
18653
18654 # type: verbatim
18655 #: ../fish/guestfish-actions.pod:1950
18656 #, no-wrap
18657 msgid ""
18658 " launch\n"
18659 "\n"
18660 msgstr ""
18661
18662 # type: =head2
18663 #: ../fish/guestfish-actions.pod:1958
18664 msgid "lchown"
18665 msgstr ""
18666
18667 # type: verbatim
18668 #: ../fish/guestfish-actions.pod:1960
18669 #, no-wrap
18670 msgid ""
18671 " lchown owner group path\n"
18672 "\n"
18673 msgstr ""
18674
18675 # type: textblock
18676 #: ../fish/guestfish-actions.pod:1962
18677 msgid ""
18678 "Change the file owner to C<owner> and group to C<group>.  This is like "
18679 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
18680 "the target."
18681 msgstr ""
18682
18683 # type: =head2
18684 #: ../fish/guestfish-actions.pod:1970
18685 msgid "lgetxattrs"
18686 msgstr ""
18687
18688 # type: verbatim
18689 #: ../fish/guestfish-actions.pod:1972
18690 #, no-wrap
18691 msgid ""
18692 " lgetxattrs path\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish-actions.pod:1974
18698 msgid ""
18699 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
18700 "it returns the extended attributes of the link itself."
18701 msgstr ""
18702
18703 # type: =head2
18704 #: ../fish/guestfish-actions.pod:1978
18705 msgid "list-devices"
18706 msgstr ""
18707
18708 # type: verbatim
18709 #: ../fish/guestfish-actions.pod:1980
18710 #, no-wrap
18711 msgid ""
18712 " list-devices\n"
18713 "\n"
18714 msgstr ""
18715
18716 # type: =head2
18717 #: ../fish/guestfish-actions.pod:1988
18718 msgid "list-filesystems"
18719 msgstr ""
18720
18721 # type: verbatim
18722 #: ../fish/guestfish-actions.pod:1990
18723 #, no-wrap
18724 msgid ""
18725 " list-filesystems\n"
18726 "\n"
18727 msgstr ""
18728
18729 # type: textblock
18730 #: ../fish/guestfish-actions.pod:2009
18731 msgid ""
18732 "This command runs other libguestfs commands, which might include L</mount> "
18733 "and L</umount>, and therefore you should use this soon after launch and only "
18734 "when nothing is mounted."
18735 msgstr ""
18736
18737 # type: textblock
18738 #: ../fish/guestfish-actions.pod:2013
18739 msgid ""
18740 "Not all of the filesystems returned will be mountable.  In particular, swap "
18741 "partitions are returned in the list.  Also this command does not check that "
18742 "each filesystem found is valid and mountable, and some filesystems might be "
18743 "mountable but require special options.  Filesystems may not all belong to a "
18744 "single logical operating system (use L</inspect-os> to look for OSes)."
18745 msgstr ""
18746
18747 # type: =head2
18748 #: ../fish/guestfish-actions.pod:2021
18749 msgid "list-partitions"
18750 msgstr ""
18751
18752 # type: verbatim
18753 #: ../fish/guestfish-actions.pod:2023
18754 #, no-wrap
18755 msgid ""
18756 " list-partitions\n"
18757 "\n"
18758 msgstr ""
18759
18760 # type: textblock
18761 #: ../fish/guestfish-actions.pod:2029
18762 msgid ""
18763 "This does not return logical volumes.  For that you will need to call "
18764 "L</lvs>."
18765 msgstr ""
18766
18767 # type: =head2
18768 #: ../fish/guestfish-actions.pod:2034
18769 msgid "ll"
18770 msgstr ""
18771
18772 # type: verbatim
18773 #: ../fish/guestfish-actions.pod:2036
18774 #, no-wrap
18775 msgid ""
18776 " ll directory\n"
18777 "\n"
18778 msgstr ""
18779
18780 # type: =head2
18781 #: ../fish/guestfish-actions.pod:2044
18782 msgid "ln"
18783 msgstr ""
18784
18785 # type: verbatim
18786 #: ../fish/guestfish-actions.pod:2046
18787 #, no-wrap
18788 msgid ""
18789 " ln target linkname\n"
18790 "\n"
18791 msgstr ""
18792
18793 # type: =head2
18794 #: ../fish/guestfish-actions.pod:2050
18795 msgid "ln-f"
18796 msgstr ""
18797
18798 # type: verbatim
18799 #: ../fish/guestfish-actions.pod:2052
18800 #, no-wrap
18801 msgid ""
18802 " ln-f target linkname\n"
18803 "\n"
18804 msgstr ""
18805
18806 # type: =head2
18807 #: ../fish/guestfish-actions.pod:2057
18808 msgid "ln-s"
18809 msgstr ""
18810
18811 # type: verbatim
18812 #: ../fish/guestfish-actions.pod:2059
18813 #, no-wrap
18814 msgid ""
18815 " ln-s target linkname\n"
18816 "\n"
18817 msgstr ""
18818
18819 # type: =head2
18820 #: ../fish/guestfish-actions.pod:2063
18821 msgid "ln-sf"
18822 msgstr ""
18823
18824 # type: verbatim
18825 #: ../fish/guestfish-actions.pod:2065
18826 #, no-wrap
18827 msgid ""
18828 " ln-sf target linkname\n"
18829 "\n"
18830 msgstr ""
18831
18832 # type: =head2
18833 #: ../fish/guestfish-actions.pod:2070
18834 msgid "lremovexattr"
18835 msgstr ""
18836
18837 # type: verbatim
18838 #: ../fish/guestfish-actions.pod:2072
18839 #, no-wrap
18840 msgid ""
18841 " lremovexattr xattr path\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish-actions.pod:2074
18847 msgid ""
18848 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
18849 "it removes an extended attribute of the link itself."
18850 msgstr ""
18851
18852 # type: =head2
18853 #: ../fish/guestfish-actions.pod:2078
18854 msgid "ls"
18855 msgstr ""
18856
18857 # type: verbatim
18858 #: ../fish/guestfish-actions.pod:2080
18859 #, no-wrap
18860 msgid ""
18861 " ls directory\n"
18862 "\n"
18863 msgstr ""
18864
18865 # type: textblock
18866 #: ../fish/guestfish-actions.pod:2086
18867 msgid ""
18868 "This command is mostly useful for interactive sessions.  Programs should "
18869 "probably use L</readdir> instead."
18870 msgstr ""
18871
18872 # type: =head2
18873 #: ../fish/guestfish-actions.pod:2089
18874 msgid "lsetxattr"
18875 msgstr ""
18876
18877 # type: verbatim
18878 #: ../fish/guestfish-actions.pod:2091
18879 #, no-wrap
18880 msgid ""
18881 " lsetxattr xattr val vallen path\n"
18882 "\n"
18883 msgstr ""
18884
18885 # type: textblock
18886 #: ../fish/guestfish-actions.pod:2093
18887 msgid ""
18888 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
18889 "sets an extended attribute of the link itself."
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:2097
18894 msgid "lstat"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:2099
18899 #, no-wrap
18900 msgid ""
18901 " lstat path\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: textblock
18906 #: ../fish/guestfish-actions.pod:2103
18907 msgid ""
18908 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
18909 "the link is stat-ed, not the file it refers to."
18910 msgstr ""
18911
18912 # type: =head2
18913 #: ../fish/guestfish-actions.pod:2109
18914 msgid "lstatlist"
18915 msgstr ""
18916
18917 # type: verbatim
18918 #: ../fish/guestfish-actions.pod:2111
18919 #, no-wrap
18920 msgid ""
18921 " lstatlist path 'names ...'\n"
18922 "\n"
18923 msgstr ""
18924
18925 # type: textblock
18926 #: ../fish/guestfish-actions.pod:2113
18927 msgid ""
18928 "This call allows you to perform the L</lstat> operation on multiple files, "
18929 "where all files are in the directory C<path>.  C<names> is the list of files "
18930 "from this directory."
18931 msgstr ""
18932
18933 # type: textblock
18934 #: ../fish/guestfish-actions.pod:2122
18935 msgid ""
18936 "This call is intended for programs that want to efficiently list a directory "
18937 "contents without making many round-trips.  See also L</lxattrlist> for a "
18938 "similarly efficient call for getting extended attributes.  Very long "
18939 "directory listings might cause the protocol message size to be exceeded, "
18940 "causing this call to fail.  The caller must split up such requests into "
18941 "smaller groups of names."
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:2130
18946 msgid "luks-add-key"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish-actions.pod:2132
18951 #, no-wrap
18952 msgid ""
18953 " luks-add-key device keyslot\n"
18954 "\n"
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish-actions.pod:2139
18959 msgid ""
18960 "Note that if C<keyslot> already contains a key, then this command will "
18961 "fail.  You have to use L</luks-kill-slot> first to remove that key."
18962 msgstr ""
18963
18964 # type: textblock
18965 #: ../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
18966 msgid ""
18967 "This command has one or more key or passphrase parameters.  Guestfish will "
18968 "prompt for these separately."
18969 msgstr ""
18970
18971 # type: =head2
18972 #: ../fish/guestfish-actions.pod:2146
18973 msgid "luks-close"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #: ../fish/guestfish-actions.pod:2148
18978 #, no-wrap
18979 msgid ""
18980 " luks-close device\n"
18981 "\n"
18982 msgstr ""
18983
18984 # type: textblock
18985 #: ../fish/guestfish-actions.pod:2150
18986 msgid ""
18987 "This closes a LUKS device that was created earlier by L</luks-open> or "
18988 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
18989 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
18990 "underlying block device."
18991 msgstr ""
18992
18993 # type: =head2
18994 #: ../fish/guestfish-actions.pod:2156
18995 msgid "luks-format"
18996 msgstr ""
18997
18998 # type: verbatim
18999 #: ../fish/guestfish-actions.pod:2158
19000 #, no-wrap
19001 msgid ""
19002 " luks-format device keyslot\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: =head2
19007 #: ../fish/guestfish-actions.pod:2171
19008 msgid "luks-format-cipher"
19009 msgstr ""
19010
19011 # type: verbatim
19012 #: ../fish/guestfish-actions.pod:2173
19013 #, no-wrap
19014 msgid ""
19015 " luks-format-cipher device keyslot cipher\n"
19016 "\n"
19017 msgstr ""
19018
19019 # type: textblock
19020 #: ../fish/guestfish-actions.pod:2175
19021 msgid ""
19022 "This command is the same as L</luks-format> but it also allows you to set "
19023 "the C<cipher> used."
19024 msgstr ""
19025
19026 # type: =head2
19027 #: ../fish/guestfish-actions.pod:2184
19028 msgid "luks-kill-slot"
19029 msgstr ""
19030
19031 # type: verbatim
19032 #: ../fish/guestfish-actions.pod:2186
19033 #, no-wrap
19034 msgid ""
19035 " luks-kill-slot device keyslot\n"
19036 "\n"
19037 msgstr ""
19038
19039 # type: =head2
19040 #: ../fish/guestfish-actions.pod:2195
19041 msgid "luks-open"
19042 msgstr ""
19043
19044 # type: verbatim
19045 #: ../fish/guestfish-actions.pod:2197
19046 #, no-wrap
19047 msgid ""
19048 " luks-open device mapname\n"
19049 "\n"
19050 msgstr ""
19051
19052 # type: textblock
19053 #: ../fish/guestfish-actions.pod:2211
19054 msgid ""
19055 "If this block device contains LVM volume groups, then calling L</vgscan> "
19056 "followed by L</vg-activate-all> will make them visible."
19057 msgstr ""
19058
19059 # type: =head2
19060 #: ../fish/guestfish-actions.pod:2218
19061 msgid "luks-open-ro"
19062 msgstr ""
19063
19064 # type: verbatim
19065 #: ../fish/guestfish-actions.pod:2220
19066 #, no-wrap
19067 msgid ""
19068 " luks-open-ro device mapname\n"
19069 "\n"
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish-actions.pod:2222
19074 msgid ""
19075 "This is the same as L</luks-open> except that a read-only mapping is "
19076 "created."
19077 msgstr ""
19078
19079 # type: =head2
19080 #: ../fish/guestfish-actions.pod:2228
19081 msgid "lvcreate"
19082 msgstr ""
19083
19084 # type: verbatim
19085 #: ../fish/guestfish-actions.pod:2230
19086 #, no-wrap
19087 msgid ""
19088 " lvcreate logvol volgroup mbytes\n"
19089 "\n"
19090 msgstr ""
19091
19092 # type: =head2
19093 #: ../fish/guestfish-actions.pod:2235
19094 msgid "lvm-clear-filter"
19095 msgstr ""
19096
19097 # type: verbatim
19098 #: ../fish/guestfish-actions.pod:2237
19099 #, no-wrap
19100 msgid ""
19101 " lvm-clear-filter\n"
19102 "\n"
19103 msgstr ""
19104
19105 # type: textblock
19106 #: ../fish/guestfish-actions.pod:2239
19107 msgid ""
19108 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
19109 "block device."
19110 msgstr ""
19111
19112 # type: =head2
19113 #: ../fish/guestfish-actions.pod:2245
19114 msgid "lvm-remove-all"
19115 msgstr ""
19116
19117 # type: verbatim
19118 #: ../fish/guestfish-actions.pod:2247
19119 #, no-wrap
19120 msgid ""
19121 " lvm-remove-all\n"
19122 "\n"
19123 msgstr ""
19124
19125 # type: =head2
19126 #: ../fish/guestfish-actions.pod:2255
19127 msgid "lvm-set-filter"
19128 msgstr ""
19129
19130 # type: verbatim
19131 #: ../fish/guestfish-actions.pod:2257
19132 #, no-wrap
19133 msgid ""
19134 " lvm-set-filter 'devices ...'\n"
19135 "\n"
19136 msgstr ""
19137
19138 # type: =head2
19139 #: ../fish/guestfish-actions.pod:2282
19140 msgid "lvremove"
19141 msgstr ""
19142
19143 # type: verbatim
19144 #: ../fish/guestfish-actions.pod:2284
19145 #, no-wrap
19146 msgid ""
19147 " lvremove device\n"
19148 "\n"
19149 msgstr ""
19150
19151 # type: =head2
19152 #: ../fish/guestfish-actions.pod:2292
19153 msgid "lvrename"
19154 msgstr ""
19155
19156 # type: verbatim
19157 #: ../fish/guestfish-actions.pod:2294
19158 #, no-wrap
19159 msgid ""
19160 " lvrename logvol newlogvol\n"
19161 "\n"
19162 msgstr ""
19163
19164 # type: =head2
19165 #: ../fish/guestfish-actions.pod:2298
19166 msgid "lvresize"
19167 msgstr ""
19168
19169 # type: verbatim
19170 #: ../fish/guestfish-actions.pod:2300
19171 #, no-wrap
19172 msgid ""
19173 " lvresize device mbytes\n"
19174 "\n"
19175 msgstr ""
19176
19177 # type: =head2
19178 #: ../fish/guestfish-actions.pod:2306
19179 msgid "lvresize-free"
19180 msgstr ""
19181
19182 # type: verbatim
19183 #: ../fish/guestfish-actions.pod:2308
19184 #, no-wrap
19185 msgid ""
19186 " lvresize-free lv percent\n"
19187 "\n"
19188 msgstr ""
19189
19190 # type: =head2
19191 #: ../fish/guestfish-actions.pod:2316
19192 msgid "lvs"
19193 msgstr ""
19194
19195 # type: verbatim
19196 #: ../fish/guestfish-actions.pod:2318
19197 #, no-wrap
19198 msgid ""
19199 " lvs\n"
19200 "\n"
19201 msgstr ""
19202
19203 # type: textblock
19204 #: ../fish/guestfish-actions.pod:2326
19205 msgid "See also L</lvs-full>, L</list-filesystems>."
19206 msgstr ""
19207
19208 # type: =head2
19209 #: ../fish/guestfish-actions.pod:2328
19210 msgid "lvs-full"
19211 msgstr ""
19212
19213 # type: verbatim
19214 #: ../fish/guestfish-actions.pod:2330
19215 #, no-wrap
19216 msgid ""
19217 " lvs-full\n"
19218 "\n"
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:2335
19223 msgid "lvuuid"
19224 msgstr ""
19225
19226 # type: verbatim
19227 #: ../fish/guestfish-actions.pod:2337
19228 #, no-wrap
19229 msgid ""
19230 " lvuuid device\n"
19231 "\n"
19232 msgstr ""
19233
19234 # type: =head2
19235 #: ../fish/guestfish-actions.pod:2341
19236 msgid "lxattrlist"
19237 msgstr ""
19238
19239 # type: verbatim
19240 #: ../fish/guestfish-actions.pod:2343
19241 #, no-wrap
19242 msgid ""
19243 " lxattrlist path 'names ...'\n"
19244 "\n"
19245 msgstr ""
19246
19247 # type: textblock
19248 #: ../fish/guestfish-actions.pod:2359
19249 msgid ""
19250 "This call is intended for programs that want to efficiently list a directory "
19251 "contents without making many round-trips.  See also L</lstatlist> for a "
19252 "similarly efficient call for getting standard stats.  Very long directory "
19253 "listings might cause the protocol message size to be exceeded, causing this "
19254 "call to fail.  The caller must split up such requests into smaller groups of "
19255 "names."
19256 msgstr ""
19257
19258 # type: =head2
19259 #: ../fish/guestfish-actions.pod:2367
19260 msgid "mkdir"
19261 msgstr ""
19262
19263 # type: verbatim
19264 #: ../fish/guestfish-actions.pod:2369
19265 #, no-wrap
19266 msgid ""
19267 " mkdir path\n"
19268 "\n"
19269 msgstr ""
19270
19271 # type: =head2
19272 #: ../fish/guestfish-actions.pod:2373
19273 msgid "mkdir-mode"
19274 msgstr ""
19275
19276 # type: verbatim
19277 #: ../fish/guestfish-actions.pod:2375
19278 #, no-wrap
19279 msgid ""
19280 " mkdir-mode path mode\n"
19281 "\n"
19282 msgstr ""
19283
19284 # type: textblock
19285 #: ../fish/guestfish-actions.pod:2384
19286 msgid "See also L</mkdir>, L</umask>"
19287 msgstr ""
19288
19289 # type: =head2
19290 #: ../fish/guestfish-actions.pod:2386
19291 msgid "mkdir-p"
19292 msgstr ""
19293
19294 # type: verbatim
19295 #: ../fish/guestfish-actions.pod:2388
19296 #, no-wrap
19297 msgid ""
19298 " mkdir-p path\n"
19299 "\n"
19300 msgstr ""
19301
19302 # type: =head2
19303 #: ../fish/guestfish-actions.pod:2393
19304 msgid "mkdtemp"
19305 msgstr ""
19306
19307 # type: verbatim
19308 #: ../fish/guestfish-actions.pod:2395
19309 #, no-wrap
19310 msgid ""
19311 " mkdtemp template\n"
19312 "\n"
19313 msgstr ""
19314
19315 # type: =head2
19316 #: ../fish/guestfish-actions.pod:2416
19317 msgid "mke2fs-J"
19318 msgstr ""
19319
19320 # type: verbatim
19321 #: ../fish/guestfish-actions.pod:2418
19322 #, no-wrap
19323 msgid ""
19324 " mke2fs-J fstype blocksize device journal\n"
19325 "\n"
19326 msgstr ""
19327
19328 # type: textblock
19329 #: ../fish/guestfish-actions.pod:2426
19330 msgid "See also L</mke2journal>."
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:2428
19335 msgid "mke2fs-JL"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:2430
19340 #, no-wrap
19341 msgid ""
19342 " mke2fs-JL fstype blocksize device label\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:2435
19348 msgid "See also L</mke2journal-L>."
19349 msgstr ""
19350
19351 # type: =head2
19352 #: ../fish/guestfish-actions.pod:2437
19353 msgid "mke2fs-JU"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #: ../fish/guestfish-actions.pod:2439
19358 #, no-wrap
19359 msgid ""
19360 " mke2fs-JU fstype blocksize device uuid\n"
19361 "\n"
19362 msgstr ""
19363
19364 # type: textblock
19365 #: ../fish/guestfish-actions.pod:2444
19366 msgid "See also L</mke2journal-U>."
19367 msgstr ""
19368
19369 # type: =head2
19370 #: ../fish/guestfish-actions.pod:2446
19371 msgid "mke2journal"
19372 msgstr ""
19373
19374 # type: verbatim
19375 #: ../fish/guestfish-actions.pod:2448
19376 #, no-wrap
19377 msgid ""
19378 " mke2journal blocksize device\n"
19379 "\n"
19380 msgstr ""
19381
19382 # type: =head2
19383 #: ../fish/guestfish-actions.pod:2455
19384 msgid "mke2journal-L"
19385 msgstr ""
19386
19387 # type: verbatim
19388 #: ../fish/guestfish-actions.pod:2457
19389 #, no-wrap
19390 msgid ""
19391 " mke2journal-L blocksize label device\n"
19392 "\n"
19393 msgstr ""
19394
19395 # type: =head2
19396 #: ../fish/guestfish-actions.pod:2461
19397 msgid "mke2journal-U"
19398 msgstr ""
19399
19400 # type: verbatim
19401 #: ../fish/guestfish-actions.pod:2463
19402 #, no-wrap
19403 msgid ""
19404 " mke2journal-U blocksize uuid device\n"
19405 "\n"
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:2467
19410 msgid "mkfifo"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:2469
19415 #, no-wrap
19416 msgid ""
19417 " mkfifo mode path\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: textblock
19422 #: ../fish/guestfish-actions.pod:2471
19423 msgid ""
19424 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19425 "is just a convenient wrapper around L</mknod>."
19426 msgstr ""
19427
19428 # type: =head2
19429 #: ../fish/guestfish-actions.pod:2477
19430 msgid "mkfs"
19431 msgstr ""
19432
19433 # type: verbatim
19434 #: ../fish/guestfish-actions.pod:2479
19435 #, no-wrap
19436 msgid ""
19437 " mkfs fstype device\n"
19438 "\n"
19439 msgstr ""
19440
19441 # type: =head2
19442 #: ../fish/guestfish-actions.pod:2485
19443 msgid "mkfs-b"
19444 msgstr ""
19445
19446 # type: verbatim
19447 #: ../fish/guestfish-actions.pod:2487
19448 #, no-wrap
19449 msgid ""
19450 " mkfs-b fstype blocksize device\n"
19451 "\n"
19452 msgstr ""
19453
19454 # type: textblock
19455 #: ../fish/guestfish-actions.pod:2489
19456 msgid ""
19457 "This call is similar to L</mkfs>, but it allows you to control the block "
19458 "size of the resulting filesystem.  Supported block sizes depend on the "
19459 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
19460 msgstr ""
19461
19462 # type: =head2
19463 #: ../fish/guestfish-actions.pod:2497
19464 msgid "mkmountpoint"
19465 msgstr ""
19466
19467 # type: verbatim
19468 #: ../fish/guestfish-actions.pod:2499
19469 #, no-wrap
19470 msgid ""
19471 " mkmountpoint exemptpath\n"
19472 "\n"
19473 msgstr ""
19474
19475 # type: textblock
19476 #: ../fish/guestfish-actions.pod:2501
19477 msgid ""
19478 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
19479 "to create extra mountpoints before mounting the first filesystem."
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:2525
19484 msgid "mknod"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:2527
19489 #, no-wrap
19490 msgid ""
19491 " mknod mode devmajor devminor path\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: textblock
19496 #: ../fish/guestfish-actions.pod:2537
19497 msgid ""
19498 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19499 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19500 "regular file).  These constants are available in the standard Linux header "
19501 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
19502 "wrappers around this command which bitwise OR in the appropriate constant "
19503 "for you."
19504 msgstr ""
19505
19506 # type: =head2
19507 #: ../fish/guestfish-actions.pod:2547
19508 msgid "mknod-b"
19509 msgstr ""
19510
19511 # type: verbatim
19512 #: ../fish/guestfish-actions.pod:2549
19513 #, no-wrap
19514 msgid ""
19515 " mknod-b mode devmajor devminor path\n"
19516 "\n"
19517 msgstr ""
19518
19519 # type: textblock
19520 #: ../fish/guestfish-actions.pod:2551
19521 msgid ""
19522 "This call creates a block device node called C<path> with mode C<mode> and "
19523 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19524 "wrapper around L</mknod>."
19525 msgstr ""
19526
19527 # type: =head2
19528 #: ../fish/guestfish-actions.pod:2557
19529 msgid "mknod-c"
19530 msgstr ""
19531
19532 # type: verbatim
19533 #: ../fish/guestfish-actions.pod:2559
19534 #, no-wrap
19535 msgid ""
19536 " mknod-c mode devmajor devminor path\n"
19537 "\n"
19538 msgstr ""
19539
19540 # type: textblock
19541 #: ../fish/guestfish-actions.pod:2561
19542 msgid ""
19543 "This call creates a char device node called C<path> with mode C<mode> and "
19544 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19545 "wrapper around L</mknod>."
19546 msgstr ""
19547
19548 # type: =head2
19549 #: ../fish/guestfish-actions.pod:2567
19550 msgid "mkswap"
19551 msgstr ""
19552
19553 # type: verbatim
19554 #: ../fish/guestfish-actions.pod:2569
19555 #, no-wrap
19556 msgid ""
19557 " mkswap device\n"
19558 "\n"
19559 msgstr ""
19560
19561 # type: =head2
19562 #: ../fish/guestfish-actions.pod:2573
19563 msgid "mkswap-L"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #: ../fish/guestfish-actions.pod:2575
19568 #, no-wrap
19569 msgid ""
19570 " mkswap-L label device\n"
19571 "\n"
19572 msgstr ""
19573
19574 # type: =head2
19575 #: ../fish/guestfish-actions.pod:2583
19576 msgid "mkswap-U"
19577 msgstr ""
19578
19579 # type: verbatim
19580 #: ../fish/guestfish-actions.pod:2585
19581 #, no-wrap
19582 msgid ""
19583 " mkswap-U uuid device\n"
19584 "\n"
19585 msgstr ""
19586
19587 # type: =head2
19588 #: ../fish/guestfish-actions.pod:2589
19589 msgid "mkswap-file"
19590 msgstr ""
19591
19592 # type: verbatim
19593 #: ../fish/guestfish-actions.pod:2591
19594 #, no-wrap
19595 msgid ""
19596 " mkswap-file path\n"
19597 "\n"
19598 msgstr ""
19599
19600 # type: textblock
19601 #: ../fish/guestfish-actions.pod:2595
19602 msgid ""
19603 "This command just writes a swap file signature to an existing file.  To "
19604 "create the file itself, use something like L</fallocate>."
19605 msgstr ""
19606
19607 # type: =head2
19608 #: ../fish/guestfish-actions.pod:2598
19609 msgid "modprobe"
19610 msgstr ""
19611
19612 # type: verbatim
19613 #: ../fish/guestfish-actions.pod:2600
19614 #, no-wrap
19615 msgid ""
19616 " modprobe modulename\n"
19617 "\n"
19618 msgstr ""
19619
19620 # type: =head2
19621 #: ../fish/guestfish-actions.pod:2607
19622 msgid "mount"
19623 msgstr ""
19624
19625 # type: verbatim
19626 #: ../fish/guestfish-actions.pod:2609
19627 #, no-wrap
19628 msgid ""
19629 " mount device mountpoint\n"
19630 "\n"
19631 msgstr ""
19632
19633 # type: textblock
19634 #: ../fish/guestfish-actions.pod:2625
19635 msgid ""
19636 "B<Important note:> When you use this call, the filesystem options C<sync> "
19637 "and C<noatime> are set implicitly.  This was originally done because we "
19638 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19639 "very large negative performance impact and negligible effect on "
19640 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
19641 "code that needs performance, and instead use L</mount-options> (use an empty "
19642 "string for the first parameter if you don't want any options)."
19643 msgstr ""
19644
19645 # type: =head2
19646 #: ../fish/guestfish-actions.pod:2635
19647 msgid "mount-loop"
19648 msgstr ""
19649
19650 # type: verbatim
19651 #: ../fish/guestfish-actions.pod:2637
19652 #, no-wrap
19653 msgid ""
19654 " mount-loop file mountpoint\n"
19655 "\n"
19656 msgstr ""
19657
19658 # type: =head2
19659 #: ../fish/guestfish-actions.pod:2643
19660 msgid "mount-options"
19661 msgstr ""
19662
19663 # type: verbatim
19664 #: ../fish/guestfish-actions.pod:2645
19665 #, no-wrap
19666 msgid ""
19667 " mount-options options device mountpoint\n"
19668 "\n"
19669 msgstr ""
19670
19671 # type: textblock
19672 #: ../fish/guestfish-actions.pod:2647
19673 msgid ""
19674 "This is the same as the L</mount> command, but it allows you to set the "
19675 "mount options as for the L<mount(8)> I<-o> flag."
19676 msgstr ""
19677
19678 # type: =head2
19679 #: ../fish/guestfish-actions.pod:2655
19680 msgid "mount-ro"
19681 msgstr ""
19682
19683 # type: verbatim
19684 #: ../fish/guestfish-actions.pod:2657
19685 #, no-wrap
19686 msgid ""
19687 " mount-ro device mountpoint\n"
19688 "\n"
19689 msgstr ""
19690
19691 # type: textblock
19692 #: ../fish/guestfish-actions.pod:2659
19693 msgid ""
19694 "This is the same as the L</mount> command, but it mounts the filesystem with "
19695 "the read-only (I<-o ro>) flag."
19696 msgstr ""
19697
19698 # type: =head2
19699 #: ../fish/guestfish-actions.pod:2662
19700 msgid "mount-vfs"
19701 msgstr ""
19702
19703 # type: verbatim
19704 #: ../fish/guestfish-actions.pod:2664
19705 #, no-wrap
19706 msgid ""
19707 " mount-vfs options vfstype device mountpoint\n"
19708 "\n"
19709 msgstr ""
19710
19711 # type: textblock
19712 #: ../fish/guestfish-actions.pod:2666
19713 msgid ""
19714 "This is the same as the L</mount> command, but it allows you to set both the "
19715 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
19716 msgstr ""
19717
19718 # type: =head2
19719 #: ../fish/guestfish-actions.pod:2670
19720 msgid "mountpoints"
19721 msgstr ""
19722
19723 # type: verbatim
19724 #: ../fish/guestfish-actions.pod:2672
19725 #, no-wrap
19726 msgid ""
19727 " mountpoints\n"
19728 "\n"
19729 msgstr ""
19730
19731 # type: textblock
19732 #: ../fish/guestfish-actions.pod:2674
19733 msgid ""
19734 "This call is similar to L</mounts>.  That call returns a list of devices.  "
19735 "This one returns a hash table (map) of device name to directory where the "
19736 "device is mounted."
19737 msgstr ""
19738
19739 # type: =head2
19740 #: ../fish/guestfish-actions.pod:2678
19741 msgid "mounts"
19742 msgstr ""
19743
19744 # type: verbatim
19745 #: ../fish/guestfish-actions.pod:2680
19746 #, no-wrap
19747 msgid ""
19748 " mounts\n"
19749 "\n"
19750 msgstr ""
19751
19752 # type: textblock
19753 #: ../fish/guestfish-actions.pod:2687
19754 msgid "See also: L</mountpoints>"
19755 msgstr ""
19756
19757 # type: =head2
19758 #: ../fish/guestfish-actions.pod:2689
19759 msgid "mv"
19760 msgstr ""
19761
19762 # type: verbatim
19763 #: ../fish/guestfish-actions.pod:2691
19764 #, no-wrap
19765 msgid ""
19766 " mv src dest\n"
19767 "\n"
19768 msgstr ""
19769
19770 # type: =head2
19771 #: ../fish/guestfish-actions.pod:2696
19772 msgid "ntfs-3g-probe"
19773 msgstr ""
19774
19775 # type: verbatim
19776 #: ../fish/guestfish-actions.pod:2698
19777 #, no-wrap
19778 msgid ""
19779 " ntfs-3g-probe true|false device\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: =head2
19784 #: ../fish/guestfish-actions.pod:2712
19785 msgid "ntfsresize"
19786 msgstr ""
19787
19788 # type: verbatim
19789 #: ../fish/guestfish-actions.pod:2714
19790 #, no-wrap
19791 msgid ""
19792 " ntfsresize device\n"
19793 "\n"
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:2720
19798 msgid "ntfsresize-size"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:2722
19803 #, no-wrap
19804 msgid ""
19805 " ntfsresize-size device size\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:2724
19811 msgid ""
19812 "This command is the same as L</ntfsresize> except that it allows you to "
19813 "specify the new size (in bytes) explicitly."
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:2727
19818 msgid "part-add"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:2729
19823 #, no-wrap
19824 msgid ""
19825 " part-add device prlogex startsect endsect\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: textblock
19830 #: ../fish/guestfish-actions.pod:2731
19831 msgid ""
19832 "This command adds a partition to C<device>.  If there is no partition table "
19833 "on the device, call L</part-init> first."
19834 msgstr ""
19835
19836 # type: textblock
19837 #: ../fish/guestfish-actions.pod:2743
19838 msgid ""
19839 "Creating a partition which covers the whole disk is not so easy.  Use "
19840 "L</part-disk> to do that."
19841 msgstr ""
19842
19843 # type: =head2
19844 #: ../fish/guestfish-actions.pod:2746
19845 msgid "part-del"
19846 msgstr ""
19847
19848 # type: verbatim
19849 #: ../fish/guestfish-actions.pod:2748
19850 #, no-wrap
19851 msgid ""
19852 " part-del device partnum\n"
19853 "\n"
19854 msgstr ""
19855
19856 # type: =head2
19857 #: ../fish/guestfish-actions.pod:2756
19858 msgid "part-disk"
19859 msgstr ""
19860
19861 # type: verbatim
19862 #: ../fish/guestfish-actions.pod:2758
19863 #, no-wrap
19864 msgid ""
19865 " part-disk device parttype\n"
19866 "\n"
19867 msgstr ""
19868
19869 # type: textblock
19870 #: ../fish/guestfish-actions.pod:2760
19871 msgid ""
19872 "This command is simply a combination of L</part-init> followed by "
19873 "L</part-add> to create a single primary partition covering the whole disk."
19874 msgstr ""
19875
19876 # type: textblock
19877 #: ../fish/guestfish-actions.pod:2764
19878 msgid ""
19879 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
19880 "possible values are described in L</part-init>."
19881 msgstr ""
19882
19883 # type: =head2
19884 #: ../fish/guestfish-actions.pod:2770
19885 msgid "part-get-bootable"
19886 msgstr ""
19887
19888 # type: verbatim
19889 #: ../fish/guestfish-actions.pod:2772
19890 #, no-wrap
19891 msgid ""
19892 " part-get-bootable device partnum\n"
19893 "\n"
19894 msgstr ""
19895
19896 # type: textblock
19897 #: ../fish/guestfish-actions.pod:2777
19898 msgid "See also L</part-set-bootable>."
19899 msgstr ""
19900
19901 # type: =head2
19902 #: ../fish/guestfish-actions.pod:2779
19903 msgid "part-get-mbr-id"
19904 msgstr ""
19905
19906 # type: verbatim
19907 #: ../fish/guestfish-actions.pod:2781
19908 #, no-wrap
19909 msgid ""
19910 " part-get-mbr-id device partnum\n"
19911 "\n"
19912 msgstr ""
19913
19914 # type: textblock
19915 #: ../fish/guestfish-actions.pod:2786 ../fish/guestfish-actions.pod:2924
19916 msgid ""
19917 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
19918 "undefined results for other partition table types (see "
19919 "L</part-get-parttype>)."
19920 msgstr ""
19921
19922 # type: =head2
19923 #: ../fish/guestfish-actions.pod:2790
19924 msgid "part-get-parttype"
19925 msgstr ""
19926
19927 # type: verbatim
19928 #: ../fish/guestfish-actions.pod:2792
19929 #, no-wrap
19930 msgid ""
19931 " part-get-parttype device\n"
19932 "\n"
19933 msgstr ""
19934
19935 # type: textblock
19936 #: ../fish/guestfish-actions.pod:2797
19937 msgid ""
19938 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
19939 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
19940 "possible, although unusual.  See L</part-init> for a full list."
19941 msgstr ""
19942
19943 # type: =head2
19944 #: ../fish/guestfish-actions.pod:2802
19945 msgid "part-init"
19946 msgstr ""
19947
19948 # type: verbatim
19949 #: ../fish/guestfish-actions.pod:2804
19950 #, no-wrap
19951 msgid ""
19952 " part-init device parttype\n"
19953 "\n"
19954 msgstr ""
19955
19956 # type: textblock
19957 #: ../fish/guestfish-actions.pod:2810
19958 msgid ""
19959 "Initially there are no partitions.  Following this, you should call "
19960 "L</part-add> for each partition required."
19961 msgstr ""
19962
19963 # type: =head2
19964 #: ../fish/guestfish-actions.pod:2873
19965 msgid "part-list"
19966 msgstr ""
19967
19968 # type: verbatim
19969 #: ../fish/guestfish-actions.pod:2875
19970 #, no-wrap
19971 msgid ""
19972 " part-list device\n"
19973 "\n"
19974 msgstr ""
19975
19976 # type: textblock
19977 #: ../fish/guestfish-actions.pod:2890
19978 msgid ""
19979 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
19980 "the device's sector size, see L</blockdev-getss>."
19981 msgstr ""
19982
19983 # type: =head2
19984 #: ../fish/guestfish-actions.pod:2903
19985 msgid "part-set-bootable"
19986 msgstr ""
19987
19988 # type: verbatim
19989 #: ../fish/guestfish-actions.pod:2905
19990 #, no-wrap
19991 msgid ""
19992 " part-set-bootable device partnum true|false\n"
19993 "\n"
19994 msgstr ""
19995
19996 # type: =head2
19997 #: ../fish/guestfish-actions.pod:2914
19998 msgid "part-set-mbr-id"
19999 msgstr ""
20000
20001 # type: verbatim
20002 #: ../fish/guestfish-actions.pod:2916
20003 #, no-wrap
20004 msgid ""
20005 " part-set-mbr-id device partnum idbyte\n"
20006 "\n"
20007 msgstr ""
20008
20009 # type: =head2
20010 #: ../fish/guestfish-actions.pod:2928
20011 msgid "part-set-name"
20012 msgstr ""
20013
20014 # type: verbatim
20015 #: ../fish/guestfish-actions.pod:2930
20016 #, no-wrap
20017 msgid ""
20018 " part-set-name device partnum name\n"
20019 "\n"
20020 msgstr ""
20021
20022 # type: =head2
20023 #: ../fish/guestfish-actions.pod:2938
20024 msgid "part-to-dev"
20025 msgstr ""
20026
20027 # type: verbatim
20028 #: ../fish/guestfish-actions.pod:2940
20029 #, no-wrap
20030 msgid ""
20031 " part-to-dev partition\n"
20032 "\n"
20033 msgstr ""
20034
20035 # type: textblock
20036 #: ../fish/guestfish-actions.pod:2946
20037 msgid ""
20038 "The named partition must exist, for example as a string returned from "
20039 "L</list-partitions>."
20040 msgstr ""
20041
20042 # type: =head2
20043 #: ../fish/guestfish-actions.pod:2949
20044 msgid "ping-daemon"
20045 msgstr ""
20046
20047 # type: verbatim
20048 #: ../fish/guestfish-actions.pod:2951
20049 #, no-wrap
20050 msgid ""
20051 " ping-daemon\n"
20052 "\n"
20053 msgstr ""
20054
20055 # type: =head2
20056 #: ../fish/guestfish-actions.pod:2958
20057 msgid "pread"
20058 msgstr ""
20059
20060 # type: verbatim
20061 #: ../fish/guestfish-actions.pod:2960
20062 #, no-wrap
20063 msgid ""
20064 " pread path count offset\n"
20065 "\n"
20066 msgstr ""
20067
20068 # type: textblock
20069 #: ../fish/guestfish-actions.pod:2968 ../fish/guestfish-actions.pod:3061
20070 msgid "See also L</pwrite>."
20071 msgstr ""
20072
20073 # type: =head2
20074 #: ../fish/guestfish-actions.pod:2973
20075 msgid "pvcreate"
20076 msgstr ""
20077
20078 # type: verbatim
20079 #: ../fish/guestfish-actions.pod:2975
20080 #, no-wrap
20081 msgid ""
20082 " pvcreate device\n"
20083 "\n"
20084 msgstr ""
20085
20086 # type: =head2
20087 #: ../fish/guestfish-actions.pod:2981
20088 msgid "pvremove"
20089 msgstr ""
20090
20091 # type: verbatim
20092 #: ../fish/guestfish-actions.pod:2983
20093 #, no-wrap
20094 msgid ""
20095 " pvremove device\n"
20096 "\n"
20097 msgstr ""
20098
20099 # type: =head2
20100 #: ../fish/guestfish-actions.pod:2992
20101 msgid "pvresize"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #: ../fish/guestfish-actions.pod:2994
20106 #, no-wrap
20107 msgid ""
20108 " pvresize device\n"
20109 "\n"
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:2999
20114 msgid "pvresize-size"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:3001
20119 #, no-wrap
20120 msgid ""
20121 " pvresize-size device size\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: textblock
20126 #: ../fish/guestfish-actions.pod:3003
20127 msgid ""
20128 "This command is the same as L</pvresize> except that it allows you to "
20129 "specify the new size (in bytes) explicitly."
20130 msgstr ""
20131
20132 # type: =head2
20133 #: ../fish/guestfish-actions.pod:3006
20134 msgid "pvs"
20135 msgstr ""
20136
20137 # type: verbatim
20138 #: ../fish/guestfish-actions.pod:3008
20139 #, no-wrap
20140 msgid ""
20141 " pvs\n"
20142 "\n"
20143 msgstr ""
20144
20145 # type: textblock
20146 #: ../fish/guestfish-actions.pod:3016
20147 msgid "See also L</pvs-full>."
20148 msgstr ""
20149
20150 # type: =head2
20151 #: ../fish/guestfish-actions.pod:3018
20152 msgid "pvs-full"
20153 msgstr ""
20154
20155 # type: verbatim
20156 #: ../fish/guestfish-actions.pod:3020
20157 #, no-wrap
20158 msgid ""
20159 " pvs-full\n"
20160 "\n"
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:3025
20165 msgid "pvuuid"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:3027
20170 #, no-wrap
20171 msgid ""
20172 " pvuuid device\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: =head2
20177 #: ../fish/guestfish-actions.pod:3031
20178 msgid "pwrite"
20179 msgstr ""
20180
20181 # type: verbatim
20182 #: ../fish/guestfish-actions.pod:3033
20183 #, no-wrap
20184 msgid ""
20185 " pwrite path content offset\n"
20186 "\n"
20187 msgstr ""
20188
20189 # type: textblock
20190 #: ../fish/guestfish-actions.pod:3044
20191 msgid "See also L</pread>, L</pwrite-device>."
20192 msgstr ""
20193
20194 # type: =head2
20195 #: ../fish/guestfish-actions.pod:3049
20196 msgid "pwrite-device"
20197 msgstr ""
20198
20199 # type: verbatim
20200 #: ../fish/guestfish-actions.pod:3051
20201 #, no-wrap
20202 msgid ""
20203 " pwrite-device device content offset\n"
20204 "\n"
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:3066
20209 msgid "read-file"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:3068
20214 #, no-wrap
20215 msgid ""
20216 " read-file path\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: textblock
20221 #: ../fish/guestfish-actions.pod:3073
20222 msgid ""
20223 "Unlike L</cat>, this function can correctly handle files that contain "
20224 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20225 "is limited in the total size of file that can be handled."
20226 msgstr ""
20227
20228 # type: =head2
20229 #: ../fish/guestfish-actions.pod:3081
20230 msgid "read-lines"
20231 msgstr ""
20232
20233 # type: verbatim
20234 #: ../fish/guestfish-actions.pod:3083
20235 #, no-wrap
20236 msgid ""
20237 " read-lines path\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:3090
20243 msgid ""
20244 "Note that this function cannot correctly handle binary files (specifically, "
20245 "files containing C<\\0> character which is treated as end of line).  For "
20246 "those you need to use the L</read-file> function which has a more complex "
20247 "interface."
20248 msgstr ""
20249
20250 # type: =head2
20251 #: ../fish/guestfish-actions.pod:3095
20252 msgid "readdir"
20253 msgstr ""
20254
20255 # type: verbatim
20256 #: ../fish/guestfish-actions.pod:3097
20257 #, no-wrap
20258 msgid ""
20259 " readdir dir\n"
20260 "\n"
20261 msgstr ""
20262
20263 # type: textblock
20264 #: ../fish/guestfish-actions.pod:3149
20265 msgid ""
20266 "This function is primarily intended for use by programs.  To get a simple "
20267 "list of names, use L</ls>.  To get a printable directory for human "
20268 "consumption, use L</ll>."
20269 msgstr ""
20270
20271 # type: =head2
20272 #: ../fish/guestfish-actions.pod:3153
20273 msgid "readlink"
20274 msgstr ""
20275
20276 # type: verbatim
20277 #: ../fish/guestfish-actions.pod:3155
20278 #, no-wrap
20279 msgid ""
20280 " readlink path\n"
20281 "\n"
20282 msgstr ""
20283
20284 # type: =head2
20285 #: ../fish/guestfish-actions.pod:3159
20286 msgid "readlinklist"
20287 msgstr ""
20288
20289 # type: verbatim
20290 #: ../fish/guestfish-actions.pod:3161
20291 #, no-wrap
20292 msgid ""
20293 " readlinklist path 'names ...'\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: =head2
20298 #: ../fish/guestfish-actions.pod:3185
20299 msgid "realpath"
20300 msgstr ""
20301
20302 # type: verbatim
20303 #: ../fish/guestfish-actions.pod:3187
20304 #, no-wrap
20305 msgid ""
20306 " realpath path\n"
20307 "\n"
20308 msgstr ""
20309
20310 # type: =head2
20311 #: ../fish/guestfish-actions.pod:3192
20312 msgid "removexattr"
20313 msgstr ""
20314
20315 # type: verbatim
20316 #: ../fish/guestfish-actions.pod:3194
20317 #, no-wrap
20318 msgid ""
20319 " removexattr xattr path\n"
20320 "\n"
20321 msgstr ""
20322
20323 # type: textblock
20324 #: ../fish/guestfish-actions.pod:3199
20325 msgid "See also: L</lremovexattr>, L<attr(5)>."
20326 msgstr ""
20327
20328 # type: =head2
20329 #: ../fish/guestfish-actions.pod:3201
20330 msgid "resize2fs"
20331 msgstr ""
20332
20333 # type: verbatim
20334 #: ../fish/guestfish-actions.pod:3203
20335 #, no-wrap
20336 msgid ""
20337 " resize2fs device\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: textblock
20342 #: ../fish/guestfish-actions.pod:3208
20343 msgid ""
20344 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
20345 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20346 "gives an error about this and sometimes not.  In any case, it is always safe "
20347 "to call L</e2fsck-f> before calling this function."
20348 msgstr ""
20349
20350 # type: =head2
20351 #: ../fish/guestfish-actions.pod:3214
20352 msgid "resize2fs-size"
20353 msgstr ""
20354
20355 # type: verbatim
20356 #: ../fish/guestfish-actions.pod:3216
20357 #, no-wrap
20358 msgid ""
20359 " resize2fs-size device size\n"
20360 "\n"
20361 msgstr ""
20362
20363 # type: textblock
20364 #: ../fish/guestfish-actions.pod:3218
20365 msgid ""
20366 "This command is the same as L</resize2fs> except that it allows you to "
20367 "specify the new size (in bytes) explicitly."
20368 msgstr ""
20369
20370 # type: =head2
20371 #: ../fish/guestfish-actions.pod:3221
20372 msgid "rm"
20373 msgstr ""
20374
20375 # type: verbatim
20376 #: ../fish/guestfish-actions.pod:3223
20377 #, no-wrap
20378 msgid ""
20379 " rm path\n"
20380 "\n"
20381 msgstr ""
20382
20383 # type: =head2
20384 #: ../fish/guestfish-actions.pod:3227
20385 msgid "rm-rf"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #: ../fish/guestfish-actions.pod:3229
20390 #, no-wrap
20391 msgid ""
20392 " rm-rf path\n"
20393 "\n"
20394 msgstr ""
20395
20396 # type: =head2
20397 #: ../fish/guestfish-actions.pod:3235
20398 msgid "rmdir"
20399 msgstr ""
20400
20401 # type: verbatim
20402 #: ../fish/guestfish-actions.pod:3237
20403 #, no-wrap
20404 msgid ""
20405 " rmdir path\n"
20406 "\n"
20407 msgstr ""
20408
20409 # type: =head2
20410 #: ../fish/guestfish-actions.pod:3241
20411 msgid "rmmountpoint"
20412 msgstr ""
20413
20414 # type: verbatim
20415 #: ../fish/guestfish-actions.pod:3243
20416 #, no-wrap
20417 msgid ""
20418 " rmmountpoint exemptpath\n"
20419 "\n"
20420 msgstr ""
20421
20422 # type: textblock
20423 #: ../fish/guestfish-actions.pod:3245
20424 msgid ""
20425 "This calls removes a mountpoint that was previously created with "
20426 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
20427 msgstr ""
20428
20429 # type: =head2
20430 #: ../fish/guestfish-actions.pod:3249
20431 msgid "scrub-device"
20432 msgstr ""
20433
20434 # type: verbatim
20435 #: ../fish/guestfish-actions.pod:3251
20436 #, no-wrap
20437 msgid ""
20438 " scrub-device device\n"
20439 "\n"
20440 msgstr ""
20441
20442 # type: =head2
20443 #: ../fish/guestfish-actions.pod:3262
20444 msgid "scrub-file"
20445 msgstr ""
20446
20447 # type: verbatim
20448 #: ../fish/guestfish-actions.pod:3264
20449 #, no-wrap
20450 msgid ""
20451 " scrub-file file\n"
20452 "\n"
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:3274
20457 msgid "scrub-freespace"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:3276
20462 #, no-wrap
20463 msgid ""
20464 " scrub-freespace dir\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: textblock
20469 #: ../fish/guestfish-actions.pod:3278
20470 msgid ""
20471 "This command creates the directory C<dir> and then fills it with files until "
20472 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
20473 "deletes them.  The intention is to scrub any free space on the partition "
20474 "containing C<dir>."
20475 msgstr ""
20476
20477 # type: =head2
20478 #: ../fish/guestfish-actions.pod:3287
20479 msgid "set-append"
20480 msgstr ""
20481
20482 # type: =head2
20483 #: ../fish/guestfish-actions.pod:3289
20484 msgid "append"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #: ../fish/guestfish-actions.pod:3291
20489 #, no-wrap
20490 msgid ""
20491 " set-append append\n"
20492 "\n"
20493 msgstr ""
20494
20495 # type: =head2
20496 #: ../fish/guestfish-actions.pod:3302
20497 msgid "set-autosync"
20498 msgstr ""
20499
20500 # type: =head2
20501 #: ../fish/guestfish-actions.pod:3304
20502 msgid "autosync"
20503 msgstr ""
20504
20505 # type: verbatim
20506 #: ../fish/guestfish-actions.pod:3306
20507 #, no-wrap
20508 msgid ""
20509 " set-autosync true|false\n"
20510 "\n"
20511 msgstr ""
20512
20513 # type: textblock
20514 #: ../fish/guestfish-actions.pod:3308
20515 msgid ""
20516 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20517 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
20518 "closed (also if the program exits without closing handles)."
20519 msgstr ""
20520
20521 # type: =head2
20522 #: ../fish/guestfish-actions.pod:3316
20523 msgid "set-direct"
20524 msgstr ""
20525
20526 # type: =head2
20527 #: ../fish/guestfish-actions.pod:3318
20528 msgid "direct"
20529 msgstr ""
20530
20531 # type: verbatim
20532 #: ../fish/guestfish-actions.pod:3320
20533 #, no-wrap
20534 msgid ""
20535 " set-direct true|false\n"
20536 "\n"
20537 msgstr ""
20538
20539 # type: textblock
20540 #: ../fish/guestfish-actions.pod:3326
20541 msgid ""
20542 "One consequence of this is that log messages aren't caught by the library "
20543 "and handled by L</set-log-message-callback>, but go straight to stdout."
20544 msgstr ""
20545
20546 # type: =head2
20547 #: ../fish/guestfish-actions.pod:3335
20548 msgid "set-e2label"
20549 msgstr ""
20550
20551 # type: verbatim
20552 #: ../fish/guestfish-actions.pod:3337
20553 #, no-wrap
20554 msgid ""
20555 " set-e2label device label\n"
20556 "\n"
20557 msgstr ""
20558
20559 # type: textblock
20560 #: ../fish/guestfish-actions.pod:3343
20561 msgid ""
20562 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
20563 "label on a filesystem."
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:3346
20568 msgid "set-e2uuid"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:3348
20573 #, no-wrap
20574 msgid ""
20575 " set-e2uuid device uuid\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: textblock
20580 #: ../fish/guestfish-actions.pod:3355
20581 msgid ""
20582 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
20583 "UUID of a filesystem."
20584 msgstr ""
20585
20586 # type: =head2
20587 #: ../fish/guestfish-actions.pod:3358
20588 msgid "set-memsize"
20589 msgstr ""
20590
20591 # type: =head2
20592 #: ../fish/guestfish-actions.pod:3360
20593 msgid "memsize"
20594 msgstr ""
20595
20596 # type: verbatim
20597 #: ../fish/guestfish-actions.pod:3362
20598 #, no-wrap
20599 msgid ""
20600 " set-memsize memsize\n"
20601 "\n"
20602 msgstr ""
20603
20604 # type: textblock
20605 #: ../fish/guestfish-actions.pod:3364
20606 msgid ""
20607 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20608 "This only has any effect if called before L</launch>."
20609 msgstr ""
20610
20611 # type: =head2
20612 #: ../fish/guestfish-actions.pod:3375
20613 msgid "set-network"
20614 msgstr ""
20615
20616 # type: =head2
20617 #: ../fish/guestfish-actions.pod:3377
20618 msgid "network"
20619 msgstr ""
20620
20621 # type: verbatim
20622 #: ../fish/guestfish-actions.pod:3379
20623 #, no-wrap
20624 msgid ""
20625 " set-network true|false\n"
20626 "\n"
20627 msgstr ""
20628
20629 # type: textblock
20630 #: ../fish/guestfish-actions.pod:3387
20631 msgid "You must call this before calling L</launch>, otherwise it has no effect."
20632 msgstr ""
20633
20634 # type: =head2
20635 #: ../fish/guestfish-actions.pod:3390
20636 msgid "set-path"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:3392
20641 msgid "path"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:3394
20646 #, no-wrap
20647 msgid ""
20648 " set-path searchpath\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: =head2
20653 #: ../fish/guestfish-actions.pod:3403
20654 msgid "set-qemu"
20655 msgstr ""
20656
20657 # type: =head2
20658 #: ../fish/guestfish-actions.pod:3405
20659 msgid "qemu"
20660 msgstr ""
20661
20662 # type: verbatim
20663 #: ../fish/guestfish-actions.pod:3407
20664 #, no-wrap
20665 msgid ""
20666 " set-qemu qemu\n"
20667 "\n"
20668 msgstr ""
20669
20670 # type: =head2
20671 #: ../fish/guestfish-actions.pod:3427
20672 msgid "set-recovery-proc"
20673 msgstr ""
20674
20675 # type: =head2
20676 #: ../fish/guestfish-actions.pod:3429
20677 msgid "recovery-proc"
20678 msgstr ""
20679
20680 # type: verbatim
20681 #: ../fish/guestfish-actions.pod:3431
20682 #, no-wrap
20683 msgid ""
20684 " set-recovery-proc true|false\n"
20685 "\n"
20686 msgstr ""
20687
20688 # type: textblock
20689 #: ../fish/guestfish-actions.pod:3433
20690 msgid ""
20691 "If this is called with the parameter C<false> then L</launch> does not "
20692 "create a recovery process.  The purpose of the recovery process is to stop "
20693 "runaway qemu processes in the case where the main program aborts abruptly."
20694 msgstr ""
20695
20696 # type: textblock
20697 #: ../fish/guestfish-actions.pod:3438
20698 msgid ""
20699 "This only has any effect if called before L</launch>, and the default is "
20700 "true."
20701 msgstr ""
20702
20703 # type: =head2
20704 #: ../fish/guestfish-actions.pod:3447
20705 msgid "set-selinux"
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:3449
20710 msgid "selinux"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:3451
20715 #, no-wrap
20716 msgid ""
20717 " set-selinux true|false\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:3462
20723 msgid "set-trace"
20724 msgstr ""
20725
20726 # type: =head2
20727 #: ../fish/guestfish-actions.pod:3464
20728 msgid "trace"
20729 msgstr ""
20730
20731 # type: verbatim
20732 #: ../fish/guestfish-actions.pod:3466
20733 #, no-wrap
20734 msgid ""
20735 " set-trace true|false\n"
20736 "\n"
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:3482
20741 msgid "set-verbose"
20742 msgstr ""
20743
20744 # type: =head2
20745 #: ../fish/guestfish-actions.pod:3484
20746 msgid "verbose"
20747 msgstr ""
20748
20749 # type: verbatim
20750 #: ../fish/guestfish-actions.pod:3486
20751 #, no-wrap
20752 msgid ""
20753 " set-verbose true|false\n"
20754 "\n"
20755 msgstr ""
20756
20757 # type: =head2
20758 #: ../fish/guestfish-actions.pod:3493
20759 msgid "setcon"
20760 msgstr ""
20761
20762 # type: verbatim
20763 #: ../fish/guestfish-actions.pod:3495
20764 #, no-wrap
20765 msgid ""
20766 " setcon context\n"
20767 "\n"
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:3502
20772 msgid "setxattr"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:3504
20777 #, no-wrap
20778 msgid ""
20779 " setxattr xattr val vallen path\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: textblock
20784 #: ../fish/guestfish-actions.pod:3510
20785 msgid "See also: L</lsetxattr>, L<attr(5)>."
20786 msgstr ""
20787
20788 # type: =head2
20789 #: ../fish/guestfish-actions.pod:3512
20790 msgid "sfdisk"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #: ../fish/guestfish-actions.pod:3514
20795 #, no-wrap
20796 msgid ""
20797 " sfdisk device cyls heads sectors 'lines ...'\n"
20798 "\n"
20799 msgstr ""
20800
20801 # type: textblock
20802 #: ../fish/guestfish-actions.pod:3536
20803 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:3542
20808 msgid "sfdiskM"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:3544
20813 #, no-wrap
20814 msgid ""
20815 " sfdiskM device 'lines ...'\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: textblock
20820 #: ../fish/guestfish-actions.pod:3546
20821 msgid ""
20822 "This is a simplified interface to the L</sfdisk> command, where partition "
20823 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
20824 "you don't need to specify the cyls, heads and sectors parameters which were "
20825 "rarely if ever used anyway."
20826 msgstr ""
20827
20828 # type: textblock
20829 #: ../fish/guestfish-actions.pod:3552
20830 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
20831 msgstr ""
20832
20833 # type: =head2
20834 #: ../fish/guestfish-actions.pod:3558
20835 msgid "sfdisk-N"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #: ../fish/guestfish-actions.pod:3560
20840 #, no-wrap
20841 msgid ""
20842 " sfdisk-N device partnum cyls heads sectors line\n"
20843 "\n"
20844 msgstr ""
20845
20846 # type: textblock
20847 #: ../fish/guestfish-actions.pod:3565
20848 msgid ""
20849 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
20850 "cyls/heads/sectors parameters."
20851 msgstr ""
20852
20853 # type: textblock
20854 #: ../fish/guestfish-actions.pod:3568
20855 msgid "See also: L</part-add>"
20856 msgstr ""
20857
20858 # type: =head2
20859 #: ../fish/guestfish-actions.pod:3573
20860 msgid "sfdisk-disk-geometry"
20861 msgstr ""
20862
20863 # type: verbatim
20864 #: ../fish/guestfish-actions.pod:3575
20865 #, no-wrap
20866 msgid ""
20867 " sfdisk-disk-geometry device\n"
20868 "\n"
20869 msgstr ""
20870
20871 # type: textblock
20872 #: ../fish/guestfish-actions.pod:3577
20873 msgid ""
20874 "This displays the disk geometry of C<device> read from the partition table.  "
20875 "Especially in the case where the underlying block device has been resized, "
20876 "this can be different from the kernel's idea of the geometry (see "
20877 "L</sfdisk-kernel-geometry>)."
20878 msgstr ""
20879
20880 # type: =head2
20881 #: ../fish/guestfish-actions.pod:3585
20882 msgid "sfdisk-kernel-geometry"
20883 msgstr ""
20884
20885 # type: verbatim
20886 #: ../fish/guestfish-actions.pod:3587
20887 #, no-wrap
20888 msgid ""
20889 " sfdisk-kernel-geometry device\n"
20890 "\n"
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:3594
20895 msgid "sfdisk-l"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:3596
20900 #, no-wrap
20901 msgid ""
20902 " sfdisk-l device\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: textblock
20907 #: ../fish/guestfish-actions.pod:3602
20908 msgid "See also: L</part-list>"
20909 msgstr ""
20910
20911 # type: =head2
20912 #: ../fish/guestfish-actions.pod:3604
20913 msgid "sh"
20914 msgstr ""
20915
20916 # type: verbatim
20917 #: ../fish/guestfish-actions.pod:3606
20918 #, no-wrap
20919 msgid ""
20920 " sh command\n"
20921 "\n"
20922 msgstr ""
20923
20924 # type: textblock
20925 #: ../fish/guestfish-actions.pod:3611
20926 msgid "This is like L</command>, but passes the command to:"
20927 msgstr ""
20928
20929 # type: textblock
20930 #: ../fish/guestfish-actions.pod:3619
20931 msgid "All the provisos about L</command> apply to this call."
20932 msgstr ""
20933
20934 # type: =head2
20935 #: ../fish/guestfish-actions.pod:3621
20936 msgid "sh-lines"
20937 msgstr ""
20938
20939 # type: verbatim
20940 #: ../fish/guestfish-actions.pod:3623
20941 #, no-wrap
20942 msgid ""
20943 " sh-lines command\n"
20944 "\n"
20945 msgstr ""
20946
20947 # type: textblock
20948 #: ../fish/guestfish-actions.pod:3625
20949 msgid "This is the same as L</sh>, but splits the result into a list of lines."
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:3628
20954 msgid "See also: L</command-lines>"
20955 msgstr ""
20956
20957 # type: =head2
20958 #: ../fish/guestfish-actions.pod:3630
20959 msgid "sleep"
20960 msgstr ""
20961
20962 # type: verbatim
20963 #: ../fish/guestfish-actions.pod:3632
20964 #, no-wrap
20965 msgid ""
20966 " sleep secs\n"
20967 "\n"
20968 msgstr ""
20969
20970 # type: =head2
20971 #: ../fish/guestfish-actions.pod:3636
20972 msgid "stat"
20973 msgstr ""
20974
20975 # type: verbatim
20976 #: ../fish/guestfish-actions.pod:3638
20977 #, no-wrap
20978 msgid ""
20979 " stat path\n"
20980 "\n"
20981 msgstr ""
20982
20983 # type: =head2
20984 #: ../fish/guestfish-actions.pod:3644
20985 msgid "statvfs"
20986 msgstr ""
20987
20988 # type: verbatim
20989 #: ../fish/guestfish-actions.pod:3646
20990 #, no-wrap
20991 msgid ""
20992 " statvfs path\n"
20993 "\n"
20994 msgstr ""
20995
20996 # type: =head2
20997 #: ../fish/guestfish-actions.pod:3654
20998 msgid "strings"
20999 msgstr ""
21000
21001 # type: verbatim
21002 #: ../fish/guestfish-actions.pod:3656
21003 #, no-wrap
21004 msgid ""
21005 " strings path\n"
21006 "\n"
21007 msgstr ""
21008
21009 # type: =head2
21010 #: ../fish/guestfish-actions.pod:3664
21011 msgid "strings-e"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #: ../fish/guestfish-actions.pod:3666
21016 #, no-wrap
21017 msgid ""
21018 " strings-e encoding path\n"
21019 "\n"
21020 msgstr ""
21021
21022 # type: textblock
21023 #: ../fish/guestfish-actions.pod:3668
21024 msgid ""
21025 "This is like the L</strings> command, but allows you to specify the encoding "
21026 "of strings that are looked for in the source file C<path>."
21027 msgstr ""
21028
21029 # type: textblock
21030 #: ../fish/guestfish-actions.pod:3678
21031 msgid ""
21032 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21033 "ISO-8859-X (this is what L</strings> uses)."
21034 msgstr ""
21035
21036 # type: =head2
21037 #: ../fish/guestfish-actions.pod:3710
21038 msgid "swapoff-device"
21039 msgstr ""
21040
21041 # type: verbatim
21042 #: ../fish/guestfish-actions.pod:3712
21043 #, no-wrap
21044 msgid ""
21045 " swapoff-device device\n"
21046 "\n"
21047 msgstr ""
21048
21049 # type: textblock
21050 #: ../fish/guestfish-actions.pod:3714
21051 msgid ""
21052 "This command disables the libguestfs appliance swap device or partition "
21053 "named C<device>.  See L</swapon-device>."
21054 msgstr ""
21055
21056 # type: =head2
21057 #: ../fish/guestfish-actions.pod:3718
21058 msgid "swapoff-file"
21059 msgstr ""
21060
21061 # type: verbatim
21062 #: ../fish/guestfish-actions.pod:3720
21063 #, no-wrap
21064 msgid ""
21065 " swapoff-file file\n"
21066 "\n"
21067 msgstr ""
21068
21069 # type: =head2
21070 #: ../fish/guestfish-actions.pod:3724
21071 msgid "swapoff-label"
21072 msgstr ""
21073
21074 # type: verbatim
21075 #: ../fish/guestfish-actions.pod:3726
21076 #, no-wrap
21077 msgid ""
21078 " swapoff-label label\n"
21079 "\n"
21080 msgstr ""
21081
21082 # type: =head2
21083 #: ../fish/guestfish-actions.pod:3731
21084 msgid "swapoff-uuid"
21085 msgstr ""
21086
21087 # type: verbatim
21088 #: ../fish/guestfish-actions.pod:3733
21089 #, no-wrap
21090 msgid ""
21091 " swapoff-uuid uuid\n"
21092 "\n"
21093 msgstr ""
21094
21095 # type: =head2
21096 #: ../fish/guestfish-actions.pod:3738
21097 msgid "swapon-device"
21098 msgstr ""
21099
21100 # type: verbatim
21101 #: ../fish/guestfish-actions.pod:3740
21102 #, no-wrap
21103 msgid ""
21104 " swapon-device device\n"
21105 "\n"
21106 msgstr ""
21107
21108 # type: textblock
21109 #: ../fish/guestfish-actions.pod:3742
21110 msgid ""
21111 "This command enables the libguestfs appliance to use the swap device or "
21112 "partition named C<device>.  The increased memory is made available for all "
21113 "commands, for example those run using L</command> or L</sh>."
21114 msgstr ""
21115
21116 # type: =head2
21117 #: ../fish/guestfish-actions.pod:3754
21118 msgid "swapon-file"
21119 msgstr ""
21120
21121 # type: verbatim
21122 #: ../fish/guestfish-actions.pod:3756
21123 #, no-wrap
21124 msgid ""
21125 " swapon-file file\n"
21126 "\n"
21127 msgstr ""
21128
21129 # type: textblock
21130 #: ../fish/guestfish-actions.pod:3758
21131 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
21132 msgstr ""
21133
21134 # type: =head2
21135 #: ../fish/guestfish-actions.pod:3761
21136 msgid "swapon-label"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #: ../fish/guestfish-actions.pod:3763
21141 #, no-wrap
21142 msgid ""
21143 " swapon-label label\n"
21144 "\n"
21145 msgstr ""
21146
21147 # type: textblock
21148 #: ../fish/guestfish-actions.pod:3765
21149 msgid ""
21150 "This command enables swap to a labeled swap partition.  See "
21151 "L</swapon-device> for other notes."
21152 msgstr ""
21153
21154 # type: =head2
21155 #: ../fish/guestfish-actions.pod:3768
21156 msgid "swapon-uuid"
21157 msgstr ""
21158
21159 # type: verbatim
21160 #: ../fish/guestfish-actions.pod:3770
21161 #, no-wrap
21162 msgid ""
21163 " swapon-uuid uuid\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: textblock
21168 #: ../fish/guestfish-actions.pod:3772
21169 msgid ""
21170 "This command enables swap to a swap partition with the given UUID.  See "
21171 "L</swapon-device> for other notes."
21172 msgstr ""
21173
21174 # type: =head2
21175 #: ../fish/guestfish-actions.pod:3775
21176 msgid "sync"
21177 msgstr ""
21178
21179 # type: verbatim
21180 #: ../fish/guestfish-actions.pod:3777
21181 #, no-wrap
21182 msgid ""
21183 " sync\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: =head2
21188 #: ../fish/guestfish-actions.pod:3785
21189 msgid "tail"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #: ../fish/guestfish-actions.pod:3787
21194 #, no-wrap
21195 msgid ""
21196 " tail path\n"
21197 "\n"
21198 msgstr ""
21199
21200 # type: =head2
21201 #: ../fish/guestfish-actions.pod:3795
21202 msgid "tail-n"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #: ../fish/guestfish-actions.pod:3797
21207 #, no-wrap
21208 msgid ""
21209 " tail-n nrlines path\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: =head2
21214 #: ../fish/guestfish-actions.pod:3810
21215 msgid "tar-in"
21216 msgstr ""
21217
21218 # type: verbatim
21219 #: ../fish/guestfish-actions.pod:3812
21220 #, no-wrap
21221 msgid ""
21222 " tar-in (tarfile|-) directory\n"
21223 "\n"
21224 msgstr ""
21225
21226 # type: textblock
21227 #: ../fish/guestfish-actions.pod:3817
21228 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21229 msgstr ""
21230
21231 # type: =head2
21232 #: ../fish/guestfish-actions.pod:3822
21233 msgid "tar-out"
21234 msgstr ""
21235
21236 # type: verbatim
21237 #: ../fish/guestfish-actions.pod:3824
21238 #, no-wrap
21239 msgid ""
21240 " tar-out directory (tarfile|-)\n"
21241 "\n"
21242 msgstr ""
21243
21244 # type: textblock
21245 #: ../fish/guestfish-actions.pod:3829
21246 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21247 msgstr ""
21248
21249 # type: =head2
21250 #: ../fish/guestfish-actions.pod:3834
21251 msgid "tgz-in"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #: ../fish/guestfish-actions.pod:3836
21256 #, no-wrap
21257 msgid ""
21258 " tgz-in (tarball|-) directory\n"
21259 "\n"
21260 msgstr ""
21261
21262 # type: textblock
21263 #: ../fish/guestfish-actions.pod:3841
21264 msgid "To upload an uncompressed tarball, use L</tar-in>."
21265 msgstr ""
21266
21267 # type: =head2
21268 #: ../fish/guestfish-actions.pod:3845
21269 msgid "tgz-out"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #: ../fish/guestfish-actions.pod:3847
21274 #, no-wrap
21275 msgid ""
21276 " tgz-out directory (tarball|-)\n"
21277 "\n"
21278 msgstr ""
21279
21280 # type: textblock
21281 #: ../fish/guestfish-actions.pod:3852
21282 msgid "To download an uncompressed tarball, use L</tar-out>."
21283 msgstr ""
21284
21285 # type: =head2
21286 #: ../fish/guestfish-actions.pod:3856
21287 msgid "touch"
21288 msgstr ""
21289
21290 # type: verbatim
21291 #: ../fish/guestfish-actions.pod:3858
21292 #, no-wrap
21293 msgid ""
21294 " touch path\n"
21295 "\n"
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:3867
21300 msgid "truncate"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:3869
21305 #, no-wrap
21306 msgid ""
21307 " truncate path\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: =head2
21312 #: ../fish/guestfish-actions.pod:3874
21313 msgid "truncate-size"
21314 msgstr ""
21315
21316 # type: verbatim
21317 #: ../fish/guestfish-actions.pod:3876
21318 #, no-wrap
21319 msgid ""
21320 " truncate-size path size\n"
21321 "\n"
21322 msgstr ""
21323
21324 # type: textblock
21325 #: ../fish/guestfish-actions.pod:3881
21326 msgid ""
21327 "If the current file size is less than C<size> then the file is extended to "
21328 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21329 "blocks are not allocated for the file until you write to it).  To create a "
21330 "non-sparse file of zeroes, use L</fallocate64> instead."
21331 msgstr ""
21332
21333 # type: =head2
21334 #: ../fish/guestfish-actions.pod:3887
21335 msgid "tune2fs-l"
21336 msgstr ""
21337
21338 # type: verbatim
21339 #: ../fish/guestfish-actions.pod:3889
21340 #, no-wrap
21341 msgid ""
21342 " tune2fs-l device\n"
21343 "\n"
21344 msgstr ""
21345
21346 # type: =head2
21347 #: ../fish/guestfish-actions.pod:3899
21348 msgid "txz-in"
21349 msgstr ""
21350
21351 # type: verbatim
21352 #: ../fish/guestfish-actions.pod:3901
21353 #, no-wrap
21354 msgid ""
21355 " txz-in (tarball|-) directory\n"
21356 "\n"
21357 msgstr ""
21358
21359 # type: =head2
21360 #: ../fish/guestfish-actions.pod:3908
21361 msgid "txz-out"
21362 msgstr ""
21363
21364 # type: verbatim
21365 #: ../fish/guestfish-actions.pod:3910
21366 #, no-wrap
21367 msgid ""
21368 " txz-out directory (tarball|-)\n"
21369 "\n"
21370 msgstr ""
21371
21372 # type: =head2
21373 #: ../fish/guestfish-actions.pod:3917
21374 msgid "umask"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #: ../fish/guestfish-actions.pod:3919
21379 #, no-wrap
21380 msgid ""
21381 " umask mask\n"
21382 "\n"
21383 msgstr ""
21384
21385 # type: textblock
21386 #: ../fish/guestfish-actions.pod:3933
21387 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:3938
21392 msgid "umount"
21393 msgstr ""
21394
21395 # type: =head2
21396 #: ../fish/guestfish-actions.pod:3940
21397 msgid "unmount"
21398 msgstr ""
21399
21400 # type: verbatim
21401 #: ../fish/guestfish-actions.pod:3942
21402 #, no-wrap
21403 msgid ""
21404 " umount pathordevice\n"
21405 "\n"
21406 msgstr ""
21407
21408 # type: =head2
21409 #: ../fish/guestfish-actions.pod:3948
21410 msgid "umount-all"
21411 msgstr ""
21412
21413 # type: =head2
21414 #: ../fish/guestfish-actions.pod:3950
21415 msgid "unmount-all"
21416 msgstr ""
21417
21418 # type: verbatim
21419 #: ../fish/guestfish-actions.pod:3952
21420 #, no-wrap
21421 msgid ""
21422 " umount-all\n"
21423 "\n"
21424 msgstr ""
21425
21426 # type: =head2
21427 #: ../fish/guestfish-actions.pod:3958
21428 msgid "upload"
21429 msgstr ""
21430
21431 # type: verbatim
21432 #: ../fish/guestfish-actions.pod:3960
21433 #, no-wrap
21434 msgid ""
21435 " upload (filename|-) remotefilename\n"
21436 "\n"
21437 msgstr ""
21438
21439 # type: textblock
21440 #: ../fish/guestfish-actions.pod:3967
21441 msgid "See also L</download>."
21442 msgstr ""
21443
21444 # type: =head2
21445 #: ../fish/guestfish-actions.pod:3971
21446 msgid "upload-offset"
21447 msgstr ""
21448
21449 # type: verbatim
21450 #: ../fish/guestfish-actions.pod:3973
21451 #, no-wrap
21452 msgid ""
21453 " upload-offset (filename|-) remotefilename offset\n"
21454 "\n"
21455 msgstr ""
21456
21457 # type: textblock
21458 #: ../fish/guestfish-actions.pod:3985
21459 msgid ""
21460 "Note that there is no limit on the amount of data that can be uploaded with "
21461 "this call, unlike with L</pwrite>, and this call always writes the full "
21462 "amount unless an error occurs."
21463 msgstr ""
21464
21465 # type: textblock
21466 #: ../fish/guestfish-actions.pod:3990
21467 msgid "See also L</upload>, L</pwrite>."
21468 msgstr ""
21469
21470 # type: =head2
21471 #: ../fish/guestfish-actions.pod:3994
21472 msgid "utimens"
21473 msgstr ""
21474
21475 # type: verbatim
21476 #: ../fish/guestfish-actions.pod:3996
21477 #, no-wrap
21478 msgid ""
21479 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21480 "\n"
21481 msgstr ""
21482
21483 # type: =head2
21484 #: ../fish/guestfish-actions.pod:4015
21485 msgid "version"
21486 msgstr ""
21487
21488 # type: verbatim
21489 #: ../fish/guestfish-actions.pod:4017
21490 #, no-wrap
21491 msgid ""
21492 " version\n"
21493 "\n"
21494 msgstr ""
21495
21496 # type: textblock
21497 #: ../fish/guestfish-actions.pod:4044
21498 msgid ""
21499 "I<Note:> Don't use this call to test for availability of features.  In "
21500 "enterprise distributions we backport features from later versions into "
21501 "earlier versions, making this an unreliable way to test for features.  Use "
21502 "L</available> instead."
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:4050
21507 msgid "vfs-label"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:4052
21512 #, no-wrap
21513 msgid ""
21514 " vfs-label device\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: textblock
21519 #: ../fish/guestfish-actions.pod:4059
21520 msgid "To find a filesystem from the label, use L</findfs-label>."
21521 msgstr ""
21522
21523 # type: =head2
21524 #: ../fish/guestfish-actions.pod:4061
21525 msgid "vfs-type"
21526 msgstr ""
21527
21528 # type: verbatim
21529 #: ../fish/guestfish-actions.pod:4063
21530 #, no-wrap
21531 msgid ""
21532 " vfs-type device\n"
21533 "\n"
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:4073
21538 msgid "vfs-uuid"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:4075
21543 #, no-wrap
21544 msgid ""
21545 " vfs-uuid device\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: textblock
21550 #: ../fish/guestfish-actions.pod:4082
21551 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
21552 msgstr ""
21553
21554 # type: =head2
21555 #: ../fish/guestfish-actions.pod:4084
21556 msgid "vg-activate"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #: ../fish/guestfish-actions.pod:4086
21561 #, no-wrap
21562 msgid ""
21563 " vg-activate true|false 'volgroups ...'\n"
21564 "\n"
21565 msgstr ""
21566
21567 # type: =head2
21568 #: ../fish/guestfish-actions.pod:4099
21569 msgid "vg-activate-all"
21570 msgstr ""
21571
21572 # type: verbatim
21573 #: ../fish/guestfish-actions.pod:4101
21574 #, no-wrap
21575 msgid ""
21576 " vg-activate-all true|false\n"
21577 "\n"
21578 msgstr ""
21579
21580 # type: =head2
21581 #: ../fish/guestfish-actions.pod:4111
21582 msgid "vgcreate"
21583 msgstr ""
21584
21585 # type: verbatim
21586 #: ../fish/guestfish-actions.pod:4113
21587 #, no-wrap
21588 msgid ""
21589 " vgcreate volgroup 'physvols ...'\n"
21590 "\n"
21591 msgstr ""
21592
21593 # type: =head2
21594 #: ../fish/guestfish-actions.pod:4118
21595 msgid "vglvuuids"
21596 msgstr ""
21597
21598 # type: verbatim
21599 #: ../fish/guestfish-actions.pod:4120
21600 #, no-wrap
21601 msgid ""
21602 " vglvuuids vgname\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: textblock
21607 #: ../fish/guestfish-actions.pod:4125
21608 msgid ""
21609 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
21610 "logical volumes and volume groups."
21611 msgstr ""
21612
21613 # type: textblock
21614 #: ../fish/guestfish-actions.pod:4128
21615 msgid "See also L</vgpvuuids>."
21616 msgstr ""
21617
21618 # type: =head2
21619 #: ../fish/guestfish-actions.pod:4130
21620 msgid "vgpvuuids"
21621 msgstr ""
21622
21623 # type: verbatim
21624 #: ../fish/guestfish-actions.pod:4132
21625 #, no-wrap
21626 msgid ""
21627 " vgpvuuids vgname\n"
21628 "\n"
21629 msgstr ""
21630
21631 # type: textblock
21632 #: ../fish/guestfish-actions.pod:4137
21633 msgid ""
21634 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
21635 "physical volumes and volume groups."
21636 msgstr ""
21637
21638 # type: textblock
21639 #: ../fish/guestfish-actions.pod:4140
21640 msgid "See also L</vglvuuids>."
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:4142
21645 msgid "vgremove"
21646 msgstr ""
21647
21648 # type: verbatim
21649 #: ../fish/guestfish-actions.pod:4144
21650 #, no-wrap
21651 msgid ""
21652 " vgremove vgname\n"
21653 "\n"
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:4151
21658 msgid "vgrename"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #: ../fish/guestfish-actions.pod:4153
21663 #, no-wrap
21664 msgid ""
21665 " vgrename volgroup newvolgroup\n"
21666 "\n"
21667 msgstr ""
21668
21669 # type: =head2
21670 #: ../fish/guestfish-actions.pod:4157
21671 msgid "vgs"
21672 msgstr ""
21673
21674 # type: verbatim
21675 #: ../fish/guestfish-actions.pod:4159
21676 #, no-wrap
21677 msgid ""
21678 " vgs\n"
21679 "\n"
21680 msgstr ""
21681
21682 # type: textblock
21683 #: ../fish/guestfish-actions.pod:4167
21684 msgid "See also L</vgs-full>."
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:4169
21689 msgid "vgs-full"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:4171
21694 #, no-wrap
21695 msgid ""
21696 " vgs-full\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:4176
21702 msgid "vgscan"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #: ../fish/guestfish-actions.pod:4178
21707 #, no-wrap
21708 msgid ""
21709 " vgscan\n"
21710 "\n"
21711 msgstr ""
21712
21713 # type: =head2
21714 #: ../fish/guestfish-actions.pod:4183
21715 msgid "vguuid"
21716 msgstr ""
21717
21718 # type: verbatim
21719 #: ../fish/guestfish-actions.pod:4185
21720 #, no-wrap
21721 msgid ""
21722 " vguuid vgname\n"
21723 "\n"
21724 msgstr ""
21725
21726 # type: =head2
21727 #: ../fish/guestfish-actions.pod:4189
21728 msgid "wc-c"
21729 msgstr ""
21730
21731 # type: verbatim
21732 #: ../fish/guestfish-actions.pod:4191
21733 #, no-wrap
21734 msgid ""
21735 " wc-c path\n"
21736 "\n"
21737 msgstr ""
21738
21739 # type: =head2
21740 #: ../fish/guestfish-actions.pod:4196
21741 msgid "wc-l"
21742 msgstr ""
21743
21744 # type: verbatim
21745 #: ../fish/guestfish-actions.pod:4198
21746 #, no-wrap
21747 msgid ""
21748 " wc-l path\n"
21749 "\n"
21750 msgstr ""
21751
21752 # type: =head2
21753 #: ../fish/guestfish-actions.pod:4203
21754 msgid "wc-w"
21755 msgstr ""
21756
21757 # type: verbatim
21758 #: ../fish/guestfish-actions.pod:4205
21759 #, no-wrap
21760 msgid ""
21761 " wc-w path\n"
21762 "\n"
21763 msgstr ""
21764
21765 # type: =head2
21766 #: ../fish/guestfish-actions.pod:4210
21767 msgid "write"
21768 msgstr ""
21769
21770 # type: verbatim
21771 #: ../fish/guestfish-actions.pod:4212
21772 #, no-wrap
21773 msgid ""
21774 " write path content\n"
21775 "\n"
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-actions.pod:4220
21780 msgid "write-file"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-actions.pod:4222
21785 #, no-wrap
21786 msgid ""
21787 " write-file path content size\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: =head2
21792 #: ../fish/guestfish-actions.pod:4245
21793 msgid "zegrep"
21794 msgstr ""
21795
21796 # type: verbatim
21797 #: ../fish/guestfish-actions.pod:4247
21798 #, no-wrap
21799 msgid ""
21800 " zegrep regex path\n"
21801 "\n"
21802 msgstr ""
21803
21804 # type: =head2
21805 #: ../fish/guestfish-actions.pod:4255
21806 msgid "zegrepi"
21807 msgstr ""
21808
21809 # type: verbatim
21810 #: ../fish/guestfish-actions.pod:4257
21811 #, no-wrap
21812 msgid ""
21813 " zegrepi regex path\n"
21814 "\n"
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:4265
21819 msgid "zero"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:4267
21824 #, no-wrap
21825 msgid ""
21826 " zero device\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: textblock
21831 #: ../fish/guestfish-actions.pod:4275
21832 msgid "See also: L</zero-device>, L</scrub-device>."
21833 msgstr ""
21834
21835 # type: =head2
21836 #: ../fish/guestfish-actions.pod:4277
21837 msgid "zero-device"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #: ../fish/guestfish-actions.pod:4279
21842 #, no-wrap
21843 msgid ""
21844 " zero-device device\n"
21845 "\n"
21846 msgstr ""
21847
21848 # type: textblock
21849 #: ../fish/guestfish-actions.pod:4281
21850 msgid ""
21851 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
21852 "which just zeroes the first few blocks of a device."
21853 msgstr ""
21854
21855 # type: =head2
21856 #: ../fish/guestfish-actions.pod:4288
21857 msgid "zerofree"
21858 msgstr ""
21859
21860 # type: verbatim
21861 #: ../fish/guestfish-actions.pod:4290
21862 #, no-wrap
21863 msgid ""
21864 " zerofree device\n"
21865 "\n"
21866 msgstr ""
21867
21868 # type: =head2
21869 #: ../fish/guestfish-actions.pod:4303
21870 msgid "zfgrep"
21871 msgstr ""
21872
21873 # type: verbatim
21874 #: ../fish/guestfish-actions.pod:4305
21875 #, no-wrap
21876 msgid ""
21877 " zfgrep pattern path\n"
21878 "\n"
21879 msgstr ""
21880
21881 # type: =head2
21882 #: ../fish/guestfish-actions.pod:4313
21883 msgid "zfgrepi"
21884 msgstr ""
21885
21886 # type: verbatim
21887 #: ../fish/guestfish-actions.pod:4315
21888 #, no-wrap
21889 msgid ""
21890 " zfgrepi pattern path\n"
21891 "\n"
21892 msgstr ""
21893
21894 # type: =head2
21895 #: ../fish/guestfish-actions.pod:4323
21896 msgid "zfile"
21897 msgstr ""
21898
21899 # type: verbatim
21900 #: ../fish/guestfish-actions.pod:4325
21901 #, no-wrap
21902 msgid ""
21903 " zfile meth path\n"
21904 "\n"
21905 msgstr ""
21906
21907 # type: textblock
21908 #: ../fish/guestfish-actions.pod:4332
21909 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
21910 msgstr ""
21911
21912 # type: =head2
21913 #: ../fish/guestfish-actions.pod:4342
21914 msgid "zgrep"
21915 msgstr ""
21916
21917 # type: verbatim
21918 #: ../fish/guestfish-actions.pod:4344
21919 #, no-wrap
21920 msgid ""
21921 " zgrep regex path\n"
21922 "\n"
21923 msgstr ""
21924
21925 # type: =head2
21926 #: ../fish/guestfish-actions.pod:4352
21927 msgid "zgrepi"
21928 msgstr ""
21929
21930 # type: verbatim
21931 #: ../fish/guestfish-actions.pod:4354
21932 #, no-wrap
21933 msgid ""
21934 " zgrepi regex path\n"
21935 "\n"
21936 msgstr ""
21937
21938 # type: =head2
21939 #: ../fish/guestfish-commands.pod:1
21940 msgid "alloc"
21941 msgstr ""
21942
21943 # type: =head2
21944 #: ../fish/guestfish-commands.pod:3
21945 msgid "allocate"
21946 msgstr ""
21947
21948 # type: verbatim
21949 #: ../fish/guestfish-commands.pod:5
21950 #, no-wrap
21951 msgid ""
21952 " alloc filename size\n"
21953 "\n"
21954 msgstr ""
21955
21956 # type: textblock
21957 #: ../fish/guestfish-commands.pod:7
21958 msgid ""
21959 "This creates an empty (zeroed) file of the given size, and then adds so it "
21960 "can be further examined."
21961 msgstr ""
21962
21963 # type: textblock
21964 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
21965 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
21966 msgstr ""
21967
21968 # type: textblock
21969 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
21970 msgid "Size can be specified using standard suffixes, eg. C<1M>."
21971 msgstr ""
21972
21973 # type: textblock
21974 #: ../fish/guestfish-commands.pod:14
21975 msgid ""
21976 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
21977 "image, see L</PREPARED DISK IMAGES>."
21978 msgstr ""
21979
21980 # type: =head2
21981 #: ../fish/guestfish-commands.pod:17
21982 msgid "copy-in"
21983 msgstr ""
21984
21985 # type: verbatim
21986 #: ../fish/guestfish-commands.pod:19
21987 #, no-wrap
21988 msgid ""
21989 " copy-in local [local ...] /remotedir\n"
21990 "\n"
21991 msgstr ""
21992
21993 # type: textblock
21994 #: ../fish/guestfish-commands.pod:21
21995 msgid ""
21996 "C<copy-in> copies local files or directories recursively into the disk "
21997 "image, placing them in the directory called C</remotedir> (which must "
21998 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
21999 "other commands as necessary."
22000 msgstr ""
22001
22002 # type: textblock
22003 #: ../fish/guestfish-commands.pod:26
22004 msgid ""
22005 "Multiple local files and directories can be specified, but the last "
22006 "parameter must always be a remote directory.  Wildcards cannot be used."
22007 msgstr ""
22008
22009 # type: =head2
22010 #: ../fish/guestfish-commands.pod:30
22011 msgid "copy-out"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #: ../fish/guestfish-commands.pod:32
22016 #, no-wrap
22017 msgid ""
22018 " copy-out remote [remote ...] localdir\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: textblock
22023 #: ../fish/guestfish-commands.pod:34
22024 msgid ""
22025 "C<copy-out> copies remote files or directories recursively out of the disk "
22026 "image, placing them on the host disk in a local directory called C<localdir> "
22027 "(which must exist).  This guestfish meta-command turns into a sequence of "
22028 "L</download>, L</tar-out> and other commands as necessary."
22029 msgstr ""
22030
22031 # type: textblock
22032 #: ../fish/guestfish-commands.pod:40
22033 msgid ""
22034 "Multiple remote files and directories can be specified, but the last "
22035 "parameter must always be a local directory.  To download to the current "
22036 "directory, use C<.> as in:"
22037 msgstr ""
22038
22039 # type: verbatim
22040 #: ../fish/guestfish-commands.pod:44
22041 #, no-wrap
22042 msgid ""
22043 " copy-out /home .\n"
22044 "\n"
22045 msgstr ""
22046
22047 # type: textblock
22048 #: ../fish/guestfish-commands.pod:46
22049 msgid ""
22050 "Wildcards cannot be used in the ordinary command, but you can use them with "
22051 "the help of L</glob> like this:"
22052 msgstr ""
22053
22054 # type: verbatim
22055 #: ../fish/guestfish-commands.pod:49
22056 #, no-wrap
22057 msgid ""
22058 " glob copy-out /home/* .\n"
22059 "\n"
22060 msgstr ""
22061
22062 # type: =head2
22063 #: ../fish/guestfish-commands.pod:51
22064 msgid "echo"
22065 msgstr ""
22066
22067 # type: verbatim
22068 #: ../fish/guestfish-commands.pod:53
22069 #, no-wrap
22070 msgid ""
22071 " echo [params ...]\n"
22072 "\n"
22073 msgstr ""
22074
22075 # type: textblock
22076 #: ../fish/guestfish-commands.pod:55
22077 msgid "This echos the parameters to the terminal."
22078 msgstr ""
22079
22080 # type: =head2
22081 #: ../fish/guestfish-commands.pod:57
22082 msgid "edit"
22083 msgstr ""
22084
22085 # type: =head2
22086 #: ../fish/guestfish-commands.pod:59
22087 msgid "vi"
22088 msgstr ""
22089
22090 # type: =head2
22091 #: ../fish/guestfish-commands.pod:61
22092 msgid "emacs"
22093 msgstr ""
22094
22095 # type: verbatim
22096 #: ../fish/guestfish-commands.pod:63
22097 #, no-wrap
22098 msgid ""
22099 " edit filename\n"
22100 "\n"
22101 msgstr ""
22102
22103 # type: textblock
22104 #: ../fish/guestfish-commands.pod:65
22105 msgid ""
22106 "This is used to edit a file.  It downloads the file, edits it locally using "
22107 "your editor, then uploads the result."
22108 msgstr ""
22109
22110 # type: textblock
22111 #: ../fish/guestfish-commands.pod:68
22112 msgid ""
22113 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
22114 "or C<emacs> you will get those corresponding editors."
22115 msgstr ""
22116
22117 # type: =head2
22118 #: ../fish/guestfish-commands.pod:72
22119 msgid "glob"
22120 msgstr ""
22121
22122 # type: verbatim
22123 #: ../fish/guestfish-commands.pod:74
22124 #, no-wrap
22125 msgid ""
22126 " glob command args...\n"
22127 "\n"
22128 msgstr ""
22129
22130 # type: textblock
22131 #: ../fish/guestfish-commands.pod:76
22132 msgid ""
22133 "Expand wildcards in any paths in the args list, and run C<command> "
22134 "repeatedly on each matching path."
22135 msgstr ""
22136
22137 # type: textblock
22138 #: ../fish/guestfish-commands.pod:79
22139 msgid "See L</WILDCARDS AND GLOBBING>."
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-commands.pod:81
22144 msgid "hexedit"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #: ../fish/guestfish-commands.pod:83
22149 #, no-wrap
22150 msgid ""
22151 " hexedit <filename|device>\n"
22152 " hexedit <filename|device> <max>\n"
22153 " hexedit <filename|device> <start> <max>\n"
22154 "\n"
22155 msgstr ""
22156
22157 # type: textblock
22158 #: ../fish/guestfish-commands.pod:87
22159 msgid ""
22160 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22161 "device."
22162 msgstr ""
22163
22164 # type: textblock
22165 #: ../fish/guestfish-commands.pod:90
22166 msgid ""
22167 "This command works by downloading potentially the whole file or device, "
22168 "editing it locally, then uploading it.  If the file or device is large, you "
22169 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22170 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22171 "usual modifiers allowed such as C<1M> (1 megabyte)."
22172 msgstr ""
22173
22174 # type: textblock
22175 #: ../fish/guestfish-commands.pod:97
22176 msgid "For example to edit the first few sectors of a disk you might do:"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-commands.pod:100
22181 #, no-wrap
22182 msgid ""
22183 " hexedit /dev/sda 1M\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: textblock
22188 #: ../fish/guestfish-commands.pod:102
22189 msgid ""
22190 "which would allow you to edit anywhere within the first megabyte of the "
22191 "disk."
22192 msgstr ""
22193
22194 # type: textblock
22195 #: ../fish/guestfish-commands.pod:105
22196 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-commands.pod:107
22201 #, no-wrap
22202 msgid ""
22203 " hexedit /dev/sda1 0x400 0x400\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-commands.pod:109
22209 msgid "(assuming the superblock is in the standard location)."
22210 msgstr ""
22211
22212 # type: textblock
22213 #: ../fish/guestfish-commands.pod:111
22214 msgid ""
22215 "This command requires the external L<hexedit(1)> program.  You can specify "
22216 "another program to use by setting the C<HEXEDITOR> environment variable."
22217 msgstr ""
22218
22219 # type: textblock
22220 #: ../fish/guestfish-commands.pod:115
22221 msgid "See also L</hexdump>."
22222 msgstr ""
22223
22224 # type: =head2
22225 #: ../fish/guestfish-commands.pod:117
22226 msgid "lcd"
22227 msgstr ""
22228
22229 # type: verbatim
22230 #: ../fish/guestfish-commands.pod:119
22231 #, no-wrap
22232 msgid ""
22233 " lcd directory\n"
22234 "\n"
22235 msgstr ""
22236
22237 # type: textblock
22238 #: ../fish/guestfish-commands.pod:121
22239 msgid "Change the local directory, ie. the current directory of guestfish itself."
22240 msgstr ""
22241
22242 # type: textblock
22243 #: ../fish/guestfish-commands.pod:124
22244 msgid "Note that C<!cd> won't do what you might expect."
22245 msgstr ""
22246
22247 # type: =head2
22248 #: ../fish/guestfish-commands.pod:126
22249 msgid "man"
22250 msgstr ""
22251
22252 # type: =head2
22253 #: ../fish/guestfish-commands.pod:128
22254 msgid "manual"
22255 msgstr ""
22256
22257 # type: verbatim
22258 #: ../fish/guestfish-commands.pod:130
22259 #, no-wrap
22260 msgid ""
22261 "  man\n"
22262 "\n"
22263 msgstr ""
22264
22265 # type: textblock
22266 #: ../fish/guestfish-commands.pod:132
22267 msgid "Opens the manual page for guestfish."
22268 msgstr ""
22269
22270 # type: =head2
22271 #: ../fish/guestfish-commands.pod:134
22272 msgid "more"
22273 msgstr ""
22274
22275 # type: =head2
22276 #: ../fish/guestfish-commands.pod:136
22277 msgid "less"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #: ../fish/guestfish-commands.pod:138
22282 #, no-wrap
22283 msgid ""
22284 " more filename\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: verbatim
22289 #: ../fish/guestfish-commands.pod:140
22290 #, no-wrap
22291 msgid ""
22292 " less filename\n"
22293 "\n"
22294 msgstr ""
22295
22296 # type: textblock
22297 #: ../fish/guestfish-commands.pod:142
22298 msgid "This is used to view a file."
22299 msgstr ""
22300
22301 # type: textblock
22302 #: ../fish/guestfish-commands.pod:144
22303 msgid ""
22304 "The default viewer is C<$PAGER>.  However if you use the alternate command "
22305 "C<less> you will get the C<less> command specifically."
22306 msgstr ""
22307
22308 # type: =head2
22309 #: ../fish/guestfish-commands.pod:147
22310 msgid "reopen"
22311 msgstr ""
22312
22313 # type: verbatim
22314 #: ../fish/guestfish-commands.pod:149
22315 #, no-wrap
22316 msgid ""
22317 "  reopen\n"
22318 "\n"
22319 msgstr ""
22320
22321 # type: textblock
22322 #: ../fish/guestfish-commands.pod:151
22323 msgid ""
22324 "Close and reopen the libguestfs handle.  It is not necessary to use this "
22325 "normally, because the handle is closed properly when guestfish exits.  "
22326 "However this is occasionally useful for testing."
22327 msgstr ""
22328
22329 # type: =head2
22330 #: ../fish/guestfish-commands.pod:155
22331 msgid "sparse"
22332 msgstr ""
22333
22334 # type: verbatim
22335 #: ../fish/guestfish-commands.pod:157
22336 #, no-wrap
22337 msgid ""
22338 " sparse filename size\n"
22339 "\n"
22340 msgstr ""
22341
22342 # type: textblock
22343 #: ../fish/guestfish-commands.pod:159
22344 msgid ""
22345 "This creates an empty sparse file of the given size, and then adds so it can "
22346 "be further examined."
22347 msgstr ""
22348
22349 # type: textblock
22350 #: ../fish/guestfish-commands.pod:162
22351 msgid ""
22352 "In all respects it works the same as the L</alloc> command, except that the "
22353 "image file is allocated sparsely, which means that disk blocks are not "
22354 "assigned to the file until they are needed.  Sparse disk files only use "
22355 "space when written to, but they are slower and there is a danger you could "
22356 "run out of real disk space during a write operation."
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-commands.pod:172
22361 msgid "supported"
22362 msgstr ""
22363
22364 # type: verbatim
22365 #: ../fish/guestfish-commands.pod:174
22366 #, no-wrap
22367 msgid ""
22368 " supported\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: textblock
22373 #: ../fish/guestfish-commands.pod:176
22374 msgid ""
22375 "This command returns a list of the optional groups known to the daemon, and "
22376 "indicates which ones are supported by this build of the libguestfs "
22377 "appliance."
22378 msgstr ""
22379
22380 # type: textblock
22381 #: ../fish/guestfish-commands.pod:180
22382 msgid "See also L<guestfs(3)/AVAILABILITY>."
22383 msgstr ""
22384
22385 # type: =head2
22386 #: ../fish/guestfish-commands.pod:182
22387 msgid "time"
22388 msgstr ""
22389
22390 # type: verbatim
22391 #: ../fish/guestfish-commands.pod:184
22392 #, no-wrap
22393 msgid ""
22394 " time command args...\n"
22395 "\n"
22396 msgstr ""
22397
22398 # type: textblock
22399 #: ../fish/guestfish-commands.pod:186
22400 msgid ""
22401 "Run the command as usual, but print the elapsed time afterwards.  This can "
22402 "be useful for benchmarking operations."
22403 msgstr ""
22404
22405 # type: textblock
22406 #: ../test-tool/libguestfs-test-tool.pod:5
22407 msgid "libguestfs-test-tool - End user tests for libguestfs"
22408 msgstr ""
22409
22410 # type: verbatim
22411 #: ../test-tool/libguestfs-test-tool.pod:9
22412 #, no-wrap
22413 msgid ""
22414 " libguestfs-test-tool [--options]\n"
22415 "\n"
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../test-tool/libguestfs-test-tool.pod:13
22420 msgid ""
22421 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22422 "and developers, to allow them to check basic libguestfs functionality is "
22423 "working.  This is needed because libguestfs occasionally breaks for reasons "
22424 "beyond our control: usually because of changes in the underlying qemu or "
22425 "kernel packages, or the host environment."
22426 msgstr ""
22427
22428 # type: textblock
22429 #: ../test-tool/libguestfs-test-tool.pod:20
22430 msgid "If you suspect a problem in libguestfs, then just run:"
22431 msgstr ""
22432
22433 # type: verbatim
22434 #: ../test-tool/libguestfs-test-tool.pod:22
22435 #, no-wrap
22436 msgid ""
22437 " libguestfs-test-tool\n"
22438 "\n"
22439 msgstr ""
22440
22441 # type: textblock
22442 #: ../test-tool/libguestfs-test-tool.pod:24
22443 msgid "It will print lots of diagnostic messages."
22444 msgstr ""
22445
22446 # type: textblock
22447 #: ../test-tool/libguestfs-test-tool.pod:26
22448 msgid "If it runs to completion successfully, you will see this near the end:"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../test-tool/libguestfs-test-tool.pod:28
22453 #, no-wrap
22454 msgid ""
22455 " ===== TEST FINISHED OK =====\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: textblock
22460 #: ../test-tool/libguestfs-test-tool.pod:30
22461 msgid "and the test tool will exit with code 0."
22462 msgstr ""
22463
22464 # type: textblock
22465 #: ../test-tool/libguestfs-test-tool.pod:32
22466 msgid ""
22467 "If it fails (and/or exits with non-zero error code), please paste the "
22468 "B<complete, unedited> output of the test tool into a bug report.  More "
22469 "information about reporting bugs can be found on the "
22470 "L<http://libguestfs.org/> website."
22471 msgstr ""
22472
22473 # type: =item
22474 #: ../test-tool/libguestfs-test-tool.pod:41
22475 msgid "I<--help>"
22476 msgstr ""
22477
22478 # type: textblock
22479 #: ../test-tool/libguestfs-test-tool.pod:43
22480 msgid "Display short usage information and exit."
22481 msgstr ""
22482
22483 # type: =item
22484 #: ../test-tool/libguestfs-test-tool.pod:45
22485 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22486 msgstr ""
22487
22488 # type: textblock
22489 #: ../test-tool/libguestfs-test-tool.pod:47
22490 msgid ""
22491 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22492 "normally look in the C<$libexec> directory that was configured when the tool "
22493 "was built."
22494 msgstr ""
22495
22496 # type: =item
22497 #: ../test-tool/libguestfs-test-tool.pod:51
22498 msgid "I<--qemu qemu_binary>"
22499 msgstr ""
22500
22501 # type: textblock
22502 #: ../test-tool/libguestfs-test-tool.pod:53
22503 msgid ""
22504 "If you have downloaded another qemu binary, point this option at the full "
22505 "path of the binary to try it."
22506 msgstr ""
22507
22508 # type: =item
22509 #: ../test-tool/libguestfs-test-tool.pod:56
22510 msgid "I<--qemudir qemu_source_dir>"
22511 msgstr ""
22512
22513 # type: textblock
22514 #: ../test-tool/libguestfs-test-tool.pod:58
22515 msgid ""
22516 "If you have compiled qemu from source, point this option at the source "
22517 "directory to try it."
22518 msgstr ""
22519
22520 # type: =item
22521 #: ../test-tool/libguestfs-test-tool.pod:61
22522 msgid "I<--timeout N>"
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../test-tool/libguestfs-test-tool.pod:63
22527 msgid ""
22528 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22529 "does not usually need to be adjusted unless your machine is very slow."
22530 msgstr ""
22531
22532 # type: =head1
22533 #: ../test-tool/libguestfs-test-tool.pod:69
22534 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22535 msgstr ""
22536
22537 # type: textblock
22538 #: ../test-tool/libguestfs-test-tool.pod:71
22539 msgid ""
22540 "If you have compiled another version of qemu from source and would like to "
22541 "try that, then you can use the I<--qemudir> option to point to the qemu "
22542 "source directory."
22543 msgstr ""
22544
22545 # type: textblock
22546 #: ../test-tool/libguestfs-test-tool.pod:75
22547 msgid ""
22548 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22549 "option to point to the binary."
22550 msgstr ""
22551
22552 # type: textblock
22553 #: ../test-tool/libguestfs-test-tool.pod:78
22554 msgid ""
22555 "When using an alternate qemu with libguestfs, usually you would need to "
22556 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
22557 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
22558 "when you use either of the I<--qemudir> or I<--qemu> options."
22559 msgstr ""
22560
22561 # type: textblock
22562 #: ../test-tool/libguestfs-test-tool.pod:85
22563 msgid ""
22564 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22565 "I<1> if there was an error."
22566 msgstr ""
22567
22568 # type: =item
22569 #: ../test-tool/libguestfs-test-tool.pod:92
22570 msgid "/usr/libexec/libguestfs-test-tool-helper"
22571 msgstr ""
22572
22573 # type: textblock
22574 #: ../test-tool/libguestfs-test-tool.pod:94
22575 msgid ""
22576 "This helper program is run inside the appliance and provides additional "
22577 "tests."
22578 msgstr ""
22579
22580 # type: =item
22581 #: ../test-tool/libguestfs-test-tool.pod:97
22582 msgid "/usr/bin/mkisofs"
22583 msgstr ""
22584
22585 # type: textblock
22586 #: ../test-tool/libguestfs-test-tool.pod:99
22587 msgid ""
22588 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22589 "which is used as part of the tests."
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../test-tool/libguestfs-test-tool.pod:106
22594 msgid ""
22595 "For the full list of environment variables which may affect libguestfs, "
22596 "please see the L<guestfs(3)> manual page."
22597 msgstr ""
22598
22599 # type: textblock
22600 #: ../test-tool/libguestfs-test-tool.pod:111
22601 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22602 msgstr ""
22603
22604 # type: textblock
22605 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22606 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22607 msgstr ""
22608
22609 # type: textblock
22610 #: ../fuse/guestmount.pod:5
22611 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22612 msgstr ""
22613
22614 # type: verbatim
22615 #: ../fuse/guestmount.pod:9
22616 #, no-wrap
22617 msgid ""
22618 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22619 "\n"
22620 msgstr ""
22621
22622 # type: textblock
22623 #: ../fuse/guestmount.pod:13
22624 msgid ""
22625 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22626 "machines.  If you do this, you risk disk corruption in the VM."
22627 msgstr ""
22628
22629 # type: textblock
22630 #: ../fuse/guestmount.pod:18
22631 msgid ""
22632 "The guestmount program can be used to mount virtual machine filesystems and "
22633 "other disk images on the host.  It uses libguestfs for access to the guest "
22634 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22635 "a mountable device."
22636 msgstr ""
22637
22638 # type: textblock
22639 #: ../fuse/guestmount.pod:23
22640 msgid ""
22641 "Along with other options, you have to give at least one device (I<-a> "
22642 "option) and at least one mountpoint (I<-m> option).  How this works is "
22643 "better explained in the L<guestfish(1)> manual page, or you can use "
22644 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
22645 "you."
22646 msgstr ""
22647
22648 # type: textblock
22649 #: ../fuse/guestmount.pod:29
22650 msgid ""
22651 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22652 "by you, and the filesystem will not be visible to any other users unless you "
22653 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22654 "the filesystem, use the C<fusermount -u> command."
22655 msgstr ""
22656
22657 # type: textblock
22658 #: ../fuse/guestmount.pod:37
22659 msgid ""
22660 "For a typical Windows guest which has its main filesystem on the first "
22661 "partition:"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fuse/guestmount.pod:40
22666 #, no-wrap
22667 msgid ""
22668 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: textblock
22673 #: ../fuse/guestmount.pod:42
22674 msgid ""
22675 "For a typical Linux guest which has a /boot filesystem on the first "
22676 "partition, and the root filesystem on a logical volume:"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fuse/guestmount.pod:45
22681 #, no-wrap
22682 msgid ""
22683 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22684 "\n"
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fuse/guestmount.pod:47
22689 msgid ""
22690 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22691 "mountpoints for you:"
22692 msgstr ""
22693
22694 # type: verbatim
22695 #: ../fuse/guestmount.pod:50
22696 #, no-wrap
22697 msgid ""
22698 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22699 "\n"
22700 msgstr ""
22701
22702 # type: textblock
22703 #: ../fuse/guestmount.pod:52
22704 msgid ""
22705 "(or use --fish if you don't want it to be a read only mount).  The option is "
22706 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22707 "with L<guestfish(1)>."
22708 msgstr ""
22709
22710 # type: textblock
22711 #: ../fuse/guestmount.pod:56
22712 msgid ""
22713 "If you don't know what filesystems are contained in a guest or disk image, "
22714 "use L<virt-list-filesystems(1)> first:"
22715 msgstr ""
22716
22717 # type: verbatim
22718 #: ../fuse/guestmount.pod:59
22719 #, no-wrap
22720 msgid ""
22721 " virt-list-filesystems MyGuest\n"
22722 "\n"
22723 msgstr ""
22724
22725 # type: textblock
22726 #: ../fuse/guestmount.pod:61
22727 msgid ""
22728 "If you want to trace the libguestfs calls but without excessive debugging, "
22729 "we recommend:"
22730 msgstr ""
22731
22732 # type: verbatim
22733 #: ../fuse/guestmount.pod:64
22734 #, no-wrap
22735 msgid ""
22736 " guestmount [-a ... -m ...] --trace /mnt\n"
22737 "\n"
22738 msgstr ""
22739
22740 # type: textblock
22741 #: ../fuse/guestmount.pod:66
22742 msgid "If you want to debug the program, we recommend:"
22743 msgstr ""
22744
22745 # type: verbatim
22746 #: ../fuse/guestmount.pod:68
22747 #, no-wrap
22748 msgid ""
22749 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22750 "\n"
22751 msgstr ""
22752
22753 # type: textblock
22754 #: ../fuse/guestmount.pod:76
22755 msgid "Add a block device or virtual machine image."
22756 msgstr ""
22757
22758 # type: =item
22759 #: ../fuse/guestmount.pod:78
22760 msgid "B<--dir-cache-timeout N>"
22761 msgstr ""
22762
22763 # type: textblock
22764 #: ../fuse/guestmount.pod:80
22765 msgid ""
22766 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22767 "seconds.  The readdir cache [actually, there are several semi-independent "
22768 "caches] is populated after a readdir(2) call with the stat and extended "
22769 "attributes of the files in the directory, in anticipation that they will be "
22770 "requested soon after."
22771 msgstr ""
22772
22773 # type: textblock
22774 #: ../fuse/guestmount.pod:86
22775 msgid ""
22776 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22777 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22778 "requests, only cache existing ones."
22779 msgstr ""
22780
22781 # type: =item
22782 #: ../fuse/guestmount.pod:90
22783 msgid "B<--fuse-help>"
22784 msgstr ""
22785
22786 # type: textblock
22787 #: ../fuse/guestmount.pod:92
22788 msgid "Display help on special FUSE options (see I<-o> below)."
22789 msgstr ""
22790
22791 # type: textblock
22792 #: ../fuse/guestmount.pod:96
22793 msgid "Display brief help and exit."
22794 msgstr ""
22795
22796 # type: =item
22797 #: ../fuse/guestmount.pod:98
22798 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22799 msgstr ""
22800
22801 # type: textblock
22802 #: ../fuse/guestmount.pod:100
22803 msgid ""
22804 "Mount the named partition or logical volume on the given mountpoint B<in the "
22805 "guest> (this has nothing to do with mountpoints in the host)."
22806 msgstr ""
22807
22808 # type: textblock
22809 #: ../fuse/guestmount.pod:103
22810 msgid ""
22811 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22812 "something on C</>."
22813 msgstr ""
22814
22815 # type: textblock
22816 #: ../fuse/guestmount.pod:108
22817 msgid ""
22818 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22819 "unmounted.  If you specify this option, then we don't attempt to sync the "
22820 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22821 msgstr ""
22822
22823 # type: =item
22824 #: ../fuse/guestmount.pod:113
22825 msgid "B<-o option> | B<--option option>"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../fuse/guestmount.pod:115
22830 msgid "Pass extra options to FUSE."
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fuse/guestmount.pod:117
22835 msgid ""
22836 "To get a list of all the extra options supported by FUSE, use the command "
22837 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22838 "of them are a good idea."
22839 msgstr ""
22840
22841 # type: verbatim
22842 #: ../fuse/guestmount.pod:121
22843 #, no-wrap
22844 msgid ""
22845 " guestmount --fuse-help\n"
22846 "\n"
22847 msgstr ""
22848
22849 # type: textblock
22850 #: ../fuse/guestmount.pod:123
22851 msgid "Some potentially useful FUSE options:"
22852 msgstr ""
22853
22854 # type: =item
22855 #: ../fuse/guestmount.pod:127
22856 msgid "B<-o allow_other>"
22857 msgstr ""
22858
22859 # type: textblock
22860 #: ../fuse/guestmount.pod:129
22861 msgid "Allow other users to see the filesystem."
22862 msgstr ""
22863
22864 # type: =item
22865 #: ../fuse/guestmount.pod:131
22866 msgid "B<-o attr_timeout=N>"
22867 msgstr ""
22868
22869 # type: textblock
22870 #: ../fuse/guestmount.pod:133
22871 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22872 msgstr ""
22873
22874 # type: =item
22875 #: ../fuse/guestmount.pod:135
22876 msgid "B<-o kernel_cache>"
22877 msgstr ""
22878
22879 # type: textblock
22880 #: ../fuse/guestmount.pod:137
22881 msgid ""
22882 "Allow the kernel to cache files (reduces the number of reads that have to go "
22883 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22884 "afford the extra memory usage."
22885 msgstr ""
22886
22887 # type: =item
22888 #: ../fuse/guestmount.pod:141
22889 msgid "B<-o uid=N> B<-o gid=N>"
22890 msgstr ""
22891
22892 # type: textblock
22893 #: ../fuse/guestmount.pod:143
22894 msgid ""
22895 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22896 "the chosen values."
22897 msgstr ""
22898
22899 # type: textblock
22900 #: ../fuse/guestmount.pod:150
22901 msgid ""
22902 "Add devices and mount everything read-only.  Also disallow writes and make "
22903 "the disk appear read-only to FUSE."
22904 msgstr ""
22905
22906 # type: textblock
22907 #: ../fuse/guestmount.pod:153
22908 msgid ""
22909 "This is highly recommended if you are not going to edit the guest disk.  If "
22910 "the guest is running and this option is I<not> supplied, then there is a "
22911 "strong risk of disk corruption in the guest.  We try to prevent this from "
22912 "happening, but it is not always possible."
22913 msgstr ""
22914
22915 # type: textblock
22916 #: ../fuse/guestmount.pod:160
22917 msgid "Enable SELinux support for the guest."
22918 msgstr ""
22919
22920 # type: =item
22921 #: ../fuse/guestmount.pod:162
22922 msgid "B<--trace>"
22923 msgstr ""
22924
22925 # type: textblock
22926 #: ../fuse/guestmount.pod:164
22927 msgid "Trace libguestfs calls (to stderr)."
22928 msgstr ""
22929
22930 # type: textblock
22931 #: ../fuse/guestmount.pod:166
22932 msgid "This also stops the daemon from forking into the background."
22933 msgstr ""
22934
22935 # type: textblock
22936 #: ../fuse/guestmount.pod:170
22937 msgid "Enable verbose messages from underlying libguestfs."
22938 msgstr ""
22939
22940 # type: textblock
22941 #: ../fuse/guestmount.pod:174
22942 msgid "Display the program version and exit."
22943 msgstr ""
22944
22945 # type: textblock
22946 #: ../fuse/guestmount.pod:180
22947 msgid ""
22948 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22949 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22950 "L<http://fuse.sf.net/>."
22951 msgstr ""
22952
22953 # type: textblock
22954 #: ../inspector/virt-inspector.pl:40
22955 msgid ""
22956 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22957 "applications, etc. in a virtual machine"
22958 msgstr ""
22959
22960 # type: verbatim
22961 #: ../inspector/virt-inspector.pl:44
22962 #, no-wrap
22963 msgid ""
22964 " virt-inspector [--connect URI] domname\n"
22965 "\n"
22966 msgstr ""
22967
22968 # type: verbatim
22969 #: ../inspector/virt-inspector.pl:46
22970 #, no-wrap
22971 msgid ""
22972 " virt-inspector guest.img [guest.img ...]\n"
22973 "\n"
22974 msgstr ""
22975
22976 # type: textblock
22977 #: ../inspector/virt-inspector.pl:50
22978 msgid ""
22979 "B<virt-inspector> examines a virtual machine and tries to determine the "
22980 "version of the OS, the kernel version, what drivers are installed, whether "
22981 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22982 "applications are installed and more."
22983 msgstr ""
22984
22985 # type: textblock
22986 #: ../inspector/virt-inspector.pl:55
22987 msgid ""
22988 "Virt-inspector can produce output in several formats, including a readable "
22989 "text report, and XML for feeding into other programs."
22990 msgstr ""
22991
22992 # type: textblock
22993 #: ../inspector/virt-inspector.pl:58
22994 msgid ""
22995 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22996 "libvirt domain (see: C<virsh list --all>)."
22997 msgstr ""
22998
22999 # type: textblock
23000 #: ../inspector/virt-inspector.pl:61
23001 msgid ""
23002 "You can also run virt-inspector directly on disk images from a single "
23003 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23004 "has several block devices, in which case you should list them one after "
23005 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23006 "to the guest's C</dev/sdb> and so on."
23007 msgstr ""
23008
23009 # type: textblock
23010 #: ../inspector/virt-inspector.pl:67
23011 msgid ""
23012 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23013 "inspect several virtual machines, you have to run virt-inspector several "
23014 "times (for example, from a shell script for-loop)."
23015 msgstr ""
23016
23017 # type: textblock
23018 #: ../inspector/virt-inspector.pl:72
23019 msgid ""
23020 "Because virt-inspector needs direct access to guest images, it won't "
23021 "normally work over remote libvirt connections."
23022 msgstr ""
23023
23024 # type: textblock
23025 #: ../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
23026 msgid "Display brief help."
23027 msgstr ""
23028
23029 # type: =item
23030 #: ../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:249 ../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
23031 msgid "B<--version>"
23032 msgstr ""
23033
23034 # type: textblock
23035 #: ../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:251 ../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
23036 msgid "Display version number and exit."
23037 msgstr ""
23038
23039 # type: =item
23040 #: ../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
23041 msgid "B<--connect URI> | B<-c URI>"
23042 msgstr ""
23043
23044 # type: textblock
23045 #: ../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
23046 msgid ""
23047 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
23048 "to the default libvirt hypervisor."
23049 msgstr ""
23050
23051 # type: textblock
23052 #: ../inspector/virt-inspector.pl:104
23053 msgid ""
23054 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23055 "you specify guest block devices directly, then libvirt is not used at all."
23056 msgstr ""
23057
23058 # type: textblock
23059 #: ../inspector/virt-inspector.pl:114
23060 msgid ""
23061 "The following options select the output format.  Use only one of them.  The "
23062 "default is a readable text report."
23063 msgstr ""
23064
23065 # type: =item
23066 #: ../inspector/virt-inspector.pl:119
23067 msgid "B<--text> (default)"
23068 msgstr ""
23069
23070 # type: textblock
23071 #: ../inspector/virt-inspector.pl:121
23072 msgid "Plain text report."
23073 msgstr ""
23074
23075 # type: =item
23076 #: ../inspector/virt-inspector.pl:123
23077 msgid "B<--none>"
23078 msgstr ""
23079
23080 # type: textblock
23081 #: ../inspector/virt-inspector.pl:125
23082 msgid "Produce no output at all."
23083 msgstr ""
23084
23085 # type: =item
23086 #: ../inspector/virt-inspector.pl:127
23087 msgid "B<--xml>"
23088 msgstr ""
23089
23090 # type: textblock
23091 #: ../inspector/virt-inspector.pl:129
23092 msgid ""
23093 "If you select I<--xml> then you get XML output which can be fed to other "
23094 "programs."
23095 msgstr ""
23096
23097 # type: =item
23098 #: ../inspector/virt-inspector.pl:132
23099 msgid "B<--yaml>"
23100 msgstr ""
23101
23102 # type: textblock
23103 #: ../inspector/virt-inspector.pl:134
23104 msgid ""
23105 "If you select I<--yaml> then you get YAML output which can be fed to other "
23106 "programs."
23107 msgstr ""
23108
23109 # type: =item
23110 #: ../inspector/virt-inspector.pl:137
23111 msgid "B<--perl>"
23112 msgstr ""
23113
23114 # type: textblock
23115 #: ../inspector/virt-inspector.pl:139
23116 msgid ""
23117 "If you select I<--perl> then you get Perl structures output which can be "
23118 "used directly in another Perl program."
23119 msgstr ""
23120
23121 # type: =item
23122 #: ../inspector/virt-inspector.pl:142
23123 msgid "B<--fish>"
23124 msgstr ""
23125
23126 # type: =item
23127 #: ../inspector/virt-inspector.pl:144
23128 msgid "B<--ro-fish>"
23129 msgstr ""
23130
23131 # type: textblock
23132 #: ../inspector/virt-inspector.pl:146
23133 msgid ""
23134 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
23135 "will automatically mount up the filesystems on the correct mount points.  "
23136 "Try this for example:"
23137 msgstr ""
23138
23139 # type: verbatim
23140 #: ../inspector/virt-inspector.pl:150
23141 #, no-wrap
23142 msgid ""
23143 " guestfish $(virt-inspector --fish guest.img)\n"
23144 "\n"
23145 msgstr ""
23146
23147 # type: textblock
23148 #: ../inspector/virt-inspector.pl:152
23149 msgid ""
23150 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
23151 "that the filesystems are mounted read-only."
23152 msgstr ""
23153
23154 # type: =item
23155 #: ../inspector/virt-inspector.pl:155
23156 msgid "B<--query>"
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../inspector/virt-inspector.pl:157
23161 msgid ""
23162 "In \"query mode\" we answer common questions about the guest, such as "
23163 "whether it is fullvirt or needs a Xen hypervisor to run."
23164 msgstr ""
23165
23166 # type: textblock
23167 #: ../inspector/virt-inspector.pl:160
23168 msgid "See section I<QUERY MODE> below."
23169 msgstr ""
23170
23171 # type: =item
23172 #: ../inspector/virt-inspector.pl:166
23173 msgid "B<--windows-registry>"
23174 msgstr ""
23175
23176 # type: textblock
23177 #: ../inspector/virt-inspector.pl:168
23178 msgid ""
23179 "This flag is ignored for compatibility with earlier releases of the "
23180 "software."
23181 msgstr ""
23182
23183 # type: textblock
23184 #: ../inspector/virt-inspector.pl:171
23185 msgid ""
23186 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
23187 "information out of the Registry for any Windows guest."
23188 msgstr ""
23189
23190 # type: =head1
23191 #: ../inspector/virt-inspector.pl:218
23192 msgid "OUTPUT FORMAT"
23193 msgstr ""
23194
23195 # type: verbatim
23196 #: ../inspector/virt-inspector.pl:220
23197 #, no-wrap
23198 msgid ""
23199 " Operating system(s)\n"
23200 " -------------------\n"
23201 " Linux (distro + version)\n"
23202 " Windows (version)\n"
23203 "    |\n"
23204 "    |\n"
23205 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
23206 "         -----------            --------------     ----------------\n"
23207 "         mount point => device  List of apps       Extra information\n"
23208 "         mount point => device  and versions       about kernel(s)\n"
23209 "              ...                                  and drivers\n"
23210 "         swap => swap device\n"
23211 "         (plus lots of extra information\n"
23212 "         about each filesystem)\n"
23213 "\n"
23214 msgstr ""
23215
23216 # type: textblock
23217 #: ../inspector/virt-inspector.pl:235
23218 msgid "The output of virt-inspector is a complex two-level data structure."
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../inspector/virt-inspector.pl:237
23223 msgid ""
23224 "At the top level is a list of the operating systems installed on the guest.  "
23225 "(For the vast majority of guests, only a single OS is installed.)  The data "
23226 "returned for the OS includes the name (Linux, Windows), the distribution and "
23227 "version."
23228 msgstr ""
23229
23230 # type: textblock
23231 #: ../inspector/virt-inspector.pl:242
23232 msgid "The diagram above shows what we return for each OS."
23233 msgstr ""
23234
23235 # type: textblock
23236 #: ../inspector/virt-inspector.pl:244
23237 msgid ""
23238 "With the I<--xml> option the output is mapped into an XML document.  There "
23239 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23240 "normally ships with virt-inspector, or can be found in the source."
23241 msgstr ""
23242
23243 # type: textblock
23244 #: ../inspector/virt-inspector.pl:249
23245 msgid ""
23246 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23247 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23248 "and inspect the guest with everything mounted in the right place.  For "
23249 "example:"
23250 msgstr ""
23251
23252 # type: verbatim
23253 #: ../inspector/virt-inspector.pl:254
23254 #, no-wrap
23255 msgid ""
23256 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23257 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: =head1
23262 #: ../inspector/virt-inspector.pl:589
23263 msgid "QUERY MODE"
23264 msgstr ""
23265
23266 # type: textblock
23267 #: ../inspector/virt-inspector.pl:591
23268 msgid ""
23269 "When you use C<virt-inspector --query>, the output is a series of lines of "
23270 "the form:"
23271 msgstr ""
23272
23273 # type: verbatim
23274 #: ../inspector/virt-inspector.pl:594
23275 #, no-wrap
23276 msgid ""
23277 " windows=no\n"
23278 " linux=yes\n"
23279 " fullvirt=yes\n"
23280 " xen_pv_drivers=no\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: textblock
23285 #: ../inspector/virt-inspector.pl:599
23286 msgid ""
23287 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23288 "if we could not determine the answer at all)."
23289 msgstr ""
23290
23291 # type: textblock
23292 #: ../inspector/virt-inspector.pl:602
23293 msgid ""
23294 "If the guest is multiboot, you can get apparently conflicting answers "
23295 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
23296 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
23297 "both things, although it might require operator intervention such as "
23298 "selecting a boot option when the guest is booting."
23299 msgstr ""
23300
23301 # type: textblock
23302 #: ../inspector/virt-inspector.pl:609
23303 msgid "This section describes the full range of answers possible."
23304 msgstr ""
23305
23306 # type: =item
23307 #: ../inspector/virt-inspector.pl:630
23308 msgid "windows=(yes|no)"
23309 msgstr ""
23310
23311 # type: textblock
23312 #: ../inspector/virt-inspector.pl:632
23313 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23314 msgstr ""
23315
23316 # type: =item
23317 #: ../inspector/virt-inspector.pl:645
23318 msgid "linux=(yes|no)"
23319 msgstr ""
23320
23321 # type: textblock
23322 #: ../inspector/virt-inspector.pl:647
23323 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23324 msgstr ""
23325
23326 # type: =item
23327 #: ../inspector/virt-inspector.pl:660
23328 msgid "rhel=(yes|no)"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../inspector/virt-inspector.pl:662
23333 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23334 msgstr ""
23335
23336 # type: =item
23337 #: ../inspector/virt-inspector.pl:676
23338 msgid "fedora=(yes|no)"
23339 msgstr ""
23340
23341 # type: textblock
23342 #: ../inspector/virt-inspector.pl:678
23343 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23344 msgstr ""
23345
23346 # type: =item
23347 #: ../inspector/virt-inspector.pl:691
23348 msgid "debian=(yes|no)"
23349 msgstr ""
23350
23351 # type: textblock
23352 #: ../inspector/virt-inspector.pl:693
23353 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23354 msgstr ""
23355
23356 # type: =item
23357 #: ../inspector/virt-inspector.pl:706
23358 msgid "fullvirt=(yes|no)"
23359 msgstr ""
23360
23361 # type: textblock
23362 #: ../inspector/virt-inspector.pl:708
23363 msgid ""
23364 "Answer C<yes> if there is at least one operating system kernel installed in "
23365 "the guest which runs fully virtualized.  Such a guest would require a "
23366 "hypervisor which supports full system virtualization."
23367 msgstr ""
23368
23369 # type: =item
23370 #: ../inspector/virt-inspector.pl:731
23371 msgid "xen_domU_kernel=(yes|no)"
23372 msgstr ""
23373
23374 # type: textblock
23375 #: ../inspector/virt-inspector.pl:733
23376 msgid ""
23377 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23378 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23379 msgstr ""
23380
23381 # type: =item
23382 #: ../inspector/virt-inspector.pl:753
23383 msgid "xen_pv_drivers=(yes|no)"
23384 msgstr ""
23385
23386 # type: textblock
23387 #: ../inspector/virt-inspector.pl:755
23388 msgid ""
23389 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23390 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23391 "have been installed by the administrator for performance reasons)."
23392 msgstr ""
23393
23394 # type: =item
23395 #: ../inspector/virt-inspector.pl:777
23396 msgid "virtio_drivers=(yes|no)"
23397 msgstr ""
23398
23399 # type: textblock
23400 #: ../inspector/virt-inspector.pl:779
23401 msgid ""
23402 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23403 "Virtio drivers are commonly used to improve the performance of KVM."
23404 msgstr ""
23405
23406 # type: =item
23407 #: ../inspector/virt-inspector.pl:800
23408 msgid "userspace_arch=(x86_64|...)"
23409 msgstr ""
23410
23411 # type: textblock
23412 #: ../inspector/virt-inspector.pl:802
23413 msgid "Print the architecture of userspace."
23414 msgstr ""
23415
23416 # type: textblock
23417 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
23418 msgid "NB. For multi-boot VMs this can print several lines."
23419 msgstr ""
23420
23421 # type: =item
23422 #: ../inspector/virt-inspector.pl:821
23423 msgid "kernel_arch=(x86_64|...)"
23424 msgstr ""
23425
23426 # type: textblock
23427 #: ../inspector/virt-inspector.pl:823
23428 msgid "Print the architecture of the kernel."
23429 msgstr ""
23430
23431 # type: textblock
23432 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:538
23433 msgid ""
23434 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23435 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23436 msgstr ""
23437
23438 # type: textblock
23439 #: ../inspector/virt-inspector.pl:857 ../tools/virt-edit.pl:339 ../tools/virt-win-reg.pl:489 ../tools/virt-df.pl:547 ../tools/virt-ls.pl:223 ../tools/virt-resize.pl:1409 ../tools/virt-list-filesystems.pl:205 ../tools/virt-cat.pl:175 ../tools/virt-tar.pl:270 ../tools/virt-rescue.pl:243 ../tools/virt-make-fs.pl:554 ../tools/virt-list-partitions.pl:242
23440 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23441 msgstr ""
23442
23443 # type: textblock
23444 #: ../inspector/virt-inspector.pl:859
23445 msgid "Matthew Booth L<mbooth@redhat.com>"
23446 msgstr ""
23447
23448 # type: textblock
23449 #: ../inspector/virt-inspector.pl:863 ../tools/virt-ls.pl:227 ../tools/virt-list-filesystems.pl:209 ../tools/virt-cat.pl:179 ../tools/virt-tar.pl:274
23450 msgid "Copyright (C) 2009 Red Hat Inc."
23451 msgstr ""
23452
23453 # type: textblock
23454 #: ../tools/virt-edit.pl:35
23455 msgid "virt-edit - Edit a file in a virtual machine"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #: ../tools/virt-edit.pl:39
23460 #, no-wrap
23461 msgid ""
23462 " virt-edit [--options] domname file\n"
23463 "\n"
23464 msgstr ""
23465
23466 # type: verbatim
23467 #: ../tools/virt-edit.pl:41
23468 #, no-wrap
23469 msgid ""
23470 " virt-edit [--options] disk.img [disk.img ...] file\n"
23471 "\n"
23472 msgstr ""
23473
23474 # type: verbatim
23475 #: ../tools/virt-edit.pl:43
23476 #, no-wrap
23477 msgid ""
23478 " virt-edit [domname|disk.img] file -e 'expr'\n"
23479 "\n"
23480 msgstr ""
23481
23482 # type: textblock
23483 #: ../tools/virt-edit.pl:47
23484 msgid ""
23485 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23486 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23487 "doing this, but doesn't catch all cases."
23488 msgstr ""
23489
23490 # type: textblock
23491 #: ../tools/virt-edit.pl:53
23492 msgid ""
23493 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23494 "the named virtual machine (or disk image)."
23495 msgstr ""
23496
23497 # type: textblock
23498 #: ../tools/virt-edit.pl:56
23499 msgid ""
23500 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23501 "you should look at the L<guestfish(1)> tool."
23502 msgstr ""
23503
23504 # type: textblock
23505 #: ../tools/virt-edit.pl:61
23506 msgid "Edit the named files interactively:"
23507 msgstr ""
23508
23509 # type: verbatim
23510 #: ../tools/virt-edit.pl:63
23511 #, no-wrap
23512 msgid ""
23513 " virt-edit mydomain /boot/grub/grub.conf\n"
23514 "\n"
23515 msgstr ""
23516
23517 # type: verbatim
23518 #: ../tools/virt-edit.pl:65
23519 #, no-wrap
23520 msgid ""
23521 " virt-edit mydomain /etc/passwd\n"
23522 "\n"
23523 msgstr ""
23524
23525 # type: textblock
23526 #: ../tools/virt-edit.pl:67
23527 msgid ""
23528 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23529 "below).  To change the init default level to 5:"
23530 msgstr ""
23531
23532 # type: verbatim
23533 #: ../tools/virt-edit.pl:71
23534 #, no-wrap
23535 msgid ""
23536 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23537 "\n"
23538 msgstr ""
23539
23540 # type: =item
23541 #: ../tools/virt-edit.pl:97
23542 msgid "B<--backup extension> | B<-b extension>"
23543 msgstr ""
23544
23545 # type: textblock
23546 #: ../tools/virt-edit.pl:99
23547 msgid ""
23548 "Create a backup of the original file I<in the guest disk image>.  The backup "
23549 "has the original filename with C<extension> added."
23550 msgstr ""
23551
23552 # type: textblock
23553 #: ../tools/virt-edit.pl:102
23554 msgid ""
23555 "Usually the first character of C<extension> would be a dot C<.> so you would "
23556 "write:"
23557 msgstr ""
23558
23559 # type: verbatim
23560 #: ../tools/virt-edit.pl:105
23561 #, no-wrap
23562 msgid ""
23563 " virt-edit -b .orig [etc]\n"
23564 "\n"
23565 msgstr ""
23566
23567 # type: textblock
23568 #: ../tools/virt-edit.pl:107
23569 msgid "By default, no backup file is made."
23570 msgstr ""
23571
23572 # type: textblock
23573 #: ../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
23574 msgid ""
23575 "If you specify guest block devices directly, then libvirt is not used at "
23576 "all."
23577 msgstr ""
23578
23579 # type: =item
23580 #: ../tools/virt-edit.pl:125
23581 msgid "B<--expr EXPR> | B<-e EXPR>"
23582 msgstr ""
23583
23584 # type: textblock
23585 #: ../tools/virt-edit.pl:127
23586 msgid ""
23587 "Instead of launching the external editor, non-interactively apply the Perl "
23588 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23589 "EDITING> below."
23590 msgstr ""
23591
23592 # type: textblock
23593 #: ../tools/virt-edit.pl:131
23594 msgid ""
23595 "Be careful to properly quote the expression to prevent it from being altered "
23596 "by the shell."
23597 msgstr ""
23598
23599 # type: =head1
23600 #: ../tools/virt-edit.pl:250
23601 msgid "NON-INTERACTIVE EDITING"
23602 msgstr ""
23603
23604 # type: textblock
23605 #: ../tools/virt-edit.pl:252
23606 msgid ""
23607 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23608 "administrator can interactively edit the file."
23609 msgstr ""
23610
23611 # type: textblock
23612 #: ../tools/virt-edit.pl:255
23613 msgid ""
23614 "There are two ways also to use C<virt-edit> from scripts in order to make "
23615 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23616 "like this, it's less error-prone to write scripts directly using the "
23617 "libguestfs API and Augeas for configuration file editing.)"
23618 msgstr ""
23619
23620 # type: textblock
23621 #: ../tools/virt-edit.pl:261
23622 msgid ""
23623 "The first method is to temporarily set C<$EDITOR> to any script or program "
23624 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23625 "update C<tmpfile> in place however it likes."
23626 msgstr ""
23627
23628 # type: textblock
23629 #: ../tools/virt-edit.pl:265
23630 msgid ""
23631 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23632 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23633 "instances of C<foo> with C<bar> in a file:"
23634 msgstr ""
23635
23636 # type: verbatim
23637 #: ../tools/virt-edit.pl:269
23638 #, no-wrap
23639 msgid ""
23640 " virt-edit domname filename -e 's/foo/bar/'\n"
23641 "\n"
23642 msgstr ""
23643
23644 # type: textblock
23645 #: ../tools/virt-edit.pl:271
23646 msgid ""
23647 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23648 "For example to delete root's password you could do:"
23649 msgstr ""
23650
23651 # type: verbatim
23652 #: ../tools/virt-edit.pl:274
23653 #, no-wrap
23654 msgid ""
23655 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23656 "\n"
23657 msgstr ""
23658
23659 # type: textblock
23660 #: ../tools/virt-edit.pl:276
23661 msgid ""
23662 "What really happens is that the snippet is evaluated as a Perl expression "
23663 "for each line of the file.  The line, including the final C<\\n>, is passed "
23664 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23665 msgstr ""
23666
23667 # type: textblock
23668 #: ../tools/virt-edit.pl:281
23669 msgid ""
23670 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23671 "C<apache> user account from the password file you can do:"
23672 msgstr ""
23673
23674 # type: verbatim
23675 #: ../tools/virt-edit.pl:284
23676 #, no-wrap
23677 msgid ""
23678 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23679 "\n"
23680 msgstr ""
23681
23682 # type: textblock
23683 #: ../tools/virt-edit.pl:286
23684 msgid ""
23685 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23686 "the end of the file is rather difficult this way since there is no concept "
23687 "of \"last line of the file\" - your expression just doesn't get called "
23688 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23689 "want to do this."
23690 msgstr ""
23691
23692 # type: textblock
23693 #: ../tools/virt-edit.pl:292
23694 msgid ""
23695 "The variable C<$lineno> contains the current line number.  As is "
23696 "traditional, the first line in the file is number C<1>."
23697 msgstr ""
23698
23699 # type: textblock
23700 #: ../tools/virt-edit.pl:295
23701 msgid ""
23702 "The return value from the expression is ignored, but the expression may call "
23703 "C<die> in order to abort the whole program, leaving the original file "
23704 "untouched."
23705 msgstr ""
23706
23707 # type: textblock
23708 #: ../tools/virt-edit.pl:299
23709 msgid ""
23710 "Remember when matching the end of a line that C<$_> may contain the final "
23711 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23712 "newline then neither of these.  Thus to match or substitute some text at the "
23713 "end of a line, use this regular expression:"
23714 msgstr ""
23715
23716 # type: verbatim
23717 #: ../tools/virt-edit.pl:304
23718 #, no-wrap
23719 msgid ""
23720 " /some text(\\r?\\n)?$/\n"
23721 "\n"
23722 msgstr ""
23723
23724 # type: textblock
23725 #: ../tools/virt-edit.pl:306
23726 msgid ""
23727 "Alternately, use the perl C<chomp> function, being careful not to chomp "
23728 "C<$_> itself (since that would remove all newlines from the file):"
23729 msgstr ""
23730
23731 # type: verbatim
23732 #: ../tools/virt-edit.pl:310
23733 #, no-wrap
23734 msgid ""
23735 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23736 "\n"
23737 msgstr ""
23738
23739 # type: =item
23740 #: ../tools/virt-edit.pl:316
23741 msgid "C<EDITOR>"
23742 msgstr ""
23743
23744 # type: textblock
23745 #: ../tools/virt-edit.pl:318
23746 msgid ""
23747 "If set, this string is used as the editor.  It may contain arguments, "
23748 "eg. C<\"emacs -nw\">"
23749 msgstr ""
23750
23751 # type: textblock
23752 #: ../tools/virt-edit.pl:321
23753 msgid "If not set, C<vi> is used."
23754 msgstr ""
23755
23756 # type: textblock
23757 #: ../tools/virt-edit.pl:327
23758 msgid ""
23759 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
23760 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
23761 "L<perl(1)>, L<perlre(1)>."
23762 msgstr ""
23763
23764 # type: =head1
23765 #: ../tools/virt-edit.pl:337 ../tools/virt-win-reg.pl:487 ../tools/virt-df.pl:545 ../tools/virt-ls.pl:221 ../tools/virt-resize.pl:1407 ../tools/virt-list-filesystems.pl:203 ../tools/virt-cat.pl:173 ../tools/virt-tar.pl:268 ../tools/virt-rescue.pl:241 ../tools/virt-make-fs.pl:552 ../tools/virt-list-partitions.pl:240
23766 msgid "AUTHOR"
23767 msgstr ""
23768
23769 # type: textblock
23770 #: ../tools/virt-edit.pl:343 ../tools/virt-df.pl:551 ../tools/virt-rescue.pl:247 ../tools/virt-list-partitions.pl:246
23771 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23772 msgstr ""
23773
23774 # type: textblock
23775 #: ../tools/virt-win-reg.pl:38
23776 msgid ""
23777 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
23778 "guest"
23779 msgstr ""
23780
23781 # type: verbatim
23782 #: ../tools/virt-win-reg.pl:42
23783 #, no-wrap
23784 msgid ""
23785 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
23786 "\n"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #: ../tools/virt-win-reg.pl:44
23791 #, no-wrap
23792 msgid ""
23793 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
23794 "\n"
23795 msgstr ""
23796
23797 # type: verbatim
23798 #: ../tools/virt-win-reg.pl:46
23799 #, no-wrap
23800 msgid ""
23801 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
23802 "\n"
23803 msgstr ""
23804
23805 # type: verbatim
23806 #: ../tools/virt-win-reg.pl:48
23807 #, no-wrap
23808 msgid ""
23809 " virt-win-reg --merge domname [input.reg ...]\n"
23810 "\n"
23811 msgstr ""
23812
23813 # type: verbatim
23814 #: ../tools/virt-win-reg.pl:50
23815 #, no-wrap
23816 msgid ""
23817 " virt-win-reg [--options] disk.img ... # instead of domname\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: textblock
23822 #: ../tools/virt-win-reg.pl:54
23823 msgid ""
23824 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
23825 "virtual machines.  If you do this, you I<will> get irreversible disk "
23826 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
23827 "but doesn't catch all cases."
23828 msgstr ""
23829
23830 # type: textblock
23831 #: ../tools/virt-win-reg.pl:59
23832 msgid ""
23833 "Modifying the Windows Registry is an inherently risky operation.  The format "
23834 "is deliberately obscure and undocumented, and Registry changes can leave the "
23835 "system unbootable.  Therefore when using the C<--merge> option, make sure "
23836 "you have a reliable backup first."
23837 msgstr ""
23838
23839 # type: textblock
23840 #: ../tools/virt-win-reg.pl:66
23841 msgid ""
23842 "This program can export and merge Windows Registry entries from a Windows "
23843 "guest."
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../tools/virt-win-reg.pl:69
23848 msgid ""
23849 "The first parameter is the libvirt guest name or the raw disk image of a "
23850 "Windows guest."
23851 msgstr ""
23852
23853 # type: textblock
23854 #: ../tools/virt-win-reg.pl:72
23855 msgid ""
23856 "If C<--merge> is I<not> specified, then the chosen registry key is "
23857 "displayed/exported (recursively).  For example:"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #: ../tools/virt-win-reg.pl:75
23862 #, no-wrap
23863 msgid ""
23864 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
23865 "\n"
23866 msgstr ""
23867
23868 # type: textblock
23869 #: ../tools/virt-win-reg.pl:77
23870 msgid "You can also display single values from within registry keys, for example:"
23871 msgstr ""
23872
23873 # type: verbatim
23874 #: ../tools/virt-win-reg.pl:80
23875 #, no-wrap
23876 msgid ""
23877 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
23878 " $ virt-win-reg Windows7 $cvkey ProductName\n"
23879 " Windows 7 Enterprise\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../tools/virt-win-reg.pl:84
23885 msgid ""
23886 "With C<--merge>, you can merge a textual regedit file into the Windows "
23887 "Registry:"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #: ../tools/virt-win-reg.pl:87
23892 #, no-wrap
23893 msgid ""
23894 " $ virt-win-reg --merge Windows7 changes.reg\n"
23895 "\n"
23896 msgstr ""
23897
23898 # type: =head2
23899 #: ../tools/virt-win-reg.pl:89
23900 msgid "SUPPORTED SYSTEMS"
23901 msgstr ""
23902
23903 # type: textblock
23904 #: ../tools/virt-win-reg.pl:91
23905 msgid ""
23906 "The program currently supports Windows NT-derived guests starting with "
23907 "Windows XP through to at least Windows 7."
23908 msgstr ""
23909
23910 # type: textblock
23911 #: ../tools/virt-win-reg.pl:94
23912 msgid ""
23913 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
23914 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
23915 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
23916 msgstr ""
23917
23918 # type: textblock
23919 #: ../tools/virt-win-reg.pl:98
23920 msgid ""
23921 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
23922 "C<HKEY_USERS>."
23923 msgstr ""
23924
23925 # type: textblock
23926 #: ../tools/virt-win-reg.pl:101
23927 msgid ""
23928 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
23929 "time."
23930 msgstr ""
23931
23932 # type: =head2
23933 #: ../tools/virt-win-reg.pl:104
23934 msgid "NOTE"
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../tools/virt-win-reg.pl:106
23939 msgid ""
23940 "This program is only meant for simple access to the registry.  If you want "
23941 "to do complicated things with the registry, we suggest you download the "
23942 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
23943 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
23944 "L<hivexregedit(1)>."
23945 msgstr ""
23946
23947 # type: =head2
23948 #: ../tools/virt-win-reg.pl:112
23949 msgid "ENCODING"
23950 msgstr ""
23951
23952 # type: textblock
23953 #: ../tools/virt-win-reg.pl:114
23954 msgid ""
23955 "C<virt-win-reg> expects that regedit files have already been reencoded in "
23956 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
23957 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
23958 "with Windows-style line endings, you may need to reencode the whole file "
23959 "before or after processing."
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../tools/virt-win-reg.pl:120
23964 msgid ""
23965 "To reencode a file from Windows format to Linux (before processing it with "
23966 "the C<--merge> option), you would do something like this:"
23967 msgstr ""
23968
23969 # type: verbatim
23970 #: ../tools/virt-win-reg.pl:123
23971 #, no-wrap
23972 msgid ""
23973 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
23974 "\n"
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../tools/virt-win-reg.pl:125
23979 msgid ""
23980 "To go in the opposite direction, after exporting and before sending the file "
23981 "to a Windows user, do something like this:"
23982 msgstr ""
23983
23984 # type: verbatim
23985 #: ../tools/virt-win-reg.pl:128
23986 #, no-wrap
23987 msgid ""
23988 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
23989 "\n"
23990 msgstr ""
23991
23992 # type: textblock
23993 #: ../tools/virt-win-reg.pl:130
23994 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
23995 msgstr ""
23996
23997 # type: textblock
23998 #: ../tools/virt-win-reg.pl:132
23999 msgid ""
24000 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24001 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
24002 "Windows-style (CRLF) line endings, like this:"
24003 msgstr ""
24004
24005 # type: verbatim
24006 #: ../tools/virt-win-reg.pl:136
24007 #, no-wrap
24008 msgid ""
24009 " $ file software.reg\n"
24010 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24011 " with CRLF line terminators\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: textblock
24016 #: ../tools/virt-win-reg.pl:140
24017 msgid "This file would need conversion before you could C<--merge> it."
24018 msgstr ""
24019
24020 # type: =head2
24021 #: ../tools/virt-win-reg.pl:142
24022 msgid "SHELL QUOTING"
24023 msgstr ""
24024
24025 # type: textblock
24026 #: ../tools/virt-win-reg.pl:144
24027 msgid ""
24028 "Be careful when passing parameters containing C<\\> (backslash) in the "
24029 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24030 "(but not both) to protect them from the shell."
24031 msgstr ""
24032
24033 # type: textblock
24034 #: ../tools/virt-win-reg.pl:148
24035 msgid "Paths and value names are case-insensitive."
24036 msgstr ""
24037
24038 # type: =head2
24039 #: ../tools/virt-win-reg.pl:150
24040 msgid "CurrentControlSet etc."
24041 msgstr ""
24042
24043 # type: textblock
24044 #: ../tools/virt-win-reg.pl:152
24045 msgid ""
24046 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24047 "Registry at the level of the hive file, and therefore you cannot modify "
24048 "these."
24049 msgstr ""
24050
24051 # type: textblock
24052 #: ../tools/virt-win-reg.pl:156
24053 msgid ""
24054 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24055 "circumstances it might refer to another control set.  The way to find out is "
24056 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../tools/virt-win-reg.pl:160
24061 #, no-wrap
24062 msgid ""
24063 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24064 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24065 " \"Current\"=dword:00000001\n"
24066 " \"Default\"=dword:00000001\n"
24067 " \"Failed\"=dword:00000000\n"
24068 " \"LastKnownGood\"=dword:00000002\n"
24069 "\n"
24070 msgstr ""
24071
24072 # type: textblock
24073 #: ../tools/virt-win-reg.pl:167
24074 msgid "\"Default\" is the one which Windows will choose when it boots."
24075 msgstr ""
24076
24077 # type: textblock
24078 #: ../tools/virt-win-reg.pl:169
24079 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
24080 msgstr ""
24081
24082 # type: =item
24083 #: ../tools/virt-win-reg.pl:196 ../tools/virt-make-fs.pl:177
24084 msgid "B<--debug>"
24085 msgstr ""
24086
24087 # type: textblock
24088 #: ../tools/virt-win-reg.pl:198 ../tools/virt-resize.pl:477
24089 msgid "Enable debugging messages."
24090 msgstr ""
24091
24092 # type: =item
24093 #: ../tools/virt-win-reg.pl:216
24094 msgid "B<--merge>"
24095 msgstr ""
24096
24097 # type: textblock
24098 #: ../tools/virt-win-reg.pl:218
24099 msgid ""
24100 "In merge mode, this merges a textual regedit file into the Windows Registry "
24101 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24102 "displays or exports Registry entries instead."
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../tools/virt-win-reg.pl:222
24107 msgid ""
24108 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
24109 "result in disk corruption.  However exporting (without this flag)  is always "
24110 "safe."
24111 msgstr ""
24112
24113 # type: =item
24114 #: ../tools/virt-win-reg.pl:230
24115 msgid "B<--encoding> UTF-16LE|ASCII"
24116 msgstr ""
24117
24118 # type: textblock
24119 #: ../tools/virt-win-reg.pl:232
24120 msgid ""
24121 "When merging (only), you may need to specify the encoding for strings to be "
24122 "used in the hive file.  This is explained in detail in "
24123 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
24124 msgstr ""
24125
24126 # type: textblock
24127 #: ../tools/virt-win-reg.pl:236
24128 msgid ""
24129 "The default is to use UTF-16LE, which should work with recent versions of "
24130 "Windows."
24131 msgstr ""
24132
24133 # type: textblock
24134 #: ../tools/virt-win-reg.pl:463
24135 msgid ""
24136 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
24137 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24138 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
24139 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../tools/virt-win-reg.pl:478 ../tools/virt-make-fs.pl:543
24144 msgid ""
24145 "When reporting bugs, please enable debugging and capture the I<complete> "
24146 "output:"
24147 msgstr ""
24148
24149 # type: verbatim
24150 #: ../tools/virt-win-reg.pl:481
24151 #, no-wrap
24152 msgid ""
24153 " export LIBGUESTFS_DEBUG=1\n"
24154 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
24155 "\n"
24156 msgstr ""
24157
24158 # type: textblock
24159 #: ../tools/virt-win-reg.pl:484
24160 msgid ""
24161 "Attach /tmp/virt-win-reg.log to a new bug report at "
24162 "L<https://bugzilla.redhat.com/>"
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../tools/virt-win-reg.pl:493 ../tools/virt-resize.pl:1413 ../tools/virt-make-fs.pl:558
24167 msgid "Copyright (C) 2010 Red Hat Inc."
24168 msgstr ""
24169
24170 # type: textblock
24171 #: ../tools/virt-df.pl:36
24172 msgid "virt-df - Display free space on virtual filesystems"
24173 msgstr ""
24174
24175 # type: verbatim
24176 #: ../tools/virt-df.pl:40
24177 #, no-wrap
24178 msgid ""
24179 " virt-df [--options]\n"
24180 "\n"
24181 msgstr ""
24182
24183 # type: verbatim
24184 #: ../tools/virt-df.pl:42
24185 #, no-wrap
24186 msgid ""
24187 " virt-df [--options] domname\n"
24188 "\n"
24189 msgstr ""
24190
24191 # type: verbatim
24192 #: ../tools/virt-df.pl:44
24193 #, no-wrap
24194 msgid ""
24195 " virt-df [--options] disk.img [disk.img ...]\n"
24196 "\n"
24197 msgstr ""
24198
24199 # type: textblock
24200 #: ../tools/virt-df.pl:48
24201 msgid ""
24202 "C<virt-df> is a command line tool to display free space on virtual machine "
24203 "filesystems.  Unlike other tools, it doesn't just display the amount of "
24204 "space allocated to a virtual machine, but can look inside the virtual "
24205 "machine to see how much space is really being used."
24206 msgstr ""
24207
24208 # type: textblock
24209 #: ../tools/virt-df.pl:53
24210 msgid ""
24211 "It is like the L<df(1)> command, but for virtual machines, except that it "
24212 "also works for Windows virtual machines."
24213 msgstr ""
24214
24215 # type: textblock
24216 #: ../tools/virt-df.pl:56
24217 msgid ""
24218 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
24219 "of all active and inactive guests, and performs a C<df>-type operation on "
24220 "each one in turn, printing out the results."
24221 msgstr ""
24222
24223 # type: textblock
24224 #: ../tools/virt-df.pl:60
24225 msgid ""
24226 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
24227 "either the single named libvirt domain, or on the disk image(s) listed on "
24228 "the command line (which must all belong to a single VM).  In this mode (with "
24229 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
24230 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
24231 msgstr ""
24232
24233 # type: textblock
24234 #: ../tools/virt-df.pl:67
24235 msgid ""
24236 "Use the C<--csv> option to get a format which can be easily parsed by other "
24237 "programs.  Other options are mostly similar to standard C<df> options.  See "
24238 "below for the complete list."
24239 msgstr ""
24240
24241 # type: =item
24242 #: ../tools/virt-df.pl:107
24243 msgid "B<--csv>"
24244 msgstr ""
24245
24246 # type: textblock
24247 #: ../tools/virt-df.pl:109
24248 msgid ""
24249 "Write out the results in CSV format (comma-separated values).  This format "
24250 "can be imported easily into databases and spreadsheets, but read L</NOTE "
24251 "ABOUT CSV FORMAT> below."
24252 msgstr ""
24253
24254 # type: =item
24255 #: ../tools/virt-df.pl:117
24256 msgid "B<--human-readable> | B<-h>"
24257 msgstr ""
24258
24259 # type: textblock
24260 #: ../tools/virt-df.pl:119
24261 msgid "Print sizes in human-readable format."
24262 msgstr ""
24263
24264 # type: textblock
24265 #: ../tools/virt-df.pl:121
24266 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
24267 msgstr ""
24268
24269 # type: =item
24270 #: ../tools/virt-df.pl:127
24271 msgid "B<--inodes> | B<-i>"
24272 msgstr ""
24273
24274 # type: textblock
24275 #: ../tools/virt-df.pl:129
24276 msgid "Print inodes instead of blocks."
24277 msgstr ""
24278
24279 # type: =item
24280 #: ../tools/virt-df.pl:135
24281 msgid "B<--one-per-guest>"
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../tools/virt-df.pl:137
24286 msgid ""
24287 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
24288 "disks from several guests to a single libguestfs appliance."
24289 msgstr ""
24290
24291 # type: textblock
24292 #: ../tools/virt-df.pl:140
24293 msgid "You might use this option in the following circumstances:"
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../tools/virt-df.pl:146
24298 msgid ""
24299 "If you think an untrusted guest might actively try to exploit the libguestfs "
24300 "appliance kernel, then this prevents one guest from interfering with the "
24301 "stats printed for another guest."
24302 msgstr ""
24303
24304 # type: textblock
24305 #: ../tools/virt-df.pl:152
24306 msgid ""
24307 "If the kernel has a bug which stops it from accessing a filesystem in one "
24308 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
24309 "and report stats for further guests."
24310 msgstr ""
24311
24312 # type: =head1
24313 #: ../tools/virt-df.pl:512
24314 msgid "NOTE ABOUT CSV FORMAT"
24315 msgstr ""
24316
24317 # type: textblock
24318 #: ../tools/virt-df.pl:514
24319 msgid ""
24320 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
24321 "should be easy to parse, but it is definitely not easy to parse."
24322 msgstr ""
24323
24324 # type: textblock
24325 #: ../tools/virt-df.pl:517
24326 msgid ""
24327 "Myth: Just split fields at commas.  Reality: This does I<not> work "
24328 "reliably.  This example has two columns:"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../tools/virt-df.pl:520
24333 #, no-wrap
24334 msgid ""
24335 " \"foo,bar\",baz\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: textblock
24340 #: ../tools/virt-df.pl:522
24341 msgid ""
24342 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
24343 "reliably.  This example has one row:"
24344 msgstr ""
24345
24346 # type: verbatim
24347 #: ../tools/virt-df.pl:525
24348 #, no-wrap
24349 msgid ""
24350 " \"foo\n"
24351 " bar\",baz\n"
24352 "\n"
24353 msgstr ""
24354
24355 # type: textblock
24356 #: ../tools/virt-df.pl:528
24357 msgid ""
24358 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
24359 "packaged in major Linux distributions)."
24360 msgstr ""
24361
24362 # type: textblock
24363 #: ../tools/virt-df.pl:531
24364 msgid ""
24365 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
24366 "or Python's built-in csv library)."
24367 msgstr ""
24368
24369 # type: textblock
24370 #: ../tools/virt-df.pl:534
24371 msgid "Most spreadsheets and databases can import CSV directly."
24372 msgstr ""
24373
24374 # type: textblock
24375 #: ../tools/virt-ls.pl:35
24376 msgid "virt-ls - List files in a virtual machine"
24377 msgstr ""
24378
24379 # type: verbatim
24380 #: ../tools/virt-ls.pl:39
24381 #, no-wrap
24382 msgid ""
24383 " virt-ls [--options] domname directory\n"
24384 "\n"
24385 msgstr ""
24386
24387 # type: verbatim
24388 #: ../tools/virt-ls.pl:41
24389 #, no-wrap
24390 msgid ""
24391 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24392 "\n"
24393 msgstr ""
24394
24395 # type: textblock
24396 #: ../tools/virt-ls.pl:45
24397 msgid ""
24398 "C<virt-ls> is a command line tool to list the names of files in a directory "
24399 "inside a virtual machine or disk image."
24400 msgstr ""
24401
24402 # type: textblock
24403 #: ../tools/virt-ls.pl:48
24404 msgid ""
24405 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24406 "For more complex cases you should look at the L<guestfish(1)> tool."
24407 msgstr ""
24408
24409 # type: textblock
24410 #: ../tools/virt-ls.pl:52
24411 msgid ""
24412 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24413 "simple listing is like the ordinary L<ls(1)> command:"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #: ../tools/virt-ls.pl:55
24418 #, no-wrap
24419 msgid ""
24420 " $ virt-ls myguest /\n"
24421 " bin\n"
24422 " boot\n"
24423 " [etc.]\n"
24424 "\n"
24425 msgstr ""
24426
24427 # type: textblock
24428 #: ../tools/virt-ls.pl:60
24429 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24430 msgstr ""
24431
24432 # type: verbatim
24433 #: ../tools/virt-ls.pl:62
24434 #, no-wrap
24435 msgid ""
24436 " $ virt-ls -l myguest /\n"
24437 " total 204\n"
24438 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24439 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24440 " [etc.]\n"
24441 "\n"
24442 msgstr ""
24443
24444 # type: textblock
24445 #: ../tools/virt-ls.pl:68
24446 msgid ""
24447 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24448 "and directories recursively:"
24449 msgstr ""
24450
24451 # type: verbatim
24452 #: ../tools/virt-ls.pl:71
24453 #, no-wrap
24454 msgid ""
24455 " $ virt-ls -R myguest /tmp\n"
24456 " foo\n"
24457 " foo/bar\n"
24458 " [etc.]\n"
24459 "\n"
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../tools/virt-ls.pl:76
24464 msgid ""
24465 "You I<cannot> combine these options.  To do more complicated things, use "
24466 "L<guestfish(1)>."
24467 msgstr ""
24468
24469 # type: =item
24470 #: ../tools/virt-ls.pl:115 ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95
24471 msgid "B<-l> | B<--long>"
24472 msgstr ""
24473
24474 # type: =item
24475 #: ../tools/virt-ls.pl:117
24476 msgid "B<-R> | B<--recursive>"
24477 msgstr ""
24478
24479 # type: textblock
24480 #: ../tools/virt-ls.pl:119
24481 msgid ""
24482 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24483 "simple, flat list of the files in the named directory."
24484 msgstr ""
24485
24486 # type: textblock
24487 #: ../tools/virt-ls.pl:122
24488 msgid ""
24489 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24490 "like the plain C<ls -l> command)."
24491 msgstr ""
24492
24493 # type: textblock
24494 #: ../tools/virt-ls.pl:125
24495 msgid ""
24496 "C<virt-ls -R> produces a recursive list of files starting at the named "
24497 "directory.  See the documentation for the C<guestfs_find> command "
24498 "L<guestfs(3)> for precise details."
24499 msgstr ""
24500
24501 # type: textblock
24502 #: ../tools/virt-ls.pl:129
24503 msgid "You cannot combine these options."
24504 msgstr ""
24505
24506 # type: textblock
24507 #: ../tools/virt-ls.pl:212
24508 msgid ""
24509 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
24510 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
24511 "L<http://libguestfs.org/>."
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../tools/virt-resize.pl:42
24516 msgid "virt-resize - Resize a virtual machine disk"
24517 msgstr ""
24518
24519 # type: verbatim
24520 #: ../tools/virt-resize.pl:46
24521 #, no-wrap
24522 msgid ""
24523 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24524 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24525 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24526 "\n"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../tools/virt-resize.pl:52
24531 msgid ""
24532 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24533 "larger or smaller overall, and resizing or deleting any partitions contained "
24534 "within."
24535 msgstr ""
24536
24537 # type: textblock
24538 #: ../tools/virt-resize.pl:56
24539 msgid ""
24540 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24541 "not> be used on live virtual machines - for consistent results, shut the "
24542 "virtual machine down before resizing it."
24543 msgstr ""
24544
24545 # type: textblock
24546 #: ../tools/virt-resize.pl:60
24547 msgid ""
24548 "If you are not familiar with the associated tools: "
24549 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
24550 "we recommend you go and read those manual pages first."
24551 msgstr ""
24552
24553 # type: textblock
24554 #: ../tools/virt-resize.pl:68
24555 msgid ""
24556 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24557 "fill the extra 5GB of space."
24558 msgstr ""
24559
24560 # type: verbatim
24561 #: ../tools/virt-resize.pl:71
24562 #, no-wrap
24563 msgid ""
24564 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24565 " virt-list-partitions -lht olddisk\n"
24566 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24567 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24568 "\n"
24569 msgstr ""
24570
24571 # type: textblock
24572 #: ../tools/virt-resize.pl:76
24573 msgid ""
24574 "As above, but make the /boot partition 200MB bigger, while giving the "
24575 "remaining space to /dev/sda2:"
24576 msgstr ""
24577
24578 # type: verbatim
24579 #: ../tools/virt-resize.pl:79
24580 #, no-wrap
24581 msgid ""
24582 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24583 "\n"
24584 msgstr ""
24585
24586 # type: =head1
24587 #: ../tools/virt-resize.pl:81
24588 msgid "DETAILED USAGE"
24589 msgstr ""
24590
24591 # type: =head2
24592 #: ../tools/virt-resize.pl:83
24593 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24594 msgstr ""
24595
24596 # type: =item
24597 #: ../tools/virt-resize.pl:87
24598 msgid "1. Shut down the virtual machine"
24599 msgstr ""
24600
24601 # type: =item
24602 #: ../tools/virt-resize.pl:89
24603 msgid "2. Locate input disk image"
24604 msgstr ""
24605
24606 # type: textblock
24607 #: ../tools/virt-resize.pl:91
24608 msgid ""
24609 "Locate the input disk image (ie. the file or device on the host containing "
24610 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24611 "dumpxml> like this to find the disk image name:"
24612 msgstr ""
24613
24614 # type: verbatim
24615 #: ../tools/virt-resize.pl:95
24616 #, no-wrap
24617 msgid ""
24618 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24619 " Found 1 nodes:\n"
24620 " -- NODE --\n"
24621 " <source dev=\"/dev/vg/lv_guest\" />\n"
24622 "\n"
24623 msgstr ""
24624
24625 # type: =item
24626 #: ../tools/virt-resize.pl:100
24627 msgid "3. Look at current sizing"
24628 msgstr ""
24629
24630 # type: textblock
24631 #: ../tools/virt-resize.pl:102
24632 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #: ../tools/virt-resize.pl:105
24637 #, no-wrap
24638 msgid ""
24639 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24640 " /dev/sda1 ext3 101.9M\n"
24641 " /dev/sda2 pv 7.9G\n"
24642 " /dev/sda device 8.0G\n"
24643 "\n"
24644 msgstr ""
24645
24646 # type: textblock
24647 #: ../tools/virt-resize.pl:110
24648 msgid ""
24649 "(This example is a virtual machine with an 8 GB disk which we would like to "
24650 "expand up to 10 GB)."
24651 msgstr ""
24652
24653 # type: =item
24654 #: ../tools/virt-resize.pl:113
24655 msgid "4. Create output disk"
24656 msgstr ""
24657
24658 # type: textblock
24659 #: ../tools/virt-resize.pl:115
24660 msgid ""
24661 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24662 "to store the resized output disk."
24663 msgstr ""
24664
24665 # type: textblock
24666 #: ../tools/virt-resize.pl:118
24667 msgid "To store the resized disk image in a file, create a file of a suitable size:"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #: ../tools/virt-resize.pl:121
24672 #, no-wrap
24673 msgid ""
24674 " # rm -f outdisk\n"
24675 " # truncate -s 10G outdisk\n"
24676 "\n"
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../tools/virt-resize.pl:124
24681 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24682 msgstr ""
24683
24684 # type: verbatim
24685 #: ../tools/virt-resize.pl:126
24686 #, no-wrap
24687 msgid ""
24688 " # lvcreate -L 10G -n lv_name vg_name\n"
24689 "\n"
24690 msgstr ""
24691
24692 # type: textblock
24693 #: ../tools/virt-resize.pl:128
24694 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24695 msgstr ""
24696
24697 # type: verbatim
24698 #: ../tools/virt-resize.pl:130
24699 #, no-wrap
24700 msgid ""
24701 " # virsh pool-list\n"
24702 " # virsh vol-create-as poolname newvol 10G\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: =item
24707 #: ../tools/virt-resize.pl:133
24708 msgid "5. Resize"
24709 msgstr ""
24710
24711 # type: textblock
24712 #: ../tools/virt-resize.pl:135
24713 msgid ""
24714 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24715 "file) and the output disk.  The output disk is the one created in the "
24716 "previous step."
24717 msgstr ""
24718
24719 # type: verbatim
24720 #: ../tools/virt-resize.pl:139
24721 #, no-wrap
24722 msgid ""
24723 " # virt-resize indisk outdisk\n"
24724 "\n"
24725 msgstr ""
24726
24727 # type: textblock
24728 #: ../tools/virt-resize.pl:141
24729 msgid ""
24730 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24731 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24732 "larger, then an extra, empty partition is created at the end of the disk "
24733 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24734 "error."
24735 msgstr ""
24736
24737 # type: textblock
24738 #: ../tools/virt-resize.pl:147
24739 msgid ""
24740 "More realistically you'd want to expand existing partitions in the disk "
24741 "image by passing extra options (for the full list see the L</OPTIONS> "
24742 "section below)."
24743 msgstr ""
24744
24745 # type: textblock
24746 #: ../tools/virt-resize.pl:151
24747 msgid ""
24748 "L</--expand> is the most useful option.  It expands the named partition "
24749 "within the disk to fill any extra space:"
24750 msgstr ""
24751
24752 # type: verbatim
24753 #: ../tools/virt-resize.pl:154
24754 #, no-wrap
24755 msgid ""
24756 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24757 "\n"
24758 msgstr ""
24759
24760 # type: textblock
24761 #: ../tools/virt-resize.pl:156
24762 msgid ""
24763 "(In this case, an extra partition is I<not> created at the end of the disk, "
24764 "because there will be no unused space)."
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../tools/virt-resize.pl:159
24769 msgid ""
24770 "L</--resize> is the other commonly used option.  The following would "
24771 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24772 "rest of the available space:"
24773 msgstr ""
24774
24775 # type: verbatim
24776 #: ../tools/virt-resize.pl:163
24777 #, no-wrap
24778 msgid ""
24779 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24780 "     indisk outdisk\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: textblock
24785 #: ../tools/virt-resize.pl:166
24786 msgid ""
24787 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24788 "if virt-resize knows how, it will resize the contents, the equivalent of "
24789 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
24790 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
24791 "filesystems, so you would have to online resize them after booting the "
24792 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
24793 "just resizes the PV itself and leaves the user to resize any LVs inside that "
24794 "PV as desired."
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../tools/virt-resize.pl:175
24799 msgid "Other options are covered below."
24800 msgstr ""
24801
24802 # type: =item
24803 #: ../tools/virt-resize.pl:177
24804 msgid "6. Test"
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../tools/virt-resize.pl:179
24809 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24810 msgstr ""
24811
24812 # type: textblock
24813 #: ../tools/virt-resize.pl:181
24814 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24815 msgstr ""
24816
24817 # type: verbatim
24818 #: ../tools/virt-resize.pl:183
24819 #, no-wrap
24820 msgid ""
24821 " # virsh edit guestname\n"
24822 "\n"
24823 msgstr ""
24824
24825 # type: textblock
24826 #: ../tools/virt-resize.pl:185
24827 msgid ""
24828 "Change E<lt>source ...E<gt>, see "
24829 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../tools/virt-resize.pl:188
24834 msgid "Then start up the domain with the new, resized disk:"
24835 msgstr ""
24836
24837 # type: verbatim
24838 #: ../tools/virt-resize.pl:190
24839 #, no-wrap
24840 msgid ""
24841 " # virsh start guestname\n"
24842 "\n"
24843 msgstr ""
24844
24845 # type: textblock
24846 #: ../tools/virt-resize.pl:192
24847 msgid ""
24848 "and check that it still works.  See also the L</NOTES> section below for "
24849 "additional information."
24850 msgstr ""
24851
24852 # type: =item
24853 #: ../tools/virt-resize.pl:195
24854 msgid "7. Resize LVs etc inside the guest"
24855 msgstr ""
24856
24857 # type: textblock
24858 #: ../tools/virt-resize.pl:197
24859 msgid "(This can also be done offline using L<guestfish(1)>)"
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../tools/virt-resize.pl:199
24864 msgid ""
24865 "Once the guest has booted you should see the new space available, at least "
24866 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24867 "may need to resize LVs inside PVs, and also resize filesystem types that "
24868 "virt-resize does not know how to expand."
24869 msgstr ""
24870
24871 # type: =head2
24872 #: ../tools/virt-resize.pl:206
24873 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24874 msgstr ""
24875
24876 # type: textblock
24877 #: ../tools/virt-resize.pl:208
24878 msgid ""
24879 "Shrinking is somewhat more complex than expanding, and only an overview is "
24880 "given here."
24881 msgstr ""
24882
24883 # type: textblock
24884 #: ../tools/virt-resize.pl:211
24885 msgid ""
24886 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24887 "filesystems).  The user has to shrink content before passing the disk image "
24888 "to virt-resize, and virt-resize will check that the content has been shrunk "
24889 "properly."
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../tools/virt-resize.pl:216
24894 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../tools/virt-resize.pl:218
24899 msgid ""
24900 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24901 "steps 3 and 4 above to allocate a new disk image."
24902 msgstr ""
24903
24904 # type: textblock
24905 #: ../tools/virt-resize.pl:221
24906 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
24907 msgstr ""
24908
24909 # type: =head2
24910 #: ../tools/virt-resize.pl:224
24911 msgid "IGNORING OR DELETING PARTITIONS"
24912 msgstr ""
24913
24914 # type: textblock
24915 #: ../tools/virt-resize.pl:226
24916 msgid ""
24917 "virt-resize also gives a convenient way to ignore or delete partitions when "
24918 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24919 "up the copy where you don't care about the existing contents of a "
24920 "partition.  Deleting a partition removes it completely, but note that it "
24921 "also renumbers any partitions after the one which is deleted, which can "
24922 "leave some guests unbootable."
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../tools/virt-resize.pl:243
24927 msgid "Display help."
24928 msgstr ""
24929
24930 # type: =item
24931 #: ../tools/virt-resize.pl:257
24932 msgid "B<--resize part=size>"
24933 msgstr ""
24934
24935 # type: textblock
24936 #: ../tools/virt-resize.pl:259
24937 msgid ""
24938 "Resize the named partition (expanding or shrinking it) so that it has the "
24939 "given size."
24940 msgstr ""
24941
24942 # type: textblock
24943 #: ../tools/virt-resize.pl:262
24944 msgid ""
24945 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
24946 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
24947 "Exabytes; or as a percentage of the current size; or as a relative number or "
24948 "percentage.  For example:"
24949 msgstr ""
24950
24951 # type: verbatim
24952 #: ../tools/virt-resize.pl:267
24953 #, no-wrap
24954 msgid ""
24955 " --resize /dev/sda2=10G\n"
24956 "\n"
24957 msgstr ""
24958
24959 # type: verbatim
24960 #: ../tools/virt-resize.pl:269
24961 #, no-wrap
24962 msgid ""
24963 " --resize /dev/sda4=90%\n"
24964 "\n"
24965 msgstr ""
24966
24967 # type: verbatim
24968 #: ../tools/virt-resize.pl:271
24969 #, no-wrap
24970 msgid ""
24971 " --resize /dev/sda2=+1G\n"
24972 "\n"
24973 msgstr ""
24974
24975 # type: verbatim
24976 #: ../tools/virt-resize.pl:273
24977 #, no-wrap
24978 msgid ""
24979 " --resize /dev/sda2=-200M\n"
24980 "\n"
24981 msgstr ""
24982
24983 # type: verbatim
24984 #: ../tools/virt-resize.pl:275
24985 #, no-wrap
24986 msgid ""
24987 " --resize /dev/sda1=+128K\n"
24988 "\n"
24989 msgstr ""
24990
24991 # type: verbatim
24992 #: ../tools/virt-resize.pl:277
24993 #, no-wrap
24994 msgid ""
24995 " --resize /dev/sda1=+10%\n"
24996 "\n"
24997 msgstr ""
24998
24999 # type: verbatim
25000 #: ../tools/virt-resize.pl:279
25001 #, no-wrap
25002 msgid ""
25003 " --resize /dev/sda1=-10%\n"
25004 "\n"
25005 msgstr ""
25006
25007 # type: textblock
25008 #: ../tools/virt-resize.pl:281
25009 msgid ""
25010 "You can increase the size of any partition.  Virt-resize will expand the "
25011 "direct content of the partition if it knows how (see C<--expand> below)."
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../tools/virt-resize.pl:285
25016 msgid ""
25017 "You can only I<decrease> the size of partitions that contain filesystems or "
25018 "PVs which have already been shrunk.  Virt-resize will check this has been "
25019 "done before proceeding, or else will print an error (see also "
25020 "C<--resize-force>)."
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382 ../tools/virt-resize.pl:399
25025 msgid "You can give this option multiple times."
25026 msgstr ""
25027
25028 # type: =item
25029 #: ../tools/virt-resize.pl:296
25030 msgid "B<--resize-force part=size>"
25031 msgstr ""
25032
25033 # type: textblock
25034 #: ../tools/virt-resize.pl:298
25035 msgid ""
25036 "This is the same as C<--resize> except that it will let you decrease the "
25037 "size of any partition.  Generally this means you will lose any data which "
25038 "was at the end of the partition you shrink, but you may not care about that "
25039 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25040 "as a swap partition)."
25041 msgstr ""
25042
25043 # type: textblock
25044 #: ../tools/virt-resize.pl:304
25045 msgid "See also the C<--ignore> option."
25046 msgstr ""
25047
25048 # type: =item
25049 #: ../tools/virt-resize.pl:310
25050 msgid "B<--expand part>"
25051 msgstr ""
25052
25053 # type: textblock
25054 #: ../tools/virt-resize.pl:312
25055 msgid ""
25056 "Expand the named partition so it uses up all extra space (space left over "
25057 "after any other resize changes that you request have been done)."
25058 msgstr ""
25059
25060 # type: textblock
25061 #: ../tools/virt-resize.pl:315
25062 msgid ""
25063 "If virt-resize knows how, it will expand the direct content of the "
25064 "partition.  For example, if the partition is an LVM PV, it will expand the "
25065 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25066 "content it doesn't know about alone."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../tools/virt-resize.pl:320
25071 msgid "Currently virt-resize can resize:"
25072 msgstr ""
25073
25074 # type: textblock
25075 #: ../tools/virt-resize.pl:326
25076 msgid ""
25077 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25078 "partition."
25079 msgstr ""
25080
25081 # type: textblock
25082 #: ../tools/virt-resize.pl:331
25083 msgid ""
25084 "NTFS filesystems contained directly in a partition, if libguestfs was "
25085 "compiled with support for NTFS."
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../tools/virt-resize.pl:334
25090 msgid ""
25091 "The filesystem must have been shut down consistently last time it was used.  "
25092 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25093 "consistency check, so at the first boot after resizing Windows will check "
25094 "the disk."
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../tools/virt-resize.pl:341
25099 msgid ""
25100 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25101 "inside the PV.  The user will have to resize LVs as desired."
25102 msgstr ""
25103
25104 # type: textblock
25105 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25106 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25107 msgstr ""
25108
25109 # type: =item
25110 #: ../tools/virt-resize.pl:353
25111 msgid "B<--shrink part>"
25112 msgstr ""
25113
25114 # type: textblock
25115 #: ../tools/virt-resize.pl:355
25116 msgid ""
25117 "Shrink the named partition until the overall disk image fits in the "
25118 "destination.  The named partition B<must> contain a filesystem or PV which "
25119 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25120 "online tools).  Virt-resize will check this and give an error if it has not "
25121 "been done."
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../tools/virt-resize.pl:361
25126 msgid ""
25127 "The amount by which the overall disk must be shrunk (after carrying out all "
25128 "other operations requested by the user) is called the \"deficit\".  For "
25129 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25130 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25131 "would give an error unless the user specified a partition to shrink and that "
25132 "partition had more than a gigabyte of free space."
25133 msgstr ""
25134
25135 # type: =item
25136 #: ../tools/virt-resize.pl:375
25137 msgid "B<--ignore part>"
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../tools/virt-resize.pl:377
25142 msgid ""
25143 "Ignore the named partition.  Effectively this means the partition is "
25144 "allocated on the destination disk, but the content is not copied across from "
25145 "the source disk.  The content of the partition will be blank (all zero "
25146 "bytes)."
25147 msgstr ""
25148
25149 # type: =item
25150 #: ../tools/virt-resize.pl:388
25151 msgid "B<--delete part>"
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../tools/virt-resize.pl:390
25156 msgid ""
25157 "Delete the named partition.  It would be more accurate to describe this as "
25158 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25159 "the original disk image is left intact."
25160 msgstr ""
25161
25162 # type: textblock
25163 #: ../tools/virt-resize.pl:394
25164 msgid ""
25165 "Note that when you delete a partition, then anything contained in the "
25166 "partition is also deleted.  Furthermore, this causes any partitions that "
25167 "come after to be I<renumbered>, which can easily make your guest unbootable."
25168 msgstr ""
25169
25170 # type: =item
25171 #: ../tools/virt-resize.pl:405
25172 msgid "B<--LV-expand logvol>"
25173 msgstr ""
25174
25175 # type: textblock
25176 #: ../tools/virt-resize.pl:407
25177 msgid ""
25178 "This takes the logical volume and, as a final step, expands it to fill all "
25179 "the space available in its volume group.  A typical usage, assuming a Linux "
25180 "guest with a single PV C</dev/sda2> and a root device called "
25181 "C</dev/vg_guest/lv_root> would be:"
25182 msgstr ""
25183
25184 # type: verbatim
25185 #: ../tools/virt-resize.pl:412
25186 #, no-wrap
25187 msgid ""
25188 " virt-resize indisk outdisk \\\n"
25189 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25190 "\n"
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../tools/virt-resize.pl:415
25195 msgid ""
25196 "This would first expand the partition (and PV), and then expand the root "
25197 "device to fill the extra space in the PV."
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../tools/virt-resize.pl:418
25202 msgid ""
25203 "The contents of the LV are also resized if virt-resize knows how to do "
25204 "that.  You can stop virt-resize from trying to expand the content by using "
25205 "the option C<--no-expand-content>."
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../tools/virt-resize.pl:422
25210 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-resize.pl:425
25215 msgid ""
25216 "You can give this option multiple times, I<but> it doesn't make sense to do "
25217 "this unless the logical volumes you specify are all in different volume "
25218 "groups."
25219 msgstr ""
25220
25221 # type: =item
25222 #: ../tools/virt-resize.pl:433
25223 msgid "B<--no-copy-boot-loader>"
25224 msgstr ""
25225
25226 # type: textblock
25227 #: ../tools/virt-resize.pl:435
25228 msgid ""
25229 "By default, virt-resize copies over some sectors at the start of the disk "
25230 "(up to the beginning of the first partition).  Commonly these sectors "
25231 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25232 "in order for the guest to boot correctly."
25233 msgstr ""
25234
25235 # type: textblock
25236 #: ../tools/virt-resize.pl:440
25237 msgid ""
25238 "If you specify this flag, then this initial copy is not done.  You may need "
25239 "to reinstall the boot loader in this case."
25240 msgstr ""
25241
25242 # type: =item
25243 #: ../tools/virt-resize.pl:448
25244 msgid "B<--no-extra-partition>"
25245 msgstr ""
25246
25247 # type: textblock
25248 #: ../tools/virt-resize.pl:450
25249 msgid ""
25250 "By default, virt-resize creates an extra partition if there is any extra, "
25251 "unused space after all resizing has happened.  Use this option to prevent "
25252 "the extra partition from being created.  If you do this then the extra space "
25253 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25254 "tool in the guest."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../tools/virt-resize.pl:456
25259 msgid ""
25260 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25261 "will be created."
25262 msgstr ""
25263
25264 # type: =item
25265 #: ../tools/virt-resize.pl:463
25266 msgid "B<--no-expand-content>"
25267 msgstr ""
25268
25269 # type: textblock
25270 #: ../tools/virt-resize.pl:465
25271 msgid ""
25272 "By default, virt-resize will try to expand the direct contents of "
25273 "partitions, if it knows how (see C<--expand> option above)."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-resize.pl:468
25278 msgid ""
25279 "If you give the C<--no-expand-content> option then virt-resize will not "
25280 "attempt this."
25281 msgstr ""
25282
25283 # type: =item
25284 #: ../tools/virt-resize.pl:475
25285 msgid "B<-d> | B<--debug>"
25286 msgstr ""
25287
25288 # type: =item
25289 #: ../tools/virt-resize.pl:483
25290 msgid "B<-n> | B<--dryrun>"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../tools/virt-resize.pl:485
25295 msgid "Print a summary of what would be done, but don't do anything."
25296 msgstr ""
25297
25298 # type: =item
25299 #: ../tools/virt-resize.pl:491
25300 msgid "B<-q> | B<--quiet>"
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../tools/virt-resize.pl:493
25305 msgid "Don't print the summary."
25306 msgstr ""
25307
25308 # type: =head2
25309 #: ../tools/virt-resize.pl:1350 ../tools/virt-rescue.pl:90
25310 msgid "NOTES"
25311 msgstr ""
25312
25313 # type: =head2
25314 #: ../tools/virt-resize.pl:1352
25315 msgid "\"Partition 1 does not end on cylinder boundary.\""
25316 msgstr ""
25317
25318 # type: textblock
25319 #: ../tools/virt-resize.pl:1354
25320 msgid ""
25321 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25322 "means the partitions will not be aligned to the ancient CHS geometry.  "
25323 "However CHS geometry is meaningless for disks manufactured since the early "
25324 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25325 "cylinders is not required by any modern operating system."
25326 msgstr ""
25327
25328 # type: =head2
25329 #: ../tools/virt-resize.pl:1361
25330 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25331 msgstr ""
25332
25333 # type: textblock
25334 #: ../tools/virt-resize.pl:1363
25335 msgid ""
25336 "In Windows Vista and later versions, Microsoft switched to using a separate "
25337 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25338 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25339 "the boot partition.  Doing so seems to break the guest completely.  However "
25340 "expanding the second partition (ie. C: drive) should work."
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../tools/virt-resize.pl:1370
25345 msgid ""
25346 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25347 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25348 "it find errors) is nothing to worry about."
25349 msgstr ""
25350
25351 # type: =head1
25352 #: ../tools/virt-resize.pl:1374
25353 msgid "ALTERNATIVE TOOLS"
25354 msgstr ""
25355
25356 # type: textblock
25357 #: ../tools/virt-resize.pl:1376
25358 msgid ""
25359 "There are several proprietary tools for resizing partitions.  We won't "
25360 "mention any here."
25361 msgstr ""
25362
25363 # type: textblock
25364 #: ../tools/virt-resize.pl:1379
25365 msgid ""
25366 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25367 "operations on disk images.  They can resize and move partitions, but I don't "
25368 "think they can do anything with the contents, and they certainly don't "
25369 "understand LVM."
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../tools/virt-resize.pl:1384
25374 msgid ""
25375 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25376 "but at a much lower level.  You will probably end up hand-calculating sector "
25377 "offsets, which is something that virt-resize was designed to avoid.  If you "
25378 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25379 "C<--debug> flag."
25380 msgstr ""
25381
25382 # type: textblock
25383 #: ../tools/virt-resize.pl:1392
25384 msgid ""
25385 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25386 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25387 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
25388 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
25389 msgstr ""
25390
25391 # type: textblock
25392 #: ../tools/virt-list-filesystems.pl:32
25393 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
25394 msgstr ""
25395
25396 # type: verbatim
25397 #: ../tools/virt-list-filesystems.pl:36
25398 #, no-wrap
25399 msgid ""
25400 " virt-list-filesystems [--options] domname\n"
25401 "\n"
25402 msgstr ""
25403
25404 # type: verbatim
25405 #: ../tools/virt-list-filesystems.pl:38
25406 #, no-wrap
25407 msgid ""
25408 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
25409 "\n"
25410 msgstr ""
25411
25412 # type: textblock
25413 #: ../tools/virt-list-filesystems.pl:42
25414 msgid ""
25415 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
25416 "are contained in a virtual machine or disk image."
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../tools/virt-list-filesystems.pl:46
25421 msgid ""
25422 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
25423 "functionality.  For more complex cases you should look at the "
25424 "L<guestfish(1)> tool."
25425 msgstr ""
25426
25427 # type: textblock
25428 #: ../tools/virt-list-filesystems.pl:88
25429 msgid ""
25430 "With this option, C<virt-list-filesystems> displays the type of each "
25431 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
25432 msgstr ""
25433
25434 # type: =item
25435 #: ../tools/virt-list-filesystems.pl:95
25436 msgid "B<-a> | B<--all>"
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-list-filesystems.pl:97
25441 msgid ""
25442 "Normally we only show mountable filesystems.  If this option is given then "
25443 "swap devices are shown too."
25444 msgstr ""
25445
25446 # type: textblock
25447 #: ../tools/virt-list-filesystems.pl:193
25448 msgid ""
25449 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25450 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25451 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25452 msgstr ""
25453
25454 # type: textblock
25455 #: ../tools/virt-cat.pl:34
25456 msgid "virt-cat - Display a file in a virtual machine"
25457 msgstr ""
25458
25459 # type: verbatim
25460 #: ../tools/virt-cat.pl:38
25461 #, no-wrap
25462 msgid ""
25463 " virt-cat [--options] domname file\n"
25464 "\n"
25465 msgstr ""
25466
25467 # type: verbatim
25468 #: ../tools/virt-cat.pl:40
25469 #, no-wrap
25470 msgid ""
25471 " virt-cat [--options] disk.img [disk.img ...] file\n"
25472 "\n"
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../tools/virt-cat.pl:44
25477 msgid ""
25478 "C<virt-cat> is a command line tool to display the contents of C<file> where "
25479 "C<file> exists in the named virtual machine (or disk image)."
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../tools/virt-cat.pl:47
25484 msgid ""
25485 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
25486 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
25487 "tool."
25488 msgstr ""
25489
25490 # type: textblock
25491 #: ../tools/virt-cat.pl:53
25492 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
25493 msgstr ""
25494
25495 # type: verbatim
25496 #: ../tools/virt-cat.pl:56
25497 #, no-wrap
25498 msgid ""
25499 " virt-cat mydomain /etc/fstab\n"
25500 "\n"
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../tools/virt-cat.pl:58
25505 msgid "List syslog messages from a VM:"
25506 msgstr ""
25507
25508 # type: verbatim
25509 #: ../tools/virt-cat.pl:60
25510 #, no-wrap
25511 msgid ""
25512 " virt-cat mydomain /var/log/messages | tail\n"
25513 "\n"
25514 msgstr ""
25515
25516 # type: textblock
25517 #: ../tools/virt-cat.pl:62
25518 msgid "Find out what DHCP IP address a VM acquired:"
25519 msgstr ""
25520
25521 # type: verbatim
25522 #: ../tools/virt-cat.pl:64
25523 #, no-wrap
25524 msgid ""
25525 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
25526 "\n"
25527 msgstr ""
25528
25529 # type: textblock
25530 #: ../tools/virt-cat.pl:66
25531 msgid "Find out what packages were recently installed:"
25532 msgstr ""
25533
25534 # type: verbatim
25535 #: ../tools/virt-cat.pl:68
25536 #, no-wrap
25537 msgid ""
25538 " virt-cat mydomain /var/log/yum.log | tail\n"
25539 "\n"
25540 msgstr ""
25541
25542 # type: textblock
25543 #: ../tools/virt-cat.pl:70
25544 msgid "Find out who is logged on inside a virtual machine:"
25545 msgstr ""
25546
25547 # type: verbatim
25548 #: ../tools/virt-cat.pl:72
25549 #, no-wrap
25550 msgid ""
25551 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
25552 " who /tmp/utmp\n"
25553 "\n"
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../tools/virt-cat.pl:75
25558 msgid "or who was logged on:"
25559 msgstr ""
25560
25561 # type: verbatim
25562 #: ../tools/virt-cat.pl:77
25563 #, no-wrap
25564 msgid ""
25565 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
25566 " last -f /tmp/wtmp\n"
25567 "\n"
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../tools/virt-cat.pl:165
25572 msgid ""
25573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
25574 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../tools/virt-tar.pl:34
25579 msgid "virt-tar - Extract or upload files to a virtual machine"
25580 msgstr ""
25581
25582 # type: verbatim
25583 #: ../tools/virt-tar.pl:38
25584 #, no-wrap
25585 msgid ""
25586 " virt-tar [--options] -x domname directory tarball\n"
25587 "\n"
25588 msgstr ""
25589
25590 # type: verbatim
25591 #: ../tools/virt-tar.pl:40
25592 #, no-wrap
25593 msgid ""
25594 " virt-tar [--options] -u domname tarball directory\n"
25595 "\n"
25596 msgstr ""
25597
25598 # type: verbatim
25599 #: ../tools/virt-tar.pl:42
25600 #, no-wrap
25601 msgid ""
25602 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25603 "\n"
25604 msgstr ""
25605
25606 # type: verbatim
25607 #: ../tools/virt-tar.pl:44
25608 #, no-wrap
25609 msgid ""
25610 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25611 "\n"
25612 msgstr ""
25613
25614 # type: textblock
25615 #: ../tools/virt-tar.pl:48
25616 msgid "Download C</home> from the VM into a local tarball:"
25617 msgstr ""
25618
25619 # type: verbatim
25620 #: ../tools/virt-tar.pl:50
25621 #, no-wrap
25622 msgid ""
25623 " virt-tar -x domname /home home.tar\n"
25624 "\n"
25625 msgstr ""
25626
25627 # type: verbatim
25628 #: ../tools/virt-tar.pl:52
25629 #, no-wrap
25630 msgid ""
25631 " virt-tar -zx domname /home home.tar.gz\n"
25632 "\n"
25633 msgstr ""
25634
25635 # type: textblock
25636 #: ../tools/virt-tar.pl:54
25637 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25638 msgstr ""
25639
25640 # type: verbatim
25641 #: ../tools/virt-tar.pl:56
25642 #, no-wrap
25643 msgid ""
25644 " virt-tar -u domname uploadstuff.tar /tmp\n"
25645 "\n"
25646 msgstr ""
25647
25648 # type: verbatim
25649 #: ../tools/virt-tar.pl:58
25650 #, no-wrap
25651 msgid ""
25652 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25653 "\n"
25654 msgstr ""
25655
25656 # type: textblock
25657 #: ../tools/virt-tar.pl:62
25658 msgid ""
25659 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25660 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25661 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25662 msgstr ""
25663
25664 # type: textblock
25665 #: ../tools/virt-tar.pl:67
25666 msgid ""
25667 "You can use C<-x> (extract) on live virtual machines, but you might get "
25668 "inconsistent results or errors if there is filesystem activity inside the "
25669 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25670 "work, but the only way to guarantee consistent results is if the virtual "
25671 "machine is shut down."
25672 msgstr ""
25673
25674 # type: textblock
25675 #: ../tools/virt-tar.pl:75
25676 msgid ""
25677 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25678 "parts of a guest filesystem.  There are many possibilities: making backups, "
25679 "uploading data files, snooping on guest activity, fixing or customizing "
25680 "guests, etc."
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../tools/virt-tar.pl:80
25685 msgid ""
25686 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25687 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25688 "should look at the L<guestfish(1)> tool."
25689 msgstr ""
25690
25691 # type: textblock
25692 #: ../tools/virt-tar.pl:84
25693 msgid ""
25694 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25695 "its contents (recursively) from the virtual machine into a local tarball.  "
25696 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25697 "virtual machine.  You cannot use these two options together."
25698 msgstr ""
25699
25700 # type: textblock
25701 #: ../tools/virt-tar.pl:90
25702 msgid ""
25703 "In addition, you may need to use the C<-z> (gZip) option to enable "
25704 "compression.  When uploading, you have to specify C<-z> if the upload file "
25705 "is compressed because virt-tar won't detect this on its own."
25706 msgstr ""
25707
25708 # type: textblock
25709 #: ../tools/virt-tar.pl:94
25710 msgid ""
25711 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25712 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25713 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25714 "the L<libguestfs(3)> API)."
25715 msgstr ""
25716
25717 # type: =item
25718 #: ../tools/virt-tar.pl:135
25719 msgid "B<-x> | B<--extract> | B<--download>"
25720 msgstr ""
25721
25722 # type: =item
25723 #: ../tools/virt-tar.pl:137
25724 msgid "B<-u> | B<--upload>"
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../tools/virt-tar.pl:139
25729 msgid ""
25730 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25731 "local tarball."
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../tools/virt-tar.pl:142
25736 msgid ""
25737 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25738 "Please read the L</WARNING> section above before using this option."
25739 msgstr ""
25740
25741 # type: textblock
25742 #: ../tools/virt-tar.pl:146
25743 msgid "You must specify exactly one of these options."
25744 msgstr ""
25745
25746 # type: =item
25747 #: ../tools/virt-tar.pl:152
25748 msgid "B<-z> | B<--gzip>"
25749 msgstr ""
25750
25751 # type: textblock
25752 #: ../tools/virt-tar.pl:154
25753 msgid "Specify that the input or output tarball is gzip-compressed."
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../tools/virt-tar.pl:259
25758 msgid ""
25759 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25760 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25761 "L<http://libguestfs.org/>."
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../tools/virt-rescue.pl:33
25766 msgid "virt-rescue - Run a rescue shell on a virtual machine"
25767 msgstr ""
25768
25769 # type: verbatim
25770 #: ../tools/virt-rescue.pl:37
25771 #, no-wrap
25772 msgid ""
25773 " virt-rescue [--options] domname\n"
25774 "\n"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #: ../tools/virt-rescue.pl:39
25779 #, no-wrap
25780 msgid ""
25781 " virt-rescue [--options] disk.img [disk.img ...]\n"
25782 "\n"
25783 msgstr ""
25784
25785 # type: textblock
25786 #: ../tools/virt-rescue.pl:43
25787 msgid ""
25788 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
25789 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
25790 "you from doing this, but doesn't catch all cases."
25791 msgstr ""
25792
25793 # type: textblock
25794 #: ../tools/virt-rescue.pl:47
25795 msgid ""
25796 "However if you use the I<--ro> (read only) option, then you can attach a "
25797 "shell to a live virtual machine.  The results might be strange or "
25798 "inconsistent at times but you won't get disk corruption."
25799 msgstr ""
25800
25801 # type: textblock
25802 #: ../tools/virt-rescue.pl:53
25803 msgid ""
25804 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
25805 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
25806 "recovery tools which you can use to examine or rescue a virtual machine or "
25807 "disk image."
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../tools/virt-rescue.pl:58
25812 msgid ""
25813 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
25814 "on disk image(s):"
25815 msgstr ""
25816
25817 # type: verbatim
25818 #: ../tools/virt-rescue.pl:61
25819 #, no-wrap
25820 msgid ""
25821 " virt-rescue GuestName\n"
25822 "\n"
25823 msgstr ""
25824
25825 # type: verbatim
25826 #: ../tools/virt-rescue.pl:63
25827 #, no-wrap
25828 msgid ""
25829 " virt-rescue --ro /path/to/disk.img\n"
25830 "\n"
25831 msgstr ""
25832
25833 # type: verbatim
25834 #: ../tools/virt-rescue.pl:65
25835 #, no-wrap
25836 msgid ""
25837 " virt-rescue /dev/sdc\n"
25838 "\n"
25839 msgstr ""
25840
25841 # type: textblock
25842 #: ../tools/virt-rescue.pl:67
25843 msgid "For live VMs you I<must> use the --ro option."
25844 msgstr ""
25845
25846 # type: textblock
25847 #: ../tools/virt-rescue.pl:69
25848 msgid ""
25849 "When you run virt-rescue on a virtual machine or disk image, you are placed "
25850 "in an interactive bash shell where you can use many ordinary Linux "
25851 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
25852 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
25853 "is an empty directory called C</sysroot> where you can mount filesystems."
25854 msgstr ""
25855
25856 # type: textblock
25857 #: ../tools/virt-rescue.pl:76
25858 msgid ""
25859 "In the example below, we list logical volumes, then choose one to mount "
25860 "under C</sysroot>:"
25861 msgstr ""
25862
25863 # type: verbatim
25864 #: ../tools/virt-rescue.pl:79
25865 #, no-wrap
25866 msgid ""
25867 " ><rescue> lvs\n"
25868 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
25869 " lv_root vg_f11x64 -wi-a-   8.83G\n"
25870 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
25871 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
25872 " ><rescue> ls /sysroot\n"
25873 "\n"
25874 msgstr ""
25875
25876 # type: textblock
25877 #: ../tools/virt-rescue.pl:86
25878 msgid ""
25879 "If you don't know what filesystems are available on the virtual machine then "
25880 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../tools/virt-rescue.pl:92
25885 msgid ""
25886 "Virt-rescue can be used on I<any> disk image file or device, not just a "
25887 "virtual machine.  For example you can use it on a blank file if you want to "
25888 "partition that file (although we would recommend using L<guestfish(1)> "
25889 "instead as it is more suitable for this purpose).  You can even use "
25890 "virt-rescue on things like SD cards."
25891 msgstr ""
25892
25893 # type: textblock
25894 #: ../tools/virt-rescue.pl:98
25895 msgid ""
25896 "This tool is just designed for quick interactive hacking on a virtual "
25897 "machine.  For more structured access to a virtual machine disk image, you "
25898 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
25899 "make scripted changes to guests, use L<guestfish(1)>."
25900 msgstr ""
25901
25902 # type: =item
25903 #: ../tools/virt-rescue.pl:127
25904 msgid "B<--append kernelopts>"
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../tools/virt-rescue.pl:129
25909 msgid "Pass additional options to the rescue kernel."
25910 msgstr ""
25911
25912 # type: =item
25913 #: ../tools/virt-rescue.pl:147
25914 msgid "B<--memsize MB> | B<-m MB>"
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../tools/virt-rescue.pl:149
25919 msgid ""
25920 "Change the amount of memory allocated to the rescue system.  The default is "
25921 "set by libguestfs and is small but adequate for running system tools.  The "
25922 "occasional program might need more memory.  The parameter is specified in "
25923 "megabytes."
25924 msgstr ""
25925
25926 # type: =item
25927 #: ../tools/virt-rescue.pl:158
25928 msgid "B<--ro> | B<-r>"
25929 msgstr ""
25930
25931 # type: textblock
25932 #: ../tools/virt-rescue.pl:160
25933 msgid "Open the image read-only."
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../tools/virt-rescue.pl:172
25938 msgid ""
25939 "Enable SELinux in the rescue appliance.  You should read "
25940 "L<guestfs(3)/SELINUX> before using this option."
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-rescue.pl:228
25945 msgid ""
25946 "Several environment variables affect virt-rescue.  See "
25947 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
25948 msgstr ""
25949
25950 # type: textblock
25951 #: ../tools/virt-rescue.pl:233
25952 msgid ""
25953 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25954 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../tools/virt-make-fs.pl:37
25959 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
25960 msgstr ""
25961
25962 # type: verbatim
25963 #: ../tools/virt-make-fs.pl:41
25964 #, no-wrap
25965 msgid ""
25966 " virt-make-fs [--options] input.tar output.img\n"
25967 "\n"
25968 msgstr ""
25969
25970 # type: verbatim
25971 #: ../tools/virt-make-fs.pl:43
25972 #, no-wrap
25973 msgid ""
25974 " virt-make-fs [--options] input.tar.gz output.img\n"
25975 "\n"
25976 msgstr ""
25977
25978 # type: verbatim
25979 #: ../tools/virt-make-fs.pl:45
25980 #, no-wrap
25981 msgid ""
25982 " virt-make-fs [--options] directory output.img\n"
25983 "\n"
25984 msgstr ""
25985
25986 # type: textblock
25987 #: ../tools/virt-make-fs.pl:49
25988 msgid ""
25989 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
25990 "archive or some files in a directory.  It is similar to tools like "
25991 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
25992 "it can create common filesystem types like ext2/3 or NTFS, which can be "
25993 "useful if you want to attach these filesystems to existing virtual machines "
25994 "(eg. to import large amounts of read-only data to a VM)."
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../tools/virt-make-fs.pl:57
25999 msgid "Basic usage is:"
26000 msgstr ""
26001
26002 # type: verbatim
26003 #: ../tools/virt-make-fs.pl:59
26004 #, no-wrap
26005 msgid ""
26006 " virt-make-fs input output\n"
26007 "\n"
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../tools/virt-make-fs.pl:61
26012 msgid ""
26013 "where C<input> is either a directory containing files that you want to add, "
26014 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
26015 "C<output> is a disk image.  The input type is detected automatically.  The "
26016 "output disk image defaults to a raw ext2 image unless you specify extra "
26017 "flags (see L</OPTIONS> below)."
26018 msgstr ""
26019
26020 # type: =head2
26021 #: ../tools/virt-make-fs.pl:67
26022 msgid "EXTRA SPACE"
26023 msgstr ""
26024
26025 # type: textblock
26026 #: ../tools/virt-make-fs.pl:69
26027 msgid ""
26028 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
26029 "the files that it contains, but might have extra space.  Depending on how "
26030 "you are going to use the output, you might think this extra space is wasted "
26031 "and want to minimize it, or you might want to leave space so that more files "
26032 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
26033 "but you can use the C<--size> flag to leave space in the filesystem if you "
26034 "want it."
26035 msgstr ""
26036
26037 # type: textblock
26038 #: ../tools/virt-make-fs.pl:77
26039 msgid ""
26040 "An alternative way to leave extra space but not make the output image any "
26041 "bigger is to use an alternative disk image format (instead of the default "
26042 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
26043 "image format (check your hypervisor supports this before using it).  This "
26044 "allows you to choose a large C<--size> but the extra space won't actually be "
26045 "allocated in the image until you try to store something in it."
26046 msgstr ""
26047
26048 # type: textblock
26049 #: ../tools/virt-make-fs.pl:85
26050 msgid ""
26051 "Don't forget that you can also use local commands including L<resize2fs(8)> "
26052 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
26053 "virt-make-resize to build another image from scratch."
26054 msgstr ""
26055
26056 # type: =head3
26057 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
26058 msgid "EXAMPLE"
26059 msgstr ""
26060
26061 # type: verbatim
26062 #: ../tools/virt-make-fs.pl:91
26063 #, no-wrap
26064 msgid ""
26065 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
26066 "\n"
26067 msgstr ""
26068
26069 # type: =head2
26070 #: ../tools/virt-make-fs.pl:93
26071 msgid "FILESYSTEM TYPE"
26072 msgstr ""
26073
26074 # type: textblock
26075 #: ../tools/virt-make-fs.pl:95
26076 msgid ""
26077 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
26078 "libguestfs supports can be used (but I<not> read-only formats like "
26079 "ISO9660).  Here are some of the more common choices:"
26080 msgstr ""
26081
26082 # type: =item
26083 #: ../tools/virt-make-fs.pl:101
26084 msgid "I<ext3>"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-make-fs.pl:103
26089 msgid ""
26090 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
26091 "you are not going to use the filesystem in a way that requires the journal, "
26092 "then this is just wasted overhead."
26093 msgstr ""
26094
26095 # type: =item
26096 #: ../tools/virt-make-fs.pl:107
26097 msgid "I<ntfs> or I<vfat>"
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-make-fs.pl:109
26102 msgid "Useful if exporting data to a Windows guest."
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../tools/virt-make-fs.pl:111
26107 msgid ""
26108 "I<Note for vfat>: The tar archive or local directory must only contain files "
26109 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
26110 "program running within libguestfs is unable to change the ownership of "
26111 "non-root files, since vfat itself does not support this."
26112 msgstr ""
26113
26114 # type: =item
26115 #: ../tools/virt-make-fs.pl:116
26116 msgid "I<minix>"
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-make-fs.pl:118
26121 msgid ""
26122 "Lower overhead than C<ext2>, but certain limitations on filename length and "
26123 "total filesystem size."
26124 msgstr ""
26125
26126 # type: verbatim
26127 #: ../tools/virt-make-fs.pl:125
26128 #, no-wrap
26129 msgid ""
26130 " virt-make-fs --type=minix input minixfs.img\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: =head2
26135 #: ../tools/virt-make-fs.pl:127
26136 msgid "TO PARTITION OR NOT TO PARTITION"
26137 msgstr ""
26138
26139 # type: textblock
26140 #: ../tools/virt-make-fs.pl:129
26141 msgid "Optionally virt-make-fs can add a partition table to the output disk."
26142 msgstr ""
26143
26144 # type: textblock
26145 #: ../tools/virt-make-fs.pl:131
26146 msgid ""
26147 "Adding a partition can make the disk image more compatible with certain "
26148 "virtualized operating systems which don't expect to see a filesystem "
26149 "directly located on a block device (Linux doesn't care and will happily "
26150 "handle both types)."
26151 msgstr ""
26152
26153 # type: textblock
26154 #: ../tools/virt-make-fs.pl:136
26155 msgid ""
26156 "On the other hand, if you have a partition table then the output image is no "
26157 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
26158 "directly on a partitioned disk image.  (However libguestfs tools such as "
26159 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-make-fs.pl:144
26164 msgid "Add an MBR partition:"
26165 msgstr ""
26166
26167 # type: verbatim
26168 #: ../tools/virt-make-fs.pl:146
26169 #, no-wrap
26170 msgid ""
26171 " virt-make-fs --partition -- input disk.img\n"
26172 "\n"
26173 msgstr ""
26174
26175 # type: textblock
26176 #: ../tools/virt-make-fs.pl:148
26177 msgid ""
26178 "If the output disk image could be terabyte-sized or larger, it's better to "
26179 "use an EFI/GPT-compatible partition table:"
26180 msgstr ""
26181
26182 # type: verbatim
26183 #: ../tools/virt-make-fs.pl:151
26184 #, no-wrap
26185 msgid ""
26186 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
26187 "\n"
26188 msgstr ""
26189
26190 # type: textblock
26191 #: ../tools/virt-make-fs.pl:179
26192 msgid "Enable debugging information."
26193 msgstr ""
26194
26195 # type: =item
26196 #: ../tools/virt-make-fs.pl:185
26197 msgid "B<--size=E<lt>NE<gt>>"
26198 msgstr ""
26199
26200 # type: =item
26201 #: ../tools/virt-make-fs.pl:187
26202 msgid "B<--size=+E<lt>NE<gt>>"
26203 msgstr ""
26204
26205 # type: =item
26206 #: ../tools/virt-make-fs.pl:189
26207 msgid "B<-s E<lt>NE<gt>>"
26208 msgstr ""
26209
26210 # type: =item
26211 #: ../tools/virt-make-fs.pl:191
26212 msgid "B<-s +E<lt>NE<gt>>"
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../tools/virt-make-fs.pl:193
26217 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
26218 msgstr ""
26219
26220 # type: textblock
26221 #: ../tools/virt-make-fs.pl:196
26222 msgid ""
26223 "If this option is I<not> given, then the output image will be just large "
26224 "enough to contain all the files, with not much wasted space."
26225 msgstr ""
26226
26227 # type: textblock
26228 #: ../tools/virt-make-fs.pl:199
26229 msgid ""
26230 "To choose a fixed size output disk, specify an absolute number followed by "
26231 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26232 "Petabytes or Exabytes.  This must be large enough to contain all the input "
26233 "files, else you will get an error."
26234 msgstr ""
26235
26236 # type: textblock
26237 #: ../tools/virt-make-fs.pl:204
26238 msgid ""
26239 "To leave extra space, specify C<+> (plus sign) and a number followed by "
26240 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26241 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
26242 "the input files, and (approximately) an extra 200 MB free space."
26243 msgstr ""
26244
26245 # type: textblock
26246 #: ../tools/virt-make-fs.pl:210
26247 msgid ""
26248 "Note that virt-make-fs estimates free space, and therefore will not produce "
26249 "filesystems containing precisely the free space requested.  (It is much more "
26250 "expensive and time-consuming to produce a filesystem which has precisely the "
26251 "desired free space)."
26252 msgstr ""
26253
26254 # type: =item
26255 #: ../tools/virt-make-fs.pl:219
26256 msgid "B<--format=E<lt>fmtE<gt>>"
26257 msgstr ""
26258
26259 # type: =item
26260 #: ../tools/virt-make-fs.pl:221
26261 msgid "B<-F E<lt>fmtE<gt>>"
26262 msgstr ""
26263
26264 # type: textblock
26265 #: ../tools/virt-make-fs.pl:223
26266 msgid "Choose the output disk image format."
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-make-fs.pl:225
26271 msgid "The default is C<raw> (raw disk image)."
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-make-fs.pl:227
26276 msgid ""
26277 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
26278 "that would really make sense here is C<qcow2>."
26279 msgstr ""
26280
26281 # type: =item
26282 #: ../tools/virt-make-fs.pl:234
26283 msgid "B<--type=E<lt>fsE<gt>>"
26284 msgstr ""
26285
26286 # type: =item
26287 #: ../tools/virt-make-fs.pl:236
26288 msgid "B<-t E<lt>fsE<gt>>"
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../tools/virt-make-fs.pl:238
26293 msgid "Choose the output filesystem type."
26294 msgstr ""
26295
26296 # type: textblock
26297 #: ../tools/virt-make-fs.pl:240
26298 msgid "The default is C<ext2>."
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-make-fs.pl:242
26303 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
26304 msgstr ""
26305
26306 # type: =item
26307 #: ../tools/virt-make-fs.pl:249
26308 msgid "B<--partition>"
26309 msgstr ""
26310
26311 # type: =item
26312 #: ../tools/virt-make-fs.pl:251
26313 msgid "B<--partition=E<lt>parttypeE<gt>>"
26314 msgstr ""
26315
26316 # type: textblock
26317 #: ../tools/virt-make-fs.pl:253
26318 msgid ""
26319 "If specified, this flag adds an MBR partition table to the output disk "
26320 "image."
26321 msgstr ""
26322
26323 # type: textblock
26324 #: ../tools/virt-make-fs.pl:256
26325 msgid ""
26326 "You can change the partition table type, eg. C<--partition=gpt> for large "
26327 "disks."
26328 msgstr ""
26329
26330 # type: textblock
26331 #: ../tools/virt-make-fs.pl:259
26332 msgid ""
26333 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
26334 "might consider the next parameter to be the partition type.  For example:"
26335 msgstr ""
26336
26337 # type: verbatim
26338 #: ../tools/virt-make-fs.pl:263
26339 #, no-wrap
26340 msgid ""
26341 " virt-make-fs --partition input.tar ...\n"
26342 "\n"
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-make-fs.pl:265
26347 msgid ""
26348 "would cause virt-make-fs to think you wanted to use a partition type of "
26349 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
26350 "dash) between options and the input file argument:"
26351 msgstr ""
26352
26353 # type: verbatim
26354 #: ../tools/virt-make-fs.pl:269
26355 #, no-wrap
26356 msgid ""
26357 " virt-make-fs --partition -- input.tar ...\n"
26358 "\n"
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-make-fs.pl:529
26363 msgid ""
26364 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
26365 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
26366 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26367 msgstr ""
26368
26369 # type: verbatim
26370 #: ../tools/virt-make-fs.pl:546
26371 #, no-wrap
26372 msgid ""
26373 " export LIBGUESTFS_DEBUG=1\n"
26374 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
26375 "\n"
26376 msgstr ""
26377
26378 # type: textblock
26379 #: ../tools/virt-make-fs.pl:549
26380 msgid ""
26381 "Attach /tmp/virt-make-fs.log to a new bug report at "
26382 "L<https://bugzilla.redhat.com/>"
26383 msgstr ""
26384
26385 # type: textblock
26386 #: ../tools/virt-list-partitions.pl:32
26387 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
26388 msgstr ""
26389
26390 # type: verbatim
26391 #: ../tools/virt-list-partitions.pl:36
26392 #, no-wrap
26393 msgid ""
26394 " virt-list-partitions [--options] domname\n"
26395 "\n"
26396 msgstr ""
26397
26398 # type: verbatim
26399 #: ../tools/virt-list-partitions.pl:38
26400 #, no-wrap
26401 msgid ""
26402 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
26403 "\n"
26404 msgstr ""
26405
26406 # type: textblock
26407 #: ../tools/virt-list-partitions.pl:42
26408 msgid ""
26409 "C<virt-list-partitions> is a command line tool to list the partitions that "
26410 "are contained in a virtual machine or disk image.  It is mainly useful as a "
26411 "first step to using L<virt-resize(1)>."
26412 msgstr ""
26413
26414 # type: textblock
26415 #: ../tools/virt-list-partitions.pl:47
26416 msgid ""
26417 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
26418 "functionality.  For more complex cases you should look at the "
26419 "L<guestfish(1)> tool."
26420 msgstr ""
26421
26422 # type: =item
26423 #: ../tools/virt-list-partitions.pl:87
26424 msgid "B<-h> | B<--human-readable>"
26425 msgstr ""
26426
26427 # type: textblock
26428 #: ../tools/virt-list-partitions.pl:89
26429 msgid "Show sizes in human-readable form (eg. \"1G\")."
26430 msgstr ""
26431
26432 # type: textblock
26433 #: ../tools/virt-list-partitions.pl:97
26434 msgid ""
26435 "With this option, C<virt-list-partitions> displays the type and size of each "
26436 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
26437 msgstr ""
26438
26439 # type: =item
26440 #: ../tools/virt-list-partitions.pl:104
26441 msgid "B<-t> | B<--total>"
26442 msgstr ""
26443
26444 # type: textblock
26445 #: ../tools/virt-list-partitions.pl:106
26446 msgid "Display the total size of each block device (as a separate row or rows)."
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../tools/virt-list-partitions.pl:231
26451 msgid ""
26452 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
26453 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26454 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26455 msgstr ""