Version 1.5.14.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-09-10 10:25+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 # type: =encoding
19 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
20 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
21 #: ../inspector/virt-inspector.pl:36 ../tools/virt-cat.pl:30
22 #: ../tools/virt-df.pl:32 ../tools/virt-edit.pl:31
23 #: ../tools/virt-list-filesystems.pl:28 ../tools/virt-list-partitions.pl:28
24 #: ../tools/virt-ls.pl:31 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-rescue.pl:29 ../tools/virt-resize.pl:38
26 #: ../tools/virt-tar.pl:30 ../tools/virt-win-reg.pl:34
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:38 ../tools/virt-cat.pl:32
34 #: ../tools/virt-df.pl:34 ../tools/virt-edit.pl:33
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-ls.pl:33 ../tools/virt-make-fs.pl:35
37 #: ../tools/virt-rescue.pl:31 ../tools/virt-resize.pl:40
38 #: ../tools/virt-tar.pl:32 ../tools/virt-win-reg.pl:36
39 msgid "NAME"
40 msgstr "名前"
41
42 # type: textblock
43 #: ../src/guestfs.pod:5
44 msgid "guestfs - Library for accessing and modifying virtual machine images"
45 msgstr ""
46
47 # type: =head1
48 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
49 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
50 #: ../inspector/virt-inspector.pl:42 ../tools/virt-cat.pl:36
51 #: ../tools/virt-df.pl:38 ../tools/virt-edit.pl:37
52 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
53 #: ../tools/virt-ls.pl:37 ../tools/virt-make-fs.pl:39
54 #: ../tools/virt-rescue.pl:35 ../tools/virt-resize.pl:44
55 #: ../tools/virt-tar.pl:36 ../tools/virt-win-reg.pl:40
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 # type: verbatim
60 #: ../src/guestfs.pod:9
61 #, no-wrap
62 msgid ""
63 " #include <guestfs.h>\n"
64 " \n"
65 msgstr ""
66
67 # type: verbatim
68 #: ../src/guestfs.pod:11
69 #, no-wrap
70 msgid ""
71 " guestfs_h *g = guestfs_create ();\n"
72 " guestfs_add_drive (g, \"guest.img\");\n"
73 " guestfs_launch (g);\n"
74 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
75 " guestfs_touch (g, \"/hello\");\n"
76 " guestfs_umount (g, \"/\");\n"
77 " guestfs_sync (g);\n"
78 " guestfs_close (g);\n"
79 "\n"
80 msgstr ""
81
82 # type: verbatim
83 #: ../src/guestfs.pod:20
84 #, no-wrap
85 msgid ""
86 " cc prog.c -o prog -lguestfs\n"
87 "or:\n"
88 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
89 "\n"
90 msgstr ""
91
92 # type: =head1
93 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:115
94 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:16
95 #: ../inspector/virt-inspector.pl:48 ../tools/virt-cat.pl:42
96 #: ../tools/virt-df.pl:46 ../tools/virt-edit.pl:51
97 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
98 #: ../tools/virt-ls.pl:43 ../tools/virt-make-fs.pl:47
99 #: ../tools/virt-rescue.pl:51 ../tools/virt-resize.pl:50
100 #: ../tools/virt-tar.pl:73 ../tools/virt-win-reg.pl:64
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 # type: textblock
105 #: ../src/guestfs.pod:26
106 msgid ""
107 "Libguestfs is a library for accessing and modifying guest disk images.  "
108 "Amongst the things this is good for: making batch configuration changes to "
109 "guests, getting disk used/free statistics (see also: virt-df), migrating "
110 "between virtualization systems (see also: virt-p2v), performing partial "
111 "backups, performing partial guest clones, cloning guests and changing "
112 "registry/UUID/hostname info, and much else besides."
113 msgstr ""
114
115 # type: textblock
116 #: ../src/guestfs.pod:34
117 msgid ""
118 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
119 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
120 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
121 "qcow2, vmdk."
122 msgstr ""
123
124 # type: textblock
125 #: ../src/guestfs.pod:39
126 msgid ""
127 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
128 "what filesystem is in each LV, etc.).  It can also run commands in the "
129 "context of the guest.  Also you can access filesystems over FUSE."
130 msgstr ""
131
132 # type: textblock
133 #: ../src/guestfs.pod:44
134 msgid ""
135 "Libguestfs is a library that can be linked with C and C++ management "
136 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
137 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
138 "line."
139 msgstr ""
140
141 # type: textblock
142 #: ../src/guestfs.pod:49
143 msgid ""
144 "You don't need to be root to use libguestfs, although obviously you do need "
145 "enough permissions to access the disk images."
146 msgstr ""
147
148 # type: textblock
149 #: ../src/guestfs.pod:52
150 msgid ""
151 "Libguestfs is a large API because it can do many things.  For a gentle "
152 "introduction, please read the L</API OVERVIEW> section next."
153 msgstr ""
154
155 # type: =head1
156 #: ../src/guestfs.pod:55
157 msgid "API OVERVIEW"
158 msgstr ""
159
160 # type: textblock
161 #: ../src/guestfs.pod:57
162 msgid ""
163 "This section provides a gentler overview of the libguestfs API.  We also try "
164 "to group API calls together, where that may not be obvious from reading "
165 "about the individual calls in the main section of this manual."
166 msgstr ""
167
168 # type: =head2
169 #: ../src/guestfs.pod:62
170 msgid "HANDLES"
171 msgstr ""
172
173 # type: textblock
174 #: ../src/guestfs.pod:64
175 msgid ""
176 "Before you can use libguestfs calls, you have to create a handle.  Then you "
177 "must add at least one disk image to the handle, followed by launching the "
178 "handle, then performing whatever operations you want, and finally closing "
179 "the handle.  By convention we use the single letter C<g> for the name of the "
180 "handle variable, although of course you can use any name you want."
181 msgstr ""
182
183 # type: textblock
184 #: ../src/guestfs.pod:71
185 msgid "The general structure of all libguestfs-using programs looks like this:"
186 msgstr ""
187
188 # type: verbatim
189 #: ../src/guestfs.pod:74
190 #, no-wrap
191 msgid ""
192 " guestfs_h *g = guestfs_create ();\n"
193 " \n"
194 msgstr ""
195
196 # type: verbatim
197 #: ../src/guestfs.pod:76
198 #, no-wrap
199 msgid ""
200 " /* Call guestfs_add_drive additional times if there are\n"
201 "  * multiple disk images.\n"
202 "  */\n"
203 " guestfs_add_drive (g, \"guest.img\");\n"
204 " \n"
205 msgstr ""
206
207 # type: verbatim
208 #: ../src/guestfs.pod:81
209 #, no-wrap
210 msgid ""
211 " /* Most manipulation calls won't work until you've launched\n"
212 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
213 "  * and _before_ other commands.\n"
214 "  */\n"
215 " guestfs_launch (g);\n"
216 " \n"
217 msgstr ""
218
219 # type: verbatim
220 #: ../src/guestfs.pod:87
221 #, no-wrap
222 msgid ""
223 " /* Now you can examine what partitions, LVs etc are available.\n"
224 "  */\n"
225 " char **partitions = guestfs_list_partitions (g);\n"
226 " char **logvols = guestfs_lvs (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #: ../src/guestfs.pod:92
232 #, no-wrap
233 msgid ""
234 " /* To access a filesystem in the image, you must mount it.\n"
235 "  */\n"
236 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
237 " \n"
238 msgstr ""
239
240 # type: verbatim
241 #: ../src/guestfs.pod:96
242 #, no-wrap
243 msgid ""
244 " /* Now you can perform filesystem actions on the guest\n"
245 "  * disk image.\n"
246 "  */\n"
247 " guestfs_touch (g, \"/hello\");\n"
248 " \n"
249 msgstr ""
250
251 # type: verbatim
252 #: ../src/guestfs.pod:101
253 #, no-wrap
254 msgid ""
255 " /* You only need to call guestfs_sync if you have made\n"
256 "  * changes to the guest image.  (But if you've made changes\n"
257 "  * then you *must* sync).  See also: guestfs_umount and\n"
258 "  * guestfs_umount_all calls.\n"
259 "  */\n"
260 " guestfs_sync (g);\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #: ../src/guestfs.pod:108
266 #, no-wrap
267 msgid ""
268 " /* Close the handle 'g'. */\n"
269 " guestfs_close (g);\n"
270 "\n"
271 msgstr ""
272
273 # type: textblock
274 #: ../src/guestfs.pod:111
275 msgid ""
276 "The code above doesn't include any error checking.  In real code you should "
277 "check return values carefully for errors.  In general all functions that "
278 "return integers return C<-1> on error, and all functions that return "
279 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
280 "how to handle errors, and consult the documentation for each function call "
281 "below to see precisely how they return error indications."
282 msgstr ""
283
284 # type: =head2
285 #: ../src/guestfs.pod:119
286 msgid "DISK IMAGES"
287 msgstr ""
288
289 # type: textblock
290 #: ../src/guestfs.pod:121
291 msgid ""
292 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
293 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
294 "actual block device, or simply an empty file of zeroes that you have created "
295 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
296 "of these."
297 msgstr ""
298
299 # type: textblock
300 #: ../src/guestfs.pod:127
301 msgid ""
302 "You can add a disk read-only using L</guestfs_add_drive_ro>, in which case "
303 "libguestfs won't modify the file."
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:130
308 msgid ""
309 "Be extremely cautious if the disk image is in use, eg. if it is being used "
310 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
311 "corruption, but adding it read-only is safe."
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:134
316 msgid ""
317 "You must add at least one disk image, and you may add multiple disk images.  "
318 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
319 "first one you added), C</dev/sdb> (for the second one you added), etc."
320 msgstr ""
321
322 # type: textblock
323 #: ../src/guestfs.pod:139
324 msgid ""
325 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
326 "can call L</guestfs_list_devices> to get a list of the device names, in the "
327 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
328 msgstr ""
329
330 # type: =head2
331 #: ../src/guestfs.pod:144
332 msgid "MOUNTING"
333 msgstr ""
334
335 # type: textblock
336 #: ../src/guestfs.pod:146
337 msgid ""
338 "Before you can read or write files, create directories and so on in a disk "
339 "image that contains filesystems, you have to mount those filesystems using "
340 "L</guestfs_mount>.  If you already know that a disk image contains (for "
341 "example) one partition with a filesystem on that partition, then you can "
342 "mount it directly:"
343 msgstr ""
344
345 # type: verbatim
346 #: ../src/guestfs.pod:152
347 #, no-wrap
348 msgid ""
349 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
350 "\n"
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
357 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
358 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
359 msgstr ""
360
361 # type: textblock
362 #: ../src/guestfs.pod:158
363 msgid ""
364 "If you are given a disk image and you don't know what it contains then you "
365 "have to find out.  Libguestfs can do that too: use L</"
366 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
367 "LVs, and either try mounting each to see what is mountable, or else examine "
368 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
369 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
370 "you might find it easier to look at higher level programs built on top of "
371 "libguestfs, in particular L<virt-inspector(1)>."
372 msgstr ""
373
374 # type: textblock
375 #: ../src/guestfs.pod:168
376 msgid ""
377 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
378 "several other variations of the C<guestfs_mount_*> call."
379 msgstr ""
380
381 # type: =head2
382 #: ../src/guestfs.pod:171
383 msgid "FILESYSTEM ACCESS AND MODIFICATION"
384 msgstr ""
385
386 # type: textblock
387 #: ../src/guestfs.pod:173
388 msgid ""
389 "The majority of the libguestfs API consists of fairly low-level calls for "
390 "accessing and modifying the files, directories, symlinks etc on mounted "
391 "filesystems.  There are over a hundred such calls which you can find listed "
392 "in detail below in this man page, and we don't even pretend to cover them "
393 "all in this overview."
394 msgstr ""
395
396 # type: textblock
397 #: ../src/guestfs.pod:179
398 msgid ""
399 "Specify filenames as full paths, starting with C<\"/\"> and including the "
400 "mount point."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:182
405 msgid ""
406 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
407 "the file called C<\"etc/passwd\"> then you could do:"
408 msgstr ""
409
410 # type: verbatim
411 #: ../src/guestfs.pod:185
412 #, no-wrap
413 msgid ""
414 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
415 "\n"
416 msgstr ""
417
418 # type: textblock
419 #: ../src/guestfs.pod:187
420 msgid ""
421 "This would return C<data> as a newly allocated buffer containing the full "
422 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
423 "or C<NULL> if there was an error."
424 msgstr ""
425
426 # type: textblock
427 #: ../src/guestfs.pod:191
428 msgid ""
429 "As another example, to create a top-level directory on that filesystem "
430 "called C<\"var\"> you would do:"
431 msgstr ""
432
433 # type: verbatim
434 #: ../src/guestfs.pod:194
435 #, no-wrap
436 msgid ""
437 " guestfs_mkdir (g, \"/var\");\n"
438 "\n"
439 msgstr ""
440
441 # type: textblock
442 #: ../src/guestfs.pod:196
443 msgid "To create a symlink you could do:"
444 msgstr ""
445
446 # type: verbatim
447 #: ../src/guestfs.pod:198
448 #, no-wrap
449 msgid ""
450 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
451 "               \"/etc/rc3.d/S30portmap\");\n"
452 "\n"
453 msgstr ""
454
455 # type: textblock
456 #: ../src/guestfs.pod:201
457 msgid ""
458 "Libguestfs will reject attempts to use relative paths and there is no "
459 "concept of a current working directory."
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:204
464 msgid ""
465 "Libguestfs can return errors in many situations: for example if the "
466 "filesystem isn't writable, or if a file or directory that you requested "
467 "doesn't exist.  If you are using the C API (documented here)  you have to "
468 "check for those error conditions after each call.  (Other language bindings "
469 "turn these errors into exceptions)."
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:210
474 msgid ""
475 "File writes are affected by the per-handle umask, set by calling L</"
476 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
477 msgstr ""
478
479 # type: =head2
480 #: ../src/guestfs.pod:213
481 msgid "PARTITIONING"
482 msgstr ""
483
484 # type: textblock
485 #: ../src/guestfs.pod:215
486 msgid ""
487 "Libguestfs contains API calls to read, create and modify partition tables on "
488 "disk images."
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:218
493 msgid ""
494 "In the common case where you want to create a single partition covering the "
495 "whole disk, you should use the L</guestfs_part_disk> call:"
496 msgstr ""
497
498 # type: verbatim
499 #: ../src/guestfs.pod:222
500 #, no-wrap
501 msgid ""
502 " const char *parttype = \"mbr\";\n"
503 " if (disk_is_larger_than_2TB)\n"
504 "   parttype = \"gpt\";\n"
505 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
506 "\n"
507 msgstr ""
508
509 # type: textblock
510 #: ../src/guestfs.pod:227
511 msgid ""
512 "Obviously this effectively wipes anything that was on that disk image before."
513 msgstr ""
514
515 # type: =head2
516 #: ../src/guestfs.pod:230
517 msgid "LVM2"
518 msgstr ""
519
520 # type: textblock
521 #: ../src/guestfs.pod:232
522 msgid ""
523 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
524 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
525 "you familiarize yourself with the concepts of physical volumes, volume "
526 "groups and logical volumes."
527 msgstr ""
528
529 # type: textblock
530 #: ../src/guestfs.pod:237
531 msgid ""
532 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
533 "tldp.org/HOWTO/LVM-HOWTO/>."
534 msgstr ""
535
536 # type: =head2
537 #: ../src/guestfs.pod:240
538 msgid "DOWNLOADING"
539 msgstr ""
540
541 # type: textblock
542 #: ../src/guestfs.pod:242
543 msgid ""
544 "Use L</guestfs_cat> to download small, text only files.  This call is "
545 "limited to files which are less than 2 MB and which cannot contain any ASCII "
546 "NUL (C<\\0>) characters.  However it has a very simple to use API."
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:247
551 msgid ""
552 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
553 "bit data, since it returns a (pointer, size) pair.  However it is still "
554 "limited to \"small\" files, less than 2 MB."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:251
559 msgid ""
560 "L</guestfs_download> can be used to download any file, with no limits on "
561 "content or size (even files larger than 4 GB)."
562 msgstr ""
563
564 # type: textblock
565 #: ../src/guestfs.pod:254
566 msgid ""
567 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
568 msgstr ""
569
570 # type: =head2
571 #: ../src/guestfs.pod:257
572 msgid "UPLOADING"
573 msgstr ""
574
575 # type: textblock
576 #: ../src/guestfs.pod:259
577 msgid ""
578 "It's often the case that you want to write a file or files to the disk image."
579 msgstr ""
580
581 # type: textblock
582 #: ../src/guestfs.pod:262
583 msgid ""
584 "To write a small file with fixed content, use L</guestfs_write>.  To create "
585 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
586 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
587 "of other functions for creating test files, for example L</guestfs_fill> and "
588 "L</guestfs_fill_pattern>."
589 msgstr ""
590
591 # type: textblock
592 #: ../src/guestfs.pod:268
593 msgid ""
594 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
595 "file content or size (even files larger than 4 GB)."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:271
600 msgid ""
601 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
602 msgstr ""
603
604 # type: textblock
605 #: ../src/guestfs.pod:273
606 msgid ""
607 "However the fastest way to upload I<large numbers of arbitrary files> is to "
608 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
609 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
610 "in a predictable way (eg. adding it last after all other drives) then you "
611 "can get the device name from L</guestfs_list_devices> and mount it directly "
612 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
613 "portable between kernel versions, and they don't support labels or UUIDs.  "
614 "If you want to pre-build an image or you need to mount it using a label or "
615 "UUID, use an ISO image instead."
616 msgstr ""
617
618 # type: =head2
619 #: ../src/guestfs.pod:284
620 msgid "COPYING"
621 msgstr ""
622
623 # type: textblock
624 #: ../src/guestfs.pod:286
625 msgid ""
626 "There are various different commands for copying between files and devices "
627 "and in and out of the guest filesystem.  These are summarised in the table "
628 "below."
629 msgstr ""
630
631 # type: =item
632 #: ../src/guestfs.pod:292
633 msgid "B<file> to B<file>"
634 msgstr ""
635
636 # type: textblock
637 #: ../src/guestfs.pod:294
638 msgid ""
639 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
640 "directories recursively."
641 msgstr ""
642
643 # type: =item
644 #: ../src/guestfs.pod:297
645 msgid "B<file or device> to B<file or device>"
646 msgstr ""
647
648 # type: textblock
649 #: ../src/guestfs.pod:299
650 msgid ""
651 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
652 "devices in the guest."
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:302
657 msgid "Example: duplicate the contents of an LV:"
658 msgstr ""
659
660 # type: verbatim
661 #: ../src/guestfs.pod:304
662 #, no-wrap
663 msgid ""
664 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
665 "\n"
666 msgstr ""
667
668 # type: textblock
669 #: ../src/guestfs.pod:306
670 msgid ""
671 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
672 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
673 "guestfs_copy_size>."
674 msgstr ""
675
676 # type: =item
677 #: ../src/guestfs.pod:310
678 msgid "B<file on the host> to B<file or device>"
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:312
683 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
684 msgstr ""
685
686 # type: =item
687 #: ../src/guestfs.pod:314
688 msgid "B<file or device> to B<file on the host>"
689 msgstr ""
690
691 # type: textblock
692 #: ../src/guestfs.pod:316
693 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
694 msgstr ""
695
696 # type: =head2
697 #: ../src/guestfs.pod:320
698 msgid "LISTING FILES"
699 msgstr ""
700
701 # type: textblock
702 #: ../src/guestfs.pod:322
703 msgid ""
704 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
705 "L<guestfish(1)>-equivalent command C<ll>)."
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:325
710 msgid ""
711 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
712 "programs, as a flat list of strings."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:328
717 msgid ""
718 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
719 "directory, plus additional information about each one.  It is more "
720 "equivalent to using the L<readdir(3)> call on a local filesystem."
721 msgstr ""
722
723 # type: textblock
724 #: ../src/guestfs.pod:332
725 msgid ""
726 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
727 msgstr ""
728
729 # type: =head2
730 #: ../src/guestfs.pod:335
731 msgid "RUNNING COMMANDS"
732 msgstr ""
733
734 # type: textblock
735 #: ../src/guestfs.pod:337
736 msgid ""
737 "Although libguestfs is primarily an API for manipulating files inside guest "
738 "images, we also provide some limited facilities for running commands inside "
739 "guests."
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:341
744 msgid "There are many limitations to this:"
745 msgstr ""
746
747 # type: =item
748 #: ../src/guestfs.pod:345 ../src/guestfs.pod:350 ../src/guestfs.pod:355
749 #: ../src/guestfs.pod:359 ../src/guestfs.pod:364 ../src/guestfs.pod:368
750 #: ../src/guestfs.pod:373 ../src/guestfs.pod:1223 ../src/guestfs.pod:1228
751 #: ../src/guestfs.pod:1232 ../src/guestfs.pod:1334 ../src/guestfs.pod:1338
752 #: ../src/guestfs.pod:1342 ../src/guestfs.pod:1347 ../src/guestfs.pod:1355
753 #: ../src/guestfs.pod:1374 ../src/guestfs.pod:1382 ../src/guestfs.pod:1612
754 #: ../src/guestfs.pod:1618 ../src/guestfs.pod:1623 ../src/guestfs.pod:1629
755 #: ../src/guestfs.pod:1736 ../src/guestfs.pod:1740 ../src/guestfs.pod:1744
756 #: ../src/guestfs.pod:1748 ../src/guestfs-actions.pod:14
757 #: ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:372
758 #: ../src/guestfs-actions.pod:380 ../src/guestfs-actions.pod:387
759 #: ../src/guestfs-actions.pod:394 ../src/guestfs-actions.pod:1257
760 #: ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:1265
761 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1277
762 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1285
763 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1299
764 #: ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1426
765 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1435
766 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1492
767 #: ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1501
768 #: ../fish/guestfish.pod:309 ../fish/guestfish.pod:313
769 #: ../fish/guestfish.pod:317 ../fish/guestfish.pod:321
770 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
771 #: ../fish/guestfish-actions.pod:300 ../fish/guestfish-actions.pod:308
772 #: ../fish/guestfish-actions.pod:315 ../fish/guestfish-actions.pod:322
773 #: ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1002
774 #: ../fish/guestfish-actions.pod:1006 ../fish/guestfish-actions.pod:1010
775 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1022
776 #: ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1036
777 #: ../fish/guestfish-actions.pod:1040 ../fish/guestfish-actions.pod:1044
778 #: ../fish/guestfish-actions.pod:1134 ../fish/guestfish-actions.pod:1138
779 #: ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1148
780 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1194
781 #: ../fish/guestfish-actions.pod:1199 ../tools/virt-resize.pl:324
782 #: ../tools/virt-resize.pl:329 ../tools/virt-resize.pl:339
783 msgid "*"
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:347
788 msgid ""
789 "The kernel version that the command runs under will be different from what "
790 "it expects."
791 msgstr ""
792
793 # type: textblock
794 #: ../src/guestfs.pod:352
795 msgid ""
796 "If the command needs to communicate with daemons, then most likely they "
797 "won't be running."
798 msgstr ""
799
800 # type: textblock
801 #: ../src/guestfs.pod:357
802 msgid "The command will be running in limited memory."
803 msgstr ""
804
805 # type: textblock
806 #: ../src/guestfs.pod:361
807 msgid ""
808 "The network may not be available unless you enable it (see L</"
809 "guestfs_set_network>)."
810 msgstr ""
811
812 # type: textblock
813 #: ../src/guestfs.pod:366
814 msgid "Only supports Linux guests (not Windows, BSD, etc)."
815 msgstr ""
816
817 # type: textblock
818 #: ../src/guestfs.pod:370
819 msgid ""
820 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
821 msgstr ""
822
823 # type: textblock
824 #: ../src/guestfs.pod:375
825 msgid ""
826 "For SELinux guests, you may need to enable SELinux and load policy first.  "
827 "See L</SELINUX> in this manpage."
828 msgstr ""
829
830 # type: textblock
831 #: ../src/guestfs.pod:380
832 msgid ""
833 "The two main API calls to run commands are L</guestfs_command> and L</"
834 "guestfs_sh> (there are also variations)."
835 msgstr ""
836
837 # type: textblock
838 #: ../src/guestfs.pod:383
839 msgid ""
840 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
841 "shell globs, redirections, etc will work."
842 msgstr ""
843
844 # type: =head2
845 #: ../src/guestfs.pod:386
846 msgid "CONFIGURATION FILES"
847 msgstr ""
848
849 # type: textblock
850 #: ../src/guestfs.pod:388
851 msgid ""
852 "To read and write configuration files in Linux guest filesystems, we "
853 "strongly recommend using Augeas.  For example, Augeas understands how to "
854 "read and write, say, a Linux shadow password file or X.org configuration "
855 "file, and so avoids you having to write that code."
856 msgstr ""
857
858 # type: textblock
859 #: ../src/guestfs.pod:393
860 msgid ""
861 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
862 "document Augeas itself here because there is excellent documentation on the "
863 "L<http://augeas.net/> website."
864 msgstr ""
865
866 # type: textblock
867 #: ../src/guestfs.pod:397
868 msgid ""
869 "If you don't want to use Augeas (you fool!) then try calling L</"
870 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
871 "over."
872 msgstr ""
873
874 # type: =head2
875 #: ../src/guestfs.pod:401
876 msgid "SELINUX"
877 msgstr ""
878
879 # type: textblock
880 #: ../src/guestfs.pod:403
881 msgid ""
882 "We support SELinux guests.  To ensure that labeling happens correctly in "
883 "SELinux guests, you need to enable SELinux and load the guest's policy:"
884 msgstr ""
885
886 # type: =item
887 #: ../src/guestfs.pod:409
888 msgid "1."
889 msgstr ""
890
891 # type: textblock
892 #: ../src/guestfs.pod:411
893 msgid "Before launching, do:"
894 msgstr ""
895
896 # type: verbatim
897 #: ../src/guestfs.pod:413
898 #, no-wrap
899 msgid ""
900 " guestfs_set_selinux (g, 1);\n"
901 "\n"
902 msgstr ""
903
904 # type: =item
905 #: ../src/guestfs.pod:415
906 msgid "2."
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:417
911 msgid ""
912 "After mounting the guest's filesystem(s), load the policy.  This is best "
913 "done by running the L<load_policy(8)> command in the guest itself:"
914 msgstr ""
915
916 # type: verbatim
917 #: ../src/guestfs.pod:421
918 #, no-wrap
919 msgid ""
920 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
921 "\n"
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:423
926 msgid ""
927 "(Older versions of C<load_policy> require you to specify the name of the "
928 "policy file)."
929 msgstr ""
930
931 # type: =item
932 #: ../src/guestfs.pod:426
933 msgid "3."
934 msgstr ""
935
936 # type: textblock
937 #: ../src/guestfs.pod:428
938 msgid ""
939 "Optionally, set the security context for the API.  The correct security "
940 "context to use can only be known by inspecting the guest.  As an example:"
941 msgstr ""
942
943 # type: verbatim
944 #: ../src/guestfs.pod:432
945 #, no-wrap
946 msgid ""
947 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
948 "\n"
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:436
953 msgid "This will work for running commands and editing existing files."
954 msgstr ""
955
956 # type: textblock
957 #: ../src/guestfs.pod:438
958 msgid ""
959 "When new files are created, you may need to label them explicitly, for "
960 "example by running the external command C<restorecon pathname>."
961 msgstr ""
962
963 # type: =head2
964 #: ../src/guestfs.pod:442
965 msgid "UMASK"
966 msgstr ""
967
968 # type: textblock
969 #: ../src/guestfs.pod:444
970 msgid ""
971 "Certain calls are affected by the current file mode creation mask (the "
972 "\"umask\").  In particular ones which create files or directories, such as "
973 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
974 "either the default mode that the file is created with or modifies the mode "
975 "that you supply."
976 msgstr ""
977
978 # type: textblock
979 #: ../src/guestfs.pod:450
980 msgid ""
981 "The default umask is C<022>, so files are created with modes such as C<0644> "
982 "and directories with C<0755>."
983 msgstr ""
984
985 # type: textblock
986 #: ../src/guestfs.pod:453
987 msgid ""
988 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
989 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
990 "guestfs_chmod> after creating each file or directory."
991 msgstr ""
992
993 # type: textblock
994 #: ../src/guestfs.pod:457
995 msgid "For more information about umask, see L<umask(2)>."
996 msgstr ""
997
998 # type: =head1
999 #: ../src/guestfs.pod:459 ../fish/guestfish.pod:559
1000 msgid "ENCRYPTED DISKS"
1001 msgstr ""
1002
1003 # type: textblock
1004 #: ../src/guestfs.pod:461
1005 msgid ""
1006 "Libguestfs allows you to access Linux guests which have been encrypted using "
1007 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1008 "standard.  This includes nearly all whole disk encryption systems used by "
1009 "modern Linux guests."
1010 msgstr ""
1011
1012 # type: textblock
1013 #: ../src/guestfs.pod:467
1014 msgid ""
1015 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1016 "returns the string C<crypto_LUKS>)."
1017 msgstr ""
1018
1019 # type: textblock
1020 #: ../src/guestfs.pod:470
1021 msgid ""
1022 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1023 "will require the passphrase!"
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:473
1028 msgid ""
1029 "Opening a LUKS device creates a new device mapper device called C</dev/"
1030 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1031 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1032 "from and encrypted to the underlying block device respectively."
1033 msgstr ""
1034
1035 # type: textblock
1036 #: ../src/guestfs.pod:479
1037 msgid ""
1038 "LVM volume groups on the device can be made visible by calling L</"
1039 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1040 "(s) can now be mounted in the usual way."
1041 msgstr ""
1042
1043 # type: textblock
1044 #: ../src/guestfs.pod:483
1045 msgid ""
1046 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1047 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1048 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1049 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1050 "underlying encrypted block device)."
1051 msgstr ""
1052
1053 # type: =head2
1054 #: ../src/guestfs.pod:490
1055 msgid "INSPECTION"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1062 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1063 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1064 "frequently used part of this library has been rewritten in C and moved into "
1065 "the core code)."
1066 msgstr ""
1067
1068 # type: textblock
1069 #: ../src/guestfs.pod:498
1070 msgid ""
1071 "Add all disks belonging to the unknown virtual machine and call L</"
1072 "guestfs_launch> in the usual way."
1073 msgstr ""
1074
1075 # type: textblock
1076 #: ../src/guestfs.pod:501
1077 msgid ""
1078 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1079 "and certain heuristics, and returns a list of operating systems that were "
1080 "found.  An empty list means none were found.  A single element is the root "
1081 "filesystem of the operating system.  For dual- or multi-boot guests, "
1082 "multiple roots can be returned, each one corresponding to a separate "
1083 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1084 "world of virtualization, but since this scenario can happen, we have built "
1085 "libguestfs to deal with it.)"
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:510
1090 msgid ""
1091 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1092 "to get additional details about that operating system.  For example, call L</"
1093 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1094 "Windows and Linux-based operating systems respectively."
1095 msgstr ""
1096
1097 # type: textblock
1098 #: ../src/guestfs.pod:516
1099 msgid ""
1100 "Un*x-like and Linux-based operating systems usually consist of several "
1101 "filesystems which are mounted at boot time (for example, a separate boot "
1102 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1103 "filesystems correspond to mount points.  Call "
1104 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1105 "hash table like this example:"
1106 msgstr ""
1107
1108 # type: verbatim
1109 #: ../src/guestfs.pod:523
1110 #, no-wrap
1111 msgid ""
1112 " /boot => /dev/sda1\n"
1113 " /     => /dev/vg_guest/lv_root\n"
1114 " /usr  => /dev/vg_guest/lv_usr\n"
1115 "\n"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:527
1120 msgid ""
1121 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1122 "filesystems as suggested."
1123 msgstr ""
1124
1125 # type: textblock
1126 #: ../src/guestfs.pod:530
1127 msgid ""
1128 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1129 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1130 msgstr ""
1131
1132 # type: textblock
1133 #: ../src/guestfs.pod:534
1134 msgid ""
1135 "Inspection currently only works for some common operating systems.  "
1136 "Contributors are welcome to send patches for other operating systems that we "
1137 "currently cannot detect."
1138 msgstr ""
1139
1140 # type: textblock
1141 #: ../src/guestfs.pod:538
1142 msgid ""
1143 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1144 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1145 "encrypted devices."
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:542
1150 msgid ""
1151 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1152 "inspection and caches the results in the guest handle.  Subsequent calls to "
1153 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1154 "read the disks.  If you change the content of the guest disks, you can redo "
1155 "inspection by calling L</guestfs_inspect_os> again."
1156 msgstr ""
1157
1158 # type: =head2
1159 #: ../src/guestfs.pod:549
1160 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1161 msgstr ""
1162
1163 # type: textblock
1164 #: ../src/guestfs.pod:551
1165 msgid ""
1166 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1167 "ntfs-3g.org/> driver."
1168 msgstr ""
1169
1170 # type: textblock
1171 #: ../src/guestfs.pod:554
1172 msgid ""
1173 "DOS and Windows still use drive letters, and the filesystems are always "
1174 "treated as case insensitive by Windows itself, and therefore you might find "
1175 "a Windows configuration file referring to a path like C<c:\\windows"
1176 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1177 "might be referred to as C</WINDOWS/System32>."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:560
1182 msgid ""
1183 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1184 "libguestfs to read the appropriate Windows Registry and configuration files, "
1185 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1186 "inspector(1)>)."
1187 msgstr ""
1188
1189 # type: textblock
1190 #: ../src/guestfs.pod:565
1191 msgid ""
1192 "Replacing backslash characters with forward slash characters is also outside "
1193 "the scope of libguestfs, but something that you can easily do."
1194 msgstr ""
1195
1196 # type: textblock
1197 #: ../src/guestfs.pod:568
1198 msgid ""
1199 "Where we can help is in resolving the case insensitivity of paths.  For "
1200 "this, call L</guestfs_case_sensitive_path>."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:571
1205 msgid ""
1206 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1207 "files, through the library C<hivex> which is part of the libguestfs project "
1208 "although ships as a separate tarball.  You have to locate and download the "
1209 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1210 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1211 "reg(1)> for more help on this issue."
1212 msgstr ""
1213
1214 # type: =head2
1215 #: ../src/guestfs.pod:579
1216 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1217 msgstr ""
1218
1219 # type: textblock
1220 #: ../src/guestfs.pod:581
1221 msgid ""
1222 "Although we don't want to discourage you from using the C API, we will "
1223 "mention here that the same API is also available in other languages."
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:584
1228 msgid ""
1229 "The API is broadly identical in all supported languages.  This means that "
1230 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1231 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1232 "words, a straightforward, predictable isomorphism between each language."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:590
1237 msgid ""
1238 "Error messages are automatically transformed into exceptions if the language "
1239 "supports it."
1240 msgstr ""
1241
1242 # type: textblock
1243 #: ../src/guestfs.pod:593
1244 msgid ""
1245 "We don't try to \"object orientify\" parts of the API in OO languages, "
1246 "although contributors are welcome to write higher level APIs above what we "
1247 "provide in their favourite languages if they wish."
1248 msgstr ""
1249
1250 # type: =item
1251 #: ../src/guestfs.pod:599
1252 msgid "B<C++>"
1253 msgstr ""
1254
1255 # type: textblock
1256 #: ../src/guestfs.pod:601
1257 msgid ""
1258 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1259 "identical to the C API.  C++ classes and exceptions are not used."
1260 msgstr ""
1261
1262 # type: =item
1263 #: ../src/guestfs.pod:605
1264 msgid "B<C#>"
1265 msgstr ""
1266
1267 # type: textblock
1268 #: ../src/guestfs.pod:607
1269 msgid ""
1270 "The C# bindings are highly experimental.  Please read the warnings at the "
1271 "top of C<csharp/Libguestfs.cs>."
1272 msgstr ""
1273
1274 # type: =item
1275 #: ../src/guestfs.pod:610
1276 msgid "B<Haskell>"
1277 msgstr ""
1278
1279 # type: textblock
1280 #: ../src/guestfs.pod:612
1281 msgid ""
1282 "This is the only language binding that is working but incomplete.  Only "
1283 "calls which return simple integers have been bound in Haskell, and we are "
1284 "looking for help to complete this binding."
1285 msgstr ""
1286
1287 # type: =item
1288 #: ../src/guestfs.pod:616
1289 msgid "B<Java>"
1290 msgstr ""
1291
1292 # type: textblock
1293 #: ../src/guestfs.pod:618
1294 msgid ""
1295 "Full documentation is contained in the Javadoc which is distributed with "
1296 "libguestfs."
1297 msgstr ""
1298
1299 # type: =item
1300 #: ../src/guestfs.pod:621
1301 msgid "B<OCaml>"
1302 msgstr ""
1303
1304 # type: textblock
1305 #: ../src/guestfs.pod:623
1306 msgid "For documentation see the file C<guestfs.mli>."
1307 msgstr ""
1308
1309 # type: =item
1310 #: ../src/guestfs.pod:625
1311 msgid "B<Perl>"
1312 msgstr ""
1313
1314 # type: textblock
1315 #: ../src/guestfs.pod:627
1316 msgid "For documentation see L<Sys::Guestfs(3)>."
1317 msgstr ""
1318
1319 # type: =item
1320 #: ../src/guestfs.pod:629
1321 msgid "B<PHP>"
1322 msgstr ""
1323
1324 # type: textblock
1325 #: ../src/guestfs.pod:631
1326 msgid ""
1327 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1328 "the php-libguestfs package for your distribution."
1329 msgstr ""
1330
1331 # type: textblock
1332 #: ../src/guestfs.pod:634
1333 msgid "The PHP binding only works correctly on 64 bit machines."
1334 msgstr ""
1335
1336 # type: =item
1337 #: ../src/guestfs.pod:636
1338 msgid "B<Python>"
1339 msgstr ""
1340
1341 # type: textblock
1342 #: ../src/guestfs.pod:638
1343 msgid "For documentation do:"
1344 msgstr ""
1345
1346 # type: verbatim
1347 #: ../src/guestfs.pod:640
1348 #, no-wrap
1349 msgid ""
1350 " $ python\n"
1351 " >>> import guestfs\n"
1352 " >>> help (guestfs)\n"
1353 "\n"
1354 msgstr ""
1355
1356 # type: =item
1357 #: ../src/guestfs.pod:644
1358 msgid "B<Ruby>"
1359 msgstr ""
1360
1361 # type: textblock
1362 #: ../src/guestfs.pod:646
1363 msgid ""
1364 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1365 "can find examples written in Ruby in the libguestfs source."
1366 msgstr ""
1367
1368 # type: =item
1369 #: ../src/guestfs.pod:649
1370 msgid "B<shell scripts>"
1371 msgstr ""
1372
1373 # type: textblock
1374 #: ../src/guestfs.pod:651
1375 msgid "For documentation see L<guestfish(1)>."
1376 msgstr ""
1377
1378 # type: =head2
1379 #: ../src/guestfs.pod:655
1380 msgid "LIBGUESTFS GOTCHAS"
1381 msgstr ""
1382
1383 # type: textblock
1384 #: ../src/guestfs.pod:657
1385 msgid ""
1386 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1387 "system [...] that works in the way it is documented but is counterintuitive "
1388 "and almost invites mistakes.\""
1389 msgstr ""
1390
1391 # type: textblock
1392 #: ../src/guestfs.pod:661
1393 msgid ""
1394 "Since we developed libguestfs and the associated tools, there are several "
1395 "things we would have designed differently, but are now stuck with for "
1396 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1397 "release, you can expect these to change.  Beware of them."
1398 msgstr ""
1399
1400 # type: =item
1401 #: ../src/guestfs.pod:669
1402 msgid "Autosync / forgetting to sync."
1403 msgstr ""
1404
1405 # type: textblock
1406 #: ../src/guestfs.pod:671
1407 msgid ""
1408 "When modifying a filesystem from C or another language, you B<must> unmount "
1409 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1410 "libguestfs handle.  You can also call:"
1411 msgstr ""
1412
1413 # type: verbatim
1414 #: ../src/guestfs.pod:675
1415 #, no-wrap
1416 msgid ""
1417 " guestfs_set_autosync (g, 1);\n"
1418 "\n"
1419 msgstr ""
1420
1421 # type: textblock
1422 #: ../src/guestfs.pod:677
1423 msgid ""
1424 "to have the unmount/sync done automatically for you when the handle 'g' is "
1425 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:681
1430 msgid ""
1431 "If you forget to do this, then it is entirely possible that your changes "
1432 "won't be written out, or will be partially written, or (very rarely) that "
1433 "you'll get disk corruption."
1434 msgstr ""
1435
1436 # type: textblock
1437 #: ../src/guestfs.pod:685
1438 msgid ""
1439 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1440 "guestfish scripts that forget to sync will work just fine, which can make "
1441 "this very puzzling if you are trying to debug a problem."
1442 msgstr ""
1443
1444 # type: =item
1445 #: ../src/guestfs.pod:689
1446 msgid "Mount option C<-o sync> should not be the default."
1447 msgstr ""
1448
1449 # type: textblock
1450 #: ../src/guestfs.pod:691
1451 msgid ""
1452 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1453 "However C<-o sync> does not add any reliability benefit, but does have a "
1454 "very large performance impact."
1455 msgstr ""
1456
1457 # type: textblock
1458 #: ../src/guestfs.pod:695
1459 msgid ""
1460 "The work around is to use L</guestfs_mount_options> and set the mount "
1461 "options that you actually want to use."
1462 msgstr ""
1463
1464 # type: =item
1465 #: ../src/guestfs.pod:698
1466 msgid "Read-only should be the default."
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:700
1471 msgid ""
1472 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1473 "specify I<--rw> if you want to make changes to the image."
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:703
1478 msgid "This would reduce the potential to corrupt live VM images."
1479 msgstr ""
1480
1481 # type: textblock
1482 #: ../src/guestfs.pod:705
1483 msgid ""
1484 "Note that many filesystems change the disk when you just mount and unmount, "
1485 "even if you didn't perform any writes.  You need to use L</"
1486 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1487 msgstr ""
1488
1489 # type: =item
1490 #: ../src/guestfs.pod:709
1491 msgid "guestfish command line is hard to use."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:711
1496 msgid ""
1497 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1498 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1499 "exist, so it fails.  In earlier versions of guestfish the error message was "
1500 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1501 "we should have used C<guestfish -c command> to run commands."
1502 msgstr ""
1503
1504 # type: =item
1505 #: ../src/guestfs.pod:718
1506 msgid "guestfish megabyte modifiers don't work right on all commands"
1507 msgstr ""
1508
1509 # type: textblock
1510 #: ../src/guestfs.pod:720
1511 msgid ""
1512 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1513 "other modifiers).  What guestfish actually does is to multiply the number "
1514 "part by the modifier part and pass the result to the C API.  However this "
1515 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1516 "expecting some other unit (eg. megabytes)."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:727
1521 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1522 msgstr ""
1523
1524 # type: verbatim
1525 #: ../src/guestfs.pod:729
1526 #, no-wrap
1527 msgid ""
1528 " lvcreate LV VG 100M\n"
1529 "\n"
1530 msgstr ""
1531
1532 # type: textblock
1533 #: ../src/guestfs.pod:731
1534 msgid ""
1535 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1536 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1537 "megabytes * megabytes) logical volume.  The error message you get from this "
1538 "is also a little obscure."
1539 msgstr ""
1540
1541 # type: textblock
1542 #: ../src/guestfs.pod:736
1543 msgid ""
1544 "This could be fixed in the generator by specially marking parameters and "
1545 "return values which take bytes or other units."
1546 msgstr ""
1547
1548 # type: =item
1549 #: ../src/guestfs.pod:739
1550 msgid "Library should return errno with error messages."
1551 msgstr ""
1552
1553 # type: textblock
1554 #: ../src/guestfs.pod:741
1555 msgid ""
1556 "It would be a nice-to-have to be able to get the original value of 'errno' "
1557 "from inside the appliance along error paths (where set).  Currently "
1558 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1559 "string into an errno, see the function error() in fuse/guestmount.c."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:747
1564 msgid ""
1565 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1566 "sent back from the daemon."
1567 msgstr ""
1568
1569 # type: =head2
1570 #: ../src/guestfs.pod:752
1571 msgid "PROTOCOL LIMITS"
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:754
1576 msgid ""
1577 "Internally libguestfs uses a message-based protocol to pass API calls and "
1578 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1579 "plenty more detail about this).  The maximum message size used by the "
1580 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1581 "aware of this limit.  The API calls which may be affected are individually "
1582 "documented, with a link back to this section of the documentation."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:762
1587 msgid ""
1588 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1589 "a simple string.  Because this string is at some point internally encoded as "
1590 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1591 "the requested file is larger than this then you will get an error."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:768
1596 msgid ""
1597 "In order to transfer large files into and out of the guest filesystem, you "
1598 "need to use particular calls that support this.  The sections L</UPLOADING> "
1599 "and L</DOWNLOADING> document how to do this."
1600 msgstr ""
1601
1602 # type: textblock
1603 #: ../src/guestfs.pod:772
1604 msgid ""
1605 "You might also consider mounting the disk image using our FUSE filesystem "
1606 "support (L<guestmount(1)>)."
1607 msgstr ""
1608
1609 # type: =head2
1610 #: ../src/guestfs.pod:775
1611 msgid "KEYS AND PASSPHRASES"
1612 msgstr ""
1613
1614 # type: textblock
1615 #: ../src/guestfs.pod:777
1616 msgid ""
1617 "Certain libguestfs calls take a parameter that contains sensitive key "
1618 "material, passed in as a C string."
1619 msgstr ""
1620
1621 # type: textblock
1622 #: ../src/guestfs.pod:780
1623 msgid ""
1624 "In the future we would hope to change the libguestfs implementation so that "
1625 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1626 "swap.  However this is I<not> done at the moment, because of the complexity "
1627 "of such an implementation."
1628 msgstr ""
1629
1630 # type: textblock
1631 #: ../src/guestfs.pod:785
1632 msgid ""
1633 "Therefore you should be aware that any key parameter you pass to libguestfs "
1634 "might end up being written out to the swap partition.  If this is a concern, "
1635 "scrub the swap partition or don't use libguestfs on encrypted devices."
1636 msgstr ""
1637
1638 # type: =head1
1639 #: ../src/guestfs.pod:790
1640 msgid "CONNECTION MANAGEMENT"
1641 msgstr ""
1642
1643 # type: =head2
1644 #: ../src/guestfs.pod:792
1645 msgid "guestfs_h *"
1646 msgstr ""
1647
1648 # type: textblock
1649 #: ../src/guestfs.pod:794
1650 msgid ""
1651 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1652 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1653 "handle and release all resources used."
1654 msgstr ""
1655
1656 # type: textblock
1657 #: ../src/guestfs.pod:798
1658 msgid ""
1659 "For information on using multiple handles and threads, see the section L</"
1660 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1661 msgstr ""
1662
1663 # type: =head2
1664 #: ../src/guestfs.pod:801
1665 msgid "guestfs_create"
1666 msgstr ""
1667
1668 # type: verbatim
1669 #: ../src/guestfs.pod:803
1670 #, no-wrap
1671 msgid ""
1672 " guestfs_h *guestfs_create (void);\n"
1673 "\n"
1674 msgstr ""
1675
1676 # type: textblock
1677 #: ../src/guestfs.pod:805
1678 msgid "Create a connection handle."
1679 msgstr ""
1680
1681 # type: textblock
1682 #: ../src/guestfs.pod:807
1683 msgid "You have to call L</guestfs_add_drive> on the handle at least once."
1684 msgstr ""
1685
1686 # type: textblock
1687 #: ../src/guestfs.pod:809
1688 msgid ""
1689 "This function returns a non-NULL pointer to a handle on success or NULL on "
1690 "error."
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:812
1695 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:814
1700 msgid ""
1701 "You may also want to configure error handling for the handle.  See L</ERROR "
1702 "HANDLING> section below."
1703 msgstr ""
1704
1705 # type: =head2
1706 #: ../src/guestfs.pod:817
1707 msgid "guestfs_close"
1708 msgstr ""
1709
1710 # type: verbatim
1711 #: ../src/guestfs.pod:819
1712 #, no-wrap
1713 msgid ""
1714 " void guestfs_close (guestfs_h *g);\n"
1715 "\n"
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:821
1720 msgid "This closes the connection handle and frees up all resources used."
1721 msgstr ""
1722
1723 # type: =head1
1724 #: ../src/guestfs.pod:823
1725 msgid "ERROR HANDLING"
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:825
1730 msgid ""
1731 "The convention in all functions that return C<int> is that they return C<-1> "
1732 "to indicate an error.  You can get additional information on errors by "
1733 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1734 "guestfs_set_error_handler>."
1735 msgstr ""
1736
1737 # type: textblock
1738 #: ../src/guestfs.pod:830
1739 msgid "The default error handler prints the information string to C<stderr>."
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:832
1744 msgid ""
1745 "Out of memory errors are handled differently.  The default action is to call "
1746 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1747 "guestfs_set_out_of_memory_handler>."
1748 msgstr ""
1749
1750 # type: =head2
1751 #: ../src/guestfs.pod:836
1752 msgid "guestfs_last_error"
1753 msgstr ""
1754
1755 # type: verbatim
1756 #: ../src/guestfs.pod:838
1757 #, no-wrap
1758 msgid ""
1759 " const char *guestfs_last_error (guestfs_h *g);\n"
1760 "\n"
1761 msgstr ""
1762
1763 # type: textblock
1764 #: ../src/guestfs.pod:840
1765 msgid ""
1766 "This returns the last error message that happened on C<g>.  If there has not "
1767 "been an error since the handle was created, then this returns C<NULL>."
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:844
1772 msgid ""
1773 "The lifetime of the returned string is until the next error occurs, or L</"
1774 "guestfs_close> is called."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:847
1779 msgid ""
1780 "The error string is not localized (ie. is always in English), because this "
1781 "makes searching for error messages in search engines give the largest number "
1782 "of results."
1783 msgstr ""
1784
1785 # type: =head2
1786 #: ../src/guestfs.pod:851
1787 msgid "guestfs_set_error_handler"
1788 msgstr ""
1789
1790 # type: verbatim
1791 #: ../src/guestfs.pod:853
1792 #, no-wrap
1793 msgid ""
1794 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1795 "                                           void *opaque,\n"
1796 "                                           const char *msg);\n"
1797 " void guestfs_set_error_handler (guestfs_h *g,\n"
1798 "                                 guestfs_error_handler_cb cb,\n"
1799 "                                 void *opaque);\n"
1800 "\n"
1801 msgstr ""
1802
1803 # type: textblock
1804 #: ../src/guestfs.pod:860
1805 msgid ""
1806 "The callback C<cb> will be called if there is an error.  The parameters "
1807 "passed to the callback are an opaque data pointer and the error message "
1808 "string."
1809 msgstr ""
1810
1811 # type: textblock
1812 #: ../src/guestfs.pod:864
1813 msgid ""
1814 "Note that the message string C<msg> is freed as soon as the callback "
1815 "function returns, so if you want to stash it somewhere you must make your "
1816 "own copy."
1817 msgstr ""
1818
1819 # type: textblock
1820 #: ../src/guestfs.pod:868
1821 msgid "The default handler prints messages on C<stderr>."
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:870
1826 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1827 msgstr ""
1828
1829 # type: =head2
1830 #: ../src/guestfs.pod:872
1831 msgid "guestfs_get_error_handler"
1832 msgstr ""
1833
1834 # type: verbatim
1835 #: ../src/guestfs.pod:874
1836 #, no-wrap
1837 msgid ""
1838 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1839 "                                                     void **opaque_rtn);\n"
1840 "\n"
1841 msgstr ""
1842
1843 # type: textblock
1844 #: ../src/guestfs.pod:877
1845 msgid "Returns the current error handler callback."
1846 msgstr ""
1847
1848 # type: =head2
1849 #: ../src/guestfs.pod:879
1850 msgid "guestfs_set_out_of_memory_handler"
1851 msgstr ""
1852
1853 # type: verbatim
1854 #: ../src/guestfs.pod:881
1855 #, no-wrap
1856 msgid ""
1857 " typedef void (*guestfs_abort_cb) (void);\n"
1858 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1859 "                                        guestfs_abort_cb);\n"
1860 "\n"
1861 msgstr ""
1862
1863 # type: textblock
1864 #: ../src/guestfs.pod:885
1865 msgid ""
1866 "The callback C<cb> will be called if there is an out of memory situation.  "
1867 "I<Note this callback must not return>."
1868 msgstr ""
1869
1870 # type: textblock
1871 #: ../src/guestfs.pod:888
1872 msgid "The default is to call L<abort(3)>."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:890
1877 msgid ""
1878 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1879 msgstr ""
1880
1881 # type: =head2
1882 #: ../src/guestfs.pod:893
1883 msgid "guestfs_get_out_of_memory_handler"
1884 msgstr ""
1885
1886 # type: verbatim
1887 #: ../src/guestfs.pod:895
1888 #, no-wrap
1889 msgid ""
1890 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1891 "\n"
1892 msgstr ""
1893
1894 # type: textblock
1895 #: ../src/guestfs.pod:897
1896 msgid "This returns the current out of memory handler."
1897 msgstr ""
1898
1899 # type: =head1
1900 #: ../src/guestfs.pod:899
1901 msgid "PATH"
1902 msgstr ""
1903
1904 # type: textblock
1905 #: ../src/guestfs.pod:901
1906 msgid ""
1907 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1908 "internal path."
1909 msgstr ""
1910
1911 # type: textblock
1912 #: ../src/guestfs.pod:904
1913 msgid ""
1914 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1915 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1916 msgstr ""
1917
1918 # type: textblock
1919 #: ../src/guestfs.pod:907
1920 msgid ""
1921 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1922 "to change the directories that libguestfs will search in.  The value is a "
1923 "colon-separated list of paths.  The current directory is I<not> searched "
1924 "unless the path contains an empty element or C<.>.  For example "
1925 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1926 "then C</usr/lib/guestfs>."
1927 msgstr ""
1928
1929 # type: =head1
1930 #: ../src/guestfs.pod:914
1931 msgid "HIGH-LEVEL API ACTIONS"
1932 msgstr ""
1933
1934 # type: =head2
1935 #: ../src/guestfs.pod:916
1936 msgid "ABI GUARANTEE"
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:918
1941 msgid ""
1942 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1943 "actions as outlined in this section.  Although we will deprecate some "
1944 "actions, for example if they get replaced by newer calls, we will keep the "
1945 "old actions forever.  This allows you the developer to program in confidence "
1946 "against the libguestfs API."
1947 msgstr ""
1948
1949 # type: textblock
1950 #: ../src/guestfs.pod:924 ../fish/guestfish.pod:926
1951 msgid "@ACTIONS@"
1952 msgstr ""
1953
1954 # type: =head1
1955 #: ../src/guestfs.pod:926
1956 msgid "STRUCTURES"
1957 msgstr ""
1958
1959 # type: textblock
1960 #: ../src/guestfs.pod:928
1961 msgid "@STRUCTS@"
1962 msgstr ""
1963
1964 # type: =head1
1965 #: ../src/guestfs.pod:930
1966 msgid "AVAILABILITY"
1967 msgstr ""
1968
1969 # type: =head2
1970 #: ../src/guestfs.pod:932
1971 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
1972 msgstr ""
1973
1974 # type: textblock
1975 #: ../src/guestfs.pod:934
1976 msgid ""
1977 "Using L</guestfs_available> you can test availability of the following "
1978 "groups of functions.  This test queries the appliance to see if the "
1979 "appliance you are currently using supports the functionality."
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:939
1984 msgid "@AVAILABILITY@"
1985 msgstr ""
1986
1987 # type: =head2
1988 #: ../src/guestfs.pod:941
1989 msgid "GUESTFISH supported COMMAND"
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:943
1994 msgid ""
1995 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
1996 "prints out the available groups and whether they are supported by this build "
1997 "of libguestfs.  Note however that you have to do C<run> first."
1998 msgstr ""
1999
2000 # type: =head2
2001 #: ../src/guestfs.pod:948
2002 msgid "SINGLE CALLS AT COMPILE TIME"
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:950
2007 msgid ""
2008 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2009 "function, such as:"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #: ../src/guestfs.pod:953
2014 #, no-wrap
2015 msgid ""
2016 " #define LIBGUESTFS_HAVE_DD 1\n"
2017 "\n"
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:955
2022 msgid "if L</guestfs_dd> is available."
2023 msgstr ""
2024
2025 # type: textblock
2026 #: ../src/guestfs.pod:957
2027 msgid ""
2028 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2029 "function is available at compile time, we recommended using build tools such "
2030 "as autoconf or cmake.  For example in autotools you could use:"
2031 msgstr ""
2032
2033 # type: verbatim
2034 #: ../src/guestfs.pod:962
2035 #, no-wrap
2036 msgid ""
2037 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2038 " AC_CHECK_FUNCS([guestfs_dd])\n"
2039 "\n"
2040 msgstr ""
2041
2042 # type: textblock
2043 #: ../src/guestfs.pod:965
2044 msgid ""
2045 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2046 "in your program."
2047 msgstr ""
2048
2049 # type: =head2
2050 #: ../src/guestfs.pod:968
2051 msgid "SINGLE CALLS AT RUN TIME"
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:970
2056 msgid ""
2057 "Testing at compile time doesn't guarantee that a function really exists in "
2058 "the library.  The reason is that you might be dynamically linked against a "
2059 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2060 "This situation unfortunately results in a segmentation fault, which is a "
2061 "shortcoming of the C dynamic linking system itself."
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:977
2066 msgid ""
2067 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2068 "in this example program (note that you still need the compile time check as "
2069 "well):"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:981
2074 #, no-wrap
2075 msgid ""
2076 " #include <stdio.h>\n"
2077 " #include <stdlib.h>\n"
2078 " #include <unistd.h>\n"
2079 " #include <dlfcn.h>\n"
2080 " #include <guestfs.h>\n"
2081 " \n"
2082 msgstr ""
2083
2084 # type: verbatim
2085 #: ../src/guestfs.pod:987
2086 #, no-wrap
2087 msgid ""
2088 " main ()\n"
2089 " {\n"
2090 " #ifdef LIBGUESTFS_HAVE_DD\n"
2091 "   void *dl;\n"
2092 "   int has_function;\n"
2093 " \n"
2094 msgstr ""
2095
2096 # type: verbatim
2097 #: ../src/guestfs.pod:993
2098 #, no-wrap
2099 msgid ""
2100 "   /* Test if the function guestfs_dd is really available. */\n"
2101 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2102 "   if (!dl) {\n"
2103 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2104 "     exit (EXIT_FAILURE);\n"
2105 "   }\n"
2106 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2107 "   dlclose (dl);\n"
2108 " \n"
2109 msgstr ""
2110
2111 # type: verbatim
2112 #: ../src/guestfs.pod:1002
2113 #, no-wrap
2114 msgid ""
2115 "   if (!has_function)\n"
2116 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2117 "   else {\n"
2118 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2119 "     /* Now it's safe to call\n"
2120 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2121 "     */\n"
2122 "   }\n"
2123 " #else\n"
2124 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2125 " #endif\n"
2126 "  }\n"
2127 "\n"
2128 msgstr ""
2129
2130 # type: textblock
2131 #: ../src/guestfs.pod:1015
2132 msgid ""
2133 "You may think the above is an awful lot of hassle, and it is.  There are "
2134 "other ways outside of the C linking system to ensure that this kind of "
2135 "incompatibility never arises, such as using package versioning:"
2136 msgstr ""
2137
2138 # type: verbatim
2139 #: ../src/guestfs.pod:1020
2140 #, no-wrap
2141 msgid ""
2142 " Requires: libguestfs >= 1.0.80\n"
2143 "\n"
2144 msgstr ""
2145
2146 # type: =end
2147 #: ../src/guestfs.pod:1022 ../src/guestfs.pod:1027
2148 msgid "html"
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1024
2153 msgid ""
2154 "<!-- old anchor for the next section --> <a name="
2155 "\"state_machine_and_low_level_event_api\"/>"
2156 msgstr ""
2157
2158 # type: =head1
2159 #: ../src/guestfs.pod:1029
2160 msgid "ARCHITECTURE"
2161 msgstr ""
2162
2163 # type: textblock
2164 #: ../src/guestfs.pod:1031
2165 msgid ""
2166 "Internally, libguestfs is implemented by running an appliance (a special "
2167 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2168 "process of the main program."
2169 msgstr ""
2170
2171 # type: verbatim
2172 #: ../src/guestfs.pod:1035
2173 #, no-wrap
2174 msgid ""
2175 "  ___________________\n"
2176 " /                   \\\n"
2177 " | main program      |\n"
2178 " |                   |\n"
2179 " |                   |           child process / appliance\n"
2180 " |                   |           __________________________\n"
2181 " |                   |          / qemu                     \\\n"
2182 " +-------------------+   RPC    |      +-----------------+ |\n"
2183 " | libguestfs     <--------------------> guestfsd        | |\n"
2184 " |                   |          |      +-----------------+ |\n"
2185 " \\___________________/          |      | Linux kernel    | |\n"
2186 "                                |      +--^--------------+ |\n"
2187 "                                \\_________|________________/\n"
2188 "                                          |\n"
2189 "                                   _______v______\n"
2190 "                                  /              \\\n"
2191 "                                  | Device or    |\n"
2192 "                                  | disk image   |\n"
2193 "                                  \\______________/\n"
2194 "\n"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1055
2199 msgid ""
2200 "The library, linked to the main program, creates the child process and hence "
2201 "the appliance in the L</guestfs_launch> function."
2202 msgstr ""
2203
2204 # type: textblock
2205 #: ../src/guestfs.pod:1058
2206 msgid ""
2207 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2208 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2209 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2210 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2211 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2212 "attached to the qemu process which translates device access by the "
2213 "appliance's Linux kernel into accesses to the image."
2214 msgstr ""
2215
2216 # type: textblock
2217 #: ../src/guestfs.pod:1067
2218 msgid ""
2219 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2220 "Although the disk image you are attached to might also be used by some "
2221 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2222 "care if both libguestfs's qemu process and your virtual machine are trying "
2223 "to update the disk image at the same time, since these usually results in "
2224 "massive disk corruption)."
2225 msgstr ""
2226
2227 # type: =head1
2228 #: ../src/guestfs.pod:1074
2229 msgid "STATE MACHINE"
2230 msgstr ""
2231
2232 # type: textblock
2233 #: ../src/guestfs.pod:1076
2234 msgid "libguestfs uses a state machine to model the child process:"
2235 msgstr ""
2236
2237 # type: verbatim
2238 #: ../src/guestfs.pod:1078
2239 #, no-wrap
2240 msgid ""
2241 "                         |\n"
2242 "                    guestfs_create\n"
2243 "                         |\n"
2244 "                         |\n"
2245 "                     ____V_____\n"
2246 "                    /          \\\n"
2247 "                    |  CONFIG  |\n"
2248 "                    \\__________/\n"
2249 "                     ^ ^   ^  \\\n"
2250 "                    /  |    \\  \\ guestfs_launch\n"
2251 "                   /   |    _\\__V______\n"
2252 "                  /    |   /           \\\n"
2253 "                 /     |   | LAUNCHING |\n"
2254 "                /      |   \\___________/\n"
2255 "               /       |       /\n"
2256 "              /        |  guestfs_launch\n"
2257 "             /         |     /\n"
2258 "    ______  /        __|____V\n"
2259 "   /      \\ ------> /        \\\n"
2260 "   | BUSY |         | READY  |\n"
2261 "   \\______/ <------ \\________/\n"
2262 "\n"
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1100
2267 msgid ""
2268 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2269 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2270 "(3) alternating between READY and BUSY as commands are issued to, and "
2271 "carried out by, the child process."
2272 msgstr ""
2273
2274 # type: textblock
2275 #: ../src/guestfs.pod:1105
2276 msgid ""
2277 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2278 "asynchronously at any time (eg. due to some internal error), and that causes "
2279 "the state to transition back to CONFIG."
2280 msgstr ""
2281
2282 # type: textblock
2283 #: ../src/guestfs.pod:1109
2284 msgid ""
2285 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2286 "issued when in the CONFIG state."
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1112
2291 msgid ""
2292 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2293 "L</guestfs_launch> blocks until the child process is READY to accept "
2294 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2295 "moves the state from CONFIG to LAUNCHING while it is running."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1118
2300 msgid ""
2301 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2302 "state.  These API calls block waiting for the command to be carried out (ie. "
2303 "the state to transition to BUSY and then back to READY).  There are no non-"
2304 "blocking versions, and no way to issue more than one command per handle at "
2305 "the same time."
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1124
2310 msgid ""
2311 "Finally, the child process sends asynchronous messages back to the main "
2312 "program, such as kernel log messages.  You can register a callback to "
2313 "receive these messages."
2314 msgstr ""
2315
2316 # type: =head2
2317 #: ../src/guestfs.pod:1128
2318 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2319 msgstr ""
2320
2321 # type: textblock
2322 #: ../src/guestfs.pod:1130
2323 msgid ""
2324 "The child process generates events in some situations.  Current events "
2325 "include: receiving a log message, the child process exits."
2326 msgstr ""
2327
2328 # type: textblock
2329 #: ../src/guestfs.pod:1133
2330 msgid ""
2331 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2332 "types of events."
2333 msgstr ""
2334
2335 # type: textblock
2336 #: ../src/guestfs.pod:1136
2337 msgid ""
2338 "Only I<one callback of each type> can be registered for each handle.  "
2339 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2340 "that type.  Cancel all callbacks of this type by calling this function with "
2341 "C<cb> set to C<NULL>."
2342 msgstr ""
2343
2344 # type: =head2
2345 #: ../src/guestfs.pod:1141
2346 msgid "guestfs_set_log_message_callback"
2347 msgstr ""
2348
2349 # type: verbatim
2350 #: ../src/guestfs.pod:1143
2351 #, no-wrap
2352 msgid ""
2353 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2354 "                                         char *buf, int len);\n"
2355 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2356 "                                        guestfs_log_message_cb cb,\n"
2357 "                                        void *opaque);\n"
2358 "\n"
2359 msgstr ""
2360
2361 # type: textblock
2362 #: ../src/guestfs.pod:1149
2363 msgid ""
2364 "The callback function C<cb> will be called whenever qemu or the guest writes "
2365 "anything to the console."
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1152
2370 msgid "Use this function to capture kernel messages and similar."
2371 msgstr ""
2372
2373 # type: textblock
2374 #: ../src/guestfs.pod:1154
2375 msgid ""
2376 "Normally there is no log message handler, and log messages are just "
2377 "discarded."
2378 msgstr ""
2379
2380 # type: =head2
2381 #: ../src/guestfs.pod:1157
2382 msgid "guestfs_set_subprocess_quit_callback"
2383 msgstr ""
2384
2385 # type: verbatim
2386 #: ../src/guestfs.pod:1159
2387 #, no-wrap
2388 msgid ""
2389 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2390 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2391 "                                            guestfs_subprocess_quit_cb cb,\n"
2392 "                                            void *opaque);\n"
2393 "\n"
2394 msgstr ""
2395
2396 # type: textblock
2397 #: ../src/guestfs.pod:1164
2398 msgid ""
2399 "The callback function C<cb> will be called when the child process quits, "
2400 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2401 "corresponds to a transition from any state to the CONFIG state)."
2402 msgstr ""
2403
2404 # type: =head2
2405 #: ../src/guestfs.pod:1169
2406 msgid "guestfs_set_launch_done_callback"
2407 msgstr ""
2408
2409 # type: verbatim
2410 #: ../src/guestfs.pod:1171
2411 #, no-wrap
2412 msgid ""
2413 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2414 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2415 "                                        guestfs_launch_done_cb cb,\n"
2416 "                                        void *opaque);\n"
2417 "\n"
2418 msgstr ""
2419
2420 # type: textblock
2421 #: ../src/guestfs.pod:1176
2422 msgid ""
2423 "The callback function C<cb> will be called when the child process becomes "
2424 "ready first time after it has been launched.  (This corresponds to a "
2425 "transition from LAUNCHING to the READY state)."
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1180
2430 msgid "guestfs_set_close_callback"
2431 msgstr ""
2432
2433 # type: verbatim
2434 #: ../src/guestfs.pod:1182
2435 #, no-wrap
2436 msgid ""
2437 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2438 " void guestfs_set_close_callback (guestfs_h *g,\n"
2439 "                                  guestfs_close_cb cb,\n"
2440 "                                  void *opaque);\n"
2441 "\n"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1187
2446 msgid ""
2447 "The callback function C<cb> will be called while the handle is being closed "
2448 "(synchronously from L</guestfs_close>)."
2449 msgstr ""
2450
2451 # type: textblock
2452 #: ../src/guestfs.pod:1190
2453 msgid ""
2454 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2455 "handles that are open when the program exits.  This means that this callback "
2456 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2457 "problems in higher-level languages (eg. if your HLL interpreter has already "
2458 "been cleaned up by the time this is called, and if your callback then jumps "
2459 "into some HLL function)."
2460 msgstr ""
2461
2462 # type: =head2
2463 #: ../src/guestfs.pod:1198
2464 msgid "guestfs_set_progress_callback"
2465 msgstr ""
2466
2467 # type: verbatim
2468 #: ../src/guestfs.pod:1200
2469 #, no-wrap
2470 msgid ""
2471 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2472 "                                      int proc_nr, int serial,\n"
2473 "                                      uint64_t position, uint64_t total);\n"
2474 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2475 "                                     guestfs_progress_cb cb,\n"
2476 "                                     void *opaque);\n"
2477 "\n"
2478 msgstr ""
2479
2480 # type: textblock
2481 #: ../src/guestfs.pod:1207
2482 msgid ""
2483 "Some long-running operations can generate progress messages.  If this "
2484 "callback is registered, then it will be called each time a progress message "
2485 "is generated (usually two seconds after the operation started, and three "
2486 "times per second thereafter until it completes, although the frequency may "
2487 "change in future versions)."
2488 msgstr ""
2489
2490 # type: textblock
2491 #: ../src/guestfs.pod:1213
2492 msgid ""
2493 "The callback receives two numbers: C<position> and C<total>.  The units of "
2494 "C<total> are not defined, although for some operations C<total> may relate "
2495 "in some way to the amount of data to be transferred (eg. in bytes or "
2496 "megabytes), and C<position> may be the portion which has been transferred."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1219
2501 msgid "The only defined and stable parts of the API are:"
2502 msgstr ""
2503
2504 # type: textblock
2505 #: ../src/guestfs.pod:1225
2506 msgid ""
2507 "The callback can display to the user some type of progress bar or indicator "
2508 "which shows the ratio of C<position>:C<total>."
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1230
2513 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1234
2518 msgid ""
2519 "If any progress notification is sent during a call, then a final progress "
2520 "notification is always sent when C<position> = C<total>."
2521 msgstr ""
2522
2523 # type: textblock
2524 #: ../src/guestfs.pod:1237
2525 msgid ""
2526 "This is to simplify caller code, so callers can easily set the progress "
2527 "indicator to \"100%\" at the end of the operation, without requiring special "
2528 "code to detect this case."
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1243
2533 msgid ""
2534 "The callback also receives the procedure number and serial number of the "
2535 "call.  These are only useful for debugging protocol issues, and the callback "
2536 "can normally ignore them.  The callback may want to print these numbers in "
2537 "error messages or debugging messages."
2538 msgstr ""
2539
2540 # type: =head1
2541 #: ../src/guestfs.pod:1248
2542 msgid "PRIVATE DATA AREA"
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1250
2547 msgid ""
2548 "You can attach named pieces of private data to the libguestfs handle, and "
2549 "fetch them by name for the lifetime of the handle.  This is called the "
2550 "private data area and is only available from the C API."
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1254
2555 msgid "To attach a named piece of data, use the following call:"
2556 msgstr ""
2557
2558 # type: verbatim
2559 #: ../src/guestfs.pod:1256
2560 #, no-wrap
2561 msgid ""
2562 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2563 "\n"
2564 msgstr ""
2565
2566 # type: textblock
2567 #: ../src/guestfs.pod:1258
2568 msgid ""
2569 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2570 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2571 "overwritten."
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1262
2576 msgid ""
2577 "You can use any C<key> you want, but names beginning with an underscore "
2578 "character are reserved for internal libguestfs purposes (for implementing "
2579 "language bindings).  It is recommended to prefix the name with some unique "
2580 "string to avoid collisions with other users."
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1267
2585 msgid "To retrieve the pointer, use:"
2586 msgstr ""
2587
2588 # type: verbatim
2589 #: ../src/guestfs.pod:1269
2590 #, no-wrap
2591 msgid ""
2592 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2593 "\n"
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1271
2598 msgid ""
2599 "This function returns C<NULL> if either no data is found associated with "
2600 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2601 "C<NULL>."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1275
2606 msgid ""
2607 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2608 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2609 "all.  In particular, libguestfs does I<not> try to free the data when the "
2610 "handle is closed.  If the data must be freed, then the caller must either "
2611 "free it before calling L</guestfs_close> or must set up a close callback to "
2612 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2613 "can be registered for a handle)."
2614 msgstr ""
2615
2616 # type: textblock
2617 #: ../src/guestfs.pod:1283
2618 msgid ""
2619 "The private data area is implemented using a hash table, and should be "
2620 "reasonably efficient for moderate numbers of keys."
2621 msgstr ""
2622
2623 # type: =head1
2624 #: ../src/guestfs.pod:1286
2625 msgid "BLOCK DEVICE NAMING"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1288
2630 msgid ""
2631 "In the kernel there is now quite a profusion of schemata for naming block "
2632 "devices (in this context, by I<block device> I mean a physical or virtual "
2633 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2634 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2635 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2636 "for the old IDE driver (particularly for SATA devices) those devices also "
2637 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2638 "paravirtualized drivers.  This has created several different naming systems, "
2639 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1300
2644 msgid ""
2645 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2646 "Linux kernel to access block devices.  We can run a variety of appliances "
2647 "based on a variety of Linux kernels."
2648 msgstr ""
2649
2650 # type: textblock
2651 #: ../src/guestfs.pod:1304
2652 msgid ""
2653 "This causes a problem for libguestfs because many API calls use device or "
2654 "partition names.  Working scripts and the recipe (example) scripts that we "
2655 "make available over the internet could fail if the naming scheme changes."
2656 msgstr ""
2657
2658 # type: textblock
2659 #: ../src/guestfs.pod:1309
2660 msgid ""
2661 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2662 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2663 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2664 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1315
2669 msgid ""
2670 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2671 "L</guestfs_list_partitions> and similar calls return the true names of the "
2672 "devices and partitions as known to the appliance."
2673 msgstr ""
2674
2675 # type: =head2
2676 #: ../src/guestfs.pod:1320
2677 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2678 msgstr ""
2679
2680 # type: textblock
2681 #: ../src/guestfs.pod:1322
2682 msgid ""
2683 "Usually this translation is transparent.  However in some (very rare)  cases "
2684 "you may need to know the exact algorithm.  Such cases include where you use "
2685 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2686 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1328
2691 msgid ""
2692 "The algorithm is applied only to I<parameters> which are known to be either "
2693 "device or partition names.  Return values from functions such as L</"
2694 "guestfs_list_devices> are never changed."
2695 msgstr ""
2696
2697 # type: textblock
2698 #: ../src/guestfs.pod:1336
2699 msgid "Is the string a parameter which is a device or partition name?"
2700 msgstr ""
2701
2702 # type: textblock
2703 #: ../src/guestfs.pod:1340
2704 msgid "Does the string begin with C</dev/sd>?"
2705 msgstr ""
2706
2707 # type: textblock
2708 #: ../src/guestfs.pod:1344
2709 msgid ""
2710 "Does the named device exist? If so, we use that device.  However if I<not> "
2711 "then we continue with this algorithm."
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1349
2716 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1351
2721 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2722 msgstr ""
2723
2724 # type: textblock
2725 #: ../src/guestfs.pod:1353
2726 msgid "If that named device exists, use it.  If not, continue."
2727 msgstr ""
2728
2729 # type: textblock
2730 #: ../src/guestfs.pod:1357
2731 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2732 msgstr ""
2733
2734 # type: textblock
2735 #: ../src/guestfs.pod:1359
2736 msgid "If that named device exists, use it.  If not, return an error."
2737 msgstr ""
2738
2739 # type: =head2
2740 #: ../src/guestfs.pod:1363
2741 msgid "PORTABILITY CONCERNS"
2742 msgstr ""
2743
2744 # type: textblock
2745 #: ../src/guestfs.pod:1365
2746 msgid ""
2747 "Although the standard naming scheme and automatic translation is useful for "
2748 "simple programs and guestfish scripts, for larger programs it is best not to "
2749 "rely on this mechanism."
2750 msgstr ""
2751
2752 # type: textblock
2753 #: ../src/guestfs.pod:1369
2754 msgid ""
2755 "Where possible for maximum future portability programs using libguestfs "
2756 "should use these future-proof techniques:"
2757 msgstr ""
2758
2759 # type: textblock
2760 #: ../src/guestfs.pod:1376
2761 msgid ""
2762 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2763 "device names, and then use those names directly."
2764 msgstr ""
2765
2766 # type: textblock
2767 #: ../src/guestfs.pod:1379
2768 msgid ""
2769 "Since those device names exist by definition, they will never be translated."
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1384
2774 msgid ""
2775 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2776 "filesystem labels."
2777 msgstr ""
2778
2779 # type: =head1
2780 #: ../src/guestfs.pod:1389
2781 msgid "INTERNALS"
2782 msgstr ""
2783
2784 # type: =head2
2785 #: ../src/guestfs.pod:1391
2786 msgid "COMMUNICATION PROTOCOL"
2787 msgstr ""
2788
2789 # type: textblock
2790 #: ../src/guestfs.pod:1393
2791 msgid ""
2792 "Don't rely on using this protocol directly.  This section documents how it "
2793 "currently works, but it may change at any time."
2794 msgstr ""
2795
2796 # type: textblock
2797 #: ../src/guestfs.pod:1396
2798 msgid ""
2799 "The protocol used to talk between the library and the daemon running inside "
2800 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
2801 "1014, RFC 1832, RFC 4506)."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1400
2806 msgid ""
2807 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
2808 "this file is automatically generated)."
2809 msgstr ""
2810
2811 # type: textblock
2812 #: ../src/guestfs.pod:1403
2813 msgid ""
2814 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
2815 "and C<FileOut> parameters, which are handled with very simple request/reply "
2816 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
2817 "parameters, which use the same request and reply messages, but they may also "
2818 "be followed by files sent using a chunked encoding."
2819 msgstr ""
2820
2821 # type: =head3
2822 #: ../src/guestfs.pod:1410
2823 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
2824 msgstr ""
2825
2826 # type: textblock
2827 #: ../src/guestfs.pod:1412
2828 msgid "For ordinary functions, the request message is:"
2829 msgstr ""
2830
2831 # type: verbatim
2832 #: ../src/guestfs.pod:1414
2833 #, no-wrap
2834 msgid ""
2835 " total length (header + arguments,\n"
2836 "      but not including the length word itself)\n"
2837 " struct guestfs_message_header (encoded as XDR)\n"
2838 " struct guestfs_<foo>_args (encoded as XDR)\n"
2839 "\n"
2840 msgstr ""
2841
2842 # type: textblock
2843 #: ../src/guestfs.pod:1419
2844 msgid ""
2845 "The total length field allows the daemon to allocate a fixed size buffer "
2846 "into which it slurps the rest of the message.  As a result, the total length "
2847 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
2848 "effective size of any request is limited to somewhere under this size."
2849 msgstr ""
2850
2851 # type: textblock
2852 #: ../src/guestfs.pod:1425
2853 msgid ""
2854 "Note also that many functions don't take any arguments, in which case the "
2855 "C<guestfs_I<foo>_args> is completely omitted."
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1428
2860 msgid ""
2861 "The header contains the procedure number (C<guestfs_proc>) which is how the "
2862 "receiver knows what type of args structure to expect, or none at all."
2863 msgstr ""
2864
2865 # type: textblock
2866 #: ../src/guestfs.pod:1432
2867 msgid "The reply message for ordinary functions is:"
2868 msgstr ""
2869
2870 # type: verbatim
2871 #: ../src/guestfs.pod:1434
2872 #, no-wrap
2873 msgid ""
2874 " total length (header + ret,\n"
2875 "      but not including the length word itself)\n"
2876 " struct guestfs_message_header (encoded as XDR)\n"
2877 " struct guestfs_<foo>_ret (encoded as XDR)\n"
2878 "\n"
2879 msgstr ""
2880
2881 # type: textblock
2882 #: ../src/guestfs.pod:1439
2883 msgid ""
2884 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
2885 "functions that return no formal return values."
2886 msgstr ""
2887
2888 # type: textblock
2889 #: ../src/guestfs.pod:1442
2890 msgid ""
2891 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1445
2896 msgid ""
2897 "In the case of an error, a flag is set in the header, and the reply message "
2898 "is slightly changed:"
2899 msgstr ""
2900
2901 # type: verbatim
2902 #: ../src/guestfs.pod:1448
2903 #, no-wrap
2904 msgid ""
2905 " total length (header + error,\n"
2906 "      but not including the length word itself)\n"
2907 " struct guestfs_message_header (encoded as XDR)\n"
2908 " struct guestfs_message_error (encoded as XDR)\n"
2909 "\n"
2910 msgstr ""
2911
2912 # type: textblock
2913 #: ../src/guestfs.pod:1453
2914 msgid ""
2915 "The C<guestfs_message_error> structure contains the error message as a "
2916 "string."
2917 msgstr ""
2918
2919 # type: =head3
2920 #: ../src/guestfs.pod:1456
2921 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
2922 msgstr ""
2923
2924 # type: textblock
2925 #: ../src/guestfs.pod:1458
2926 msgid ""
2927 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
2928 "The normal request message is sent (see above).  However this is followed by "
2929 "a sequence of file chunks."
2930 msgstr ""
2931
2932 # type: verbatim
2933 #: ../src/guestfs.pod:1462
2934 #, no-wrap
2935 msgid ""
2936 " total length (header + arguments,\n"
2937 "      but not including the length word itself,\n"
2938 "      and not including the chunks)\n"
2939 " struct guestfs_message_header (encoded as XDR)\n"
2940 " struct guestfs_<foo>_args (encoded as XDR)\n"
2941 " sequence of chunks for FileIn param #0\n"
2942 " sequence of chunks for FileIn param #1 etc.\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1470
2948 msgid "The \"sequence of chunks\" is:"
2949 msgstr ""
2950
2951 # type: verbatim
2952 #: ../src/guestfs.pod:1472
2953 #, no-wrap
2954 msgid ""
2955 " length of chunk (not including length word itself)\n"
2956 " struct guestfs_chunk (encoded as XDR)\n"
2957 " length of chunk\n"
2958 " struct guestfs_chunk (encoded as XDR)\n"
2959 "   ...\n"
2960 " length of chunk\n"
2961 " struct guestfs_chunk (with data.data_len == 0)\n"
2962 "\n"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1480
2967 msgid ""
2968 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
2969 "is set in the final chunk to indicate either successful completion or early "
2970 "cancellation."
2971 msgstr ""
2972
2973 # type: textblock
2974 #: ../src/guestfs.pod:1484
2975 msgid ""
2976 "At time of writing there are no functions that have more than one FileIn "
2977 "parameter.  However this is (theoretically) supported, by sending the "
2978 "sequence of chunks for each FileIn parameter one after another (from left to "
2979 "right)."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1489
2984 msgid ""
2985 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
2986 "transfer.  The library does this by sending a chunk with a special flag set "
2987 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
2988 "RPC, does I<not> send any reply, and goes back to reading the next request."
2989 msgstr ""
2990
2991 # type: textblock
2992 #: ../src/guestfs.pod:1495
2993 msgid ""
2994 "The daemon may also cancel.  It does this by writing a special word "
2995 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
2996 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
2997 "cancel chunk).  The special word is chosen so that even if cancellation "
2998 "happens right at the end of the transfer (after the library has finished "
2999 "writing and has started listening for the reply), the \"spurious\" cancel "
3000 "flag will not be confused with the reply message."
3001 msgstr ""
3002
3003 # type: textblock
3004 #: ../src/guestfs.pod:1504
3005 msgid ""
3006 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3007 "limit), and also files where the size is not known in advance (eg. from "
3008 "pipes or sockets).  However the chunks are rather small "
3009 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3010 "to keep much in memory."
3011 msgstr ""
3012
3013 # type: =head3
3014 #: ../src/guestfs.pod:1510
3015 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1512
3020 msgid ""
3021 "The protocol for FileOut parameters is exactly the same as for FileIn "
3022 "parameters, but with the roles of daemon and library reversed."
3023 msgstr ""
3024
3025 # type: verbatim
3026 #: ../src/guestfs.pod:1515
3027 #, no-wrap
3028 msgid ""
3029 " total length (header + ret,\n"
3030 "      but not including the length word itself,\n"
3031 "      and not including the chunks)\n"
3032 " struct guestfs_message_header (encoded as XDR)\n"
3033 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3034 " sequence of chunks for FileOut param #0\n"
3035 " sequence of chunks for FileOut param #1 etc.\n"
3036 "\n"
3037 msgstr ""
3038
3039 # type: =head3
3040 #: ../src/guestfs.pod:1523
3041 msgid "INITIAL MESSAGE"
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1525
3046 msgid ""
3047 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3048 "which indicates that the guest and daemon is alive.  This is what L</"
3049 "guestfs_launch> waits for."
3050 msgstr ""
3051
3052 # type: =head3
3053 #: ../src/guestfs.pod:1529
3054 msgid "PROGRESS NOTIFICATION MESSAGES"
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1531
3059 msgid ""
3060 "The daemon may send progress notification messages at any time.  These are "
3061 "distinguished by the normal length word being replaced by "
3062 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1535
3067 msgid ""
3068 "The library turns them into progress callbacks (see "
3069 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3070 "discards them if not."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1539
3075 msgid ""
3076 "The daemon self-limits the frequency of progress messages it sends (see "
3077 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3078 "messages."
3079 msgstr ""
3080
3081 # type: =head1
3082 #: ../src/guestfs.pod:1543
3083 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3084 msgstr ""
3085
3086 # type: textblock
3087 #: ../src/guestfs.pod:1545
3088 msgid ""
3089 "All high-level libguestfs actions are synchronous.  If you want to use "
3090 "libguestfs asynchronously then you must create a thread."
3091 msgstr ""
3092
3093 # type: textblock
3094 #: ../src/guestfs.pod:1548
3095 msgid ""
3096 "Only use the handle from a single thread.  Either use the handle exclusively "
3097 "from one thread, or provide your own mutex so that two threads cannot issue "
3098 "calls on the same handle at the same time."
3099 msgstr ""
3100
3101 # type: textblock
3102 #: ../src/guestfs.pod:1552
3103 msgid ""
3104 "See the graphical program guestfs-browser for one possible architecture for "
3105 "multithreaded programs using libvirt and libguestfs."
3106 msgstr ""
3107
3108 # type: =head1
3109 #: ../src/guestfs.pod:1555
3110 msgid "QEMU WRAPPERS"
3111 msgstr ""
3112
3113 # type: textblock
3114 #: ../src/guestfs.pod:1557
3115 msgid ""
3116 "If you want to compile your own qemu, run qemu from a non-standard location, "
3117 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3118 "around qemu."
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1561
3123 msgid ""
3124 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3125 "last command in the shell script (so that qemu replaces the shell and "
3126 "becomes the direct child of the libguestfs-using program).  If you don't do "
3127 "this, then the qemu process won't be cleaned up correctly."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1566
3132 msgid ""
3133 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3134 "source:"
3135 msgstr ""
3136
3137 # type: verbatim
3138 #: ../src/guestfs.pod:1569
3139 #, no-wrap
3140 msgid ""
3141 " #!/bin/sh -\n"
3142 " qemudir=/home/rjones/d/qemu\n"
3143 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3144 "\n"
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1573
3149 msgid ""
3150 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3151 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3152 "example:"
3153 msgstr ""
3154
3155 # type: verbatim
3156 #: ../src/guestfs.pod:1577
3157 #, no-wrap
3158 msgid ""
3159 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3160 "\n"
3161 msgstr ""
3162
3163 # type: textblock
3164 #: ../src/guestfs.pod:1579
3165 msgid ""
3166 "Note that libguestfs also calls qemu with the -help and -version options in "
3167 "order to determine features."
3168 msgstr ""
3169
3170 # type: =head1
3171 #: ../src/guestfs.pod:1582
3172 msgid "LIBGUESTFS VERSION NUMBERS"
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1584
3177 msgid ""
3178 "Since April 2010, libguestfs has started to make separate development and "
3179 "stable releases, along with corresponding branches in our git repository.  "
3180 "These separate releases can be identified by version number:"
3181 msgstr ""
3182
3183 # type: verbatim
3184 #: ../src/guestfs.pod:1589
3185 #, no-wrap
3186 msgid ""
3187 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3188 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3189 "       |\n"
3190 "       v\n"
3191 " 1  .  3  .  5\n"
3192 " ^           ^\n"
3193 " |           |\n"
3194 " |           `-------- sub-version\n"
3195 " |\n"
3196 " `------ always '1' because we don't change the ABI\n"
3197 "\n"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1600
3202 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1602
3207 msgid ""
3208 "As time passes we cherry pick fixes from the development branch and backport "
3209 "those into the stable branch, the effect being that the stable branch should "
3210 "get more stable and less buggy over time.  So the stable releases are ideal "
3211 "for people who don't need new features but would just like the software to "
3212 "work."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1608
3217 msgid "Our criteria for backporting changes are:"
3218 msgstr ""
3219
3220 # type: textblock
3221 #: ../src/guestfs.pod:1614
3222 msgid ""
3223 "Documentation changes which don't affect any code are backported unless the "
3224 "documentation refers to a future feature which is not in stable."
3225 msgstr ""
3226
3227 # type: textblock
3228 #: ../src/guestfs.pod:1620
3229 msgid ""
3230 "Bug fixes which are not controversial, fix obvious problems, and have been "
3231 "well tested are backported."
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1625
3236 msgid ""
3237 "Simple rearrangements of code which shouldn't affect how it works get "
3238 "backported.  This is so that the code in the two branches doesn't get too "
3239 "far out of step, allowing us to backport future fixes more easily."
3240 msgstr ""
3241
3242 # type: textblock
3243 #: ../src/guestfs.pod:1631
3244 msgid ""
3245 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3246 "exceptional case: the new feature is required in order to implement an "
3247 "important bug fix."
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1637
3252 msgid ""
3253 "A new stable branch starts when we think the new features in development are "
3254 "substantial and compelling enough over the current stable branch to warrant "
3255 "it.  When that happens we create new stable and development versions 1.N.0 "
3256 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3257 "stable at this point, but by backporting fixes from development, that branch "
3258 "will stabilize over time."
3259 msgstr ""
3260
3261 # type: =head1
3262 #: ../src/guestfs.pod:1645 ../fish/guestfish.pod:933
3263 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:312
3264 #: ../tools/virt-rescue.pl:226
3265 msgid "ENVIRONMENT VARIABLES"
3266 msgstr ""
3267
3268 # type: =item
3269 #: ../src/guestfs.pod:1649 ../fish/guestfish.pod:953
3270 msgid "LIBGUESTFS_APPEND"
3271 msgstr ""
3272
3273 # type: textblock
3274 #: ../src/guestfs.pod:1651 ../fish/guestfish.pod:955
3275 msgid "Pass additional options to the guest kernel."
3276 msgstr ""
3277
3278 # type: =item
3279 #: ../src/guestfs.pod:1653 ../fish/guestfish.pod:957
3280 msgid "LIBGUESTFS_DEBUG"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1655
3285 msgid ""
3286 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3287 "effect as calling C<guestfs_set_verbose (g, 1)>."
3288 msgstr ""
3289
3290 # type: =item
3291 #: ../src/guestfs.pod:1658 ../fish/guestfish.pod:962
3292 msgid "LIBGUESTFS_MEMSIZE"
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1660 ../fish/guestfish.pod:964
3297 msgid ""
3298 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3299 msgstr ""
3300
3301 # type: verbatim
3302 #: ../src/guestfs.pod:1663 ../fish/guestfish.pod:967
3303 #, no-wrap
3304 msgid ""
3305 " LIBGUESTFS_MEMSIZE=700\n"
3306 "\n"
3307 msgstr ""
3308
3309 # type: =item
3310 #: ../src/guestfs.pod:1665 ../fish/guestfish.pod:969
3311 msgid "LIBGUESTFS_PATH"
3312 msgstr ""
3313
3314 # type: textblock
3315 #: ../src/guestfs.pod:1667
3316 msgid ""
3317 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3318 "the discussion of paths in section PATH above."
3319 msgstr ""
3320
3321 # type: =item
3322 #: ../src/guestfs.pod:1670 ../fish/guestfish.pod:974
3323 msgid "LIBGUESTFS_QEMU"
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1672 ../fish/guestfish.pod:976
3328 msgid ""
3329 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3330 "which was found at compile time by the configure script is used."
3331 msgstr ""
3332
3333 # type: textblock
3334 #: ../src/guestfs.pod:1676
3335 msgid "See also L</QEMU WRAPPERS> above."
3336 msgstr ""
3337
3338 # type: =item
3339 #: ../src/guestfs.pod:1678 ../fish/guestfish.pod:980
3340 msgid "LIBGUESTFS_TRACE"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1680
3345 msgid ""
3346 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3347 "effect as calling C<guestfs_set_trace (g, 1)>."
3348 msgstr ""
3349
3350 # type: =item
3351 #: ../src/guestfs.pod:1683 ../fish/guestfish.pod:989
3352 msgid "TMPDIR"
3353 msgstr ""
3354
3355 # type: textblock
3356 #: ../src/guestfs.pod:1685 ../fish/guestfish.pod:991
3357 msgid "Location of temporary directory, defaults to C</tmp>."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1687 ../fish/guestfish.pod:993
3362 msgid ""
3363 "If libguestfs was compiled to use the supermin appliance then each handle "
3364 "will require rather a large amount of space in this directory for short "
3365 "periods of time (~ 80 MB).  You can use C<$TMPDIR> to configure another "
3366 "directory to use in case C</tmp> is not large enough."
3367 msgstr ""
3368
3369 # type: =head1
3370 #: ../src/guestfs.pod:1695 ../fish/guestfish.pod:1051
3371 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178
3372 #: ../inspector/virt-inspector.pl:846 ../tools/virt-cat.pl:163
3373 #: ../tools/virt-df.pl:482 ../tools/virt-edit.pl:325
3374 #: ../tools/virt-list-filesystems.pl:191 ../tools/virt-list-partitions.pl:229
3375 #: ../tools/virt-ls.pl:210 ../tools/virt-make-fs.pl:527
3376 #: ../tools/virt-rescue.pl:231 ../tools/virt-resize.pl:1390
3377 #: ../tools/virt-tar.pl:257 ../tools/virt-win-reg.pl:461
3378 msgid "SEE ALSO"
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1697
3383 msgid ""
3384 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3385 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3386 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3387 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3388 "L<http://libguestfs.org/>."
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1715
3393 msgid ""
3394 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3395 "(8)>, L<disktype(1)>."
3396 msgstr ""
3397
3398 # type: =head1
3399 #: ../src/guestfs.pod:1722 ../tools/virt-make-fs.pl:541
3400 #: ../tools/virt-win-reg.pl:476
3401 msgid "BUGS"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1724
3406 msgid "To get a list of bugs against libguestfs use this link:"
3407 msgstr ""
3408
3409 # type: textblock
3410 #: ../src/guestfs.pod:1726
3411 msgid ""
3412 "L<https://bugzilla.redhat.com/buglist.cgi?"
3413 "component=libguestfs&product=Virtualization+Tools>"
3414 msgstr ""
3415
3416 # type: textblock
3417 #: ../src/guestfs.pod:1728
3418 msgid "To report a new bug against libguestfs use this link:"
3419 msgstr ""
3420
3421 # type: textblock
3422 #: ../src/guestfs.pod:1730
3423 msgid ""
3424 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3425 "component=libguestfs&product=Virtualization+Tools>"
3426 msgstr ""
3427
3428 # type: textblock
3429 #: ../src/guestfs.pod:1732
3430 msgid "When reporting a bug, please check:"
3431 msgstr ""
3432
3433 # type: textblock
3434 #: ../src/guestfs.pod:1738
3435 msgid "That the bug hasn't been reported already."
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1742
3440 msgid "That you are testing a recent version."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1746
3445 msgid "Describe the bug accurately, and give a way to reproduce it."
3446 msgstr ""
3447
3448 # type: textblock
3449 #: ../src/guestfs.pod:1750
3450 msgid ""
3451 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3452 "bug report."
3453 msgstr ""
3454
3455 # type: =head1
3456 #: ../src/guestfs.pod:1755 ../fish/guestfish.pod:1067
3457 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189
3458 #: ../inspector/virt-inspector.pl:855
3459 msgid "AUTHORS"
3460 msgstr ""
3461
3462 # type: textblock
3463 #: ../src/guestfs.pod:1757 ../fish/guestfish.pod:1069
3464 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3465 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1759 ../fish/guestfish.pod:1071
3470 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193
3471 #: ../inspector/virt-inspector.pl:861 ../tools/virt-cat.pl:177
3472 #: ../tools/virt-df.pl:495 ../tools/virt-edit.pl:341
3473 #: ../tools/virt-list-filesystems.pl:207 ../tools/virt-list-partitions.pl:244
3474 #: ../tools/virt-ls.pl:225 ../tools/virt-make-fs.pl:556
3475 #: ../tools/virt-rescue.pl:245 ../tools/virt-resize.pl:1411
3476 #: ../tools/virt-tar.pl:272 ../tools/virt-win-reg.pl:491
3477 msgid "COPYRIGHT"
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1761 ../fish/guestfish.pod:1073
3482 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1764
3487 msgid ""
3488 "This library is free software; you can redistribute it and/or modify it "
3489 "under the terms of the GNU Lesser General Public License as published by the "
3490 "Free Software Foundation; either version 2 of the License, or (at your "
3491 "option) any later version."
3492 msgstr ""
3493
3494 # type: textblock
3495 #: ../src/guestfs.pod:1769
3496 msgid ""
3497 "This library is distributed in the hope that it will be useful, but WITHOUT "
3498 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3499 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3500 "for more details."
3501 msgstr ""
3502
3503 # type: textblock
3504 #: ../src/guestfs.pod:1774
3505 msgid ""
3506 "You should have received a copy of the GNU Lesser General Public License "
3507 "along with this library; if not, write to the Free Software Foundation, "
3508 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3509 msgstr ""
3510
3511 # type: =head2
3512 #: ../src/guestfs-actions.pod:1
3513 msgid "guestfs_add_cdrom"
3514 msgstr ""
3515
3516 # type: verbatim
3517 #: ../src/guestfs-actions.pod:3
3518 #, no-wrap
3519 msgid ""
3520 " int guestfs_add_cdrom (guestfs_h *g,\n"
3521 "\t\tconst char *filename);\n"
3522 "\n"
3523 msgstr ""
3524
3525 # type: textblock
3526 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3527 msgid "This function adds a virtual CD-ROM disk image to the guest."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3532 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3533 msgstr ""
3534
3535 # type: textblock
3536 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1488
3537 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1186
3538 msgid "Notes:"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs-actions.pod:16
3543 msgid ""
3544 "This call checks for the existence of C<filename>.  This stops you from "
3545 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3546 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3547 "instead."
3548 msgstr ""
3549
3550 # type: textblock
3551 #: ../src/guestfs-actions.pod:23
3552 msgid ""
3553 "If you just want to add an ISO file (often you use this as an efficient way "
3554 "to transfer large files into the guest), then you should probably use "
3555 "C<guestfs_add_drive_ro> instead."
3556 msgstr ""
3557
3558 # type: textblock
3559 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:63
3560 #: ../src/guestfs-actions.pod:92 ../src/guestfs-actions.pod:103
3561 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:124
3562 #: ../src/guestfs-actions.pod:135 ../src/guestfs-actions.pod:238
3563 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:266
3564 #: ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:324
3565 #: ../src/guestfs-actions.pod:339 ../src/guestfs-actions.pod:403
3566 #: ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:441
3567 #: ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:534
3568 #: ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:560
3569 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:717
3570 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:749
3571 #: ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:839
3572 #: ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:866
3573 #: ../src/guestfs-actions.pod:883 ../src/guestfs-actions.pod:916
3574 #: ../src/guestfs-actions.pod:974 ../src/guestfs-actions.pod:996
3575 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1115
3576 #: ../src/guestfs-actions.pod:1146 ../src/guestfs-actions.pod:1346
3577 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1446
3578 #: ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1917
3579 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2002
3580 #: ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2421
3581 #: ../src/guestfs-actions.pod:2438 ../src/guestfs-actions.pod:2503
3582 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2524
3583 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:2547
3584 #: ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2641
3585 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2672
3586 #: ../src/guestfs-actions.pod:2692 ../src/guestfs-actions.pod:2712
3587 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2757
3588 #: ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:2785
3589 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2827
3590 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2850
3591 #: ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2876
3592 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:2973
3593 #: ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3028
3594 #: ../src/guestfs-actions.pod:3043 ../src/guestfs-actions.pod:3058
3595 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3082
3596 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3107
3597 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3136
3598 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3195
3599 #: ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:3227
3600 #: ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3250
3601 #: ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3272
3602 #: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3316
3603 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3345
3604 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3370
3605 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3441
3606 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:3477
3607 #: ../src/guestfs-actions.pod:3491 ../src/guestfs-actions.pod:3506
3608 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3680
3609 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3714
3610 #: ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3759
3611 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:3783
3612 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:4026
3613 #: ../src/guestfs-actions.pod:4042 ../src/guestfs-actions.pod:4053
3614 #: ../src/guestfs-actions.pod:4062 ../src/guestfs-actions.pod:4073
3615 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4093
3616 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4124
3617 #: ../src/guestfs-actions.pod:4140 ../src/guestfs-actions.pod:4156
3618 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4191
3619 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4222
3620 #: ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4256
3621 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:4295
3622 #: ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4332
3623 #: ../src/guestfs-actions.pod:4353 ../src/guestfs-actions.pod:4365
3624 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:4393
3625 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4447
3626 #: ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:4560
3627 #: ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4675
3628 #: ../src/guestfs-actions.pod:4685 ../src/guestfs-actions.pod:4695
3629 #: ../src/guestfs-actions.pod:4714 ../src/guestfs-actions.pod:4724
3630 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4744
3631 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4806
3632 #: ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:4833
3633 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4860
3634 #: ../src/guestfs-actions.pod:4870 ../src/guestfs-actions.pod:4887
3635 #: ../src/guestfs-actions.pod:4917 ../src/guestfs-actions.pod:4928
3636 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4973
3637 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5016
3638 #: ../src/guestfs-actions.pod:5120 ../src/guestfs-actions.pod:5135
3639 #: ../src/guestfs-actions.pod:5146 ../src/guestfs-actions.pod:5192
3640 #: ../src/guestfs-actions.pod:5202 ../src/guestfs-actions.pod:5239
3641 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5308
3642 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5388
3643 #: ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5430
3644 msgid "This function returns 0 on success or -1 on error."
3645 msgstr ""
3646
3647 # type: =head2
3648 #: ../src/guestfs-actions.pod:31
3649 msgid "guestfs_add_drive"
3650 msgstr ""
3651
3652 # type: verbatim
3653 #: ../src/guestfs-actions.pod:33
3654 #, no-wrap
3655 msgid ""
3656 " int guestfs_add_drive (guestfs_h *g,\n"
3657 "\t\tconst char *filename);\n"
3658 "\n"
3659 msgstr ""
3660
3661 # type: textblock
3662 #: ../src/guestfs-actions.pod:36 ../fish/guestfish-actions.pod:32
3663 msgid ""
3664 "This function adds a virtual machine disk image C<filename> to the guest.  "
3665 "The first time you call this function, the disk appears as IDE disk 0 (C</"
3666 "dev/sda>) in the guest, the second time as C</dev/sdb>, and so on."
3667 msgstr ""
3668
3669 # type: textblock
3670 #: ../src/guestfs-actions.pod:41 ../fish/guestfish-actions.pod:37
3671 msgid ""
3672 "You don't necessarily need to be root when using libguestfs.  However you "
3673 "obviously do need sufficient permissions to access the filename for whatever "
3674 "operations you want to perform (ie. read access if you just want to read the "
3675 "image or write access if you want to modify the image)."
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs-actions.pod:47 ../fish/guestfish-actions.pod:43
3680 msgid ""
3681 "This is equivalent to the qemu parameter C<-drive file=filename,cache=off,"
3682 "if=...>."
3683 msgstr ""
3684
3685 # type: textblock
3686 #: ../src/guestfs-actions.pod:50 ../fish/guestfish-actions.pod:46
3687 msgid ""
3688 "C<cache=off> is omitted in cases where it is not supported by the underlying "
3689 "filesystem."
3690 msgstr ""
3691
3692 # type: textblock
3693 #: ../src/guestfs-actions.pod:53 ../src/guestfs-actions.pod:82
3694 msgid ""
3695 "C<if=...> is set at compile time by the configuration option C<./configure --"
3696 "with-drive-if=...>.  In the rare case where you might need to change this at "
3697 "run time, use C<guestfs_add_drive_with_if> or "
3698 "C<guestfs_add_drive_ro_with_if>."
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:87
3703 msgid ""
3704 "Note that this call checks for the existence of C<filename>.  This stops you "
3705 "from specifying other types of drive which are supported by qemu such as "
3706 "C<nbd:> and C<http:> URLs.  To specify those, use the general "
3707 "C<guestfs_config> call instead."
3708 msgstr ""
3709
3710 # type: =head2
3711 #: ../src/guestfs-actions.pod:65
3712 msgid "guestfs_add_drive_ro"
3713 msgstr ""
3714
3715 # type: verbatim
3716 #: ../src/guestfs-actions.pod:67
3717 #, no-wrap
3718 msgid ""
3719 " int guestfs_add_drive_ro (guestfs_h *g,\n"
3720 "\t\tconst char *filename);\n"
3721 "\n"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:63
3726 msgid "This adds a drive in snapshot mode, making it effectively read-only."
3727 msgstr ""
3728
3729 # type: textblock
3730 #: ../src/guestfs-actions.pod:73 ../fish/guestfish-actions.pod:66
3731 msgid ""
3732 "Note that writes to the device are allowed, and will be seen for the "
3733 "duration of the guestfs handle, but they are written to a temporary file "
3734 "which is discarded as soon as the guestfs handle is closed.  We don't "
3735 "currently have any method to enable changes to be committed, although qemu "
3736 "can support this."
3737 msgstr ""
3738
3739 # type: textblock
3740 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:72
3741 msgid ""
3742 "This is equivalent to the qemu parameter C<-drive file=filename,snapshot=on,"
3743 "if=...>."
3744 msgstr ""
3745
3746 # type: =head2
3747 #: ../src/guestfs-actions.pod:94
3748 msgid "guestfs_add_drive_ro_with_if"
3749 msgstr ""
3750
3751 # type: verbatim
3752 #: ../src/guestfs-actions.pod:96
3753 #, no-wrap
3754 msgid ""
3755 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
3756 "\t\tconst char *filename,\n"
3757 "\t\tconst char *iface);\n"
3758 "\n"
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs-actions.pod:100
3763 msgid ""
3764 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
3765 "QEMU interface emulation to use at run time."
3766 msgstr ""
3767
3768 # type: =head2
3769 #: ../src/guestfs-actions.pod:105
3770 msgid "guestfs_add_drive_with_if"
3771 msgstr ""
3772
3773 # type: verbatim
3774 #: ../src/guestfs-actions.pod:107
3775 #, no-wrap
3776 msgid ""
3777 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
3778 "\t\tconst char *filename,\n"
3779 "\t\tconst char *iface);\n"
3780 "\n"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs-actions.pod:111
3785 msgid ""
3786 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
3787 "QEMU interface emulation to use at run time."
3788 msgstr ""
3789
3790 # type: =head2
3791 #: ../src/guestfs-actions.pod:116
3792 msgid "guestfs_aug_clear"
3793 msgstr ""
3794
3795 # type: verbatim
3796 #: ../src/guestfs-actions.pod:118
3797 #, no-wrap
3798 msgid ""
3799 " int guestfs_aug_clear (guestfs_h *g,\n"
3800 "\t\tconst char *augpath);\n"
3801 "\n"
3802 msgstr ""
3803
3804 # type: textblock
3805 #: ../src/guestfs-actions.pod:121 ../fish/guestfish-actions.pod:103
3806 msgid ""
3807 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
3808 "L<augtool(1)> C<clear> command."
3809 msgstr ""
3810
3811 # type: =head2
3812 #: ../src/guestfs-actions.pod:126
3813 msgid "guestfs_aug_close"
3814 msgstr ""
3815
3816 # type: verbatim
3817 #: ../src/guestfs-actions.pod:128
3818 #, no-wrap
3819 msgid ""
3820 " int guestfs_aug_close (guestfs_h *g);\n"
3821 "\n"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs-actions.pod:130
3826 msgid ""
3827 "Close the current Augeas handle and free up any resources used by it.  After "
3828 "calling this, you have to call C<guestfs_aug_init> again before you can use "
3829 "any other Augeas functions."
3830 msgstr ""
3831
3832 # type: =head2
3833 #: ../src/guestfs-actions.pod:137
3834 msgid "guestfs_aug_defnode"
3835 msgstr ""
3836
3837 # type: verbatim
3838 #: ../src/guestfs-actions.pod:139
3839 #, no-wrap
3840 msgid ""
3841 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
3842 "\t\tconst char *name,\n"
3843 "\t\tconst char *expr,\n"
3844 "\t\tconst char *val);\n"
3845 "\n"
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs-actions.pod:144 ../fish/guestfish-actions.pod:119
3850 msgid ""
3851 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs-actions.pod:147
3856 msgid ""
3857 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
3858 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
3859 "containing that single node."
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:126
3864 msgid ""
3865 "On success this returns a pair containing the number of nodes in the "
3866 "nodeset, and a boolean flag if a node was created."
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs-actions.pod:155
3871 msgid ""
3872 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
3873 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
3874 msgstr ""
3875
3876 # type: =head2
3877 #: ../src/guestfs-actions.pod:159
3878 msgid "guestfs_aug_defvar"
3879 msgstr ""
3880
3881 # type: verbatim
3882 #: ../src/guestfs-actions.pod:161
3883 #, no-wrap
3884 msgid ""
3885 " int guestfs_aug_defvar (guestfs_h *g,\n"
3886 "\t\tconst char *name,\n"
3887 "\t\tconst char *expr);\n"
3888 "\n"
3889 msgstr ""
3890
3891 # type: textblock
3892 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:134
3893 msgid ""
3894 "Defines an Augeas variable C<name> whose value is the result of evaluating "
3895 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
3896 msgstr ""
3897
3898 # type: textblock
3899 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:138
3900 msgid ""
3901 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
3902 "evaluates to something which is not a nodeset."
3903 msgstr ""
3904
3905 # type: textblock
3906 #: ../src/guestfs-actions.pod:172 ../src/guestfs-actions.pod:313
3907 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:492
3908 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:523
3909 #: ../src/guestfs-actions.pod:1013 ../src/guestfs-actions.pod:1328
3910 #: ../src/guestfs-actions.pod:1510 ../src/guestfs-actions.pod:1591
3911 #: ../src/guestfs-actions.pod:1622 ../src/guestfs-actions.pod:1665
3912 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1907
3913 #: ../src/guestfs-actions.pod:2119 ../src/guestfs-actions.pod:2137
3914 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3537
3915 #: ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:4952
3916 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5286
3917 #: ../src/guestfs-actions.pod:5296
3918 msgid "On error this function returns -1."
3919 msgstr ""
3920
3921 # type: =head2
3922 #: ../src/guestfs-actions.pod:174
3923 msgid "guestfs_aug_get"
3924 msgstr ""
3925
3926 # type: verbatim
3927 #: ../src/guestfs-actions.pod:176
3928 #, no-wrap
3929 msgid ""
3930 " char *guestfs_aug_get (guestfs_h *g,\n"
3931 "\t\tconst char *augpath);\n"
3932 "\n"
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:145
3937 msgid ""
3938 "Look up the value associated with C<path>.  If C<path> matches exactly one "
3939 "node, the C<value> is returned."
3940 msgstr ""
3941
3942 # type: textblock
3943 #: ../src/guestfs-actions.pod:182 ../src/guestfs-actions.pod:610
3944 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:682
3945 #: ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:786
3946 #: ../src/guestfs-actions.pod:899 ../src/guestfs-actions.pod:928
3947 #: ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:958
3948 #: ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1205
3949 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1459
3950 #: ../src/guestfs-actions.pod:1473 ../src/guestfs-actions.pod:1549
3951 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1701
3952 #: ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2021
3953 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2187
3954 #: ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2492
3955 #: ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:3009
3956 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3831
3957 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4012
3958 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4501
3959 #: ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4536
3960 #: ../src/guestfs-actions.pod:5069 ../src/guestfs-actions.pod:5085
3961 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5248
3962 #: ../src/guestfs-actions.pod:5478
3963 msgid ""
3964 "This function returns a string, or NULL on error.  I<The caller must free "
3965 "the returned string after use>."
3966 msgstr ""
3967
3968 # type: =head2
3969 #: ../src/guestfs-actions.pod:185
3970 msgid "guestfs_aug_init"
3971 msgstr ""
3972
3973 # type: verbatim
3974 #: ../src/guestfs-actions.pod:187
3975 #, no-wrap
3976 msgid ""
3977 " int guestfs_aug_init (guestfs_h *g,\n"
3978 "\t\tconst char *root,\n"
3979 "\t\tint flags);\n"
3980 "\n"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs-actions.pod:191 ../fish/guestfish-actions.pod:152
3985 msgid ""
3986 "Create a new Augeas handle for editing configuration files.  If there was "
3987 "any previous Augeas handle associated with this guestfs session, then it is "
3988 "closed."
3989 msgstr ""
3990
3991 # type: textblock
3992 #: ../src/guestfs-actions.pod:195
3993 msgid "You must call this before using any other C<guestfs_aug_*> commands."
3994 msgstr ""
3995
3996 # type: textblock
3997 #: ../src/guestfs-actions.pod:198 ../fish/guestfish-actions.pod:159
3998 msgid ""
3999 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs-actions.pod:201 ../fish/guestfish-actions.pod:162
4004 msgid ""
4005 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4006 "logical I<or> of the following integers:"
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs-actions.pod:207 ../fish/guestfish-actions.pod:168
4011 msgid "C<AUG_SAVE_BACKUP> = 1"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs-actions.pod:209 ../fish/guestfish-actions.pod:170
4016 msgid "Keep the original file with a C<.augsave> extension."
4017 msgstr ""
4018
4019 # type: =item
4020 #: ../src/guestfs-actions.pod:211 ../fish/guestfish-actions.pod:172
4021 msgid "C<AUG_SAVE_NEWFILE> = 2"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs-actions.pod:213 ../fish/guestfish-actions.pod:174
4026 msgid ""
4027 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4028 "original.  Overrides C<AUG_SAVE_BACKUP>."
4029 msgstr ""
4030
4031 # type: =item
4032 #: ../src/guestfs-actions.pod:216 ../fish/guestfish-actions.pod:177
4033 msgid "C<AUG_TYPE_CHECK> = 4"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs-actions.pod:218 ../fish/guestfish-actions.pod:179
4038 msgid "Typecheck lenses (can be expensive)."
4039 msgstr ""
4040
4041 # type: =item
4042 #: ../src/guestfs-actions.pod:220 ../fish/guestfish-actions.pod:181
4043 msgid "C<AUG_NO_STDINC> = 8"
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs-actions.pod:222 ../fish/guestfish-actions.pod:183
4048 msgid "Do not use standard load path for modules."
4049 msgstr ""
4050
4051 # type: =item
4052 #: ../src/guestfs-actions.pod:224 ../fish/guestfish-actions.pod:185
4053 msgid "C<AUG_SAVE_NOOP> = 16"
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs-actions.pod:226 ../fish/guestfish-actions.pod:187
4058 msgid "Make save a no-op, just record what would have been changed."
4059 msgstr ""
4060
4061 # type: =item
4062 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:189
4063 msgid "C<AUG_NO_LOAD> = 32"
4064 msgstr ""
4065
4066 # type: textblock
4067 #: ../src/guestfs-actions.pod:230
4068 msgid "Do not load the tree in C<guestfs_aug_init>."
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs-actions.pod:234
4073 msgid "To close the handle, you can call C<guestfs_aug_close>."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs-actions.pod:236 ../fish/guestfish-actions.pod:197
4078 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4079 msgstr ""
4080
4081 # type: =head2
4082 #: ../src/guestfs-actions.pod:240
4083 msgid "guestfs_aug_insert"
4084 msgstr ""
4085
4086 # type: verbatim
4087 #: ../src/guestfs-actions.pod:242
4088 #, no-wrap
4089 msgid ""
4090 " int guestfs_aug_insert (guestfs_h *g,\n"
4091 "\t\tconst char *augpath,\n"
4092 "\t\tconst char *label,\n"
4093 "\t\tint before);\n"
4094 "\n"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:203
4099 msgid ""
4100 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4101 "or after C<path> (depending on the boolean flag C<before>)."
4102 msgstr ""
4103
4104 # type: textblock
4105 #: ../src/guestfs-actions.pod:251 ../fish/guestfish-actions.pod:207
4106 msgid ""
4107 "C<path> must match exactly one existing node in the tree, and C<label> must "
4108 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4109 msgstr ""
4110
4111 # type: =head2
4112 #: ../src/guestfs-actions.pod:257
4113 msgid "guestfs_aug_load"
4114 msgstr ""
4115
4116 # type: verbatim
4117 #: ../src/guestfs-actions.pod:259
4118 #, no-wrap
4119 msgid ""
4120 " int guestfs_aug_load (guestfs_h *g);\n"
4121 "\n"
4122 msgstr ""
4123
4124 # type: textblock
4125 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:215
4126 msgid "Load files into the tree."
4127 msgstr ""
4128
4129 # type: textblock
4130 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:217
4131 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4132 msgstr ""
4133
4134 # type: =head2
4135 #: ../src/guestfs-actions.pod:268
4136 msgid "guestfs_aug_ls"
4137 msgstr ""
4138
4139 # type: verbatim
4140 #: ../src/guestfs-actions.pod:270
4141 #, no-wrap
4142 msgid ""
4143 " char **guestfs_aug_ls (guestfs_h *g,\n"
4144 "\t\tconst char *augpath);\n"
4145 "\n"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:273
4150 msgid ""
4151 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4152 "sorting the resulting nodes into alphabetical order."
4153 msgstr ""
4154
4155 # type: textblock
4156 #: ../src/guestfs-actions.pod:276 ../src/guestfs-actions.pod:289
4157 #: ../src/guestfs-actions.pod:417 ../src/guestfs-actions.pod:802
4158 #: ../src/guestfs-actions.pod:1053 ../src/guestfs-actions.pod:1069
4159 #: ../src/guestfs-actions.pod:1157 ../src/guestfs-actions.pod:1173
4160 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1738
4161 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1767
4162 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1825
4163 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1927
4164 #: ../src/guestfs-actions.pod:2093 ../src/guestfs-actions.pod:2259
4165 #: ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2477
4166 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2890
4167 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3808
4168 #: ../src/guestfs-actions.pod:3894 ../src/guestfs-actions.pod:4000
4169 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4598
4170 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4766
4171 #: ../src/guestfs-actions.pod:4787 ../src/guestfs-actions.pod:5161
4172 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5216
4173 #: ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5368
4174 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5457
4175 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5513
4176 msgid ""
4177 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4178 ">), or NULL if there was an error.  I<The caller must free the strings and "
4179 "the array after use>."
4180 msgstr ""
4181
4182 # type: =head2
4183 #: ../src/guestfs-actions.pod:280
4184 msgid "guestfs_aug_match"
4185 msgstr ""
4186
4187 # type: verbatim
4188 #: ../src/guestfs-actions.pod:282
4189 #, no-wrap
4190 msgid ""
4191 " char **guestfs_aug_match (guestfs_h *g,\n"
4192 "\t\tconst char *augpath);\n"
4193 "\n"
4194 msgstr ""
4195
4196 # type: textblock
4197 #: ../src/guestfs-actions.pod:285 ../fish/guestfish-actions.pod:231
4198 msgid ""
4199 "Returns a list of paths which match the path expression C<path>.  The "
4200 "returned paths are sufficiently qualified so that they match exactly one "
4201 "node in the current tree."
4202 msgstr ""
4203
4204 # type: =head2
4205 #: ../src/guestfs-actions.pod:293
4206 msgid "guestfs_aug_mv"
4207 msgstr ""
4208
4209 # type: verbatim
4210 #: ../src/guestfs-actions.pod:295
4211 #, no-wrap
4212 msgid ""
4213 " int guestfs_aug_mv (guestfs_h *g,\n"
4214 "\t\tconst char *src,\n"
4215 "\t\tconst char *dest);\n"
4216 "\n"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:299 ../fish/guestfish-actions.pod:239
4221 msgid ""
4222 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4223 "C<dest> is overwritten if it exists."
4224 msgstr ""
4225
4226 # type: =head2
4227 #: ../src/guestfs-actions.pod:304
4228 msgid "guestfs_aug_rm"
4229 msgstr ""
4230
4231 # type: verbatim
4232 #: ../src/guestfs-actions.pod:306
4233 #, no-wrap
4234 msgid ""
4235 " int guestfs_aug_rm (guestfs_h *g,\n"
4236 "\t\tconst char *augpath);\n"
4237 "\n"
4238 msgstr ""
4239
4240 # type: textblock
4241 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:246
4242 msgid "Remove C<path> and all of its children."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:248
4247 msgid "On success this returns the number of entries which were removed."
4248 msgstr ""
4249
4250 # type: =head2
4251 #: ../src/guestfs-actions.pod:315
4252 msgid "guestfs_aug_save"
4253 msgstr ""
4254
4255 # type: verbatim
4256 #: ../src/guestfs-actions.pod:317
4257 #, no-wrap
4258 msgid ""
4259 " int guestfs_aug_save (guestfs_h *g);\n"
4260 "\n"
4261 msgstr ""
4262
4263 # type: textblock
4264 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:254
4265 msgid "This writes all pending changes to disk."
4266 msgstr ""
4267
4268 # type: textblock
4269 #: ../src/guestfs-actions.pod:321
4270 msgid ""
4271 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4272 "are saved."
4273 msgstr ""
4274
4275 # type: =head2
4276 #: ../src/guestfs-actions.pod:326
4277 msgid "guestfs_aug_set"
4278 msgstr ""
4279
4280 # type: verbatim
4281 #: ../src/guestfs-actions.pod:328
4282 #, no-wrap
4283 msgid ""
4284 " int guestfs_aug_set (guestfs_h *g,\n"
4285 "\t\tconst char *augpath,\n"
4286 "\t\tconst char *val);\n"
4287 "\n"
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:263
4292 msgid "Set the value associated with C<path> to C<val>."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:334
4297 msgid ""
4298 "In the Augeas API, it is possible to clear a node by setting the value to "
4299 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4300 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4301 msgstr ""
4302
4303 # type: =head2
4304 #: ../src/guestfs-actions.pod:341
4305 msgid "guestfs_available"
4306 msgstr ""
4307
4308 # type: verbatim
4309 #: ../src/guestfs-actions.pod:343
4310 #, no-wrap
4311 msgid ""
4312 " int guestfs_available (guestfs_h *g,\n"
4313 "\t\tchar *const *groups);\n"
4314 "\n"
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:274
4319 msgid ""
4320 "This command is used to check the availability of some groups of "
4321 "functionality in the appliance, which not all builds of the libguestfs "
4322 "appliance will be able to provide."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:350
4327 msgid ""
4328 "The libguestfs groups, and the functions that those groups correspond to, "
4329 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4330 "runtime by calling C<guestfs_available_all_groups>."
4331 msgstr ""
4332
4333 # type: textblock
4334 #: ../src/guestfs-actions.pod:355 ../fish/guestfish-actions.pod:283
4335 msgid ""
4336 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4337 "\"]> would check for the availability of the Linux inotify functions and "
4338 "Augeas (configuration file editing) functions."
4339 msgstr ""
4340
4341 # type: textblock
4342 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:288
4343 msgid "The command returns no error if I<all> requested groups are available."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:362 ../fish/guestfish-actions.pod:290
4348 msgid ""
4349 "It fails with an error if one or more of the requested groups is unavailable "
4350 "in the appliance."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:293
4355 msgid ""
4356 "If an unknown group name is included in the list of groups then an error is "
4357 "always returned."
4358 msgstr ""
4359
4360 # type: textblock
4361 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:296
4362 msgid "I<Notes:>"
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:374
4367 msgid "You must call C<guestfs_launch> before calling this function."
4368 msgstr ""
4369
4370 # type: textblock
4371 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:304
4372 msgid ""
4373 "The reason is because we don't know what groups are supported by the "
4374 "appliance/daemon until it is running and can be queried."
4375 msgstr ""
4376
4377 # type: textblock
4378 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:310
4379 msgid ""
4380 "If a group of functions is available, this does not necessarily mean that "
4381 "they will work.  You still have to check for errors when calling individual "
4382 "API functions even if they are available."
4383 msgstr ""
4384
4385 # type: textblock
4386 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:317
4387 msgid ""
4388 "It is usually the job of distro packagers to build complete functionality "
4389 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4390 "with all requirements satisfied, will support everything."
4391 msgstr ""
4392
4393 # type: textblock
4394 #: ../src/guestfs-actions.pod:396
4395 msgid ""
4396 "This call was added in version C<1.0.80>.  In previous versions of "
4397 "libguestfs all you could do would be to speculatively execute a command to "
4398 "find out if the daemon implemented it.  See also C<guestfs_version>."
4399 msgstr ""
4400
4401 # type: =head2
4402 #: ../src/guestfs-actions.pod:405
4403 msgid "guestfs_available_all_groups"
4404 msgstr ""
4405
4406 # type: verbatim
4407 #: ../src/guestfs-actions.pod:407
4408 #, no-wrap
4409 msgid ""
4410 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4411 "\n"
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:409
4416 msgid ""
4417 "This command returns a list of all optional groups that this daemon knows "
4418 "about.  Note this returns both supported and unsupported groups.  To find "
4419 "out which ones the daemon can actually support you have to call "
4420 "C<guestfs_available> on each member of the returned list."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:415
4425 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4426 msgstr ""
4427
4428 # type: =head2
4429 #: ../src/guestfs-actions.pod:421
4430 msgid "guestfs_base64_in"
4431 msgstr ""
4432
4433 # type: verbatim
4434 #: ../src/guestfs-actions.pod:423
4435 #, no-wrap
4436 msgid ""
4437 " int guestfs_base64_in (guestfs_h *g,\n"
4438 "\t\tconst char *base64file,\n"
4439 "\t\tconst char *filename);\n"
4440 "\n"
4441 msgstr ""
4442
4443 # type: textblock
4444 #: ../src/guestfs-actions.pod:427 ../fish/guestfish-actions.pod:347
4445 msgid ""
4446 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4447 msgstr ""
4448
4449 # type: =head2
4450 #: ../src/guestfs-actions.pod:432
4451 msgid "guestfs_base64_out"
4452 msgstr ""
4453
4454 # type: verbatim
4455 #: ../src/guestfs-actions.pod:434
4456 #, no-wrap
4457 msgid ""
4458 " int guestfs_base64_out (guestfs_h *g,\n"
4459 "\t\tconst char *filename,\n"
4460 "\t\tconst char *base64file);\n"
4461 "\n"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:356
4466 msgid ""
4467 "This command downloads the contents of C<filename>, writing it out to local "
4468 "file C<base64file> encoded as base64."
4469 msgstr ""
4470
4471 # type: =head2
4472 #: ../src/guestfs-actions.pod:443
4473 msgid "guestfs_blockdev_flushbufs"
4474 msgstr ""
4475
4476 # type: verbatim
4477 #: ../src/guestfs-actions.pod:445
4478 #, no-wrap
4479 msgid ""
4480 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4481 "\t\tconst char *device);\n"
4482 "\n"
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:365
4487 msgid ""
4488 "This tells the kernel to flush internal buffers associated with C<device>."
4489 msgstr ""
4490
4491 # type: textblock
4492 #: ../src/guestfs-actions.pod:451 ../src/guestfs-actions.pod:465
4493 #: ../src/guestfs-actions.pod:477 ../src/guestfs-actions.pod:490
4494 #: ../src/guestfs-actions.pod:505 ../src/guestfs-actions.pod:521
4495 #: ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:547
4496 #: ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:569
4497 #: ../fish/guestfish-actions.pod:368 ../fish/guestfish-actions.pod:379
4498 #: ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:398
4499 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:423
4500 #: ../fish/guestfish-actions.pod:431 ../fish/guestfish-actions.pod:442
4501 #: ../fish/guestfish-actions.pod:450 ../fish/guestfish-actions.pod:458
4502 msgid "This uses the L<blockdev(8)> command."
4503 msgstr ""
4504
4505 # type: =head2
4506 #: ../src/guestfs-actions.pod:455
4507 msgid "guestfs_blockdev_getbsz"
4508 msgstr ""
4509
4510 # type: verbatim
4511 #: ../src/guestfs-actions.pod:457
4512 #, no-wrap
4513 msgid ""
4514 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4515 "\t\tconst char *device);\n"
4516 "\n"
4517 msgstr ""
4518
4519 # type: textblock
4520 #: ../src/guestfs-actions.pod:460 ../fish/guestfish-actions.pod:374
4521 msgid "This returns the block size of a device."
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:462 ../src/guestfs-actions.pod:544
4526 #: ../fish/guestfish-actions.pod:376 ../fish/guestfish-actions.pod:439
4527 msgid ""
4528 "(Note this is different from both I<size in blocks> and I<filesystem block "
4529 "size>)."
4530 msgstr ""
4531
4532 # type: =head2
4533 #: ../src/guestfs-actions.pod:469
4534 msgid "guestfs_blockdev_getro"
4535 msgstr ""
4536
4537 # type: verbatim
4538 #: ../src/guestfs-actions.pod:471
4539 #, no-wrap
4540 msgid ""
4541 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4542 "\t\tconst char *device);\n"
4543 "\n"
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:474 ../fish/guestfish-actions.pod:385
4548 msgid ""
4549 "Returns a boolean indicating if the block device is read-only (true if read-"
4550 "only, false if not)."
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:479 ../src/guestfs-actions.pod:1087
4555 #: ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1531
4556 #: ../src/guestfs-actions.pod:1539 ../src/guestfs-actions.pod:1599
4557 #: ../src/guestfs-actions.pod:1642 ../src/guestfs-actions.pod:1654
4558 #: ../src/guestfs-actions.pod:1673 ../src/guestfs-actions.pod:1690
4559 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2284
4560 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2307
4561 #: ../src/guestfs-actions.pod:2320 ../src/guestfs-actions.pod:2332
4562 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2356
4563 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2377
4564 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2401
4565 #: ../src/guestfs-actions.pod:3522
4566 msgid "This function returns a C truth value on success or -1 on error."
4567 msgstr ""
4568
4569 # type: =head2
4570 #: ../src/guestfs-actions.pod:481
4571 msgid "guestfs_blockdev_getsize64"
4572 msgstr ""
4573
4574 # type: verbatim
4575 #: ../src/guestfs-actions.pod:483
4576 #, no-wrap
4577 msgid ""
4578 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4579 "\t\tconst char *device);\n"
4580 "\n"
4581 msgstr ""
4582
4583 # type: textblock
4584 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:394
4585 msgid "This returns the size of the device in bytes."
4586 msgstr ""
4587
4588 # type: textblock
4589 #: ../src/guestfs-actions.pod:488
4590 msgid "See also C<guestfs_blockdev_getsz>."
4591 msgstr ""
4592
4593 # type: =head2
4594 #: ../src/guestfs-actions.pod:494
4595 msgid "guestfs_blockdev_getss"
4596 msgstr ""
4597
4598 # type: verbatim
4599 #: ../src/guestfs-actions.pod:496
4600 #, no-wrap
4601 msgid ""
4602 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4603 "\t\tconst char *device);\n"
4604 "\n"
4605 msgstr ""
4606
4607 # type: textblock
4608 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:404
4609 msgid ""
4610 "This returns the size of sectors on a block device.  Usually 512, but can be "
4611 "larger for modern devices."
4612 msgstr ""
4613
4614 # type: textblock
4615 #: ../src/guestfs-actions.pod:502
4616 msgid ""
4617 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4618 "that)."
4619 msgstr ""
4620
4621 # type: =head2
4622 #: ../src/guestfs-actions.pod:509
4623 msgid "guestfs_blockdev_getsz"
4624 msgstr ""
4625
4626 # type: verbatim
4627 #: ../src/guestfs-actions.pod:511
4628 #, no-wrap
4629 msgid ""
4630 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4631 "\t\tconst char *device);\n"
4632 "\n"
4633 msgstr ""
4634
4635 # type: textblock
4636 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:416
4637 msgid ""
4638 "This returns the size of the device in units of 512-byte sectors (even if "
4639 "the sectorsize isn't 512 bytes ... weird)."
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:517
4644 msgid ""
4645 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4646 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4647 msgstr ""
4648
4649 # type: =head2
4650 #: ../src/guestfs-actions.pod:525
4651 msgid "guestfs_blockdev_rereadpt"
4652 msgstr ""
4653
4654 # type: verbatim
4655 #: ../src/guestfs-actions.pod:527
4656 #, no-wrap
4657 msgid ""
4658 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4659 "\t\tconst char *device);\n"
4660 "\n"
4661 msgstr ""
4662
4663 # type: textblock
4664 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:429
4665 msgid "Reread the partition table on C<device>."
4666 msgstr ""
4667
4668 # type: =head2
4669 #: ../src/guestfs-actions.pod:536
4670 msgid "guestfs_blockdev_setbsz"
4671 msgstr ""
4672
4673 # type: verbatim
4674 #: ../src/guestfs-actions.pod:538
4675 #, no-wrap
4676 msgid ""
4677 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4678 "\t\tconst char *device,\n"
4679 "\t\tint blocksize);\n"
4680 "\n"
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:542 ../fish/guestfish-actions.pod:437
4685 msgid "This sets the block size of a device."
4686 msgstr ""
4687
4688 # type: =head2
4689 #: ../src/guestfs-actions.pod:551
4690 msgid "guestfs_blockdev_setro"
4691 msgstr ""
4692
4693 # type: verbatim
4694 #: ../src/guestfs-actions.pod:553
4695 #, no-wrap
4696 msgid ""
4697 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4698 "\t\tconst char *device);\n"
4699 "\n"
4700 msgstr ""
4701
4702 # type: textblock
4703 #: ../src/guestfs-actions.pod:556 ../fish/guestfish-actions.pod:448
4704 msgid "Sets the block device named C<device> to read-only."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:562
4709 msgid "guestfs_blockdev_setrw"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:564
4714 #, no-wrap
4715 msgid ""
4716 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4717 "\t\tconst char *device);\n"
4718 "\n"
4719 msgstr ""
4720
4721 # type: textblock
4722 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:456
4723 msgid "Sets the block device named C<device> to read-write."
4724 msgstr ""
4725
4726 # type: =head2
4727 #: ../src/guestfs-actions.pod:573
4728 msgid "guestfs_case_sensitive_path"
4729 msgstr ""
4730
4731 # type: verbatim
4732 #: ../src/guestfs-actions.pod:575
4733 #, no-wrap
4734 msgid ""
4735 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4736 "\t\tconst char *path);\n"
4737 "\n"
4738 msgstr ""
4739
4740 # type: textblock
4741 #: ../src/guestfs-actions.pod:578 ../fish/guestfish-actions.pod:464
4742 msgid ""
4743 "This can be used to resolve case insensitive paths on a filesystem which is "
4744 "case sensitive.  The use case is to resolve paths which you have read from "
4745 "Windows configuration files or the Windows Registry, to the true path."
4746 msgstr ""
4747
4748 # type: textblock
4749 #: ../src/guestfs-actions.pod:583 ../fish/guestfish-actions.pod:469
4750 msgid ""
4751 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4752 "(and probably others), which is that although the underlying filesystem is "
4753 "case-insensitive, the driver exports the filesystem to Linux as case-"
4754 "sensitive."
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:474
4759 msgid ""
4760 "One consequence of this is that special directories such as C<c:\\windows> "
4761 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4762 "precise details of how they were created.  In Windows itself this would not "
4763 "be a problem."
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:480
4768 msgid ""
4769 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
4770 "#posixfilenames1>"
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:597 ../fish/guestfish-actions.pod:483
4775 msgid ""
4776 "This function resolves the true case of each element in the path and returns "
4777 "the case-sensitive path."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:600
4782 msgid ""
4783 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
4784 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4785 "how the directories were originally created under Windows)."
4786 msgstr ""
4787
4788 # type: textblock
4789 #: ../src/guestfs-actions.pod:605 ../fish/guestfish-actions.pod:491
4790 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4791 msgstr ""
4792
4793 # type: textblock
4794 #: ../src/guestfs-actions.pod:608
4795 msgid "See also C<guestfs_realpath>."
4796 msgstr ""
4797
4798 # type: =head2
4799 #: ../src/guestfs-actions.pod:613
4800 msgid "guestfs_cat"
4801 msgstr ""
4802
4803 # type: verbatim
4804 #: ../src/guestfs-actions.pod:615
4805 #, no-wrap
4806 msgid ""
4807 " char *guestfs_cat (guestfs_h *g,\n"
4808 "\t\tconst char *path);\n"
4809 "\n"
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:618 ../src/guestfs-actions.pod:3884
4814 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:2989
4815 msgid "Return the contents of the file named C<path>."
4816 msgstr ""
4817
4818 # type: textblock
4819 #: ../src/guestfs-actions.pod:620
4820 msgid ""
4821 "Note that this function cannot correctly handle binary files (specifically, "
4822 "files containing C<\\0> character which is treated as end of string).  For "
4823 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
4824 "functions which have a more complex interface."
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:789
4829 #: ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:1057
4830 #: ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1161
4831 #: ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1408
4832 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:1771
4833 #: ../src/guestfs-actions.pod:1808 ../src/guestfs-actions.pod:1829
4834 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1869
4835 #: ../src/guestfs-actions.pod:3747 ../src/guestfs-actions.pod:3855
4836 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4602
4837 #: ../src/guestfs-actions.pod:4654 ../src/guestfs-actions.pod:4770
4838 #: ../src/guestfs-actions.pod:4791 ../src/guestfs-actions.pod:5310
4839 #: ../src/guestfs-actions.pod:5333 ../src/guestfs-actions.pod:5356
4840 #: ../src/guestfs-actions.pod:5372 ../src/guestfs-actions.pod:5445
4841 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5501
4842 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:507
4843 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:654
4844 #: ../fish/guestfish-actions.pod:836 ../fish/guestfish-actions.pod:846
4845 #: ../fish/guestfish-actions.pod:913 ../fish/guestfish-actions.pod:923
4846 #: ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1391
4847 #: ../fish/guestfish-actions.pod:1401 ../fish/guestfish-actions.pod:1429
4848 #: ../fish/guestfish-actions.pod:1444 ../fish/guestfish-actions.pod:1454
4849 #: ../fish/guestfish-actions.pod:1473 ../fish/guestfish-actions.pod:2891
4850 #: ../fish/guestfish-actions.pod:2967 ../fish/guestfish-actions.pod:2982
4851 #: ../fish/guestfish-actions.pod:3543 ../fish/guestfish-actions.pod:3589
4852 #: ../fish/guestfish-actions.pod:3674 ../fish/guestfish-actions.pod:3689
4853 #: ../fish/guestfish-actions.pod:4072 ../fish/guestfish-actions.pod:4090
4854 #: ../fish/guestfish-actions.pod:4107 ../fish/guestfish-actions.pod:4117
4855 #: ../fish/guestfish-actions.pod:4165 ../fish/guestfish-actions.pod:4175
4856 #: ../fish/guestfish-actions.pod:4204 ../fish/guestfish-actions.pod:4214
4857 msgid ""
4858 "Because of the message protocol, there is a transfer limit of somewhere "
4859 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4860 msgstr ""
4861
4862 # type: =head2
4863 #: ../src/guestfs-actions.pod:631
4864 msgid "guestfs_checksum"
4865 msgstr ""
4866
4867 # type: verbatim
4868 #: ../src/guestfs-actions.pod:633
4869 #, no-wrap
4870 msgid ""
4871 " char *guestfs_checksum (guestfs_h *g,\n"
4872 "\t\tconst char *csumtype,\n"
4873 "\t\tconst char *path);\n"
4874 "\n"
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:637 ../fish/guestfish-actions.pod:514
4879 msgid ""
4880 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4881 msgstr ""
4882
4883 # type: textblock
4884 #: ../src/guestfs-actions.pod:640 ../fish/guestfish-actions.pod:517
4885 msgid ""
4886 "The type of checksum to compute is given by the C<csumtype> parameter which "
4887 "must have one of the following values:"
4888 msgstr ""
4889
4890 # type: =item
4891 #: ../src/guestfs-actions.pod:645 ../fish/guestfish-actions.pod:522
4892 msgid "C<crc>"
4893 msgstr ""
4894
4895 # type: textblock
4896 #: ../src/guestfs-actions.pod:647 ../fish/guestfish-actions.pod:524
4897 msgid ""
4898 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4899 "C<cksum> command."
4900 msgstr ""
4901
4902 # type: =item
4903 #: ../src/guestfs-actions.pod:650 ../fish/guestfish-actions.pod:527
4904 msgid "C<md5>"
4905 msgstr ""
4906
4907 # type: textblock
4908 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:529
4909 msgid "Compute the MD5 hash (using the C<md5sum> program)."
4910 msgstr ""
4911
4912 # type: =item
4913 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:531
4914 msgid "C<sha1>"
4915 msgstr ""
4916
4917 # type: textblock
4918 #: ../src/guestfs-actions.pod:656 ../fish/guestfish-actions.pod:533
4919 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
4920 msgstr ""
4921
4922 # type: =item
4923 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:535
4924 msgid "C<sha224>"
4925 msgstr ""
4926
4927 # type: textblock
4928 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:537
4929 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
4930 msgstr ""
4931
4932 # type: =item
4933 #: ../src/guestfs-actions.pod:662 ../fish/guestfish-actions.pod:539
4934 msgid "C<sha256>"
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:664 ../fish/guestfish-actions.pod:541
4939 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
4940 msgstr ""
4941
4942 # type: =item
4943 #: ../src/guestfs-actions.pod:666 ../fish/guestfish-actions.pod:543
4944 msgid "C<sha384>"
4945 msgstr ""
4946
4947 # type: textblock
4948 #: ../src/guestfs-actions.pod:668 ../fish/guestfish-actions.pod:545
4949 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
4950 msgstr ""
4951
4952 # type: =item
4953 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:547
4954 msgid "C<sha512>"
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:549
4959 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
4960 msgstr ""
4961
4962 # type: textblock
4963 #: ../src/guestfs-actions.pod:676 ../fish/guestfish-actions.pod:553
4964 msgid "The checksum is returned as a printable string."
4965 msgstr ""
4966
4967 # type: textblock
4968 #: ../src/guestfs-actions.pod:678
4969 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
4970 msgstr ""
4971
4972 # type: textblock
4973 #: ../src/guestfs-actions.pod:680
4974 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
4975 msgstr ""
4976
4977 # type: =head2
4978 #: ../src/guestfs-actions.pod:685
4979 msgid "guestfs_checksum_device"
4980 msgstr ""
4981
4982 # type: verbatim
4983 #: ../src/guestfs-actions.pod:687
4984 #, no-wrap
4985 msgid ""
4986 " char *guestfs_checksum_device (guestfs_h *g,\n"
4987 "\t\tconst char *csumtype,\n"
4988 "\t\tconst char *device);\n"
4989 "\n"
4990 msgstr ""
4991
4992 # type: textblock
4993 #: ../src/guestfs-actions.pod:691
4994 msgid ""
4995 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
4996 "device named C<device>.  For the types of checksums supported see the "
4997 "C<guestfs_checksum> command."
4998 msgstr ""
4999
5000 # type: =head2
5001 #: ../src/guestfs-actions.pod:698
5002 msgid "guestfs_checksums_out"
5003 msgstr ""
5004
5005 # type: verbatim
5006 #: ../src/guestfs-actions.pod:700
5007 #, no-wrap
5008 msgid ""
5009 " int guestfs_checksums_out (guestfs_h *g,\n"
5010 "\t\tconst char *csumtype,\n"
5011 "\t\tconst char *directory,\n"
5012 "\t\tconst char *sumsfile);\n"
5013 "\n"
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:705 ../fish/guestfish-actions.pod:571
5018 msgid ""
5019 "This command computes the checksums of all regular files in C<directory> and "
5020 "then emits a list of those checksums to the local output file C<sumsfile>."
5021 msgstr ""
5022
5023 # type: textblock
5024 #: ../src/guestfs-actions.pod:709 ../fish/guestfish-actions.pod:575
5025 msgid ""
5026 "This can be used for verifying the integrity of a virtual machine.  However "
5027 "to be properly secure you should pay attention to the output of the checksum "
5028 "command (it uses the ones from GNU coreutils).  In particular when the "
5029 "filename is not printable, coreutils uses a special backslash syntax.  For "
5030 "more information, see the GNU coreutils info file."
5031 msgstr ""
5032
5033 # type: =head2
5034 #: ../src/guestfs-actions.pod:719
5035 msgid "guestfs_chmod"
5036 msgstr ""
5037
5038 # type: verbatim
5039 #: ../src/guestfs-actions.pod:721
5040 #, no-wrap
5041 msgid ""
5042 " int guestfs_chmod (guestfs_h *g,\n"
5043 "\t\tint mode,\n"
5044 "\t\tconst char *path);\n"
5045 "\n"
5046 msgstr ""
5047
5048 # type: textblock
5049 #: ../src/guestfs-actions.pod:725 ../fish/guestfish-actions.pod:589
5050 msgid ""
5051 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5052 "supported."
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:592
5057 msgid ""
5058 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5059 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5060 "C<700>."
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:3105
5065 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3209
5066 #: ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:596
5067 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2477
5068 #: ../fish/guestfish-actions.pod:2487 ../fish/guestfish-actions.pod:2497
5069 msgid "The mode actually set is affected by the umask."
5070 msgstr ""
5071
5072 # type: =head2
5073 #: ../src/guestfs-actions.pod:736
5074 msgid "guestfs_chown"
5075 msgstr ""
5076
5077 # type: verbatim
5078 #: ../src/guestfs-actions.pod:738
5079 #, no-wrap
5080 msgid ""
5081 " int guestfs_chown (guestfs_h *g,\n"
5082 "\t\tint owner,\n"
5083 "\t\tint group,\n"
5084 "\t\tconst char *path);\n"
5085 "\n"
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:743 ../fish/guestfish-actions.pod:602
5090 msgid "Change the file owner to C<owner> and group to C<group>."
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:2434
5095 #: ../fish/guestfish-actions.pod:604 ../fish/guestfish-actions.pod:1935
5096 msgid ""
5097 "Only numeric uid and gid are supported.  If you want to use names, you will "
5098 "need to locate and parse the password file yourself (Augeas support makes "
5099 "this relatively easy)."
5100 msgstr ""
5101
5102 # type: =head2
5103 #: ../src/guestfs-actions.pod:751
5104 msgid "guestfs_command"
5105 msgstr ""
5106
5107 # type: verbatim
5108 #: ../src/guestfs-actions.pod:753
5109 #, no-wrap
5110 msgid ""
5111 " char *guestfs_command (guestfs_h *g,\n"
5112 "\t\tchar *const *arguments);\n"
5113 "\n"
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:756 ../fish/guestfish-actions.pod:612
5118 msgid ""
5119 "This call runs a command from the guest filesystem.  The filesystem must be "
5120 "mounted, and must contain a compatible operating system (ie. something "
5121 "Linux, with the same or compatible processor architecture)."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:761
5126 msgid ""
5127 "The single parameter is an argv-style list of arguments.  The first element "
5128 "is the name of the program to run.  Subsequent elements are parameters.  The "
5129 "list must be non-empty (ie. must contain a program name).  Note that the "
5130 "command runs directly, and is I<not> invoked via the shell (see "
5131 "C<guestfs_sh>)."
5132 msgstr ""
5133
5134 # type: textblock
5135 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:624
5136 msgid "The return value is anything printed to I<stdout> by the command."
5137 msgstr ""
5138
5139 # type: textblock
5140 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:627
5141 msgid ""
5142 "If the command returns a non-zero exit status, then this function returns an "
5143 "error message.  The error message string is the content of I<stderr> from "
5144 "the command."
5145 msgstr ""
5146
5147 # type: textblock
5148 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:631
5149 msgid ""
5150 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5151 "bin>.  If you require a program from another location, you should provide "
5152 "the full path in the first parameter."
5153 msgstr ""
5154
5155 # type: textblock
5156 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:636
5157 msgid ""
5158 "Shared libraries and data files required by the program must be available on "
5159 "filesystems which are mounted in the correct places.  It is the caller's "
5160 "responsibility to ensure all filesystems that are needed are mounted at the "
5161 "right locations."
5162 msgstr ""
5163
5164 # type: =head2
5165 #: ../src/guestfs-actions.pod:792
5166 msgid "guestfs_command_lines"
5167 msgstr ""
5168
5169 # type: verbatim
5170 #: ../src/guestfs-actions.pod:794
5171 #, no-wrap
5172 msgid ""
5173 " char **guestfs_command_lines (guestfs_h *g,\n"
5174 "\t\tchar *const *arguments);\n"
5175 "\n"
5176 msgstr ""
5177
5178 # type: textblock
5179 #: ../src/guestfs-actions.pod:797
5180 msgid ""
5181 "This is the same as C<guestfs_command>, but splits the result into a list of "
5182 "lines."
5183 msgstr ""
5184
5185 # type: textblock
5186 #: ../src/guestfs-actions.pod:800
5187 msgid "See also: C<guestfs_sh_lines>"
5188 msgstr ""
5189
5190 # type: =head2
5191 #: ../src/guestfs-actions.pod:809
5192 msgid "guestfs_config"
5193 msgstr ""
5194
5195 # type: verbatim
5196 #: ../src/guestfs-actions.pod:811
5197 #, no-wrap
5198 msgid ""
5199 " int guestfs_config (guestfs_h *g,\n"
5200 "\t\tconst char *qemuparam,\n"
5201 "\t\tconst char *qemuvalue);\n"
5202 "\n"
5203 msgstr ""
5204
5205 # type: textblock
5206 #: ../src/guestfs-actions.pod:815 ../fish/guestfish-actions.pod:661
5207 msgid ""
5208 "This can be used to add arbitrary qemu command line parameters of the form "
5209 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5210 "setting some parameters which would interfere with parameters that we use."
5211 msgstr ""
5212
5213 # type: textblock
5214 #: ../src/guestfs-actions.pod:820 ../fish/guestfish-actions.pod:666
5215 msgid "The first character of C<param> string must be a C<-> (dash)."
5216 msgstr ""
5217
5218 # type: textblock
5219 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:668
5220 msgid "C<value> can be NULL."
5221 msgstr ""
5222
5223 # type: =head2
5224 #: ../src/guestfs-actions.pod:826
5225 msgid "guestfs_copy_size"
5226 msgstr ""
5227
5228 # type: verbatim
5229 #: ../src/guestfs-actions.pod:828
5230 #, no-wrap
5231 msgid ""
5232 " int guestfs_copy_size (guestfs_h *g,\n"
5233 "\t\tconst char *src,\n"
5234 "\t\tconst char *dest,\n"
5235 "\t\tint64_t size);\n"
5236 "\n"
5237 msgstr ""
5238
5239 # type: textblock
5240 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:674
5241 msgid ""
5242 "This command copies exactly C<size> bytes from one source device or file "
5243 "C<src> to another destination device or file C<dest>."
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:677
5248 msgid ""
5249 "Note this will fail if the source is too short or if the destination is not "
5250 "large enough."
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:976
5255 #: ../src/guestfs-actions.pod:1348 ../src/guestfs-actions.pod:1367
5256 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5406
5257 msgid ""
5258 "This long-running command can generate progress notification messages so "
5259 "that the caller can display a progress bar or indicator.  To receive these "
5260 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5261 "guestfs_set_progress_callback>."
5262 msgstr ""
5263
5264 # type: =head2
5265 #: ../src/guestfs-actions.pod:846
5266 msgid "guestfs_cp"
5267 msgstr ""
5268
5269 # type: verbatim
5270 #: ../src/guestfs-actions.pod:848
5271 #, no-wrap
5272 msgid ""
5273 " int guestfs_cp (guestfs_h *g,\n"
5274 "\t\tconst char *src,\n"
5275 "\t\tconst char *dest);\n"
5276 "\n"
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:684
5281 msgid ""
5282 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5283 "destination filename or destination directory."
5284 msgstr ""
5285
5286 # type: =head2
5287 #: ../src/guestfs-actions.pod:857
5288 msgid "guestfs_cp_a"
5289 msgstr ""
5290
5291 # type: verbatim
5292 #: ../src/guestfs-actions.pod:859
5293 #, no-wrap
5294 msgid ""
5295 " int guestfs_cp_a (guestfs_h *g,\n"
5296 "\t\tconst char *src,\n"
5297 "\t\tconst char *dest);\n"
5298 "\n"
5299 msgstr ""
5300
5301 # type: textblock
5302 #: ../src/guestfs-actions.pod:863 ../fish/guestfish-actions.pod:691
5303 msgid ""
5304 "This copies a file or directory from C<src> to C<dest> recursively using the "
5305 "C<cp -a> command."
5306 msgstr ""
5307
5308 # type: =head2
5309 #: ../src/guestfs-actions.pod:868
5310 msgid "guestfs_dd"
5311 msgstr ""
5312
5313 # type: verbatim
5314 #: ../src/guestfs-actions.pod:870
5315 #, no-wrap
5316 msgid ""
5317 " int guestfs_dd (guestfs_h *g,\n"
5318 "\t\tconst char *src,\n"
5319 "\t\tconst char *dest);\n"
5320 "\n"
5321 msgstr ""
5322
5323 # type: textblock
5324 #: ../src/guestfs-actions.pod:874 ../fish/guestfish-actions.pod:698
5325 msgid ""
5326 "This command copies from one source device or file C<src> to another "
5327 "destination device or file C<dest>.  Normally you would use this to copy to "
5328 "or from a device or partition, for example to duplicate a filesystem."
5329 msgstr ""
5330
5331 # type: textblock
5332 #: ../src/guestfs-actions.pod:879
5333 msgid ""
5334 "If the destination is a device, it must be as large or larger than the "
5335 "source file or device, otherwise the copy will fail.  This command cannot do "
5336 "partial copies (see C<guestfs_copy_size>)."
5337 msgstr ""
5338
5339 # type: =head2
5340 #: ../src/guestfs-actions.pod:885
5341 msgid "guestfs_debug"
5342 msgstr ""
5343
5344 # type: verbatim
5345 #: ../src/guestfs-actions.pod:887
5346 #, no-wrap
5347 msgid ""
5348 " char *guestfs_debug (guestfs_h *g,\n"
5349 "\t\tconst char *subcmd,\n"
5350 "\t\tchar *const *extraargs);\n"
5351 "\n"
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:891
5356 msgid ""
5357 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5358 "guestfs daemon) that runs inside the qemu subprocess."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:715
5363 msgid ""
5364 "There is no comprehensive help for this command.  You have to look at the "
5365 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5366 msgstr ""
5367
5368 # type: =head2
5369 #: ../src/guestfs-actions.pod:902
5370 msgid "guestfs_debug_upload"
5371 msgstr ""
5372
5373 # type: verbatim
5374 #: ../src/guestfs-actions.pod:904
5375 #, no-wrap
5376 msgid ""
5377 " int guestfs_debug_upload (guestfs_h *g,\n"
5378 "\t\tconst char *filename,\n"
5379 "\t\tconst char *tmpname,\n"
5380 "\t\tint mode);\n"
5381 "\n"
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:909
5386 msgid ""
5387 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5388 "appliance."
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:912 ../fish/guestfish-actions.pod:726
5393 msgid ""
5394 "There is no comprehensive help for this command.  You have to look at the "
5395 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5396 msgstr ""
5397
5398 # type: =head2
5399 #: ../src/guestfs-actions.pod:918
5400 msgid "guestfs_df"
5401 msgstr ""
5402
5403 # type: verbatim
5404 #: ../src/guestfs-actions.pod:920
5405 #, no-wrap
5406 msgid ""
5407 " char *guestfs_df (guestfs_h *g);\n"
5408 "\n"
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:922 ../fish/guestfish-actions.pod:736
5413 msgid "This command runs the C<df> command to report disk space used."
5414 msgstr ""
5415
5416 # type: textblock
5417 #: ../src/guestfs-actions.pod:924 ../src/guestfs-actions.pod:938
5418 #: ../fish/guestfish-actions.pod:738 ../fish/guestfish-actions.pod:749
5419 msgid ""
5420 "This command is mostly useful for interactive sessions.  It is I<not> "
5421 "intended that you try to parse the output string.  Use C<statvfs> from "
5422 "programs."
5423 msgstr ""
5424
5425 # type: =head2
5426 #: ../src/guestfs-actions.pod:931
5427 msgid "guestfs_df_h"
5428 msgstr ""
5429
5430 # type: verbatim
5431 #: ../src/guestfs-actions.pod:933
5432 #, no-wrap
5433 msgid ""
5434 " char *guestfs_df_h (guestfs_h *g);\n"
5435 "\n"
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:746
5440 msgid ""
5441 "This command runs the C<df -h> command to report disk space used in human-"
5442 "readable format."
5443 msgstr ""
5444
5445 # type: =head2
5446 #: ../src/guestfs-actions.pod:945
5447 msgid "guestfs_dmesg"
5448 msgstr ""
5449
5450 # type: verbatim
5451 #: ../src/guestfs-actions.pod:947
5452 #, no-wrap
5453 msgid ""
5454 " char *guestfs_dmesg (guestfs_h *g);\n"
5455 "\n"
5456 msgstr ""
5457
5458 # type: textblock
5459 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:757
5460 msgid ""
5461 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5462 "This is sometimes useful for extended debugging of problems."
5463 msgstr ""
5464
5465 # type: textblock
5466 #: ../src/guestfs-actions.pod:953
5467 msgid ""
5468 "Another way to get the same information is to enable verbose messages with "
5469 "C<guestfs_set_verbose> or by setting the environment variable "
5470 "C<LIBGUESTFS_DEBUG=1> before running the program."
5471 msgstr ""
5472
5473 # type: =head2
5474 #: ../src/guestfs-actions.pod:961
5475 msgid "guestfs_download"
5476 msgstr ""
5477
5478 # type: verbatim
5479 #: ../src/guestfs-actions.pod:963
5480 #, no-wrap
5481 msgid ""
5482 " int guestfs_download (guestfs_h *g,\n"
5483 "\t\tconst char *remotefilename,\n"
5484 "\t\tconst char *filename);\n"
5485 "\n"
5486 msgstr ""
5487
5488 # type: textblock
5489 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:770
5490 msgid ""
5491 "Download file C<remotefilename> and save it as C<filename> on the local "
5492 "machine."
5493 msgstr ""
5494
5495 # type: textblock
5496 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:4984
5497 #: ../fish/guestfish-actions.pod:773 ../fish/guestfish-actions.pod:3843
5498 msgid "C<filename> can also be a named pipe."
5499 msgstr ""
5500
5501 # type: textblock
5502 #: ../src/guestfs-actions.pod:972
5503 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5504 msgstr ""
5505
5506 # type: =head2
5507 #: ../src/guestfs-actions.pod:981
5508 msgid "guestfs_drop_caches"
5509 msgstr ""
5510
5511 # type: verbatim
5512 #: ../src/guestfs-actions.pod:983
5513 #, no-wrap
5514 msgid ""
5515 " int guestfs_drop_caches (guestfs_h *g,\n"
5516 "\t\tint whattodrop);\n"
5517 "\n"
5518 msgstr ""
5519
5520 # type: textblock
5521 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:783
5522 msgid ""
5523 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5524 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5525 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5526 msgstr ""
5527
5528 # type: textblock
5529 #: ../src/guestfs-actions.pod:991 ../fish/guestfish-actions.pod:788
5530 msgid "Setting C<whattodrop> to 3 should drop everything."
5531 msgstr ""
5532
5533 # type: textblock
5534 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:790
5535 msgid ""
5536 "This automatically calls L<sync(2)> before the operation, so that the "
5537 "maximum guest memory is freed."
5538 msgstr ""
5539
5540 # type: =head2
5541 #: ../src/guestfs-actions.pod:998
5542 msgid "guestfs_du"
5543 msgstr ""
5544
5545 # type: verbatim
5546 #: ../src/guestfs-actions.pod:1000
5547 #, no-wrap
5548 msgid ""
5549 " int64_t guestfs_du (guestfs_h *g,\n"
5550 "\t\tconst char *path);\n"
5551 "\n"
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:1003 ../fish/guestfish-actions.pod:797
5556 msgid ""
5557 "This command runs the C<du -s> command to estimate file space usage for "
5558 "C<path>."
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:1006 ../fish/guestfish-actions.pod:800
5563 msgid ""
5564 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5565 "estimate includes the contents of the directory and all subdirectories "
5566 "(recursively)."
5567 msgstr ""
5568
5569 # type: textblock
5570 #: ../src/guestfs-actions.pod:1010 ../fish/guestfish-actions.pod:804
5571 msgid ""
5572 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5573 msgstr ""
5574
5575 # type: =head2
5576 #: ../src/guestfs-actions.pod:1015
5577 msgid "guestfs_e2fsck_f"
5578 msgstr ""
5579
5580 # type: verbatim
5581 #: ../src/guestfs-actions.pod:1017
5582 #, no-wrap
5583 msgid ""
5584 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5585 "\t\tconst char *device);\n"
5586 "\n"
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:811
5591 msgid ""
5592 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5593 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5594 "clean (C<-f>)."
5595 msgstr ""
5596
5597 # type: textblock
5598 #: ../src/guestfs-actions.pod:1024
5599 msgid ""
5600 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5601 "Normally you should use C<guestfs_fsck>."
5602 msgstr ""
5603
5604 # type: =head2
5605 #: ../src/guestfs-actions.pod:1029
5606 msgid "guestfs_echo_daemon"
5607 msgstr ""
5608
5609 # type: verbatim
5610 #: ../src/guestfs-actions.pod:1031
5611 #, no-wrap
5612 msgid ""
5613 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5614 "\t\tchar *const *words);\n"
5615 "\n"
5616 msgstr ""
5617
5618 # type: textblock
5619 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:822
5620 msgid ""
5621 "This command concatenates the list of C<words> passed with single spaces "
5622 "between them and returns the resulting string."
5623 msgstr ""
5624
5625 # type: textblock
5626 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:825
5627 msgid "You can use this command to test the connection through to the daemon."
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:1039
5632 msgid "See also C<guestfs_ping_daemon>."
5633 msgstr ""
5634
5635 # type: =head2
5636 #: ../src/guestfs-actions.pod:1044
5637 msgid "guestfs_egrep"
5638 msgstr ""
5639
5640 # type: verbatim
5641 #: ../src/guestfs-actions.pod:1046
5642 #, no-wrap
5643 msgid ""
5644 " char **guestfs_egrep (guestfs_h *g,\n"
5645 "\t\tconst char *regex,\n"
5646 "\t\tconst char *path);\n"
5647 "\n"
5648 msgstr ""
5649
5650 # type: textblock
5651 #: ../src/guestfs-actions.pod:1050 ../fish/guestfish-actions.pod:833
5652 msgid ""
5653 "This calls the external C<egrep> program and returns the matching lines."
5654 msgstr ""
5655
5656 # type: =head2
5657 #: ../src/guestfs-actions.pod:1060
5658 msgid "guestfs_egrepi"
5659 msgstr ""
5660
5661 # type: verbatim
5662 #: ../src/guestfs-actions.pod:1062
5663 #, no-wrap
5664 msgid ""
5665 " char **guestfs_egrepi (guestfs_h *g,\n"
5666 "\t\tconst char *regex,\n"
5667 "\t\tconst char *path);\n"
5668 "\n"
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:1066 ../fish/guestfish-actions.pod:843
5673 msgid ""
5674 "This calls the external C<egrep -i> program and returns the matching lines."
5675 msgstr ""
5676
5677 # type: =head2
5678 #: ../src/guestfs-actions.pod:1076
5679 msgid "guestfs_equal"
5680 msgstr ""
5681
5682 # type: verbatim
5683 #: ../src/guestfs-actions.pod:1078
5684 #, no-wrap
5685 msgid ""
5686 " int guestfs_equal (guestfs_h *g,\n"
5687 "\t\tconst char *file1,\n"
5688 "\t\tconst char *file2);\n"
5689 "\n"
5690 msgstr ""
5691
5692 # type: textblock
5693 #: ../src/guestfs-actions.pod:1082 ../fish/guestfish-actions.pod:853
5694 msgid ""
5695 "This compares the two files C<file1> and C<file2> and returns true if their "
5696 "content is exactly equal, or false otherwise."
5697 msgstr ""
5698
5699 # type: textblock
5700 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:856
5701 msgid "The external L<cmp(1)> program is used for the comparison."
5702 msgstr ""
5703
5704 # type: =head2
5705 #: ../src/guestfs-actions.pod:1089
5706 msgid "guestfs_exists"
5707 msgstr ""
5708
5709 # type: verbatim
5710 #: ../src/guestfs-actions.pod:1091
5711 #, no-wrap
5712 msgid ""
5713 " int guestfs_exists (guestfs_h *g,\n"
5714 "\t\tconst char *path);\n"
5715 "\n"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:862
5720 msgid ""
5721 "This returns C<true> if and only if there is a file, directory (or anything) "
5722 "with the given C<path> name."
5723 msgstr ""
5724
5725 # type: textblock
5726 #: ../src/guestfs-actions.pod:1097
5727 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5728 msgstr ""
5729
5730 # type: =head2
5731 #: ../src/guestfs-actions.pod:1101
5732 msgid "guestfs_fallocate"
5733 msgstr ""
5734
5735 # type: verbatim
5736 #: ../src/guestfs-actions.pod:1103
5737 #, no-wrap
5738 msgid ""
5739 " int guestfs_fallocate (guestfs_h *g,\n"
5740 "\t\tconst char *path,\n"
5741 "\t\tint len);\n"
5742 "\n"
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1130
5747 #: ../fish/guestfish-actions.pod:871 ../fish/guestfish-actions.pod:890
5748 msgid ""
5749 "This command preallocates a file (containing zero bytes) named C<path> of "
5750 "size C<len> bytes.  If the file exists already, it is overwritten."
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:1111 ../fish/guestfish-actions.pod:875
5755 msgid ""
5756 "Do not confuse this with the guestfish-specific C<alloc> command which "
5757 "allocates a file in the host and attaches it as a device."
5758 msgstr ""
5759
5760 # type: textblock
5761 #: ../src/guestfs-actions.pod:1117 ../fish/guestfish-actions.pod:879
5762 msgid ""
5763 "This function is deprecated.  In new code, use the C<fallocate64> call "
5764 "instead."
5765 msgstr ""
5766
5767 # type: textblock
5768 #: ../src/guestfs-actions.pod:1120 ../src/guestfs-actions.pod:1555
5769 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:5339
5770 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:882
5771 #: ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1253
5772 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4193
5773 msgid ""
5774 "Deprecated functions will not be removed from the API, but the fact that "
5775 "they are deprecated indicates that there are problems with correct use of "
5776 "these functions."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:1124
5781 msgid "guestfs_fallocate64"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:1126
5786 #, no-wrap
5787 msgid ""
5788 " int guestfs_fallocate64 (guestfs_h *g,\n"
5789 "\t\tconst char *path,\n"
5790 "\t\tint64_t len);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:1134
5796 msgid ""
5797 "Note that this call allocates disk blocks for the file.  To create a sparse "
5798 "file use C<guestfs_truncate_size> instead."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:1137
5803 msgid ""
5804 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5805 "oversight it only allowed 30 bit lengths to be specified, effectively "
5806 "limiting the maximum size of files created through that call to 1GB."
5807 msgstr ""
5808
5809 # type: textblock
5810 #: ../src/guestfs-actions.pod:1142 ../fish/guestfish-actions.pod:902
5811 msgid ""
5812 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5813 "commands which create a file in the host and attach it as a device."
5814 msgstr ""
5815
5816 # type: =head2
5817 #: ../src/guestfs-actions.pod:1148
5818 msgid "guestfs_fgrep"
5819 msgstr ""
5820
5821 # type: verbatim
5822 #: ../src/guestfs-actions.pod:1150
5823 #, no-wrap
5824 msgid ""
5825 " char **guestfs_fgrep (guestfs_h *g,\n"
5826 "\t\tconst char *pattern,\n"
5827 "\t\tconst char *path);\n"
5828 "\n"
5829 msgstr ""
5830
5831 # type: textblock
5832 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:910
5833 msgid ""
5834 "This calls the external C<fgrep> program and returns the matching lines."
5835 msgstr ""
5836
5837 # type: =head2
5838 #: ../src/guestfs-actions.pod:1164
5839 msgid "guestfs_fgrepi"
5840 msgstr ""
5841
5842 # type: verbatim
5843 #: ../src/guestfs-actions.pod:1166
5844 #, no-wrap
5845 msgid ""
5846 " char **guestfs_fgrepi (guestfs_h *g,\n"
5847 "\t\tconst char *pattern,\n"
5848 "\t\tconst char *path);\n"
5849 "\n"
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:920
5854 msgid ""
5855 "This calls the external C<fgrep -i> program and returns the matching lines."
5856 msgstr ""
5857
5858 # type: =head2
5859 #: ../src/guestfs-actions.pod:1180
5860 msgid "guestfs_file"
5861 msgstr ""
5862
5863 # type: verbatim
5864 #: ../src/guestfs-actions.pod:1182
5865 #, no-wrap
5866 msgid ""
5867 " char *guestfs_file (guestfs_h *g,\n"
5868 "\t\tconst char *path);\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #: ../src/guestfs-actions.pod:1185 ../fish/guestfish-actions.pod:930
5874 msgid ""
5875 "This call uses the standard L<file(1)> command to determine the type or "
5876 "contents of the file."
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:933
5881 msgid ""
5882 "This call will also transparently look inside various types of compressed "
5883 "file."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:936
5888 msgid ""
5889 "The exact command which runs is C<file -zb path>.  Note in particular that "
5890 "the filename is not prepended to the output (the C<-b> option)."
5891 msgstr ""
5892
5893 # type: textblock
5894 #: ../src/guestfs-actions.pod:1195
5895 msgid ""
5896 "This command can also be used on C</dev/> devices (and partitions, LV "
5897 "names).  You can for example use this to determine if a device contains a "
5898 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:945
5903 msgid ""
5904 "If the C<path> does not begin with C</dev/> then this command only works for "
5905 "the content of regular files.  For other file types (directory, symbolic "
5906 "link etc) it will just return the string C<directory> etc."
5907 msgstr ""
5908
5909 # type: =head2
5910 #: ../src/guestfs-actions.pod:1208
5911 msgid "guestfs_file_architecture"
5912 msgstr ""
5913
5914 # type: verbatim
5915 #: ../src/guestfs-actions.pod:1210
5916 #, no-wrap
5917 msgid ""
5918 " char *guestfs_file_architecture (guestfs_h *g,\n"
5919 "\t\tconst char *filename);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1213 ../fish/guestfish-actions.pod:954
5925 msgid ""
5926 "This detects the architecture of the binary C<filename>, and returns it if "
5927 "known."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:1216 ../fish/guestfish-actions.pod:957
5932 msgid "Currently defined architectures are:"
5933 msgstr ""
5934
5935 # type: =item
5936 #: ../src/guestfs-actions.pod:1220 ../fish/guestfish-actions.pod:961
5937 msgid "\"i386\""
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1222 ../fish/guestfish-actions.pod:963
5942 msgid ""
5943 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5944 "irrespective of the precise processor requirements of the binary."
5945 msgstr ""
5946
5947 # type: =item
5948 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:966
5949 msgid "\"x86_64\""
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:1227 ../fish/guestfish-actions.pod:968
5954 msgid "64 bit x86-64."
5955 msgstr ""
5956
5957 # type: =item
5958 #: ../src/guestfs-actions.pod:1229 ../fish/guestfish-actions.pod:970
5959 msgid "\"sparc\""
5960 msgstr ""
5961
5962 # type: textblock
5963 #: ../src/guestfs-actions.pod:1231 ../fish/guestfish-actions.pod:972
5964 msgid "32 bit SPARC."
5965 msgstr ""
5966
5967 # type: =item
5968 #: ../src/guestfs-actions.pod:1233 ../fish/guestfish-actions.pod:974
5969 msgid "\"sparc64\""
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:1235 ../fish/guestfish-actions.pod:976
5974 msgid "64 bit SPARC V9 and above."
5975 msgstr ""
5976
5977 # type: =item
5978 #: ../src/guestfs-actions.pod:1237 ../fish/guestfish-actions.pod:978
5979 msgid "\"ia64\""
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:1239 ../fish/guestfish-actions.pod:980
5984 msgid "Intel Itanium."
5985 msgstr ""
5986
5987 # type: =item
5988 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:982
5989 msgid "\"ppc\""
5990 msgstr ""
5991
5992 # type: textblock
5993 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:984
5994 msgid "32 bit Power PC."
5995 msgstr ""
5996
5997 # type: =item
5998 #: ../src/guestfs-actions.pod:1245 ../fish/guestfish-actions.pod:986
5999 msgid "\"ppc64\""
6000 msgstr ""
6001
6002 # type: textblock
6003 #: ../src/guestfs-actions.pod:1247 ../fish/guestfish-actions.pod:988
6004 msgid "64 bit Power PC."
6005 msgstr ""
6006
6007 # type: textblock
6008 #: ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:992
6009 msgid "Libguestfs may return other architecture strings in future."
6010 msgstr ""
6011
6012 # type: textblock
6013 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:994
6014 msgid "The function works on at least the following types of files:"
6015 msgstr ""
6016
6017 # type: textblock
6018 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:1000
6019 msgid "many types of Un*x and Linux binary"
6020 msgstr ""
6021
6022 # type: textblock
6023 #: ../src/guestfs-actions.pod:1263 ../fish/guestfish-actions.pod:1004
6024 msgid "many types of Un*x and Linux shared library"
6025 msgstr ""
6026
6027 # type: textblock
6028 #: ../src/guestfs-actions.pod:1267 ../fish/guestfish-actions.pod:1008
6029 msgid "Windows Win32 and Win64 binaries"
6030 msgstr ""
6031
6032 # type: textblock
6033 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:1012
6034 msgid "Windows Win32 and Win64 DLLs"
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1273 ../fish/guestfish-actions.pod:1014
6039 msgid "Win32 binaries and DLLs return C<i386>."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:1016
6044 msgid "Win64 binaries and DLLs return C<x86_64>."
6045 msgstr ""
6046
6047 # type: textblock
6048 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:1020
6049 msgid "Linux kernel modules"
6050 msgstr ""
6051
6052 # type: textblock
6053 #: ../src/guestfs-actions.pod:1283 ../fish/guestfish-actions.pod:1024
6054 msgid "Linux new-style initrd images"
6055 msgstr ""
6056
6057 # type: textblock
6058 #: ../src/guestfs-actions.pod:1287 ../fish/guestfish-actions.pod:1028
6059 msgid "some non-x86 Linux vmlinuz kernels"
6060 msgstr ""
6061
6062 # type: textblock
6063 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:1032
6064 msgid "What it can't do currently:"
6065 msgstr ""
6066
6067 # type: textblock
6068 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:1038
6069 msgid "static libraries (libfoo.a)"
6070 msgstr ""
6071
6072 # type: textblock
6073 #: ../src/guestfs-actions.pod:1301 ../fish/guestfish-actions.pod:1042
6074 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:1046
6079 msgid "x86 Linux vmlinuz kernels"
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1048
6084 msgid ""
6085 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6086 "compressed code, and are horribly hard to unpack.  If you want to find the "
6087 "architecture of a kernel, use the architecture of the associated initrd or "
6088 "kernel module(s) instead."
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:1317
6093 msgid "guestfs_filesize"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:1319
6098 #, no-wrap
6099 msgid ""
6100 " int64_t guestfs_filesize (guestfs_h *g,\n"
6101 "\t\tconst char *file);\n"
6102 "\n"
6103 msgstr ""
6104
6105 # type: textblock
6106 #: ../src/guestfs-actions.pod:1322 ../fish/guestfish-actions.pod:1059
6107 msgid "This command returns the size of C<file> in bytes."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1324
6112 msgid ""
6113 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6114 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6115 "devices, use C<guestfs_blockdev_getsize64>."
6116 msgstr ""
6117
6118 # type: =head2
6119 #: ../src/guestfs-actions.pod:1330
6120 msgid "guestfs_fill"
6121 msgstr ""
6122
6123 # type: verbatim
6124 #: ../src/guestfs-actions.pod:1332
6125 #, no-wrap
6126 msgid ""
6127 " int guestfs_fill (guestfs_h *g,\n"
6128 "\t\tint c,\n"
6129 "\t\tint len,\n"
6130 "\t\tconst char *path);\n"
6131 "\n"
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1069
6136 msgid ""
6137 "This command creates a new file called C<path>.  The initial content of the "
6138 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6139 "[0..255]>."
6140 msgstr ""
6141
6142 # type: textblock
6143 #: ../src/guestfs-actions.pod:1341
6144 msgid ""
6145 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6146 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6147 "bytes use C<guestfs_fill_pattern>."
6148 msgstr ""
6149
6150 # type: =head2
6151 #: ../src/guestfs-actions.pod:1353
6152 msgid "guestfs_fill_pattern"
6153 msgstr ""
6154
6155 # type: verbatim
6156 #: ../src/guestfs-actions.pod:1355
6157 #, no-wrap
6158 msgid ""
6159 " int guestfs_fill_pattern (guestfs_h *g,\n"
6160 "\t\tconst char *pattern,\n"
6161 "\t\tint len,\n"
6162 "\t\tconst char *path);\n"
6163 "\n"
6164 msgstr ""
6165
6166 # type: textblock
6167 #: ../src/guestfs-actions.pod:1360
6168 msgid ""
6169 "This function is like C<guestfs_fill> except that it creates a new file of "
6170 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6171 "pattern is truncated if necessary to ensure the length of the file is "
6172 "exactly C<len> bytes."
6173 msgstr ""
6174
6175 # type: =head2
6176 #: ../src/guestfs-actions.pod:1372
6177 msgid "guestfs_find"
6178 msgstr ""
6179
6180 # type: verbatim
6181 #: ../src/guestfs-actions.pod:1374
6182 #, no-wrap
6183 msgid ""
6184 " char **guestfs_find (guestfs_h *g,\n"
6185 "\t\tconst char *directory);\n"
6186 "\n"
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1091
6191 msgid ""
6192 "This command lists out all files and directories, recursively, starting at "
6193 "C<directory>.  It is essentially equivalent to running the shell command "
6194 "C<find directory -print> but some post-processing happens on the output, "
6195 "described below."
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../src/guestfs-actions.pod:1382 ../fish/guestfish-actions.pod:1096
6200 msgid ""
6201 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6202 "structure was:"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1099
6207 #, no-wrap
6208 msgid ""
6209 " /tmp/a\n"
6210 " /tmp/b\n"
6211 " /tmp/c/d\n"
6212 "\n"
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1389
6217 msgid ""
6218 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6219 msgstr ""
6220
6221 # type: verbatim
6222 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1106
6223 #, no-wrap
6224 msgid ""
6225 " a\n"
6226 " b\n"
6227 " c\n"
6228 " c/d\n"
6229 "\n"
6230 msgstr ""
6231
6232 # type: textblock
6233 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:1111
6234 msgid "If C<directory> is not a directory, then this command returns an error."
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1114
6239 msgid "The returned list is sorted."
6240 msgstr ""
6241
6242 # type: textblock
6243 #: ../src/guestfs-actions.pod:1402
6244 msgid "See also C<guestfs_find0>."
6245 msgstr ""
6246
6247 # type: =head2
6248 #: ../src/guestfs-actions.pod:1411
6249 msgid "guestfs_find0"
6250 msgstr ""
6251
6252 # type: verbatim
6253 #: ../src/guestfs-actions.pod:1413
6254 #, no-wrap
6255 msgid ""
6256 " int guestfs_find0 (guestfs_h *g,\n"
6257 "\t\tconst char *directory,\n"
6258 "\t\tconst char *files);\n"
6259 "\n"
6260 msgstr ""
6261
6262 # type: textblock
6263 #: ../src/guestfs-actions.pod:1417 ../fish/guestfish-actions.pod:1125
6264 msgid ""
6265 "This command lists out all files and directories, recursively, starting at "
6266 "C<directory>, placing the resulting list in the external file called "
6267 "C<files>."
6268 msgstr ""
6269
6270 # type: textblock
6271 #: ../src/guestfs-actions.pod:1421
6272 msgid ""
6273 "This command works the same way as C<guestfs_find> with the following "
6274 "exceptions:"
6275 msgstr ""
6276
6277 # type: textblock
6278 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1136
6279 msgid "The resulting list is written to an external file."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1140
6284 msgid ""
6285 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6286 "L<find(1)> option I<-print0>."
6287 msgstr ""
6288
6289 # type: textblock
6290 #: ../src/guestfs-actions.pod:1437 ../fish/guestfish-actions.pod:1145
6291 msgid "This command is not limited in the number of names that it can return."
6292 msgstr ""
6293
6294 # type: textblock
6295 #: ../src/guestfs-actions.pod:1442 ../fish/guestfish-actions.pod:1150
6296 msgid "The result list is not sorted."
6297 msgstr ""
6298
6299 # type: =head2
6300 #: ../src/guestfs-actions.pod:1448
6301 msgid "guestfs_findfs_label"
6302 msgstr ""
6303
6304 # type: verbatim
6305 #: ../src/guestfs-actions.pod:1450
6306 #, no-wrap
6307 msgid ""
6308 " char *guestfs_findfs_label (guestfs_h *g,\n"
6309 "\t\tconst char *label);\n"
6310 "\n"
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1453 ../fish/guestfish-actions.pod:1160
6315 msgid ""
6316 "This command searches the filesystems and returns the one which has the "
6317 "given label.  An error is returned if no such filesystem can be found."
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1457
6322 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6323 msgstr ""
6324
6325 # type: =head2
6326 #: ../src/guestfs-actions.pod:1462
6327 msgid "guestfs_findfs_uuid"
6328 msgstr ""
6329
6330 # type: verbatim
6331 #: ../src/guestfs-actions.pod:1464
6332 #, no-wrap
6333 msgid ""
6334 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6335 "\t\tconst char *uuid);\n"
6336 "\n"
6337 msgstr ""
6338
6339 # type: textblock
6340 #: ../src/guestfs-actions.pod:1467 ../fish/guestfish-actions.pod:1170
6341 msgid ""
6342 "This command searches the filesystems and returns the one which has the "
6343 "given UUID.  An error is returned if no such filesystem can be found."
6344 msgstr ""
6345
6346 # type: textblock
6347 #: ../src/guestfs-actions.pod:1471
6348 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6349 msgstr ""
6350
6351 # type: =head2
6352 #: ../src/guestfs-actions.pod:1476
6353 msgid "guestfs_fsck"
6354 msgstr ""
6355
6356 # type: verbatim
6357 #: ../src/guestfs-actions.pod:1478
6358 #, no-wrap
6359 msgid ""
6360 " int guestfs_fsck (guestfs_h *g,\n"
6361 "\t\tconst char *fstype,\n"
6362 "\t\tconst char *device);\n"
6363 "\n"
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1482 ../fish/guestfish-actions.pod:1180
6368 msgid ""
6369 "This runs the filesystem checker (fsck) on C<device> which should have "
6370 "filesystem type C<fstype>."
6371 msgstr ""
6372
6373 # type: textblock
6374 #: ../src/guestfs-actions.pod:1485 ../fish/guestfish-actions.pod:1183
6375 msgid ""
6376 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6377 "codes from C<fsck>."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1192
6382 msgid "Multiple status codes can be summed together."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1196
6387 msgid ""
6388 "A non-zero return code can mean \"success\", for example if errors have been "
6389 "corrected on the filesystem."
6390 msgstr ""
6391
6392 # type: textblock
6393 #: ../src/guestfs-actions.pod:1503 ../fish/guestfish-actions.pod:1201
6394 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6395 msgstr ""
6396
6397 # type: textblock
6398 #: ../src/guestfs-actions.pod:1508 ../fish/guestfish-actions.pod:1206
6399 msgid ""
6400 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6401 msgstr ""
6402
6403 # type: =head2
6404 #: ../src/guestfs-actions.pod:1512
6405 msgid "guestfs_get_append"
6406 msgstr ""
6407
6408 # type: verbatim
6409 #: ../src/guestfs-actions.pod:1514
6410 #, no-wrap
6411 msgid ""
6412 " const char *guestfs_get_append (guestfs_h *g);\n"
6413 "\n"
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1516 ../fish/guestfish-actions.pod:1212
6418 msgid ""
6419 "Return the additional kernel options which are added to the guest kernel "
6420 "command line."
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1519 ../fish/guestfish-actions.pod:1215
6425 msgid "If C<NULL> then no options are added."
6426 msgstr ""
6427
6428 # type: textblock
6429 #: ../src/guestfs-actions.pod:1521
6430 msgid ""
6431 "This function returns a string which may be NULL.  There is no way to return "
6432 "an error from this function.  The string is owned by the guest handle and "
6433 "must I<not> be freed."
6434 msgstr ""
6435
6436 # type: =head2
6437 #: ../src/guestfs-actions.pod:1525
6438 msgid "guestfs_get_autosync"
6439 msgstr ""
6440
6441 # type: verbatim
6442 #: ../src/guestfs-actions.pod:1527
6443 #, no-wrap
6444 msgid ""
6445 " int guestfs_get_autosync (guestfs_h *g);\n"
6446 "\n"
6447 msgstr ""
6448
6449 # type: textblock
6450 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1221
6451 msgid "Get the autosync flag."
6452 msgstr ""
6453
6454 # type: =head2
6455 #: ../src/guestfs-actions.pod:1533
6456 msgid "guestfs_get_direct"
6457 msgstr ""
6458
6459 # type: verbatim
6460 #: ../src/guestfs-actions.pod:1535
6461 #, no-wrap
6462 msgid ""
6463 " int guestfs_get_direct (guestfs_h *g);\n"
6464 "\n"
6465 msgstr ""
6466
6467 # type: textblock
6468 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1227
6469 msgid "Return the direct appliance mode flag."
6470 msgstr ""
6471
6472 # type: =head2
6473 #: ../src/guestfs-actions.pod:1541
6474 msgid "guestfs_get_e2label"
6475 msgstr ""
6476
6477 # type: verbatim
6478 #: ../src/guestfs-actions.pod:1543
6479 #, no-wrap
6480 msgid ""
6481 " char *guestfs_get_e2label (guestfs_h *g,\n"
6482 "\t\tconst char *device);\n"
6483 "\n"
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1233
6488 msgid ""
6489 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6490 msgstr ""
6491
6492 # type: textblock
6493 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1236
6494 msgid ""
6495 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6496 msgstr ""
6497
6498 # type: =head2
6499 #: ../src/guestfs-actions.pod:1559
6500 msgid "guestfs_get_e2uuid"
6501 msgstr ""
6502
6503 # type: verbatim
6504 #: ../src/guestfs-actions.pod:1561
6505 #, no-wrap
6506 msgid ""
6507 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6508 "\t\tconst char *device);\n"
6509 "\n"
6510 msgstr ""
6511
6512 # type: textblock
6513 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1247
6514 msgid ""
6515 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6516 msgstr ""
6517
6518 # type: textblock
6519 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1250
6520 msgid ""
6521 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6522 msgstr ""
6523
6524 # type: =head2
6525 #: ../src/guestfs-actions.pod:1577
6526 msgid "guestfs_get_memsize"
6527 msgstr ""
6528
6529 # type: verbatim
6530 #: ../src/guestfs-actions.pod:1579
6531 #, no-wrap
6532 msgid ""
6533 " int guestfs_get_memsize (guestfs_h *g);\n"
6534 "\n"
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1261
6539 msgid ""
6540 "This gets the memory size in megabytes allocated to the qemu subprocess."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1584
6545 msgid ""
6546 "If C<guestfs_set_memsize> was not called on this handle, and if "
6547 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6548 "value for memsize."
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:1651
6553 #: ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4329
6554 #: ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1317
6555 #: ../fish/guestfish-actions.pod:3268 ../fish/guestfish-actions.pod:3345
6556 msgid ""
6557 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6558 msgstr ""
6559
6560 # type: =head2
6561 #: ../src/guestfs-actions.pod:1593
6562 msgid "guestfs_get_network"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #: ../src/guestfs-actions.pod:1595
6567 #, no-wrap
6568 msgid ""
6569 " int guestfs_get_network (guestfs_h *g);\n"
6570 "\n"
6571 msgstr ""
6572
6573 # type: textblock
6574 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1275
6575 msgid "This returns the enable network flag."
6576 msgstr ""
6577
6578 # type: =head2
6579 #: ../src/guestfs-actions.pod:1601
6580 msgid "guestfs_get_path"
6581 msgstr ""
6582
6583 # type: verbatim
6584 #: ../src/guestfs-actions.pod:1603
6585 #, no-wrap
6586 msgid ""
6587 " const char *guestfs_get_path (guestfs_h *g);\n"
6588 "\n"
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1281
6593 msgid "Return the current search path."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1283
6598 msgid ""
6599 "This is always non-NULL.  If it wasn't set already, then this will return "
6600 "the default path."
6601 msgstr ""
6602
6603 # type: textblock
6604 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1633
6605 msgid ""
6606 "This function returns a string, or NULL on error.  The string is owned by "
6607 "the guest handle and must I<not> be freed."
6608 msgstr ""
6609
6610 # type: =head2
6611 #: ../src/guestfs-actions.pod:1613
6612 msgid "guestfs_get_pid"
6613 msgstr ""
6614
6615 # type: verbatim
6616 #: ../src/guestfs-actions.pod:1615
6617 #, no-wrap
6618 msgid ""
6619 " int guestfs_get_pid (guestfs_h *g);\n"
6620 "\n"
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1290
6625 msgid ""
6626 "Return the process ID of the qemu subprocess.  If there is no qemu "
6627 "subprocess, then this will return an error."
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1293
6632 msgid "This is an internal call used for debugging and testing."
6633 msgstr ""
6634
6635 # type: =head2
6636 #: ../src/guestfs-actions.pod:1624
6637 msgid "guestfs_get_qemu"
6638 msgstr ""
6639
6640 # type: verbatim
6641 #: ../src/guestfs-actions.pod:1626
6642 #, no-wrap
6643 msgid ""
6644 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6645 "\n"
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1299
6650 msgid "Return the current qemu binary."
6651 msgstr ""
6652
6653 # type: textblock
6654 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1301
6655 msgid ""
6656 "This is always non-NULL.  If it wasn't set already, then this will return "
6657 "the default qemu binary name."
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1636
6662 msgid "guestfs_get_recovery_proc"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1638
6667 #, no-wrap
6668 msgid ""
6669 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6670 "\n"
6671 msgstr ""
6672
6673 # type: textblock
6674 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1308
6675 msgid "Return the recovery process enabled flag."
6676 msgstr ""
6677
6678 # type: =head2
6679 #: ../src/guestfs-actions.pod:1644
6680 msgid "guestfs_get_selinux"
6681 msgstr ""
6682
6683 # type: verbatim
6684 #: ../src/guestfs-actions.pod:1646
6685 #, no-wrap
6686 msgid ""
6687 " int guestfs_get_selinux (guestfs_h *g);\n"
6688 "\n"
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1648
6693 msgid ""
6694 "This returns the current setting of the selinux flag which is passed to the "
6695 "appliance at boot time.  See C<guestfs_set_selinux>."
6696 msgstr ""
6697
6698 # type: =head2
6699 #: ../src/guestfs-actions.pod:1656
6700 msgid "guestfs_get_state"
6701 msgstr ""
6702
6703 # type: verbatim
6704 #: ../src/guestfs-actions.pod:1658
6705 #, no-wrap
6706 msgid ""
6707 " int guestfs_get_state (guestfs_h *g);\n"
6708 "\n"
6709 msgstr ""
6710
6711 # type: textblock
6712 #: ../src/guestfs-actions.pod:1660 ../fish/guestfish-actions.pod:1324
6713 msgid ""
6714 "This returns the current state as an opaque integer.  This is only useful "
6715 "for printing debug and internal error messages."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:2282
6720 #: ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2354
6721 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1327
6722 #: ../fish/guestfish-actions.pod:1819 ../fish/guestfish-actions.pod:1837
6723 #: ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:1891
6724 msgid "For more information on states, see L<guestfs(3)>."
6725 msgstr ""
6726
6727 # type: =head2
6728 #: ../src/guestfs-actions.pod:1667
6729 msgid "guestfs_get_trace"
6730 msgstr ""
6731
6732 # type: verbatim
6733 #: ../src/guestfs-actions.pod:1669
6734 #, no-wrap
6735 msgid ""
6736 " int guestfs_get_trace (guestfs_h *g);\n"
6737 "\n"
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1333
6742 msgid "Return the command trace flag."
6743 msgstr ""
6744
6745 # type: =head2
6746 #: ../src/guestfs-actions.pod:1675
6747 msgid "guestfs_get_umask"
6748 msgstr ""
6749
6750 # type: verbatim
6751 #: ../src/guestfs-actions.pod:1677
6752 #, no-wrap
6753 msgid ""
6754 " int guestfs_get_umask (guestfs_h *g);\n"
6755 "\n"
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1679
6760 msgid ""
6761 "Return the current umask.  By default the umask is C<022> unless it has been "
6762 "set by calling C<guestfs_umask>."
6763 msgstr ""
6764
6765 # type: =head2
6766 #: ../src/guestfs-actions.pod:1684
6767 msgid "guestfs_get_verbose"
6768 msgstr ""
6769
6770 # type: verbatim
6771 #: ../src/guestfs-actions.pod:1686
6772 #, no-wrap
6773 msgid ""
6774 " int guestfs_get_verbose (guestfs_h *g);\n"
6775 "\n"
6776 msgstr ""
6777
6778 # type: textblock
6779 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1346
6780 msgid "This returns the verbose messages flag."
6781 msgstr ""
6782
6783 # type: =head2
6784 #: ../src/guestfs-actions.pod:1692
6785 msgid "guestfs_getcon"
6786 msgstr ""
6787
6788 # type: verbatim
6789 #: ../src/guestfs-actions.pod:1694
6790 #, no-wrap
6791 msgid ""
6792 " char *guestfs_getcon (guestfs_h *g);\n"
6793 "\n"
6794 msgstr ""
6795
6796 # type: textblock
6797 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1352
6798 msgid "This gets the SELinux security context of the daemon."
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1698
6803 msgid ""
6804 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6805 msgstr ""
6806
6807 # type: =head2
6808 #: ../src/guestfs-actions.pod:1704
6809 msgid "guestfs_getxattrs"
6810 msgstr ""
6811
6812 # type: verbatim
6813 #: ../src/guestfs-actions.pod:1706
6814 #, no-wrap
6815 msgid ""
6816 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6817 "\t\tconst char *path);\n"
6818 "\n"
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1709 ../fish/guestfish-actions.pod:1361
6823 msgid ""
6824 "This call lists the extended attributes of the file or directory C<path>."
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1364
6829 msgid ""
6830 "At the system call level, this is a combination of the L<listxattr(2)> and "
6831 "L<getxattr(2)> calls."
6832 msgstr ""
6833
6834 # type: textblock
6835 #: ../src/guestfs-actions.pod:1715
6836 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2449
6841 #: ../src/guestfs-actions.pod:2944
6842 msgid ""
6843 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
6844 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
6845 "C<guestfs_free_xattr_list> after use>."
6846 msgstr ""
6847
6848 # type: =head2
6849 #: ../src/guestfs-actions.pod:1722
6850 msgid "guestfs_glob_expand"
6851 msgstr ""
6852
6853 # type: verbatim
6854 #: ../src/guestfs-actions.pod:1724
6855 #, no-wrap
6856 msgid ""
6857 " char **guestfs_glob_expand (guestfs_h *g,\n"
6858 "\t\tconst char *pattern);\n"
6859 "\n"
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1373
6864 msgid ""
6865 "This command searches for all the pathnames matching C<pattern> according to "
6866 "the wildcard expansion rules used by the shell."
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1731 ../fish/guestfish-actions.pod:1377
6871 msgid ""
6872 "If no paths match, then this returns an empty list (note: not an error)."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1380
6877 msgid ""
6878 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
6879 "GLOB_BRACE>.  See that manual page for more details."
6880 msgstr ""
6881
6882 # type: =head2
6883 #: ../src/guestfs-actions.pod:1742
6884 msgid "guestfs_grep"
6885 msgstr ""
6886
6887 # type: verbatim
6888 #: ../src/guestfs-actions.pod:1744
6889 #, no-wrap
6890 msgid ""
6891 " char **guestfs_grep (guestfs_h *g,\n"
6892 "\t\tconst char *regex,\n"
6893 "\t\tconst char *path);\n"
6894 "\n"
6895 msgstr ""
6896
6897 # type: textblock
6898 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1388
6899 msgid "This calls the external C<grep> program and returns the matching lines."
6900 msgstr ""
6901
6902 # type: =head2
6903 #: ../src/guestfs-actions.pod:1758
6904 msgid "guestfs_grepi"
6905 msgstr ""
6906
6907 # type: verbatim
6908 #: ../src/guestfs-actions.pod:1760
6909 #, no-wrap
6910 msgid ""
6911 " char **guestfs_grepi (guestfs_h *g,\n"
6912 "\t\tconst char *regex,\n"
6913 "\t\tconst char *path);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1398
6919 msgid ""
6920 "This calls the external C<grep -i> program and returns the matching lines."
6921 msgstr ""
6922
6923 # type: =head2
6924 #: ../src/guestfs-actions.pod:1774
6925 msgid "guestfs_grub_install"
6926 msgstr ""
6927
6928 # type: verbatim
6929 #: ../src/guestfs-actions.pod:1776
6930 #, no-wrap
6931 msgid ""
6932 " int guestfs_grub_install (guestfs_h *g,\n"
6933 "\t\tconst char *root,\n"
6934 "\t\tconst char *device);\n"
6935 "\n"
6936 msgstr ""
6937
6938 # type: textblock
6939 #: ../src/guestfs-actions.pod:1780 ../fish/guestfish-actions.pod:1408
6940 msgid ""
6941 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6942 "the root directory being C<root>."
6943 msgstr ""
6944
6945 # type: textblock
6946 #: ../src/guestfs-actions.pod:1783 ../fish/guestfish-actions.pod:1411
6947 msgid ""
6948 "Note: If grub-install reports the error \"No suitable drive was found in the "
6949 "generated device map.\" it may be that you need to create a C</boot/grub/"
6950 "device.map> file first that contains the mapping between grub device names "
6951 "and Linux device names.  It is usually sufficient to create a file "
6952 "containing:"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1418
6957 #, no-wrap
6958 msgid ""
6959 " (hd0) /dev/vda\n"
6960 "\n"
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1420
6965 msgid "replacing C</dev/vda> with the name of the installation device."
6966 msgstr ""
6967
6968 # type: =head2
6969 #: ../src/guestfs-actions.pod:1796
6970 msgid "guestfs_head"
6971 msgstr ""
6972
6973 # type: verbatim
6974 #: ../src/guestfs-actions.pod:1798
6975 #, no-wrap
6976 msgid ""
6977 " char **guestfs_head (guestfs_h *g,\n"
6978 "\t\tconst char *path);\n"
6979 "\n"
6980 msgstr ""
6981
6982 # type: textblock
6983 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1426
6984 msgid ""
6985 "This command returns up to the first 10 lines of a file as a list of strings."
6986 msgstr ""
6987
6988 # type: =head2
6989 #: ../src/guestfs-actions.pod:1811
6990 msgid "guestfs_head_n"
6991 msgstr ""
6992
6993 # type: verbatim
6994 #: ../src/guestfs-actions.pod:1813
6995 #, no-wrap
6996 msgid ""
6997 " char **guestfs_head_n (guestfs_h *g,\n"
6998 "\t\tint nrlines,\n"
6999 "\t\tconst char *path);\n"
7000 "\n"
7001 msgstr ""
7002
7003 # type: textblock
7004 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1436
7005 msgid ""
7006 "If the parameter C<nrlines> is a positive number, this returns the first "
7007 "C<nrlines> lines of the file C<path>."
7008 msgstr ""
7009
7010 # type: textblock
7011 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1439
7012 msgid ""
7013 "If the parameter C<nrlines> is a negative number, this returns lines from "
7014 "the file C<path>, excluding the last C<nrlines> lines."
7015 msgstr ""
7016
7017 # type: textblock
7018 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:4785
7019 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:3687
7020 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7021 msgstr ""
7022
7023 # type: =head2
7024 #: ../src/guestfs-actions.pod:1832
7025 msgid "guestfs_hexdump"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #: ../src/guestfs-actions.pod:1834
7030 #, no-wrap
7031 msgid ""
7032 " char *guestfs_hexdump (guestfs_h *g,\n"
7033 "\t\tconst char *path);\n"
7034 "\n"
7035 msgstr ""
7036
7037 # type: textblock
7038 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1451
7039 msgid ""
7040 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7041 "readable, canonical hex dump of the file."
7042 msgstr ""
7043
7044 # type: =head2
7045 #: ../src/guestfs-actions.pod:1846
7046 msgid "guestfs_initrd_cat"
7047 msgstr ""
7048
7049 # type: verbatim
7050 #: ../src/guestfs-actions.pod:1848
7051 #, no-wrap
7052 msgid ""
7053 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7054 "\t\tconst char *initrdpath,\n"
7055 "\t\tconst char *filename,\n"
7056 "\t\tsize_t *size_r);\n"
7057 "\n"
7058 msgstr ""
7059
7060 # type: textblock
7061 #: ../src/guestfs-actions.pod:1853 ../fish/guestfish-actions.pod:1461
7062 msgid ""
7063 "This command unpacks the file C<filename> from the initrd file called "
7064 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7065 "character."
7066 msgstr ""
7067
7068 # type: textblock
7069 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1465
7070 msgid ""
7071 "For example, in guestfish you could use the following command to examine the "
7072 "boot script (usually called C</init>)  contained in a Linux initrd or "
7073 "initramfs image:"
7074 msgstr ""
7075
7076 # type: verbatim
7077 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1469
7078 #, no-wrap
7079 msgid ""
7080 " initrd-cat /boot/initrd-<version>.img init\n"
7081 "\n"
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1863
7086 msgid "See also C<guestfs_initrd_list>."
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:3743
7091 #: ../src/guestfs-actions.pod:3872
7092 msgid ""
7093 "This function returns a buffer, or NULL on error.  The size of the returned "
7094 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7095 "after use>."
7096 msgstr ""
7097
7098 # type: =head2
7099 #: ../src/guestfs-actions.pod:1872
7100 msgid "guestfs_initrd_list"
7101 msgstr ""
7102
7103 # type: verbatim
7104 #: ../src/guestfs-actions.pod:1874
7105 #, no-wrap
7106 msgid ""
7107 " char **guestfs_initrd_list (guestfs_h *g,\n"
7108 "\t\tconst char *path);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1480
7114 msgid "This command lists out files contained in an initrd."
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1879 ../fish/guestfish-actions.pod:1482
7119 msgid ""
7120 "The files are listed without any initial C</> character.  The files are "
7121 "listed in the order they appear (not necessarily alphabetical).  Directory "
7122 "names are listed as separate items."
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1486
7127 msgid ""
7128 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7129 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7130 "files)."
7131 msgstr ""
7132
7133 # type: =head2
7134 #: ../src/guestfs-actions.pod:1891
7135 msgid "guestfs_inotify_add_watch"
7136 msgstr ""
7137
7138 # type: verbatim
7139 #: ../src/guestfs-actions.pod:1893
7140 #, no-wrap
7141 msgid ""
7142 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7143 "\t\tconst char *path,\n"
7144 "\t\tint mask);\n"
7145 "\n"
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1897 ../fish/guestfish-actions.pod:1494
7150 msgid "Watch C<path> for the events listed in C<mask>."
7151 msgstr ""
7152
7153 # type: textblock
7154 #: ../src/guestfs-actions.pod:1899 ../fish/guestfish-actions.pod:1496
7155 msgid ""
7156 "Note that if C<path> is a directory then events within that directory are "
7157 "watched, but this does I<not> happen recursively (in subdirectories)."
7158 msgstr ""
7159
7160 # type: textblock
7161 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1500
7162 msgid ""
7163 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7164 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7165 msgstr ""
7166
7167 # type: =head2
7168 #: ../src/guestfs-actions.pod:1909
7169 msgid "guestfs_inotify_close"
7170 msgstr ""
7171
7172 # type: verbatim
7173 #: ../src/guestfs-actions.pod:1911
7174 #, no-wrap
7175 msgid ""
7176 " int guestfs_inotify_close (guestfs_h *g);\n"
7177 "\n"
7178 msgstr ""
7179
7180 # type: textblock
7181 #: ../src/guestfs-actions.pod:1913 ../fish/guestfish-actions.pod:1508
7182 msgid ""
7183 "This closes the inotify handle which was previously opened by inotify_init.  "
7184 "It removes all watches, throws away any pending events, and deallocates all "
7185 "resources."
7186 msgstr ""
7187
7188 # type: =head2
7189 #: ../src/guestfs-actions.pod:1919
7190 msgid "guestfs_inotify_files"
7191 msgstr ""
7192
7193 # type: verbatim
7194 #: ../src/guestfs-actions.pod:1921
7195 #, no-wrap
7196 msgid ""
7197 " char **guestfs_inotify_files (guestfs_h *g);\n"
7198 "\n"
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1923
7203 msgid ""
7204 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7205 "returns a list of pathnames of objects that were touched.  The returned "
7206 "pathnames are sorted and deduplicated."
7207 msgstr ""
7208
7209 # type: =head2
7210 #: ../src/guestfs-actions.pod:1931
7211 msgid "guestfs_inotify_init"
7212 msgstr ""
7213
7214 # type: verbatim
7215 #: ../src/guestfs-actions.pod:1933
7216 #, no-wrap
7217 msgid ""
7218 " int guestfs_inotify_init (guestfs_h *g,\n"
7219 "\t\tint maxevents);\n"
7220 "\n"
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1524
7225 msgid ""
7226 "This command creates a new inotify handle.  The inotify subsystem can be "
7227 "used to notify events which happen to objects in the guest filesystem."
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1940
7232 msgid ""
7233 "C<maxevents> is the maximum number of events which will be queued up between "
7234 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7235 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7236 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7237 "throws away events, but records the fact that it threw them away by setting "
7238 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7239 "C<guestfs_inotify_read>)."
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1950
7244 msgid ""
7245 "Before any events are generated, you have to add some watches to the "
7246 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7247 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7248 msgstr ""
7249
7250 # type: textblock
7251 #: ../src/guestfs-actions.pod:1956
7252 msgid ""
7253 "Queued up events should be read periodically by calling "
7254 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7255 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7256 "often enough then you risk the internal queue overflowing."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1963
7261 msgid ""
7262 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7263 "This also removes any watches automatically."
7264 msgstr ""
7265
7266 # type: textblock
7267 #: ../src/guestfs-actions.pod:1967 ../fish/guestfish-actions.pod:1555
7268 msgid ""
7269 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7270 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7271 "that there is one global inotify handle per libguestfs instance."
7272 msgstr ""
7273
7274 # type: =head2
7275 #: ../src/guestfs-actions.pod:1974
7276 msgid "guestfs_inotify_read"
7277 msgstr ""
7278
7279 # type: verbatim
7280 #: ../src/guestfs-actions.pod:1976
7281 #, no-wrap
7282 msgid ""
7283 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7284 "\n"
7285 msgstr ""
7286
7287 # type: textblock
7288 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1564
7289 msgid ""
7290 "Return the complete queue of events that have happened since the previous "
7291 "read call."
7292 msgstr ""
7293
7294 # type: textblock
7295 #: ../src/guestfs-actions.pod:1981 ../fish/guestfish-actions.pod:1567
7296 msgid "If no events have happened, this returns an empty list."
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1569
7301 msgid ""
7302 "I<Note>: In order to make sure that all events have been read, you must call "
7303 "this function repeatedly until it returns an empty list.  The reason is that "
7304 "the call will read events up to the maximum appliance-to-host message size "
7305 "and leave remaining events in the queue."
7306 msgstr ""
7307
7308 # type: textblock
7309 #: ../src/guestfs-actions.pod:1989
7310 msgid ""
7311 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7312 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7313 "must call C<guestfs_free_inotify_event_list> after use>."
7314 msgstr ""
7315
7316 # type: =head2
7317 #: ../src/guestfs-actions.pod:1994
7318 msgid "guestfs_inotify_rm_watch"
7319 msgstr ""
7320
7321 # type: verbatim
7322 #: ../src/guestfs-actions.pod:1996
7323 #, no-wrap
7324 msgid ""
7325 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7326 "\t\tint wd);\n"
7327 "\n"
7328 msgstr ""
7329
7330 # type: textblock
7331 #: ../src/guestfs-actions.pod:1999
7332 msgid ""
7333 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7334 msgstr ""
7335
7336 # type: =head2
7337 #: ../src/guestfs-actions.pod:2004
7338 msgid "guestfs_inspect_get_arch"
7339 msgstr ""
7340
7341 # type: verbatim
7342 #: ../src/guestfs-actions.pod:2006
7343 #, no-wrap
7344 msgid ""
7345 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7346 "\t\tconst char *root);\n"
7347 "\n"
7348 msgstr ""
7349
7350 # type: textblock
7351 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2029
7352 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2102
7353 #: ../src/guestfs-actions.pod:2126 ../src/guestfs-actions.pod:2144
7354 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2195
7355 msgid ""
7356 "This function should only be called with a root device string as returned by "
7357 "C<guestfs_inspect_os>."
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:2012
7362 msgid ""
7363 "This returns the architecture of the inspected operating system.  The "
7364 "possible return values are listed under C<guestfs_file_architecture>."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1593
7369 msgid ""
7370 "If the architecture could not be determined, then the string C<unknown> is "
7371 "returned."
7372 msgstr ""
7373
7374 # type: textblock
7375 #: ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2069
7376 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2185
7377 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2257
7378 #: ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1642
7379 #: ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:1736
7380 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1801
7381 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7382 msgstr ""
7383
7384 # type: =head2
7385 #: ../src/guestfs-actions.pod:2024
7386 msgid "guestfs_inspect_get_distro"
7387 msgstr ""
7388
7389 # type: verbatim
7390 #: ../src/guestfs-actions.pod:2026
7391 #, no-wrap
7392 msgid ""
7393 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7394 "\t\tconst char *root);\n"
7395 "\n"
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1605
7400 msgid ""
7401 "This returns the distro (distribution) of the inspected operating system."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1608
7406 msgid "Currently defined distros are:"
7407 msgstr ""
7408
7409 # type: =item
7410 #: ../src/guestfs-actions.pod:2039 ../fish/guestfish-actions.pod:1612
7411 msgid "\"debian\""
7412 msgstr ""
7413
7414 # type: textblock
7415 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1614
7416 msgid "Debian or a Debian-derived distro such as Ubuntu."
7417 msgstr ""
7418
7419 # type: =item
7420 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1616
7421 msgid "\"fedora\""
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1618
7426 msgid "Fedora."
7427 msgstr ""
7428
7429 # type: =item
7430 #: ../src/guestfs-actions.pod:2047 ../fish/guestfish-actions.pod:1620
7431 msgid "\"redhat-based\""
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:2049 ../fish/guestfish-actions.pod:1622
7436 msgid "Some Red Hat-derived distro."
7437 msgstr ""
7438
7439 # type: =item
7440 #: ../src/guestfs-actions.pod:2051 ../fish/guestfish-actions.pod:1624
7441 msgid "\"rhel\""
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1626
7446 msgid "Red Hat Enterprise Linux and some derivatives."
7447 msgstr ""
7448
7449 # type: =item
7450 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2207
7451 #: ../fish/guestfish-actions.pod:1628 ../fish/guestfish-actions.pod:1754
7452 msgid "\"windows\""
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:2057 ../fish/guestfish-actions.pod:1630
7457 msgid ""
7458 "Windows does not have distributions.  This string is returned if the OS type "
7459 "is Windows."
7460 msgstr ""
7461
7462 # type: =item
7463 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2211
7464 #: ../fish/guestfish-actions.pod:1633 ../fish/guestfish-actions.pod:1758
7465 msgid "\"unknown\""
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:2062 ../fish/guestfish-actions.pod:1635
7470 msgid "The distro could not be determined."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2217
7475 #: ../fish/guestfish-actions.pod:1639 ../fish/guestfish-actions.pod:1764
7476 msgid ""
7477 "Future versions of libguestfs may return other strings here.  The caller "
7478 "should be prepared to handle any string."
7479 msgstr ""
7480
7481 # type: =head2
7482 #: ../src/guestfs-actions.pod:2074
7483 msgid "guestfs_inspect_get_filesystems"
7484 msgstr ""
7485
7486 # type: verbatim
7487 #: ../src/guestfs-actions.pod:2076
7488 #, no-wrap
7489 msgid ""
7490 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7491 "\t\tconst char *root);\n"
7492 "\n"
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1651
7497 msgid ""
7498 "This returns a list of all the filesystems that we think are associated with "
7499 "this operating system.  This includes the root filesystem, other ordinary "
7500 "filesystems, and non-mounted devices like swap partitions."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:2087 ../fish/guestfish-actions.pod:1656
7505 msgid ""
7506 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7507 "to be shared between operating systems."
7508 msgstr ""
7509
7510 # type: textblock
7511 #: ../src/guestfs-actions.pod:2090
7512 msgid ""
7513 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7514 "C<guestfs_inspect_get_mountpoints>."
7515 msgstr ""
7516
7517 # type: =head2
7518 #: ../src/guestfs-actions.pod:2097
7519 msgid "guestfs_inspect_get_major_version"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:2099
7524 #, no-wrap
7525 msgid ""
7526 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7527 "\t\tconst char *root);\n"
7528 "\n"
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../src/guestfs-actions.pod:2105 ../fish/guestfish-actions.pod:1669
7533 msgid ""
7534 "This returns the major version number of the inspected operating system."
7535 msgstr ""
7536
7537 # type: textblock
7538 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1672
7539 msgid ""
7540 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7541 "popular public names used by the operating system.  Notably the operating "
7542 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7543 "1).  You can find out the real versions corresponding to releases of Windows "
7544 "by consulting Wikipedia or MSDN."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2132
7549 #: ../fish/guestfish-actions.pod:1679 ../fish/guestfish-actions.pod:1693
7550 msgid "If the version could not be determined, then C<0> is returned."
7551 msgstr ""
7552
7553 # type: =head2
7554 #: ../src/guestfs-actions.pod:2121
7555 msgid "guestfs_inspect_get_minor_version"
7556 msgstr ""
7557
7558 # type: verbatim
7559 #: ../src/guestfs-actions.pod:2123
7560 #, no-wrap
7561 msgid ""
7562 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7563 "\t\tconst char *root);\n"
7564 "\n"
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1690
7569 msgid ""
7570 "This returns the minor version number of the inspected operating system."
7571 msgstr ""
7572
7573 # type: textblock
7574 #: ../src/guestfs-actions.pod:2134
7575 msgid ""
7576 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7577 "C<guestfs_inspect_get_major_version>."
7578 msgstr ""
7579
7580 # type: =head2
7581 #: ../src/guestfs-actions.pod:2139
7582 msgid "guestfs_inspect_get_mountpoints"
7583 msgstr ""
7584
7585 # type: verbatim
7586 #: ../src/guestfs-actions.pod:2141
7587 #, no-wrap
7588 msgid ""
7589 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7590 "\t\tconst char *root);\n"
7591 "\n"
7592 msgstr ""
7593
7594 # type: textblock
7595 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1705
7596 msgid ""
7597 "This returns a hash of where we think the filesystems associated with this "
7598 "operating system should be mounted.  Callers should note that this is at "
7599 "best an educated guess made by reading configuration files such as C</etc/"
7600 "fstab>."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1710
7605 msgid ""
7606 "Each element in the returned hashtable has a key which is the path of the "
7607 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7608 "mounted there (eg. C</dev/sda1>)."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1715
7613 msgid ""
7614 "Non-mounted devices such as swap devices are I<not> returned in this list."
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:2160
7619 msgid ""
7620 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7621 "C<guestfs_inspect_get_filesystems>."
7622 msgstr ""
7623
7624 # type: textblock
7625 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3380
7626 #: ../src/guestfs-actions.pod:4902
7627 msgid ""
7628 "This function returns a NULL-terminated array of strings, or NULL if there "
7629 "was an error.  The array of strings will always have length C<2n+1>, where "
7630 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7631 "caller must free the strings and the array after use>."
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:2169
7636 msgid "guestfs_inspect_get_product_name"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:2171
7641 #, no-wrap
7642 msgid ""
7643 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7644 "\t\tconst char *root);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:2177 ../fish/guestfish-actions.pod:1728
7650 msgid ""
7651 "This returns the product name of the inspected operating system.  The "
7652 "product name is generally some freeform string which can be displayed to the "
7653 "user, but should not be parsed by programs."
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1733
7658 msgid ""
7659 "If the product name could not be determined, then the string C<unknown> is "
7660 "returned."
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2190
7665 msgid "guestfs_inspect_get_type"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2192
7670 #, no-wrap
7671 msgid ""
7672 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7673 "\t\tconst char *root);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2198 ../fish/guestfish-actions.pod:1745
7679 msgid ""
7680 "This returns the type of the inspected operating system.  Currently defined "
7681 "types are:"
7682 msgstr ""
7683
7684 # type: =item
7685 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1750
7686 msgid "\"linux\""
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:2205 ../fish/guestfish-actions.pod:1752
7691 msgid "Any Linux-based operating system."
7692 msgstr ""
7693
7694 # type: textblock
7695 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1756
7696 msgid "Any Microsoft Windows operating system."
7697 msgstr ""
7698
7699 # type: textblock
7700 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1760
7701 msgid "The operating system type could not be determined."
7702 msgstr ""
7703
7704 # type: =head2
7705 #: ../src/guestfs-actions.pod:2225
7706 msgid "guestfs_inspect_os"
7707 msgstr ""
7708
7709 # type: verbatim
7710 #: ../src/guestfs-actions.pod:2227
7711 #, no-wrap
7712 msgid ""
7713 " char **guestfs_inspect_os (guestfs_h *g);\n"
7714 "\n"
7715 msgstr ""
7716
7717 # type: textblock
7718 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1773
7719 msgid ""
7720 "This function uses other libguestfs functions and certain heuristics to "
7721 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7722 "for operating systems."
7723 msgstr ""
7724
7725 # type: textblock
7726 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1777
7727 msgid "The list returned is empty if no operating systems were found."
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1779
7732 msgid ""
7733 "If one operating system was found, then this returns a list with a single "
7734 "element, which is the name of the root filesystem of this operating system.  "
7735 "It is also possible for this function to return a list containing more than "
7736 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7737 "element being the root filesystem of one of the operating systems."
7738 msgstr ""
7739
7740 # type: textblock
7741 #: ../src/guestfs-actions.pod:2242
7742 msgid ""
7743 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7744 "functions in order to query further information about each operating system, "
7745 "such as the name and version."
7746 msgstr ""
7747
7748 # type: textblock
7749 #: ../src/guestfs-actions.pod:2247
7750 msgid ""
7751 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7752 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7753 "the contents.  This should be called with no disks currently mounted.  The "
7754 "function may also use Augeas, so any existing Augeas handle will be closed."
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1797
7759 msgid ""
7760 "This function cannot decrypt encrypted disks.  The caller must do that first "
7761 "(supplying the necessary keys) if the disk is encrypted."
7762 msgstr ""
7763
7764 # type: =head2
7765 #: ../src/guestfs-actions.pod:2263
7766 msgid "guestfs_is_blockdev"
7767 msgstr ""
7768
7769 # type: verbatim
7770 #: ../src/guestfs-actions.pod:2265
7771 #, no-wrap
7772 msgid ""
7773 " int guestfs_is_blockdev (guestfs_h *g,\n"
7774 "\t\tconst char *path);\n"
7775 "\n"
7776 msgstr ""
7777
7778 # type: textblock
7779 #: ../src/guestfs-actions.pod:2268 ../fish/guestfish-actions.pod:1807
7780 msgid ""
7781 "This returns C<true> if and only if there is a block device with the given "
7782 "C<path> name."
7783 msgstr ""
7784
7785 # type: textblock
7786 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2294
7787 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2330
7788 #: ../src/guestfs-actions.pod:2343 ../src/guestfs-actions.pod:2387
7789 #: ../src/guestfs-actions.pod:2399
7790 msgid "See also C<guestfs_stat>."
7791 msgstr ""
7792
7793 # type: =head2
7794 #: ../src/guestfs-actions.pod:2275
7795 msgid "guestfs_is_busy"
7796 msgstr ""
7797
7798 # type: verbatim
7799 #: ../src/guestfs-actions.pod:2277
7800 #, no-wrap
7801 msgid ""
7802 " int guestfs_is_busy (guestfs_h *g);\n"
7803 "\n"
7804 msgstr ""
7805
7806 # type: textblock
7807 #: ../src/guestfs-actions.pod:2279 ../fish/guestfish-actions.pod:1816
7808 msgid ""
7809 "This returns true iff this handle is busy processing a command (in the "
7810 "C<BUSY> state)."
7811 msgstr ""
7812
7813 # type: =head2
7814 #: ../src/guestfs-actions.pod:2286
7815 msgid "guestfs_is_chardev"
7816 msgstr ""
7817
7818 # type: verbatim
7819 #: ../src/guestfs-actions.pod:2288
7820 #, no-wrap
7821 msgid ""
7822 " int guestfs_is_chardev (guestfs_h *g,\n"
7823 "\t\tconst char *path);\n"
7824 "\n"
7825 msgstr ""
7826
7827 # type: textblock
7828 #: ../src/guestfs-actions.pod:2291 ../fish/guestfish-actions.pod:1825
7829 msgid ""
7830 "This returns C<true> if and only if there is a character device with the "
7831 "given C<path> name."
7832 msgstr ""
7833
7834 # type: =head2
7835 #: ../src/guestfs-actions.pod:2298
7836 msgid "guestfs_is_config"
7837 msgstr ""
7838
7839 # type: verbatim
7840 #: ../src/guestfs-actions.pod:2300
7841 #, no-wrap
7842 msgid ""
7843 " int guestfs_is_config (guestfs_h *g);\n"
7844 "\n"
7845 msgstr ""
7846
7847 # type: textblock
7848 #: ../src/guestfs-actions.pod:2302 ../fish/guestfish-actions.pod:1834
7849 msgid ""
7850 "This returns true iff this handle is being configured (in the C<CONFIG> "
7851 "state)."
7852 msgstr ""
7853
7854 # type: =head2
7855 #: ../src/guestfs-actions.pod:2309
7856 msgid "guestfs_is_dir"
7857 msgstr ""
7858
7859 # type: verbatim
7860 #: ../src/guestfs-actions.pod:2311
7861 #, no-wrap
7862 msgid ""
7863 " int guestfs_is_dir (guestfs_h *g,\n"
7864 "\t\tconst char *path);\n"
7865 "\n"
7866 msgstr ""
7867
7868 # type: textblock
7869 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1843
7870 msgid ""
7871 "This returns C<true> if and only if there is a directory with the given "
7872 "C<path> name.  Note that it returns false for other objects like files."
7873 msgstr ""
7874
7875 # type: =head2
7876 #: ../src/guestfs-actions.pod:2322
7877 msgid "guestfs_is_fifo"
7878 msgstr ""
7879
7880 # type: verbatim
7881 #: ../src/guestfs-actions.pod:2324
7882 #, no-wrap
7883 msgid ""
7884 " int guestfs_is_fifo (guestfs_h *g,\n"
7885 "\t\tconst char *path);\n"
7886 "\n"
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1853
7891 msgid ""
7892 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
7893 "given C<path> name."
7894 msgstr ""
7895
7896 # type: =head2
7897 #: ../src/guestfs-actions.pod:2334
7898 msgid "guestfs_is_file"
7899 msgstr ""
7900
7901 # type: verbatim
7902 #: ../src/guestfs-actions.pod:2336
7903 #, no-wrap
7904 msgid ""
7905 " int guestfs_is_file (guestfs_h *g,\n"
7906 "\t\tconst char *path);\n"
7907 "\n"
7908 msgstr ""
7909
7910 # type: textblock
7911 #: ../src/guestfs-actions.pod:2339 ../fish/guestfish-actions.pod:1862
7912 msgid ""
7913 "This returns C<true> if and only if there is a regular file with the given "
7914 "C<path> name.  Note that it returns false for other objects like directories."
7915 msgstr ""
7916
7917 # type: =head2
7918 #: ../src/guestfs-actions.pod:2347
7919 msgid "guestfs_is_launching"
7920 msgstr ""
7921
7922 # type: verbatim
7923 #: ../src/guestfs-actions.pod:2349
7924 #, no-wrap
7925 msgid ""
7926 " int guestfs_is_launching (guestfs_h *g);\n"
7927 "\n"
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2351 ../fish/guestfish-actions.pod:1872
7932 msgid ""
7933 "This returns true iff this handle is launching the subprocess (in the "
7934 "C<LAUNCHING> state)."
7935 msgstr ""
7936
7937 # type: =head2
7938 #: ../src/guestfs-actions.pod:2358
7939 msgid "guestfs_is_lv"
7940 msgstr ""
7941
7942 # type: verbatim
7943 #: ../src/guestfs-actions.pod:2360
7944 #, no-wrap
7945 msgid ""
7946 " int guestfs_is_lv (guestfs_h *g,\n"
7947 "\t\tconst char *device);\n"
7948 "\n"
7949 msgstr ""
7950
7951 # type: textblock
7952 #: ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1881
7953 msgid ""
7954 "This command tests whether C<device> is a logical volume, and returns true "
7955 "iff this is the case."
7956 msgstr ""
7957
7958 # type: =head2
7959 #: ../src/guestfs-actions.pod:2368
7960 msgid "guestfs_is_ready"
7961 msgstr ""
7962
7963 # type: verbatim
7964 #: ../src/guestfs-actions.pod:2370
7965 #, no-wrap
7966 msgid ""
7967 " int guestfs_is_ready (guestfs_h *g);\n"
7968 "\n"
7969 msgstr ""
7970
7971 # type: textblock
7972 #: ../src/guestfs-actions.pod:2372 ../fish/guestfish-actions.pod:1888
7973 msgid ""
7974 "This returns true iff this handle is ready to accept commands (in the "
7975 "C<READY> state)."
7976 msgstr ""
7977
7978 # type: =head2
7979 #: ../src/guestfs-actions.pod:2379
7980 msgid "guestfs_is_socket"
7981 msgstr ""
7982
7983 # type: verbatim
7984 #: ../src/guestfs-actions.pod:2381
7985 #, no-wrap
7986 msgid ""
7987 " int guestfs_is_socket (guestfs_h *g,\n"
7988 "\t\tconst char *path);\n"
7989 "\n"
7990 msgstr ""
7991
7992 # type: textblock
7993 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1897
7994 msgid ""
7995 "This returns C<true> if and only if there is a Unix domain socket with the "
7996 "given C<path> name."
7997 msgstr ""
7998
7999 # type: =head2
8000 #: ../src/guestfs-actions.pod:2391
8001 msgid "guestfs_is_symlink"
8002 msgstr ""
8003
8004 # type: verbatim
8005 #: ../src/guestfs-actions.pod:2393
8006 #, no-wrap
8007 msgid ""
8008 " int guestfs_is_symlink (guestfs_h *g,\n"
8009 "\t\tconst char *path);\n"
8010 "\n"
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2396 ../fish/guestfish-actions.pod:1906
8015 msgid ""
8016 "This returns C<true> if and only if there is a symbolic link with the given "
8017 "C<path> name."
8018 msgstr ""
8019
8020 # type: =head2
8021 #: ../src/guestfs-actions.pod:2403
8022 msgid "guestfs_kill_subprocess"
8023 msgstr ""
8024
8025 # type: verbatim
8026 #: ../src/guestfs-actions.pod:2405
8027 #, no-wrap
8028 msgid ""
8029 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8030 "\n"
8031 msgstr ""
8032
8033 # type: textblock
8034 #: ../src/guestfs-actions.pod:2407 ../fish/guestfish-actions.pod:1915
8035 msgid "This kills the qemu subprocess.  You should never need to call this."
8036 msgstr ""
8037
8038 # type: =head2
8039 #: ../src/guestfs-actions.pod:2411
8040 msgid "guestfs_launch"
8041 msgstr ""
8042
8043 # type: verbatim
8044 #: ../src/guestfs-actions.pod:2413
8045 #, no-wrap
8046 msgid ""
8047 " int guestfs_launch (guestfs_h *g);\n"
8048 "\n"
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1921
8053 msgid ""
8054 "Internally libguestfs is implemented by running a virtual machine using "
8055 "L<qemu(1)>."
8056 msgstr ""
8057
8058 # type: textblock
8059 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1924
8060 msgid ""
8061 "You should call this after configuring the handle (eg. adding drives) but "
8062 "before performing any actions."
8063 msgstr ""
8064
8065 # type: =head2
8066 #: ../src/guestfs-actions.pod:2423
8067 msgid "guestfs_lchown"
8068 msgstr ""
8069
8070 # type: verbatim
8071 #: ../src/guestfs-actions.pod:2425
8072 #, no-wrap
8073 msgid ""
8074 " int guestfs_lchown (guestfs_h *g,\n"
8075 "\t\tint owner,\n"
8076 "\t\tint group,\n"
8077 "\t\tconst char *path);\n"
8078 "\n"
8079 msgstr ""
8080
8081 # type: textblock
8082 #: ../src/guestfs-actions.pod:2430
8083 msgid ""
8084 "Change the file owner to C<owner> and group to C<group>.  This is like "
8085 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8086 "changed, not the target."
8087 msgstr ""
8088
8089 # type: =head2
8090 #: ../src/guestfs-actions.pod:2440
8091 msgid "guestfs_lgetxattrs"
8092 msgstr ""
8093
8094 # type: verbatim
8095 #: ../src/guestfs-actions.pod:2442
8096 #, no-wrap
8097 msgid ""
8098 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8099 "\t\tconst char *path);\n"
8100 "\n"
8101 msgstr ""
8102
8103 # type: textblock
8104 #: ../src/guestfs-actions.pod:2445
8105 msgid ""
8106 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8107 "then it returns the extended attributes of the link itself."
8108 msgstr ""
8109
8110 # type: =head2
8111 #: ../src/guestfs-actions.pod:2454
8112 msgid "guestfs_list_devices"
8113 msgstr ""
8114
8115 # type: verbatim
8116 #: ../src/guestfs-actions.pod:2456
8117 #, no-wrap
8118 msgid ""
8119 " char **guestfs_list_devices (guestfs_h *g);\n"
8120 "\n"
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2458 ../fish/guestfish-actions.pod:1951
8125 msgid "List all the block devices."
8126 msgstr ""
8127
8128 # type: textblock
8129 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1953
8130 msgid "The full block device names are returned, eg. C</dev/sda>"
8131 msgstr ""
8132
8133 # type: =head2
8134 #: ../src/guestfs-actions.pod:2466
8135 msgid "guestfs_list_partitions"
8136 msgstr ""
8137
8138 # type: verbatim
8139 #: ../src/guestfs-actions.pod:2468
8140 #, no-wrap
8141 msgid ""
8142 " char **guestfs_list_partitions (guestfs_h *g);\n"
8143 "\n"
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1959
8148 msgid "List all the partitions detected on all block devices."
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1961
8153 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8154 msgstr ""
8155
8156 # type: textblock
8157 #: ../src/guestfs-actions.pod:2474
8158 msgid ""
8159 "This does not return logical volumes.  For that you will need to call "
8160 "C<guestfs_lvs>."
8161 msgstr ""
8162
8163 # type: =head2
8164 #: ../src/guestfs-actions.pod:2481
8165 msgid "guestfs_ll"
8166 msgstr ""
8167
8168 # type: verbatim
8169 #: ../src/guestfs-actions.pod:2483
8170 #, no-wrap
8171 msgid ""
8172 " char *guestfs_ll (guestfs_h *g,\n"
8173 "\t\tconst char *directory);\n"
8174 "\n"
8175 msgstr ""
8176
8177 # type: textblock
8178 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1970
8179 msgid ""
8180 "List the files in C<directory> (relative to the root directory, there is no "
8181 "cwd) in the format of 'ls -la'."
8182 msgstr ""
8183
8184 # type: textblock
8185 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1973
8186 msgid ""
8187 "This command is mostly useful for interactive sessions.  It is I<not> "
8188 "intended that you try to parse the output string."
8189 msgstr ""
8190
8191 # type: =head2
8192 #: ../src/guestfs-actions.pod:2495
8193 msgid "guestfs_ln"
8194 msgstr ""
8195
8196 # type: verbatim
8197 #: ../src/guestfs-actions.pod:2497
8198 #, no-wrap
8199 msgid ""
8200 " int guestfs_ln (guestfs_h *g,\n"
8201 "\t\tconst char *target,\n"
8202 "\t\tconst char *linkname);\n"
8203 "\n"
8204 msgstr ""
8205
8206 # type: textblock
8207 #: ../src/guestfs-actions.pod:2501 ../fish/guestfish-actions.pod:1980
8208 msgid "This command creates a hard link using the C<ln> command."
8209 msgstr ""
8210
8211 # type: =head2
8212 #: ../src/guestfs-actions.pod:2505
8213 msgid "guestfs_ln_f"
8214 msgstr ""
8215
8216 # type: verbatim
8217 #: ../src/guestfs-actions.pod:2507
8218 #, no-wrap
8219 msgid ""
8220 " int guestfs_ln_f (guestfs_h *g,\n"
8221 "\t\tconst char *target,\n"
8222 "\t\tconst char *linkname);\n"
8223 "\n"
8224 msgstr ""
8225
8226 # type: textblock
8227 #: ../src/guestfs-actions.pod:2511 ../fish/guestfish-actions.pod:1986
8228 msgid ""
8229 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8230 "option removes the link (C<linkname>) if it exists already."
8231 msgstr ""
8232
8233 # type: =head2
8234 #: ../src/guestfs-actions.pod:2516
8235 msgid "guestfs_ln_s"
8236 msgstr ""
8237
8238 # type: verbatim
8239 #: ../src/guestfs-actions.pod:2518
8240 #, no-wrap
8241 msgid ""
8242 " int guestfs_ln_s (guestfs_h *g,\n"
8243 "\t\tconst char *target,\n"
8244 "\t\tconst char *linkname);\n"
8245 "\n"
8246 msgstr ""
8247
8248 # type: textblock
8249 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1993
8250 msgid "This command creates a symbolic link using the C<ln -s> command."
8251 msgstr ""
8252
8253 # type: =head2
8254 #: ../src/guestfs-actions.pod:2526
8255 msgid "guestfs_ln_sf"
8256 msgstr ""
8257
8258 # type: verbatim
8259 #: ../src/guestfs-actions.pod:2528
8260 #, no-wrap
8261 msgid ""
8262 " int guestfs_ln_sf (guestfs_h *g,\n"
8263 "\t\tconst char *target,\n"
8264 "\t\tconst char *linkname);\n"
8265 "\n"
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1999
8270 msgid ""
8271 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8272 "option removes the link (C<linkname>) if it exists already."
8273 msgstr ""
8274
8275 # type: =head2
8276 #: ../src/guestfs-actions.pod:2537
8277 msgid "guestfs_lremovexattr"
8278 msgstr ""
8279
8280 # type: verbatim
8281 #: ../src/guestfs-actions.pod:2539
8282 #, no-wrap
8283 msgid ""
8284 " int guestfs_lremovexattr (guestfs_h *g,\n"
8285 "\t\tconst char *xattr,\n"
8286 "\t\tconst char *path);\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2543
8292 msgid ""
8293 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8294 "link, then it removes an extended attribute of the link itself."
8295 msgstr ""
8296
8297 # type: =head2
8298 #: ../src/guestfs-actions.pod:2549
8299 msgid "guestfs_ls"
8300 msgstr ""
8301
8302 # type: verbatim
8303 #: ../src/guestfs-actions.pod:2551
8304 #, no-wrap
8305 msgid ""
8306 " char **guestfs_ls (guestfs_h *g,\n"
8307 "\t\tconst char *directory);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:2014
8313 msgid ""
8314 "List the files in C<directory> (relative to the root directory, there is no "
8315 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2558
8320 msgid ""
8321 "This command is mostly useful for interactive sessions.  Programs should "
8322 "probably use C<guestfs_readdir> instead."
8323 msgstr ""
8324
8325 # type: =head2
8326 #: ../src/guestfs-actions.pod:2565
8327 msgid "guestfs_lsetxattr"
8328 msgstr ""
8329
8330 # type: verbatim
8331 #: ../src/guestfs-actions.pod:2567
8332 #, no-wrap
8333 msgid ""
8334 " int guestfs_lsetxattr (guestfs_h *g,\n"
8335 "\t\tconst char *xattr,\n"
8336 "\t\tconst char *val,\n"
8337 "\t\tint vallen,\n"
8338 "\t\tconst char *path);\n"
8339 "\n"
8340 msgstr ""
8341
8342 # type: textblock
8343 #: ../src/guestfs-actions.pod:2573
8344 msgid ""
8345 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8346 "then it sets an extended attribute of the link itself."
8347 msgstr ""
8348
8349 # type: =head2
8350 #: ../src/guestfs-actions.pod:2579
8351 msgid "guestfs_lstat"
8352 msgstr ""
8353
8354 # type: verbatim
8355 #: ../src/guestfs-actions.pod:2581
8356 #, no-wrap
8357 msgid ""
8358 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8359 "\t\tconst char *path);\n"
8360 "\n"
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:4567
8365 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish-actions.pod:3522
8366 msgid "Returns file information for the given C<path>."
8367 msgstr ""
8368
8369 # type: textblock
8370 #: ../src/guestfs-actions.pod:2586
8371 msgid ""
8372 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8373 "link, then the link is stat-ed, not the file it refers to."
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:2039
8378 msgid "This is the same as the C<lstat(2)> system call."
8379 msgstr ""
8380
8381 # type: textblock
8382 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:4571
8383 msgid ""
8384 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8385 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8386 msgstr ""
8387
8388 # type: =head2
8389 #: ../src/guestfs-actions.pod:2596
8390 msgid "guestfs_lstatlist"
8391 msgstr ""
8392
8393 # type: verbatim
8394 #: ../src/guestfs-actions.pod:2598
8395 #, no-wrap
8396 msgid ""
8397 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8398 "\t\tconst char *path,\n"
8399 "\t\tchar *const *names);\n"
8400 "\n"
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2602
8405 msgid ""
8406 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8407 "files, where all files are in the directory C<path>.  C<names> is the list "
8408 "of files from this directory."
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2606 ../fish/guestfish-actions.pod:2049
8413 msgid ""
8414 "On return you get a list of stat structs, with a one-to-one correspondence "
8415 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8416 "then the C<ino> field of that structure is set to C<-1>."
8417 msgstr ""
8418
8419 # type: textblock
8420 #: ../src/guestfs-actions.pod:2611
8421 msgid ""
8422 "This call is intended for programs that want to efficiently list a directory "
8423 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8424 "for a similarly efficient call for getting extended attributes.  Very long "
8425 "directory listings might cause the protocol message size to be exceeded, "
8426 "causing this call to fail.  The caller must split up such requests into "
8427 "smaller groups of names."
8428 msgstr ""
8429
8430 # type: textblock
8431 #: ../src/guestfs-actions.pod:2619
8432 msgid ""
8433 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
8434 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
8435 "C<guestfs_free_stat_list> after use>."
8436 msgstr ""
8437
8438 # type: =head2
8439 #: ../src/guestfs-actions.pod:2624
8440 msgid "guestfs_luks_add_key"
8441 msgstr ""
8442
8443 # type: verbatim
8444 #: ../src/guestfs-actions.pod:2626
8445 #, no-wrap
8446 msgid ""
8447 " int guestfs_luks_add_key (guestfs_h *g,\n"
8448 "\t\tconst char *device,\n"
8449 "\t\tconst char *key,\n"
8450 "\t\tconst char *newkey,\n"
8451 "\t\tint keyslot);\n"
8452 "\n"
8453 msgstr ""
8454
8455 # type: textblock
8456 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:2066
8457 msgid ""
8458 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8459 "existing key, and is used to access the device.  C<newkey> is the new key to "
8460 "add.  C<keyslot> is the key slot that will be replaced."
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2637
8465 msgid ""
8466 "Note that if C<keyslot> already contains a key, then this command will "
8467 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8468 msgstr ""
8469
8470 # type: textblock
8471 #: ../src/guestfs-actions.pod:2643 ../src/guestfs-actions.pod:2677
8472 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2714
8473 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2759
8474 msgid ""
8475 "This function takes a key or passphrase parameter which could contain "
8476 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8477 "information."
8478 msgstr ""
8479
8480 # type: =head2
8481 #: ../src/guestfs-actions.pod:2647
8482 msgid "guestfs_luks_close"
8483 msgstr ""
8484
8485 # type: verbatim
8486 #: ../src/guestfs-actions.pod:2649
8487 #, no-wrap
8488 msgid ""
8489 " int guestfs_luks_close (guestfs_h *g,\n"
8490 "\t\tconst char *device);\n"
8491 "\n"
8492 msgstr ""
8493
8494 # type: textblock
8495 #: ../src/guestfs-actions.pod:2652
8496 msgid ""
8497 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8498 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8499 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8500 "underlying block device."
8501 msgstr ""
8502
8503 # type: =head2
8504 #: ../src/guestfs-actions.pod:2660
8505 msgid "guestfs_luks_format"
8506 msgstr ""
8507
8508 # type: verbatim
8509 #: ../src/guestfs-actions.pod:2662
8510 #, no-wrap
8511 msgid ""
8512 " int guestfs_luks_format (guestfs_h *g,\n"
8513 "\t\tconst char *device,\n"
8514 "\t\tconst char *key,\n"
8515 "\t\tint keyslot);\n"
8516 "\n"
8517 msgstr ""
8518
8519 # type: textblock
8520 #: ../src/guestfs-actions.pod:2667 ../fish/guestfish-actions.pod:2092
8521 msgid ""
8522 "This command erases existing data on C<device> and formats the device as a "
8523 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8524 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8525 msgstr ""
8526
8527 # type: textblock
8528 #: ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2694
8529 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:3508
8530 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4429
8531 #: ../src/guestfs-actions.pod:4449 ../src/guestfs-actions.pod:4472
8532 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:2100
8533 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2184
8534 #: ../fish/guestfish-actions.pod:2699 ../fish/guestfish-actions.pod:3163
8535 #: ../fish/guestfish-actions.pod:3421 ../fish/guestfish-actions.pod:3437
8536 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:4140
8537 msgid ""
8538 "B<This command is dangerous.  Without careful use you can easily destroy all "
8539 "your data>."
8540 msgstr ""
8541
8542 # type: =head2
8543 #: ../src/guestfs-actions.pod:2681
8544 msgid "guestfs_luks_format_cipher"
8545 msgstr ""
8546
8547 # type: verbatim
8548 #: ../src/guestfs-actions.pod:2683
8549 #, no-wrap
8550 msgid ""
8551 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8552 "\t\tconst char *device,\n"
8553 "\t\tconst char *key,\n"
8554 "\t\tint keyslot,\n"
8555 "\t\tconst char *cipher);\n"
8556 "\n"
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2689
8561 msgid ""
8562 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8563 "set the C<cipher> used."
8564 msgstr ""
8565
8566 # type: =head2
8567 #: ../src/guestfs-actions.pod:2701
8568 msgid "guestfs_luks_kill_slot"
8569 msgstr ""
8570
8571 # type: verbatim
8572 #: ../src/guestfs-actions.pod:2703
8573 #, no-wrap
8574 msgid ""
8575 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8576 "\t\tconst char *device,\n"
8577 "\t\tconst char *key,\n"
8578 "\t\tint keyslot);\n"
8579 "\n"
8580 msgstr ""
8581
8582 # type: textblock
8583 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:2120
8584 msgid ""
8585 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8586 "device C<device>.  C<key> must be one of the I<other> keys."
8587 msgstr ""
8588
8589 # type: =head2
8590 #: ../src/guestfs-actions.pod:2718
8591 msgid "guestfs_luks_open"
8592 msgstr ""
8593
8594 # type: verbatim
8595 #: ../src/guestfs-actions.pod:2720
8596 #, no-wrap
8597 msgid ""
8598 " int guestfs_luks_open (guestfs_h *g,\n"
8599 "\t\tconst char *device,\n"
8600 "\t\tconst char *key,\n"
8601 "\t\tconst char *mapname);\n"
8602 "\n"
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:2131
8607 msgid ""
8608 "This command opens a block device which has been encrypted according to the "
8609 "Linux Unified Key Setup (LUKS) standard."
8610 msgstr ""
8611
8612 # type: textblock
8613 #: ../src/guestfs-actions.pod:2728 ../fish/guestfish-actions.pod:2134
8614 msgid "C<device> is the encrypted block device or partition."
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:2136
8619 msgid ""
8620 "The caller must supply one of the keys associated with the LUKS block "
8621 "device, in the C<key> parameter."
8622 msgstr ""
8623
8624 # type: textblock
8625 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2139
8626 msgid ""
8627 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8628 "writes to this block device are decrypted from and encrypted to the "
8629 "underlying C<device> respectively."
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2737
8634 msgid ""
8635 "If this block device contains LVM volume groups, then calling "
8636 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8637 "visible."
8638 msgstr ""
8639
8640 # type: =head2
8641 #: ../src/guestfs-actions.pod:2747
8642 msgid "guestfs_luks_open_ro"
8643 msgstr ""
8644
8645 # type: verbatim
8646 #: ../src/guestfs-actions.pod:2749
8647 #, no-wrap
8648 msgid ""
8649 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8650 "\t\tconst char *device,\n"
8651 "\t\tconst char *key,\n"
8652 "\t\tconst char *mapname);\n"
8653 "\n"
8654 msgstr ""
8655
8656 # type: textblock
8657 #: ../src/guestfs-actions.pod:2754
8658 msgid ""
8659 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8660 "created."
8661 msgstr ""
8662
8663 # type: =head2
8664 #: ../src/guestfs-actions.pod:2763
8665 msgid "guestfs_lvcreate"
8666 msgstr ""
8667
8668 # type: verbatim
8669 #: ../src/guestfs-actions.pod:2765
8670 #, no-wrap
8671 msgid ""
8672 " int guestfs_lvcreate (guestfs_h *g,\n"
8673 "\t\tconst char *logvol,\n"
8674 "\t\tconst char *volgroup,\n"
8675 "\t\tint mbytes);\n"
8676 "\n"
8677 msgstr ""
8678
8679 # type: textblock
8680 #: ../src/guestfs-actions.pod:2770 ../fish/guestfish-actions.pod:2164
8681 msgid ""
8682 "This creates an LVM logical volume called C<logvol> on the volume group "
8683 "C<volgroup>, with C<size> megabytes."
8684 msgstr ""
8685
8686 # type: =head2
8687 #: ../src/guestfs-actions.pod:2775
8688 msgid "guestfs_lvm_clear_filter"
8689 msgstr ""
8690
8691 # type: verbatim
8692 #: ../src/guestfs-actions.pod:2777
8693 #, no-wrap
8694 msgid ""
8695 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8696 "\n"
8697 msgstr ""
8698
8699 # type: textblock
8700 #: ../src/guestfs-actions.pod:2779
8701 msgid ""
8702 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8703 "see every block device."
8704 msgstr ""
8705
8706 # type: textblock
8707 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2818
8708 #: ../fish/guestfish-actions.pod:2174 ../fish/guestfish-actions.pod:2205
8709 msgid ""
8710 "This command also clears the LVM cache and performs a volume group scan."
8711 msgstr ""
8712
8713 # type: =head2
8714 #: ../src/guestfs-actions.pod:2787
8715 msgid "guestfs_lvm_remove_all"
8716 msgstr ""
8717
8718 # type: verbatim
8719 #: ../src/guestfs-actions.pod:2789
8720 #, no-wrap
8721 msgid ""
8722 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:2181
8728 msgid ""
8729 "This command removes all LVM logical volumes, volume groups and physical "
8730 "volumes."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2799
8735 msgid "guestfs_lvm_set_filter"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2801
8740 #, no-wrap
8741 msgid ""
8742 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8743 "\t\tchar *const *devices);\n"
8744 "\n"
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2804 ../fish/guestfish-actions.pod:2191
8749 msgid ""
8750 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8751 "block devices in the list C<devices>, and will ignore all other attached "
8752 "block devices."
8753 msgstr ""
8754
8755 # type: textblock
8756 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:2195
8757 msgid ""
8758 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8759 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8760 "there are two types of duplication possible: either cloned PVs/VGs which "
8761 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8762 "same name.  In normal operation you cannot create this situation, but you "
8763 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8764 "inside the LVM metadata."
8765 msgstr ""
8766
8767 # type: textblock
8768 #: ../src/guestfs-actions.pod:2821 ../fish/guestfish-actions.pod:2208
8769 msgid "You can filter whole block devices or individual partitions."
8770 msgstr ""
8771
8772 # type: textblock
8773 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:2210
8774 msgid ""
8775 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8776 "filesystem), even if you are not filtering out that VG."
8777 msgstr ""
8778
8779 # type: =head2
8780 #: ../src/guestfs-actions.pod:2829
8781 msgid "guestfs_lvremove"
8782 msgstr ""
8783
8784 # type: verbatim
8785 #: ../src/guestfs-actions.pod:2831
8786 #, no-wrap
8787 msgid ""
8788 " int guestfs_lvremove (guestfs_h *g,\n"
8789 "\t\tconst char *device);\n"
8790 "\n"
8791 msgstr ""
8792
8793 # type: textblock
8794 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:2218
8795 msgid ""
8796 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8797 "LV, such as C</dev/VG/LV>."
8798 msgstr ""
8799
8800 # type: textblock
8801 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:2221
8802 msgid ""
8803 "You can also remove all LVs in a volume group by specifying the VG name, C</"
8804 "dev/VG>."
8805 msgstr ""
8806
8807 # type: =head2
8808 #: ../src/guestfs-actions.pod:2842
8809 msgid "guestfs_lvrename"
8810 msgstr ""
8811
8812 # type: verbatim
8813 #: ../src/guestfs-actions.pod:2844
8814 #, no-wrap
8815 msgid ""
8816 " int guestfs_lvrename (guestfs_h *g,\n"
8817 "\t\tconst char *logvol,\n"
8818 "\t\tconst char *newlogvol);\n"
8819 "\n"
8820 msgstr ""
8821
8822 # type: textblock
8823 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:2228
8824 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8825 msgstr ""
8826
8827 # type: =head2
8828 #: ../src/guestfs-actions.pod:2852
8829 msgid "guestfs_lvresize"
8830 msgstr ""
8831
8832 # type: verbatim
8833 #: ../src/guestfs-actions.pod:2854
8834 #, no-wrap
8835 msgid ""
8836 " int guestfs_lvresize (guestfs_h *g,\n"
8837 "\t\tconst char *device,\n"
8838 "\t\tint mbytes);\n"
8839 "\n"
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:2858 ../fish/guestfish-actions.pod:2234
8844 msgid ""
8845 "This resizes (expands or shrinks) an existing LVM logical volume to "
8846 "C<mbytes>.  When reducing, data in the reduced part is lost."
8847 msgstr ""
8848
8849 # type: =head2
8850 #: ../src/guestfs-actions.pod:2864
8851 msgid "guestfs_lvresize_free"
8852 msgstr ""
8853
8854 # type: verbatim
8855 #: ../src/guestfs-actions.pod:2866
8856 #, no-wrap
8857 msgid ""
8858 " int guestfs_lvresize_free (guestfs_h *g,\n"
8859 "\t\tconst char *lv,\n"
8860 "\t\tint percent);\n"
8861 "\n"
8862 msgstr ""
8863
8864 # type: textblock
8865 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:2242
8866 msgid ""
8867 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
8868 "remaining free space in the volume group.  Commonly you would call this with "
8869 "pc = 100 which expands the logical volume as much as possible, using all "
8870 "remaining free space in the volume group."
8871 msgstr ""
8872
8873 # type: =head2
8874 #: ../src/guestfs-actions.pod:2878
8875 msgid "guestfs_lvs"
8876 msgstr ""
8877
8878 # type: verbatim
8879 #: ../src/guestfs-actions.pod:2880
8880 #, no-wrap
8881 msgid ""
8882 " char **guestfs_lvs (guestfs_h *g);\n"
8883 "\n"
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:2252
8888 msgid ""
8889 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
8890 "(8)> command."
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:2255
8895 msgid ""
8896 "This returns a list of the logical volume device names (eg. C</dev/"
8897 "VolGroup00/LogVol00>)."
8898 msgstr ""
8899
8900 # type: textblock
8901 #: ../src/guestfs-actions.pod:2888
8902 msgid "See also C<guestfs_lvs_full>."
8903 msgstr ""
8904
8905 # type: =head2
8906 #: ../src/guestfs-actions.pod:2894
8907 msgid "guestfs_lvs_full"
8908 msgstr ""
8909
8910 # type: verbatim
8911 #: ../src/guestfs-actions.pod:2896
8912 #, no-wrap
8913 msgid ""
8914 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:2264
8920 msgid ""
8921 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
8922 "(8)> command.  The \"full\" version includes all fields."
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:2901
8927 msgid ""
8928 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
8929 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
8930 "C<guestfs_free_lvm_lv_list> after use>."
8931 msgstr ""
8932
8933 # type: =head2
8934 #: ../src/guestfs-actions.pod:2906
8935 msgid "guestfs_lvuuid"
8936 msgstr ""
8937
8938 # type: verbatim
8939 #: ../src/guestfs-actions.pod:2908
8940 #, no-wrap
8941 msgid ""
8942 " char *guestfs_lvuuid (guestfs_h *g,\n"
8943 "\t\tconst char *device);\n"
8944 "\n"
8945 msgstr ""
8946
8947 # type: textblock
8948 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:2271
8949 msgid "This command returns the UUID of the LVM LV C<device>."
8950 msgstr ""
8951
8952 # type: =head2
8953 #: ../src/guestfs-actions.pod:2916
8954 msgid "guestfs_lxattrlist"
8955 msgstr ""
8956
8957 # type: verbatim
8958 #: ../src/guestfs-actions.pod:2918
8959 #, no-wrap
8960 msgid ""
8961 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
8962 "\t\tconst char *path,\n"
8963 "\t\tchar *const *names);\n"
8964 "\n"
8965 msgstr ""
8966
8967 # type: textblock
8968 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2277
8969 msgid ""
8970 "This call allows you to get the extended attributes of multiple files, where "
8971 "all files are in the directory C<path>.  C<names> is the list of files from "
8972 "this directory."
8973 msgstr ""
8974
8975 # type: textblock
8976 #: ../src/guestfs-actions.pod:2926 ../fish/guestfish-actions.pod:2281
8977 msgid ""
8978 "On return you get a flat list of xattr structs which must be interpreted "
8979 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
8980 "C<attrval> in this struct is zero-length to indicate there was an error "
8981 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
8982 "number (the number of following attributes for this file, which could be C<"
8983 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
8984 "for the first named file.  This repeats for the second and subsequent files."
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2936
8989 msgid ""
8990 "This call is intended for programs that want to efficiently list a directory "
8991 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
8992 "a similarly efficient call for getting standard stats.  Very long directory "
8993 "listings might cause the protocol message size to be exceeded, causing this "
8994 "call to fail.  The caller must split up such requests into smaller groups of "
8995 "names."
8996 msgstr ""
8997
8998 # type: =head2
8999 #: ../src/guestfs-actions.pod:2949
9000 msgid "guestfs_mkdir"
9001 msgstr ""
9002
9003 # type: verbatim
9004 #: ../src/guestfs-actions.pod:2951
9005 #, no-wrap
9006 msgid ""
9007 " int guestfs_mkdir (guestfs_h *g,\n"
9008 "\t\tconst char *path);\n"
9009 "\n"
9010 msgstr ""
9011
9012 # type: textblock
9013 #: ../src/guestfs-actions.pod:2954 ../fish/guestfish-actions.pod:2303
9014 msgid "Create a directory named C<path>."
9015 msgstr ""
9016
9017 # type: =head2
9018 #: ../src/guestfs-actions.pod:2958
9019 msgid "guestfs_mkdir_mode"
9020 msgstr ""
9021
9022 # type: verbatim
9023 #: ../src/guestfs-actions.pod:2960
9024 #, no-wrap
9025 msgid ""
9026 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9027 "\t\tconst char *path,\n"
9028 "\t\tint mode);\n"
9029 "\n"
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:2964 ../fish/guestfish-actions.pod:2309
9034 msgid ""
9035 "This command creates a directory, setting the initial permissions of the "
9036 "directory to C<mode>."
9037 msgstr ""
9038
9039 # type: textblock
9040 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2312
9041 msgid ""
9042 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9043 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9044 "other ways."
9045 msgstr ""
9046
9047 # type: textblock
9048 #: ../src/guestfs-actions.pod:2971
9049 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9050 msgstr ""
9051
9052 # type: =head2
9053 #: ../src/guestfs-actions.pod:2975
9054 msgid "guestfs_mkdir_p"
9055 msgstr ""
9056
9057 # type: verbatim
9058 #: ../src/guestfs-actions.pod:2977
9059 #, no-wrap
9060 msgid ""
9061 " int guestfs_mkdir_p (guestfs_h *g,\n"
9062 "\t\tconst char *path);\n"
9063 "\n"
9064 msgstr ""
9065
9066 # type: textblock
9067 #: ../src/guestfs-actions.pod:2980 ../fish/guestfish-actions.pod:2322
9068 msgid ""
9069 "Create a directory named C<path>, creating any parent directories as "
9070 "necessary.  This is like the C<mkdir -p> shell command."
9071 msgstr ""
9072
9073 # type: =head2
9074 #: ../src/guestfs-actions.pod:2985
9075 msgid "guestfs_mkdtemp"
9076 msgstr ""
9077
9078 # type: verbatim
9079 #: ../src/guestfs-actions.pod:2987
9080 #, no-wrap
9081 msgid ""
9082 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9083 "\t\tconst char *template);\n"
9084 "\n"
9085 msgstr ""
9086
9087 # type: textblock
9088 #: ../src/guestfs-actions.pod:2990 ../fish/guestfish-actions.pod:2329
9089 msgid ""
9090 "This command creates a temporary directory.  The C<template> parameter "
9091 "should be a full pathname for the temporary directory name with the final "
9092 "six characters being \"XXXXXX\"."
9093 msgstr ""
9094
9095 # type: textblock
9096 #: ../src/guestfs-actions.pod:2995 ../fish/guestfish-actions.pod:2334
9097 msgid ""
9098 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9099 "being suitable for Windows filesystems."
9100 msgstr ""
9101
9102 # type: textblock
9103 #: ../src/guestfs-actions.pod:2998 ../fish/guestfish-actions.pod:2337
9104 msgid "The name of the temporary directory that was created is returned."
9105 msgstr ""
9106
9107 # type: textblock
9108 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2340
9109 msgid "The temporary directory is created with mode 0700 and is owned by root."
9110 msgstr ""
9111
9112 # type: textblock
9113 #: ../src/guestfs-actions.pod:3004 ../fish/guestfish-actions.pod:2343
9114 msgid ""
9115 "The caller is responsible for deleting the temporary directory and its "
9116 "contents after use."
9117 msgstr ""
9118
9119 # type: textblock
9120 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2346
9121 msgid "See also: L<mkdtemp(3)>"
9122 msgstr ""
9123
9124 # type: =head2
9125 #: ../src/guestfs-actions.pod:3012
9126 msgid "guestfs_mke2fs_J"
9127 msgstr ""
9128
9129 # type: verbatim
9130 #: ../src/guestfs-actions.pod:3014
9131 #, no-wrap
9132 msgid ""
9133 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9134 "\t\tconst char *fstype,\n"
9135 "\t\tint blocksize,\n"
9136 "\t\tconst char *device,\n"
9137 "\t\tconst char *journal);\n"
9138 "\n"
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2352
9143 msgid ""
9144 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9145 "C<journal>.  It is equivalent to the command:"
9146 msgstr ""
9147
9148 # type: verbatim
9149 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2356
9150 #, no-wrap
9151 msgid ""
9152 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9153 "\n"
9154 msgstr ""
9155
9156 # type: textblock
9157 #: ../src/guestfs-actions.pod:3026
9158 msgid "See also C<guestfs_mke2journal>."
9159 msgstr ""
9160
9161 # type: =head2
9162 #: ../src/guestfs-actions.pod:3030
9163 msgid "guestfs_mke2fs_JL"
9164 msgstr ""
9165
9166 # type: verbatim
9167 #: ../src/guestfs-actions.pod:3032
9168 #, no-wrap
9169 msgid ""
9170 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9171 "\t\tconst char *fstype,\n"
9172 "\t\tint blocksize,\n"
9173 "\t\tconst char *device,\n"
9174 "\t\tconst char *label);\n"
9175 "\n"
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2364
9180 msgid ""
9181 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9182 "the journal labeled C<label>."
9183 msgstr ""
9184
9185 # type: textblock
9186 #: ../src/guestfs-actions.pod:3041
9187 msgid "See also C<guestfs_mke2journal_L>."
9188 msgstr ""
9189
9190 # type: =head2
9191 #: ../src/guestfs-actions.pod:3045
9192 msgid "guestfs_mke2fs_JU"
9193 msgstr ""
9194
9195 # type: verbatim
9196 #: ../src/guestfs-actions.pod:3047
9197 #, no-wrap
9198 msgid ""
9199 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9200 "\t\tconst char *fstype,\n"
9201 "\t\tint blocksize,\n"
9202 "\t\tconst char *device,\n"
9203 "\t\tconst char *uuid);\n"
9204 "\n"
9205 msgstr ""
9206
9207 # type: textblock
9208 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2373
9209 msgid ""
9210 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9211 "the journal with UUID C<uuid>."
9212 msgstr ""
9213
9214 # type: textblock
9215 #: ../src/guestfs-actions.pod:3056
9216 msgid "See also C<guestfs_mke2journal_U>."
9217 msgstr ""
9218
9219 # type: =head2
9220 #: ../src/guestfs-actions.pod:3060
9221 msgid "guestfs_mke2journal"
9222 msgstr ""
9223
9224 # type: verbatim
9225 #: ../src/guestfs-actions.pod:3062
9226 #, no-wrap
9227 msgid ""
9228 " int guestfs_mke2journal (guestfs_h *g,\n"
9229 "\t\tint blocksize,\n"
9230 "\t\tconst char *device);\n"
9231 "\n"
9232 msgstr ""
9233
9234 # type: textblock
9235 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2382
9236 msgid ""
9237 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9238 "command:"
9239 msgstr ""
9240
9241 # type: verbatim
9242 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2385
9243 #, no-wrap
9244 msgid ""
9245 " mke2fs -O journal_dev -b blocksize device\n"
9246 "\n"
9247 msgstr ""
9248
9249 # type: =head2
9250 #: ../src/guestfs-actions.pod:3073
9251 msgid "guestfs_mke2journal_L"
9252 msgstr ""
9253
9254 # type: verbatim
9255 #: ../src/guestfs-actions.pod:3075
9256 #, no-wrap
9257 msgid ""
9258 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9259 "\t\tint blocksize,\n"
9260 "\t\tconst char *label,\n"
9261 "\t\tconst char *device);\n"
9262 "\n"
9263 msgstr ""
9264
9265 # type: textblock
9266 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2391
9267 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9268 msgstr ""
9269
9270 # type: =head2
9271 #: ../src/guestfs-actions.pod:3084
9272 msgid "guestfs_mke2journal_U"
9273 msgstr ""
9274
9275 # type: verbatim
9276 #: ../src/guestfs-actions.pod:3086
9277 #, no-wrap
9278 msgid ""
9279 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9280 "\t\tint blocksize,\n"
9281 "\t\tconst char *uuid,\n"
9282 "\t\tconst char *device);\n"
9283 "\n"
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2397
9288 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9289 msgstr ""
9290
9291 # type: =head2
9292 #: ../src/guestfs-actions.pod:3095
9293 msgid "guestfs_mkfifo"
9294 msgstr ""
9295
9296 # type: verbatim
9297 #: ../src/guestfs-actions.pod:3097
9298 #, no-wrap
9299 msgid ""
9300 " int guestfs_mkfifo (guestfs_h *g,\n"
9301 "\t\tint mode,\n"
9302 "\t\tconst char *path);\n"
9303 "\n"
9304 msgstr ""
9305
9306 # type: textblock
9307 #: ../src/guestfs-actions.pod:3101
9308 msgid ""
9309 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9310 "is just a convenient wrapper around C<guestfs_mknod>."
9311 msgstr ""
9312
9313 # type: =head2
9314 #: ../src/guestfs-actions.pod:3109
9315 msgid "guestfs_mkfs"
9316 msgstr ""
9317
9318 # type: verbatim
9319 #: ../src/guestfs-actions.pod:3111
9320 #, no-wrap
9321 msgid ""
9322 " int guestfs_mkfs (guestfs_h *g,\n"
9323 "\t\tconst char *fstype,\n"
9324 "\t\tconst char *device);\n"
9325 "\n"
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:3115 ../fish/guestfish-actions.pod:2413
9330 msgid ""
9331 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9332 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9333 msgstr ""
9334
9335 # type: =head2
9336 #: ../src/guestfs-actions.pod:3121
9337 msgid "guestfs_mkfs_b"
9338 msgstr ""
9339
9340 # type: verbatim
9341 #: ../src/guestfs-actions.pod:3123
9342 #, no-wrap
9343 msgid ""
9344 " int guestfs_mkfs_b (guestfs_h *g,\n"
9345 "\t\tconst char *fstype,\n"
9346 "\t\tint blocksize,\n"
9347 "\t\tconst char *device);\n"
9348 "\n"
9349 msgstr ""
9350
9351 # type: textblock
9352 #: ../src/guestfs-actions.pod:3128
9353 msgid ""
9354 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9355 "block size of the resulting filesystem.  Supported block sizes depend on the "
9356 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:3133 ../fish/guestfish-actions.pod:2426
9361 msgid ""
9362 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9363 "cluster size."
9364 msgstr ""
9365
9366 # type: =head2
9367 #: ../src/guestfs-actions.pod:3138
9368 msgid "guestfs_mkmountpoint"
9369 msgstr ""
9370
9371 # type: verbatim
9372 #: ../src/guestfs-actions.pod:3140
9373 #, no-wrap
9374 msgid ""
9375 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9376 "\t\tconst char *exemptpath);\n"
9377 "\n"
9378 msgstr ""
9379
9380 # type: textblock
9381 #: ../src/guestfs-actions.pod:3143
9382 msgid ""
9383 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9384 "that can be used to create extra mountpoints before mounting the first "
9385 "filesystem."
9386 msgstr ""
9387
9388 # type: textblock
9389 #: ../src/guestfs-actions.pod:3147 ../fish/guestfish-actions.pod:2437
9390 msgid ""
9391 "These calls are I<only> necessary in some very limited circumstances, mainly "
9392 "the case where you want to mount a mix of unrelated and/or read-only "
9393 "filesystems together."
9394 msgstr ""
9395
9396 # type: textblock
9397 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2441
9398 msgid ""
9399 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9400 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9401 "inside that.  You can unpack this as follows in guestfish:"
9402 msgstr ""
9403
9404 # type: verbatim
9405 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2446
9406 #, no-wrap
9407 msgid ""
9408 " add-ro Fedora-11-i686-Live.iso\n"
9409 " run\n"
9410 " mkmountpoint /cd\n"
9411 " mkmountpoint /squash\n"
9412 " mkmountpoint /ext3\n"
9413 " mount /dev/sda /cd\n"
9414 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9415 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9416 "\n"
9417 msgstr ""
9418
9419 # type: textblock
9420 #: ../src/guestfs-actions.pod:3165 ../fish/guestfish-actions.pod:2455
9421 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9422 msgstr ""
9423
9424 # type: =head2
9425 #: ../src/guestfs-actions.pod:3169
9426 msgid "guestfs_mknod"
9427 msgstr ""
9428
9429 # type: verbatim
9430 #: ../src/guestfs-actions.pod:3171
9431 #, no-wrap
9432 msgid ""
9433 " int guestfs_mknod (guestfs_h *g,\n"
9434 "\t\tint mode,\n"
9435 "\t\tint devmajor,\n"
9436 "\t\tint devminor,\n"
9437 "\t\tconst char *path);\n"
9438 "\n"
9439 msgstr ""
9440
9441 # type: textblock
9442 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2461
9443 msgid ""
9444 "This call creates block or character special devices, or named pipes (FIFOs)."
9445 msgstr ""
9446
9447 # type: textblock
9448 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2464
9449 msgid ""
9450 "The C<mode> parameter should be the mode, using the standard constants.  "
9451 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9452 "used when creating block and character special devices."
9453 msgstr ""
9454
9455 # type: textblock
9456 #: ../src/guestfs-actions.pod:3185
9457 msgid ""
9458 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9459 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9460 "regular file).  These constants are available in the standard Linux header "
9461 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9462 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9463 "the appropriate constant for you."
9464 msgstr ""
9465
9466 # type: =head2
9467 #: ../src/guestfs-actions.pod:3197
9468 msgid "guestfs_mknod_b"
9469 msgstr ""
9470
9471 # type: verbatim
9472 #: ../src/guestfs-actions.pod:3199
9473 #, no-wrap
9474 msgid ""
9475 " int guestfs_mknod_b (guestfs_h *g,\n"
9476 "\t\tint mode,\n"
9477 "\t\tint devmajor,\n"
9478 "\t\tint devminor,\n"
9479 "\t\tconst char *path);\n"
9480 "\n"
9481 msgstr ""
9482
9483 # type: textblock
9484 #: ../src/guestfs-actions.pod:3205
9485 msgid ""
9486 "This call creates a block device node called C<path> with mode C<mode> and "
9487 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9488 "wrapper around C<guestfs_mknod>."
9489 msgstr ""
9490
9491 # type: =head2
9492 #: ../src/guestfs-actions.pod:3213
9493 msgid "guestfs_mknod_c"
9494 msgstr ""
9495
9496 # type: verbatim
9497 #: ../src/guestfs-actions.pod:3215
9498 #, no-wrap
9499 msgid ""
9500 " int guestfs_mknod_c (guestfs_h *g,\n"
9501 "\t\tint mode,\n"
9502 "\t\tint devmajor,\n"
9503 "\t\tint devminor,\n"
9504 "\t\tconst char *path);\n"
9505 "\n"
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:3221
9510 msgid ""
9511 "This call creates a char device node called C<path> with mode C<mode> and "
9512 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9513 "wrapper around C<guestfs_mknod>."
9514 msgstr ""
9515
9516 # type: =head2
9517 #: ../src/guestfs-actions.pod:3229
9518 msgid "guestfs_mkswap"
9519 msgstr ""
9520
9521 # type: verbatim
9522 #: ../src/guestfs-actions.pod:3231
9523 #, no-wrap
9524 msgid ""
9525 " int guestfs_mkswap (guestfs_h *g,\n"
9526 "\t\tconst char *device);\n"
9527 "\n"
9528 msgstr ""
9529
9530 # type: textblock
9531 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2503
9532 msgid "Create a swap partition on C<device>."
9533 msgstr ""
9534
9535 # type: =head2
9536 #: ../src/guestfs-actions.pod:3238
9537 msgid "guestfs_mkswap_L"
9538 msgstr ""
9539
9540 # type: verbatim
9541 #: ../src/guestfs-actions.pod:3240
9542 #, no-wrap
9543 msgid ""
9544 " int guestfs_mkswap_L (guestfs_h *g,\n"
9545 "\t\tconst char *label,\n"
9546 "\t\tconst char *device);\n"
9547 "\n"
9548 msgstr ""
9549
9550 # type: textblock
9551 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2509
9552 msgid "Create a swap partition on C<device> with label C<label>."
9553 msgstr ""
9554
9555 # type: textblock
9556 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2511
9557 msgid ""
9558 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
9559 "sda>), just to a partition.  This appears to be a limitation of the kernel "
9560 "or swap tools."
9561 msgstr ""
9562
9563 # type: =head2
9564 #: ../src/guestfs-actions.pod:3252
9565 msgid "guestfs_mkswap_U"
9566 msgstr ""
9567
9568 # type: verbatim
9569 #: ../src/guestfs-actions.pod:3254
9570 #, no-wrap
9571 msgid ""
9572 " int guestfs_mkswap_U (guestfs_h *g,\n"
9573 "\t\tconst char *uuid,\n"
9574 "\t\tconst char *device);\n"
9575 "\n"
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:3258 ../fish/guestfish-actions.pod:2519
9580 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9581 msgstr ""
9582
9583 # type: =head2
9584 #: ../src/guestfs-actions.pod:3262
9585 msgid "guestfs_mkswap_file"
9586 msgstr ""
9587
9588 # type: verbatim
9589 #: ../src/guestfs-actions.pod:3264
9590 #, no-wrap
9591 msgid ""
9592 " int guestfs_mkswap_file (guestfs_h *g,\n"
9593 "\t\tconst char *path);\n"
9594 "\n"
9595 msgstr ""
9596
9597 # type: textblock
9598 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2525
9599 msgid "Create a swap file."
9600 msgstr ""
9601
9602 # type: textblock
9603 #: ../src/guestfs-actions.pod:3269
9604 msgid ""
9605 "This command just writes a swap file signature to an existing file.  To "
9606 "create the file itself, use something like C<guestfs_fallocate>."
9607 msgstr ""
9608
9609 # type: =head2
9610 #: ../src/guestfs-actions.pod:3274
9611 msgid "guestfs_modprobe"
9612 msgstr ""
9613
9614 # type: verbatim
9615 #: ../src/guestfs-actions.pod:3276
9616 #, no-wrap
9617 msgid ""
9618 " int guestfs_modprobe (guestfs_h *g,\n"
9619 "\t\tconst char *modulename);\n"
9620 "\n"
9621 msgstr ""
9622
9623 # type: textblock
9624 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2534
9625 msgid "This loads a kernel module in the appliance."
9626 msgstr ""
9627
9628 # type: textblock
9629 #: ../src/guestfs-actions.pod:3281 ../fish/guestfish-actions.pod:2536
9630 msgid ""
9631 "The kernel module must have been whitelisted when libguestfs was built (see "
9632 "C<appliance/kmod.whitelist.in> in the source)."
9633 msgstr ""
9634
9635 # type: =head2
9636 #: ../src/guestfs-actions.pod:3286
9637 msgid "guestfs_mount"
9638 msgstr ""
9639
9640 # type: verbatim
9641 #: ../src/guestfs-actions.pod:3288
9642 #, no-wrap
9643 msgid ""
9644 " int guestfs_mount (guestfs_h *g,\n"
9645 "\t\tconst char *device,\n"
9646 "\t\tconst char *mountpoint);\n"
9647 "\n"
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2543
9652 msgid ""
9653 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9654 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9655 "those block devices contain partitions, they will have the usual names (eg. "
9656 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9657 msgstr ""
9658
9659 # type: textblock
9660 #: ../src/guestfs-actions.pod:3298 ../fish/guestfish-actions.pod:2549
9661 msgid ""
9662 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9663 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9664 "mounted on directories which already exist."
9665 msgstr ""
9666
9667 # type: textblock
9668 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2554
9669 msgid ""
9670 "The mounted filesystem is writable, if we have sufficient permissions on the "
9671 "underlying device."
9672 msgstr ""
9673
9674 # type: textblock
9675 #: ../src/guestfs-actions.pod:3306
9676 msgid ""
9677 "B<Important note:> When you use this call, the filesystem options C<sync> "
9678 "and C<noatime> are set implicitly.  This was originally done because we "
9679 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9680 "very large negative performance impact and negligible effect on "
9681 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9682 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9683 "(use an empty string for the first parameter if you don't want any options)."
9684 msgstr ""
9685
9686 # type: =head2
9687 #: ../src/guestfs-actions.pod:3318
9688 msgid "guestfs_mount_loop"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #: ../src/guestfs-actions.pod:3320
9693 #, no-wrap
9694 msgid ""
9695 " int guestfs_mount_loop (guestfs_h *g,\n"
9696 "\t\tconst char *file,\n"
9697 "\t\tconst char *mountpoint);\n"
9698 "\n"
9699 msgstr ""
9700
9701 # type: textblock
9702 #: ../src/guestfs-actions.pod:3324 ../fish/guestfish-actions.pod:2571
9703 msgid ""
9704 "This command lets you mount C<file> (a filesystem image in a file) on a "
9705 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9706 "mountpoint>."
9707 msgstr ""
9708
9709 # type: =head2
9710 #: ../src/guestfs-actions.pod:3330
9711 msgid "guestfs_mount_options"
9712 msgstr ""
9713
9714 # type: verbatim
9715 #: ../src/guestfs-actions.pod:3332
9716 #, no-wrap
9717 msgid ""
9718 " int guestfs_mount_options (guestfs_h *g,\n"
9719 "\t\tconst char *options,\n"
9720 "\t\tconst char *device,\n"
9721 "\t\tconst char *mountpoint);\n"
9722 "\n"
9723 msgstr ""
9724
9725 # type: textblock
9726 #: ../src/guestfs-actions.pod:3337
9727 msgid ""
9728 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9729 "the mount options as for the L<mount(8)> I<-o> flag."
9730 msgstr ""
9731
9732 # type: textblock
9733 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2583
9734 msgid ""
9735 "If the C<options> parameter is an empty string, then no options are passed "
9736 "(all options default to whatever the filesystem uses)."
9737 msgstr ""
9738
9739 # type: =head2
9740 #: ../src/guestfs-actions.pod:3347
9741 msgid "guestfs_mount_ro"
9742 msgstr ""
9743
9744 # type: verbatim
9745 #: ../src/guestfs-actions.pod:3349
9746 #, no-wrap
9747 msgid ""
9748 " int guestfs_mount_ro (guestfs_h *g,\n"
9749 "\t\tconst char *device,\n"
9750 "\t\tconst char *mountpoint);\n"
9751 "\n"
9752 msgstr ""
9753
9754 # type: textblock
9755 #: ../src/guestfs-actions.pod:3353
9756 msgid ""
9757 "This is the same as the C<guestfs_mount> command, but it mounts the "
9758 "filesystem with the read-only (I<-o ro>) flag."
9759 msgstr ""
9760
9761 # type: =head2
9762 #: ../src/guestfs-actions.pod:3358
9763 msgid "guestfs_mount_vfs"
9764 msgstr ""
9765
9766 # type: verbatim
9767 #: ../src/guestfs-actions.pod:3360
9768 #, no-wrap
9769 msgid ""
9770 " int guestfs_mount_vfs (guestfs_h *g,\n"
9771 "\t\tconst char *options,\n"
9772 "\t\tconst char *vfstype,\n"
9773 "\t\tconst char *device,\n"
9774 "\t\tconst char *mountpoint);\n"
9775 "\n"
9776 msgstr ""
9777
9778 # type: textblock
9779 #: ../src/guestfs-actions.pod:3366
9780 msgid ""
9781 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9782 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
9783 "t> flags."
9784 msgstr ""
9785
9786 # type: =head2
9787 #: ../src/guestfs-actions.pod:3372
9788 msgid "guestfs_mountpoints"
9789 msgstr ""
9790
9791 # type: verbatim
9792 #: ../src/guestfs-actions.pod:3374
9793 #, no-wrap
9794 msgid ""
9795 " char **guestfs_mountpoints (guestfs_h *g);\n"
9796 "\n"
9797 msgstr ""
9798
9799 # type: textblock
9800 #: ../src/guestfs-actions.pod:3376
9801 msgid ""
9802 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9803 "devices.  This one returns a hash table (map) of device name to directory "
9804 "where the device is mounted."
9805 msgstr ""
9806
9807 # type: =head2
9808 #: ../src/guestfs-actions.pod:3386
9809 msgid "guestfs_mounts"
9810 msgstr ""
9811
9812 # type: verbatim
9813 #: ../src/guestfs-actions.pod:3388
9814 #, no-wrap
9815 msgid ""
9816 " char **guestfs_mounts (guestfs_h *g);\n"
9817 "\n"
9818 msgstr ""
9819
9820 # type: textblock
9821 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2614
9822 msgid ""
9823 "This returns the list of currently mounted filesystems.  It returns the list "
9824 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9825 msgstr ""
9826
9827 # type: textblock
9828 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2617
9829 msgid "Some internal mounts are not shown."
9830 msgstr ""
9831
9832 # type: textblock
9833 #: ../src/guestfs-actions.pod:3395
9834 msgid "See also: C<guestfs_mountpoints>"
9835 msgstr ""
9836
9837 # type: =head2
9838 #: ../src/guestfs-actions.pod:3401
9839 msgid "guestfs_mv"
9840 msgstr ""
9841
9842 # type: verbatim
9843 #: ../src/guestfs-actions.pod:3403
9844 #, no-wrap
9845 msgid ""
9846 " int guestfs_mv (guestfs_h *g,\n"
9847 "\t\tconst char *src,\n"
9848 "\t\tconst char *dest);\n"
9849 "\n"
9850 msgstr ""
9851
9852 # type: textblock
9853 #: ../src/guestfs-actions.pod:3407 ../fish/guestfish-actions.pod:2625
9854 msgid ""
9855 "This moves a file from C<src> to C<dest> where C<dest> is either a "
9856 "destination filename or destination directory."
9857 msgstr ""
9858
9859 # type: =head2
9860 #: ../src/guestfs-actions.pod:3412
9861 msgid "guestfs_ntfs_3g_probe"
9862 msgstr ""
9863
9864 # type: verbatim
9865 #: ../src/guestfs-actions.pod:3414
9866 #, no-wrap
9867 msgid ""
9868 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
9869 "\t\tint rw,\n"
9870 "\t\tconst char *device);\n"
9871 "\n"
9872 msgstr ""
9873
9874 # type: textblock
9875 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2632
9876 msgid ""
9877 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
9878 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
9879 "write, and some cannot be mounted at all)."
9880 msgstr ""
9881
9882 # type: textblock
9883 #: ../src/guestfs-actions.pod:3422 ../fish/guestfish-actions.pod:2636
9884 msgid ""
9885 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
9886 "can be mounted read-write.  Set it to false if you want to test if the "
9887 "volume can be mounted read-only."
9888 msgstr ""
9889
9890 # type: textblock
9891 #: ../src/guestfs-actions.pod:3426 ../fish/guestfish-actions.pod:2640
9892 msgid ""
9893 "The return value is an integer which C<0> if the operation would succeed, or "
9894 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
9895 msgstr ""
9896
9897 # type: =head2
9898 #: ../src/guestfs-actions.pod:3432
9899 msgid "guestfs_ntfsresize"
9900 msgstr ""
9901
9902 # type: verbatim
9903 #: ../src/guestfs-actions.pod:3434
9904 #, no-wrap
9905 msgid ""
9906 " int guestfs_ntfsresize (guestfs_h *g,\n"
9907 "\t\tconst char *device);\n"
9908 "\n"
9909 msgstr ""
9910
9911 # type: textblock
9912 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2648
9913 msgid ""
9914 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
9915 "size of the underlying device.  See also L<ntfsresize(8)>."
9916 msgstr ""
9917
9918 # type: =head2
9919 #: ../src/guestfs-actions.pod:3443
9920 msgid "guestfs_ntfsresize_size"
9921 msgstr ""
9922
9923 # type: verbatim
9924 #: ../src/guestfs-actions.pod:3445
9925 #, no-wrap
9926 msgid ""
9927 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
9928 "\t\tconst char *device,\n"
9929 "\t\tint64_t size);\n"
9930 "\n"
9931 msgstr ""
9932
9933 # type: textblock
9934 #: ../src/guestfs-actions.pod:3449
9935 msgid ""
9936 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
9937 "to specify the new size (in bytes) explicitly."
9938 msgstr ""
9939
9940 # type: =head2
9941 #: ../src/guestfs-actions.pod:3454
9942 msgid "guestfs_part_add"
9943 msgstr ""
9944
9945 # type: verbatim
9946 #: ../src/guestfs-actions.pod:3456
9947 #, no-wrap
9948 msgid ""
9949 " int guestfs_part_add (guestfs_h *g,\n"
9950 "\t\tconst char *device,\n"
9951 "\t\tconst char *prlogex,\n"
9952 "\t\tint64_t startsect,\n"
9953 "\t\tint64_t endsect);\n"
9954 "\n"
9955 msgstr ""
9956
9957 # type: textblock
9958 #: ../src/guestfs-actions.pod:3462
9959 msgid ""
9960 "This command adds a partition to C<device>.  If there is no partition table "
9961 "on the device, call C<guestfs_part_init> first."
9962 msgstr ""
9963
9964 # type: textblock
9965 #: ../src/guestfs-actions.pod:3465 ../fish/guestfish-actions.pod:2666
9966 msgid ""
9967 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
9968 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
9969 "C<logical>) and C<e> (or C<extended>) partition types."
9970 msgstr ""
9971
9972 # type: textblock
9973 #: ../src/guestfs-actions.pod:3470 ../fish/guestfish-actions.pod:2671
9974 msgid ""
9975 "C<startsect> and C<endsect> are the start and end of the partition in "
9976 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
9977 "from the end of the disk (C<-1> is the last sector)."
9978 msgstr ""
9979
9980 # type: textblock
9981 #: ../src/guestfs-actions.pod:3474
9982 msgid ""
9983 "Creating a partition which covers the whole disk is not so easy.  Use "
9984 "C<guestfs_part_disk> to do that."
9985 msgstr ""
9986
9987 # type: =head2
9988 #: ../src/guestfs-actions.pod:3479
9989 msgid "guestfs_part_del"
9990 msgstr ""
9991
9992 # type: verbatim
9993 #: ../src/guestfs-actions.pod:3481
9994 #, no-wrap
9995 msgid ""
9996 " int guestfs_part_del (guestfs_h *g,\n"
9997 "\t\tconst char *device,\n"
9998 "\t\tint partnum);\n"
9999 "\n"
10000 msgstr ""
10001
10002 # type: textblock
10003 #: ../src/guestfs-actions.pod:3485 ../fish/guestfish-actions.pod:2682
10004 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10005 msgstr ""
10006
10007 # type: textblock
10008 #: ../src/guestfs-actions.pod:3487 ../fish/guestfish-actions.pod:2684
10009 msgid ""
10010 "Note that in the case of MBR partitioning, deleting an extended partition "
10011 "also deletes any logical partitions it contains."
10012 msgstr ""
10013
10014 # type: =head2
10015 #: ../src/guestfs-actions.pod:3493
10016 msgid "guestfs_part_disk"
10017 msgstr ""
10018
10019 # type: verbatim
10020 #: ../src/guestfs-actions.pod:3495
10021 #, no-wrap
10022 msgid ""
10023 " int guestfs_part_disk (guestfs_h *g,\n"
10024 "\t\tconst char *device,\n"
10025 "\t\tconst char *parttype);\n"
10026 "\n"
10027 msgstr ""
10028
10029 # type: textblock
10030 #: ../src/guestfs-actions.pod:3499
10031 msgid ""
10032 "This command is simply a combination of C<guestfs_part_init> followed by "
10033 "C<guestfs_part_add> to create a single primary partition covering the whole "
10034 "disk."
10035 msgstr ""
10036
10037 # type: textblock
10038 #: ../src/guestfs-actions.pod:3503
10039 msgid ""
10040 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10041 "possible values are described in C<guestfs_part_init>."
10042 msgstr ""
10043
10044 # type: =head2
10045 #: ../src/guestfs-actions.pod:3511
10046 msgid "guestfs_part_get_bootable"
10047 msgstr ""
10048
10049 # type: verbatim
10050 #: ../src/guestfs-actions.pod:3513
10051 #, no-wrap
10052 msgid ""
10053 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10054 "\t\tconst char *device,\n"
10055 "\t\tint partnum);\n"
10056 "\n"
10057 msgstr ""
10058
10059 # type: textblock
10060 #: ../src/guestfs-actions.pod:3517 ../fish/guestfish-actions.pod:2706
10061 msgid ""
10062 "This command returns true if the partition C<partnum> on C<device> has the "
10063 "bootable flag set."
10064 msgstr ""
10065
10066 # type: textblock
10067 #: ../src/guestfs-actions.pod:3520
10068 msgid "See also C<guestfs_part_set_bootable>."
10069 msgstr ""
10070
10071 # type: =head2
10072 #: ../src/guestfs-actions.pod:3524
10073 msgid "guestfs_part_get_mbr_id"
10074 msgstr ""
10075
10076 # type: verbatim
10077 #: ../src/guestfs-actions.pod:3526
10078 #, no-wrap
10079 msgid ""
10080 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10081 "\t\tconst char *device,\n"
10082 "\t\tint partnum);\n"
10083 "\n"
10084 msgstr ""
10085
10086 # type: textblock
10087 #: ../src/guestfs-actions.pod:3530 ../fish/guestfish-actions.pod:2715
10088 msgid ""
10089 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10090 "partition C<partnum>."
10091 msgstr ""
10092
10093 # type: textblock
10094 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:3695
10095 msgid ""
10096 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10097 "undefined results for other partition table types (see "
10098 "C<guestfs_part_get_parttype>)."
10099 msgstr ""
10100
10101 # type: =head2
10102 #: ../src/guestfs-actions.pod:3539
10103 msgid "guestfs_part_get_parttype"
10104 msgstr ""
10105
10106 # type: verbatim
10107 #: ../src/guestfs-actions.pod:3541
10108 #, no-wrap
10109 msgid ""
10110 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10111 "\t\tconst char *device);\n"
10112 "\n"
10113 msgstr ""
10114
10115 # type: textblock
10116 #: ../src/guestfs-actions.pod:3544 ../fish/guestfish-actions.pod:2726
10117 msgid ""
10118 "This command examines the partition table on C<device> and returns the "
10119 "partition table type (format) being used."
10120 msgstr ""
10121
10122 # type: textblock
10123 #: ../src/guestfs-actions.pod:3547
10124 msgid ""
10125 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10126 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10127 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10128 msgstr ""
10129
10130 # type: =head2
10131 #: ../src/guestfs-actions.pod:3555
10132 msgid "guestfs_part_init"
10133 msgstr ""
10134
10135 # type: verbatim
10136 #: ../src/guestfs-actions.pod:3557
10137 #, no-wrap
10138 msgid ""
10139 " int guestfs_part_init (guestfs_h *g,\n"
10140 "\t\tconst char *device,\n"
10141 "\t\tconst char *parttype);\n"
10142 "\n"
10143 msgstr ""
10144
10145 # type: textblock
10146 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2738
10147 msgid ""
10148 "This creates an empty partition table on C<device> of one of the partition "
10149 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10150 "(for large disks)."
10151 msgstr ""
10152
10153 # type: textblock
10154 #: ../src/guestfs-actions.pod:3565
10155 msgid ""
10156 "Initially there are no partitions.  Following this, you should call "
10157 "C<guestfs_part_add> for each partition required."
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3568 ../fish/guestfish-actions.pod:2745
10162 msgid "Possible values for C<parttype> are:"
10163 msgstr ""
10164
10165 # type: =item
10166 #: ../src/guestfs-actions.pod:3572 ../fish/guestfish-actions.pod:2749
10167 msgid "B<efi> | B<gpt>"
10168 msgstr ""
10169
10170 # type: textblock
10171 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2751
10172 msgid "Intel EFI / GPT partition table."
10173 msgstr ""
10174
10175 # type: textblock
10176 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2753
10177 msgid ""
10178 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10179 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10180 "the C<mbr> format."
10181 msgstr ""
10182
10183 # type: =item
10184 #: ../src/guestfs-actions.pod:3580 ../fish/guestfish-actions.pod:2757
10185 msgid "B<mbr> | B<msdos>"
10186 msgstr ""
10187
10188 # type: textblock
10189 #: ../src/guestfs-actions.pod:3582 ../fish/guestfish-actions.pod:2759
10190 msgid ""
10191 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10192 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10193 "TB.  For large disks we recommend using C<gpt>."
10194 msgstr ""
10195
10196 # type: textblock
10197 #: ../src/guestfs-actions.pod:3589 ../fish/guestfish-actions.pod:2766
10198 msgid ""
10199 "Other partition table types that may work but are not supported include:"
10200 msgstr ""
10201
10202 # type: =item
10203 #: ../src/guestfs-actions.pod:3594 ../fish/guestfish-actions.pod:2771
10204 msgid "B<aix>"
10205 msgstr ""
10206
10207 # type: textblock
10208 #: ../src/guestfs-actions.pod:3596 ../fish/guestfish-actions.pod:2773
10209 msgid "AIX disk labels."
10210 msgstr ""
10211
10212 # type: =item
10213 #: ../src/guestfs-actions.pod:3598 ../fish/guestfish-actions.pod:2775
10214 msgid "B<amiga> | B<rdb>"
10215 msgstr ""
10216
10217 # type: textblock
10218 #: ../src/guestfs-actions.pod:3600 ../fish/guestfish-actions.pod:2777
10219 msgid "Amiga \"Rigid Disk Block\" format."
10220 msgstr ""
10221
10222 # type: =item
10223 #: ../src/guestfs-actions.pod:3602 ../fish/guestfish-actions.pod:2779
10224 msgid "B<bsd>"
10225 msgstr ""
10226
10227 # type: textblock
10228 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2781
10229 msgid "BSD disk labels."
10230 msgstr ""
10231
10232 # type: =item
10233 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2783
10234 msgid "B<dasd>"
10235 msgstr ""
10236
10237 # type: textblock
10238 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2785
10239 msgid "DASD, used on IBM mainframes."
10240 msgstr ""
10241
10242 # type: =item
10243 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2787
10244 msgid "B<dvh>"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3612 ../fish/guestfish-actions.pod:2789
10249 msgid "MIPS/SGI volumes."
10250 msgstr ""
10251
10252 # type: =item
10253 #: ../src/guestfs-actions.pod:3614 ../fish/guestfish-actions.pod:2791
10254 msgid "B<mac>"
10255 msgstr ""
10256
10257 # type: textblock
10258 #: ../src/guestfs-actions.pod:3616 ../fish/guestfish-actions.pod:2793
10259 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10260 msgstr ""
10261
10262 # type: =item
10263 #: ../src/guestfs-actions.pod:3618 ../fish/guestfish-actions.pod:2795
10264 msgid "B<pc98>"
10265 msgstr ""
10266
10267 # type: textblock
10268 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2797
10269 msgid "NEC PC-98 format, common in Japan apparently."
10270 msgstr ""
10271
10272 # type: =item
10273 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2799
10274 msgid "B<sun>"
10275 msgstr ""
10276
10277 # type: textblock
10278 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:2801
10279 msgid "Sun disk labels."
10280 msgstr ""
10281
10282 # type: =head2
10283 #: ../src/guestfs-actions.pod:3630
10284 msgid "guestfs_part_list"
10285 msgstr ""
10286
10287 # type: verbatim
10288 #: ../src/guestfs-actions.pod:3632
10289 #, no-wrap
10290 msgid ""
10291 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10292 "\t\tconst char *device);\n"
10293 "\n"
10294 msgstr ""
10295
10296 # type: textblock
10297 #: ../src/guestfs-actions.pod:3635 ../fish/guestfish-actions.pod:2809
10298 msgid ""
10299 "This command parses the partition table on C<device> and returns the list of "
10300 "partitions found."
10301 msgstr ""
10302
10303 # type: textblock
10304 #: ../src/guestfs-actions.pod:3638 ../fish/guestfish-actions.pod:2812
10305 msgid "The fields in the returned structure are:"
10306 msgstr ""
10307
10308 # type: =item
10309 #: ../src/guestfs-actions.pod:3642 ../fish/guestfish-actions.pod:2816
10310 msgid "B<part_num>"
10311 msgstr ""
10312
10313 # type: textblock
10314 #: ../src/guestfs-actions.pod:3644 ../fish/guestfish-actions.pod:2818
10315 msgid "Partition number, counting from 1."
10316 msgstr ""
10317
10318 # type: =item
10319 #: ../src/guestfs-actions.pod:3646 ../fish/guestfish-actions.pod:2820
10320 msgid "B<part_start>"
10321 msgstr ""
10322
10323 # type: textblock
10324 #: ../src/guestfs-actions.pod:3648
10325 msgid ""
10326 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10327 "the device's sector size, see C<guestfs_blockdev_getss>."
10328 msgstr ""
10329
10330 # type: =item
10331 #: ../src/guestfs-actions.pod:3651 ../fish/guestfish-actions.pod:2825
10332 msgid "B<part_end>"
10333 msgstr ""
10334
10335 # type: textblock
10336 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2827
10337 msgid "End of the partition in bytes."
10338 msgstr ""
10339
10340 # type: =item
10341 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2829
10342 msgid "B<part_size>"
10343 msgstr ""
10344
10345 # type: textblock
10346 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2831
10347 msgid "Size of the partition in bytes."
10348 msgstr ""
10349
10350 # type: textblock
10351 #: ../src/guestfs-actions.pod:3661
10352 msgid ""
10353 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
10354 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10355 "C<guestfs_free_partition_list> after use>."
10356 msgstr ""
10357
10358 # type: =head2
10359 #: ../src/guestfs-actions.pod:3666
10360 msgid "guestfs_part_set_bootable"
10361 msgstr ""
10362
10363 # type: verbatim
10364 #: ../src/guestfs-actions.pod:3668
10365 #, no-wrap
10366 msgid ""
10367 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10368 "\t\tconst char *device,\n"
10369 "\t\tint partnum,\n"
10370 "\t\tint bootable);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2839
10376 msgid ""
10377 "This sets the bootable flag on partition numbered C<partnum> on device "
10378 "C<device>.  Note that partitions are numbered from 1."
10379 msgstr ""
10380
10381 # type: textblock
10382 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2842
10383 msgid ""
10384 "The bootable flag is used by some operating systems (notably Windows) to "
10385 "determine which partition to boot from.  It is by no means universally "
10386 "recognized."
10387 msgstr ""
10388
10389 # type: =head2
10390 #: ../src/guestfs-actions.pod:3682
10391 msgid "guestfs_part_set_mbr_id"
10392 msgstr ""
10393
10394 # type: verbatim
10395 #: ../src/guestfs-actions.pod:3684
10396 #, no-wrap
10397 msgid ""
10398 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10399 "\t\tconst char *device,\n"
10400 "\t\tint partnum,\n"
10401 "\t\tint idbyte);\n"
10402 "\n"
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3689 ../fish/guestfish-actions.pod:2850
10407 msgid ""
10408 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10409 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10410 "documentation are in fact hexadecimal numbers, but usually documented "
10411 "without any leading \"0x\" which might be confusing."
10412 msgstr ""
10413
10414 # type: =head2
10415 #: ../src/guestfs-actions.pod:3701
10416 msgid "guestfs_part_set_name"
10417 msgstr ""
10418
10419 # type: verbatim
10420 #: ../src/guestfs-actions.pod:3703
10421 #, no-wrap
10422 msgid ""
10423 " int guestfs_part_set_name (guestfs_h *g,\n"
10424 "\t\tconst char *device,\n"
10425 "\t\tint partnum,\n"
10426 "\t\tconst char *name);\n"
10427 "\n"
10428 msgstr ""
10429
10430 # type: textblock
10431 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2864
10432 msgid ""
10433 "This sets the partition name on partition numbered C<partnum> on device "
10434 "C<device>.  Note that partitions are numbered from 1."
10435 msgstr ""
10436
10437 # type: textblock
10438 #: ../src/guestfs-actions.pod:3711 ../fish/guestfish-actions.pod:2867
10439 msgid ""
10440 "The partition name can only be set on certain types of partition table.  "
10441 "This works on C<gpt> but not on C<mbr> partitions."
10442 msgstr ""
10443
10444 # type: =head2
10445 #: ../src/guestfs-actions.pod:3716
10446 msgid "guestfs_ping_daemon"
10447 msgstr ""
10448
10449 # type: verbatim
10450 #: ../src/guestfs-actions.pod:3718
10451 #, no-wrap
10452 msgid ""
10453 " int guestfs_ping_daemon (guestfs_h *g);\n"
10454 "\n"
10455 msgstr ""
10456
10457 # type: textblock
10458 #: ../src/guestfs-actions.pod:3720 ../fish/guestfish-actions.pod:2874
10459 msgid ""
10460 "This is a test probe into the guestfs daemon running inside the qemu "
10461 "subprocess.  Calling this function checks that the daemon responds to the "
10462 "ping message, without affecting the daemon or attached block device(s) in "
10463 "any other way."
10464 msgstr ""
10465
10466 # type: =head2
10467 #: ../src/guestfs-actions.pod:3727
10468 msgid "guestfs_pread"
10469 msgstr ""
10470
10471 # type: verbatim
10472 #: ../src/guestfs-actions.pod:3729
10473 #, no-wrap
10474 msgid ""
10475 " char *guestfs_pread (guestfs_h *g,\n"
10476 "\t\tconst char *path,\n"
10477 "\t\tint count,\n"
10478 "\t\tint64_t offset,\n"
10479 "\t\tsize_t *size_r);\n"
10480 "\n"
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2883
10485 msgid ""
10486 "This command lets you read part of a file.  It reads C<count> bytes of the "
10487 "file, starting at C<offset>, from file C<path>."
10488 msgstr ""
10489
10490 # type: textblock
10491 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2886
10492 msgid ""
10493 "This may read fewer bytes than requested.  For further details see the "
10494 "L<pread(2)> system call."
10495 msgstr ""
10496
10497 # type: textblock
10498 #: ../src/guestfs-actions.pod:3741
10499 msgid "See also C<guestfs_pwrite>."
10500 msgstr ""
10501
10502 # type: =head2
10503 #: ../src/guestfs-actions.pod:3750
10504 msgid "guestfs_pvcreate"
10505 msgstr ""
10506
10507 # type: verbatim
10508 #: ../src/guestfs-actions.pod:3752
10509 #, no-wrap
10510 msgid ""
10511 " int guestfs_pvcreate (guestfs_h *g,\n"
10512 "\t\tconst char *device);\n"
10513 "\n"
10514 msgstr ""
10515
10516 # type: textblock
10517 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2898
10518 msgid ""
10519 "This creates an LVM physical volume on the named C<device>, where C<device> "
10520 "should usually be a partition name such as C</dev/sda1>."
10521 msgstr ""
10522
10523 # type: =head2
10524 #: ../src/guestfs-actions.pod:3761
10525 msgid "guestfs_pvremove"
10526 msgstr ""
10527
10528 # type: verbatim
10529 #: ../src/guestfs-actions.pod:3763
10530 #, no-wrap
10531 msgid ""
10532 " int guestfs_pvremove (guestfs_h *g,\n"
10533 "\t\tconst char *device);\n"
10534 "\n"
10535 msgstr ""
10536
10537 # type: textblock
10538 #: ../src/guestfs-actions.pod:3766 ../fish/guestfish-actions.pod:2906
10539 msgid ""
10540 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10541 "it."
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2909
10546 msgid ""
10547 "The implementation uses the C<pvremove> command which refuses to wipe "
10548 "physical volumes that contain any volume groups, so you have to remove those "
10549 "first."
10550 msgstr ""
10551
10552 # type: =head2
10553 #: ../src/guestfs-actions.pod:3775
10554 msgid "guestfs_pvresize"
10555 msgstr ""
10556
10557 # type: verbatim
10558 #: ../src/guestfs-actions.pod:3777
10559 #, no-wrap
10560 msgid ""
10561 " int guestfs_pvresize (guestfs_h *g,\n"
10562 "\t\tconst char *device);\n"
10563 "\n"
10564 msgstr ""
10565
10566 # type: textblock
10567 #: ../src/guestfs-actions.pod:3780 ../fish/guestfish-actions.pod:2917
10568 msgid ""
10569 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10570 "the new size of the underlying device."
10571 msgstr ""
10572
10573 # type: =head2
10574 #: ../src/guestfs-actions.pod:3785
10575 msgid "guestfs_pvresize_size"
10576 msgstr ""
10577
10578 # type: verbatim
10579 #: ../src/guestfs-actions.pod:3787
10580 #, no-wrap
10581 msgid ""
10582 " int guestfs_pvresize_size (guestfs_h *g,\n"
10583 "\t\tconst char *device,\n"
10584 "\t\tint64_t size);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3791
10590 msgid ""
10591 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10592 "specify the new size (in bytes) explicitly."
10593 msgstr ""
10594
10595 # type: =head2
10596 #: ../src/guestfs-actions.pod:3796
10597 msgid "guestfs_pvs"
10598 msgstr ""
10599
10600 # type: verbatim
10601 #: ../src/guestfs-actions.pod:3798
10602 #, no-wrap
10603 msgid ""
10604 " char **guestfs_pvs (guestfs_h *g);\n"
10605 "\n"
10606 msgstr ""
10607
10608 # type: textblock
10609 #: ../src/guestfs-actions.pod:3800 ../fish/guestfish-actions.pod:2931
10610 msgid ""
10611 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
10612 "(8)> command."
10613 msgstr ""
10614
10615 # type: textblock
10616 #: ../src/guestfs-actions.pod:3803 ../fish/guestfish-actions.pod:2934
10617 msgid ""
10618 "This returns a list of just the device names that contain PVs (eg. C</dev/"
10619 "sda2>)."
10620 msgstr ""
10621
10622 # type: textblock
10623 #: ../src/guestfs-actions.pod:3806
10624 msgid "See also C<guestfs_pvs_full>."
10625 msgstr ""
10626
10627 # type: =head2
10628 #: ../src/guestfs-actions.pod:3812
10629 msgid "guestfs_pvs_full"
10630 msgstr ""
10631
10632 # type: verbatim
10633 #: ../src/guestfs-actions.pod:3814
10634 #, no-wrap
10635 msgid ""
10636 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10637 "\n"
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3816 ../fish/guestfish-actions.pod:2943
10642 msgid ""
10643 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
10644 "(8)> command.  The \"full\" version includes all fields."
10645 msgstr ""
10646
10647 # type: textblock
10648 #: ../src/guestfs-actions.pod:3819
10649 msgid ""
10650 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
10651 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10652 "C<guestfs_free_lvm_pv_list> after use>."
10653 msgstr ""
10654
10655 # type: =head2
10656 #: ../src/guestfs-actions.pod:3824
10657 msgid "guestfs_pvuuid"
10658 msgstr ""
10659
10660 # type: verbatim
10661 #: ../src/guestfs-actions.pod:3826
10662 #, no-wrap
10663 msgid ""
10664 " char *guestfs_pvuuid (guestfs_h *g,\n"
10665 "\t\tconst char *device);\n"
10666 "\n"
10667 msgstr ""
10668
10669 # type: textblock
10670 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2950
10671 msgid "This command returns the UUID of the LVM PV C<device>."
10672 msgstr ""
10673
10674 # type: =head2
10675 #: ../src/guestfs-actions.pod:3834
10676 msgid "guestfs_pwrite"
10677 msgstr ""
10678
10679 # type: verbatim
10680 #: ../src/guestfs-actions.pod:3836
10681 #, no-wrap
10682 msgid ""
10683 " int guestfs_pwrite (guestfs_h *g,\n"
10684 "\t\tconst char *path,\n"
10685 "\t\tconst char *content,\n"
10686 "\t\tsize_t content_size,\n"
10687 "\t\tint64_t offset);\n"
10688 "\n"
10689 msgstr ""
10690
10691 # type: textblock
10692 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2956
10693 msgid ""
10694 "This command writes to part of a file.  It writes the data buffer C<content> "
10695 "to the file C<path> starting at offset C<offset>."
10696 msgstr ""
10697
10698 # type: textblock
10699 #: ../src/guestfs-actions.pod:3845 ../fish/guestfish-actions.pod:2959
10700 msgid ""
10701 "This command implements the L<pwrite(2)> system call, and like that system "
10702 "call it may not write the full data requested.  The return value is the "
10703 "number of bytes that were actually written to the file.  This could even be "
10704 "0, although short writes are unlikely for regular files in ordinary "
10705 "circumstances."
10706 msgstr ""
10707
10708 # type: textblock
10709 #: ../src/guestfs-actions.pod:3851
10710 msgid "See also C<guestfs_pread>."
10711 msgstr ""
10712
10713 # type: =head2
10714 #: ../src/guestfs-actions.pod:3858
10715 msgid "guestfs_read_file"
10716 msgstr ""
10717
10718 # type: verbatim
10719 #: ../src/guestfs-actions.pod:3860
10720 #, no-wrap
10721 msgid ""
10722 " char *guestfs_read_file (guestfs_h *g,\n"
10723 "\t\tconst char *path,\n"
10724 "\t\tsize_t *size_r);\n"
10725 "\n"
10726 msgstr ""
10727
10728 # type: textblock
10729 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2974
10730 msgid "This calls returns the contents of the file C<path> as a buffer."
10731 msgstr ""
10732
10733 # type: textblock
10734 #: ../src/guestfs-actions.pod:3867
10735 msgid ""
10736 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10737 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10738 "function is limited in the total size of file that can be handled."
10739 msgstr ""
10740
10741 # type: =head2
10742 #: ../src/guestfs-actions.pod:3879
10743 msgid "guestfs_read_lines"
10744 msgstr ""
10745
10746 # type: verbatim
10747 #: ../src/guestfs-actions.pod:3881
10748 #, no-wrap
10749 msgid ""
10750 " char **guestfs_read_lines (guestfs_h *g,\n"
10751 "\t\tconst char *path);\n"
10752 "\n"
10753 msgstr ""
10754
10755 # type: textblock
10756 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2991
10757 msgid ""
10758 "The file contents are returned as a list of lines.  Trailing C<LF> and "
10759 "C<CRLF> character sequences are I<not> returned."
10760 msgstr ""
10761
10762 # type: textblock
10763 #: ../src/guestfs-actions.pod:3889
10764 msgid ""
10765 "Note that this function cannot correctly handle binary files (specifically, "
10766 "files containing C<\\0> character which is treated as end of line).  For "
10767 "those you need to use the C<guestfs_read_file> function which has a more "
10768 "complex interface."
10769 msgstr ""
10770
10771 # type: =head2
10772 #: ../src/guestfs-actions.pod:3898
10773 msgid "guestfs_readdir"
10774 msgstr ""
10775
10776 # type: verbatim
10777 #: ../src/guestfs-actions.pod:3900
10778 #, no-wrap
10779 msgid ""
10780 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
10781 "\t\tconst char *dir);\n"
10782 "\n"
10783 msgstr ""
10784
10785 # type: textblock
10786 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:3003
10787 msgid "This returns the list of directory entries in directory C<dir>."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3905 ../fish/guestfish-actions.pod:3005
10792 msgid ""
10793 "All entries in the directory are returned, including C<.> and C<..>.  The "
10794 "entries are I<not> sorted, but returned in the same order as the underlying "
10795 "filesystem."
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3909 ../fish/guestfish-actions.pod:3009
10800 msgid ""
10801 "Also this call returns basic file type information about each file.  The "
10802 "C<ftyp> field will contain one of the following characters:"
10803 msgstr ""
10804
10805 # type: =item
10806 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:3014
10807 msgid "'b'"
10808 msgstr ""
10809
10810 # type: textblock
10811 #: ../src/guestfs-actions.pod:3916 ../fish/guestfish-actions.pod:3016
10812 msgid "Block special"
10813 msgstr ""
10814
10815 # type: =item
10816 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:3018
10817 msgid "'c'"
10818 msgstr ""
10819
10820 # type: textblock
10821 #: ../src/guestfs-actions.pod:3920 ../fish/guestfish-actions.pod:3020
10822 msgid "Char special"
10823 msgstr ""
10824
10825 # type: =item
10826 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:3022
10827 msgid "'d'"
10828 msgstr ""
10829
10830 # type: textblock
10831 #: ../src/guestfs-actions.pod:3924 ../fish/guestfish-actions.pod:3024
10832 msgid "Directory"
10833 msgstr ""
10834
10835 # type: =item
10836 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:3026
10837 msgid "'f'"
10838 msgstr ""
10839
10840 # type: textblock
10841 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:3028
10842 msgid "FIFO (named pipe)"
10843 msgstr ""
10844
10845 # type: =item
10846 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:3030
10847 msgid "'l'"
10848 msgstr ""
10849
10850 # type: textblock
10851 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:3032
10852 msgid "Symbolic link"
10853 msgstr ""
10854
10855 # type: =item
10856 #: ../src/guestfs-actions.pod:3934 ../fish/guestfish-actions.pod:3034
10857 msgid "'r'"
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:3036
10862 msgid "Regular file"
10863 msgstr ""
10864
10865 # type: =item
10866 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:3038
10867 msgid "'s'"
10868 msgstr ""
10869
10870 # type: textblock
10871 #: ../src/guestfs-actions.pod:3940 ../fish/guestfish-actions.pod:3040
10872 msgid "Socket"
10873 msgstr ""
10874
10875 # type: =item
10876 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:3042
10877 msgid "'u'"
10878 msgstr ""
10879
10880 # type: textblock
10881 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:3044
10882 msgid "Unknown file type"
10883 msgstr ""
10884
10885 # type: =item
10886 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3046
10887 msgid "'?'"
10888 msgstr ""
10889
10890 # type: textblock
10891 #: ../src/guestfs-actions.pod:3948 ../fish/guestfish-actions.pod:3048
10892 msgid ""
10893 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
10894 msgstr ""
10895
10896 # type: textblock
10897 #: ../src/guestfs-actions.pod:3953
10898 msgid ""
10899 "This function is primarily intended for use by programs.  To get a simple "
10900 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
10901 "consumption, use C<guestfs_ll>."
10902 msgstr ""
10903
10904 # type: textblock
10905 #: ../src/guestfs-actions.pod:3957
10906 msgid ""
10907 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
10908 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10909 "C<guestfs_free_dirent_list> after use>."
10910 msgstr ""
10911
10912 # type: =head2
10913 #: ../src/guestfs-actions.pod:3962
10914 msgid "guestfs_readlink"
10915 msgstr ""
10916
10917 # type: verbatim
10918 #: ../src/guestfs-actions.pod:3964
10919 #, no-wrap
10920 msgid ""
10921 " char *guestfs_readlink (guestfs_h *g,\n"
10922 "\t\tconst char *path);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #: ../src/guestfs-actions.pod:3967 ../fish/guestfish-actions.pod:3061
10928 msgid "This command reads the target of a symbolic link."
10929 msgstr ""
10930
10931 # type: =head2
10932 #: ../src/guestfs-actions.pod:3972
10933 msgid "guestfs_readlinklist"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #: ../src/guestfs-actions.pod:3974
10938 #, no-wrap
10939 msgid ""
10940 " char **guestfs_readlinklist (guestfs_h *g,\n"
10941 "\t\tconst char *path,\n"
10942 "\t\tchar *const *names);\n"
10943 "\n"
10944 msgstr ""
10945
10946 # type: textblock
10947 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:3067
10948 msgid ""
10949 "This call allows you to do a C<readlink> operation on multiple files, where "
10950 "all files are in the directory C<path>.  C<names> is the list of files from "
10951 "this directory."
10952 msgstr ""
10953
10954 # type: textblock
10955 #: ../src/guestfs-actions.pod:3982 ../fish/guestfish-actions.pod:3071
10956 msgid ""
10957 "On return you get a list of strings, with a one-to-one correspondence to the "
10958 "C<names> list.  Each string is the value of the symbolic link."
10959 msgstr ""
10960
10961 # type: textblock
10962 #: ../src/guestfs-actions.pod:3986 ../fish/guestfish-actions.pod:3075
10963 msgid ""
10964 "If the C<readlink(2)> operation fails on any name, then the corresponding "
10965 "result string is the empty string C<\"\">.  However the whole operation is "
10966 "completed even if there were C<readlink(2)> errors, and so you can call this "
10967 "function with names where you don't know if they are symbolic links already "
10968 "(albeit slightly less efficient)."
10969 msgstr ""
10970
10971 # type: textblock
10972 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:3082
10973 msgid ""
10974 "This call is intended for programs that want to efficiently list a directory "
10975 "contents without making many round-trips.  Very long directory listings "
10976 "might cause the protocol message size to be exceeded, causing this call to "
10977 "fail.  The caller must split up such requests into smaller groups of names."
10978 msgstr ""
10979
10980 # type: =head2
10981 #: ../src/guestfs-actions.pod:4004
10982 msgid "guestfs_realpath"
10983 msgstr ""
10984
10985 # type: verbatim
10986 #: ../src/guestfs-actions.pod:4006
10987 #, no-wrap
10988 msgid ""
10989 " char *guestfs_realpath (guestfs_h *g,\n"
10990 "\t\tconst char *path);\n"
10991 "\n"
10992 msgstr ""
10993
10994 # type: textblock
10995 #: ../src/guestfs-actions.pod:4009 ../fish/guestfish-actions.pod:3093
10996 msgid ""
10997 "Return the canonicalized absolute pathname of C<path>.  The returned path "
10998 "has no C<.>, C<..> or symbolic link path elements."
10999 msgstr ""
11000
11001 # type: =head2
11002 #: ../src/guestfs-actions.pod:4015
11003 msgid "guestfs_removexattr"
11004 msgstr ""
11005
11006 # type: verbatim
11007 #: ../src/guestfs-actions.pod:4017
11008 #, no-wrap
11009 msgid ""
11010 " int guestfs_removexattr (guestfs_h *g,\n"
11011 "\t\tconst char *xattr,\n"
11012 "\t\tconst char *path);\n"
11013 "\n"
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:3100
11018 msgid ""
11019 "This call removes the extended attribute named C<xattr> of the file C<path>."
11020 msgstr ""
11021
11022 # type: textblock
11023 #: ../src/guestfs-actions.pod:4024
11024 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11025 msgstr ""
11026
11027 # type: =head2
11028 #: ../src/guestfs-actions.pod:4028
11029 msgid "guestfs_resize2fs"
11030 msgstr ""
11031
11032 # type: verbatim
11033 #: ../src/guestfs-actions.pod:4030
11034 #, no-wrap
11035 msgid ""
11036 " int guestfs_resize2fs (guestfs_h *g,\n"
11037 "\t\tconst char *device);\n"
11038 "\n"
11039 msgstr ""
11040
11041 # type: textblock
11042 #: ../src/guestfs-actions.pod:4033 ../fish/guestfish-actions.pod:3109
11043 msgid ""
11044 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11045 "underlying device."
11046 msgstr ""
11047
11048 # type: textblock
11049 #: ../src/guestfs-actions.pod:4036
11050 msgid ""
11051 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11052 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11053 "sometimes gives an error about this and sometimes not.  In any case, it is "
11054 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11055 msgstr ""
11056
11057 # type: =head2
11058 #: ../src/guestfs-actions.pod:4044
11059 msgid "guestfs_resize2fs_size"
11060 msgstr ""
11061
11062 # type: verbatim
11063 #: ../src/guestfs-actions.pod:4046
11064 #, no-wrap
11065 msgid ""
11066 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11067 "\t\tconst char *device,\n"
11068 "\t\tint64_t size);\n"
11069 "\n"
11070 msgstr ""
11071
11072 # type: textblock
11073 #: ../src/guestfs-actions.pod:4050
11074 msgid ""
11075 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11076 "to specify the new size (in bytes) explicitly."
11077 msgstr ""
11078
11079 # type: =head2
11080 #: ../src/guestfs-actions.pod:4055
11081 msgid "guestfs_rm"
11082 msgstr ""
11083
11084 # type: verbatim
11085 #: ../src/guestfs-actions.pod:4057
11086 #, no-wrap
11087 msgid ""
11088 " int guestfs_rm (guestfs_h *g,\n"
11089 "\t\tconst char *path);\n"
11090 "\n"
11091 msgstr ""
11092
11093 # type: textblock
11094 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:3129
11095 msgid "Remove the single file C<path>."
11096 msgstr ""
11097
11098 # type: =head2
11099 #: ../src/guestfs-actions.pod:4064
11100 msgid "guestfs_rm_rf"
11101 msgstr ""
11102
11103 # type: verbatim
11104 #: ../src/guestfs-actions.pod:4066
11105 #, no-wrap
11106 msgid ""
11107 " int guestfs_rm_rf (guestfs_h *g,\n"
11108 "\t\tconst char *path);\n"
11109 "\n"
11110 msgstr ""
11111
11112 # type: textblock
11113 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:3135
11114 msgid ""
11115 "Remove the file or directory C<path>, recursively removing the contents if "
11116 "its a directory.  This is like the C<rm -rf> shell command."
11117 msgstr ""
11118
11119 # type: =head2
11120 #: ../src/guestfs-actions.pod:4075
11121 msgid "guestfs_rmdir"
11122 msgstr ""
11123
11124 # type: verbatim
11125 #: ../src/guestfs-actions.pod:4077
11126 #, no-wrap
11127 msgid ""
11128 " int guestfs_rmdir (guestfs_h *g,\n"
11129 "\t\tconst char *path);\n"
11130 "\n"
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:3143
11135 msgid "Remove the single directory C<path>."
11136 msgstr ""
11137
11138 # type: =head2
11139 #: ../src/guestfs-actions.pod:4084
11140 msgid "guestfs_rmmountpoint"
11141 msgstr ""
11142
11143 # type: verbatim
11144 #: ../src/guestfs-actions.pod:4086
11145 #, no-wrap
11146 msgid ""
11147 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11148 "\t\tconst char *exemptpath);\n"
11149 "\n"
11150 msgstr ""
11151
11152 # type: textblock
11153 #: ../src/guestfs-actions.pod:4089
11154 msgid ""
11155 "This calls removes a mountpoint that was previously created with "
11156 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11157 msgstr ""
11158
11159 # type: =head2
11160 #: ../src/guestfs-actions.pod:4095
11161 msgid "guestfs_scrub_device"
11162 msgstr ""
11163
11164 # type: verbatim
11165 #: ../src/guestfs-actions.pod:4097
11166 #, no-wrap
11167 msgid ""
11168 " int guestfs_scrub_device (guestfs_h *g,\n"
11169 "\t\tconst char *device);\n"
11170 "\n"
11171 msgstr ""
11172
11173 # type: textblock
11174 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:3157
11175 msgid ""
11176 "This command writes patterns over C<device> to make data retrieval more "
11177 "difficult."
11178 msgstr ""
11179
11180 # type: textblock
11181 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4121
11182 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3160
11183 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3188
11184 msgid ""
11185 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11186 "more details."
11187 msgstr ""
11188
11189 # type: =head2
11190 #: ../src/guestfs-actions.pod:4111
11191 msgid "guestfs_scrub_file"
11192 msgstr ""
11193
11194 # type: verbatim
11195 #: ../src/guestfs-actions.pod:4113
11196 #, no-wrap
11197 msgid ""
11198 " int guestfs_scrub_file (guestfs_h *g,\n"
11199 "\t\tconst char *file);\n"
11200 "\n"
11201 msgstr ""
11202
11203 # type: textblock
11204 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3170
11205 msgid ""
11206 "This command writes patterns over a file to make data retrieval more "
11207 "difficult."
11208 msgstr ""
11209
11210 # type: textblock
11211 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:3173
11212 msgid "The file is I<removed> after scrubbing."
11213 msgstr ""
11214
11215 # type: =head2
11216 #: ../src/guestfs-actions.pod:4126
11217 msgid "guestfs_scrub_freespace"
11218 msgstr ""
11219
11220 # type: verbatim
11221 #: ../src/guestfs-actions.pod:4128
11222 #, no-wrap
11223 msgid ""
11224 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11225 "\t\tconst char *dir);\n"
11226 "\n"
11227 msgstr ""
11228
11229 # type: textblock
11230 #: ../src/guestfs-actions.pod:4131
11231 msgid ""
11232 "This command creates the directory C<dir> and then fills it with files until "
11233 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11234 "and deletes them.  The intention is to scrub any free space on the partition "
11235 "containing C<dir>."
11236 msgstr ""
11237
11238 # type: =head2
11239 #: ../src/guestfs-actions.pod:4142
11240 msgid "guestfs_set_append"
11241 msgstr ""
11242
11243 # type: verbatim
11244 #: ../src/guestfs-actions.pod:4144
11245 #, no-wrap
11246 msgid ""
11247 " int guestfs_set_append (guestfs_h *g,\n"
11248 "\t\tconst char *append);\n"
11249 "\n"
11250 msgstr ""
11251
11252 # type: textblock
11253 #: ../src/guestfs-actions.pod:4147 ../fish/guestfish-actions.pod:3195
11254 msgid ""
11255 "This function is used to add additional options to the guest kernel command "
11256 "line."
11257 msgstr ""
11258
11259 # type: textblock
11260 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:3198
11261 msgid ""
11262 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11263 "environment variable."
11264 msgstr ""
11265
11266 # type: textblock
11267 #: ../src/guestfs-actions.pod:4153 ../fish/guestfish-actions.pod:3201
11268 msgid ""
11269 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11270 "(libguestfs always adds a few of its own)."
11271 msgstr ""
11272
11273 # type: =head2
11274 #: ../src/guestfs-actions.pod:4158
11275 msgid "guestfs_set_autosync"
11276 msgstr ""
11277
11278 # type: verbatim
11279 #: ../src/guestfs-actions.pod:4160
11280 #, no-wrap
11281 msgid ""
11282 " int guestfs_set_autosync (guestfs_h *g,\n"
11283 "\t\tint autosync);\n"
11284 "\n"
11285 msgstr ""
11286
11287 # type: textblock
11288 #: ../src/guestfs-actions.pod:4163
11289 msgid ""
11290 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11291 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11292 "the handle is closed (also if the program exits without closing handles)."
11293 msgstr ""
11294
11295 # type: textblock
11296 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:3213
11297 msgid ""
11298 "This is disabled by default (except in guestfish where it is enabled by "
11299 "default)."
11300 msgstr ""
11301
11302 # type: =head2
11303 #: ../src/guestfs-actions.pod:4173
11304 msgid "guestfs_set_direct"
11305 msgstr ""
11306
11307 # type: verbatim
11308 #: ../src/guestfs-actions.pod:4175
11309 #, no-wrap
11310 msgid ""
11311 " int guestfs_set_direct (guestfs_h *g,\n"
11312 "\t\tint direct);\n"
11313 "\n"
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3220
11318 msgid ""
11319 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11320 "passed directly through to the appliance once it is launched."
11321 msgstr ""
11322
11323 # type: textblock
11324 #: ../src/guestfs-actions.pod:4182
11325 msgid ""
11326 "One consequence of this is that log messages aren't caught by the library "
11327 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11328 "stdout."
11329 msgstr ""
11330
11331 # type: textblock
11332 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3228
11333 msgid "You probably don't want to use this unless you know what you are doing."
11334 msgstr ""
11335
11336 # type: textblock
11337 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:3231
11338 msgid "The default is disabled."
11339 msgstr ""
11340
11341 # type: =head2
11342 #: ../src/guestfs-actions.pod:4193
11343 msgid "guestfs_set_e2label"
11344 msgstr ""
11345
11346 # type: verbatim
11347 #: ../src/guestfs-actions.pod:4195
11348 #, no-wrap
11349 msgid ""
11350 " int guestfs_set_e2label (guestfs_h *g,\n"
11351 "\t\tconst char *device,\n"
11352 "\t\tconst char *label);\n"
11353 "\n"
11354 msgstr ""
11355
11356 # type: textblock
11357 #: ../src/guestfs-actions.pod:4199 ../fish/guestfish-actions.pod:3237
11358 msgid ""
11359 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11360 "C<label>.  Filesystem labels are limited to 16 characters."
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4203
11365 msgid ""
11366 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11367 "the existing label on a filesystem."
11368 msgstr ""
11369
11370 # type: =head2
11371 #: ../src/guestfs-actions.pod:4208
11372 msgid "guestfs_set_e2uuid"
11373 msgstr ""
11374
11375 # type: verbatim
11376 #: ../src/guestfs-actions.pod:4210
11377 #, no-wrap
11378 msgid ""
11379 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11380 "\t\tconst char *device,\n"
11381 "\t\tconst char *uuid);\n"
11382 "\n"
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3248
11387 msgid ""
11388 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11389 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11390 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4219
11395 msgid ""
11396 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11397 "the existing UUID of a filesystem."
11398 msgstr ""
11399
11400 # type: =head2
11401 #: ../src/guestfs-actions.pod:4224
11402 msgid "guestfs_set_memsize"
11403 msgstr ""
11404
11405 # type: verbatim
11406 #: ../src/guestfs-actions.pod:4226
11407 #, no-wrap
11408 msgid ""
11409 " int guestfs_set_memsize (guestfs_h *g,\n"
11410 "\t\tint memsize);\n"
11411 "\n"
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4229
11416 msgid ""
11417 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11418 "This only has any effect if called before C<guestfs_launch>."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:3264
11423 msgid ""
11424 "You can also change this by setting the environment variable "
11425 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11426 msgstr ""
11427
11428 # type: =head2
11429 #: ../src/guestfs-actions.pod:4242
11430 msgid "guestfs_set_network"
11431 msgstr ""
11432
11433 # type: verbatim
11434 #: ../src/guestfs-actions.pod:4244
11435 #, no-wrap
11436 msgid ""
11437 " int guestfs_set_network (guestfs_h *g,\n"
11438 "\t\tint network);\n"
11439 "\n"
11440 msgstr ""
11441
11442 # type: textblock
11443 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:3275
11444 msgid ""
11445 "If C<network> is true, then the network is enabled in the libguestfs "
11446 "appliance.  The default is false."
11447 msgstr ""
11448
11449 # type: textblock
11450 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:3278
11451 msgid ""
11452 "This affects whether commands are able to access the network (see L<guestfs"
11453 "(3)/RUNNING COMMANDS>)."
11454 msgstr ""
11455
11456 # type: textblock
11457 #: ../src/guestfs-actions.pod:4253
11458 msgid ""
11459 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11460 "effect."
11461 msgstr ""
11462
11463 # type: =head2
11464 #: ../src/guestfs-actions.pod:4258
11465 msgid "guestfs_set_path"
11466 msgstr ""
11467
11468 # type: verbatim
11469 #: ../src/guestfs-actions.pod:4260
11470 #, no-wrap
11471 msgid ""
11472 " int guestfs_set_path (guestfs_h *g,\n"
11473 "\t\tconst char *searchpath);\n"
11474 "\n"
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4263 ../fish/guestfish-actions.pod:3288
11479 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:3290
11484 msgid ""
11485 "The default is C<$libdir/guestfs> unless overridden by setting "
11486 "C<LIBGUESTFS_PATH> environment variable."
11487 msgstr ""
11488
11489 # type: textblock
11490 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:3293
11491 msgid "Setting C<path> to C<NULL> restores the default path."
11492 msgstr ""
11493
11494 # type: =head2
11495 #: ../src/guestfs-actions.pod:4272
11496 msgid "guestfs_set_qemu"
11497 msgstr ""
11498
11499 # type: verbatim
11500 #: ../src/guestfs-actions.pod:4274
11501 #, no-wrap
11502 msgid ""
11503 " int guestfs_set_qemu (guestfs_h *g,\n"
11504 "\t\tconst char *qemu);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:3299
11510 msgid "Set the qemu binary that we will use."
11511 msgstr ""
11512
11513 # type: textblock
11514 #: ../src/guestfs-actions.pod:4279 ../fish/guestfish-actions.pod:3301
11515 msgid ""
11516 "The default is chosen when the library was compiled by the configure script."
11517 msgstr ""
11518
11519 # type: textblock
11520 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:3304
11521 msgid ""
11522 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11523 "variable."
11524 msgstr ""
11525
11526 # type: textblock
11527 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:3307
11528 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4287 ../fish/guestfish-actions.pod:3309
11533 msgid ""
11534 "Note that you should call this function as early as possible after creating "
11535 "the handle.  This is because some pre-launch operations depend on testing "
11536 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11537 "don't retest features, and so you might see inconsistent results.  Using the "
11538 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11539 "the qemu binary at the same time as the handle is created."
11540 msgstr ""
11541
11542 # type: =head2
11543 #: ../src/guestfs-actions.pod:4297
11544 msgid "guestfs_set_recovery_proc"
11545 msgstr ""
11546
11547 # type: verbatim
11548 #: ../src/guestfs-actions.pod:4299
11549 #, no-wrap
11550 msgid ""
11551 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11552 "\t\tint recoveryproc);\n"
11553 "\n"
11554 msgstr ""
11555
11556 # type: textblock
11557 #: ../src/guestfs-actions.pod:4302
11558 msgid ""
11559 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11560 "not create a recovery process.  The purpose of the recovery process is to "
11561 "stop runaway qemu processes in the case where the main program aborts "
11562 "abruptly."
11563 msgstr ""
11564
11565 # type: textblock
11566 #: ../src/guestfs-actions.pod:4307
11567 msgid ""
11568 "This only has any effect if called before C<guestfs_launch>, and the default "
11569 "is true."
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:3329
11574 msgid ""
11575 "About the only time when you would want to disable this is if the main "
11576 "process will fork itself into the background (\"daemonize\" itself).  In "
11577 "this case the recovery process thinks that the main program has disappeared "
11578 "and so kills qemu, which is not very helpful."
11579 msgstr ""
11580
11581 # type: =head2
11582 #: ../src/guestfs-actions.pod:4318
11583 msgid "guestfs_set_selinux"
11584 msgstr ""
11585
11586 # type: verbatim
11587 #: ../src/guestfs-actions.pod:4320
11588 #, no-wrap
11589 msgid ""
11590 " int guestfs_set_selinux (guestfs_h *g,\n"
11591 "\t\tint selinux);\n"
11592 "\n"
11593 msgstr ""
11594
11595 # type: textblock
11596 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:3339
11597 msgid ""
11598 "This sets the selinux flag that is passed to the appliance at boot time.  "
11599 "The default is C<selinux=0> (disabled)."
11600 msgstr ""
11601
11602 # type: textblock
11603 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:3342
11604 msgid ""
11605 "Note that if SELinux is enabled, it is always in Permissive mode "
11606 "(C<enforcing=0>)."
11607 msgstr ""
11608
11609 # type: =head2
11610 #: ../src/guestfs-actions.pod:4334
11611 msgid "guestfs_set_trace"
11612 msgstr ""
11613
11614 # type: verbatim
11615 #: ../src/guestfs-actions.pod:4336
11616 #, no-wrap
11617 msgid ""
11618 " int guestfs_set_trace (guestfs_h *g,\n"
11619 "\t\tint trace);\n"
11620 "\n"
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:3352
11625 msgid ""
11626 "If the command trace flag is set to 1, then commands are printed on stderr "
11627 "before they are executed in a format which is very similar to the one used "
11628 "by guestfish.  In other words, you can run a program with this enabled, and "
11629 "you will get out a script which you can feed to guestfish to perform the "
11630 "same set of actions."
11631 msgstr ""
11632
11633 # type: textblock
11634 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:3359
11635 msgid ""
11636 "If you want to trace C API calls into libguestfs (and other libraries) then "
11637 "possibly a better way is to use the external ltrace(1) command."
11638 msgstr ""
11639
11640 # type: textblock
11641 #: ../src/guestfs-actions.pod:4350 ../fish/guestfish-actions.pod:3363
11642 msgid ""
11643 "Command traces are disabled unless the environment variable "
11644 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11645 msgstr ""
11646
11647 # type: =head2
11648 #: ../src/guestfs-actions.pod:4355
11649 msgid "guestfs_set_verbose"
11650 msgstr ""
11651
11652 # type: verbatim
11653 #: ../src/guestfs-actions.pod:4357
11654 #, no-wrap
11655 msgid ""
11656 " int guestfs_set_verbose (guestfs_h *g,\n"
11657 "\t\tint verbose);\n"
11658 "\n"
11659 msgstr ""
11660
11661 # type: textblock
11662 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:3370
11663 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11664 msgstr ""
11665
11666 # type: textblock
11667 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:3372
11668 msgid ""
11669 "Verbose messages are disabled unless the environment variable "
11670 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11671 msgstr ""
11672
11673 # type: =head2
11674 #: ../src/guestfs-actions.pod:4367
11675 msgid "guestfs_setcon"
11676 msgstr ""
11677
11678 # type: verbatim
11679 #: ../src/guestfs-actions.pod:4369
11680 #, no-wrap
11681 msgid ""
11682 " int guestfs_setcon (guestfs_h *g,\n"
11683 "\t\tconst char *context);\n"
11684 "\n"
11685 msgstr ""
11686
11687 # type: textblock
11688 #: ../src/guestfs-actions.pod:4372 ../fish/guestfish-actions.pod:3379
11689 msgid ""
11690 "This sets the SELinux security context of the daemon to the string "
11691 "C<context>."
11692 msgstr ""
11693
11694 # type: textblock
11695 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:3382
11696 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11697 msgstr ""
11698
11699 # type: =head2
11700 #: ../src/guestfs-actions.pod:4379
11701 msgid "guestfs_setxattr"
11702 msgstr ""
11703
11704 # type: verbatim
11705 #: ../src/guestfs-actions.pod:4381
11706 #, no-wrap
11707 msgid ""
11708 " int guestfs_setxattr (guestfs_h *g,\n"
11709 "\t\tconst char *xattr,\n"
11710 "\t\tconst char *val,\n"
11711 "\t\tint vallen,\n"
11712 "\t\tconst char *path);\n"
11713 "\n"
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:3388
11718 msgid ""
11719 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11720 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11721 msgstr ""
11722
11723 # type: textblock
11724 #: ../src/guestfs-actions.pod:4391
11725 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11726 msgstr ""
11727
11728 # type: =head2
11729 #: ../src/guestfs-actions.pod:4395
11730 msgid "guestfs_sfdisk"
11731 msgstr ""
11732
11733 # type: verbatim
11734 #: ../src/guestfs-actions.pod:4397
11735 #, no-wrap
11736 msgid ""
11737 " int guestfs_sfdisk (guestfs_h *g,\n"
11738 "\t\tconst char *device,\n"
11739 "\t\tint cyls,\n"
11740 "\t\tint heads,\n"
11741 "\t\tint sectors,\n"
11742 "\t\tchar *const *lines);\n"
11743 "\n"
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:3398
11748 msgid ""
11749 "This is a direct interface to the L<sfdisk(8)> program for creating "
11750 "partitions on block devices."
11751 msgstr ""
11752
11753 # type: textblock
11754 #: ../src/guestfs-actions.pod:4407 ../fish/guestfish-actions.pod:3401
11755 msgid "C<device> should be a block device, for example C</dev/sda>."
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:3403
11760 msgid ""
11761 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
11762 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
11763 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
11764 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
11765 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
11766 "the kernel) cannot work out the right geometry and you will need to tell it."
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:3411
11771 msgid ""
11772 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
11773 "refer to the L<sfdisk(8)> manpage."
11774 msgstr ""
11775
11776 # type: textblock
11777 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:3414
11778 msgid ""
11779 "To create a single partition occupying the whole disk, you would pass "
11780 "C<lines> as a single element list, when the single element being the string "
11781 "C<,> (comma)."
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4424
11786 msgid ""
11787 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
11788 msgstr ""
11789
11790 # type: =head2
11791 #: ../src/guestfs-actions.pod:4432
11792 msgid "guestfs_sfdiskM"
11793 msgstr ""
11794
11795 # type: verbatim
11796 #: ../src/guestfs-actions.pod:4434
11797 #, no-wrap
11798 msgid ""
11799 " int guestfs_sfdiskM (guestfs_h *g,\n"
11800 "\t\tconst char *device,\n"
11801 "\t\tchar *const *lines);\n"
11802 "\n"
11803 msgstr ""
11804
11805 # type: textblock
11806 #: ../src/guestfs-actions.pod:4438
11807 msgid ""
11808 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
11809 "partition sizes are specified in megabytes only (rounded to the nearest "
11810 "cylinder) and you don't need to specify the cyls, heads and sectors "
11811 "parameters which were rarely if ever used anyway."
11812 msgstr ""
11813
11814 # type: textblock
11815 #: ../src/guestfs-actions.pod:4444
11816 msgid ""
11817 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
11818 "C<guestfs_part_disk>"
11819 msgstr ""
11820
11821 # type: =head2
11822 #: ../src/guestfs-actions.pod:4452
11823 msgid "guestfs_sfdisk_N"
11824 msgstr ""
11825
11826 # type: verbatim
11827 #: ../src/guestfs-actions.pod:4454
11828 #, no-wrap
11829 msgid ""
11830 " int guestfs_sfdisk_N (guestfs_h *g,\n"
11831 "\t\tconst char *device,\n"
11832 "\t\tint partnum,\n"
11833 "\t\tint cyls,\n"
11834 "\t\tint heads,\n"
11835 "\t\tint sectors,\n"
11836 "\t\tconst char *line);\n"
11837 "\n"
11838 msgstr ""
11839
11840 # type: textblock
11841 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:3444
11842 msgid ""
11843 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
11844 "(note: C<n> counts from 1)."
11845 msgstr ""
11846
11847 # type: textblock
11848 #: ../src/guestfs-actions.pod:4465
11849 msgid ""
11850 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
11851 "for the cyls/heads/sectors parameters."
11852 msgstr ""
11853
11854 # type: textblock
11855 #: ../src/guestfs-actions.pod:4468
11856 msgid "See also: C<guestfs_part_add>"
11857 msgstr ""
11858
11859 # type: =head2
11860 #: ../src/guestfs-actions.pod:4475
11861 msgid "guestfs_sfdisk_disk_geometry"
11862 msgstr ""
11863
11864 # type: verbatim
11865 #: ../src/guestfs-actions.pod:4477
11866 #, no-wrap
11867 msgid ""
11868 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
11869 "\t\tconst char *device);\n"
11870 "\n"
11871 msgstr ""
11872
11873 # type: textblock
11874 #: ../src/guestfs-actions.pod:4480
11875 msgid ""
11876 "This displays the disk geometry of C<device> read from the partition table.  "
11877 "Especially in the case where the underlying block device has been resized, "
11878 "this can be different from the kernel's idea of the geometry (see "
11879 "C<guestfs_sfdisk_kernel_geometry>)."
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4485 ../src/guestfs-actions.pod:4498
11884 #: ../fish/guestfish-actions.pod:3464 ../fish/guestfish-actions.pod:3473
11885 msgid "The result is in human-readable format, and not designed to be parsed."
11886 msgstr ""
11887
11888 # type: =head2
11889 #: ../src/guestfs-actions.pod:4491
11890 msgid "guestfs_sfdisk_kernel_geometry"
11891 msgstr ""
11892
11893 # type: verbatim
11894 #: ../src/guestfs-actions.pod:4493
11895 #, no-wrap
11896 msgid ""
11897 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
11898 "\t\tconst char *device);\n"
11899 "\n"
11900 msgstr ""
11901
11902 # type: textblock
11903 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:3471
11904 msgid "This displays the kernel's idea of the geometry of C<device>."
11905 msgstr ""
11906
11907 # type: =head2
11908 #: ../src/guestfs-actions.pod:4504
11909 msgid "guestfs_sfdisk_l"
11910 msgstr ""
11911
11912 # type: verbatim
11913 #: ../src/guestfs-actions.pod:4506
11914 #, no-wrap
11915 msgid ""
11916 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
11917 "\t\tconst char *device);\n"
11918 "\n"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:3480
11923 msgid ""
11924 "This displays the partition table on C<device>, in the human-readable output "
11925 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
11926 msgstr ""
11927
11928 # type: textblock
11929 #: ../src/guestfs-actions.pod:4513
11930 msgid "See also: C<guestfs_part_list>"
11931 msgstr ""
11932
11933 # type: =head2
11934 #: ../src/guestfs-actions.pod:4518
11935 msgid "guestfs_sh"
11936 msgstr ""
11937
11938 # type: verbatim
11939 #: ../src/guestfs-actions.pod:4520
11940 #, no-wrap
11941 msgid ""
11942 " char *guestfs_sh (guestfs_h *g,\n"
11943 "\t\tconst char *command);\n"
11944 "\n"
11945 msgstr ""
11946
11947 # type: textblock
11948 #: ../src/guestfs-actions.pod:4523 ../fish/guestfish-actions.pod:3490
11949 msgid ""
11950 "This call runs a command from the guest filesystem via the guest's C</bin/"
11951 "sh>."
11952 msgstr ""
11953
11954 # type: textblock
11955 #: ../src/guestfs-actions.pod:4526
11956 msgid "This is like C<guestfs_command>, but passes the command to:"
11957 msgstr ""
11958
11959 # type: verbatim
11960 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3495
11961 #, no-wrap
11962 msgid ""
11963 " /bin/sh -c \"command\"\n"
11964 "\n"
11965 msgstr ""
11966
11967 # type: textblock
11968 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3497
11969 msgid ""
11970 "Depending on the guest's shell, this usually results in wildcards being "
11971 "expanded, shell expressions being interpolated and so on."
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4534
11976 msgid "All the provisos about C<guestfs_command> apply to this call."
11977 msgstr ""
11978
11979 # type: =head2
11980 #: ../src/guestfs-actions.pod:4539
11981 msgid "guestfs_sh_lines"
11982 msgstr ""
11983
11984 # type: verbatim
11985 #: ../src/guestfs-actions.pod:4541
11986 #, no-wrap
11987 msgid ""
11988 " char **guestfs_sh_lines (guestfs_h *g,\n"
11989 "\t\tconst char *command);\n"
11990 "\n"
11991 msgstr ""
11992
11993 # type: textblock
11994 #: ../src/guestfs-actions.pod:4544
11995 msgid ""
11996 "This is the same as C<guestfs_sh>, but splits the result into a list of "
11997 "lines."
11998 msgstr ""
11999
12000 # type: textblock
12001 #: ../src/guestfs-actions.pod:4547
12002 msgid "See also: C<guestfs_command_lines>"
12003 msgstr ""
12004
12005 # type: =head2
12006 #: ../src/guestfs-actions.pod:4553
12007 msgid "guestfs_sleep"
12008 msgstr ""
12009
12010 # type: verbatim
12011 #: ../src/guestfs-actions.pod:4555
12012 #, no-wrap
12013 msgid ""
12014 " int guestfs_sleep (guestfs_h *g,\n"
12015 "\t\tint secs);\n"
12016 "\n"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3516
12021 msgid "Sleep for C<secs> seconds."
12022 msgstr ""
12023
12024 # type: =head2
12025 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-structs.pod:109
12026 msgid "guestfs_stat"
12027 msgstr ""
12028
12029 # type: verbatim
12030 #: ../src/guestfs-actions.pod:4564
12031 #, no-wrap
12032 msgid ""
12033 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12034 "\t\tconst char *path);\n"
12035 "\n"
12036 msgstr ""
12037
12038 # type: textblock
12039 #: ../src/guestfs-actions.pod:4569 ../fish/guestfish-actions.pod:3524
12040 msgid "This is the same as the C<stat(2)> system call."
12041 msgstr ""
12042
12043 # type: =head2
12044 #: ../src/guestfs-actions.pod:4575 ../src/guestfs-structs.pod:135
12045 msgid "guestfs_statvfs"
12046 msgstr ""
12047
12048 # type: verbatim
12049 #: ../src/guestfs-actions.pod:4577
12050 #, no-wrap
12051 msgid ""
12052 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12053 "\t\tconst char *path);\n"
12054 "\n"
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3530
12059 msgid ""
12060 "Returns file system statistics for any mounted file system.  C<path> should "
12061 "be a file or directory in the mounted file system (typically it is the mount "
12062 "point itself, but it doesn't need to be)."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3534
12067 msgid "This is the same as the C<statvfs(2)> system call."
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4586
12072 msgid ""
12073 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12074 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12075 msgstr ""
12076
12077 # type: =head2
12078 #: ../src/guestfs-actions.pod:4590
12079 msgid "guestfs_strings"
12080 msgstr ""
12081
12082 # type: verbatim
12083 #: ../src/guestfs-actions.pod:4592
12084 #, no-wrap
12085 msgid ""
12086 " char **guestfs_strings (guestfs_h *g,\n"
12087 "\t\tconst char *path);\n"
12088 "\n"
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3540
12093 msgid ""
12094 "This runs the L<strings(1)> command on a file and returns the list of "
12095 "printable strings found."
12096 msgstr ""
12097
12098 # type: =head2
12099 #: ../src/guestfs-actions.pod:4605
12100 msgid "guestfs_strings_e"
12101 msgstr ""
12102
12103 # type: verbatim
12104 #: ../src/guestfs-actions.pod:4607
12105 #, no-wrap
12106 msgid ""
12107 " char **guestfs_strings_e (guestfs_h *g,\n"
12108 "\t\tconst char *encoding,\n"
12109 "\t\tconst char *path);\n"
12110 "\n"
12111 msgstr ""
12112
12113 # type: textblock
12114 #: ../src/guestfs-actions.pod:4611
12115 msgid ""
12116 "This is like the C<guestfs_strings> command, but allows you to specify the "
12117 "encoding of strings that are looked for in the source file C<path>."
12118 msgstr ""
12119
12120 # type: textblock
12121 #: ../src/guestfs-actions.pod:4615 ../fish/guestfish-actions.pod:3554
12122 msgid "Allowed encodings are:"
12123 msgstr ""
12124
12125 # type: =item
12126 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3558
12127 msgid "s"
12128 msgstr ""
12129
12130 # type: textblock
12131 #: ../src/guestfs-actions.pod:4621
12132 msgid ""
12133 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12134 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12135 msgstr ""
12136
12137 # type: =item
12138 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3563
12139 msgid "S"
12140 msgstr ""
12141
12142 # type: textblock
12143 #: ../src/guestfs-actions.pod:4626 ../fish/guestfish-actions.pod:3565
12144 msgid "Single 8-bit-byte characters."
12145 msgstr ""
12146
12147 # type: =item
12148 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3567
12149 msgid "b"
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4630 ../fish/guestfish-actions.pod:3569
12154 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12155 msgstr ""
12156
12157 # type: =item
12158 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3572
12159 msgid "l (lower case letter L)"
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4635 ../fish/guestfish-actions.pod:3574
12164 msgid ""
12165 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12166 "examining binaries in Windows guests."
12167 msgstr ""
12168
12169 # type: =item
12170 #: ../src/guestfs-actions.pod:4638 ../fish/guestfish-actions.pod:3577
12171 msgid "B"
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3579
12176 msgid "32-bit big endian such as UCS-4BE."
12177 msgstr ""
12178
12179 # type: =item
12180 #: ../src/guestfs-actions.pod:4642 ../fish/guestfish-actions.pod:3581
12181 msgid "L"
12182 msgstr ""
12183
12184 # type: textblock
12185 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3583
12186 msgid "32-bit little endian such as UCS-4LE."
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3587
12191 msgid "The returned strings are transcoded to UTF-8."
12192 msgstr ""
12193
12194 # type: =head2
12195 #: ../src/guestfs-actions.pod:4657
12196 msgid "guestfs_swapoff_device"
12197 msgstr ""
12198
12199 # type: verbatim
12200 #: ../src/guestfs-actions.pod:4659
12201 #, no-wrap
12202 msgid ""
12203 " int guestfs_swapoff_device (guestfs_h *g,\n"
12204 "\t\tconst char *device);\n"
12205 "\n"
12206 msgstr ""
12207
12208 # type: textblock
12209 #: ../src/guestfs-actions.pod:4662
12210 msgid ""
12211 "This command disables the libguestfs appliance swap device or partition "
12212 "named C<device>.  See C<guestfs_swapon_device>."
12213 msgstr ""
12214
12215 # type: =head2
12216 #: ../src/guestfs-actions.pod:4668
12217 msgid "guestfs_swapoff_file"
12218 msgstr ""
12219
12220 # type: verbatim
12221 #: ../src/guestfs-actions.pod:4670
12222 #, no-wrap
12223 msgid ""
12224 " int guestfs_swapoff_file (guestfs_h *g,\n"
12225 "\t\tconst char *file);\n"
12226 "\n"
12227 msgstr ""
12228
12229 # type: textblock
12230 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3604
12231 msgid "This command disables the libguestfs appliance swap on file."
12232 msgstr ""
12233
12234 # type: =head2
12235 #: ../src/guestfs-actions.pod:4677
12236 msgid "guestfs_swapoff_label"
12237 msgstr ""
12238
12239 # type: verbatim
12240 #: ../src/guestfs-actions.pod:4679
12241 #, no-wrap
12242 msgid ""
12243 " int guestfs_swapoff_label (guestfs_h *g,\n"
12244 "\t\tconst char *label);\n"
12245 "\n"
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3610
12250 msgid ""
12251 "This command disables the libguestfs appliance swap on labeled swap "
12252 "partition."
12253 msgstr ""
12254
12255 # type: =head2
12256 #: ../src/guestfs-actions.pod:4687
12257 msgid "guestfs_swapoff_uuid"
12258 msgstr ""
12259
12260 # type: verbatim
12261 #: ../src/guestfs-actions.pod:4689
12262 #, no-wrap
12263 msgid ""
12264 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12265 "\t\tconst char *uuid);\n"
12266 "\n"
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3617
12271 msgid ""
12272 "This command disables the libguestfs appliance swap partition with the given "
12273 "UUID."
12274 msgstr ""
12275
12276 # type: =head2
12277 #: ../src/guestfs-actions.pod:4697
12278 msgid "guestfs_swapon_device"
12279 msgstr ""
12280
12281 # type: verbatim
12282 #: ../src/guestfs-actions.pod:4699
12283 #, no-wrap
12284 msgid ""
12285 " int guestfs_swapon_device (guestfs_h *g,\n"
12286 "\t\tconst char *device);\n"
12287 "\n"
12288 msgstr ""
12289
12290 # type: textblock
12291 #: ../src/guestfs-actions.pod:4702
12292 msgid ""
12293 "This command enables the libguestfs appliance to use the swap device or "
12294 "partition named C<device>.  The increased memory is made available for all "
12295 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12296 msgstr ""
12297
12298 # type: textblock
12299 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3629
12300 msgid ""
12301 "Note that you should not swap to existing guest swap partitions unless you "
12302 "know what you are doing.  They may contain hibernation information, or other "
12303 "information that the guest doesn't want you to trash.  You also risk leaking "
12304 "information about the host to the guest this way.  Instead, attach a new "
12305 "host device to the guest and swap on that."
12306 msgstr ""
12307
12308 # type: =head2
12309 #: ../src/guestfs-actions.pod:4716
12310 msgid "guestfs_swapon_file"
12311 msgstr ""
12312
12313 # type: verbatim
12314 #: ../src/guestfs-actions.pod:4718
12315 #, no-wrap
12316 msgid ""
12317 " int guestfs_swapon_file (guestfs_h *g,\n"
12318 "\t\tconst char *file);\n"
12319 "\n"
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4721
12324 msgid ""
12325 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12326 "notes."
12327 msgstr ""
12328
12329 # type: =head2
12330 #: ../src/guestfs-actions.pod:4726
12331 msgid "guestfs_swapon_label"
12332 msgstr ""
12333
12334 # type: verbatim
12335 #: ../src/guestfs-actions.pod:4728
12336 #, no-wrap
12337 msgid ""
12338 " int guestfs_swapon_label (guestfs_h *g,\n"
12339 "\t\tconst char *label);\n"
12340 "\n"
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4731
12345 msgid ""
12346 "This command enables swap to a labeled swap partition.  See "
12347 "C<guestfs_swapon_device> for other notes."
12348 msgstr ""
12349
12350 # type: =head2
12351 #: ../src/guestfs-actions.pod:4736
12352 msgid "guestfs_swapon_uuid"
12353 msgstr ""
12354
12355 # type: verbatim
12356 #: ../src/guestfs-actions.pod:4738
12357 #, no-wrap
12358 msgid ""
12359 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12360 "\t\tconst char *uuid);\n"
12361 "\n"
12362 msgstr ""
12363
12364 # type: textblock
12365 #: ../src/guestfs-actions.pod:4741
12366 msgid ""
12367 "This command enables swap to a swap partition with the given UUID.  See "
12368 "C<guestfs_swapon_device> for other notes."
12369 msgstr ""
12370
12371 # type: =head2
12372 #: ../src/guestfs-actions.pod:4746
12373 msgid "guestfs_sync"
12374 msgstr ""
12375
12376 # type: verbatim
12377 #: ../src/guestfs-actions.pod:4748
12378 #, no-wrap
12379 msgid ""
12380 " int guestfs_sync (guestfs_h *g);\n"
12381 "\n"
12382 msgstr ""
12383
12384 # type: textblock
12385 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3661
12386 msgid ""
12387 "This syncs the disk, so that any writes are flushed through to the "
12388 "underlying disk image."
12389 msgstr ""
12390
12391 # type: textblock
12392 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3664
12393 msgid ""
12394 "You should always call this if you have modified a disk image, before "
12395 "closing the handle."
12396 msgstr ""
12397
12398 # type: =head2
12399 #: ../src/guestfs-actions.pod:4758
12400 msgid "guestfs_tail"
12401 msgstr ""
12402
12403 # type: verbatim
12404 #: ../src/guestfs-actions.pod:4760
12405 #, no-wrap
12406 msgid ""
12407 " char **guestfs_tail (guestfs_h *g,\n"
12408 "\t\tconst char *path);\n"
12409 "\n"
12410 msgstr ""
12411
12412 # type: textblock
12413 #: ../src/guestfs-actions.pod:4763 ../fish/guestfish-actions.pod:3671
12414 msgid ""
12415 "This command returns up to the last 10 lines of a file as a list of strings."
12416 msgstr ""
12417
12418 # type: =head2
12419 #: ../src/guestfs-actions.pod:4773
12420 msgid "guestfs_tail_n"
12421 msgstr ""
12422
12423 # type: verbatim
12424 #: ../src/guestfs-actions.pod:4775
12425 #, no-wrap
12426 msgid ""
12427 " char **guestfs_tail_n (guestfs_h *g,\n"
12428 "\t\tint nrlines,\n"
12429 "\t\tconst char *path);\n"
12430 "\n"
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:4779 ../fish/guestfish-actions.pod:3681
12435 msgid ""
12436 "If the parameter C<nrlines> is a positive number, this returns the last "
12437 "C<nrlines> lines of the file C<path>."
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3684
12442 msgid ""
12443 "If the parameter C<nrlines> is a negative number, this returns lines from "
12444 "the file C<path>, starting with the C<-nrlines>th line."
12445 msgstr ""
12446
12447 # type: =head2
12448 #: ../src/guestfs-actions.pod:4794
12449 msgid "guestfs_tar_in"
12450 msgstr ""
12451
12452 # type: verbatim
12453 #: ../src/guestfs-actions.pod:4796
12454 #, no-wrap
12455 msgid ""
12456 " int guestfs_tar_in (guestfs_h *g,\n"
12457 "\t\tconst char *tarfile,\n"
12458 "\t\tconst char *directory);\n"
12459 "\n"
12460 msgstr ""
12461
12462 # type: textblock
12463 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3696
12464 msgid ""
12465 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12466 "tar file) into C<directory>."
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:4803
12471 msgid ""
12472 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12473 msgstr ""
12474
12475 # type: =head2
12476 #: ../src/guestfs-actions.pod:4808
12477 msgid "guestfs_tar_out"
12478 msgstr ""
12479
12480 # type: verbatim
12481 #: ../src/guestfs-actions.pod:4810
12482 #, no-wrap
12483 msgid ""
12484 " int guestfs_tar_out (guestfs_h *g,\n"
12485 "\t\tconst char *directory,\n"
12486 "\t\tconst char *tarfile);\n"
12487 "\n"
12488 msgstr ""
12489
12490 # type: textblock
12491 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3708
12492 msgid ""
12493 "This command packs the contents of C<directory> and downloads it to local "
12494 "file C<tarfile>."
12495 msgstr ""
12496
12497 # type: textblock
12498 #: ../src/guestfs-actions.pod:4817
12499 msgid ""
12500 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12501 "C<guestfs_txz_out>."
12502 msgstr ""
12503
12504 # type: =head2
12505 #: ../src/guestfs-actions.pod:4822
12506 msgid "guestfs_tgz_in"
12507 msgstr ""
12508
12509 # type: verbatim
12510 #: ../src/guestfs-actions.pod:4824
12511 #, no-wrap
12512 msgid ""
12513 " int guestfs_tgz_in (guestfs_h *g,\n"
12514 "\t\tconst char *tarball,\n"
12515 "\t\tconst char *directory);\n"
12516 "\n"
12517 msgstr ""
12518
12519 # type: textblock
12520 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3720
12521 msgid ""
12522 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12523 "tar file) into C<directory>."
12524 msgstr ""
12525
12526 # type: textblock
12527 #: ../src/guestfs-actions.pod:4831
12528 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12529 msgstr ""
12530
12531 # type: =head2
12532 #: ../src/guestfs-actions.pod:4835
12533 msgid "guestfs_tgz_out"
12534 msgstr ""
12535
12536 # type: verbatim
12537 #: ../src/guestfs-actions.pod:4837
12538 #, no-wrap
12539 msgid ""
12540 " int guestfs_tgz_out (guestfs_h *g,\n"
12541 "\t\tconst char *directory,\n"
12542 "\t\tconst char *tarball);\n"
12543 "\n"
12544 msgstr ""
12545
12546 # type: textblock
12547 #: ../src/guestfs-actions.pod:4841 ../fish/guestfish-actions.pod:3731
12548 msgid ""
12549 "This command packs the contents of C<directory> and downloads it to local "
12550 "file C<tarball>."
12551 msgstr ""
12552
12553 # type: textblock
12554 #: ../src/guestfs-actions.pod:4844
12555 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12556 msgstr ""
12557
12558 # type: =head2
12559 #: ../src/guestfs-actions.pod:4848
12560 msgid "guestfs_touch"
12561 msgstr ""
12562
12563 # type: verbatim
12564 #: ../src/guestfs-actions.pod:4850
12565 #, no-wrap
12566 msgid ""
12567 " int guestfs_touch (guestfs_h *g,\n"
12568 "\t\tconst char *path);\n"
12569 "\n"
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3742
12574 msgid ""
12575 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12576 "timestamps on a file, or, if the file does not exist, to create a new zero-"
12577 "length file."
12578 msgstr ""
12579
12580 # type: textblock
12581 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3746
12582 msgid ""
12583 "This command only works on regular files, and will fail on other file types "
12584 "such as directories, symbolic links, block special etc."
12585 msgstr ""
12586
12587 # type: =head2
12588 #: ../src/guestfs-actions.pod:4862
12589 msgid "guestfs_truncate"
12590 msgstr ""
12591
12592 # type: verbatim
12593 #: ../src/guestfs-actions.pod:4864
12594 #, no-wrap
12595 msgid ""
12596 " int guestfs_truncate (guestfs_h *g,\n"
12597 "\t\tconst char *path);\n"
12598 "\n"
12599 msgstr ""
12600
12601 # type: textblock
12602 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3753
12603 msgid ""
12604 "This command truncates C<path> to a zero-length file.  The file must exist "
12605 "already."
12606 msgstr ""
12607
12608 # type: =head2
12609 #: ../src/guestfs-actions.pod:4872
12610 msgid "guestfs_truncate_size"
12611 msgstr ""
12612
12613 # type: verbatim
12614 #: ../src/guestfs-actions.pod:4874
12615 #, no-wrap
12616 msgid ""
12617 " int guestfs_truncate_size (guestfs_h *g,\n"
12618 "\t\tconst char *path,\n"
12619 "\t\tint64_t size);\n"
12620 "\n"
12621 msgstr ""
12622
12623 # type: textblock
12624 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3760
12625 msgid ""
12626 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12627 "already."
12628 msgstr ""
12629
12630 # type: textblock
12631 #: ../src/guestfs-actions.pod:4881
12632 msgid ""
12633 "If the current file size is less than C<size> then the file is extended to "
12634 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12635 "blocks are not allocated for the file until you write to it).  To create a "
12636 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12637 msgstr ""
12638
12639 # type: =head2
12640 #: ../src/guestfs-actions.pod:4889
12641 msgid "guestfs_tune2fs_l"
12642 msgstr ""
12643
12644 # type: verbatim
12645 #: ../src/guestfs-actions.pod:4891
12646 #, no-wrap
12647 msgid ""
12648 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12649 "\t\tconst char *device);\n"
12650 "\n"
12651 msgstr ""
12652
12653 # type: textblock
12654 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3773
12655 msgid ""
12656 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12657 "C<device>."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3776
12662 msgid ""
12663 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12664 "for more details.  The list of fields returned isn't clearly defined, and "
12665 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12666 "and the filesystem itself."
12667 msgstr ""
12668
12669 # type: =head2
12670 #: ../src/guestfs-actions.pod:4908
12671 msgid "guestfs_txz_in"
12672 msgstr ""
12673
12674 # type: verbatim
12675 #: ../src/guestfs-actions.pod:4910
12676 #, no-wrap
12677 msgid ""
12678 " int guestfs_txz_in (guestfs_h *g,\n"
12679 "\t\tconst char *tarball,\n"
12680 "\t\tconst char *directory);\n"
12681 "\n"
12682 msgstr ""
12683
12684 # type: textblock
12685 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3785
12686 msgid ""
12687 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12688 "tar file) into C<directory>."
12689 msgstr ""
12690
12691 # type: =head2
12692 #: ../src/guestfs-actions.pod:4919
12693 msgid "guestfs_txz_out"
12694 msgstr ""
12695
12696 # type: verbatim
12697 #: ../src/guestfs-actions.pod:4921
12698 #, no-wrap
12699 msgid ""
12700 " int guestfs_txz_out (guestfs_h *g,\n"
12701 "\t\tconst char *directory,\n"
12702 "\t\tconst char *tarball);\n"
12703 "\n"
12704 msgstr ""
12705
12706 # type: textblock
12707 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3794
12708 msgid ""
12709 "This command packs the contents of C<directory> and downloads it to local "
12710 "file C<tarball> (as an xz compressed tar archive)."
12711 msgstr ""
12712
12713 # type: =head2
12714 #: ../src/guestfs-actions.pod:4930
12715 msgid "guestfs_umask"
12716 msgstr ""
12717
12718 # type: verbatim
12719 #: ../src/guestfs-actions.pod:4932
12720 #, no-wrap
12721 msgid ""
12722 " int guestfs_umask (guestfs_h *g,\n"
12723 "\t\tint mask);\n"
12724 "\n"
12725 msgstr ""
12726
12727 # type: textblock
12728 #: ../src/guestfs-actions.pod:4935 ../fish/guestfish-actions.pod:3803
12729 msgid ""
12730 "This function sets the mask used for creating new files and device nodes to "
12731 "C<mask & 0777>."
12732 msgstr ""
12733
12734 # type: textblock
12735 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3806
12736 msgid ""
12737 "Typical umask values would be C<022> which creates new files with "
12738 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12739 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12740 msgstr ""
12741
12742 # type: textblock
12743 #: ../src/guestfs-actions.pod:4943 ../fish/guestfish-actions.pod:3811
12744 msgid ""
12745 "The default umask is C<022>.  This is important because it means that "
12746 "directories and device nodes will be created with C<0644> or C<0755> mode "
12747 "even if you specify C<0777>."
12748 msgstr ""
12749
12750 # type: textblock
12751 #: ../src/guestfs-actions.pod:4947
12752 msgid ""
12753 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
12754 "C<guestfs_mkdir>."
12755 msgstr ""
12756
12757 # type: textblock
12758 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3818
12759 msgid "This call returns the previous umask."
12760 msgstr ""
12761
12762 # type: =head2
12763 #: ../src/guestfs-actions.pod:4954
12764 msgid "guestfs_umount"
12765 msgstr ""
12766
12767 # type: verbatim
12768 #: ../src/guestfs-actions.pod:4956
12769 #, no-wrap
12770 msgid ""
12771 " int guestfs_umount (guestfs_h *g,\n"
12772 "\t\tconst char *pathordevice);\n"
12773 "\n"
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3824
12778 msgid ""
12779 "This unmounts the given filesystem.  The filesystem may be specified either "
12780 "by its mountpoint (path) or the device which contains the filesystem."
12781 msgstr ""
12782
12783 # type: =head2
12784 #: ../src/guestfs-actions.pod:4965
12785 msgid "guestfs_umount_all"
12786 msgstr ""
12787
12788 # type: verbatim
12789 #: ../src/guestfs-actions.pod:4967
12790 #, no-wrap
12791 msgid ""
12792 " int guestfs_umount_all (guestfs_h *g);\n"
12793 "\n"
12794 msgstr ""
12795
12796 # type: textblock
12797 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3832
12798 msgid "This unmounts all mounted filesystems."
12799 msgstr ""
12800
12801 # type: textblock
12802 #: ../src/guestfs-actions.pod:4971 ../fish/guestfish-actions.pod:3834
12803 msgid "Some internal mounts are not unmounted by this call."
12804 msgstr ""
12805
12806 # type: =head2
12807 #: ../src/guestfs-actions.pod:4975
12808 msgid "guestfs_upload"
12809 msgstr ""
12810
12811 # type: verbatim
12812 #: ../src/guestfs-actions.pod:4977
12813 #, no-wrap
12814 msgid ""
12815 " int guestfs_upload (guestfs_h *g,\n"
12816 "\t\tconst char *filename,\n"
12817 "\t\tconst char *remotefilename);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3840
12823 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
12824 msgstr ""
12825
12826 # type: textblock
12827 #: ../src/guestfs-actions.pod:4986
12828 msgid "See also C<guestfs_download>."
12829 msgstr ""
12830
12831 # type: =head2
12832 #: ../src/guestfs-actions.pod:4990
12833 msgid "guestfs_utimens"
12834 msgstr ""
12835
12836 # type: verbatim
12837 #: ../src/guestfs-actions.pod:4992
12838 #, no-wrap
12839 msgid ""
12840 " int guestfs_utimens (guestfs_h *g,\n"
12841 "\t\tconst char *path,\n"
12842 "\t\tint64_t atsecs,\n"
12843 "\t\tint64_t atnsecs,\n"
12844 "\t\tint64_t mtsecs,\n"
12845 "\t\tint64_t mtnsecs);\n"
12846 "\n"
12847 msgstr ""
12848
12849 # type: textblock
12850 #: ../src/guestfs-actions.pod:4999 ../fish/guestfish-actions.pod:3853
12851 msgid "This command sets the timestamps of a file with nanosecond precision."
12852 msgstr ""
12853
12854 # type: textblock
12855 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3856
12856 msgid ""
12857 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
12858 "from the epoch."
12859 msgstr ""
12860
12861 # type: textblock
12862 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3859
12863 msgid ""
12864 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
12865 "nanoseconds from the epoch."
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3862
12870 msgid ""
12871 "If the C<*nsecs> field contains the special value C<-1> then the "
12872 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
12873 "ignored in this case)."
12874 msgstr ""
12875
12876 # type: textblock
12877 #: ../src/guestfs-actions.pod:5012 ../fish/guestfish-actions.pod:3866
12878 msgid ""
12879 "If the C<*nsecs> field contains the special value C<-2> then the "
12880 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
12881 "in this case)."
12882 msgstr ""
12883
12884 # type: =head2
12885 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-structs.pod:175
12886 msgid "guestfs_version"
12887 msgstr ""
12888
12889 # type: verbatim
12890 #: ../src/guestfs-actions.pod:5020
12891 #, no-wrap
12892 msgid ""
12893 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
12894 "\n"
12895 msgstr ""
12896
12897 # type: textblock
12898 #: ../src/guestfs-actions.pod:5022 ../fish/guestfish-actions.pod:3874
12899 msgid ""
12900 "Return the libguestfs version number that the program is linked against."
12901 msgstr ""
12902
12903 # type: textblock
12904 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3877
12905 msgid ""
12906 "Note that because of dynamic linking this is not necessarily the version of "
12907 "libguestfs that you compiled against.  You can compile the program, and then "
12908 "at runtime dynamically link against a completely different C<libguestfs.so> "
12909 "library."
12910 msgstr ""
12911
12912 # type: textblock
12913 #: ../src/guestfs-actions.pod:5030 ../fish/guestfish-actions.pod:3882
12914 msgid ""
12915 "This call was added in version C<1.0.58>.  In previous versions of "
12916 "libguestfs there was no way to get the version number.  From C code you can "
12917 "use dynamic linker functions to find out if this symbol exists (if it "
12918 "doesn't, then it's an earlier version)."
12919 msgstr ""
12920
12921 # type: textblock
12922 #: ../src/guestfs-actions.pod:5036 ../fish/guestfish-actions.pod:3888
12923 msgid ""
12924 "The call returns a structure with four elements.  The first three (C<major>, "
12925 "C<minor> and C<release>) are numbers and correspond to the usual version "
12926 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
12927 "but may be used for distro-specific information."
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3894
12932 msgid ""
12933 "To construct the original version string: C<$major.$minor.$release$extra>"
12934 msgstr ""
12935
12936 # type: textblock
12937 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3897
12938 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
12939 msgstr ""
12940
12941 # type: textblock
12942 #: ../src/guestfs-actions.pod:5047
12943 msgid ""
12944 "I<Note:> Don't use this call to test for availability of features.  In "
12945 "enterprise distributions we backport features from later versions into "
12946 "earlier versions, making this an unreliable way to test for features.  Use "
12947 "C<guestfs_available> instead."
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5053
12952 msgid ""
12953 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
12954 "error.  I<The caller must call C<guestfs_free_version> after use>."
12955 msgstr ""
12956
12957 # type: =head2
12958 #: ../src/guestfs-actions.pod:5057
12959 msgid "guestfs_vfs_label"
12960 msgstr ""
12961
12962 # type: verbatim
12963 #: ../src/guestfs-actions.pod:5059
12964 #, no-wrap
12965 msgid ""
12966 " char *guestfs_vfs_label (guestfs_h *g,\n"
12967 "\t\tconst char *device);\n"
12968 "\n"
12969 msgstr ""
12970
12971 # type: textblock
12972 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3909
12973 msgid "This returns the filesystem label of the filesystem on C<device>."
12974 msgstr ""
12975
12976 # type: textblock
12977 #: ../src/guestfs-actions.pod:5065 ../fish/guestfish-actions.pod:3912
12978 msgid "If the filesystem is unlabeled, this returns the empty string."
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5067
12983 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
12984 msgstr ""
12985
12986 # type: =head2
12987 #: ../src/guestfs-actions.pod:5072
12988 msgid "guestfs_vfs_type"
12989 msgstr ""
12990
12991 # type: verbatim
12992 #: ../src/guestfs-actions.pod:5074
12993 #, no-wrap
12994 msgid ""
12995 " char *guestfs_vfs_type (guestfs_h *g,\n"
12996 "\t\tconst char *device);\n"
12997 "\n"
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5077 ../fish/guestfish-actions.pod:3920
13002 msgid ""
13003 "This command gets the filesystem type corresponding to the filesystem on "
13004 "C<device>."
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3923
13009 msgid ""
13010 "For most filesystems, the result is the name of the Linux VFS module which "
13011 "would be used to mount this filesystem if you mounted it without specifying "
13012 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13013 msgstr ""
13014
13015 # type: =head2
13016 #: ../src/guestfs-actions.pod:5088
13017 msgid "guestfs_vfs_uuid"
13018 msgstr ""
13019
13020 # type: verbatim
13021 #: ../src/guestfs-actions.pod:5090
13022 #, no-wrap
13023 msgid ""
13024 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13025 "\t\tconst char *device);\n"
13026 "\n"
13027 msgstr ""
13028
13029 # type: textblock
13030 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3932
13031 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13032 msgstr ""
13033
13034 # type: textblock
13035 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3935
13036 msgid "If the filesystem does not have a UUID, this returns the empty string."
13037 msgstr ""
13038
13039 # type: textblock
13040 #: ../src/guestfs-actions.pod:5098
13041 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13042 msgstr ""
13043
13044 # type: =head2
13045 #: ../src/guestfs-actions.pod:5103
13046 msgid "guestfs_vg_activate"
13047 msgstr ""
13048
13049 # type: verbatim
13050 #: ../src/guestfs-actions.pod:5105
13051 #, no-wrap
13052 msgid ""
13053 " int guestfs_vg_activate (guestfs_h *g,\n"
13054 "\t\tint activate,\n"
13055 "\t\tchar *const *volgroups);\n"
13056 "\n"
13057 msgstr ""
13058
13059 # type: textblock
13060 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3943
13061 msgid ""
13062 "This command activates or (if C<activate> is false) deactivates all logical "
13063 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13064 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13065 "deactivated, then those devices disappear."
13066 msgstr ""
13067
13068 # type: textblock
13069 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3949
13070 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13071 msgstr ""
13072
13073 # type: textblock
13074 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3951
13075 msgid ""
13076 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13077 "activated or deactivated."
13078 msgstr ""
13079
13080 # type: =head2
13081 #: ../src/guestfs-actions.pod:5122
13082 msgid "guestfs_vg_activate_all"
13083 msgstr ""
13084
13085 # type: verbatim
13086 #: ../src/guestfs-actions.pod:5124
13087 #, no-wrap
13088 msgid ""
13089 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13090 "\t\tint activate);\n"
13091 "\n"
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3958
13096 msgid ""
13097 "This command activates or (if C<activate> is false) deactivates all logical "
13098 "volumes in all volume groups.  If activated, then they are made known to the "
13099 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13100 "those devices disappear."
13101 msgstr ""
13102
13103 # type: textblock
13104 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3964
13105 msgid "This command is the same as running C<vgchange -a y|n>"
13106 msgstr ""
13107
13108 # type: =head2
13109 #: ../src/guestfs-actions.pod:5137
13110 msgid "guestfs_vgcreate"
13111 msgstr ""
13112
13113 # type: verbatim
13114 #: ../src/guestfs-actions.pod:5139
13115 #, no-wrap
13116 msgid ""
13117 " int guestfs_vgcreate (guestfs_h *g,\n"
13118 "\t\tconst char *volgroup,\n"
13119 "\t\tchar *const *physvols);\n"
13120 "\n"
13121 msgstr ""
13122
13123 # type: textblock
13124 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3970
13125 msgid ""
13126 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13127 "of physical volumes C<physvols>."
13128 msgstr ""
13129
13130 # type: =head2
13131 #: ../src/guestfs-actions.pod:5148
13132 msgid "guestfs_vglvuuids"
13133 msgstr ""
13134
13135 # type: verbatim
13136 #: ../src/guestfs-actions.pod:5150
13137 #, no-wrap
13138 msgid ""
13139 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13140 "\t\tconst char *vgname);\n"
13141 "\n"
13142 msgstr ""
13143
13144 # type: textblock
13145 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3977
13146 msgid ""
13147 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13148 "volumes created in this volume group."
13149 msgstr ""
13150
13151 # type: textblock
13152 #: ../src/guestfs-actions.pod:5156
13153 msgid ""
13154 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13155 "associate logical volumes and volume groups."
13156 msgstr ""
13157
13158 # type: textblock
13159 #: ../src/guestfs-actions.pod:5159
13160 msgid "See also C<guestfs_vgpvuuids>."
13161 msgstr ""
13162
13163 # type: =head2
13164 #: ../src/guestfs-actions.pod:5165
13165 msgid "guestfs_vgpvuuids"
13166 msgstr ""
13167
13168 # type: verbatim
13169 #: ../src/guestfs-actions.pod:5167
13170 #, no-wrap
13171 msgid ""
13172 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13173 "\t\tconst char *vgname);\n"
13174 "\n"
13175 msgstr ""
13176
13177 # type: textblock
13178 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3989
13179 msgid ""
13180 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13181 "volumes that this volume group resides on."
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5173
13186 msgid ""
13187 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13188 "associate physical volumes and volume groups."
13189 msgstr ""
13190
13191 # type: textblock
13192 #: ../src/guestfs-actions.pod:5176
13193 msgid "See also C<guestfs_vglvuuids>."
13194 msgstr ""
13195
13196 # type: =head2
13197 #: ../src/guestfs-actions.pod:5182
13198 msgid "guestfs_vgremove"
13199 msgstr ""
13200
13201 # type: verbatim
13202 #: ../src/guestfs-actions.pod:5184
13203 #, no-wrap
13204 msgid ""
13205 " int guestfs_vgremove (guestfs_h *g,\n"
13206 "\t\tconst char *vgname);\n"
13207 "\n"
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:4001
13212 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13213 msgstr ""
13214
13215 # type: textblock
13216 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:4003
13217 msgid ""
13218 "This also forcibly removes all logical volumes in the volume group (if any)."
13219 msgstr ""
13220
13221 # type: =head2
13222 #: ../src/guestfs-actions.pod:5194
13223 msgid "guestfs_vgrename"
13224 msgstr ""
13225
13226 # type: verbatim
13227 #: ../src/guestfs-actions.pod:5196
13228 #, no-wrap
13229 msgid ""
13230 " int guestfs_vgrename (guestfs_h *g,\n"
13231 "\t\tconst char *volgroup,\n"
13232 "\t\tconst char *newvolgroup);\n"
13233 "\n"
13234 msgstr ""
13235
13236 # type: textblock
13237 #: ../src/guestfs-actions.pod:5200 ../fish/guestfish-actions.pod:4010
13238 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13239 msgstr ""
13240
13241 # type: =head2
13242 #: ../src/guestfs-actions.pod:5204
13243 msgid "guestfs_vgs"
13244 msgstr ""
13245
13246 # type: verbatim
13247 #: ../src/guestfs-actions.pod:5206
13248 #, no-wrap
13249 msgid ""
13250 " char **guestfs_vgs (guestfs_h *g);\n"
13251 "\n"
13252 msgstr ""
13253
13254 # type: textblock
13255 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:4016
13256 msgid ""
13257 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13258 "> command."
13259 msgstr ""
13260
13261 # type: textblock
13262 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:4019
13263 msgid ""
13264 "This returns a list of just the volume group names that were detected (eg. "
13265 "C<VolGroup00>)."
13266 msgstr ""
13267
13268 # type: textblock
13269 #: ../src/guestfs-actions.pod:5214
13270 msgid "See also C<guestfs_vgs_full>."
13271 msgstr ""
13272
13273 # type: =head2
13274 #: ../src/guestfs-actions.pod:5220
13275 msgid "guestfs_vgs_full"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #: ../src/guestfs-actions.pod:5222
13280 #, no-wrap
13281 msgid ""
13282 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13283 "\n"
13284 msgstr ""
13285
13286 # type: textblock
13287 #: ../src/guestfs-actions.pod:5224 ../fish/guestfish-actions.pod:4028
13288 msgid ""
13289 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13290 "> command.  The \"full\" version includes all fields."
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5227
13295 msgid ""
13296 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
13297 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
13298 "C<guestfs_free_lvm_vg_list> after use>."
13299 msgstr ""
13300
13301 # type: =head2
13302 #: ../src/guestfs-actions.pod:5232
13303 msgid "guestfs_vgscan"
13304 msgstr ""
13305
13306 # type: verbatim
13307 #: ../src/guestfs-actions.pod:5234
13308 #, no-wrap
13309 msgid ""
13310 " int guestfs_vgscan (guestfs_h *g);\n"
13311 "\n"
13312 msgstr ""
13313
13314 # type: textblock
13315 #: ../src/guestfs-actions.pod:5236 ../fish/guestfish-actions.pod:4035
13316 msgid ""
13317 "This rescans all block devices and rebuilds the list of LVM physical "
13318 "volumes, volume groups and logical volumes."
13319 msgstr ""
13320
13321 # type: =head2
13322 #: ../src/guestfs-actions.pod:5241
13323 msgid "guestfs_vguuid"
13324 msgstr ""
13325
13326 # type: verbatim
13327 #: ../src/guestfs-actions.pod:5243
13328 #, no-wrap
13329 msgid ""
13330 " char *guestfs_vguuid (guestfs_h *g,\n"
13331 "\t\tconst char *vgname);\n"
13332 "\n"
13333 msgstr ""
13334
13335 # type: textblock
13336 #: ../src/guestfs-actions.pod:5246 ../fish/guestfish-actions.pod:4042
13337 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13338 msgstr ""
13339
13340 # type: =head2
13341 #: ../src/guestfs-actions.pod:5251
13342 msgid "guestfs_wait_ready"
13343 msgstr ""
13344
13345 # type: verbatim
13346 #: ../src/guestfs-actions.pod:5253
13347 #, no-wrap
13348 msgid ""
13349 " int guestfs_wait_ready (guestfs_h *g);\n"
13350 "\n"
13351 msgstr ""
13352
13353 # type: textblock
13354 #: ../src/guestfs-actions.pod:5255
13355 msgid "This function is a no op."
13356 msgstr ""
13357
13358 # type: textblock
13359 #: ../src/guestfs-actions.pod:5257
13360 msgid ""
13361 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13362 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13363 "is no longer necessary because C<guestfs_launch> now does the waiting."
13364 msgstr ""
13365
13366 # type: textblock
13367 #: ../src/guestfs-actions.pod:5262
13368 msgid ""
13369 "If you see any calls to this function in code then you can just remove them, "
13370 "unless you want to retain compatibility with older versions of the API."
13371 msgstr ""
13372
13373 # type: =head2
13374 #: ../src/guestfs-actions.pod:5268
13375 msgid "guestfs_wc_c"
13376 msgstr ""
13377
13378 # type: verbatim
13379 #: ../src/guestfs-actions.pod:5270
13380 #, no-wrap
13381 msgid ""
13382 " int guestfs_wc_c (guestfs_h *g,\n"
13383 "\t\tconst char *path);\n"
13384 "\n"
13385 msgstr ""
13386
13387 # type: textblock
13388 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:4048
13389 msgid ""
13390 "This command counts the characters in a file, using the C<wc -c> external "
13391 "command."
13392 msgstr ""
13393
13394 # type: =head2
13395 #: ../src/guestfs-actions.pod:5278
13396 msgid "guestfs_wc_l"
13397 msgstr ""
13398
13399 # type: verbatim
13400 #: ../src/guestfs-actions.pod:5280
13401 #, no-wrap
13402 msgid ""
13403 " int guestfs_wc_l (guestfs_h *g,\n"
13404 "\t\tconst char *path);\n"
13405 "\n"
13406 msgstr ""
13407
13408 # type: textblock
13409 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:4055
13410 msgid ""
13411 "This command counts the lines in a file, using the C<wc -l> external command."
13412 msgstr ""
13413
13414 # type: =head2
13415 #: ../src/guestfs-actions.pod:5288
13416 msgid "guestfs_wc_w"
13417 msgstr ""
13418
13419 # type: verbatim
13420 #: ../src/guestfs-actions.pod:5290
13421 #, no-wrap
13422 msgid ""
13423 " int guestfs_wc_w (guestfs_h *g,\n"
13424 "\t\tconst char *path);\n"
13425 "\n"
13426 msgstr ""
13427
13428 # type: textblock
13429 #: ../src/guestfs-actions.pod:5293 ../fish/guestfish-actions.pod:4062
13430 msgid ""
13431 "This command counts the words in a file, using the C<wc -w> external command."
13432 msgstr ""
13433
13434 # type: =head2
13435 #: ../src/guestfs-actions.pod:5298
13436 msgid "guestfs_write"
13437 msgstr ""
13438
13439 # type: verbatim
13440 #: ../src/guestfs-actions.pod:5300
13441 #, no-wrap
13442 msgid ""
13443 " int guestfs_write (guestfs_h *g,\n"
13444 "\t\tconst char *path,\n"
13445 "\t\tconst char *content,\n"
13446 "\t\tsize_t content_size);\n"
13447 "\n"
13448 msgstr ""
13449
13450 # type: textblock
13451 #: ../src/guestfs-actions.pod:5305 ../fish/guestfish-actions.pod:4069
13452 msgid ""
13453 "This call creates a file called C<path>.  The content of the file is the "
13454 "string C<content> (which can contain any 8 bit data)."
13455 msgstr ""
13456
13457 # type: =head2
13458 #: ../src/guestfs-actions.pod:5313
13459 msgid "guestfs_write_file"
13460 msgstr ""
13461
13462 # type: verbatim
13463 #: ../src/guestfs-actions.pod:5315
13464 #, no-wrap
13465 msgid ""
13466 " int guestfs_write_file (guestfs_h *g,\n"
13467 "\t\tconst char *path,\n"
13468 "\t\tconst char *content,\n"
13469 "\t\tint size);\n"
13470 "\n"
13471 msgstr ""
13472
13473 # type: textblock
13474 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:4079
13475 msgid ""
13476 "This call creates a file called C<path>.  The contents of the file is the "
13477 "string C<content> (which can contain any 8 bit data), with length C<size>."
13478 msgstr ""
13479
13480 # type: textblock
13481 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:4083
13482 msgid ""
13483 "As a special case, if C<size> is C<0> then the length is calculated using "
13484 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13485 msgstr ""
13486
13487 # type: textblock
13488 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:4087
13489 msgid ""
13490 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13491 "I<not> work, even if the length is specified."
13492 msgstr ""
13493
13494 # type: textblock
13495 #: ../src/guestfs-actions.pod:5336 ../fish/guestfish-actions.pod:4093
13496 msgid ""
13497 "This function is deprecated.  In new code, use the C<write> call instead."
13498 msgstr ""
13499
13500 # type: =head2
13501 #: ../src/guestfs-actions.pod:5343
13502 msgid "guestfs_zegrep"
13503 msgstr ""
13504
13505 # type: verbatim
13506 #: ../src/guestfs-actions.pod:5345
13507 #, no-wrap
13508 msgid ""
13509 " char **guestfs_zegrep (guestfs_h *g,\n"
13510 "\t\tconst char *regex,\n"
13511 "\t\tconst char *path);\n"
13512 "\n"
13513 msgstr ""
13514
13515 # type: textblock
13516 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:4104
13517 msgid ""
13518 "This calls the external C<zegrep> program and returns the matching lines."
13519 msgstr ""
13520
13521 # type: =head2
13522 #: ../src/guestfs-actions.pod:5359
13523 msgid "guestfs_zegrepi"
13524 msgstr ""
13525
13526 # type: verbatim
13527 #: ../src/guestfs-actions.pod:5361
13528 #, no-wrap
13529 msgid ""
13530 " char **guestfs_zegrepi (guestfs_h *g,\n"
13531 "\t\tconst char *regex,\n"
13532 "\t\tconst char *path);\n"
13533 "\n"
13534 msgstr ""
13535
13536 # type: textblock
13537 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:4114
13538 msgid ""
13539 "This calls the external C<zegrep -i> program and returns the matching lines."
13540 msgstr ""
13541
13542 # type: =head2
13543 #: ../src/guestfs-actions.pod:5375
13544 msgid "guestfs_zero"
13545 msgstr ""
13546
13547 # type: verbatim
13548 #: ../src/guestfs-actions.pod:5377
13549 #, no-wrap
13550 msgid ""
13551 " int guestfs_zero (guestfs_h *g,\n"
13552 "\t\tconst char *device);\n"
13553 "\n"
13554 msgstr ""
13555
13556 # type: textblock
13557 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:4124
13558 msgid "This command writes zeroes over the first few blocks of C<device>."
13559 msgstr ""
13560
13561 # type: textblock
13562 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:4126
13563 msgid ""
13564 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13565 "securely wipe the device).  It should be sufficient to remove any partition "
13566 "tables, filesystem superblocks and so on."
13567 msgstr ""
13568
13569 # type: textblock
13570 #: ../src/guestfs-actions.pod:5386
13571 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13572 msgstr ""
13573
13574 # type: =head2
13575 #: ../src/guestfs-actions.pod:5395
13576 msgid "guestfs_zero_device"
13577 msgstr ""
13578
13579 # type: verbatim
13580 #: ../src/guestfs-actions.pod:5397
13581 #, no-wrap
13582 msgid ""
13583 " int guestfs_zero_device (guestfs_h *g,\n"
13584 "\t\tconst char *device);\n"
13585 "\n"
13586 msgstr ""
13587
13588 # type: textblock
13589 #: ../src/guestfs-actions.pod:5400
13590 msgid ""
13591 "This command writes zeroes over the entire C<device>.  Compare with "
13592 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13593 msgstr ""
13594
13595 # type: =head2
13596 #: ../src/guestfs-actions.pod:5414
13597 msgid "guestfs_zerofree"
13598 msgstr ""
13599
13600 # type: verbatim
13601 #: ../src/guestfs-actions.pod:5416
13602 #, no-wrap
13603 msgid ""
13604 " int guestfs_zerofree (guestfs_h *g,\n"
13605 "\t\tconst char *device);\n"
13606 "\n"
13607 msgstr ""
13608
13609 # type: textblock
13610 #: ../src/guestfs-actions.pod:5419 ../fish/guestfish-actions.pod:4147
13611 msgid ""
13612 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13613 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13614 "possible to compress the filesystem more effectively."
13615 msgstr ""
13616
13617 # type: textblock
13618 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:4152
13619 msgid "You should B<not> run this program if the filesystem is mounted."
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:4155
13624 msgid ""
13625 "It is possible that using this program can damage the filesystem or data on "
13626 "the filesystem."
13627 msgstr ""
13628
13629 # type: =head2
13630 #: ../src/guestfs-actions.pod:5432
13631 msgid "guestfs_zfgrep"
13632 msgstr ""
13633
13634 # type: verbatim
13635 #: ../src/guestfs-actions.pod:5434
13636 #, no-wrap
13637 msgid ""
13638 " char **guestfs_zfgrep (guestfs_h *g,\n"
13639 "\t\tconst char *pattern,\n"
13640 "\t\tconst char *path);\n"
13641 "\n"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:4162
13646 msgid ""
13647 "This calls the external C<zfgrep> program and returns the matching lines."
13648 msgstr ""
13649
13650 # type: =head2
13651 #: ../src/guestfs-actions.pod:5448
13652 msgid "guestfs_zfgrepi"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #: ../src/guestfs-actions.pod:5450
13657 #, no-wrap
13658 msgid ""
13659 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13660 "\t\tconst char *pattern,\n"
13661 "\t\tconst char *path);\n"
13662 "\n"
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5454 ../fish/guestfish-actions.pod:4172
13667 msgid ""
13668 "This calls the external C<zfgrep -i> program and returns the matching lines."
13669 msgstr ""
13670
13671 # type: =head2
13672 #: ../src/guestfs-actions.pod:5464
13673 msgid "guestfs_zfile"
13674 msgstr ""
13675
13676 # type: verbatim
13677 #: ../src/guestfs-actions.pod:5466
13678 #, no-wrap
13679 msgid ""
13680 " char *guestfs_zfile (guestfs_h *g,\n"
13681 "\t\tconst char *meth,\n"
13682 "\t\tconst char *path);\n"
13683 "\n"
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5470 ../fish/guestfish-actions.pod:4182
13688 msgid ""
13689 "This command runs C<file> after first decompressing C<path> using C<method>."
13690 msgstr ""
13691
13692 # type: textblock
13693 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:4185
13694 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13695 msgstr ""
13696
13697 # type: textblock
13698 #: ../src/guestfs-actions.pod:5475
13699 msgid ""
13700 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13701 "files."
13702 msgstr ""
13703
13704 # type: textblock
13705 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:4190
13706 msgid ""
13707 "This function is deprecated.  In new code, use the C<file> call instead."
13708 msgstr ""
13709
13710 # type: =head2
13711 #: ../src/guestfs-actions.pod:5488
13712 msgid "guestfs_zgrep"
13713 msgstr ""
13714
13715 # type: verbatim
13716 #: ../src/guestfs-actions.pod:5490
13717 #, no-wrap
13718 msgid ""
13719 " char **guestfs_zgrep (guestfs_h *g,\n"
13720 "\t\tconst char *regex,\n"
13721 "\t\tconst char *path);\n"
13722 "\n"
13723 msgstr ""
13724
13725 # type: textblock
13726 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:4201
13727 msgid ""
13728 "This calls the external C<zgrep> program and returns the matching lines."
13729 msgstr ""
13730
13731 # type: =head2
13732 #: ../src/guestfs-actions.pod:5504
13733 msgid "guestfs_zgrepi"
13734 msgstr ""
13735
13736 # type: verbatim
13737 #: ../src/guestfs-actions.pod:5506
13738 #, no-wrap
13739 msgid ""
13740 " char **guestfs_zgrepi (guestfs_h *g,\n"
13741 "\t\tconst char *regex,\n"
13742 "\t\tconst char *path);\n"
13743 "\n"
13744 msgstr ""
13745
13746 # type: textblock
13747 #: ../src/guestfs-actions.pod:5510 ../fish/guestfish-actions.pod:4211
13748 msgid ""
13749 "This calls the external C<zgrep -i> program and returns the matching lines."
13750 msgstr ""
13751
13752 # type: =item
13753 #: ../src/guestfs-availability.pod:3
13754 msgid "B<augeas>"
13755 msgstr ""
13756
13757 # type: textblock
13758 #: ../src/guestfs-availability.pod:5
13759 msgid ""
13760 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
13761 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
13762 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
13763 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
13764 "L</guestfs_aug_save> L</guestfs_aug_set>"
13765 msgstr ""
13766
13767 # type: =item
13768 #: ../src/guestfs-availability.pod:21
13769 msgid "B<inotify>"
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-availability.pod:23
13774 msgid ""
13775 "The following functions: L</guestfs_inotify_add_watch> L</"
13776 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
13777 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
13778 msgstr ""
13779
13780 # type: =item
13781 #: ../src/guestfs-availability.pod:31
13782 msgid "B<linuxfsuuid>"
13783 msgstr ""
13784
13785 # type: textblock
13786 #: ../src/guestfs-availability.pod:33
13787 msgid ""
13788 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
13789 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
13790 msgstr ""
13791
13792 # type: =item
13793 #: ../src/guestfs-availability.pod:40
13794 msgid "B<linuxmodules>"
13795 msgstr ""
13796
13797 # type: textblock
13798 #: ../src/guestfs-availability.pod:42
13799 msgid "The following functions: L</guestfs_modprobe>"
13800 msgstr ""
13801
13802 # type: =item
13803 #: ../src/guestfs-availability.pod:45
13804 msgid "B<linuxxattrs>"
13805 msgstr ""
13806
13807 # type: textblock
13808 #: ../src/guestfs-availability.pod:47
13809 msgid ""
13810 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
13811 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
13812 "guestfs_removexattr> L</guestfs_setxattr>"
13813 msgstr ""
13814
13815 # type: =item
13816 #: ../src/guestfs-availability.pod:56
13817 msgid "B<luks>"
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-availability.pod:58
13822 msgid ""
13823 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
13824 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
13825 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
13826 msgstr ""
13827
13828 # type: =item
13829 #: ../src/guestfs-availability.pod:67
13830 msgid "B<lvm2>"
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-availability.pod:69
13835 msgid ""
13836 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
13837 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
13838 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
13839 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
13840 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
13841 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
13842 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
13843 msgstr ""
13844
13845 # type: =item
13846 #: ../src/guestfs-availability.pod:92
13847 msgid "B<mknod>"
13848 msgstr ""
13849
13850 # type: textblock
13851 #: ../src/guestfs-availability.pod:94
13852 msgid ""
13853 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
13854 "guestfs_mknod_b> L</guestfs_mknod_c>"
13855 msgstr ""
13856
13857 # type: =item
13858 #: ../src/guestfs-availability.pod:100
13859 msgid "B<ntfs3g>"
13860 msgstr ""
13861
13862 # type: textblock
13863 #: ../src/guestfs-availability.pod:102
13864 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
13865 msgstr ""
13866
13867 # type: =item
13868 #: ../src/guestfs-availability.pod:105
13869 msgid "B<ntfsprogs>"
13870 msgstr ""
13871
13872 # type: textblock
13873 #: ../src/guestfs-availability.pod:107
13874 msgid ""
13875 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
13876 msgstr ""
13877
13878 # type: =item
13879 #: ../src/guestfs-availability.pod:111
13880 msgid "B<realpath>"
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-availability.pod:113
13885 msgid "The following functions: L</guestfs_realpath>"
13886 msgstr ""
13887
13888 # type: =item
13889 #: ../src/guestfs-availability.pod:116
13890 msgid "B<scrub>"
13891 msgstr ""
13892
13893 # type: textblock
13894 #: ../src/guestfs-availability.pod:118
13895 msgid ""
13896 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
13897 "guestfs_scrub_freespace>"
13898 msgstr ""
13899
13900 # type: =item
13901 #: ../src/guestfs-availability.pod:123
13902 msgid "B<selinux>"
13903 msgstr ""
13904
13905 # type: textblock
13906 #: ../src/guestfs-availability.pod:125
13907 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
13908 msgstr ""
13909
13910 # type: =item
13911 #: ../src/guestfs-availability.pod:129
13912 msgid "B<xz>"
13913 msgstr ""
13914
13915 # type: textblock
13916 #: ../src/guestfs-availability.pod:131
13917 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
13918 msgstr ""
13919
13920 # type: =item
13921 #: ../src/guestfs-availability.pod:135
13922 msgid "B<zerofree>"
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-availability.pod:137
13927 msgid "The following functions: L</guestfs_zerofree>"
13928 msgstr ""
13929
13930 # type: =head2
13931 #: ../src/guestfs-structs.pod:1
13932 msgid "guestfs_int_bool"
13933 msgstr ""
13934
13935 # type: verbatim
13936 #: ../src/guestfs-structs.pod:3
13937 #, no-wrap
13938 msgid ""
13939 " struct guestfs_int_bool {\n"
13940 "   int32_t i;\n"
13941 "   int32_t b;\n"
13942 " };\n"
13943 " \n"
13944 msgstr ""
13945
13946 # type: verbatim
13947 #: ../src/guestfs-structs.pod:8
13948 #, no-wrap
13949 msgid ""
13950 " struct guestfs_int_bool_list {\n"
13951 "   uint32_t len; /* Number of elements in list. */\n"
13952 "   struct guestfs_int_bool *val; /* Elements. */\n"
13953 " };\n"
13954 " \n"
13955 msgstr ""
13956
13957 # type: verbatim
13958 #: ../src/guestfs-structs.pod:13
13959 #, no-wrap
13960 msgid ""
13961 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
13962 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
13963 "\n"
13964 msgstr ""
13965
13966 # type: =head2
13967 #: ../src/guestfs-structs.pod:16
13968 msgid "guestfs_lvm_pv"
13969 msgstr ""
13970
13971 # type: verbatim
13972 #: ../src/guestfs-structs.pod:18
13973 #, no-wrap
13974 msgid ""
13975 " struct guestfs_lvm_pv {\n"
13976 "   char *pv_name;\n"
13977 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
13978 "   char pv_uuid[32];\n"
13979 "   char *pv_fmt;\n"
13980 "   uint64_t pv_size;\n"
13981 "   uint64_t dev_size;\n"
13982 "   uint64_t pv_free;\n"
13983 "   uint64_t pv_used;\n"
13984 "   char *pv_attr;\n"
13985 "   int64_t pv_pe_count;\n"
13986 "   int64_t pv_pe_alloc_count;\n"
13987 "   char *pv_tags;\n"
13988 "   uint64_t pe_start;\n"
13989 "   int64_t pv_mda_count;\n"
13990 "   uint64_t pv_mda_free;\n"
13991 " };\n"
13992 " \n"
13993 msgstr ""
13994
13995 # type: verbatim
13996 #: ../src/guestfs-structs.pod:36
13997 #, no-wrap
13998 msgid ""
13999 " struct guestfs_lvm_pv_list {\n"
14000 "   uint32_t len; /* Number of elements in list. */\n"
14001 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14002 " };\n"
14003 " \n"
14004 msgstr ""
14005
14006 # type: verbatim
14007 #: ../src/guestfs-structs.pod:41
14008 #, no-wrap
14009 msgid ""
14010 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14011 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14012 "\n"
14013 msgstr ""
14014
14015 # type: =head2
14016 #: ../src/guestfs-structs.pod:44
14017 msgid "guestfs_lvm_vg"
14018 msgstr ""
14019
14020 # type: verbatim
14021 #: ../src/guestfs-structs.pod:46
14022 #, no-wrap
14023 msgid ""
14024 " struct guestfs_lvm_vg {\n"
14025 "   char *vg_name;\n"
14026 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14027 "   char vg_uuid[32];\n"
14028 "   char *vg_fmt;\n"
14029 "   char *vg_attr;\n"
14030 "   uint64_t vg_size;\n"
14031 "   uint64_t vg_free;\n"
14032 "   char *vg_sysid;\n"
14033 "   uint64_t vg_extent_size;\n"
14034 "   int64_t vg_extent_count;\n"
14035 "   int64_t vg_free_count;\n"
14036 "   int64_t max_lv;\n"
14037 "   int64_t max_pv;\n"
14038 "   int64_t pv_count;\n"
14039 "   int64_t lv_count;\n"
14040 "   int64_t snap_count;\n"
14041 "   int64_t vg_seqno;\n"
14042 "   char *vg_tags;\n"
14043 "   int64_t vg_mda_count;\n"
14044 "   uint64_t vg_mda_free;\n"
14045 " };\n"
14046 " \n"
14047 msgstr ""
14048
14049 # type: verbatim
14050 #: ../src/guestfs-structs.pod:69
14051 #, no-wrap
14052 msgid ""
14053 " struct guestfs_lvm_vg_list {\n"
14054 "   uint32_t len; /* Number of elements in list. */\n"
14055 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14056 " };\n"
14057 " \n"
14058 msgstr ""
14059
14060 # type: verbatim
14061 #: ../src/guestfs-structs.pod:74
14062 #, no-wrap
14063 msgid ""
14064 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14065 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14066 "\n"
14067 msgstr ""
14068
14069 # type: =head2
14070 #: ../src/guestfs-structs.pod:77
14071 msgid "guestfs_lvm_lv"
14072 msgstr ""
14073
14074 # type: verbatim
14075 #: ../src/guestfs-structs.pod:79
14076 #, no-wrap
14077 msgid ""
14078 " struct guestfs_lvm_lv {\n"
14079 "   char *lv_name;\n"
14080 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14081 "   char lv_uuid[32];\n"
14082 "   char *lv_attr;\n"
14083 "   int64_t lv_major;\n"
14084 "   int64_t lv_minor;\n"
14085 "   int64_t lv_kernel_major;\n"
14086 "   int64_t lv_kernel_minor;\n"
14087 "   uint64_t lv_size;\n"
14088 "   int64_t seg_count;\n"
14089 "   char *origin;\n"
14090 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14091 "   float snap_percent;\n"
14092 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14093 "   float copy_percent;\n"
14094 "   char *move_pv;\n"
14095 "   char *lv_tags;\n"
14096 "   char *mirror_log;\n"
14097 "   char *modules;\n"
14098 " };\n"
14099 " \n"
14100 msgstr ""
14101
14102 # type: verbatim
14103 #: ../src/guestfs-structs.pod:101
14104 #, no-wrap
14105 msgid ""
14106 " struct guestfs_lvm_lv_list {\n"
14107 "   uint32_t len; /* Number of elements in list. */\n"
14108 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14109 " };\n"
14110 " \n"
14111 msgstr ""
14112
14113 # type: verbatim
14114 #: ../src/guestfs-structs.pod:106
14115 #, no-wrap
14116 msgid ""
14117 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14118 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14119 "\n"
14120 msgstr ""
14121
14122 # type: verbatim
14123 #: ../src/guestfs-structs.pod:111
14124 #, no-wrap
14125 msgid ""
14126 " struct guestfs_stat {\n"
14127 "   int64_t dev;\n"
14128 "   int64_t ino;\n"
14129 "   int64_t mode;\n"
14130 "   int64_t nlink;\n"
14131 "   int64_t uid;\n"
14132 "   int64_t gid;\n"
14133 "   int64_t rdev;\n"
14134 "   int64_t size;\n"
14135 "   int64_t blksize;\n"
14136 "   int64_t blocks;\n"
14137 "   int64_t atime;\n"
14138 "   int64_t mtime;\n"
14139 "   int64_t ctime;\n"
14140 " };\n"
14141 " \n"
14142 msgstr ""
14143
14144 # type: verbatim
14145 #: ../src/guestfs-structs.pod:127
14146 #, no-wrap
14147 msgid ""
14148 " struct guestfs_stat_list {\n"
14149 "   uint32_t len; /* Number of elements in list. */\n"
14150 "   struct guestfs_stat *val; /* Elements. */\n"
14151 " };\n"
14152 " \n"
14153 msgstr ""
14154
14155 # type: verbatim
14156 #: ../src/guestfs-structs.pod:132
14157 #, no-wrap
14158 msgid ""
14159 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14160 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14161 "\n"
14162 msgstr ""
14163
14164 # type: verbatim
14165 #: ../src/guestfs-structs.pod:137
14166 #, no-wrap
14167 msgid ""
14168 " struct guestfs_statvfs {\n"
14169 "   int64_t bsize;\n"
14170 "   int64_t frsize;\n"
14171 "   int64_t blocks;\n"
14172 "   int64_t bfree;\n"
14173 "   int64_t bavail;\n"
14174 "   int64_t files;\n"
14175 "   int64_t ffree;\n"
14176 "   int64_t favail;\n"
14177 "   int64_t fsid;\n"
14178 "   int64_t flag;\n"
14179 "   int64_t namemax;\n"
14180 " };\n"
14181 " \n"
14182 msgstr ""
14183
14184 # type: verbatim
14185 #: ../src/guestfs-structs.pod:151
14186 #, no-wrap
14187 msgid ""
14188 " struct guestfs_statvfs_list {\n"
14189 "   uint32_t len; /* Number of elements in list. */\n"
14190 "   struct guestfs_statvfs *val; /* Elements. */\n"
14191 " };\n"
14192 " \n"
14193 msgstr ""
14194
14195 # type: verbatim
14196 #: ../src/guestfs-structs.pod:156
14197 #, no-wrap
14198 msgid ""
14199 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14200 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14201 "\n"
14202 msgstr ""
14203
14204 # type: =head2
14205 #: ../src/guestfs-structs.pod:159
14206 msgid "guestfs_dirent"
14207 msgstr ""
14208
14209 # type: verbatim
14210 #: ../src/guestfs-structs.pod:161
14211 #, no-wrap
14212 msgid ""
14213 " struct guestfs_dirent {\n"
14214 "   int64_t ino;\n"
14215 "   char ftyp;\n"
14216 "   char *name;\n"
14217 " };\n"
14218 " \n"
14219 msgstr ""
14220
14221 # type: verbatim
14222 #: ../src/guestfs-structs.pod:167
14223 #, no-wrap
14224 msgid ""
14225 " struct guestfs_dirent_list {\n"
14226 "   uint32_t len; /* Number of elements in list. */\n"
14227 "   struct guestfs_dirent *val; /* Elements. */\n"
14228 " };\n"
14229 " \n"
14230 msgstr ""
14231
14232 # type: verbatim
14233 #: ../src/guestfs-structs.pod:172
14234 #, no-wrap
14235 msgid ""
14236 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14237 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14238 "\n"
14239 msgstr ""
14240
14241 # type: verbatim
14242 #: ../src/guestfs-structs.pod:177
14243 #, no-wrap
14244 msgid ""
14245 " struct guestfs_version {\n"
14246 "   int64_t major;\n"
14247 "   int64_t minor;\n"
14248 "   int64_t release;\n"
14249 "   char *extra;\n"
14250 " };\n"
14251 " \n"
14252 msgstr ""
14253
14254 # type: verbatim
14255 #: ../src/guestfs-structs.pod:184
14256 #, no-wrap
14257 msgid ""
14258 " struct guestfs_version_list {\n"
14259 "   uint32_t len; /* Number of elements in list. */\n"
14260 "   struct guestfs_version *val; /* Elements. */\n"
14261 " };\n"
14262 " \n"
14263 msgstr ""
14264
14265 # type: verbatim
14266 #: ../src/guestfs-structs.pod:189
14267 #, no-wrap
14268 msgid ""
14269 " void guestfs_free_version (struct guestfs_free_version *);\n"
14270 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14271 "\n"
14272 msgstr ""
14273
14274 # type: =head2
14275 #: ../src/guestfs-structs.pod:192
14276 msgid "guestfs_xattr"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-structs.pod:194
14281 #, no-wrap
14282 msgid ""
14283 " struct guestfs_xattr {\n"
14284 "   char *attrname;\n"
14285 "   /* The next two fields describe a byte array. */\n"
14286 "   uint32_t attrval_len;\n"
14287 "   char *attrval;\n"
14288 " };\n"
14289 " \n"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #: ../src/guestfs-structs.pod:201
14294 #, no-wrap
14295 msgid ""
14296 " struct guestfs_xattr_list {\n"
14297 "   uint32_t len; /* Number of elements in list. */\n"
14298 "   struct guestfs_xattr *val; /* Elements. */\n"
14299 " };\n"
14300 " \n"
14301 msgstr ""
14302
14303 # type: verbatim
14304 #: ../src/guestfs-structs.pod:206
14305 #, no-wrap
14306 msgid ""
14307 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14308 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14309 "\n"
14310 msgstr ""
14311
14312 # type: =head2
14313 #: ../src/guestfs-structs.pod:209
14314 msgid "guestfs_inotify_event"
14315 msgstr ""
14316
14317 # type: verbatim
14318 #: ../src/guestfs-structs.pod:211
14319 #, no-wrap
14320 msgid ""
14321 " struct guestfs_inotify_event {\n"
14322 "   int64_t in_wd;\n"
14323 "   uint32_t in_mask;\n"
14324 "   uint32_t in_cookie;\n"
14325 "   char *in_name;\n"
14326 " };\n"
14327 " \n"
14328 msgstr ""
14329
14330 # type: verbatim
14331 #: ../src/guestfs-structs.pod:218
14332 #, no-wrap
14333 msgid ""
14334 " struct guestfs_inotify_event_list {\n"
14335 "   uint32_t len; /* Number of elements in list. */\n"
14336 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14337 " };\n"
14338 " \n"
14339 msgstr ""
14340
14341 # type: verbatim
14342 #: ../src/guestfs-structs.pod:223
14343 #, no-wrap
14344 msgid ""
14345 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14346 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
14347 "\n"
14348 msgstr ""
14349
14350 # type: =head2
14351 #: ../src/guestfs-structs.pod:226
14352 msgid "guestfs_partition"
14353 msgstr ""
14354
14355 # type: verbatim
14356 #: ../src/guestfs-structs.pod:228
14357 #, no-wrap
14358 msgid ""
14359 " struct guestfs_partition {\n"
14360 "   int32_t part_num;\n"
14361 "   uint64_t part_start;\n"
14362 "   uint64_t part_end;\n"
14363 "   uint64_t part_size;\n"
14364 " };\n"
14365 " \n"
14366 msgstr ""
14367
14368 # type: verbatim
14369 #: ../src/guestfs-structs.pod:235
14370 #, no-wrap
14371 msgid ""
14372 " struct guestfs_partition_list {\n"
14373 "   uint32_t len; /* Number of elements in list. */\n"
14374 "   struct guestfs_partition *val; /* Elements. */\n"
14375 " };\n"
14376 " \n"
14377 msgstr ""
14378
14379 # type: verbatim
14380 #: ../src/guestfs-structs.pod:240
14381 #, no-wrap
14382 msgid ""
14383 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14384 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14385 "\n"
14386 msgstr ""
14387
14388 # type: textblock
14389 #: ../fish/guestfish.pod:5
14390 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14391 msgstr ""
14392
14393 # type: verbatim
14394 #: ../fish/guestfish.pod:9
14395 #, no-wrap
14396 msgid ""
14397 " guestfish [--options] [commands]\n"
14398 "\n"
14399 msgstr ""
14400
14401 # type: verbatim
14402 #: ../fish/guestfish.pod:11
14403 #, no-wrap
14404 msgid ""
14405 " guestfish\n"
14406 "\n"
14407 msgstr ""
14408
14409 # type: verbatim
14410 #: ../fish/guestfish.pod:13
14411 #, no-wrap
14412 msgid ""
14413 " guestfish -a disk.img\n"
14414 "\n"
14415 msgstr ""
14416
14417 # type: verbatim
14418 #: ../fish/guestfish.pod:15
14419 #, no-wrap
14420 msgid ""
14421 " guestfish -a disk.img -m dev[:mountpoint]\n"
14422 "\n"
14423 msgstr ""
14424
14425 # type: verbatim
14426 #: ../fish/guestfish.pod:17
14427 #, no-wrap
14428 msgid ""
14429 " guestfish -d libvirt-domain\n"
14430 "\n"
14431 msgstr ""
14432
14433 # type: verbatim
14434 #: ../fish/guestfish.pod:19
14435 #, no-wrap
14436 msgid ""
14437 " guestfish -a disk.img -i\n"
14438 "\n"
14439 msgstr ""
14440
14441 # type: verbatim
14442 #: ../fish/guestfish.pod:21
14443 #, no-wrap
14444 msgid ""
14445 " guestfish -d libvirt-domain -i\n"
14446 "\n"
14447 msgstr ""
14448
14449 # type: =head1
14450 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45
14451 #: ../tools/virt-rescue.pl:41 ../tools/virt-tar.pl:60
14452 #: ../tools/virt-win-reg.pl:52
14453 msgid "WARNING"
14454 msgstr ""
14455
14456 # type: textblock
14457 #: ../fish/guestfish.pod:25
14458 msgid ""
14459 "Using guestfish in read/write mode on live virtual machines can be "
14460 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14461 "option to use guestfish safely if the disk image or virtual machine might be "
14462 "live."
14463 msgstr ""
14464
14465 # type: =head1
14466 #: ../fish/guestfish.pod:30 ../fish/guestfish.pod:729
14467 #: ../fuse/guestmount.pod:35 ../tools/virt-cat.pl:51 ../tools/virt-edit.pl:59
14468 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:46
14469 msgid "EXAMPLES"
14470 msgstr ""
14471
14472 # type: =head2
14473 #: ../fish/guestfish.pod:32
14474 msgid "As an interactive shell"
14475 msgstr ""
14476
14477 # type: verbatim
14478 #: ../fish/guestfish.pod:34
14479 #, no-wrap
14480 msgid ""
14481 " $ guestfish\n"
14482 " \n"
14483 msgstr ""
14484
14485 # type: verbatim
14486 #: ../fish/guestfish.pod:36
14487 #, no-wrap
14488 msgid ""
14489 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14490 " editing virtual machine filesystems.\n"
14491 " \n"
14492 msgstr ""
14493
14494 # type: verbatim
14495 #: ../fish/guestfish.pod:39
14496 #, no-wrap
14497 msgid ""
14498 " Type: 'help' for a list of commands\n"
14499 "       'man' to read the manual\n"
14500 "       'quit' to quit the shell\n"
14501 " \n"
14502 msgstr ""
14503
14504 # type: verbatim
14505 #: ../fish/guestfish.pod:43
14506 #, no-wrap
14507 msgid ""
14508 " ><fs> man\n"
14509 "\n"
14510 msgstr ""
14511
14512 # type: =head2
14513 #: ../fish/guestfish.pod:45
14514 msgid "From shell scripts"
14515 msgstr ""
14516
14517 # type: textblock
14518 #: ../fish/guestfish.pod:47
14519 msgid "Create a new C</etc/motd> file in a guest:"
14520 msgstr ""
14521
14522 # type: verbatim
14523 #: ../fish/guestfish.pod:49
14524 #, no-wrap
14525 msgid ""
14526 " guestfish <<_EOF_\n"
14527 " add disk.img\n"
14528 " run\n"
14529 " mount /dev/vg_guest/lv_root /\n"
14530 " write /etc/motd \"Welcome, new users\"\n"
14531 " _EOF_\n"
14532 "\n"
14533 msgstr ""
14534
14535 # type: textblock
14536 #: ../fish/guestfish.pod:56
14537 msgid "List the LVM logical volumes in a guest:"
14538 msgstr ""
14539
14540 # type: verbatim
14541 #: ../fish/guestfish.pod:58
14542 #, no-wrap
14543 msgid ""
14544 " guestfish -a disk.img --ro <<_EOF_\n"
14545 " run\n"
14546 " lvs\n"
14547 " _EOF_\n"
14548 "\n"
14549 msgstr ""
14550
14551 # type: =head2
14552 #: ../fish/guestfish.pod:63
14553 msgid "On one command line"
14554 msgstr ""
14555
14556 # type: textblock
14557 #: ../fish/guestfish.pod:65
14558 msgid "Update C</etc/resolv.conf> in a guest:"
14559 msgstr ""
14560
14561 # type: verbatim
14562 #: ../fish/guestfish.pod:67
14563 #, no-wrap
14564 msgid ""
14565 " guestfish \\\n"
14566 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14567 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14568 "\n"
14569 msgstr ""
14570
14571 # type: textblock
14572 #: ../fish/guestfish.pod:71
14573 msgid "Edit C</boot/grub/grub.conf> interactively:"
14574 msgstr ""
14575
14576 # type: verbatim
14577 #: ../fish/guestfish.pod:73
14578 #, no-wrap
14579 msgid ""
14580 " guestfish --add disk.img \\\n"
14581 "   --mount /dev/vg_guest/lv_root \\\n"
14582 "   --mount /dev/sda1:/boot \\\n"
14583 "   edit /boot/grub/grub.conf\n"
14584 "\n"
14585 msgstr ""
14586
14587 # type: =head2
14588 #: ../fish/guestfish.pod:78
14589 msgid "Mount disks automatically"
14590 msgstr ""
14591
14592 # type: textblock
14593 #: ../fish/guestfish.pod:80
14594 msgid ""
14595 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
14596 msgstr ""
14597
14598 # type: verbatim
14599 #: ../fish/guestfish.pod:83
14600 #, no-wrap
14601 msgid ""
14602 " guestfish --ro -a disk.img -i cat /etc/group\n"
14603 "\n"
14604 msgstr ""
14605
14606 # type: verbatim
14607 #: ../fish/guestfish.pod:85
14608 #, no-wrap
14609 msgid ""
14610 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14611 "\n"
14612 msgstr ""
14613
14614 # type: =head2
14615 #: ../fish/guestfish.pod:87
14616 msgid "As a script interpreter"
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../fish/guestfish.pod:89
14621 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14622 msgstr ""
14623
14624 # type: verbatim
14625 #: ../fish/guestfish.pod:91
14626 #, no-wrap
14627 msgid ""
14628 " #!/usr/bin/guestfish -f\n"
14629 " sparse test1.img 100M\n"
14630 " run\n"
14631 " part-disk /dev/sda mbr\n"
14632 " mkfs ext2 /dev/sda1\n"
14633 "\n"
14634 msgstr ""
14635
14636 # type: =head2
14637 #: ../fish/guestfish.pod:97
14638 msgid "Start with a prepared disk"
14639 msgstr ""
14640
14641 # type: textblock
14642 #: ../fish/guestfish.pod:99
14643 msgid ""
14644 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14645 "single ext2-formatted partition:"
14646 msgstr ""
14647
14648 # type: verbatim
14649 #: ../fish/guestfish.pod:102
14650 #, no-wrap
14651 msgid ""
14652 " guestfish -N fs\n"
14653 "\n"
14654 msgstr ""
14655
14656 # type: textblock
14657 #: ../fish/guestfish.pod:104
14658 msgid "To list what is available do:"
14659 msgstr ""
14660
14661 # type: verbatim
14662 #: ../fish/guestfish.pod:106 ../fish/guestfish.pod:720
14663 #, no-wrap
14664 msgid ""
14665 " guestfish -N help | less\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: =head2
14670 #: ../fish/guestfish.pod:108
14671 msgid "Remote control"
14672 msgstr ""
14673
14674 # type: verbatim
14675 #: ../fish/guestfish.pod:110
14676 #, no-wrap
14677 msgid ""
14678 " eval `guestfish --listen --ro`\n"
14679 " guestfish --remote add disk.img\n"
14680 " guestfish --remote run\n"
14681 " guestfish --remote lvs\n"
14682 "\n"
14683 msgstr ""
14684
14685 # type: textblock
14686 #: ../fish/guestfish.pod:117
14687 msgid ""
14688 "Guestfish is a shell and command-line tool for examining and modifying "
14689 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14690 "functionality of the guestfs API, see L<guestfs(3)>."
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../fish/guestfish.pod:121
14695 msgid ""
14696 "Guestfish gives you structured access to the libguestfs API, from shell "
14697 "scripts or the command line or interactively.  If you want to rescue a "
14698 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14699 "command."
14700 msgstr ""
14701
14702 # type: =head1
14703 #: ../fish/guestfish.pod:126 ../test-tool/libguestfs-test-tool.pod:37
14704 #: ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75
14705 #: ../tools/virt-cat.pl:80 ../tools/virt-df.pl:71 ../tools/virt-edit.pl:73
14706 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-list-partitions.pl:51
14707 #: ../tools/virt-ls.pl:79 ../tools/virt-make-fs.pl:153
14708 #: ../tools/virt-rescue.pl:103 ../tools/virt-resize.pl:233
14709 #: ../tools/virt-tar.pl:99 ../tools/virt-win-reg.pl:172
14710 msgid "OPTIONS"
14711 msgstr ""
14712
14713 # type: =item
14714 #: ../fish/guestfish.pod:130 ../fuse/guestmount.pod:94
14715 #: ../inspector/virt-inspector.pl:83 ../tools/virt-cat.pl:88
14716 #: ../tools/virt-df.pl:79 ../tools/virt-edit.pl:81
14717 #: ../tools/virt-list-filesystems.pl:58 ../tools/virt-list-partitions.pl:59
14718 #: ../tools/virt-ls.pl:87 ../tools/virt-make-fs.pl:161
14719 #: ../tools/virt-rescue.pl:111 ../tools/virt-resize.pl:241
14720 #: ../tools/virt-tar.pl:107 ../tools/virt-win-reg.pl:180
14721 msgid "B<--help>"
14722 msgstr ""
14723
14724 # type: textblock
14725 #: ../fish/guestfish.pod:132
14726 msgid "Displays general help on options."
14727 msgstr ""
14728
14729 # type: =item
14730 #: ../fish/guestfish.pod:134
14731 msgid "B<-h> | B<--cmd-help>"
14732 msgstr ""
14733
14734 # type: textblock
14735 #: ../fish/guestfish.pod:136
14736 msgid "Lists all available guestfish commands."
14737 msgstr ""
14738
14739 # type: =item
14740 #: ../fish/guestfish.pod:138
14741 msgid "B<-h cmd> | B<--cmd-help cmd>"
14742 msgstr ""
14743
14744 # type: textblock
14745 #: ../fish/guestfish.pod:140
14746 msgid "Displays detailed help on a single command C<cmd>."
14747 msgstr ""
14748
14749 # type: =item
14750 #: ../fish/guestfish.pod:142 ../fuse/guestmount.pod:74
14751 msgid "B<-a image> | B<--add image>"
14752 msgstr ""
14753
14754 # type: textblock
14755 #: ../fish/guestfish.pod:144
14756 msgid "Add a block device or virtual machine image to the shell."
14757 msgstr ""
14758
14759 # type: =item
14760 #: ../fish/guestfish.pod:146
14761 msgid "B<-c URI> | B<--connect URI>"
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../fish/guestfish.pod:148
14766 msgid ""
14767 "When used in conjunction with the I<-d> option, this specifies the libvirt "
14768 "URI to use.  The default is to use the default libvirt connection."
14769 msgstr ""
14770
14771 # type: =item
14772 #: ../fish/guestfish.pod:152
14773 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
14774 msgstr ""
14775
14776 # type: textblock
14777 #: ../fish/guestfish.pod:154
14778 msgid ""
14779 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
14780 "used, then any libvirt domain can be used.  However in write mode, only "
14781 "libvirt domains which are shut down can be named here."
14782 msgstr ""
14783
14784 # type: =item
14785 #: ../fish/guestfish.pod:158
14786 msgid "B<-D> | B<--no-dest-paths>"
14787 msgstr ""
14788
14789 # type: textblock
14790 #: ../fish/guestfish.pod:160
14791 msgid ""
14792 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
14793 "to hit the tab key to complete paths on the guest filesystem, but this "
14794 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
14795 "allow this feature to be disabled."
14796 msgstr ""
14797
14798 # type: =item
14799 #: ../fish/guestfish.pod:165
14800 msgid "B<-f file> | B<--file file>"
14801 msgstr ""
14802
14803 # type: textblock
14804 #: ../fish/guestfish.pod:167
14805 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
14806 msgstr ""
14807
14808 # type: verbatim
14809 #: ../fish/guestfish.pod:170
14810 #, no-wrap
14811 msgid ""
14812 " #!/usr/bin/guestfish -f\n"
14813 "\n"
14814 msgstr ""
14815
14816 # type: =item
14817 #: ../fish/guestfish.pod:172
14818 msgid "B<-i> | B<--inspector>"
14819 msgstr ""
14820
14821 # type: textblock
14822 #: ../fish/guestfish.pod:174
14823 msgid ""
14824 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
14825 "system and mount filesystems as they would be mounted on the real virtual "
14826 "machine."
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../fish/guestfish.pod:178
14831 msgid "Typical usage is either:"
14832 msgstr ""
14833
14834 # type: verbatim
14835 #: ../fish/guestfish.pod:180
14836 #, no-wrap
14837 msgid ""
14838 " guestfish -d myguest -i\n"
14839 "\n"
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../fish/guestfish.pod:182
14844 msgid "(for an inactive libvirt domain called I<myguest>), or:"
14845 msgstr ""
14846
14847 # type: verbatim
14848 #: ../fish/guestfish.pod:184
14849 #, no-wrap
14850 msgid ""
14851 " guestfish --ro -d myguest -i\n"
14852 "\n"
14853 msgstr ""
14854
14855 # type: textblock
14856 #: ../fish/guestfish.pod:186
14857 msgid "(for active domains, readonly), or specify the block device directly:"
14858 msgstr ""
14859
14860 # type: verbatim
14861 #: ../fish/guestfish.pod:188
14862 #, no-wrap
14863 msgid ""
14864 " guestfish -a /dev/Guests/MyGuest -i\n"
14865 "\n"
14866 msgstr ""
14867
14868 # type: textblock
14869 #: ../fish/guestfish.pod:190
14870 msgid ""
14871 "Note that the command line syntax changed slightly over older versions of "
14872 "guestfish.  You can still use the old syntax:"
14873 msgstr ""
14874
14875 # type: verbatim
14876 #: ../fish/guestfish.pod:193
14877 #, no-wrap
14878 msgid ""
14879 " guestfish [--ro] -i disk.img\n"
14880 "\n"
14881 msgstr ""
14882
14883 # type: verbatim
14884 #: ../fish/guestfish.pod:195
14885 #, no-wrap
14886 msgid ""
14887 " guestfish [--ro] -i libvirt-domain\n"
14888 "\n"
14889 msgstr ""
14890
14891 # type: =item
14892 #: ../fish/guestfish.pod:197
14893 msgid "B<--keys-from-stdin>"
14894 msgstr ""
14895
14896 # type: textblock
14897 #: ../fish/guestfish.pod:199
14898 msgid ""
14899 "Read key or passphrase parameters from stdin.  The default is to try to read "
14900 "passphrases from the user by opening C</dev/tty>."
14901 msgstr ""
14902
14903 # type: =item
14904 #: ../fish/guestfish.pod:202
14905 msgid "B<--listen>"
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../fish/guestfish.pod:204
14910 msgid ""
14911 "Fork into the background and listen for remote commands.  See section L</"
14912 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
14913 msgstr ""
14914
14915 # type: =item
14916 #: ../fish/guestfish.pod:207
14917 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
14918 msgstr ""
14919
14920 # type: textblock
14921 #: ../fish/guestfish.pod:209
14922 msgid "Mount the named partition or logical volume on the given mountpoint."
14923 msgstr ""
14924
14925 # type: textblock
14926 #: ../fish/guestfish.pod:211
14927 msgid "If the mountpoint is omitted, it defaults to C</>."
14928 msgstr ""
14929
14930 # type: textblock
14931 #: ../fish/guestfish.pod:213
14932 msgid "You have to mount something on C</> before most commands will work."
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../fish/guestfish.pod:215
14937 msgid ""
14938 "If any I<-m> or I<--mount> options are given, the guest is automatically "
14939 "launched."
14940 msgstr ""
14941
14942 # type: textblock
14943 #: ../fish/guestfish.pod:218
14944 msgid ""
14945 "If you don't know what filesystems a disk image contains, you can either run "
14946 "guestfish without this option, then list the partitions and LVs available "
14947 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
14948 "list-filesystems(1)> program."
14949 msgstr ""
14950
14951 # type: =item
14952 #: ../fish/guestfish.pod:223 ../fuse/guestmount.pod:106
14953 msgid "B<-n> | B<--no-sync>"
14954 msgstr ""
14955
14956 # type: textblock
14957 #: ../fish/guestfish.pod:225
14958 msgid ""
14959 "Disable autosync.  This is enabled by default.  See the discussion of "
14960 "autosync in the L<guestfs(3)> manpage."
14961 msgstr ""
14962
14963 # type: =item
14964 #: ../fish/guestfish.pod:228
14965 msgid "B<-N type> | B<--new type> | B<-N help>"
14966 msgstr ""
14967
14968 # type: textblock
14969 #: ../fish/guestfish.pod:230
14970 msgid ""
14971 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
14972 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
14973 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
14974 "IMAGES> below."
14975 msgstr ""
14976
14977 # type: =item
14978 #: ../fish/guestfish.pod:235
14979 msgid "B<--progress-bars>"
14980 msgstr ""
14981
14982 # type: textblock
14983 #: ../fish/guestfish.pod:237
14984 msgid "Enable progress bars, even when guestfish is used non-interactively."
14985 msgstr ""
14986
14987 # type: textblock
14988 #: ../fish/guestfish.pod:239
14989 msgid ""
14990 "Progress bars are enabled by default when guestfish is used as an "
14991 "interactive shell."
14992 msgstr ""
14993
14994 # type: =item
14995 #: ../fish/guestfish.pod:242
14996 msgid "B<--no-progress-bars>"
14997 msgstr ""
14998
14999 # type: textblock
15000 #: ../fish/guestfish.pod:244
15001 msgid "Disable progress bars."
15002 msgstr ""
15003
15004 # type: =item
15005 #: ../fish/guestfish.pod:246
15006 msgid "B<--remote[=pid]>"
15007 msgstr ""
15008
15009 # type: textblock
15010 #: ../fish/guestfish.pod:248
15011 msgid ""
15012 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15013 "CONTROL GUESTFISH OVER A SOCKET> below."
15014 msgstr ""
15015
15016 # type: =item
15017 #: ../fish/guestfish.pod:251 ../fuse/guestmount.pod:148
15018 msgid "B<-r> | B<--ro>"
15019 msgstr ""
15020
15021 # type: textblock
15022 #: ../fish/guestfish.pod:253
15023 msgid ""
15024 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15025 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15026 msgstr ""
15027
15028 # type: textblock
15029 #: ../fish/guestfish.pod:256 ../tools/virt-rescue.pl:162
15030 msgid ""
15031 "The option must always be used if the disk image or virtual machine might be "
15032 "running, and is generally recommended in cases where you don't need write "
15033 "access to the disk."
15034 msgstr ""
15035
15036 # type: textblock
15037 #: ../fish/guestfish.pod:260
15038 msgid ""
15039 "Note that prepared disk images created with I<-N> are not affected by the "
15040 "I<--ro> option."
15041 msgstr ""
15042
15043 # type: =item
15044 #: ../fish/guestfish.pod:263 ../fuse/guestmount.pod:158
15045 #: ../tools/virt-rescue.pl:170
15046 msgid "B<--selinux>"
15047 msgstr ""
15048
15049 # type: textblock
15050 #: ../fish/guestfish.pod:265
15051 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15052 msgstr ""
15053
15054 # type: =item
15055 #: ../fish/guestfish.pod:267 ../fuse/guestmount.pod:168
15056 msgid "B<-v> | B<--verbose>"
15057 msgstr ""
15058
15059 # type: textblock
15060 #: ../fish/guestfish.pod:269
15061 msgid ""
15062 "Enable very verbose messages.  This is particularly useful if you find a bug."
15063 msgstr ""
15064
15065 # type: =item
15066 #: ../fish/guestfish.pod:272 ../fuse/guestmount.pod:172
15067 msgid "B<-V> | B<--version>"
15068 msgstr ""
15069
15070 # type: textblock
15071 #: ../fish/guestfish.pod:274
15072 msgid "Display the guestfish / libguestfs version number and exit."
15073 msgstr ""
15074
15075 # type: =item
15076 #: ../fish/guestfish.pod:276
15077 msgid "B<-x>"
15078 msgstr ""
15079
15080 # type: textblock
15081 #: ../fish/guestfish.pod:278
15082 msgid "Echo each command before executing it."
15083 msgstr ""
15084
15085 # type: =head1
15086 #: ../fish/guestfish.pod:282
15087 msgid "COMMANDS ON COMMAND LINE"
15088 msgstr ""
15089
15090 # type: textblock
15091 #: ../fish/guestfish.pod:284
15092 msgid ""
15093 "Any additional (non-option) arguments are treated as commands to execute."
15094 msgstr ""
15095
15096 # type: textblock
15097 #: ../fish/guestfish.pod:287
15098 msgid ""
15099 "Commands to execute should be separated by a colon (C<:>), where the colon "
15100 "is a separate parameter.  Thus:"
15101 msgstr ""
15102
15103 # type: verbatim
15104 #: ../fish/guestfish.pod:290
15105 #, no-wrap
15106 msgid ""
15107 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15108 "\n"
15109 msgstr ""
15110
15111 # type: textblock
15112 #: ../fish/guestfish.pod:292
15113 msgid ""
15114 "If there are no additional arguments, then we enter a shell, either an "
15115 "interactive shell with a prompt (if the input is a terminal) or a non-"
15116 "interactive shell."
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../fish/guestfish.pod:296
15121 msgid ""
15122 "In either command line mode or non-interactive shell, the first command that "
15123 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15124 "prompt) if a command fails, you can continue to enter commands."
15125 msgstr ""
15126
15127 # type: =head1
15128 #: ../fish/guestfish.pod:301
15129 msgid "USING launch (OR run)"
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../fish/guestfish.pod:303
15134 msgid ""
15135 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15136 "then launch it, then mount any disks you need, and finally issue actions/"
15137 "commands.  So the general order of the day is:"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../fish/guestfish.pod:311
15142 msgid "add or -a/--add"
15143 msgstr ""
15144
15145 # type: textblock
15146 #: ../fish/guestfish.pod:315
15147 msgid "launch (aka run)"
15148 msgstr ""
15149
15150 # type: textblock
15151 #: ../fish/guestfish.pod:319
15152 msgid "mount or -m/--mount"
15153 msgstr ""
15154
15155 # type: textblock
15156 #: ../fish/guestfish.pod:323
15157 msgid "any other commands"
15158 msgstr ""
15159
15160 # type: textblock
15161 #: ../fish/guestfish.pod:327
15162 msgid ""
15163 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15164 "guest before mounting or performing any other commands."
15165 msgstr ""
15166
15167 # type: textblock
15168 #: ../fish/guestfish.pod:330
15169 msgid ""
15170 "The only exception is that if the I<-m> or I<--mount> option was given, the "
15171 "guest is automatically run for you (simply because guestfish can't mount the "
15172 "disks you asked for without doing this)."
15173 msgstr ""
15174
15175 # type: =head1
15176 #: ../fish/guestfish.pod:334
15177 msgid "QUOTING"
15178 msgstr ""
15179
15180 # type: textblock
15181 #: ../fish/guestfish.pod:336
15182 msgid ""
15183 "You can quote ordinary parameters using either single or double quotes.  For "
15184 "example:"
15185 msgstr ""
15186
15187 # type: verbatim
15188 #: ../fish/guestfish.pod:339
15189 #, no-wrap
15190 msgid ""
15191 " add \"file with a space.img\"\n"
15192 "\n"
15193 msgstr ""
15194
15195 # type: verbatim
15196 #: ../fish/guestfish.pod:341
15197 #, no-wrap
15198 msgid ""
15199 " rm '/file name'\n"
15200 "\n"
15201 msgstr ""
15202
15203 # type: verbatim
15204 #: ../fish/guestfish.pod:343
15205 #, no-wrap
15206 msgid ""
15207 " rm '/\"'\n"
15208 "\n"
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../fish/guestfish.pod:345
15213 msgid ""
15214 "A few commands require a list of strings to be passed.  For these, use a "
15215 "whitespace-separated list, enclosed in quotes.  Strings containing "
15216 "whitespace to be passed through must be enclosed in single quotes.  A "
15217 "literal single quote must be escaped with a backslash."
15218 msgstr ""
15219
15220 # type: verbatim
15221 #: ../fish/guestfish.pod:350
15222 #, no-wrap
15223 msgid ""
15224 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15225 " command \"/bin/echo 'foo      bar'\"\n"
15226 " command \"/bin/echo \\'foo\\'\"\n"
15227 "\n"
15228 msgstr ""
15229
15230 # type: =head1
15231 #: ../fish/guestfish.pod:354
15232 msgid "NUMBERS"
15233 msgstr ""
15234
15235 # type: textblock
15236 #: ../fish/guestfish.pod:356
15237 msgid ""
15238 "This section applies to all commands which can take integers as parameters."
15239 msgstr ""
15240
15241 # type: =head2
15242 #: ../fish/guestfish.pod:359
15243 msgid "SIZE SUFFIX"
15244 msgstr ""
15245
15246 # type: textblock
15247 #: ../fish/guestfish.pod:361
15248 msgid ""
15249 "When the command takes a parameter measured in bytes, you can use one of the "
15250 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15251 msgstr ""
15252
15253 # type: =item
15254 #: ../fish/guestfish.pod:367
15255 msgid "B<k> or B<K> or B<KiB>"
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../fish/guestfish.pod:369
15260 msgid "The size in kilobytes (multiplied by 1024)."
15261 msgstr ""
15262
15263 # type: =item
15264 #: ../fish/guestfish.pod:371
15265 msgid "B<KB>"
15266 msgstr ""
15267
15268 # type: textblock
15269 #: ../fish/guestfish.pod:373
15270 msgid "The size in SI 1000 byte units."
15271 msgstr ""
15272
15273 # type: =item
15274 #: ../fish/guestfish.pod:375
15275 msgid "B<M> or B<MiB>"
15276 msgstr ""
15277
15278 # type: textblock
15279 #: ../fish/guestfish.pod:377
15280 msgid "The size in megabytes (multiplied by 1048576)."
15281 msgstr ""
15282
15283 # type: =item
15284 #: ../fish/guestfish.pod:379
15285 msgid "B<MB>"
15286 msgstr ""
15287
15288 # type: textblock
15289 #: ../fish/guestfish.pod:381
15290 msgid "The size in SI 1000000 byte units."
15291 msgstr ""
15292
15293 # type: =item
15294 #: ../fish/guestfish.pod:383
15295 msgid "B<G> or B<GiB>"
15296 msgstr ""
15297
15298 # type: textblock
15299 #: ../fish/guestfish.pod:385
15300 msgid "The size in gigabytes (multiplied by 2**30)."
15301 msgstr ""
15302
15303 # type: =item
15304 #: ../fish/guestfish.pod:387
15305 msgid "B<GB>"
15306 msgstr ""
15307
15308 # type: textblock
15309 #: ../fish/guestfish.pod:389
15310 msgid "The size in SI 10**9 byte units."
15311 msgstr ""
15312
15313 # type: =item
15314 #: ../fish/guestfish.pod:391
15315 msgid "B<T> or B<TiB>"
15316 msgstr ""
15317
15318 # type: textblock
15319 #: ../fish/guestfish.pod:393
15320 msgid "The size in terabytes (multiplied by 2**40)."
15321 msgstr ""
15322
15323 # type: =item
15324 #: ../fish/guestfish.pod:395
15325 msgid "B<TB>"
15326 msgstr ""
15327
15328 # type: textblock
15329 #: ../fish/guestfish.pod:397
15330 msgid "The size in SI 10**12 byte units."
15331 msgstr ""
15332
15333 # type: =item
15334 #: ../fish/guestfish.pod:399
15335 msgid "B<P> or B<PiB>"
15336 msgstr ""
15337
15338 # type: textblock
15339 #: ../fish/guestfish.pod:401
15340 msgid "The size in petabytes (multiplied by 2**50)."
15341 msgstr ""
15342
15343 # type: =item
15344 #: ../fish/guestfish.pod:403
15345 msgid "B<PB>"
15346 msgstr ""
15347
15348 # type: textblock
15349 #: ../fish/guestfish.pod:405
15350 msgid "The size in SI 10**15 byte units."
15351 msgstr ""
15352
15353 # type: =item
15354 #: ../fish/guestfish.pod:407
15355 msgid "B<E> or B<EiB>"
15356 msgstr ""
15357
15358 # type: textblock
15359 #: ../fish/guestfish.pod:409
15360 msgid "The size in exabytes (multiplied by 2**60)."
15361 msgstr ""
15362
15363 # type: =item
15364 #: ../fish/guestfish.pod:411
15365 msgid "B<EB>"
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../fish/guestfish.pod:413
15370 msgid "The size in SI 10**18 byte units."
15371 msgstr ""
15372
15373 # type: =item
15374 #: ../fish/guestfish.pod:415
15375 msgid "B<Z> or B<ZiB>"
15376 msgstr ""
15377
15378 # type: textblock
15379 #: ../fish/guestfish.pod:417
15380 msgid "The size in zettabytes (multiplied by 2**70)."
15381 msgstr ""
15382
15383 # type: =item
15384 #: ../fish/guestfish.pod:419
15385 msgid "B<ZB>"
15386 msgstr ""
15387
15388 # type: textblock
15389 #: ../fish/guestfish.pod:421
15390 msgid "The size in SI 10**21 byte units."
15391 msgstr ""
15392
15393 # type: =item
15394 #: ../fish/guestfish.pod:423
15395 msgid "B<Y> or B<YiB>"
15396 msgstr ""
15397
15398 # type: textblock
15399 #: ../fish/guestfish.pod:425
15400 msgid "The size in yottabytes (multiplied by 2**80)."
15401 msgstr ""
15402
15403 # type: =item
15404 #: ../fish/guestfish.pod:427
15405 msgid "B<YB>"
15406 msgstr ""
15407
15408 # type: textblock
15409 #: ../fish/guestfish.pod:429
15410 msgid "The size in SI 10**24 byte units."
15411 msgstr ""
15412
15413 # type: textblock
15414 #: ../fish/guestfish.pod:433
15415 msgid "For example:"
15416 msgstr ""
15417
15418 # type: verbatim
15419 #: ../fish/guestfish.pod:435
15420 #, no-wrap
15421 msgid ""
15422 " truncate-size /file 1G\n"
15423 "\n"
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../fish/guestfish.pod:437
15428 msgid "would truncate the file to 1 gigabyte."
15429 msgstr ""
15430
15431 # type: textblock
15432 #: ../fish/guestfish.pod:439
15433 msgid ""
15434 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
15435 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
15436 "suffix will probably not do what you expect."
15437 msgstr ""
15438
15439 # type: =head2
15440 #: ../fish/guestfish.pod:443
15441 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15442 msgstr ""
15443
15444 # type: textblock
15445 #: ../fish/guestfish.pod:445
15446 msgid ""
15447 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15448 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15449 msgstr ""
15450
15451 # type: verbatim
15452 #: ../fish/guestfish.pod:448
15453 #, no-wrap
15454 msgid ""
15455 " 1234      decimal number 1234\n"
15456 " 02322     octal number, equivalent to decimal 1234\n"
15457 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15458 "\n"
15459 msgstr ""
15460
15461 # type: textblock
15462 #: ../fish/guestfish.pod:452
15463 msgid ""
15464 "When using the C<chmod> command, you almost always want to specify an octal "
15465 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15466 "L<chmod(1)> program):"
15467 msgstr ""
15468
15469 # type: verbatim
15470 #: ../fish/guestfish.pod:456
15471 #, no-wrap
15472 msgid ""
15473 " chmod 0777 /public  # OK\n"
15474 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15475 "\n"
15476 msgstr ""
15477
15478 # type: textblock
15479 #: ../fish/guestfish.pod:459
15480 msgid ""
15481 "Commands that return numbers usually print them in decimal, but some "
15482 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15483 "octal, preceeded by C<0>)."
15484 msgstr ""
15485
15486 # type: =head1
15487 #: ../fish/guestfish.pod:463
15488 msgid "WILDCARDS AND GLOBBING"
15489 msgstr ""
15490
15491 # type: textblock
15492 #: ../fish/guestfish.pod:465
15493 msgid ""
15494 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15495 "(globbing) by default.  So for example the following will not do what you "
15496 "expect:"
15497 msgstr ""
15498
15499 # type: verbatim
15500 #: ../fish/guestfish.pod:469
15501 #, no-wrap
15502 msgid ""
15503 " rm-rf /home/*\n"
15504 "\n"
15505 msgstr ""
15506
15507 # type: textblock
15508 #: ../fish/guestfish.pod:471
15509 msgid ""
15510 "Assuming you don't have a directory literally called C</home/*> then the "
15511 "above command will return an error."
15512 msgstr ""
15513
15514 # type: textblock
15515 #: ../fish/guestfish.pod:474
15516 msgid "To perform wildcard expansion, use the C<glob> command."
15517 msgstr ""
15518
15519 # type: verbatim
15520 #: ../fish/guestfish.pod:476
15521 #, no-wrap
15522 msgid ""
15523 " glob rm-rf /home/*\n"
15524 "\n"
15525 msgstr ""
15526
15527 # type: textblock
15528 #: ../fish/guestfish.pod:478
15529 msgid ""
15530 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15531 "many times), equivalent to:"
15532 msgstr ""
15533
15534 # type: verbatim
15535 #: ../fish/guestfish.pod:481
15536 #, no-wrap
15537 msgid ""
15538 " rm-rf /home/jim\n"
15539 " rm-rf /home/joe\n"
15540 " rm-rf /home/mary\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: textblock
15545 #: ../fish/guestfish.pod:485
15546 msgid "C<glob> only works on simple guest paths and not on device names."
15547 msgstr ""
15548
15549 # type: textblock
15550 #: ../fish/guestfish.pod:487
15551 msgid ""
15552 "If you have several parameters, each containing a wildcard, then glob will "
15553 "perform a cartesian product."
15554 msgstr ""
15555
15556 # type: =head1
15557 #: ../fish/guestfish.pod:490
15558 msgid "COMMENTS"
15559 msgstr ""
15560
15561 # type: textblock
15562 #: ../fish/guestfish.pod:492
15563 msgid ""
15564 "Any line which starts with a I<#> character is treated as a comment and "
15565 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15566 "a command.  For example:"
15567 msgstr ""
15568
15569 # type: verbatim
15570 #: ../fish/guestfish.pod:496
15571 #, no-wrap
15572 msgid ""
15573 " # this is a comment\n"
15574 "         # this is a comment\n"
15575 " foo # NOT a comment\n"
15576 "\n"
15577 msgstr ""
15578
15579 # type: textblock
15580 #: ../fish/guestfish.pod:500
15581 msgid "Blank lines are also ignored."
15582 msgstr ""
15583
15584 # type: =head1
15585 #: ../fish/guestfish.pod:502
15586 msgid "RUNNING COMMANDS LOCALLY"
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../fish/guestfish.pod:504
15591 msgid ""
15592 "Any line which starts with a I<!> character is treated as a command sent to "
15593 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
15594 msgstr ""
15595
15596 # type: verbatim
15597 #: ../fish/guestfish.pod:508
15598 #, no-wrap
15599 msgid ""
15600 " !mkdir local\n"
15601 " tgz-out /remote local/remote-data.tar.gz\n"
15602 "\n"
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../fish/guestfish.pod:511
15607 msgid ""
15608 "will create a directory C<local> on the host, and then export the contents "
15609 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
15610 "(See C<tgz-out>)."
15611 msgstr ""
15612
15613 # type: textblock
15614 #: ../fish/guestfish.pod:515
15615 msgid ""
15616 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
15617 "effect, due to the way that subprocesses work in Unix."
15618 msgstr ""
15619
15620 # type: =head1
15621 #: ../fish/guestfish.pod:518
15622 msgid "PIPES"
15623 msgstr ""
15624
15625 # type: textblock
15626 #: ../fish/guestfish.pod:520
15627 msgid ""
15628 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
15629 "command (a guestfish command) to the second command (any host command).  For "
15630 "example:"
15631 msgstr ""
15632
15633 # type: verbatim
15634 #: ../fish/guestfish.pod:524
15635 #, no-wrap
15636 msgid ""
15637 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
15638 "\n"
15639 msgstr ""
15640
15641 # type: textblock
15642 #: ../fish/guestfish.pod:526
15643 msgid ""
15644 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
15645 "program).  The above command would list all accounts in the guest filesystem "
15646 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
15647 msgstr ""
15648
15649 # type: verbatim
15650 #: ../fish/guestfish.pod:531
15651 #, no-wrap
15652 msgid ""
15653 " hexdump /bin/ls | head\n"
15654 " list-devices | tail -1\n"
15655 " tgz-out / - | tar ztf -\n"
15656 "\n"
15657 msgstr ""
15658
15659 # type: textblock
15660 #: ../fish/guestfish.pod:535
15661 msgid ""
15662 "The space before the pipe symbol is required, any space after the pipe "
15663 "symbol is optional.  Everything after the pipe symbol is just passed "
15664 "straight to the host shell, so it can contain redirections, globs and "
15665 "anything else that makes sense on the host side."
15666 msgstr ""
15667
15668 # type: textblock
15669 #: ../fish/guestfish.pod:540
15670 msgid ""
15671 "To use a literal argument which begins with a pipe symbol, you have to quote "
15672 "it, eg:"
15673 msgstr ""
15674
15675 # type: verbatim
15676 #: ../fish/guestfish.pod:543
15677 #, no-wrap
15678 msgid ""
15679 " echo \"|\"\n"
15680 "\n"
15681 msgstr ""
15682
15683 # type: =head1
15684 #: ../fish/guestfish.pod:545
15685 msgid "HOME DIRECTORIES"
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../fish/guestfish.pod:547
15690 msgid ""
15691 "If a parameter starts with the character C<~> then the tilde may be expanded "
15692 "as a home directory path (either C<~> for the current user's home directory, "
15693 "or C<~user> for another user)."
15694 msgstr ""
15695
15696 # type: textblock
15697 #: ../fish/guestfish.pod:551
15698 msgid ""
15699 "Note that home directory expansion happens for users known I<on the host>, "
15700 "not in the guest filesystem."
15701 msgstr ""
15702
15703 # type: textblock
15704 #: ../fish/guestfish.pod:554
15705 msgid ""
15706 "To use a literal argument which begins with a tilde, you have to quote it, "
15707 "eg:"
15708 msgstr ""
15709
15710 # type: verbatim
15711 #: ../fish/guestfish.pod:557
15712 #, no-wrap
15713 msgid ""
15714 " echo \"~\"\n"
15715 "\n"
15716 msgstr ""
15717
15718 # type: textblock
15719 #: ../fish/guestfish.pod:561
15720 msgid ""
15721 "Libguestfs has some support for Linux guests encrypted according to the "
15722 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
15723 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
15724 "LUKS is supported."
15725 msgstr ""
15726
15727 # type: textblock
15728 #: ../fish/guestfish.pod:566
15729 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
15730 msgstr ""
15731
15732 # type: verbatim
15733 #: ../fish/guestfish.pod:568
15734 #, no-wrap
15735 msgid ""
15736 " ><fs> vfs-type /dev/sda2\n"
15737 " crypto_LUKS\n"
15738 "\n"
15739 msgstr ""
15740
15741 # type: textblock
15742 #: ../fish/guestfish.pod:571
15743 msgid ""
15744 "Then open those devices using L</luks-open>.  This creates a device-mapper "
15745 "device called C</dev/mapper/luksdev>."
15746 msgstr ""
15747
15748 # type: verbatim
15749 #: ../fish/guestfish.pod:574
15750 #, no-wrap
15751 msgid ""
15752 " ><fs> luks-open /dev/sda2 luksdev\n"
15753 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../fish/guestfish.pod:577
15759 msgid ""
15760 "Finally you have to tell LVM to scan for volume groups on the newly created "
15761 "mapper device:"
15762 msgstr ""
15763
15764 # type: verbatim
15765 #: ../fish/guestfish.pod:580
15766 #, no-wrap
15767 msgid ""
15768 " ><fs> vgscan\n"
15769 " ><fs> vg-activate-all true\n"
15770 "\n"
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../fish/guestfish.pod:583
15775 msgid "The logical volume(s) can now be mounted in the usual way."
15776 msgstr ""
15777
15778 # type: textblock
15779 #: ../fish/guestfish.pod:585
15780 msgid ""
15781 "Before closing a LUKS device you must unmount any logical volumes on it and "
15782 "deactivate the volume groups by calling C<vg-activate false VG> on each "
15783 "one.  Then you can close the mapper device:"
15784 msgstr ""
15785
15786 # type: verbatim
15787 #: ../fish/guestfish.pod:589
15788 #, no-wrap
15789 msgid ""
15790 " ><fs> vg-activate false /dev/VG\n"
15791 " ><fs> luks-close /dev/mapper/luksdev\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: =head1
15796 #: ../fish/guestfish.pod:592
15797 msgid "WINDOWS PATHS"
15798 msgstr ""
15799
15800 # type: textblock
15801 #: ../fish/guestfish.pod:594
15802 msgid ""
15803 "If a path is prefixed with C<win:> then you can use Windows-style paths "
15804 "(with some limitations).  The following commands are equivalent:"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #: ../fish/guestfish.pod:597
15809 #, no-wrap
15810 msgid ""
15811 " file /WINDOWS/system32/config/system.LOG\n"
15812 "\n"
15813 msgstr ""
15814
15815 # type: verbatim
15816 #: ../fish/guestfish.pod:599
15817 #, no-wrap
15818 msgid ""
15819 " file win:/windows/system32/config/system.log\n"
15820 "\n"
15821 msgstr ""
15822
15823 # type: verbatim
15824 #: ../fish/guestfish.pod:601
15825 #, no-wrap
15826 msgid ""
15827 " file win:\\windows\\system32\\config\\system.log\n"
15828 "\n"
15829 msgstr ""
15830
15831 # type: verbatim
15832 #: ../fish/guestfish.pod:603
15833 #, no-wrap
15834 msgid ""
15835 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
15836 "\n"
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../fish/guestfish.pod:605
15841 msgid ""
15842 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
15843 "handles case insensitivity like Windows would.  This only works in argument "
15844 "positions that expect a path."
15845 msgstr ""
15846
15847 # type: =head1
15848 #: ../fish/guestfish.pod:609
15849 msgid "UPLOADING AND DOWNLOADING FILES"
15850 msgstr ""
15851
15852 # type: textblock
15853 #: ../fish/guestfish.pod:611
15854 msgid ""
15855 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
15856 "others which upload from or download to a local file, you can use the "
15857 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
15858 msgstr ""
15859
15860 # type: verbatim
15861 #: ../fish/guestfish.pod:615
15862 #, no-wrap
15863 msgid ""
15864 " upload - /foo\n"
15865 "\n"
15866 msgstr ""
15867
15868 # type: textblock
15869 #: ../fish/guestfish.pod:617
15870 msgid ""
15871 "reads stdin and creates from that a file C</foo> in the disk image, and:"
15872 msgstr ""
15873
15874 # type: verbatim
15875 #: ../fish/guestfish.pod:620
15876 #, no-wrap
15877 msgid ""
15878 " tar-out /etc - | tar tf -\n"
15879 "\n"
15880 msgstr ""
15881
15882 # type: textblock
15883 #: ../fish/guestfish.pod:622
15884 msgid ""
15885 "writes the tarball to stdout and then pipes that into the external \"tar\" "
15886 "command (see L</PIPES>)."
15887 msgstr ""
15888
15889 # type: textblock
15890 #: ../fish/guestfish.pod:625
15891 msgid ""
15892 "When using C<-> to read from stdin, the input is read up to the end of "
15893 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
15894 "some arbitrary end marker:"
15895 msgstr ""
15896
15897 # type: verbatim
15898 #: ../fish/guestfish.pod:629
15899 #, no-wrap
15900 msgid ""
15901 " upload -<<END /foo\n"
15902 " input line 1\n"
15903 " input line 2\n"
15904 " input line 3\n"
15905 " END\n"
15906 "\n"
15907 msgstr ""
15908
15909 # type: textblock
15910 #: ../fish/guestfish.pod:635
15911 msgid ""
15912 "Any string of characters can be used instead of C<END>.  The end marker must "
15913 "appear on a line of its own, without any preceeding or following characters "
15914 "(not even spaces)."
15915 msgstr ""
15916
15917 # type: textblock
15918 #: ../fish/guestfish.pod:639
15919 msgid ""
15920 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
15921 "upload local files (so-called \"FileIn\" parameters in the generator)."
15922 msgstr ""
15923
15924 # type: =head1
15925 #: ../fish/guestfish.pod:642
15926 msgid "EXIT ON ERROR BEHAVIOUR"
15927 msgstr ""
15928
15929 # type: textblock
15930 #: ../fish/guestfish.pod:644
15931 msgid ""
15932 "By default, guestfish will ignore any errors when in interactive mode (ie. "
15933 "taking commands from a human over a tty), and will exit on the first error "
15934 "in non-interactive mode (scripts, commands given on the command line)."
15935 msgstr ""
15936
15937 # type: textblock
15938 #: ../fish/guestfish.pod:649
15939 msgid ""
15940 "If you prefix a command with a I<-> character, then that command will not "
15941 "cause guestfish to exit, even if that (one) command returns an error."
15942 msgstr ""
15943
15944 # type: =head1
15945 #: ../fish/guestfish.pod:653
15946 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
15947 msgstr ""
15948
15949 # type: textblock
15950 #: ../fish/guestfish.pod:655
15951 msgid ""
15952 "Guestfish can be remote-controlled over a socket.  This is useful "
15953 "particularly in shell scripts where you want to make several different "
15954 "changes to a filesystem, but you don't want the overhead of starting up a "
15955 "guestfish process each time."
15956 msgstr ""
15957
15958 # type: textblock
15959 #: ../fish/guestfish.pod:660
15960 msgid "Start a guestfish server process using:"
15961 msgstr ""
15962
15963 # type: verbatim
15964 #: ../fish/guestfish.pod:662
15965 #, no-wrap
15966 msgid ""
15967 " eval `guestfish --listen`\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: textblock
15972 #: ../fish/guestfish.pod:664
15973 msgid "and then send it commands by doing:"
15974 msgstr ""
15975
15976 # type: verbatim
15977 #: ../fish/guestfish.pod:666
15978 #, no-wrap
15979 msgid ""
15980 " guestfish --remote cmd [...]\n"
15981 "\n"
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../fish/guestfish.pod:668
15986 msgid "To cause the server to exit, send it the exit command:"
15987 msgstr ""
15988
15989 # type: verbatim
15990 #: ../fish/guestfish.pod:670
15991 #, no-wrap
15992 msgid ""
15993 " guestfish --remote exit\n"
15994 "\n"
15995 msgstr ""
15996
15997 # type: textblock
15998 #: ../fish/guestfish.pod:672
15999 msgid ""
16000 "Note that the server will normally exit if there is an error in a command.  "
16001 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16002 "BEHAVIOUR>."
16003 msgstr ""
16004
16005 # type: =head2
16006 #: ../fish/guestfish.pod:676
16007 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16008 msgstr ""
16009
16010 # type: textblock
16011 #: ../fish/guestfish.pod:678
16012 msgid ""
16013 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16014 "is how the I<--remote> option knows where to send the commands.  You can "
16015 "have several guestfish listener processes running using:"
16016 msgstr ""
16017
16018 # type: verbatim
16019 #: ../fish/guestfish.pod:682
16020 #, no-wrap
16021 msgid ""
16022 " eval `guestfish --listen`\n"
16023 " pid1=$GUESTFISH_PID\n"
16024 " eval `guestfish --listen`\n"
16025 " pid2=$GUESTFISH_PID\n"
16026 " ...\n"
16027 " guestfish --remote=$pid1 cmd\n"
16028 " guestfish --remote=$pid2 cmd\n"
16029 "\n"
16030 msgstr ""
16031
16032 # type: =head2
16033 #: ../fish/guestfish.pod:690
16034 msgid "REMOTE CONTROL DETAILS"
16035 msgstr ""
16036
16037 # type: textblock
16038 #: ../fish/guestfish.pod:692
16039 msgid ""
16040 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
16041 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
16042 "and C<$PID> is the process ID of the server."
16043 msgstr ""
16044
16045 # type: textblock
16046 #: ../fish/guestfish.pod:696
16047 msgid "Guestfish client and server versions must match exactly."
16048 msgstr ""
16049
16050 # type: =head1
16051 #: ../fish/guestfish.pod:698
16052 msgid "PREPARED DISK IMAGES"
16053 msgstr ""
16054
16055 # type: textblock
16056 #: ../fish/guestfish.pod:700
16057 msgid ""
16058 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16059 "preformatted disk images that guestfish can make for you to save typing.  "
16060 "This is particularly useful for testing purposes.  This option is used "
16061 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16062 "can be mixed with I<-a>)."
16063 msgstr ""
16064
16065 # type: textblock
16066 #: ../fish/guestfish.pod:706
16067 msgid ""
16068 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16069 "the second and so on.  Existing files in the current directory are "
16070 "I<overwritten>."
16071 msgstr ""
16072
16073 # type: textblock
16074 #: ../fish/guestfish.pod:710
16075 msgid ""
16076 "The type briefly describes how the disk should be sized, partitioned, how "
16077 "filesystem(s) should be created, and how content should be added.  "
16078 "Optionally the type can be followed by extra parameters, separated by C<:> "
16079 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
16080 "allocated disk, containing a single partition, with the partition formatted "
16081 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
16082 "disk instead."
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../fish/guestfish.pod:718
16087 msgid "To list the available types and any extra parameters they take, run:"
16088 msgstr ""
16089
16090 # type: textblock
16091 #: ../fish/guestfish.pod:722
16092 msgid ""
16093 "Note that the prepared filesystem is not mounted.  You would usually have to "
16094 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16095 msgstr ""
16096
16097 # type: textblock
16098 #: ../fish/guestfish.pod:726
16099 msgid ""
16100 "If any I<-N> or I<--new> options are given, the guest is automatically "
16101 "launched."
16102 msgstr ""
16103
16104 # type: textblock
16105 #: ../fish/guestfish.pod:731
16106 msgid "Create a 100MB disk with an ext4-formatted partition:"
16107 msgstr ""
16108
16109 # type: verbatim
16110 #: ../fish/guestfish.pod:733
16111 #, no-wrap
16112 msgid ""
16113 " guestfish -N fs:ext4\n"
16114 "\n"
16115 msgstr ""
16116
16117 # type: textblock
16118 #: ../fish/guestfish.pod:735
16119 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #: ../fish/guestfish.pod:737
16124 #, no-wrap
16125 msgid ""
16126 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16127 "\n"
16128 msgstr ""
16129
16130 # type: textblock
16131 #: ../fish/guestfish.pod:739
16132 msgid "Create a blank 200MB disk:"
16133 msgstr ""
16134
16135 # type: verbatim
16136 #: ../fish/guestfish.pod:741
16137 #, no-wrap
16138 msgid ""
16139 " guestfish -N disk:200M\n"
16140 "\n"
16141 msgstr ""
16142
16143 # type: =head1
16144 #: ../fish/guestfish.pod:743
16145 msgid "PROGRESS BARS"
16146 msgstr ""
16147
16148 # type: textblock
16149 #: ../fish/guestfish.pod:745
16150 msgid ""
16151 "Some (not all) long-running commands send progress notification messages as "
16152 "they are running.  Guestfish turns these messages into progress bars."
16153 msgstr ""
16154
16155 # type: textblock
16156 #: ../fish/guestfish.pod:749
16157 msgid ""
16158 "When a command that supports progress bars takes longer than two seconds to "
16159 "run, and if progress bars are enabled, then you will see one appearing below "
16160 "the command:"
16161 msgstr ""
16162
16163 # type: verbatim
16164 #: ../fish/guestfish.pod:753
16165 #, no-wrap
16166 msgid ""
16167 " ><fs> copy-size /large-file /another-file 2048M\n"
16168 " / 10% [#####-----------------------------------------] 00:30\n"
16169 "\n"
16170 msgstr ""
16171
16172 # type: textblock
16173 #: ../fish/guestfish.pod:756
16174 msgid ""
16175 "The spinner on the left hand side moves round once for every progress "
16176 "notification received from the backend.  This is a (reasonably) golden "
16177 "assurance that the command is \"doing something\" even if the progress bar "
16178 "is not moving, because the command is able to send the progress "
16179 "notifications.  When the bar reaches 100% and the command finishes, the "
16180 "spinner disappears."
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:763
16185 msgid ""
16186 "Progress bars are enabled by default when guestfish is used interactively.  "
16187 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16188 "and you can disable them completely using I<--no-progress-bars>."
16189 msgstr ""
16190
16191 # type: =head1
16192 #: ../fish/guestfish.pod:768
16193 msgid "GUESTFISH COMMANDS"
16194 msgstr ""
16195
16196 # type: textblock
16197 #: ../fish/guestfish.pod:770
16198 msgid ""
16199 "The commands in this section are guestfish convenience commands, in other "
16200 "words, they are not part of the L<guestfs(3)> API."
16201 msgstr ""
16202
16203 # type: =head2
16204 #: ../fish/guestfish.pod:773
16205 msgid "alloc | allocate"
16206 msgstr ""
16207
16208 # type: verbatim
16209 #: ../fish/guestfish.pod:775
16210 #, no-wrap
16211 msgid ""
16212 " alloc filename size\n"
16213 "\n"
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../fish/guestfish.pod:777
16218 msgid ""
16219 "This creates an empty (zeroed) file of the given size, and then adds so it "
16220 "can be further examined."
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:780 ../fish/guestfish.pod:903
16225 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16226 msgstr ""
16227
16228 # type: textblock
16229 #: ../fish/guestfish.pod:782 ../fish/guestfish.pod:905
16230 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16231 msgstr ""
16232
16233 # type: =head2
16234 #: ../fish/guestfish.pod:784
16235 msgid "copy-in"
16236 msgstr ""
16237
16238 # type: verbatim
16239 #: ../fish/guestfish.pod:786
16240 #, no-wrap
16241 msgid ""
16242 " copy-in local [local ...] /remotedir\n"
16243 "\n"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../fish/guestfish.pod:788
16248 msgid ""
16249 "C<copy-in> copies local files or directories recursively into the disk "
16250 "image, placing them in the directory called C</remotedir> (which must "
16251 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16252 "other commands as necessary."
16253 msgstr ""
16254
16255 # type: textblock
16256 #: ../fish/guestfish.pod:793
16257 msgid ""
16258 "Multiple local files and directories can be specified, but the last "
16259 "parameter must always be a remote directory.  Wildcards cannot be used."
16260 msgstr ""
16261
16262 # type: =head2
16263 #: ../fish/guestfish.pod:797
16264 msgid "copy-out"
16265 msgstr ""
16266
16267 # type: verbatim
16268 #: ../fish/guestfish.pod:799
16269 #, no-wrap
16270 msgid ""
16271 " copy-out remote [remote ...] localdir\n"
16272 "\n"
16273 msgstr ""
16274
16275 # type: textblock
16276 #: ../fish/guestfish.pod:801
16277 msgid ""
16278 "C<copy-out> copies remote files or directories recursively out of the disk "
16279 "image, placing them on the host disk in a local directory called C<localdir> "
16280 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16281 "download>, L</tar-out> and other commands as necessary."
16282 msgstr ""
16283
16284 # type: textblock
16285 #: ../fish/guestfish.pod:807
16286 msgid ""
16287 "Multiple remote files and directories can be specified, but the last "
16288 "parameter must always be a local directory.  To download to the current "
16289 "directory, use C<.> as in:"
16290 msgstr ""
16291
16292 # type: verbatim
16293 #: ../fish/guestfish.pod:811
16294 #, no-wrap
16295 msgid ""
16296 " copy-out /home .\n"
16297 "\n"
16298 msgstr ""
16299
16300 # type: textblock
16301 #: ../fish/guestfish.pod:813
16302 msgid ""
16303 "Wildcards cannot be used in the ordinary command, but you can use them with "
16304 "the help of L</glob> like this:"
16305 msgstr ""
16306
16307 # type: verbatim
16308 #: ../fish/guestfish.pod:816
16309 #, no-wrap
16310 msgid ""
16311 " glob copy-out /home/* .\n"
16312 "\n"
16313 msgstr ""
16314
16315 # type: =head2
16316 #: ../fish/guestfish.pod:818
16317 msgid "echo"
16318 msgstr ""
16319
16320 # type: verbatim
16321 #: ../fish/guestfish.pod:820
16322 #, no-wrap
16323 msgid ""
16324 " echo [params ...]\n"
16325 "\n"
16326 msgstr ""
16327
16328 # type: textblock
16329 #: ../fish/guestfish.pod:822
16330 msgid "This echos the parameters to the terminal."
16331 msgstr ""
16332
16333 # type: =head2
16334 #: ../fish/guestfish.pod:824
16335 msgid "edit | vi | emacs"
16336 msgstr ""
16337
16338 # type: verbatim
16339 #: ../fish/guestfish.pod:826
16340 #, no-wrap
16341 msgid ""
16342 " edit filename\n"
16343 "\n"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../fish/guestfish.pod:828
16348 msgid ""
16349 "This is used to edit a file.  It downloads the file, edits it locally using "
16350 "your editor, then uploads the result."
16351 msgstr ""
16352
16353 # type: textblock
16354 #: ../fish/guestfish.pod:831
16355 msgid ""
16356 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16357 "or C<emacs> you will get those corresponding editors."
16358 msgstr ""
16359
16360 # type: =head2
16361 #: ../fish/guestfish.pod:835
16362 msgid "glob"
16363 msgstr ""
16364
16365 # type: verbatim
16366 #: ../fish/guestfish.pod:837
16367 #, no-wrap
16368 msgid ""
16369 " glob command args...\n"
16370 "\n"
16371 msgstr ""
16372
16373 # type: textblock
16374 #: ../fish/guestfish.pod:839
16375 msgid ""
16376 "Expand wildcards in any paths in the args list, and run C<command> "
16377 "repeatedly on each matching path."
16378 msgstr ""
16379
16380 # type: textblock
16381 #: ../fish/guestfish.pod:842
16382 msgid "See section WILDCARDS AND GLOBBING."
16383 msgstr ""
16384
16385 # type: =head2
16386 #: ../fish/guestfish.pod:844
16387 msgid "help"
16388 msgstr ""
16389
16390 # type: verbatim
16391 #: ../fish/guestfish.pod:846
16392 #, no-wrap
16393 msgid ""
16394 " help\n"
16395 " help cmd\n"
16396 "\n"
16397 msgstr ""
16398
16399 # type: textblock
16400 #: ../fish/guestfish.pod:849
16401 msgid ""
16402 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16403 "this displays detailed help for a command."
16404 msgstr ""
16405
16406 # type: =head2
16407 #: ../fish/guestfish.pod:852
16408 msgid "lcd"
16409 msgstr ""
16410
16411 # type: verbatim
16412 #: ../fish/guestfish.pod:854
16413 #, no-wrap
16414 msgid ""
16415 " lcd directory\n"
16416 "\n"
16417 msgstr ""
16418
16419 # type: textblock
16420 #: ../fish/guestfish.pod:856
16421 msgid ""
16422 "Change the local directory, ie. the current directory of guestfish itself."
16423 msgstr ""
16424
16425 # type: textblock
16426 #: ../fish/guestfish.pod:859
16427 msgid "Note that C<!cd> won't do what you might expect."
16428 msgstr ""
16429
16430 # type: =head2
16431 #: ../fish/guestfish.pod:861
16432 msgid "man | manual"
16433 msgstr ""
16434
16435 # type: verbatim
16436 #: ../fish/guestfish.pod:863
16437 #, no-wrap
16438 msgid ""
16439 " man\n"
16440 "\n"
16441 msgstr ""
16442
16443 # type: textblock
16444 #: ../fish/guestfish.pod:865
16445 msgid "Opens the manual page for guestfish."
16446 msgstr ""
16447
16448 # type: =head2
16449 #: ../fish/guestfish.pod:867
16450 msgid "more | less"
16451 msgstr ""
16452
16453 # type: verbatim
16454 #: ../fish/guestfish.pod:869
16455 #, no-wrap
16456 msgid ""
16457 " more filename\n"
16458 "\n"
16459 msgstr ""
16460
16461 # type: verbatim
16462 #: ../fish/guestfish.pod:871
16463 #, no-wrap
16464 msgid ""
16465 " less filename\n"
16466 "\n"
16467 msgstr ""
16468
16469 # type: textblock
16470 #: ../fish/guestfish.pod:873
16471 msgid "This is used to view a file."
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish.pod:875
16476 msgid ""
16477 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16478 "C<less> you will get the C<less> command specifically."
16479 msgstr ""
16480
16481 # type: =head2
16482 #: ../fish/guestfish.pod:878
16483 msgid "quit | exit"
16484 msgstr ""
16485
16486 # type: textblock
16487 #: ../fish/guestfish.pod:880
16488 msgid "This exits guestfish.  You can also use C<^D> key."
16489 msgstr ""
16490
16491 # type: =head2
16492 #: ../fish/guestfish.pod:882
16493 msgid "reopen"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #: ../fish/guestfish.pod:884
16498 #, no-wrap
16499 msgid ""
16500 " reopen\n"
16501 "\n"
16502 msgstr ""
16503
16504 # type: textblock
16505 #: ../fish/guestfish.pod:886
16506 msgid ""
16507 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16508 "normally, because the handle is closed properly when guestfish exits.  "
16509 "However this is occasionally useful for testing."
16510 msgstr ""
16511
16512 # type: =head2
16513 #: ../fish/guestfish.pod:890
16514 msgid "sparse"
16515 msgstr ""
16516
16517 # type: verbatim
16518 #: ../fish/guestfish.pod:892
16519 #, no-wrap
16520 msgid ""
16521 " sparse filename size\n"
16522 "\n"
16523 msgstr ""
16524
16525 # type: textblock
16526 #: ../fish/guestfish.pod:894
16527 msgid ""
16528 "This creates an empty sparse file of the given size, and then adds so it can "
16529 "be further examined."
16530 msgstr ""
16531
16532 # type: textblock
16533 #: ../fish/guestfish.pod:897
16534 msgid ""
16535 "In all respects it works the same as the C<alloc> command, except that the "
16536 "image file is allocated sparsely, which means that disk blocks are not "
16537 "assigned to the file until they are needed.  Sparse disk files only use "
16538 "space when written to, but they are slower and there is a danger you could "
16539 "run out of real disk space during a write operation."
16540 msgstr ""
16541
16542 # type: =head2
16543 #: ../fish/guestfish.pod:907
16544 msgid "supported"
16545 msgstr ""
16546
16547 # type: verbatim
16548 #: ../fish/guestfish.pod:909
16549 #, no-wrap
16550 msgid ""
16551 " supported\n"
16552 "\n"
16553 msgstr ""
16554
16555 # type: textblock
16556 #: ../fish/guestfish.pod:911
16557 msgid ""
16558 "This command returns a list of the optional groups known to the daemon, and "
16559 "indicates which ones are supported by this build of the libguestfs appliance."
16560 msgstr ""
16561
16562 # type: textblock
16563 #: ../fish/guestfish.pod:915
16564 msgid "See also L<guestfs(3)/AVAILABILITY>."
16565 msgstr ""
16566
16567 # type: =head2
16568 #: ../fish/guestfish.pod:917
16569 msgid "time"
16570 msgstr ""
16571
16572 # type: verbatim
16573 #: ../fish/guestfish.pod:919
16574 #, no-wrap
16575 msgid ""
16576 " time command args...\n"
16577 "\n"
16578 msgstr ""
16579
16580 # type: textblock
16581 #: ../fish/guestfish.pod:921
16582 msgid ""
16583 "Run the command as usual, but print the elapsed time afterwards.  This can "
16584 "be useful for benchmarking operations."
16585 msgstr ""
16586
16587 # type: =head1
16588 #: ../fish/guestfish.pod:924
16589 msgid "COMMANDS"
16590 msgstr ""
16591
16592 # type: =head1
16593 #: ../fish/guestfish.pod:928 ../test-tool/libguestfs-test-tool.pod:83
16594 msgid "EXIT CODE"
16595 msgstr ""
16596
16597 # type: textblock
16598 #: ../fish/guestfish.pod:930
16599 msgid ""
16600 "guestfish returns 0 if the commands completed without error, or 1 if there "
16601 "was an error."
16602 msgstr ""
16603
16604 # type: =item
16605 #: ../fish/guestfish.pod:937
16606 msgid "EDITOR"
16607 msgstr ""
16608
16609 # type: textblock
16610 #: ../fish/guestfish.pod:939
16611 msgid ""
16612 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16613 "C<vi>."
16614 msgstr ""
16615
16616 # type: =item
16617 #: ../fish/guestfish.pod:942
16618 msgid "GUESTFISH_PID"
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish.pod:944
16623 msgid ""
16624 "Used with the I<--remote> option to specify the remote guestfish process to "
16625 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16626 msgstr ""
16627
16628 # type: =item
16629 #: ../fish/guestfish.pod:948
16630 msgid "HOME"
16631 msgstr ""
16632
16633 # type: textblock
16634 #: ../fish/guestfish.pod:950
16635 msgid ""
16636 "If compiled with GNU readline support, various files in the home directory "
16637 "can be used.  See L</FILES>."
16638 msgstr ""
16639
16640 # type: textblock
16641 #: ../fish/guestfish.pod:959
16642 msgid ""
16643 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16644 "effect as using the B<-v> option."
16645 msgstr ""
16646
16647 # type: textblock
16648 #: ../fish/guestfish.pod:971
16649 msgid ""
16650 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16651 "the discussion of paths in L<guestfs(3)>."
16652 msgstr ""
16653
16654 # type: textblock
16655 #: ../fish/guestfish.pod:982
16656 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16657 msgstr ""
16658
16659 # type: =item
16660 #: ../fish/guestfish.pod:984
16661 msgid "PAGER"
16662 msgstr ""
16663
16664 # type: textblock
16665 #: ../fish/guestfish.pod:986
16666 msgid ""
16667 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16668 "C<more>."
16669 msgstr ""
16670
16671 # type: =head1
16672 #: ../fish/guestfish.pod:1001 ../test-tool/libguestfs-test-tool.pod:88
16673 msgid "FILES"
16674 msgstr ""
16675
16676 # type: =item
16677 #: ../fish/guestfish.pod:1005
16678 msgid "$HOME/.guestfish"
16679 msgstr ""
16680
16681 # type: textblock
16682 #: ../fish/guestfish.pod:1007
16683 msgid ""
16684 "If compiled with GNU readline support, then the command history is saved in "
16685 "this file."
16686 msgstr ""
16687
16688 # type: =item
16689 #: ../fish/guestfish.pod:1010
16690 msgid "$HOME/.inputrc"
16691 msgstr ""
16692
16693 # type: =item
16694 #: ../fish/guestfish.pod:1012
16695 msgid "/etc/inputrc"
16696 msgstr ""
16697
16698 # type: textblock
16699 #: ../fish/guestfish.pod:1014
16700 msgid ""
16701 "If compiled with GNU readline support, then these files can be used to "
16702 "configure readline.  For further information, please see L<readline(3)/"
16703 "INITIALIZATION FILE>."
16704 msgstr ""
16705
16706 # type: textblock
16707 #: ../fish/guestfish.pod:1018
16708 msgid "To write rules which only apply to guestfish, use:"
16709 msgstr ""
16710
16711 # type: verbatim
16712 #: ../fish/guestfish.pod:1020
16713 #, no-wrap
16714 msgid ""
16715 " $if guestfish\n"
16716 " ...\n"
16717 " $endif\n"
16718 "\n"
16719 msgstr ""
16720
16721 # type: textblock
16722 #: ../fish/guestfish.pod:1024
16723 msgid ""
16724 "Variables that you can set in inputrc that change the behaviour of guestfish "
16725 "in useful ways include:"
16726 msgstr ""
16727
16728 # type: =item
16729 #: ../fish/guestfish.pod:1029
16730 msgid "completion-ignore-case (default: on)"
16731 msgstr ""
16732
16733 # type: textblock
16734 #: ../fish/guestfish.pod:1031
16735 msgid ""
16736 "By default, guestfish will ignore case when tab-completing paths on the "
16737 "disk.  Use:"
16738 msgstr ""
16739
16740 # type: verbatim
16741 #: ../fish/guestfish.pod:1034
16742 #, no-wrap
16743 msgid ""
16744 " set completion-ignore-case off\n"
16745 "\n"
16746 msgstr ""
16747
16748 # type: textblock
16749 #: ../fish/guestfish.pod:1036
16750 msgid "to make guestfish case sensitive."
16751 msgstr ""
16752
16753 # type: =item
16754 #: ../fish/guestfish.pod:1040
16755 msgid "test1.img"
16756 msgstr ""
16757
16758 # type: =item
16759 #: ../fish/guestfish.pod:1042
16760 msgid "test2.img (etc)"
16761 msgstr ""
16762
16763 # type: textblock
16764 #: ../fish/guestfish.pod:1044
16765 msgid ""
16766 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16767 "will be created in the file C<test1.img> in the current directory.  The "
16768 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16769 "the same name will be overwritten."
16770 msgstr ""
16771
16772 # type: textblock
16773 #: ../fish/guestfish.pod:1053
16774 msgid ""
16775 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16776 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16777 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16778 "L<virt-tar(1)>, L<virt-win-reg(1)>."
16779 msgstr ""
16780
16781 # type: textblock
16782 #: ../fish/guestfish.pod:1076 ../test-tool/libguestfs-test-tool.pod:124
16783 #: ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:865
16784 #: ../tools/virt-cat.pl:181 ../tools/virt-df.pl:499 ../tools/virt-edit.pl:345
16785 #: ../tools/virt-list-filesystems.pl:211 ../tools/virt-list-partitions.pl:248
16786 #: ../tools/virt-ls.pl:229 ../tools/virt-make-fs.pl:560
16787 #: ../tools/virt-rescue.pl:249 ../tools/virt-resize.pl:1415
16788 #: ../tools/virt-tar.pl:276 ../tools/virt-win-reg.pl:495
16789 msgid ""
16790 "This program is free software; you can redistribute it and/or modify it "
16791 "under the terms of the GNU General Public License as published by the Free "
16792 "Software Foundation; either version 2 of the License, or (at your option) "
16793 "any later version."
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:129
16798 #: ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:870
16799 #: ../tools/virt-cat.pl:186 ../tools/virt-df.pl:504 ../tools/virt-edit.pl:350
16800 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:253
16801 #: ../tools/virt-ls.pl:234 ../tools/virt-make-fs.pl:565
16802 #: ../tools/virt-rescue.pl:254 ../tools/virt-resize.pl:1420
16803 #: ../tools/virt-tar.pl:281 ../tools/virt-win-reg.pl:500
16804 msgid ""
16805 "This program is distributed in the hope that it will be useful, but WITHOUT "
16806 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16807 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16808 "more details."
16809 msgstr ""
16810
16811 # type: textblock
16812 #: ../fish/guestfish.pod:1086 ../test-tool/libguestfs-test-tool.pod:134
16813 #: ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:875
16814 #: ../tools/virt-cat.pl:191 ../tools/virt-df.pl:509 ../tools/virt-edit.pl:355
16815 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:258
16816 #: ../tools/virt-ls.pl:239 ../tools/virt-make-fs.pl:570
16817 #: ../tools/virt-rescue.pl:259 ../tools/virt-resize.pl:1425
16818 #: ../tools/virt-tar.pl:286 ../tools/virt-win-reg.pl:505
16819 msgid ""
16820 "You should have received a copy of the GNU General Public License along with "
16821 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16822 "Ave, Cambridge, MA 02139, USA."
16823 msgstr ""
16824
16825 # type: =head2
16826 #: ../fish/guestfish-actions.pod:1
16827 msgid "add-cdrom | cdrom"
16828 msgstr ""
16829
16830 # type: verbatim
16831 #: ../fish/guestfish-actions.pod:3
16832 #, no-wrap
16833 msgid ""
16834 " add-cdrom filename\n"
16835 "\n"
16836 msgstr ""
16837
16838 # type: textblock
16839 #: ../fish/guestfish-actions.pod:15
16840 msgid ""
16841 "This call checks for the existence of C<filename>.  This stops you from "
16842 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16843 "and C<http:> URLs.  To specify those, use the general C<config> call instead."
16844 msgstr ""
16845
16846 # type: textblock
16847 #: ../fish/guestfish-actions.pod:22
16848 msgid ""
16849 "If you just want to add an ISO file (often you use this as an efficient way "
16850 "to transfer large files into the guest), then you should probably use C<add-"
16851 "drive-ro> instead."
16852 msgstr ""
16853
16854 # type: =head2
16855 #: ../fish/guestfish-actions.pod:28
16856 msgid "add-drive | add"
16857 msgstr ""
16858
16859 # type: verbatim
16860 #: ../fish/guestfish-actions.pod:30
16861 #, no-wrap
16862 msgid ""
16863 " add-drive filename\n"
16864 "\n"
16865 msgstr ""
16866
16867 # type: textblock
16868 #: ../fish/guestfish-actions.pod:49 ../fish/guestfish-actions.pod:75
16869 msgid ""
16870 "C<if=...> is set at compile time by the configuration option C<./configure --"
16871 "with-drive-if=...>.  In the rare case where you might need to change this at "
16872 "run time, use C<add-drive-with-if> or C<add-drive-ro-with-if>."
16873 msgstr ""
16874
16875 # type: textblock
16876 #: ../fish/guestfish-actions.pod:54 ../fish/guestfish-actions.pod:80
16877 msgid ""
16878 "Note that this call checks for the existence of C<filename>.  This stops you "
16879 "from specifying other types of drive which are supported by qemu such as "
16880 "C<nbd:> and C<http:> URLs.  To specify those, use the general C<config> call "
16881 "instead."
16882 msgstr ""
16883
16884 # type: =head2
16885 #: ../fish/guestfish-actions.pod:59
16886 msgid "add-drive-ro | add-ro"
16887 msgstr ""
16888
16889 # type: verbatim
16890 #: ../fish/guestfish-actions.pod:61
16891 #, no-wrap
16892 msgid ""
16893 " add-drive-ro filename\n"
16894 "\n"
16895 msgstr ""
16896
16897 # type: =head2
16898 #: ../fish/guestfish-actions.pod:85
16899 msgid "add-drive-ro-with-if"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish-actions.pod:87
16904 #, no-wrap
16905 msgid ""
16906 " add-drive-ro-with-if filename iface\n"
16907 "\n"
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish-actions.pod:89
16912 msgid ""
16913 "This is the same as C<add-drive-ro> but it allows you to specify the QEMU "
16914 "interface emulation to use at run time."
16915 msgstr ""
16916
16917 # type: =head2
16918 #: ../fish/guestfish-actions.pod:92
16919 msgid "add-drive-with-if"
16920 msgstr ""
16921
16922 # type: verbatim
16923 #: ../fish/guestfish-actions.pod:94
16924 #, no-wrap
16925 msgid ""
16926 " add-drive-with-if filename iface\n"
16927 "\n"
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish-actions.pod:96
16932 msgid ""
16933 "This is the same as C<add-drive> but it allows you to specify the QEMU "
16934 "interface emulation to use at run time."
16935 msgstr ""
16936
16937 # type: =head2
16938 #: ../fish/guestfish-actions.pod:99
16939 msgid "aug-clear"
16940 msgstr ""
16941
16942 # type: verbatim
16943 #: ../fish/guestfish-actions.pod:101
16944 #, no-wrap
16945 msgid ""
16946 " aug-clear augpath\n"
16947 "\n"
16948 msgstr ""
16949
16950 # type: =head2
16951 #: ../fish/guestfish-actions.pod:106
16952 msgid "aug-close"
16953 msgstr ""
16954
16955 # type: verbatim
16956 #: ../fish/guestfish-actions.pod:108
16957 #, no-wrap
16958 msgid ""
16959 " aug-close\n"
16960 "\n"
16961 msgstr ""
16962
16963 # type: textblock
16964 #: ../fish/guestfish-actions.pod:110
16965 msgid ""
16966 "Close the current Augeas handle and free up any resources used by it.  After "
16967 "calling this, you have to call C<aug-init> again before you can use any "
16968 "other Augeas functions."
16969 msgstr ""
16970
16971 # type: =head2
16972 #: ../fish/guestfish-actions.pod:115
16973 msgid "aug-defnode"
16974 msgstr ""
16975
16976 # type: verbatim
16977 #: ../fish/guestfish-actions.pod:117
16978 #, no-wrap
16979 msgid ""
16980 " aug-defnode name expr val\n"
16981 "\n"
16982 msgstr ""
16983
16984 # type: textblock
16985 #: ../fish/guestfish-actions.pod:122
16986 msgid ""
16987 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
16988 "calling C<aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
16989 "containing that single node."
16990 msgstr ""
16991
16992 # type: =head2
16993 #: ../fish/guestfish-actions.pod:130
16994 msgid "aug-defvar"
16995 msgstr ""
16996
16997 # type: verbatim
16998 #: ../fish/guestfish-actions.pod:132
16999 #, no-wrap
17000 msgid ""
17001 " aug-defvar name expr\n"
17002 "\n"
17003 msgstr ""
17004
17005 # type: =head2
17006 #: ../fish/guestfish-actions.pod:141
17007 msgid "aug-get"
17008 msgstr ""
17009
17010 # type: verbatim
17011 #: ../fish/guestfish-actions.pod:143
17012 #, no-wrap
17013 msgid ""
17014 " aug-get augpath\n"
17015 "\n"
17016 msgstr ""
17017
17018 # type: =head2
17019 #: ../fish/guestfish-actions.pod:148
17020 msgid "aug-init"
17021 msgstr ""
17022
17023 # type: verbatim
17024 #: ../fish/guestfish-actions.pod:150
17025 #, no-wrap
17026 msgid ""
17027 " aug-init root flags\n"
17028 "\n"
17029 msgstr ""
17030
17031 # type: textblock
17032 #: ../fish/guestfish-actions.pod:156
17033 msgid "You must call this before using any other C<aug-*> commands."
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish-actions.pod:191
17038 msgid "Do not load the tree in C<aug-init>."
17039 msgstr ""
17040
17041 # type: textblock
17042 #: ../fish/guestfish-actions.pod:195
17043 msgid "To close the handle, you can call C<aug-close>."
17044 msgstr ""
17045
17046 # type: =head2
17047 #: ../fish/guestfish-actions.pod:199
17048 msgid "aug-insert"
17049 msgstr ""
17050
17051 # type: verbatim
17052 #: ../fish/guestfish-actions.pod:201
17053 #, no-wrap
17054 msgid ""
17055 " aug-insert augpath label true|false\n"
17056 "\n"
17057 msgstr ""
17058
17059 # type: =head2
17060 #: ../fish/guestfish-actions.pod:211
17061 msgid "aug-load"
17062 msgstr ""
17063
17064 # type: verbatim
17065 #: ../fish/guestfish-actions.pod:213
17066 #, no-wrap
17067 msgid ""
17068 " aug-load\n"
17069 "\n"
17070 msgstr ""
17071
17072 # type: =head2
17073 #: ../fish/guestfish-actions.pod:220
17074 msgid "aug-ls"
17075 msgstr ""
17076
17077 # type: verbatim
17078 #: ../fish/guestfish-actions.pod:222
17079 #, no-wrap
17080 msgid ""
17081 " aug-ls augpath\n"
17082 "\n"
17083 msgstr ""
17084
17085 # type: textblock
17086 #: ../fish/guestfish-actions.pod:224
17087 msgid ""
17088 "This is just a shortcut for listing C<aug-match> C<path/*> and sorting the "
17089 "resulting nodes into alphabetical order."
17090 msgstr ""
17091
17092 # type: =head2
17093 #: ../fish/guestfish-actions.pod:227
17094 msgid "aug-match"
17095 msgstr ""
17096
17097 # type: verbatim
17098 #: ../fish/guestfish-actions.pod:229
17099 #, no-wrap
17100 msgid ""
17101 " aug-match augpath\n"
17102 "\n"
17103 msgstr ""
17104
17105 # type: =head2
17106 #: ../fish/guestfish-actions.pod:235
17107 msgid "aug-mv"
17108 msgstr ""
17109
17110 # type: verbatim
17111 #: ../fish/guestfish-actions.pod:237
17112 #, no-wrap
17113 msgid ""
17114 " aug-mv src dest\n"
17115 "\n"
17116 msgstr ""
17117
17118 # type: =head2
17119 #: ../fish/guestfish-actions.pod:242
17120 msgid "aug-rm"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../fish/guestfish-actions.pod:244
17125 #, no-wrap
17126 msgid ""
17127 " aug-rm augpath\n"
17128 "\n"
17129 msgstr ""
17130
17131 # type: =head2
17132 #: ../fish/guestfish-actions.pod:250
17133 msgid "aug-save"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish-actions.pod:252
17138 #, no-wrap
17139 msgid ""
17140 " aug-save\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: textblock
17145 #: ../fish/guestfish-actions.pod:256
17146 msgid ""
17147 "The flags which were passed to C<aug-init> affect exactly how files are "
17148 "saved."
17149 msgstr ""
17150
17151 # type: =head2
17152 #: ../fish/guestfish-actions.pod:259
17153 msgid "aug-set"
17154 msgstr ""
17155
17156 # type: verbatim
17157 #: ../fish/guestfish-actions.pod:261
17158 #, no-wrap
17159 msgid ""
17160 " aug-set augpath val\n"
17161 "\n"
17162 msgstr ""
17163
17164 # type: textblock
17165 #: ../fish/guestfish-actions.pod:265
17166 msgid ""
17167 "In the Augeas API, it is possible to clear a node by setting the value to "
17168 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17169 "this call.  Instead you must use the C<aug-clear> call."
17170 msgstr ""
17171
17172 # type: =head2
17173 #: ../fish/guestfish-actions.pod:270
17174 msgid "available"
17175 msgstr ""
17176
17177 # type: verbatim
17178 #: ../fish/guestfish-actions.pod:272
17179 #, no-wrap
17180 msgid ""
17181 " available 'groups ...'\n"
17182 "\n"
17183 msgstr ""
17184
17185 # type: textblock
17186 #: ../fish/guestfish-actions.pod:278
17187 msgid ""
17188 "The libguestfs groups, and the functions that those groups correspond to, "
17189 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17190 "runtime by calling C<available-all-groups>."
17191 msgstr ""
17192
17193 # type: textblock
17194 #: ../fish/guestfish-actions.pod:302
17195 msgid "You must call C<launch> before calling this function."
17196 msgstr ""
17197
17198 # type: textblock
17199 #: ../fish/guestfish-actions.pod:324
17200 msgid ""
17201 "This call was added in version C<1.0.80>.  In previous versions of "
17202 "libguestfs all you could do would be to speculatively execute a command to "
17203 "find out if the daemon implemented it.  See also C<version>."
17204 msgstr ""
17205
17206 # type: =head2
17207 #: ../fish/guestfish-actions.pod:331
17208 msgid "available-all-groups"
17209 msgstr ""
17210
17211 # type: verbatim
17212 #: ../fish/guestfish-actions.pod:333
17213 #, no-wrap
17214 msgid ""
17215 " available-all-groups\n"
17216 "\n"
17217 msgstr ""
17218
17219 # type: textblock
17220 #: ../fish/guestfish-actions.pod:335
17221 msgid ""
17222 "This command returns a list of all optional groups that this daemon knows "
17223 "about.  Note this returns both supported and unsupported groups.  To find "
17224 "out which ones the daemon can actually support you have to call C<available> "
17225 "on each member of the returned list."
17226 msgstr ""
17227
17228 # type: textblock
17229 #: ../fish/guestfish-actions.pod:341
17230 msgid "See also C<available> and L<guestfs(3)/AVAILABILITY>."
17231 msgstr ""
17232
17233 # type: =head2
17234 #: ../fish/guestfish-actions.pod:343
17235 msgid "base64-in"
17236 msgstr ""
17237
17238 # type: verbatim
17239 #: ../fish/guestfish-actions.pod:345
17240 #, no-wrap
17241 msgid ""
17242 " base64-in (base64file|-) filename\n"
17243 "\n"
17244 msgstr ""
17245
17246 # type: textblock
17247 #: ../fish/guestfish-actions.pod:350 ../fish/guestfish-actions.pod:359
17248 #: ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:730
17249 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:1154
17250 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3714
17251 #: ../fish/guestfish-actions.pod:3725 ../fish/guestfish-actions.pod:3736
17252 #: ../fish/guestfish-actions.pod:3788 ../fish/guestfish-actions.pod:3797
17253 #: ../fish/guestfish-actions.pod:3847
17254 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17255 msgstr ""
17256
17257 # type: =head2
17258 #: ../fish/guestfish-actions.pod:352
17259 msgid "base64-out"
17260 msgstr ""
17261
17262 # type: verbatim
17263 #: ../fish/guestfish-actions.pod:354
17264 #, no-wrap
17265 msgid ""
17266 " base64-out filename (base64file|-)\n"
17267 "\n"
17268 msgstr ""
17269
17270 # type: =head2
17271 #: ../fish/guestfish-actions.pod:361
17272 msgid "blockdev-flushbufs"
17273 msgstr ""
17274
17275 # type: verbatim
17276 #: ../fish/guestfish-actions.pod:363
17277 #, no-wrap
17278 msgid ""
17279 " blockdev-flushbufs device\n"
17280 "\n"
17281 msgstr ""
17282
17283 # type: =head2
17284 #: ../fish/guestfish-actions.pod:370
17285 msgid "blockdev-getbsz"
17286 msgstr ""
17287
17288 # type: verbatim
17289 #: ../fish/guestfish-actions.pod:372
17290 #, no-wrap
17291 msgid ""
17292 " blockdev-getbsz device\n"
17293 "\n"
17294 msgstr ""
17295
17296 # type: =head2
17297 #: ../fish/guestfish-actions.pod:381
17298 msgid "blockdev-getro"
17299 msgstr ""
17300
17301 # type: verbatim
17302 #: ../fish/guestfish-actions.pod:383
17303 #, no-wrap
17304 msgid ""
17305 " blockdev-getro device\n"
17306 "\n"
17307 msgstr ""
17308
17309 # type: =head2
17310 #: ../fish/guestfish-actions.pod:390
17311 msgid "blockdev-getsize64"
17312 msgstr ""
17313
17314 # type: verbatim
17315 #: ../fish/guestfish-actions.pod:392
17316 #, no-wrap
17317 msgid ""
17318 " blockdev-getsize64 device\n"
17319 "\n"
17320 msgstr ""
17321
17322 # type: textblock
17323 #: ../fish/guestfish-actions.pod:396
17324 msgid "See also C<blockdev-getsz>."
17325 msgstr ""
17326
17327 # type: =head2
17328 #: ../fish/guestfish-actions.pod:400
17329 msgid "blockdev-getss"
17330 msgstr ""
17331
17332 # type: verbatim
17333 #: ../fish/guestfish-actions.pod:402
17334 #, no-wrap
17335 msgid ""
17336 " blockdev-getss device\n"
17337 "\n"
17338 msgstr ""
17339
17340 # type: textblock
17341 #: ../fish/guestfish-actions.pod:407
17342 msgid ""
17343 "(Note, this is not the size in sectors, use C<blockdev-getsz> for that)."
17344 msgstr ""
17345
17346 # type: =head2
17347 #: ../fish/guestfish-actions.pod:412
17348 msgid "blockdev-getsz"
17349 msgstr ""
17350
17351 # type: verbatim
17352 #: ../fish/guestfish-actions.pod:414
17353 #, no-wrap
17354 msgid ""
17355 " blockdev-getsz device\n"
17356 "\n"
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish-actions.pod:419
17361 msgid ""
17362 "See also C<blockdev-getss> for the real sector size of the device, and "
17363 "C<blockdev-getsize64> for the more useful I<size in bytes>."
17364 msgstr ""
17365
17366 # type: =head2
17367 #: ../fish/guestfish-actions.pod:425
17368 msgid "blockdev-rereadpt"
17369 msgstr ""
17370
17371 # type: verbatim
17372 #: ../fish/guestfish-actions.pod:427
17373 #, no-wrap
17374 msgid ""
17375 " blockdev-rereadpt device\n"
17376 "\n"
17377 msgstr ""
17378
17379 # type: =head2
17380 #: ../fish/guestfish-actions.pod:433
17381 msgid "blockdev-setbsz"
17382 msgstr ""
17383
17384 # type: verbatim
17385 #: ../fish/guestfish-actions.pod:435
17386 #, no-wrap
17387 msgid ""
17388 " blockdev-setbsz device blocksize\n"
17389 "\n"
17390 msgstr ""
17391
17392 # type: =head2
17393 #: ../fish/guestfish-actions.pod:444
17394 msgid "blockdev-setro"
17395 msgstr ""
17396
17397 # type: verbatim
17398 #: ../fish/guestfish-actions.pod:446
17399 #, no-wrap
17400 msgid ""
17401 " blockdev-setro device\n"
17402 "\n"
17403 msgstr ""
17404
17405 # type: =head2
17406 #: ../fish/guestfish-actions.pod:452
17407 msgid "blockdev-setrw"
17408 msgstr ""
17409
17410 # type: verbatim
17411 #: ../fish/guestfish-actions.pod:454
17412 #, no-wrap
17413 msgid ""
17414 " blockdev-setrw device\n"
17415 "\n"
17416 msgstr ""
17417
17418 # type: =head2
17419 #: ../fish/guestfish-actions.pod:460
17420 msgid "case-sensitive-path"
17421 msgstr ""
17422
17423 # type: verbatim
17424 #: ../fish/guestfish-actions.pod:462
17425 #, no-wrap
17426 msgid ""
17427 " case-sensitive-path path\n"
17428 "\n"
17429 msgstr ""
17430
17431 # type: textblock
17432 #: ../fish/guestfish-actions.pod:486
17433 msgid ""
17434 "Thus C<case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
17435 "WINDOWS/system32\"> (the exact return value would depend on details of how "
17436 "the directories were originally created under Windows)."
17437 msgstr ""
17438
17439 # type: textblock
17440 #: ../fish/guestfish-actions.pod:494
17441 msgid "See also C<realpath>."
17442 msgstr ""
17443
17444 # type: =head2
17445 #: ../fish/guestfish-actions.pod:496
17446 msgid "cat"
17447 msgstr ""
17448
17449 # type: verbatim
17450 #: ../fish/guestfish-actions.pod:498
17451 #, no-wrap
17452 msgid ""
17453 " cat path\n"
17454 "\n"
17455 msgstr ""
17456
17457 # type: textblock
17458 #: ../fish/guestfish-actions.pod:502
17459 msgid ""
17460 "Note that this function cannot correctly handle binary files (specifically, "
17461 "files containing C<\\0> character which is treated as end of string).  For "
17462 "those you need to use the C<read-file> or C<download> functions which have a "
17463 "more complex interface."
17464 msgstr ""
17465
17466 # type: =head2
17467 #: ../fish/guestfish-actions.pod:510
17468 msgid "checksum"
17469 msgstr ""
17470
17471 # type: verbatim
17472 #: ../fish/guestfish-actions.pod:512
17473 #, no-wrap
17474 msgid ""
17475 " checksum csumtype path\n"
17476 "\n"
17477 msgstr ""
17478
17479 # type: textblock
17480 #: ../fish/guestfish-actions.pod:555
17481 msgid "To get the checksum for a device, use C<checksum-device>."
17482 msgstr ""
17483
17484 # type: textblock
17485 #: ../fish/guestfish-actions.pod:557
17486 msgid "To get the checksums for many files, use C<checksums-out>."
17487 msgstr ""
17488
17489 # type: =head2
17490 #: ../fish/guestfish-actions.pod:559
17491 msgid "checksum-device"
17492 msgstr ""
17493
17494 # type: verbatim
17495 #: ../fish/guestfish-actions.pod:561
17496 #, no-wrap
17497 msgid ""
17498 " checksum-device csumtype device\n"
17499 "\n"
17500 msgstr ""
17501
17502 # type: textblock
17503 #: ../fish/guestfish-actions.pod:563
17504 msgid ""
17505 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17506 "device named C<device>.  For the types of checksums supported see the "
17507 "C<checksum> command."
17508 msgstr ""
17509
17510 # type: =head2
17511 #: ../fish/guestfish-actions.pod:567
17512 msgid "checksums-out"
17513 msgstr ""
17514
17515 # type: verbatim
17516 #: ../fish/guestfish-actions.pod:569
17517 #, no-wrap
17518 msgid ""
17519 " checksums-out csumtype directory (sumsfile|-)\n"
17520 "\n"
17521 msgstr ""
17522
17523 # type: =head2
17524 #: ../fish/guestfish-actions.pod:585
17525 msgid "chmod"
17526 msgstr ""
17527
17528 # type: verbatim
17529 #: ../fish/guestfish-actions.pod:587
17530 #, no-wrap
17531 msgid ""
17532 " chmod mode path\n"
17533 "\n"
17534 msgstr ""
17535
17536 # type: =head2
17537 #: ../fish/guestfish-actions.pod:598
17538 msgid "chown"
17539 msgstr ""
17540
17541 # type: verbatim
17542 #: ../fish/guestfish-actions.pod:600
17543 #, no-wrap
17544 msgid ""
17545 " chown owner group path\n"
17546 "\n"
17547 msgstr ""
17548
17549 # type: =head2
17550 #: ../fish/guestfish-actions.pod:608
17551 msgid "command"
17552 msgstr ""
17553
17554 # type: verbatim
17555 #: ../fish/guestfish-actions.pod:610
17556 #, no-wrap
17557 msgid ""
17558 " command 'arguments ...'\n"
17559 "\n"
17560 msgstr ""
17561
17562 # type: textblock
17563 #: ../fish/guestfish-actions.pod:617
17564 msgid ""
17565 "The single parameter is an argv-style list of arguments.  The first element "
17566 "is the name of the program to run.  Subsequent elements are parameters.  The "
17567 "list must be non-empty (ie. must contain a program name).  Note that the "
17568 "command runs directly, and is I<not> invoked via the shell (see C<sh>)."
17569 msgstr ""
17570
17571 # type: =head2
17572 #: ../fish/guestfish-actions.pod:645
17573 msgid "command-lines"
17574 msgstr ""
17575
17576 # type: verbatim
17577 #: ../fish/guestfish-actions.pod:647
17578 #, no-wrap
17579 msgid ""
17580 " command-lines 'arguments ...'\n"
17581 "\n"
17582 msgstr ""
17583
17584 # type: textblock
17585 #: ../fish/guestfish-actions.pod:649
17586 msgid ""
17587 "This is the same as C<command>, but splits the result into a list of lines."
17588 msgstr ""
17589
17590 # type: textblock
17591 #: ../fish/guestfish-actions.pod:652
17592 msgid "See also: C<sh-lines>"
17593 msgstr ""
17594
17595 # type: =head2
17596 #: ../fish/guestfish-actions.pod:657
17597 msgid "config"
17598 msgstr ""
17599
17600 # type: verbatim
17601 #: ../fish/guestfish-actions.pod:659
17602 #, no-wrap
17603 msgid ""
17604 " config qemuparam qemuvalue\n"
17605 "\n"
17606 msgstr ""
17607
17608 # type: =head2
17609 #: ../fish/guestfish-actions.pod:670
17610 msgid "copy-size"
17611 msgstr ""
17612
17613 # type: verbatim
17614 #: ../fish/guestfish-actions.pod:672
17615 #, no-wrap
17616 msgid ""
17617 " copy-size src dest size\n"
17618 "\n"
17619 msgstr ""
17620
17621 # type: =head2
17622 #: ../fish/guestfish-actions.pod:680
17623 msgid "cp"
17624 msgstr ""
17625
17626 # type: verbatim
17627 #: ../fish/guestfish-actions.pod:682
17628 #, no-wrap
17629 msgid ""
17630 " cp src dest\n"
17631 "\n"
17632 msgstr ""
17633
17634 # type: =head2
17635 #: ../fish/guestfish-actions.pod:687
17636 msgid "cp-a"
17637 msgstr ""
17638
17639 # type: verbatim
17640 #: ../fish/guestfish-actions.pod:689
17641 #, no-wrap
17642 msgid ""
17643 " cp-a src dest\n"
17644 "\n"
17645 msgstr ""
17646
17647 # type: =head2
17648 #: ../fish/guestfish-actions.pod:694
17649 msgid "dd"
17650 msgstr ""
17651
17652 # type: verbatim
17653 #: ../fish/guestfish-actions.pod:696
17654 #, no-wrap
17655 msgid ""
17656 " dd src dest\n"
17657 "\n"
17658 msgstr ""
17659
17660 # type: textblock
17661 #: ../fish/guestfish-actions.pod:703
17662 msgid ""
17663 "If the destination is a device, it must be as large or larger than the "
17664 "source file or device, otherwise the copy will fail.  This command cannot do "
17665 "partial copies (see C<copy-size>)."
17666 msgstr ""
17667
17668 # type: =head2
17669 #: ../fish/guestfish-actions.pod:707
17670 msgid "debug"
17671 msgstr ""
17672
17673 # type: verbatim
17674 #: ../fish/guestfish-actions.pod:709
17675 #, no-wrap
17676 msgid ""
17677 " debug subcmd 'extraargs ...'\n"
17678 "\n"
17679 msgstr ""
17680
17681 # type: textblock
17682 #: ../fish/guestfish-actions.pod:711
17683 msgid ""
17684 "The C<debug> command exposes some internals of C<guestfsd> (the guestfs "
17685 "daemon) that runs inside the qemu subprocess."
17686 msgstr ""
17687
17688 # type: =head2
17689 #: ../fish/guestfish-actions.pod:719
17690 msgid "debug-upload"
17691 msgstr ""
17692
17693 # type: verbatim
17694 #: ../fish/guestfish-actions.pod:721
17695 #, no-wrap
17696 msgid ""
17697 " debug-upload (filename|-) tmpname mode\n"
17698 "\n"
17699 msgstr ""
17700
17701 # type: textblock
17702 #: ../fish/guestfish-actions.pod:723
17703 msgid "The C<debug-upload> command uploads a file to the libguestfs appliance."
17704 msgstr ""
17705
17706 # type: =head2
17707 #: ../fish/guestfish-actions.pod:732
17708 msgid "df"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish-actions.pod:734
17713 #, no-wrap
17714 msgid ""
17715 " df\n"
17716 "\n"
17717 msgstr ""
17718
17719 # type: =head2
17720 #: ../fish/guestfish-actions.pod:742
17721 msgid "df-h"
17722 msgstr ""
17723
17724 # type: verbatim
17725 #: ../fish/guestfish-actions.pod:744
17726 #, no-wrap
17727 msgid ""
17728 " df-h\n"
17729 "\n"
17730 msgstr ""
17731
17732 # type: =head2
17733 #: ../fish/guestfish-actions.pod:753
17734 msgid "dmesg"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish-actions.pod:755
17739 #, no-wrap
17740 msgid ""
17741 " dmesg\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: textblock
17746 #: ../fish/guestfish-actions.pod:761
17747 msgid ""
17748 "Another way to get the same information is to enable verbose messages with "
17749 "C<set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17750 "before running the program."
17751 msgstr ""
17752
17753 # type: =head2
17754 #: ../fish/guestfish-actions.pod:766
17755 msgid "download"
17756 msgstr ""
17757
17758 # type: verbatim
17759 #: ../fish/guestfish-actions.pod:768
17760 #, no-wrap
17761 msgid ""
17762 " download remotefilename (filename|-)\n"
17763 "\n"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish-actions.pod:775
17768 msgid "See also C<upload>, C<cat>."
17769 msgstr ""
17770
17771 # type: =head2
17772 #: ../fish/guestfish-actions.pod:779
17773 msgid "drop-caches"
17774 msgstr ""
17775
17776 # type: verbatim
17777 #: ../fish/guestfish-actions.pod:781
17778 #, no-wrap
17779 msgid ""
17780 " drop-caches whattodrop\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: =head2
17785 #: ../fish/guestfish-actions.pod:793
17786 msgid "du"
17787 msgstr ""
17788
17789 # type: verbatim
17790 #: ../fish/guestfish-actions.pod:795
17791 #, no-wrap
17792 msgid ""
17793 " du path\n"
17794 "\n"
17795 msgstr ""
17796
17797 # type: =head2
17798 #: ../fish/guestfish-actions.pod:807
17799 msgid "e2fsck-f"
17800 msgstr ""
17801
17802 # type: verbatim
17803 #: ../fish/guestfish-actions.pod:809
17804 #, no-wrap
17805 msgid ""
17806 " e2fsck-f device\n"
17807 "\n"
17808 msgstr ""
17809
17810 # type: textblock
17811 #: ../fish/guestfish-actions.pod:815
17812 msgid ""
17813 "This command is only needed because of C<resize2fs> (q.v.).  Normally you "
17814 "should use C<fsck>."
17815 msgstr ""
17816
17817 # type: =head2
17818 #: ../fish/guestfish-actions.pod:818
17819 msgid "echo-daemon"
17820 msgstr ""
17821
17822 # type: verbatim
17823 #: ../fish/guestfish-actions.pod:820
17824 #, no-wrap
17825 msgid ""
17826 " echo-daemon 'words ...'\n"
17827 "\n"
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish-actions.pod:827
17832 msgid "See also C<ping-daemon>."
17833 msgstr ""
17834
17835 # type: =head2
17836 #: ../fish/guestfish-actions.pod:829
17837 msgid "egrep"
17838 msgstr ""
17839
17840 # type: verbatim
17841 #: ../fish/guestfish-actions.pod:831
17842 #, no-wrap
17843 msgid ""
17844 " egrep regex path\n"
17845 "\n"
17846 msgstr ""
17847
17848 # type: =head2
17849 #: ../fish/guestfish-actions.pod:839
17850 msgid "egrepi"
17851 msgstr ""
17852
17853 # type: verbatim
17854 #: ../fish/guestfish-actions.pod:841
17855 #, no-wrap
17856 msgid ""
17857 " egrepi regex path\n"
17858 "\n"
17859 msgstr ""
17860
17861 # type: =head2
17862 #: ../fish/guestfish-actions.pod:849
17863 msgid "equal"
17864 msgstr ""
17865
17866 # type: verbatim
17867 #: ../fish/guestfish-actions.pod:851
17868 #, no-wrap
17869 msgid ""
17870 " equal file1 file2\n"
17871 "\n"
17872 msgstr ""
17873
17874 # type: =head2
17875 #: ../fish/guestfish-actions.pod:858
17876 msgid "exists"
17877 msgstr ""
17878
17879 # type: verbatim
17880 #: ../fish/guestfish-actions.pod:860
17881 #, no-wrap
17882 msgid ""
17883 " exists path\n"
17884 "\n"
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish-actions.pod:865
17889 msgid "See also C<is-file>, C<is-dir>, C<stat>."
17890 msgstr ""
17891
17892 # type: =head2
17893 #: ../fish/guestfish-actions.pod:867
17894 msgid "fallocate"
17895 msgstr ""
17896
17897 # type: verbatim
17898 #: ../fish/guestfish-actions.pod:869
17899 #, no-wrap
17900 msgid ""
17901 " fallocate path len\n"
17902 "\n"
17903 msgstr ""
17904
17905 # type: =head2
17906 #: ../fish/guestfish-actions.pod:886
17907 msgid "fallocate64"
17908 msgstr ""
17909
17910 # type: verbatim
17911 #: ../fish/guestfish-actions.pod:888
17912 #, no-wrap
17913 msgid ""
17914 " fallocate64 path len\n"
17915 "\n"
17916 msgstr ""
17917
17918 # type: textblock
17919 #: ../fish/guestfish-actions.pod:894
17920 msgid ""
17921 "Note that this call allocates disk blocks for the file.  To create a sparse "
17922 "file use C<truncate-size> instead."
17923 msgstr ""
17924
17925 # type: textblock
17926 #: ../fish/guestfish-actions.pod:897
17927 msgid ""
17928 "The deprecated call C<fallocate> does the same, but owing to an oversight it "
17929 "only allowed 30 bit lengths to be specified, effectively limiting the "
17930 "maximum size of files created through that call to 1GB."
17931 msgstr ""
17932
17933 # type: =head2
17934 #: ../fish/guestfish-actions.pod:906
17935 msgid "fgrep"
17936 msgstr ""
17937
17938 # type: verbatim
17939 #: ../fish/guestfish-actions.pod:908
17940 #, no-wrap
17941 msgid ""
17942 " fgrep pattern path\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: =head2
17947 #: ../fish/guestfish-actions.pod:916
17948 msgid "fgrepi"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #: ../fish/guestfish-actions.pod:918
17953 #, no-wrap
17954 msgid ""
17955 " fgrepi pattern path\n"
17956 "\n"
17957 msgstr ""
17958
17959 # type: =head2
17960 #: ../fish/guestfish-actions.pod:926
17961 msgid "file"
17962 msgstr ""
17963
17964 # type: verbatim
17965 #: ../fish/guestfish-actions.pod:928
17966 #, no-wrap
17967 msgid ""
17968 " file path\n"
17969 "\n"
17970 msgstr ""
17971
17972 # type: textblock
17973 #: ../fish/guestfish-actions.pod:940
17974 msgid ""
17975 "This command can also be used on C</dev/> devices (and partitions, LV "
17976 "names).  You can for example use this to determine if a device contains a "
17977 "filesystem, although it's usually better to use C<vfs-type>."
17978 msgstr ""
17979
17980 # type: =head2
17981 #: ../fish/guestfish-actions.pod:950
17982 msgid "file-architecture"
17983 msgstr ""
17984
17985 # type: verbatim
17986 #: ../fish/guestfish-actions.pod:952
17987 #, no-wrap
17988 msgid ""
17989 " file-architecture filename\n"
17990 "\n"
17991 msgstr ""
17992
17993 # type: =head2
17994 #: ../fish/guestfish-actions.pod:1055
17995 msgid "filesize"
17996 msgstr ""
17997
17998 # type: verbatim
17999 #: ../fish/guestfish-actions.pod:1057
18000 #, no-wrap
18001 msgid ""
18002 " filesize file\n"
18003 "\n"
18004 msgstr ""
18005
18006 # type: textblock
18007 #: ../fish/guestfish-actions.pod:1061
18008 msgid ""
18009 "To get other stats about a file, use C<stat>, C<lstat>, C<is-dir>, C<is-"
18010 "file> etc.  To get the size of block devices, use C<blockdev-getsize64>."
18011 msgstr ""
18012
18013 # type: =head2
18014 #: ../fish/guestfish-actions.pod:1065
18015 msgid "fill"
18016 msgstr ""
18017
18018 # type: verbatim
18019 #: ../fish/guestfish-actions.pod:1067
18020 #, no-wrap
18021 msgid ""
18022 " fill c len path\n"
18023 "\n"
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../fish/guestfish-actions.pod:1073
18028 msgid ""
18029 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18030 "C<truncate-size>.  To create a file with a pattern of repeating bytes use "
18031 "C<fill-pattern>."
18032 msgstr ""
18033
18034 # type: =head2
18035 #: ../fish/guestfish-actions.pod:1078
18036 msgid "fill-pattern"
18037 msgstr ""
18038
18039 # type: verbatim
18040 #: ../fish/guestfish-actions.pod:1080
18041 #, no-wrap
18042 msgid ""
18043 " fill-pattern pattern len path\n"
18044 "\n"
18045 msgstr ""
18046
18047 # type: textblock
18048 #: ../fish/guestfish-actions.pod:1082
18049 msgid ""
18050 "This function is like C<fill> except that it creates a new file of length "
18051 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18052 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18053 "bytes."
18054 msgstr ""
18055
18056 # type: =head2
18057 #: ../fish/guestfish-actions.pod:1087
18058 msgid "find"
18059 msgstr ""
18060
18061 # type: verbatim
18062 #: ../fish/guestfish-actions.pod:1089
18063 #, no-wrap
18064 msgid ""
18065 " find directory\n"
18066 "\n"
18067 msgstr ""
18068
18069 # type: textblock
18070 #: ../fish/guestfish-actions.pod:1103
18071 msgid "then the returned list from C<find> C</tmp> would be 4 elements:"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish-actions.pod:1116
18076 msgid "See also C<find0>."
18077 msgstr ""
18078
18079 # type: =head2
18080 #: ../fish/guestfish-actions.pod:1121
18081 msgid "find0"
18082 msgstr ""
18083
18084 # type: verbatim
18085 #: ../fish/guestfish-actions.pod:1123
18086 #, no-wrap
18087 msgid ""
18088 " find0 directory (files|-)\n"
18089 "\n"
18090 msgstr ""
18091
18092 # type: textblock
18093 #: ../fish/guestfish-actions.pod:1129
18094 msgid ""
18095 "This command works the same way as C<find> with the following exceptions:"
18096 msgstr ""
18097
18098 # type: =head2
18099 #: ../fish/guestfish-actions.pod:1156
18100 msgid "findfs-label"
18101 msgstr ""
18102
18103 # type: verbatim
18104 #: ../fish/guestfish-actions.pod:1158
18105 #, no-wrap
18106 msgid ""
18107 " findfs-label label\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish-actions.pod:1164
18113 msgid "To find the label of a filesystem, use C<vfs-label>."
18114 msgstr ""
18115
18116 # type: =head2
18117 #: ../fish/guestfish-actions.pod:1166
18118 msgid "findfs-uuid"
18119 msgstr ""
18120
18121 # type: verbatim
18122 #: ../fish/guestfish-actions.pod:1168
18123 #, no-wrap
18124 msgid ""
18125 " findfs-uuid uuid\n"
18126 "\n"
18127 msgstr ""
18128
18129 # type: textblock
18130 #: ../fish/guestfish-actions.pod:1174
18131 msgid "To find the UUID of a filesystem, use C<vfs-uuid>."
18132 msgstr ""
18133
18134 # type: =head2
18135 #: ../fish/guestfish-actions.pod:1176
18136 msgid "fsck"
18137 msgstr ""
18138
18139 # type: verbatim
18140 #: ../fish/guestfish-actions.pod:1178
18141 #, no-wrap
18142 msgid ""
18143 " fsck fstype device\n"
18144 "\n"
18145 msgstr ""
18146
18147 # type: =head2
18148 #: ../fish/guestfish-actions.pod:1208
18149 msgid "get-append"
18150 msgstr ""
18151
18152 # type: verbatim
18153 #: ../fish/guestfish-actions.pod:1210
18154 #, no-wrap
18155 msgid ""
18156 " get-append\n"
18157 "\n"
18158 msgstr ""
18159
18160 # type: =head2
18161 #: ../fish/guestfish-actions.pod:1217
18162 msgid "get-autosync"
18163 msgstr ""
18164
18165 # type: verbatim
18166 #: ../fish/guestfish-actions.pod:1219
18167 #, no-wrap
18168 msgid ""
18169 " get-autosync\n"
18170 "\n"
18171 msgstr ""
18172
18173 # type: =head2
18174 #: ../fish/guestfish-actions.pod:1223
18175 msgid "get-direct"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #: ../fish/guestfish-actions.pod:1225
18180 #, no-wrap
18181 msgid ""
18182 " get-direct\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: =head2
18187 #: ../fish/guestfish-actions.pod:1229
18188 msgid "get-e2label"
18189 msgstr ""
18190
18191 # type: verbatim
18192 #: ../fish/guestfish-actions.pod:1231
18193 #, no-wrap
18194 msgid ""
18195 " get-e2label device\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: =head2
18200 #: ../fish/guestfish-actions.pod:1243
18201 msgid "get-e2uuid"
18202 msgstr ""
18203
18204 # type: verbatim
18205 #: ../fish/guestfish-actions.pod:1245
18206 #, no-wrap
18207 msgid ""
18208 " get-e2uuid device\n"
18209 "\n"
18210 msgstr ""
18211
18212 # type: =head2
18213 #: ../fish/guestfish-actions.pod:1257
18214 msgid "get-memsize"
18215 msgstr ""
18216
18217 # type: verbatim
18218 #: ../fish/guestfish-actions.pod:1259
18219 #, no-wrap
18220 msgid ""
18221 " get-memsize\n"
18222 "\n"
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish-actions.pod:1264
18227 msgid ""
18228 "If C<set-memsize> was not called on this handle, and if "
18229 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18230 "value for memsize."
18231 msgstr ""
18232
18233 # type: =head2
18234 #: ../fish/guestfish-actions.pod:1271
18235 msgid "get-network"
18236 msgstr ""
18237
18238 # type: verbatim
18239 #: ../fish/guestfish-actions.pod:1273
18240 #, no-wrap
18241 msgid ""
18242 " get-network\n"
18243 "\n"
18244 msgstr ""
18245
18246 # type: =head2
18247 #: ../fish/guestfish-actions.pod:1277
18248 msgid "get-path"
18249 msgstr ""
18250
18251 # type: verbatim
18252 #: ../fish/guestfish-actions.pod:1279
18253 #, no-wrap
18254 msgid ""
18255 " get-path\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: =head2
18260 #: ../fish/guestfish-actions.pod:1286
18261 msgid "get-pid | pid"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #: ../fish/guestfish-actions.pod:1288
18266 #, no-wrap
18267 msgid ""
18268 " get-pid\n"
18269 "\n"
18270 msgstr ""
18271
18272 # type: =head2
18273 #: ../fish/guestfish-actions.pod:1295
18274 msgid "get-qemu"
18275 msgstr ""
18276
18277 # type: verbatim
18278 #: ../fish/guestfish-actions.pod:1297
18279 #, no-wrap
18280 msgid ""
18281 " get-qemu\n"
18282 "\n"
18283 msgstr ""
18284
18285 # type: =head2
18286 #: ../fish/guestfish-actions.pod:1304
18287 msgid "get-recovery-proc"
18288 msgstr ""
18289
18290 # type: verbatim
18291 #: ../fish/guestfish-actions.pod:1306
18292 #, no-wrap
18293 msgid ""
18294 " get-recovery-proc\n"
18295 "\n"
18296 msgstr ""
18297
18298 # type: =head2
18299 #: ../fish/guestfish-actions.pod:1310
18300 msgid "get-selinux"
18301 msgstr ""
18302
18303 # type: verbatim
18304 #: ../fish/guestfish-actions.pod:1312
18305 #, no-wrap
18306 msgid ""
18307 " get-selinux\n"
18308 "\n"
18309 msgstr ""
18310
18311 # type: textblock
18312 #: ../fish/guestfish-actions.pod:1314
18313 msgid ""
18314 "This returns the current setting of the selinux flag which is passed to the "
18315 "appliance at boot time.  See C<set-selinux>."
18316 msgstr ""
18317
18318 # type: =head2
18319 #: ../fish/guestfish-actions.pod:1320
18320 msgid "get-state"
18321 msgstr ""
18322
18323 # type: verbatim
18324 #: ../fish/guestfish-actions.pod:1322
18325 #, no-wrap
18326 msgid ""
18327 " get-state\n"
18328 "\n"
18329 msgstr ""
18330
18331 # type: =head2
18332 #: ../fish/guestfish-actions.pod:1329
18333 msgid "get-trace"
18334 msgstr ""
18335
18336 # type: verbatim
18337 #: ../fish/guestfish-actions.pod:1331
18338 #, no-wrap
18339 msgid ""
18340 " get-trace\n"
18341 "\n"
18342 msgstr ""
18343
18344 # type: =head2
18345 #: ../fish/guestfish-actions.pod:1335
18346 msgid "get-umask"
18347 msgstr ""
18348
18349 # type: verbatim
18350 #: ../fish/guestfish-actions.pod:1337
18351 #, no-wrap
18352 msgid ""
18353 " get-umask\n"
18354 "\n"
18355 msgstr ""
18356
18357 # type: textblock
18358 #: ../fish/guestfish-actions.pod:1339
18359 msgid ""
18360 "Return the current umask.  By default the umask is C<022> unless it has been "
18361 "set by calling C<umask>."
18362 msgstr ""
18363
18364 # type: =head2
18365 #: ../fish/guestfish-actions.pod:1342
18366 msgid "get-verbose"
18367 msgstr ""
18368
18369 # type: verbatim
18370 #: ../fish/guestfish-actions.pod:1344
18371 #, no-wrap
18372 msgid ""
18373 " get-verbose\n"
18374 "\n"
18375 msgstr ""
18376
18377 # type: =head2
18378 #: ../fish/guestfish-actions.pod:1348
18379 msgid "getcon"
18380 msgstr ""
18381
18382 # type: verbatim
18383 #: ../fish/guestfish-actions.pod:1350
18384 #, no-wrap
18385 msgid ""
18386 " getcon\n"
18387 "\n"
18388 msgstr ""
18389
18390 # type: textblock
18391 #: ../fish/guestfish-actions.pod:1354
18392 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<setcon>"
18393 msgstr ""
18394
18395 # type: =head2
18396 #: ../fish/guestfish-actions.pod:1357
18397 msgid "getxattrs"
18398 msgstr ""
18399
18400 # type: verbatim
18401 #: ../fish/guestfish-actions.pod:1359
18402 #, no-wrap
18403 msgid ""
18404 " getxattrs path\n"
18405 "\n"
18406 msgstr ""
18407
18408 # type: textblock
18409 #: ../fish/guestfish-actions.pod:1367
18410 msgid "See also: C<lgetxattrs>, L<attr(5)>."
18411 msgstr ""
18412
18413 # type: =head2
18414 #: ../fish/guestfish-actions.pod:1369
18415 msgid "glob-expand"
18416 msgstr ""
18417
18418 # type: verbatim
18419 #: ../fish/guestfish-actions.pod:1371
18420 #, no-wrap
18421 msgid ""
18422 " glob-expand pattern\n"
18423 "\n"
18424 msgstr ""
18425
18426 # type: =head2
18427 #: ../fish/guestfish-actions.pod:1384
18428 msgid "grep"
18429 msgstr ""
18430
18431 # type: verbatim
18432 #: ../fish/guestfish-actions.pod:1386
18433 #, no-wrap
18434 msgid ""
18435 " grep regex path\n"
18436 "\n"
18437 msgstr ""
18438
18439 # type: =head2
18440 #: ../fish/guestfish-actions.pod:1394
18441 msgid "grepi"
18442 msgstr ""
18443
18444 # type: verbatim
18445 #: ../fish/guestfish-actions.pod:1396
18446 #, no-wrap
18447 msgid ""
18448 " grepi regex path\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: =head2
18453 #: ../fish/guestfish-actions.pod:1404
18454 msgid "grub-install"
18455 msgstr ""
18456
18457 # type: verbatim
18458 #: ../fish/guestfish-actions.pod:1406
18459 #, no-wrap
18460 msgid ""
18461 " grub-install root device\n"
18462 "\n"
18463 msgstr ""
18464
18465 # type: =head2
18466 #: ../fish/guestfish-actions.pod:1422
18467 msgid "head"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #: ../fish/guestfish-actions.pod:1424
18472 #, no-wrap
18473 msgid ""
18474 " head path\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: =head2
18479 #: ../fish/guestfish-actions.pod:1432
18480 msgid "head-n"
18481 msgstr ""
18482
18483 # type: verbatim
18484 #: ../fish/guestfish-actions.pod:1434
18485 #, no-wrap
18486 msgid ""
18487 " head-n nrlines path\n"
18488 "\n"
18489 msgstr ""
18490
18491 # type: =head2
18492 #: ../fish/guestfish-actions.pod:1447
18493 msgid "hexdump"
18494 msgstr ""
18495
18496 # type: verbatim
18497 #: ../fish/guestfish-actions.pod:1449
18498 #, no-wrap
18499 msgid ""
18500 " hexdump path\n"
18501 "\n"
18502 msgstr ""
18503
18504 # type: =head2
18505 #: ../fish/guestfish-actions.pod:1457
18506 msgid "initrd-cat"
18507 msgstr ""
18508
18509 # type: verbatim
18510 #: ../fish/guestfish-actions.pod:1459
18511 #, no-wrap
18512 msgid ""
18513 " initrd-cat initrdpath filename\n"
18514 "\n"
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../fish/guestfish-actions.pod:1471
18519 msgid "See also C<initrd-list>."
18520 msgstr ""
18521
18522 # type: =head2
18523 #: ../fish/guestfish-actions.pod:1476
18524 msgid "initrd-list"
18525 msgstr ""
18526
18527 # type: verbatim
18528 #: ../fish/guestfish-actions.pod:1478
18529 #, no-wrap
18530 msgid ""
18531 " initrd-list path\n"
18532 "\n"
18533 msgstr ""
18534
18535 # type: =head2
18536 #: ../fish/guestfish-actions.pod:1490
18537 msgid "inotify-add-watch"
18538 msgstr ""
18539
18540 # type: verbatim
18541 #: ../fish/guestfish-actions.pod:1492
18542 #, no-wrap
18543 msgid ""
18544 " inotify-add-watch path mask\n"
18545 "\n"
18546 msgstr ""
18547
18548 # type: =head2
18549 #: ../fish/guestfish-actions.pod:1504
18550 msgid "inotify-close"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish-actions.pod:1506
18555 #, no-wrap
18556 msgid ""
18557 " inotify-close\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: =head2
18562 #: ../fish/guestfish-actions.pod:1512
18563 msgid "inotify-files"
18564 msgstr ""
18565
18566 # type: verbatim
18567 #: ../fish/guestfish-actions.pod:1514
18568 #, no-wrap
18569 msgid ""
18570 " inotify-files\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: textblock
18575 #: ../fish/guestfish-actions.pod:1516
18576 msgid ""
18577 "This function is a helpful wrapper around C<inotify-read> which just returns "
18578 "a list of pathnames of objects that were touched.  The returned pathnames "
18579 "are sorted and deduplicated."
18580 msgstr ""
18581
18582 # type: =head2
18583 #: ../fish/guestfish-actions.pod:1520
18584 msgid "inotify-init"
18585 msgstr ""
18586
18587 # type: verbatim
18588 #: ../fish/guestfish-actions.pod:1522
18589 #, no-wrap
18590 msgid ""
18591 " inotify-init maxevents\n"
18592 "\n"
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish-actions.pod:1528
18597 msgid ""
18598 "C<maxevents> is the maximum number of events which will be queued up between "
18599 "calls to C<inotify-read> or C<inotify-files>.  If this is passed as C<0>, "
18600 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18601 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18602 "but records the fact that it threw them away by setting a flag "
18603 "C<IN_Q_OVERFLOW> in the returned structure list (see C<inotify-read>)."
18604 msgstr ""
18605
18606 # type: textblock
18607 #: ../fish/guestfish-actions.pod:1538
18608 msgid ""
18609 "Before any events are generated, you have to add some watches to the "
18610 "internal watch list.  See: C<inotify-add-watch>, C<inotify-rm-watch> and "
18611 "C<inotify-watch-all>."
18612 msgstr ""
18613
18614 # type: textblock
18615 #: ../fish/guestfish-actions.pod:1544
18616 msgid ""
18617 "Queued up events should be read periodically by calling C<inotify-read> (or "
18618 "C<inotify-files> which is just a helpful wrapper around C<inotify-read>).  "
18619 "If you don't read the events out often enough then you risk the internal "
18620 "queue overflowing."
18621 msgstr ""
18622
18623 # type: textblock
18624 #: ../fish/guestfish-actions.pod:1551
18625 msgid ""
18626 "The handle should be closed after use by calling C<inotify-close>.  This "
18627 "also removes any watches automatically."
18628 msgstr ""
18629
18630 # type: =head2
18631 #: ../fish/guestfish-actions.pod:1560
18632 msgid "inotify-read"
18633 msgstr ""
18634
18635 # type: verbatim
18636 #: ../fish/guestfish-actions.pod:1562
18637 #, no-wrap
18638 msgid ""
18639 " inotify-read\n"
18640 "\n"
18641 msgstr ""
18642
18643 # type: =head2
18644 #: ../fish/guestfish-actions.pod:1575
18645 msgid "inotify-rm-watch"
18646 msgstr ""
18647
18648 # type: verbatim
18649 #: ../fish/guestfish-actions.pod:1577
18650 #, no-wrap
18651 msgid ""
18652 " inotify-rm-watch wd\n"
18653 "\n"
18654 msgstr ""
18655
18656 # type: textblock
18657 #: ../fish/guestfish-actions.pod:1579
18658 msgid "Remove a previously defined inotify watch.  See C<inotify-add-watch>."
18659 msgstr ""
18660
18661 # type: =head2
18662 #: ../fish/guestfish-actions.pod:1582
18663 msgid "inspect-get-arch"
18664 msgstr ""
18665
18666 # type: verbatim
18667 #: ../fish/guestfish-actions.pod:1584
18668 #, no-wrap
18669 msgid ""
18670 " inspect-get-arch root\n"
18671 "\n"
18672 msgstr ""
18673
18674 # type: textblock
18675 #: ../fish/guestfish-actions.pod:1586 ../fish/guestfish-actions.pod:1602
18676 #: ../fish/guestfish-actions.pod:1648 ../fish/guestfish-actions.pod:1666
18677 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1702
18678 #: ../fish/guestfish-actions.pod:1725 ../fish/guestfish-actions.pod:1742
18679 msgid ""
18680 "This function should only be called with a root device string as returned by "
18681 "C<inspect-os>."
18682 msgstr ""
18683
18684 # type: textblock
18685 #: ../fish/guestfish-actions.pod:1589
18686 msgid ""
18687 "This returns the architecture of the inspected operating system.  The "
18688 "possible return values are listed under C<file-architecture>."
18689 msgstr ""
18690
18691 # type: =head2
18692 #: ../fish/guestfish-actions.pod:1598
18693 msgid "inspect-get-distro"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #: ../fish/guestfish-actions.pod:1600
18698 #, no-wrap
18699 msgid ""
18700 " inspect-get-distro root\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: =head2
18705 #: ../fish/guestfish-actions.pod:1644
18706 msgid "inspect-get-filesystems"
18707 msgstr ""
18708
18709 # type: verbatim
18710 #: ../fish/guestfish-actions.pod:1646
18711 #, no-wrap
18712 msgid ""
18713 " inspect-get-filesystems root\n"
18714 "\n"
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish-actions.pod:1659
18719 msgid ""
18720 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18721 "get-mountpoints>."
18722 msgstr ""
18723
18724 # type: =head2
18725 #: ../fish/guestfish-actions.pod:1662
18726 msgid "inspect-get-major-version"
18727 msgstr ""
18728
18729 # type: verbatim
18730 #: ../fish/guestfish-actions.pod:1664
18731 #, no-wrap
18732 msgid ""
18733 " inspect-get-major-version root\n"
18734 "\n"
18735 msgstr ""
18736
18737 # type: =head2
18738 #: ../fish/guestfish-actions.pod:1683
18739 msgid "inspect-get-minor-version"
18740 msgstr ""
18741
18742 # type: verbatim
18743 #: ../fish/guestfish-actions.pod:1685
18744 #, no-wrap
18745 msgid ""
18746 " inspect-get-minor-version root\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish-actions.pod:1695
18752 msgid ""
18753 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18754 "get-major-version>."
18755 msgstr ""
18756
18757 # type: =head2
18758 #: ../fish/guestfish-actions.pod:1698
18759 msgid "inspect-get-mountpoints"
18760 msgstr ""
18761
18762 # type: verbatim
18763 #: ../fish/guestfish-actions.pod:1700
18764 #, no-wrap
18765 msgid ""
18766 " inspect-get-mountpoints root\n"
18767 "\n"
18768 msgstr ""
18769
18770 # type: textblock
18771 #: ../fish/guestfish-actions.pod:1718
18772 msgid ""
18773 "Please read L<guestfs(3)/INSPECTION> for more details.  See also C<inspect-"
18774 "get-filesystems>."
18775 msgstr ""
18776
18777 # type: =head2
18778 #: ../fish/guestfish-actions.pod:1721
18779 msgid "inspect-get-product-name"
18780 msgstr ""
18781
18782 # type: verbatim
18783 #: ../fish/guestfish-actions.pod:1723
18784 #, no-wrap
18785 msgid ""
18786 " inspect-get-product-name root\n"
18787 "\n"
18788 msgstr ""
18789
18790 # type: =head2
18791 #: ../fish/guestfish-actions.pod:1738
18792 msgid "inspect-get-type"
18793 msgstr ""
18794
18795 # type: verbatim
18796 #: ../fish/guestfish-actions.pod:1740
18797 #, no-wrap
18798 msgid ""
18799 " inspect-get-type root\n"
18800 "\n"
18801 msgstr ""
18802
18803 # type: =head2
18804 #: ../fish/guestfish-actions.pod:1769
18805 msgid "inspect-os"
18806 msgstr ""
18807
18808 # type: verbatim
18809 #: ../fish/guestfish-actions.pod:1771
18810 #, no-wrap
18811 msgid ""
18812 " inspect-os\n"
18813 "\n"
18814 msgstr ""
18815
18816 # type: textblock
18817 #: ../fish/guestfish-actions.pod:1786
18818 msgid ""
18819 "You can pass the root string(s) returned to other C<inspect-get-*> functions "
18820 "in order to query further information about each operating system, such as "
18821 "the name and version."
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../fish/guestfish-actions.pod:1791
18826 msgid ""
18827 "This function uses other libguestfs features such as C<mount-ro> and "
18828 "C<umount-all> in order to mount and unmount filesystems and look at the "
18829 "contents.  This should be called with no disks currently mounted.  The "
18830 "function may also use Augeas, so any existing Augeas handle will be closed."
18831 msgstr ""
18832
18833 # type: =head2
18834 #: ../fish/guestfish-actions.pod:1803
18835 msgid "is-blockdev"
18836 msgstr ""
18837
18838 # type: verbatim
18839 #: ../fish/guestfish-actions.pod:1805
18840 #, no-wrap
18841 msgid ""
18842 " is-blockdev path\n"
18843 "\n"
18844 msgstr ""
18845
18846 # type: textblock
18847 #: ../fish/guestfish-actions.pod:1810 ../fish/guestfish-actions.pod:1828
18848 #: ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1856
18849 #: ../fish/guestfish-actions.pod:1866 ../fish/guestfish-actions.pod:1900
18850 #: ../fish/guestfish-actions.pod:1909
18851 msgid "See also C<stat>."
18852 msgstr ""
18853
18854 # type: =head2
18855 #: ../fish/guestfish-actions.pod:1812
18856 msgid "is-busy"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #: ../fish/guestfish-actions.pod:1814
18861 #, no-wrap
18862 msgid ""
18863 " is-busy\n"
18864 "\n"
18865 msgstr ""
18866
18867 # type: =head2
18868 #: ../fish/guestfish-actions.pod:1821
18869 msgid "is-chardev"
18870 msgstr ""
18871
18872 # type: verbatim
18873 #: ../fish/guestfish-actions.pod:1823
18874 #, no-wrap
18875 msgid ""
18876 " is-chardev path\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: =head2
18881 #: ../fish/guestfish-actions.pod:1830
18882 msgid "is-config"
18883 msgstr ""
18884
18885 # type: verbatim
18886 #: ../fish/guestfish-actions.pod:1832
18887 #, no-wrap
18888 msgid ""
18889 " is-config\n"
18890 "\n"
18891 msgstr ""
18892
18893 # type: =head2
18894 #: ../fish/guestfish-actions.pod:1839
18895 msgid "is-dir"
18896 msgstr ""
18897
18898 # type: verbatim
18899 #: ../fish/guestfish-actions.pod:1841
18900 #, no-wrap
18901 msgid ""
18902 " is-dir path\n"
18903 "\n"
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:1849
18908 msgid "is-fifo"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:1851
18913 #, no-wrap
18914 msgid ""
18915 " is-fifo path\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: =head2
18920 #: ../fish/guestfish-actions.pod:1858
18921 msgid "is-file"
18922 msgstr ""
18923
18924 # type: verbatim
18925 #: ../fish/guestfish-actions.pod:1860
18926 #, no-wrap
18927 msgid ""
18928 " is-file path\n"
18929 "\n"
18930 msgstr ""
18931
18932 # type: =head2
18933 #: ../fish/guestfish-actions.pod:1868
18934 msgid "is-launching"
18935 msgstr ""
18936
18937 # type: verbatim
18938 #: ../fish/guestfish-actions.pod:1870
18939 #, no-wrap
18940 msgid ""
18941 " is-launching\n"
18942 "\n"
18943 msgstr ""
18944
18945 # type: =head2
18946 #: ../fish/guestfish-actions.pod:1877
18947 msgid "is-lv"
18948 msgstr ""
18949
18950 # type: verbatim
18951 #: ../fish/guestfish-actions.pod:1879
18952 #, no-wrap
18953 msgid ""
18954 " is-lv device\n"
18955 "\n"
18956 msgstr ""
18957
18958 # type: =head2
18959 #: ../fish/guestfish-actions.pod:1884
18960 msgid "is-ready"
18961 msgstr ""
18962
18963 # type: verbatim
18964 #: ../fish/guestfish-actions.pod:1886
18965 #, no-wrap
18966 msgid ""
18967 " is-ready\n"
18968 "\n"
18969 msgstr ""
18970
18971 # type: =head2
18972 #: ../fish/guestfish-actions.pod:1893
18973 msgid "is-socket"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #: ../fish/guestfish-actions.pod:1895
18978 #, no-wrap
18979 msgid ""
18980 " is-socket path\n"
18981 "\n"
18982 msgstr ""
18983
18984 # type: =head2
18985 #: ../fish/guestfish-actions.pod:1902
18986 msgid "is-symlink"
18987 msgstr ""
18988
18989 # type: verbatim
18990 #: ../fish/guestfish-actions.pod:1904
18991 #, no-wrap
18992 msgid ""
18993 " is-symlink path\n"
18994 "\n"
18995 msgstr ""
18996
18997 # type: =head2
18998 #: ../fish/guestfish-actions.pod:1911
18999 msgid "kill-subprocess"
19000 msgstr ""
19001
19002 # type: verbatim
19003 #: ../fish/guestfish-actions.pod:1913
19004 #, no-wrap
19005 msgid ""
19006 " kill-subprocess\n"
19007 "\n"
19008 msgstr ""
19009
19010 # type: =head2
19011 #: ../fish/guestfish-actions.pod:1917
19012 msgid "launch | run"
19013 msgstr ""
19014
19015 # type: verbatim
19016 #: ../fish/guestfish-actions.pod:1919
19017 #, no-wrap
19018 msgid ""
19019 " launch\n"
19020 "\n"
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:1927
19025 msgid "lchown"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:1929
19030 #, no-wrap
19031 msgid ""
19032 " lchown owner group path\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: textblock
19037 #: ../fish/guestfish-actions.pod:1931
19038 msgid ""
19039 "Change the file owner to C<owner> and group to C<group>.  This is like "
19040 "C<chown> but if C<path> is a symlink then the link itself is changed, not "
19041 "the target."
19042 msgstr ""
19043
19044 # type: =head2
19045 #: ../fish/guestfish-actions.pod:1939
19046 msgid "lgetxattrs"
19047 msgstr ""
19048
19049 # type: verbatim
19050 #: ../fish/guestfish-actions.pod:1941
19051 #, no-wrap
19052 msgid ""
19053 " lgetxattrs path\n"
19054 "\n"
19055 msgstr ""
19056
19057 # type: textblock
19058 #: ../fish/guestfish-actions.pod:1943
19059 msgid ""
19060 "This is the same as C<getxattrs>, but if C<path> is a symbolic link, then it "
19061 "returns the extended attributes of the link itself."
19062 msgstr ""
19063
19064 # type: =head2
19065 #: ../fish/guestfish-actions.pod:1947
19066 msgid "list-devices"
19067 msgstr ""
19068
19069 # type: verbatim
19070 #: ../fish/guestfish-actions.pod:1949
19071 #, no-wrap
19072 msgid ""
19073 " list-devices\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: =head2
19078 #: ../fish/guestfish-actions.pod:1955
19079 msgid "list-partitions"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #: ../fish/guestfish-actions.pod:1957
19084 #, no-wrap
19085 msgid ""
19086 " list-partitions\n"
19087 "\n"
19088 msgstr ""
19089
19090 # type: textblock
19091 #: ../fish/guestfish-actions.pod:1963
19092 msgid ""
19093 "This does not return logical volumes.  For that you will need to call C<lvs>."
19094 msgstr ""
19095
19096 # type: =head2
19097 #: ../fish/guestfish-actions.pod:1966
19098 msgid "ll"
19099 msgstr ""
19100
19101 # type: verbatim
19102 #: ../fish/guestfish-actions.pod:1968
19103 #, no-wrap
19104 msgid ""
19105 " ll directory\n"
19106 "\n"
19107 msgstr ""
19108
19109 # type: =head2
19110 #: ../fish/guestfish-actions.pod:1976
19111 msgid "ln"
19112 msgstr ""
19113
19114 # type: verbatim
19115 #: ../fish/guestfish-actions.pod:1978
19116 #, no-wrap
19117 msgid ""
19118 " ln target linkname\n"
19119 "\n"
19120 msgstr ""
19121
19122 # type: =head2
19123 #: ../fish/guestfish-actions.pod:1982
19124 msgid "ln-f"
19125 msgstr ""
19126
19127 # type: verbatim
19128 #: ../fish/guestfish-actions.pod:1984
19129 #, no-wrap
19130 msgid ""
19131 " ln-f target linkname\n"
19132 "\n"
19133 msgstr ""
19134
19135 # type: =head2
19136 #: ../fish/guestfish-actions.pod:1989
19137 msgid "ln-s"
19138 msgstr ""
19139
19140 # type: verbatim
19141 #: ../fish/guestfish-actions.pod:1991
19142 #, no-wrap
19143 msgid ""
19144 " ln-s target linkname\n"
19145 "\n"
19146 msgstr ""
19147
19148 # type: =head2
19149 #: ../fish/guestfish-actions.pod:1995
19150 msgid "ln-sf"
19151 msgstr ""
19152
19153 # type: verbatim
19154 #: ../fish/guestfish-actions.pod:1997
19155 #, no-wrap
19156 msgid ""
19157 " ln-sf target linkname\n"
19158 "\n"
19159 msgstr ""
19160
19161 # type: =head2
19162 #: ../fish/guestfish-actions.pod:2002
19163 msgid "lremovexattr"
19164 msgstr ""
19165
19166 # type: verbatim
19167 #: ../fish/guestfish-actions.pod:2004
19168 #, no-wrap
19169 msgid ""
19170 " lremovexattr xattr path\n"
19171 "\n"
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish-actions.pod:2006
19176 msgid ""
19177 "This is the same as C<removexattr>, but if C<path> is a symbolic link, then "
19178 "it removes an extended attribute of the link itself."
19179 msgstr ""
19180
19181 # type: =head2
19182 #: ../fish/guestfish-actions.pod:2010
19183 msgid "ls"
19184 msgstr ""
19185
19186 # type: verbatim
19187 #: ../fish/guestfish-actions.pod:2012
19188 #, no-wrap
19189 msgid ""
19190 " ls directory\n"
19191 "\n"
19192 msgstr ""
19193
19194 # type: textblock
19195 #: ../fish/guestfish-actions.pod:2018
19196 msgid ""
19197 "This command is mostly useful for interactive sessions.  Programs should "
19198 "probably use C<readdir> instead."
19199 msgstr ""
19200
19201 # type: =head2
19202 #: ../fish/guestfish-actions.pod:2021
19203 msgid "lsetxattr"
19204 msgstr ""
19205
19206 # type: verbatim
19207 #: ../fish/guestfish-actions.pod:2023
19208 #, no-wrap
19209 msgid ""
19210 " lsetxattr xattr val vallen path\n"
19211 "\n"
19212 msgstr ""
19213
19214 # type: textblock
19215 #: ../fish/guestfish-actions.pod:2025
19216 msgid ""
19217 "This is the same as C<setxattr>, but if C<path> is a symbolic link, then it "
19218 "sets an extended attribute of the link itself."
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:2029
19223 msgid "lstat"
19224 msgstr ""
19225
19226 # type: verbatim
19227 #: ../fish/guestfish-actions.pod:2031
19228 #, no-wrap
19229 msgid ""
19230 " lstat path\n"
19231 "\n"
19232 msgstr ""
19233
19234 # type: textblock
19235 #: ../fish/guestfish-actions.pod:2035
19236 msgid ""
19237 "This is the same as C<stat> except that if C<path> is a symbolic link, then "
19238 "the link is stat-ed, not the file it refers to."
19239 msgstr ""
19240
19241 # type: =head2
19242 #: ../fish/guestfish-actions.pod:2041
19243 msgid "lstatlist"
19244 msgstr ""
19245
19246 # type: verbatim
19247 #: ../fish/guestfish-actions.pod:2043
19248 #, no-wrap
19249 msgid ""
19250 " lstatlist path 'names ...'\n"
19251 "\n"
19252 msgstr ""
19253
19254 # type: textblock
19255 #: ../fish/guestfish-actions.pod:2045
19256 msgid ""
19257 "This call allows you to perform the C<lstat> operation on multiple files, "
19258 "where all files are in the directory C<path>.  C<names> is the list of files "
19259 "from this directory."
19260 msgstr ""
19261
19262 # type: textblock
19263 #: ../fish/guestfish-actions.pod:2054
19264 msgid ""
19265 "This call is intended for programs that want to efficiently list a directory "
19266 "contents without making many round-trips.  See also C<lxattrlist> for a "
19267 "similarly efficient call for getting extended attributes.  Very long "
19268 "directory listings might cause the protocol message size to be exceeded, "
19269 "causing this call to fail.  The caller must split up such requests into "
19270 "smaller groups of names."
19271 msgstr ""
19272
19273 # type: =head2
19274 #: ../fish/guestfish-actions.pod:2062
19275 msgid "luks-add-key"
19276 msgstr ""
19277
19278 # type: verbatim
19279 #: ../fish/guestfish-actions.pod:2064
19280 #, no-wrap
19281 msgid ""
19282 " luks-add-key device keyslot\n"
19283 "\n"
19284 msgstr ""
19285
19286 # type: textblock
19287 #: ../fish/guestfish-actions.pod:2071
19288 msgid ""
19289 "Note that if C<keyslot> already contains a key, then this command will "
19290 "fail.  You have to use C<luks-kill-slot> first to remove that key."
19291 msgstr ""
19292
19293 # type: textblock
19294 #: ../fish/guestfish-actions.pod:2075 ../fish/guestfish-actions.pod:2097
19295 #: ../fish/guestfish-actions.pod:2110 ../fish/guestfish-actions.pod:2124
19296 #: ../fish/guestfish-actions.pod:2147 ../fish/guestfish-actions.pod:2157
19297 msgid ""
19298 "This command has one or more key or passphrase parameters.  Guestfish will "
19299 "prompt for these separately."
19300 msgstr ""
19301
19302 # type: =head2
19303 #: ../fish/guestfish-actions.pod:2078
19304 msgid "luks-close"
19305 msgstr ""
19306
19307 # type: verbatim
19308 #: ../fish/guestfish-actions.pod:2080
19309 #, no-wrap
19310 msgid ""
19311 " luks-close device\n"
19312 "\n"
19313 msgstr ""
19314
19315 # type: textblock
19316 #: ../fish/guestfish-actions.pod:2082
19317 msgid ""
19318 "This closes a LUKS device that was created earlier by C<luks-open> or C<luks-"
19319 "open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
19320 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
19321 "block device."
19322 msgstr ""
19323
19324 # type: =head2
19325 #: ../fish/guestfish-actions.pod:2088
19326 msgid "luks-format"
19327 msgstr ""
19328
19329 # type: verbatim
19330 #: ../fish/guestfish-actions.pod:2090
19331 #, no-wrap
19332 msgid ""
19333 " luks-format device keyslot\n"
19334 "\n"
19335 msgstr ""
19336
19337 # type: =head2
19338 #: ../fish/guestfish-actions.pod:2103
19339 msgid "luks-format-cipher"
19340 msgstr ""
19341
19342 # type: verbatim
19343 #: ../fish/guestfish-actions.pod:2105
19344 #, no-wrap
19345 msgid ""
19346 " luks-format-cipher device keyslot cipher\n"
19347 "\n"
19348 msgstr ""
19349
19350 # type: textblock
19351 #: ../fish/guestfish-actions.pod:2107
19352 msgid ""
19353 "This command is the same as C<luks-format> but it also allows you to set the "
19354 "C<cipher> used."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:2116
19359 msgid "luks-kill-slot"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:2118
19364 #, no-wrap
19365 msgid ""
19366 " luks-kill-slot device keyslot\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:2127
19372 msgid "luks-open"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:2129
19377 #, no-wrap
19378 msgid ""
19379 " luks-open device mapname\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: textblock
19384 #: ../fish/guestfish-actions.pod:2143
19385 msgid ""
19386 "If this block device contains LVM volume groups, then calling C<vgscan> "
19387 "followed by C<vg-activate-all> will make them visible."
19388 msgstr ""
19389
19390 # type: =head2
19391 #: ../fish/guestfish-actions.pod:2150
19392 msgid "luks-open-ro"
19393 msgstr ""
19394
19395 # type: verbatim
19396 #: ../fish/guestfish-actions.pod:2152
19397 #, no-wrap
19398 msgid ""
19399 " luks-open-ro device mapname\n"
19400 "\n"
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish-actions.pod:2154
19405 msgid ""
19406 "This is the same as C<luks-open> except that a read-only mapping is created."
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:2160
19411 msgid "lvcreate"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:2162
19416 #, no-wrap
19417 msgid ""
19418 " lvcreate logvol volgroup mbytes\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: =head2
19423 #: ../fish/guestfish-actions.pod:2167
19424 msgid "lvm-clear-filter"
19425 msgstr ""
19426
19427 # type: verbatim
19428 #: ../fish/guestfish-actions.pod:2169
19429 #, no-wrap
19430 msgid ""
19431 " lvm-clear-filter\n"
19432 "\n"
19433 msgstr ""
19434
19435 # type: textblock
19436 #: ../fish/guestfish-actions.pod:2171
19437 msgid ""
19438 "This undoes the effect of C<lvm-set-filter>.  LVM will be able to see every "
19439 "block device."
19440 msgstr ""
19441
19442 # type: =head2
19443 #: ../fish/guestfish-actions.pod:2177
19444 msgid "lvm-remove-all"
19445 msgstr ""
19446
19447 # type: verbatim
19448 #: ../fish/guestfish-actions.pod:2179
19449 #, no-wrap
19450 msgid ""
19451 " lvm-remove-all\n"
19452 "\n"
19453 msgstr ""
19454
19455 # type: =head2
19456 #: ../fish/guestfish-actions.pod:2187
19457 msgid "lvm-set-filter"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #: ../fish/guestfish-actions.pod:2189
19462 #, no-wrap
19463 msgid ""
19464 " lvm-set-filter 'devices ...'\n"
19465 "\n"
19466 msgstr ""
19467
19468 # type: =head2
19469 #: ../fish/guestfish-actions.pod:2214
19470 msgid "lvremove"
19471 msgstr ""
19472
19473 # type: verbatim
19474 #: ../fish/guestfish-actions.pod:2216
19475 #, no-wrap
19476 msgid ""
19477 " lvremove device\n"
19478 "\n"
19479 msgstr ""
19480
19481 # type: =head2
19482 #: ../fish/guestfish-actions.pod:2224
19483 msgid "lvrename"
19484 msgstr ""
19485
19486 # type: verbatim
19487 #: ../fish/guestfish-actions.pod:2226
19488 #, no-wrap
19489 msgid ""
19490 " lvrename logvol newlogvol\n"
19491 "\n"
19492 msgstr ""
19493
19494 # type: =head2
19495 #: ../fish/guestfish-actions.pod:2230
19496 msgid "lvresize"
19497 msgstr ""
19498
19499 # type: verbatim
19500 #: ../fish/guestfish-actions.pod:2232
19501 #, no-wrap
19502 msgid ""
19503 " lvresize device mbytes\n"
19504 "\n"
19505 msgstr ""
19506
19507 # type: =head2
19508 #: ../fish/guestfish-actions.pod:2238
19509 msgid "lvresize-free"
19510 msgstr ""
19511
19512 # type: verbatim
19513 #: ../fish/guestfish-actions.pod:2240
19514 #, no-wrap
19515 msgid ""
19516 " lvresize-free lv percent\n"
19517 "\n"
19518 msgstr ""
19519
19520 # type: =head2
19521 #: ../fish/guestfish-actions.pod:2248
19522 msgid "lvs"
19523 msgstr ""
19524
19525 # type: verbatim
19526 #: ../fish/guestfish-actions.pod:2250
19527 #, no-wrap
19528 msgid ""
19529 " lvs\n"
19530 "\n"
19531 msgstr ""
19532
19533 # type: textblock
19534 #: ../fish/guestfish-actions.pod:2258
19535 msgid "See also C<lvs-full>."
19536 msgstr ""
19537
19538 # type: =head2
19539 #: ../fish/guestfish-actions.pod:2260
19540 msgid "lvs-full"
19541 msgstr ""
19542
19543 # type: verbatim
19544 #: ../fish/guestfish-actions.pod:2262
19545 #, no-wrap
19546 msgid ""
19547 " lvs-full\n"
19548 "\n"
19549 msgstr ""
19550
19551 # type: =head2
19552 #: ../fish/guestfish-actions.pod:2267
19553 msgid "lvuuid"
19554 msgstr ""
19555
19556 # type: verbatim
19557 #: ../fish/guestfish-actions.pod:2269
19558 #, no-wrap
19559 msgid ""
19560 " lvuuid device\n"
19561 "\n"
19562 msgstr ""
19563
19564 # type: =head2
19565 #: ../fish/guestfish-actions.pod:2273
19566 msgid "lxattrlist"
19567 msgstr ""
19568
19569 # type: verbatim
19570 #: ../fish/guestfish-actions.pod:2275
19571 #, no-wrap
19572 msgid ""
19573 " lxattrlist path 'names ...'\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: textblock
19578 #: ../fish/guestfish-actions.pod:2291
19579 msgid ""
19580 "This call is intended for programs that want to efficiently list a directory "
19581 "contents without making many round-trips.  See also C<lstatlist> for a "
19582 "similarly efficient call for getting standard stats.  Very long directory "
19583 "listings might cause the protocol message size to be exceeded, causing this "
19584 "call to fail.  The caller must split up such requests into smaller groups of "
19585 "names."
19586 msgstr ""
19587
19588 # type: =head2
19589 #: ../fish/guestfish-actions.pod:2299
19590 msgid "mkdir"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #: ../fish/guestfish-actions.pod:2301
19595 #, no-wrap
19596 msgid ""
19597 " mkdir path\n"
19598 "\n"
19599 msgstr ""
19600
19601 # type: =head2
19602 #: ../fish/guestfish-actions.pod:2305
19603 msgid "mkdir-mode"
19604 msgstr ""
19605
19606 # type: verbatim
19607 #: ../fish/guestfish-actions.pod:2307
19608 #, no-wrap
19609 msgid ""
19610 " mkdir-mode path mode\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: textblock
19615 #: ../fish/guestfish-actions.pod:2316
19616 msgid "See also C<mkdir>, C<umask>"
19617 msgstr ""
19618
19619 # type: =head2
19620 #: ../fish/guestfish-actions.pod:2318
19621 msgid "mkdir-p"
19622 msgstr ""
19623
19624 # type: verbatim
19625 #: ../fish/guestfish-actions.pod:2320
19626 #, no-wrap
19627 msgid ""
19628 " mkdir-p path\n"
19629 "\n"
19630 msgstr ""
19631
19632 # type: =head2
19633 #: ../fish/guestfish-actions.pod:2325
19634 msgid "mkdtemp"
19635 msgstr ""
19636
19637 # type: verbatim
19638 #: ../fish/guestfish-actions.pod:2327
19639 #, no-wrap
19640 msgid ""
19641 " mkdtemp template\n"
19642 "\n"
19643 msgstr ""
19644
19645 # type: =head2
19646 #: ../fish/guestfish-actions.pod:2348
19647 msgid "mke2fs-J"
19648 msgstr ""
19649
19650 # type: verbatim
19651 #: ../fish/guestfish-actions.pod:2350
19652 #, no-wrap
19653 msgid ""
19654 " mke2fs-J fstype blocksize device journal\n"
19655 "\n"
19656 msgstr ""
19657
19658 # type: textblock
19659 #: ../fish/guestfish-actions.pod:2358
19660 msgid "See also C<mke2journal>."
19661 msgstr ""
19662
19663 # type: =head2
19664 #: ../fish/guestfish-actions.pod:2360
19665 msgid "mke2fs-JL"
19666 msgstr ""
19667
19668 # type: verbatim
19669 #: ../fish/guestfish-actions.pod:2362
19670 #, no-wrap
19671 msgid ""
19672 " mke2fs-JL fstype blocksize device label\n"
19673 "\n"
19674 msgstr ""
19675
19676 # type: textblock
19677 #: ../fish/guestfish-actions.pod:2367
19678 msgid "See also C<mke2journal-L>."
19679 msgstr ""
19680
19681 # type: =head2
19682 #: ../fish/guestfish-actions.pod:2369
19683 msgid "mke2fs-JU"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #: ../fish/guestfish-actions.pod:2371
19688 #, no-wrap
19689 msgid ""
19690 " mke2fs-JU fstype blocksize device uuid\n"
19691 "\n"
19692 msgstr ""
19693
19694 # type: textblock
19695 #: ../fish/guestfish-actions.pod:2376
19696 msgid "See also C<mke2journal-U>."
19697 msgstr ""
19698
19699 # type: =head2
19700 #: ../fish/guestfish-actions.pod:2378
19701 msgid "mke2journal"
19702 msgstr ""
19703
19704 # type: verbatim
19705 #: ../fish/guestfish-actions.pod:2380
19706 #, no-wrap
19707 msgid ""
19708 " mke2journal blocksize device\n"
19709 "\n"
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:2387
19714 msgid "mke2journal-L"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:2389
19719 #, no-wrap
19720 msgid ""
19721 " mke2journal-L blocksize label device\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: =head2
19726 #: ../fish/guestfish-actions.pod:2393
19727 msgid "mke2journal-U"
19728 msgstr ""
19729
19730 # type: verbatim
19731 #: ../fish/guestfish-actions.pod:2395
19732 #, no-wrap
19733 msgid ""
19734 " mke2journal-U blocksize uuid device\n"
19735 "\n"
19736 msgstr ""
19737
19738 # type: =head2
19739 #: ../fish/guestfish-actions.pod:2399
19740 msgid "mkfifo"
19741 msgstr ""
19742
19743 # type: verbatim
19744 #: ../fish/guestfish-actions.pod:2401
19745 #, no-wrap
19746 msgid ""
19747 " mkfifo mode path\n"
19748 "\n"
19749 msgstr ""
19750
19751 # type: textblock
19752 #: ../fish/guestfish-actions.pod:2403
19753 msgid ""
19754 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19755 "is just a convenient wrapper around C<mknod>."
19756 msgstr ""
19757
19758 # type: =head2
19759 #: ../fish/guestfish-actions.pod:2409
19760 msgid "mkfs"
19761 msgstr ""
19762
19763 # type: verbatim
19764 #: ../fish/guestfish-actions.pod:2411
19765 #, no-wrap
19766 msgid ""
19767 " mkfs fstype device\n"
19768 "\n"
19769 msgstr ""
19770
19771 # type: =head2
19772 #: ../fish/guestfish-actions.pod:2417
19773 msgid "mkfs-b"
19774 msgstr ""
19775
19776 # type: verbatim
19777 #: ../fish/guestfish-actions.pod:2419
19778 #, no-wrap
19779 msgid ""
19780 " mkfs-b fstype blocksize device\n"
19781 "\n"
19782 msgstr ""
19783
19784 # type: textblock
19785 #: ../fish/guestfish-actions.pod:2421
19786 msgid ""
19787 "This call is similar to C<mkfs>, but it allows you to control the block size "
19788 "of the resulting filesystem.  Supported block sizes depend on the filesystem "
19789 "type, but typically they are C<1024>, C<2048> or C<4096> only."
19790 msgstr ""
19791
19792 # type: =head2
19793 #: ../fish/guestfish-actions.pod:2429
19794 msgid "mkmountpoint"
19795 msgstr ""
19796
19797 # type: verbatim
19798 #: ../fish/guestfish-actions.pod:2431
19799 #, no-wrap
19800 msgid ""
19801 " mkmountpoint exemptpath\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: textblock
19806 #: ../fish/guestfish-actions.pod:2433
19807 msgid ""
19808 "C<mkmountpoint> and C<rmmountpoint> are specialized calls that can be used "
19809 "to create extra mountpoints before mounting the first filesystem."
19810 msgstr ""
19811
19812 # type: =head2
19813 #: ../fish/guestfish-actions.pod:2457
19814 msgid "mknod"
19815 msgstr ""
19816
19817 # type: verbatim
19818 #: ../fish/guestfish-actions.pod:2459
19819 #, no-wrap
19820 msgid ""
19821 " mknod mode devmajor devminor path\n"
19822 "\n"
19823 msgstr ""
19824
19825 # type: textblock
19826 #: ../fish/guestfish-actions.pod:2469
19827 msgid ""
19828 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
19829 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
19830 "regular file).  These constants are available in the standard Linux header "
19831 "files, or you can use C<mknod-b>, C<mknod-c> or C<mkfifo> which are wrappers "
19832 "around this command which bitwise OR in the appropriate constant for you."
19833 msgstr ""
19834
19835 # type: =head2
19836 #: ../fish/guestfish-actions.pod:2479
19837 msgid "mknod-b"
19838 msgstr ""
19839
19840 # type: verbatim
19841 #: ../fish/guestfish-actions.pod:2481
19842 #, no-wrap
19843 msgid ""
19844 " mknod-b mode devmajor devminor path\n"
19845 "\n"
19846 msgstr ""
19847
19848 # type: textblock
19849 #: ../fish/guestfish-actions.pod:2483
19850 msgid ""
19851 "This call creates a block device node called C<path> with mode C<mode> and "
19852 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19853 "wrapper around C<mknod>."
19854 msgstr ""
19855
19856 # type: =head2
19857 #: ../fish/guestfish-actions.pod:2489
19858 msgid "mknod-c"
19859 msgstr ""
19860
19861 # type: verbatim
19862 #: ../fish/guestfish-actions.pod:2491
19863 #, no-wrap
19864 msgid ""
19865 " mknod-c mode devmajor devminor path\n"
19866 "\n"
19867 msgstr ""
19868
19869 # type: textblock
19870 #: ../fish/guestfish-actions.pod:2493
19871 msgid ""
19872 "This call creates a char device node called C<path> with mode C<mode> and "
19873 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
19874 "wrapper around C<mknod>."
19875 msgstr ""
19876
19877 # type: =head2
19878 #: ../fish/guestfish-actions.pod:2499
19879 msgid "mkswap"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #: ../fish/guestfish-actions.pod:2501
19884 #, no-wrap
19885 msgid ""
19886 " mkswap device\n"
19887 "\n"
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:2505
19892 msgid "mkswap-L"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:2507
19897 #, no-wrap
19898 msgid ""
19899 " mkswap-L label device\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: =head2
19904 #: ../fish/guestfish-actions.pod:2515
19905 msgid "mkswap-U"
19906 msgstr ""
19907
19908 # type: verbatim
19909 #: ../fish/guestfish-actions.pod:2517
19910 #, no-wrap
19911 msgid ""
19912 " mkswap-U uuid device\n"
19913 "\n"
19914 msgstr ""
19915
19916 # type: =head2
19917 #: ../fish/guestfish-actions.pod:2521
19918 msgid "mkswap-file"
19919 msgstr ""
19920
19921 # type: verbatim
19922 #: ../fish/guestfish-actions.pod:2523
19923 #, no-wrap
19924 msgid ""
19925 " mkswap-file path\n"
19926 "\n"
19927 msgstr ""
19928
19929 # type: textblock
19930 #: ../fish/guestfish-actions.pod:2527
19931 msgid ""
19932 "This command just writes a swap file signature to an existing file.  To "
19933 "create the file itself, use something like C<fallocate>."
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:2530
19938 msgid "modprobe"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:2532
19943 #, no-wrap
19944 msgid ""
19945 " modprobe modulename\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:2539
19951 msgid "mount"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:2541
19956 #, no-wrap
19957 msgid ""
19958 " mount device mountpoint\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #: ../fish/guestfish-actions.pod:2557
19964 msgid ""
19965 "B<Important note:> When you use this call, the filesystem options C<sync> "
19966 "and C<noatime> are set implicitly.  This was originally done because we "
19967 "thought it would improve reliability, but it turns out that I<-o sync> has a "
19968 "very large negative performance impact and negligible effect on "
19969 "reliability.  Therefore we recommend that you avoid using C<mount> in any "
19970 "code that needs performance, and instead use C<mount-options> (use an empty "
19971 "string for the first parameter if you don't want any options)."
19972 msgstr ""
19973
19974 # type: =head2
19975 #: ../fish/guestfish-actions.pod:2567
19976 msgid "mount-loop"
19977 msgstr ""
19978
19979 # type: verbatim
19980 #: ../fish/guestfish-actions.pod:2569
19981 #, no-wrap
19982 msgid ""
19983 " mount-loop file mountpoint\n"
19984 "\n"
19985 msgstr ""
19986
19987 # type: =head2
19988 #: ../fish/guestfish-actions.pod:2575
19989 msgid "mount-options"
19990 msgstr ""
19991
19992 # type: verbatim
19993 #: ../fish/guestfish-actions.pod:2577
19994 #, no-wrap
19995 msgid ""
19996 " mount-options options device mountpoint\n"
19997 "\n"
19998 msgstr ""
19999
20000 # type: textblock
20001 #: ../fish/guestfish-actions.pod:2579
20002 msgid ""
20003 "This is the same as the C<mount> command, but it allows you to set the mount "
20004 "options as for the L<mount(8)> I<-o> flag."
20005 msgstr ""
20006
20007 # type: =head2
20008 #: ../fish/guestfish-actions.pod:2587
20009 msgid "mount-ro"
20010 msgstr ""
20011
20012 # type: verbatim
20013 #: ../fish/guestfish-actions.pod:2589
20014 #, no-wrap
20015 msgid ""
20016 " mount-ro device mountpoint\n"
20017 "\n"
20018 msgstr ""
20019
20020 # type: textblock
20021 #: ../fish/guestfish-actions.pod:2591
20022 msgid ""
20023 "This is the same as the C<mount> command, but it mounts the filesystem with "
20024 "the read-only (I<-o ro>) flag."
20025 msgstr ""
20026
20027 # type: =head2
20028 #: ../fish/guestfish-actions.pod:2594
20029 msgid "mount-vfs"
20030 msgstr ""
20031
20032 # type: verbatim
20033 #: ../fish/guestfish-actions.pod:2596
20034 #, no-wrap
20035 msgid ""
20036 " mount-vfs options vfstype device mountpoint\n"
20037 "\n"
20038 msgstr ""
20039
20040 # type: textblock
20041 #: ../fish/guestfish-actions.pod:2598
20042 msgid ""
20043 "This is the same as the C<mount> command, but it allows you to set both the "
20044 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20045 msgstr ""
20046
20047 # type: =head2
20048 #: ../fish/guestfish-actions.pod:2602
20049 msgid "mountpoints"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #: ../fish/guestfish-actions.pod:2604
20054 #, no-wrap
20055 msgid ""
20056 " mountpoints\n"
20057 "\n"
20058 msgstr ""
20059
20060 # type: textblock
20061 #: ../fish/guestfish-actions.pod:2606
20062 msgid ""
20063 "This call is similar to C<mounts>.  That call returns a list of devices.  "
20064 "This one returns a hash table (map) of device name to directory where the "
20065 "device is mounted."
20066 msgstr ""
20067
20068 # type: =head2
20069 #: ../fish/guestfish-actions.pod:2610
20070 msgid "mounts"
20071 msgstr ""
20072
20073 # type: verbatim
20074 #: ../fish/guestfish-actions.pod:2612
20075 #, no-wrap
20076 msgid ""
20077 " mounts\n"
20078 "\n"
20079 msgstr ""
20080
20081 # type: textblock
20082 #: ../fish/guestfish-actions.pod:2619
20083 msgid "See also: C<mountpoints>"
20084 msgstr ""
20085
20086 # type: =head2
20087 #: ../fish/guestfish-actions.pod:2621
20088 msgid "mv"
20089 msgstr ""
20090
20091 # type: verbatim
20092 #: ../fish/guestfish-actions.pod:2623
20093 #, no-wrap
20094 msgid ""
20095 " mv src dest\n"
20096 "\n"
20097 msgstr ""
20098
20099 # type: =head2
20100 #: ../fish/guestfish-actions.pod:2628
20101 msgid "ntfs-3g-probe"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #: ../fish/guestfish-actions.pod:2630
20106 #, no-wrap
20107 msgid ""
20108 " ntfs-3g-probe true|false device\n"
20109 "\n"
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:2644
20114 msgid "ntfsresize"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:2646
20119 #, no-wrap
20120 msgid ""
20121 " ntfsresize device\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: =head2
20126 #: ../fish/guestfish-actions.pod:2652
20127 msgid "ntfsresize-size"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #: ../fish/guestfish-actions.pod:2654
20132 #, no-wrap
20133 msgid ""
20134 " ntfsresize-size device size\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: textblock
20139 #: ../fish/guestfish-actions.pod:2656
20140 msgid ""
20141 "This command is the same as C<ntfsresize> except that it allows you to "
20142 "specify the new size (in bytes) explicitly."
20143 msgstr ""
20144
20145 # type: =head2
20146 #: ../fish/guestfish-actions.pod:2659
20147 msgid "part-add"
20148 msgstr ""
20149
20150 # type: verbatim
20151 #: ../fish/guestfish-actions.pod:2661
20152 #, no-wrap
20153 msgid ""
20154 " part-add device prlogex startsect endsect\n"
20155 "\n"
20156 msgstr ""
20157
20158 # type: textblock
20159 #: ../fish/guestfish-actions.pod:2663
20160 msgid ""
20161 "This command adds a partition to C<device>.  If there is no partition table "
20162 "on the device, call C<part-init> first."
20163 msgstr ""
20164
20165 # type: textblock
20166 #: ../fish/guestfish-actions.pod:2675
20167 msgid ""
20168 "Creating a partition which covers the whole disk is not so easy.  Use C<part-"
20169 "disk> to do that."
20170 msgstr ""
20171
20172 # type: =head2
20173 #: ../fish/guestfish-actions.pod:2678
20174 msgid "part-del"
20175 msgstr ""
20176
20177 # type: verbatim
20178 #: ../fish/guestfish-actions.pod:2680
20179 #, no-wrap
20180 msgid ""
20181 " part-del device partnum\n"
20182 "\n"
20183 msgstr ""
20184
20185 # type: =head2
20186 #: ../fish/guestfish-actions.pod:2688
20187 msgid "part-disk"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #: ../fish/guestfish-actions.pod:2690
20192 #, no-wrap
20193 msgid ""
20194 " part-disk device parttype\n"
20195 "\n"
20196 msgstr ""
20197
20198 # type: textblock
20199 #: ../fish/guestfish-actions.pod:2692
20200 msgid ""
20201 "This command is simply a combination of C<part-init> followed by C<part-add> "
20202 "to create a single primary partition covering the whole disk."
20203 msgstr ""
20204
20205 # type: textblock
20206 #: ../fish/guestfish-actions.pod:2696
20207 msgid ""
20208 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20209 "possible values are described in C<part-init>."
20210 msgstr ""
20211
20212 # type: =head2
20213 #: ../fish/guestfish-actions.pod:2702
20214 msgid "part-get-bootable"
20215 msgstr ""
20216
20217 # type: verbatim
20218 #: ../fish/guestfish-actions.pod:2704
20219 #, no-wrap
20220 msgid ""
20221 " part-get-bootable device partnum\n"
20222 "\n"
20223 msgstr ""
20224
20225 # type: textblock
20226 #: ../fish/guestfish-actions.pod:2709
20227 msgid "See also C<part-set-bootable>."
20228 msgstr ""
20229
20230 # type: =head2
20231 #: ../fish/guestfish-actions.pod:2711
20232 msgid "part-get-mbr-id"
20233 msgstr ""
20234
20235 # type: verbatim
20236 #: ../fish/guestfish-actions.pod:2713
20237 #, no-wrap
20238 msgid ""
20239 " part-get-mbr-id device partnum\n"
20240 "\n"
20241 msgstr ""
20242
20243 # type: textblock
20244 #: ../fish/guestfish-actions.pod:2718 ../fish/guestfish-actions.pod:2856
20245 msgid ""
20246 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20247 "undefined results for other partition table types (see C<part-get-parttype>)."
20248 msgstr ""
20249
20250 # type: =head2
20251 #: ../fish/guestfish-actions.pod:2722
20252 msgid "part-get-parttype"
20253 msgstr ""
20254
20255 # type: verbatim
20256 #: ../fish/guestfish-actions.pod:2724
20257 #, no-wrap
20258 msgid ""
20259 " part-get-parttype device\n"
20260 "\n"
20261 msgstr ""
20262
20263 # type: textblock
20264 #: ../fish/guestfish-actions.pod:2729
20265 msgid ""
20266 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20267 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20268 "possible, although unusual.  See C<part-init> for a full list."
20269 msgstr ""
20270
20271 # type: =head2
20272 #: ../fish/guestfish-actions.pod:2734
20273 msgid "part-init"
20274 msgstr ""
20275
20276 # type: verbatim
20277 #: ../fish/guestfish-actions.pod:2736
20278 #, no-wrap
20279 msgid ""
20280 " part-init device parttype\n"
20281 "\n"
20282 msgstr ""
20283
20284 # type: textblock
20285 #: ../fish/guestfish-actions.pod:2742
20286 msgid ""
20287 "Initially there are no partitions.  Following this, you should call C<part-"
20288 "add> for each partition required."
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:2805
20293 msgid "part-list"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:2807
20298 #, no-wrap
20299 msgid ""
20300 " part-list device\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: textblock
20305 #: ../fish/guestfish-actions.pod:2822
20306 msgid ""
20307 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20308 "the device's sector size, see C<blockdev-getss>."
20309 msgstr ""
20310
20311 # type: =head2
20312 #: ../fish/guestfish-actions.pod:2835
20313 msgid "part-set-bootable"
20314 msgstr ""
20315
20316 # type: verbatim
20317 #: ../fish/guestfish-actions.pod:2837
20318 #, no-wrap
20319 msgid ""
20320 " part-set-bootable device partnum true|false\n"
20321 "\n"
20322 msgstr ""
20323
20324 # type: =head2
20325 #: ../fish/guestfish-actions.pod:2846
20326 msgid "part-set-mbr-id"
20327 msgstr ""
20328
20329 # type: verbatim
20330 #: ../fish/guestfish-actions.pod:2848
20331 #, no-wrap
20332 msgid ""
20333 " part-set-mbr-id device partnum idbyte\n"
20334 "\n"
20335 msgstr ""
20336
20337 # type: =head2
20338 #: ../fish/guestfish-actions.pod:2860
20339 msgid "part-set-name"
20340 msgstr ""
20341
20342 # type: verbatim
20343 #: ../fish/guestfish-actions.pod:2862
20344 #, no-wrap
20345 msgid ""
20346 " part-set-name device partnum name\n"
20347 "\n"
20348 msgstr ""
20349
20350 # type: =head2
20351 #: ../fish/guestfish-actions.pod:2870
20352 msgid "ping-daemon"
20353 msgstr ""
20354
20355 # type: verbatim
20356 #: ../fish/guestfish-actions.pod:2872
20357 #, no-wrap
20358 msgid ""
20359 " ping-daemon\n"
20360 "\n"
20361 msgstr ""
20362
20363 # type: =head2
20364 #: ../fish/guestfish-actions.pod:2879
20365 msgid "pread"
20366 msgstr ""
20367
20368 # type: verbatim
20369 #: ../fish/guestfish-actions.pod:2881
20370 #, no-wrap
20371 msgid ""
20372 " pread path count offset\n"
20373 "\n"
20374 msgstr ""
20375
20376 # type: textblock
20377 #: ../fish/guestfish-actions.pod:2889
20378 msgid "See also C<pwrite>."
20379 msgstr ""
20380
20381 # type: =head2
20382 #: ../fish/guestfish-actions.pod:2894
20383 msgid "pvcreate"
20384 msgstr ""
20385
20386 # type: verbatim
20387 #: ../fish/guestfish-actions.pod:2896
20388 #, no-wrap
20389 msgid ""
20390 " pvcreate device\n"
20391 "\n"
20392 msgstr ""
20393
20394 # type: =head2
20395 #: ../fish/guestfish-actions.pod:2902
20396 msgid "pvremove"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #: ../fish/guestfish-actions.pod:2904
20401 #, no-wrap
20402 msgid ""
20403 " pvremove device\n"
20404 "\n"
20405 msgstr ""
20406
20407 # type: =head2
20408 #: ../fish/guestfish-actions.pod:2913
20409 msgid "pvresize"
20410 msgstr ""
20411
20412 # type: verbatim
20413 #: ../fish/guestfish-actions.pod:2915
20414 #, no-wrap
20415 msgid ""
20416 " pvresize device\n"
20417 "\n"
20418 msgstr ""
20419
20420 # type: =head2
20421 #: ../fish/guestfish-actions.pod:2920
20422 msgid "pvresize-size"
20423 msgstr ""
20424
20425 # type: verbatim
20426 #: ../fish/guestfish-actions.pod:2922
20427 #, no-wrap
20428 msgid ""
20429 " pvresize-size device size\n"
20430 "\n"
20431 msgstr ""
20432
20433 # type: textblock
20434 #: ../fish/guestfish-actions.pod:2924
20435 msgid ""
20436 "This command is the same as C<pvresize> except that it allows you to specify "
20437 "the new size (in bytes) explicitly."
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:2927
20442 msgid "pvs"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:2929
20447 #, no-wrap
20448 msgid ""
20449 " pvs\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: textblock
20454 #: ../fish/guestfish-actions.pod:2937
20455 msgid "See also C<pvs-full>."
20456 msgstr ""
20457
20458 # type: =head2
20459 #: ../fish/guestfish-actions.pod:2939
20460 msgid "pvs-full"
20461 msgstr ""
20462
20463 # type: verbatim
20464 #: ../fish/guestfish-actions.pod:2941
20465 #, no-wrap
20466 msgid ""
20467 " pvs-full\n"
20468 "\n"
20469 msgstr ""
20470
20471 # type: =head2
20472 #: ../fish/guestfish-actions.pod:2946
20473 msgid "pvuuid"
20474 msgstr ""
20475
20476 # type: verbatim
20477 #: ../fish/guestfish-actions.pod:2948
20478 #, no-wrap
20479 msgid ""
20480 " pvuuid device\n"
20481 "\n"
20482 msgstr ""
20483
20484 # type: =head2
20485 #: ../fish/guestfish-actions.pod:2952
20486 msgid "pwrite"
20487 msgstr ""
20488
20489 # type: verbatim
20490 #: ../fish/guestfish-actions.pod:2954
20491 #, no-wrap
20492 msgid ""
20493 " pwrite path content offset\n"
20494 "\n"
20495 msgstr ""
20496
20497 # type: textblock
20498 #: ../fish/guestfish-actions.pod:2965
20499 msgid "See also C<pread>."
20500 msgstr ""
20501
20502 # type: =head2
20503 #: ../fish/guestfish-actions.pod:2970
20504 msgid "read-file"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #: ../fish/guestfish-actions.pod:2972
20509 #, no-wrap
20510 msgid ""
20511 " read-file path\n"
20512 "\n"
20513 msgstr ""
20514
20515 # type: textblock
20516 #: ../fish/guestfish-actions.pod:2977
20517 msgid ""
20518 "Unlike C<cat>, this function can correctly handle files that contain "
20519 "embedded ASCII NUL characters.  However unlike C<download>, this function is "
20520 "limited in the total size of file that can be handled."
20521 msgstr ""
20522
20523 # type: =head2
20524 #: ../fish/guestfish-actions.pod:2985
20525 msgid "read-lines"
20526 msgstr ""
20527
20528 # type: verbatim
20529 #: ../fish/guestfish-actions.pod:2987
20530 #, no-wrap
20531 msgid ""
20532 " read-lines path\n"
20533 "\n"
20534 msgstr ""
20535
20536 # type: textblock
20537 #: ../fish/guestfish-actions.pod:2994
20538 msgid ""
20539 "Note that this function cannot correctly handle binary files (specifically, "
20540 "files containing C<\\0> character which is treated as end of line).  For "
20541 "those you need to use the C<read-file> function which has a more complex "
20542 "interface."
20543 msgstr ""
20544
20545 # type: =head2
20546 #: ../fish/guestfish-actions.pod:2999
20547 msgid "readdir"
20548 msgstr ""
20549
20550 # type: verbatim
20551 #: ../fish/guestfish-actions.pod:3001
20552 #, no-wrap
20553 msgid ""
20554 " readdir dir\n"
20555 "\n"
20556 msgstr ""
20557
20558 # type: textblock
20559 #: ../fish/guestfish-actions.pod:3053
20560 msgid ""
20561 "This function is primarily intended for use by programs.  To get a simple "
20562 "list of names, use C<ls>.  To get a printable directory for human "
20563 "consumption, use C<ll>."
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:3057
20568 msgid "readlink"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:3059
20573 #, no-wrap
20574 msgid ""
20575 " readlink path\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: =head2
20580 #: ../fish/guestfish-actions.pod:3063
20581 msgid "readlinklist"
20582 msgstr ""
20583
20584 # type: verbatim
20585 #: ../fish/guestfish-actions.pod:3065
20586 #, no-wrap
20587 msgid ""
20588 " readlinklist path 'names ...'\n"
20589 "\n"
20590 msgstr ""
20591
20592 # type: =head2
20593 #: ../fish/guestfish-actions.pod:3089
20594 msgid "realpath"
20595 msgstr ""
20596
20597 # type: verbatim
20598 #: ../fish/guestfish-actions.pod:3091
20599 #, no-wrap
20600 msgid ""
20601 " realpath path\n"
20602 "\n"
20603 msgstr ""
20604
20605 # type: =head2
20606 #: ../fish/guestfish-actions.pod:3096
20607 msgid "removexattr"
20608 msgstr ""
20609
20610 # type: verbatim
20611 #: ../fish/guestfish-actions.pod:3098
20612 #, no-wrap
20613 msgid ""
20614 " removexattr xattr path\n"
20615 "\n"
20616 msgstr ""
20617
20618 # type: textblock
20619 #: ../fish/guestfish-actions.pod:3103
20620 msgid "See also: C<lremovexattr>, L<attr(5)>."
20621 msgstr ""
20622
20623 # type: =head2
20624 #: ../fish/guestfish-actions.pod:3105
20625 msgid "resize2fs"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #: ../fish/guestfish-actions.pod:3107
20630 #, no-wrap
20631 msgid ""
20632 " resize2fs device\n"
20633 "\n"
20634 msgstr ""
20635
20636 # type: textblock
20637 #: ../fish/guestfish-actions.pod:3112
20638 msgid ""
20639 "I<Note:> It is sometimes required that you run C<e2fsck-f> on the C<device> "
20640 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20641 "gives an error about this and sometimes not.  In any case, it is always safe "
20642 "to call C<e2fsck-f> before calling this function."
20643 msgstr ""
20644
20645 # type: =head2
20646 #: ../fish/guestfish-actions.pod:3118
20647 msgid "resize2fs-size"
20648 msgstr ""
20649
20650 # type: verbatim
20651 #: ../fish/guestfish-actions.pod:3120
20652 #, no-wrap
20653 msgid ""
20654 " resize2fs-size device size\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: textblock
20659 #: ../fish/guestfish-actions.pod:3122
20660 msgid ""
20661 "This command is the same as C<resize2fs> except that it allows you to "
20662 "specify the new size (in bytes) explicitly."
20663 msgstr ""
20664
20665 # type: =head2
20666 #: ../fish/guestfish-actions.pod:3125
20667 msgid "rm"
20668 msgstr ""
20669
20670 # type: verbatim
20671 #: ../fish/guestfish-actions.pod:3127
20672 #, no-wrap
20673 msgid ""
20674 " rm path\n"
20675 "\n"
20676 msgstr ""
20677
20678 # type: =head2
20679 #: ../fish/guestfish-actions.pod:3131
20680 msgid "rm-rf"
20681 msgstr ""
20682
20683 # type: verbatim
20684 #: ../fish/guestfish-actions.pod:3133
20685 #, no-wrap
20686 msgid ""
20687 " rm-rf path\n"
20688 "\n"
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:3139
20693 msgid "rmdir"
20694 msgstr ""
20695
20696 # type: verbatim
20697 #: ../fish/guestfish-actions.pod:3141
20698 #, no-wrap
20699 msgid ""
20700 " rmdir path\n"
20701 "\n"
20702 msgstr ""
20703
20704 # type: =head2
20705 #: ../fish/guestfish-actions.pod:3145
20706 msgid "rmmountpoint"
20707 msgstr ""
20708
20709 # type: verbatim
20710 #: ../fish/guestfish-actions.pod:3147
20711 #, no-wrap
20712 msgid ""
20713 " rmmountpoint exemptpath\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: textblock
20718 #: ../fish/guestfish-actions.pod:3149
20719 msgid ""
20720 "This calls removes a mountpoint that was previously created with "
20721 "C<mkmountpoint>.  See C<mkmountpoint> for full details."
20722 msgstr ""
20723
20724 # type: =head2
20725 #: ../fish/guestfish-actions.pod:3153
20726 msgid "scrub-device"
20727 msgstr ""
20728
20729 # type: verbatim
20730 #: ../fish/guestfish-actions.pod:3155
20731 #, no-wrap
20732 msgid ""
20733 " scrub-device device\n"
20734 "\n"
20735 msgstr ""
20736
20737 # type: =head2
20738 #: ../fish/guestfish-actions.pod:3166
20739 msgid "scrub-file"
20740 msgstr ""
20741
20742 # type: verbatim
20743 #: ../fish/guestfish-actions.pod:3168
20744 #, no-wrap
20745 msgid ""
20746 " scrub-file file\n"
20747 "\n"
20748 msgstr ""
20749
20750 # type: =head2
20751 #: ../fish/guestfish-actions.pod:3178
20752 msgid "scrub-freespace"
20753 msgstr ""
20754
20755 # type: verbatim
20756 #: ../fish/guestfish-actions.pod:3180
20757 #, no-wrap
20758 msgid ""
20759 " scrub-freespace dir\n"
20760 "\n"
20761 msgstr ""
20762
20763 # type: textblock
20764 #: ../fish/guestfish-actions.pod:3182
20765 msgid ""
20766 "This command creates the directory C<dir> and then fills it with files until "
20767 "the filesystem is full, and scrubs the files as for C<scrub-file>, and "
20768 "deletes them.  The intention is to scrub any free space on the partition "
20769 "containing C<dir>."
20770 msgstr ""
20771
20772 # type: =head2
20773 #: ../fish/guestfish-actions.pod:3191
20774 msgid "set-append | append"
20775 msgstr ""
20776
20777 # type: verbatim
20778 #: ../fish/guestfish-actions.pod:3193
20779 #, no-wrap
20780 msgid ""
20781 " set-append append\n"
20782 "\n"
20783 msgstr ""
20784
20785 # type: =head2
20786 #: ../fish/guestfish-actions.pod:3204
20787 msgid "set-autosync | autosync"
20788 msgstr ""
20789
20790 # type: verbatim
20791 #: ../fish/guestfish-actions.pod:3206
20792 #, no-wrap
20793 msgid ""
20794 " set-autosync true|false\n"
20795 "\n"
20796 msgstr ""
20797
20798 # type: textblock
20799 #: ../fish/guestfish-actions.pod:3208
20800 msgid ""
20801 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
20802 "effort attempt to run C<umount-all> followed by C<sync> when the handle is "
20803 "closed (also if the program exits without closing handles)."
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:3216
20808 msgid "set-direct | direct"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:3218
20813 #, no-wrap
20814 msgid ""
20815 " set-direct true|false\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: textblock
20820 #: ../fish/guestfish-actions.pod:3224
20821 msgid ""
20822 "One consequence of this is that log messages aren't caught by the library "
20823 "and handled by C<set-log-message-callback>, but go straight to stdout."
20824 msgstr ""
20825
20826 # type: =head2
20827 #: ../fish/guestfish-actions.pod:3233
20828 msgid "set-e2label"
20829 msgstr ""
20830
20831 # type: verbatim
20832 #: ../fish/guestfish-actions.pod:3235
20833 #, no-wrap
20834 msgid ""
20835 " set-e2label device label\n"
20836 "\n"
20837 msgstr ""
20838
20839 # type: textblock
20840 #: ../fish/guestfish-actions.pod:3241
20841 msgid ""
20842 "You can use either C<tune2fs-l> or C<get-e2label> to return the existing "
20843 "label on a filesystem."
20844 msgstr ""
20845
20846 # type: =head2
20847 #: ../fish/guestfish-actions.pod:3244
20848 msgid "set-e2uuid"
20849 msgstr ""
20850
20851 # type: verbatim
20852 #: ../fish/guestfish-actions.pod:3246
20853 #, no-wrap
20854 msgid ""
20855 " set-e2uuid device uuid\n"
20856 "\n"
20857 msgstr ""
20858
20859 # type: textblock
20860 #: ../fish/guestfish-actions.pod:3253
20861 msgid ""
20862 "You can use either C<tune2fs-l> or C<get-e2uuid> to return the existing UUID "
20863 "of a filesystem."
20864 msgstr ""
20865
20866 # type: =head2
20867 #: ../fish/guestfish-actions.pod:3256
20868 msgid "set-memsize | memsize"
20869 msgstr ""
20870
20871 # type: verbatim
20872 #: ../fish/guestfish-actions.pod:3258
20873 #, no-wrap
20874 msgid ""
20875 " set-memsize memsize\n"
20876 "\n"
20877 msgstr ""
20878
20879 # type: textblock
20880 #: ../fish/guestfish-actions.pod:3260
20881 msgid ""
20882 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
20883 "This only has any effect if called before C<launch>."
20884 msgstr ""
20885
20886 # type: =head2
20887 #: ../fish/guestfish-actions.pod:3271
20888 msgid "set-network | network"
20889 msgstr ""
20890
20891 # type: verbatim
20892 #: ../fish/guestfish-actions.pod:3273
20893 #, no-wrap
20894 msgid ""
20895 " set-network true|false\n"
20896 "\n"
20897 msgstr ""
20898
20899 # type: textblock
20900 #: ../fish/guestfish-actions.pod:3281
20901 msgid ""
20902 "You must call this before calling C<launch>, otherwise it has no effect."
20903 msgstr ""
20904
20905 # type: =head2
20906 #: ../fish/guestfish-actions.pod:3284
20907 msgid "set-path | path"
20908 msgstr ""
20909
20910 # type: verbatim
20911 #: ../fish/guestfish-actions.pod:3286
20912 #, no-wrap
20913 msgid ""
20914 " set-path searchpath\n"
20915 "\n"
20916 msgstr ""
20917
20918 # type: =head2
20919 #: ../fish/guestfish-actions.pod:3295
20920 msgid "set-qemu | qemu"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #: ../fish/guestfish-actions.pod:3297
20925 #, no-wrap
20926 msgid ""
20927 " set-qemu qemu\n"
20928 "\n"
20929 msgstr ""
20930
20931 # type: =head2
20932 #: ../fish/guestfish-actions.pod:3317
20933 msgid "set-recovery-proc | recovery-proc"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #: ../fish/guestfish-actions.pod:3319
20938 #, no-wrap
20939 msgid ""
20940 " set-recovery-proc true|false\n"
20941 "\n"
20942 msgstr ""
20943
20944 # type: textblock
20945 #: ../fish/guestfish-actions.pod:3321
20946 msgid ""
20947 "If this is called with the parameter C<false> then C<launch> does not create "
20948 "a recovery process.  The purpose of the recovery process is to stop runaway "
20949 "qemu processes in the case where the main program aborts abruptly."
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:3326
20954 msgid ""
20955 "This only has any effect if called before C<launch>, and the default is true."
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:3335
20960 msgid "set-selinux | selinux"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:3337
20965 #, no-wrap
20966 msgid ""
20967 " set-selinux true|false\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:3348
20973 msgid "set-trace | trace"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:3350
20978 #, no-wrap
20979 msgid ""
20980 " set-trace true|false\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: =head2
20985 #: ../fish/guestfish-actions.pod:3366
20986 msgid "set-verbose | verbose"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #: ../fish/guestfish-actions.pod:3368
20991 #, no-wrap
20992 msgid ""
20993 " set-verbose true|false\n"
20994 "\n"
20995 msgstr ""
20996
20997 # type: =head2
20998 #: ../fish/guestfish-actions.pod:3375
20999 msgid "setcon"
21000 msgstr ""
21001
21002 # type: verbatim
21003 #: ../fish/guestfish-actions.pod:3377
21004 #, no-wrap
21005 msgid ""
21006 " setcon context\n"
21007 "\n"
21008 msgstr ""
21009
21010 # type: =head2
21011 #: ../fish/guestfish-actions.pod:3384
21012 msgid "setxattr"
21013 msgstr ""
21014
21015 # type: verbatim
21016 #: ../fish/guestfish-actions.pod:3386
21017 #, no-wrap
21018 msgid ""
21019 " setxattr xattr val vallen path\n"
21020 "\n"
21021 msgstr ""
21022
21023 # type: textblock
21024 #: ../fish/guestfish-actions.pod:3392
21025 msgid "See also: C<lsetxattr>, L<attr(5)>."
21026 msgstr ""
21027
21028 # type: =head2
21029 #: ../fish/guestfish-actions.pod:3394
21030 msgid "sfdisk"
21031 msgstr ""
21032
21033 # type: verbatim
21034 #: ../fish/guestfish-actions.pod:3396
21035 #, no-wrap
21036 msgid ""
21037 " sfdisk device cyls heads sectors 'lines ...'\n"
21038 "\n"
21039 msgstr ""
21040
21041 # type: textblock
21042 #: ../fish/guestfish-actions.pod:3418
21043 msgid "See also: C<sfdisk-l>, C<sfdisk-N>, C<part-init>"
21044 msgstr ""
21045
21046 # type: =head2
21047 #: ../fish/guestfish-actions.pod:3424
21048 msgid "sfdiskM"
21049 msgstr ""
21050
21051 # type: verbatim
21052 #: ../fish/guestfish-actions.pod:3426
21053 #, no-wrap
21054 msgid ""
21055 " sfdiskM device 'lines ...'\n"
21056 "\n"
21057 msgstr ""
21058
21059 # type: textblock
21060 #: ../fish/guestfish-actions.pod:3428
21061 msgid ""
21062 "This is a simplified interface to the C<sfdisk> command, where partition "
21063 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21064 "you don't need to specify the cyls, heads and sectors parameters which were "
21065 "rarely if ever used anyway."
21066 msgstr ""
21067
21068 # type: textblock
21069 #: ../fish/guestfish-actions.pod:3434
21070 msgid "See also: C<sfdisk>, the L<sfdisk(8)> manpage and C<part-disk>"
21071 msgstr ""
21072
21073 # type: =head2
21074 #: ../fish/guestfish-actions.pod:3440
21075 msgid "sfdisk-N"
21076 msgstr ""
21077
21078 # type: verbatim
21079 #: ../fish/guestfish-actions.pod:3442
21080 #, no-wrap
21081 msgid ""
21082 " sfdisk-N device partnum cyls heads sectors line\n"
21083 "\n"
21084 msgstr ""
21085
21086 # type: textblock
21087 #: ../fish/guestfish-actions.pod:3447
21088 msgid ""
21089 "For other parameters, see C<sfdisk>.  You should usually pass C<0> for the "
21090 "cyls/heads/sectors parameters."
21091 msgstr ""
21092
21093 # type: textblock
21094 #: ../fish/guestfish-actions.pod:3450
21095 msgid "See also: C<part-add>"
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:3455
21100 msgid "sfdisk-disk-geometry"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:3457
21105 #, no-wrap
21106 msgid ""
21107 " sfdisk-disk-geometry device\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #: ../fish/guestfish-actions.pod:3459
21113 msgid ""
21114 "This displays the disk geometry of C<device> read from the partition table.  "
21115 "Especially in the case where the underlying block device has been resized, "
21116 "this can be different from the kernel's idea of the geometry (see C<sfdisk-"
21117 "kernel-geometry>)."
21118 msgstr ""
21119
21120 # type: =head2
21121 #: ../fish/guestfish-actions.pod:3467
21122 msgid "sfdisk-kernel-geometry"
21123 msgstr ""
21124
21125 # type: verbatim
21126 #: ../fish/guestfish-actions.pod:3469
21127 #, no-wrap
21128 msgid ""
21129 " sfdisk-kernel-geometry device\n"
21130 "\n"
21131 msgstr ""
21132
21133 # type: =head2
21134 #: ../fish/guestfish-actions.pod:3476
21135 msgid "sfdisk-l"
21136 msgstr ""
21137
21138 # type: verbatim
21139 #: ../fish/guestfish-actions.pod:3478
21140 #, no-wrap
21141 msgid ""
21142 " sfdisk-l device\n"
21143 "\n"
21144 msgstr ""
21145
21146 # type: textblock
21147 #: ../fish/guestfish-actions.pod:3484
21148 msgid "See also: C<part-list>"
21149 msgstr ""
21150
21151 # type: =head2
21152 #: ../fish/guestfish-actions.pod:3486
21153 msgid "sh"
21154 msgstr ""
21155
21156 # type: verbatim
21157 #: ../fish/guestfish-actions.pod:3488
21158 #, no-wrap
21159 msgid ""
21160 " sh command\n"
21161 "\n"
21162 msgstr ""
21163
21164 # type: textblock
21165 #: ../fish/guestfish-actions.pod:3493
21166 msgid "This is like C<command>, but passes the command to:"
21167 msgstr ""
21168
21169 # type: textblock
21170 #: ../fish/guestfish-actions.pod:3501
21171 msgid "All the provisos about C<command> apply to this call."
21172 msgstr ""
21173
21174 # type: =head2
21175 #: ../fish/guestfish-actions.pod:3503
21176 msgid "sh-lines"
21177 msgstr ""
21178
21179 # type: verbatim
21180 #: ../fish/guestfish-actions.pod:3505
21181 #, no-wrap
21182 msgid ""
21183 " sh-lines command\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: textblock
21188 #: ../fish/guestfish-actions.pod:3507
21189 msgid "This is the same as C<sh>, but splits the result into a list of lines."
21190 msgstr ""
21191
21192 # type: textblock
21193 #: ../fish/guestfish-actions.pod:3510
21194 msgid "See also: C<command-lines>"
21195 msgstr ""
21196
21197 # type: =head2
21198 #: ../fish/guestfish-actions.pod:3512
21199 msgid "sleep"
21200 msgstr ""
21201
21202 # type: verbatim
21203 #: ../fish/guestfish-actions.pod:3514
21204 #, no-wrap
21205 msgid ""
21206 " sleep secs\n"
21207 "\n"
21208 msgstr ""
21209
21210 # type: =head2
21211 #: ../fish/guestfish-actions.pod:3518
21212 msgid "stat"
21213 msgstr ""
21214
21215 # type: verbatim
21216 #: ../fish/guestfish-actions.pod:3520
21217 #, no-wrap
21218 msgid ""
21219 " stat path\n"
21220 "\n"
21221 msgstr ""
21222
21223 # type: =head2
21224 #: ../fish/guestfish-actions.pod:3526
21225 msgid "statvfs"
21226 msgstr ""
21227
21228 # type: verbatim
21229 #: ../fish/guestfish-actions.pod:3528
21230 #, no-wrap
21231 msgid ""
21232 " statvfs path\n"
21233 "\n"
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:3536
21238 msgid "strings"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:3538
21243 #, no-wrap
21244 msgid ""
21245 " strings path\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: =head2
21250 #: ../fish/guestfish-actions.pod:3546
21251 msgid "strings-e"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #: ../fish/guestfish-actions.pod:3548
21256 #, no-wrap
21257 msgid ""
21258 " strings-e encoding path\n"
21259 "\n"
21260 msgstr ""
21261
21262 # type: textblock
21263 #: ../fish/guestfish-actions.pod:3550
21264 msgid ""
21265 "This is like the C<strings> command, but allows you to specify the encoding "
21266 "of strings that are looked for in the source file C<path>."
21267 msgstr ""
21268
21269 # type: textblock
21270 #: ../fish/guestfish-actions.pod:3560
21271 msgid ""
21272 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21273 "ISO-8859-X (this is what C<strings> uses)."
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:3592
21278 msgid "swapoff-device"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:3594
21283 #, no-wrap
21284 msgid ""
21285 " swapoff-device device\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: textblock
21290 #: ../fish/guestfish-actions.pod:3596
21291 msgid ""
21292 "This command disables the libguestfs appliance swap device or partition "
21293 "named C<device>.  See C<swapon-device>."
21294 msgstr ""
21295
21296 # type: =head2
21297 #: ../fish/guestfish-actions.pod:3600
21298 msgid "swapoff-file"
21299 msgstr ""
21300
21301 # type: verbatim
21302 #: ../fish/guestfish-actions.pod:3602
21303 #, no-wrap
21304 msgid ""
21305 " swapoff-file file\n"
21306 "\n"
21307 msgstr ""
21308
21309 # type: =head2
21310 #: ../fish/guestfish-actions.pod:3606
21311 msgid "swapoff-label"
21312 msgstr ""
21313
21314 # type: verbatim
21315 #: ../fish/guestfish-actions.pod:3608
21316 #, no-wrap
21317 msgid ""
21318 " swapoff-label label\n"
21319 "\n"
21320 msgstr ""
21321
21322 # type: =head2
21323 #: ../fish/guestfish-actions.pod:3613
21324 msgid "swapoff-uuid"
21325 msgstr ""
21326
21327 # type: verbatim
21328 #: ../fish/guestfish-actions.pod:3615
21329 #, no-wrap
21330 msgid ""
21331 " swapoff-uuid uuid\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:3620
21337 msgid "swapon-device"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:3622
21342 #, no-wrap
21343 msgid ""
21344 " swapon-device device\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: textblock
21349 #: ../fish/guestfish-actions.pod:3624
21350 msgid ""
21351 "This command enables the libguestfs appliance to use the swap device or "
21352 "partition named C<device>.  The increased memory is made available for all "
21353 "commands, for example those run using C<command> or C<sh>."
21354 msgstr ""
21355
21356 # type: =head2
21357 #: ../fish/guestfish-actions.pod:3636
21358 msgid "swapon-file"
21359 msgstr ""
21360
21361 # type: verbatim
21362 #: ../fish/guestfish-actions.pod:3638
21363 #, no-wrap
21364 msgid ""
21365 " swapon-file file\n"
21366 "\n"
21367 msgstr ""
21368
21369 # type: textblock
21370 #: ../fish/guestfish-actions.pod:3640
21371 msgid ""
21372 "This command enables swap to a file.  See C<swapon-device> for other notes."
21373 msgstr ""
21374
21375 # type: =head2
21376 #: ../fish/guestfish-actions.pod:3643
21377 msgid "swapon-label"
21378 msgstr ""
21379
21380 # type: verbatim
21381 #: ../fish/guestfish-actions.pod:3645
21382 #, no-wrap
21383 msgid ""
21384 " swapon-label label\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: textblock
21389 #: ../fish/guestfish-actions.pod:3647
21390 msgid ""
21391 "This command enables swap to a labeled swap partition.  See C<swapon-device> "
21392 "for other notes."
21393 msgstr ""
21394
21395 # type: =head2
21396 #: ../fish/guestfish-actions.pod:3650
21397 msgid "swapon-uuid"
21398 msgstr ""
21399
21400 # type: verbatim
21401 #: ../fish/guestfish-actions.pod:3652
21402 #, no-wrap
21403 msgid ""
21404 " swapon-uuid uuid\n"
21405 "\n"
21406 msgstr ""
21407
21408 # type: textblock
21409 #: ../fish/guestfish-actions.pod:3654
21410 msgid ""
21411 "This command enables swap to a swap partition with the given UUID.  See "
21412 "C<swapon-device> for other notes."
21413 msgstr ""
21414
21415 # type: =head2
21416 #: ../fish/guestfish-actions.pod:3657
21417 msgid "sync"
21418 msgstr ""
21419
21420 # type: verbatim
21421 #: ../fish/guestfish-actions.pod:3659
21422 #, no-wrap
21423 msgid ""
21424 " sync\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: =head2
21429 #: ../fish/guestfish-actions.pod:3667
21430 msgid "tail"
21431 msgstr ""
21432
21433 # type: verbatim
21434 #: ../fish/guestfish-actions.pod:3669
21435 #, no-wrap
21436 msgid ""
21437 " tail path\n"
21438 "\n"
21439 msgstr ""
21440
21441 # type: =head2
21442 #: ../fish/guestfish-actions.pod:3677
21443 msgid "tail-n"
21444 msgstr ""
21445
21446 # type: verbatim
21447 #: ../fish/guestfish-actions.pod:3679
21448 #, no-wrap
21449 msgid ""
21450 " tail-n nrlines path\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: =head2
21455 #: ../fish/guestfish-actions.pod:3692
21456 msgid "tar-in"
21457 msgstr ""
21458
21459 # type: verbatim
21460 #: ../fish/guestfish-actions.pod:3694
21461 #, no-wrap
21462 msgid ""
21463 " tar-in (tarfile|-) directory\n"
21464 "\n"
21465 msgstr ""
21466
21467 # type: textblock
21468 #: ../fish/guestfish-actions.pod:3699
21469 msgid "To upload a compressed tarball, use C<tgz-in> or C<txz-in>."
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:3704
21474 msgid "tar-out"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:3706
21479 #, no-wrap
21480 msgid ""
21481 " tar-out directory (tarfile|-)\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: textblock
21486 #: ../fish/guestfish-actions.pod:3711
21487 msgid "To download a compressed tarball, use C<tgz-out> or C<txz-out>."
21488 msgstr ""
21489
21490 # type: =head2
21491 #: ../fish/guestfish-actions.pod:3716
21492 msgid "tgz-in"
21493 msgstr ""
21494
21495 # type: verbatim
21496 #: ../fish/guestfish-actions.pod:3718
21497 #, no-wrap
21498 msgid ""
21499 " tgz-in (tarball|-) directory\n"
21500 "\n"
21501 msgstr ""
21502
21503 # type: textblock
21504 #: ../fish/guestfish-actions.pod:3723
21505 msgid "To upload an uncompressed tarball, use C<tar-in>."
21506 msgstr ""
21507
21508 # type: =head2
21509 #: ../fish/guestfish-actions.pod:3727
21510 msgid "tgz-out"
21511 msgstr ""
21512
21513 # type: verbatim
21514 #: ../fish/guestfish-actions.pod:3729
21515 #, no-wrap
21516 msgid ""
21517 " tgz-out directory (tarball|-)\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: textblock
21522 #: ../fish/guestfish-actions.pod:3734
21523 msgid "To download an uncompressed tarball, use C<tar-out>."
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:3738
21528 msgid "touch"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:3740
21533 #, no-wrap
21534 msgid ""
21535 " touch path\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:3749
21541 msgid "truncate"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:3751
21546 #, no-wrap
21547 msgid ""
21548 " truncate path\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: =head2
21553 #: ../fish/guestfish-actions.pod:3756
21554 msgid "truncate-size"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #: ../fish/guestfish-actions.pod:3758
21559 #, no-wrap
21560 msgid ""
21561 " truncate-size path size\n"
21562 "\n"
21563 msgstr ""
21564
21565 # type: textblock
21566 #: ../fish/guestfish-actions.pod:3763
21567 msgid ""
21568 "If the current file size is less than C<size> then the file is extended to "
21569 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21570 "blocks are not allocated for the file until you write to it).  To create a "
21571 "non-sparse file of zeroes, use C<fallocate64> instead."
21572 msgstr ""
21573
21574 # type: =head2
21575 #: ../fish/guestfish-actions.pod:3769
21576 msgid "tune2fs-l"
21577 msgstr ""
21578
21579 # type: verbatim
21580 #: ../fish/guestfish-actions.pod:3771
21581 #, no-wrap
21582 msgid ""
21583 " tune2fs-l device\n"
21584 "\n"
21585 msgstr ""
21586
21587 # type: =head2
21588 #: ../fish/guestfish-actions.pod:3781
21589 msgid "txz-in"
21590 msgstr ""
21591
21592 # type: verbatim
21593 #: ../fish/guestfish-actions.pod:3783
21594 #, no-wrap
21595 msgid ""
21596 " txz-in (tarball|-) directory\n"
21597 "\n"
21598 msgstr ""
21599
21600 # type: =head2
21601 #: ../fish/guestfish-actions.pod:3790
21602 msgid "txz-out"
21603 msgstr ""
21604
21605 # type: verbatim
21606 #: ../fish/guestfish-actions.pod:3792
21607 #, no-wrap
21608 msgid ""
21609 " txz-out directory (tarball|-)\n"
21610 "\n"
21611 msgstr ""
21612
21613 # type: =head2
21614 #: ../fish/guestfish-actions.pod:3799
21615 msgid "umask"
21616 msgstr ""
21617
21618 # type: verbatim
21619 #: ../fish/guestfish-actions.pod:3801
21620 #, no-wrap
21621 msgid ""
21622 " umask mask\n"
21623 "\n"
21624 msgstr ""
21625
21626 # type: textblock
21627 #: ../fish/guestfish-actions.pod:3815
21628 msgid "See also C<get-umask>, L<umask(2)>, C<mknod>, C<mkdir>."
21629 msgstr ""
21630
21631 # type: =head2
21632 #: ../fish/guestfish-actions.pod:3820
21633 msgid "umount | unmount"
21634 msgstr ""
21635
21636 # type: verbatim
21637 #: ../fish/guestfish-actions.pod:3822
21638 #, no-wrap
21639 msgid ""
21640 " umount pathordevice\n"
21641 "\n"
21642 msgstr ""
21643
21644 # type: =head2
21645 #: ../fish/guestfish-actions.pod:3828
21646 msgid "umount-all | unmount-all"
21647 msgstr ""
21648
21649 # type: verbatim
21650 #: ../fish/guestfish-actions.pod:3830
21651 #, no-wrap
21652 msgid ""
21653 " umount-all\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: =head2
21658 #: ../fish/guestfish-actions.pod:3836
21659 msgid "upload"
21660 msgstr ""
21661
21662 # type: verbatim
21663 #: ../fish/guestfish-actions.pod:3838
21664 #, no-wrap
21665 msgid ""
21666 " upload (filename|-) remotefilename\n"
21667 "\n"
21668 msgstr ""
21669
21670 # type: textblock
21671 #: ../fish/guestfish-actions.pod:3845
21672 msgid "See also C<download>."
21673 msgstr ""
21674
21675 # type: =head2
21676 #: ../fish/guestfish-actions.pod:3849
21677 msgid "utimens"
21678 msgstr ""
21679
21680 # type: verbatim
21681 #: ../fish/guestfish-actions.pod:3851
21682 #, no-wrap
21683 msgid ""
21684 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
21685 "\n"
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-actions.pod:3870
21690 msgid "version"
21691 msgstr ""
21692
21693 # type: verbatim
21694 #: ../fish/guestfish-actions.pod:3872
21695 #, no-wrap
21696 msgid ""
21697 " version\n"
21698 "\n"
21699 msgstr ""
21700
21701 # type: textblock
21702 #: ../fish/guestfish-actions.pod:3899
21703 msgid ""
21704 "I<Note:> Don't use this call to test for availability of features.  In "
21705 "enterprise distributions we backport features from later versions into "
21706 "earlier versions, making this an unreliable way to test for features.  Use "
21707 "C<available> instead."
21708 msgstr ""
21709
21710 # type: =head2
21711 #: ../fish/guestfish-actions.pod:3905
21712 msgid "vfs-label"
21713 msgstr ""
21714
21715 # type: verbatim
21716 #: ../fish/guestfish-actions.pod:3907
21717 #, no-wrap
21718 msgid ""
21719 " vfs-label device\n"
21720 "\n"
21721 msgstr ""
21722
21723 # type: textblock
21724 #: ../fish/guestfish-actions.pod:3914
21725 msgid "To find a filesystem from the label, use C<findfs-label>."
21726 msgstr ""
21727
21728 # type: =head2
21729 #: ../fish/guestfish-actions.pod:3916
21730 msgid "vfs-type"
21731 msgstr ""
21732
21733 # type: verbatim
21734 #: ../fish/guestfish-actions.pod:3918
21735 #, no-wrap
21736 msgid ""
21737 " vfs-type device\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: =head2
21742 #: ../fish/guestfish-actions.pod:3928
21743 msgid "vfs-uuid"
21744 msgstr ""
21745
21746 # type: verbatim
21747 #: ../fish/guestfish-actions.pod:3930
21748 #, no-wrap
21749 msgid ""
21750 " vfs-uuid device\n"
21751 "\n"
21752 msgstr ""
21753
21754 # type: textblock
21755 #: ../fish/guestfish-actions.pod:3937
21756 msgid "To find a filesystem from the UUID, use C<findfs-uuid>."
21757 msgstr ""
21758
21759 # type: =head2
21760 #: ../fish/guestfish-actions.pod:3939
21761 msgid "vg-activate"
21762 msgstr ""
21763
21764 # type: verbatim
21765 #: ../fish/guestfish-actions.pod:3941
21766 #, no-wrap
21767 msgid ""
21768 " vg-activate true|false 'volgroups ...'\n"
21769 "\n"
21770 msgstr ""
21771
21772 # type: =head2
21773 #: ../fish/guestfish-actions.pod:3954
21774 msgid "vg-activate-all"
21775 msgstr ""
21776
21777 # type: verbatim
21778 #: ../fish/guestfish-actions.pod:3956
21779 #, no-wrap
21780 msgid ""
21781 " vg-activate-all true|false\n"
21782 "\n"
21783 msgstr ""
21784
21785 # type: =head2
21786 #: ../fish/guestfish-actions.pod:3966
21787 msgid "vgcreate"
21788 msgstr ""
21789
21790 # type: verbatim
21791 #: ../fish/guestfish-actions.pod:3968
21792 #, no-wrap
21793 msgid ""
21794 " vgcreate volgroup 'physvols ...'\n"
21795 "\n"
21796 msgstr ""
21797
21798 # type: =head2
21799 #: ../fish/guestfish-actions.pod:3973
21800 msgid "vglvuuids"
21801 msgstr ""
21802
21803 # type: verbatim
21804 #: ../fish/guestfish-actions.pod:3975
21805 #, no-wrap
21806 msgid ""
21807 " vglvuuids vgname\n"
21808 "\n"
21809 msgstr ""
21810
21811 # type: textblock
21812 #: ../fish/guestfish-actions.pod:3980
21813 msgid ""
21814 "You can use this along with C<lvs> and C<lvuuid> calls to associate logical "
21815 "volumes and volume groups."
21816 msgstr ""
21817
21818 # type: textblock
21819 #: ../fish/guestfish-actions.pod:3983
21820 msgid "See also C<vgpvuuids>."
21821 msgstr ""
21822
21823 # type: =head2
21824 #: ../fish/guestfish-actions.pod:3985
21825 msgid "vgpvuuids"
21826 msgstr ""
21827
21828 # type: verbatim
21829 #: ../fish/guestfish-actions.pod:3987
21830 #, no-wrap
21831 msgid ""
21832 " vgpvuuids vgname\n"
21833 "\n"
21834 msgstr ""
21835
21836 # type: textblock
21837 #: ../fish/guestfish-actions.pod:3992
21838 msgid ""
21839 "You can use this along with C<pvs> and C<pvuuid> calls to associate physical "
21840 "volumes and volume groups."
21841 msgstr ""
21842
21843 # type: textblock
21844 #: ../fish/guestfish-actions.pod:3995
21845 msgid "See also C<vglvuuids>."
21846 msgstr ""
21847
21848 # type: =head2
21849 #: ../fish/guestfish-actions.pod:3997
21850 msgid "vgremove"
21851 msgstr ""
21852
21853 # type: verbatim
21854 #: ../fish/guestfish-actions.pod:3999
21855 #, no-wrap
21856 msgid ""
21857 " vgremove vgname\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:4006
21863 msgid "vgrename"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:4008
21868 #, no-wrap
21869 msgid ""
21870 " vgrename volgroup newvolgroup\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: =head2
21875 #: ../fish/guestfish-actions.pod:4012
21876 msgid "vgs"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #: ../fish/guestfish-actions.pod:4014
21881 #, no-wrap
21882 msgid ""
21883 " vgs\n"
21884 "\n"
21885 msgstr ""
21886
21887 # type: textblock
21888 #: ../fish/guestfish-actions.pod:4022
21889 msgid "See also C<vgs-full>."
21890 msgstr ""
21891
21892 # type: =head2
21893 #: ../fish/guestfish-actions.pod:4024
21894 msgid "vgs-full"
21895 msgstr ""
21896
21897 # type: verbatim
21898 #: ../fish/guestfish-actions.pod:4026
21899 #, no-wrap
21900 msgid ""
21901 " vgs-full\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: =head2
21906 #: ../fish/guestfish-actions.pod:4031
21907 msgid "vgscan"
21908 msgstr ""
21909
21910 # type: verbatim
21911 #: ../fish/guestfish-actions.pod:4033
21912 #, no-wrap
21913 msgid ""
21914 " vgscan\n"
21915 "\n"
21916 msgstr ""
21917
21918 # type: =head2
21919 #: ../fish/guestfish-actions.pod:4038
21920 msgid "vguuid"
21921 msgstr ""
21922
21923 # type: verbatim
21924 #: ../fish/guestfish-actions.pod:4040
21925 #, no-wrap
21926 msgid ""
21927 " vguuid vgname\n"
21928 "\n"
21929 msgstr ""
21930
21931 # type: =head2
21932 #: ../fish/guestfish-actions.pod:4044
21933 msgid "wc-c"
21934 msgstr ""
21935
21936 # type: verbatim
21937 #: ../fish/guestfish-actions.pod:4046
21938 #, no-wrap
21939 msgid ""
21940 " wc-c path\n"
21941 "\n"
21942 msgstr ""
21943
21944 # type: =head2
21945 #: ../fish/guestfish-actions.pod:4051
21946 msgid "wc-l"
21947 msgstr ""
21948
21949 # type: verbatim
21950 #: ../fish/guestfish-actions.pod:4053
21951 #, no-wrap
21952 msgid ""
21953 " wc-l path\n"
21954 "\n"
21955 msgstr ""
21956
21957 # type: =head2
21958 #: ../fish/guestfish-actions.pod:4058
21959 msgid "wc-w"
21960 msgstr ""
21961
21962 # type: verbatim
21963 #: ../fish/guestfish-actions.pod:4060
21964 #, no-wrap
21965 msgid ""
21966 " wc-w path\n"
21967 "\n"
21968 msgstr ""
21969
21970 # type: =head2
21971 #: ../fish/guestfish-actions.pod:4065
21972 msgid "write"
21973 msgstr ""
21974
21975 # type: verbatim
21976 #: ../fish/guestfish-actions.pod:4067
21977 #, no-wrap
21978 msgid ""
21979 " write path content\n"
21980 "\n"
21981 msgstr ""
21982
21983 # type: =head2
21984 #: ../fish/guestfish-actions.pod:4075
21985 msgid "write-file"
21986 msgstr ""
21987
21988 # type: verbatim
21989 #: ../fish/guestfish-actions.pod:4077
21990 #, no-wrap
21991 msgid ""
21992 " write-file path content size\n"
21993 "\n"
21994 msgstr ""
21995
21996 # type: =head2
21997 #: ../fish/guestfish-actions.pod:4100
21998 msgid "zegrep"
21999 msgstr ""
22000
22001 # type: verbatim
22002 #: ../fish/guestfish-actions.pod:4102
22003 #, no-wrap
22004 msgid ""
22005 " zegrep regex path\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: =head2
22010 #: ../fish/guestfish-actions.pod:4110
22011 msgid "zegrepi"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #: ../fish/guestfish-actions.pod:4112
22016 #, no-wrap
22017 msgid ""
22018 " zegrepi regex path\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: =head2
22023 #: ../fish/guestfish-actions.pod:4120
22024 msgid "zero"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #: ../fish/guestfish-actions.pod:4122
22029 #, no-wrap
22030 msgid ""
22031 " zero device\n"
22032 "\n"
22033 msgstr ""
22034
22035 # type: textblock
22036 #: ../fish/guestfish-actions.pod:4130
22037 msgid "See also: C<zero-device>, C<scrub-device>."
22038 msgstr ""
22039
22040 # type: =head2
22041 #: ../fish/guestfish-actions.pod:4132
22042 msgid "zero-device"
22043 msgstr ""
22044
22045 # type: verbatim
22046 #: ../fish/guestfish-actions.pod:4134
22047 #, no-wrap
22048 msgid ""
22049 " zero-device device\n"
22050 "\n"
22051 msgstr ""
22052
22053 # type: textblock
22054 #: ../fish/guestfish-actions.pod:4136
22055 msgid ""
22056 "This command writes zeroes over the entire C<device>.  Compare with C<zero> "
22057 "which just zeroes the first few blocks of a device."
22058 msgstr ""
22059
22060 # type: =head2
22061 #: ../fish/guestfish-actions.pod:4143
22062 msgid "zerofree"
22063 msgstr ""
22064
22065 # type: verbatim
22066 #: ../fish/guestfish-actions.pod:4145
22067 #, no-wrap
22068 msgid ""
22069 " zerofree device\n"
22070 "\n"
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:4158
22075 msgid "zfgrep"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:4160
22080 #, no-wrap
22081 msgid ""
22082 " zfgrep pattern path\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: =head2
22087 #: ../fish/guestfish-actions.pod:4168
22088 msgid "zfgrepi"
22089 msgstr ""
22090
22091 # type: verbatim
22092 #: ../fish/guestfish-actions.pod:4170
22093 #, no-wrap
22094 msgid ""
22095 " zfgrepi pattern path\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:4178
22101 msgid "zfile"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #: ../fish/guestfish-actions.pod:4180
22106 #, no-wrap
22107 msgid ""
22108 " zfile meth path\n"
22109 "\n"
22110 msgstr ""
22111
22112 # type: textblock
22113 #: ../fish/guestfish-actions.pod:4187
22114 msgid ""
22115 "Since 1.0.63, use C<file> instead which can now process compressed files."
22116 msgstr ""
22117
22118 # type: =head2
22119 #: ../fish/guestfish-actions.pod:4197
22120 msgid "zgrep"
22121 msgstr ""
22122
22123 # type: verbatim
22124 #: ../fish/guestfish-actions.pod:4199
22125 #, no-wrap
22126 msgid ""
22127 " zgrep regex path\n"
22128 "\n"
22129 msgstr ""
22130
22131 # type: =head2
22132 #: ../fish/guestfish-actions.pod:4207
22133 msgid "zgrepi"
22134 msgstr ""
22135
22136 # type: verbatim
22137 #: ../fish/guestfish-actions.pod:4209
22138 #, no-wrap
22139 msgid ""
22140 " zgrepi regex path\n"
22141 "\n"
22142 msgstr ""
22143
22144 # type: textblock
22145 #: ../test-tool/libguestfs-test-tool.pod:5
22146 msgid "libguestfs-test-tool - End user tests for libguestfs"
22147 msgstr ""
22148
22149 # type: verbatim
22150 #: ../test-tool/libguestfs-test-tool.pod:9
22151 #, no-wrap
22152 msgid ""
22153 " libguestfs-test-tool [--options]\n"
22154 "\n"
22155 msgstr ""
22156
22157 # type: textblock
22158 #: ../test-tool/libguestfs-test-tool.pod:13
22159 msgid ""
22160 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22161 "and developers, to allow them to check basic libguestfs functionality is "
22162 "working.  This is needed because libguestfs occasionally breaks for reasons "
22163 "beyond our control: usually because of changes in the underlying qemu or "
22164 "kernel packages, or the host environment."
22165 msgstr ""
22166
22167 # type: textblock
22168 #: ../test-tool/libguestfs-test-tool.pod:20
22169 msgid "If you suspect a problem in libguestfs, then just run:"
22170 msgstr ""
22171
22172 # type: verbatim
22173 #: ../test-tool/libguestfs-test-tool.pod:22
22174 #, no-wrap
22175 msgid ""
22176 " libguestfs-test-tool\n"
22177 "\n"
22178 msgstr ""
22179
22180 # type: textblock
22181 #: ../test-tool/libguestfs-test-tool.pod:24
22182 msgid "It will print lots of diagnostic messages."
22183 msgstr ""
22184
22185 # type: textblock
22186 #: ../test-tool/libguestfs-test-tool.pod:26
22187 msgid "If it runs to completion successfully, you will see this near the end:"
22188 msgstr ""
22189
22190 # type: verbatim
22191 #: ../test-tool/libguestfs-test-tool.pod:28
22192 #, no-wrap
22193 msgid ""
22194 " ===== TEST FINISHED OK =====\n"
22195 "\n"
22196 msgstr ""
22197
22198 # type: textblock
22199 #: ../test-tool/libguestfs-test-tool.pod:30
22200 msgid "and the test tool will exit with code 0."
22201 msgstr ""
22202
22203 # type: textblock
22204 #: ../test-tool/libguestfs-test-tool.pod:32
22205 msgid ""
22206 "If it fails (and/or exits with non-zero error code), please paste the "
22207 "B<complete, unedited> output of the test tool into a bug report.  More "
22208 "information about reporting bugs can be found on the L<http://libguestfs.org/"
22209 "> website."
22210 msgstr ""
22211
22212 # type: =item
22213 #: ../test-tool/libguestfs-test-tool.pod:41
22214 msgid "I<--help>"
22215 msgstr ""
22216
22217 # type: textblock
22218 #: ../test-tool/libguestfs-test-tool.pod:43
22219 msgid "Display short usage information and exit."
22220 msgstr ""
22221
22222 # type: =item
22223 #: ../test-tool/libguestfs-test-tool.pod:45
22224 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
22225 msgstr ""
22226
22227 # type: textblock
22228 #: ../test-tool/libguestfs-test-tool.pod:47
22229 msgid ""
22230 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
22231 "normally look in the C<$libexec> directory that was configured when the tool "
22232 "was built."
22233 msgstr ""
22234
22235 # type: =item
22236 #: ../test-tool/libguestfs-test-tool.pod:51
22237 msgid "I<--qemu qemu_binary>"
22238 msgstr ""
22239
22240 # type: textblock
22241 #: ../test-tool/libguestfs-test-tool.pod:53
22242 msgid ""
22243 "If you have downloaded another qemu binary, point this option at the full "
22244 "path of the binary to try it."
22245 msgstr ""
22246
22247 # type: =item
22248 #: ../test-tool/libguestfs-test-tool.pod:56
22249 msgid "I<--qemudir qemu_source_dir>"
22250 msgstr ""
22251
22252 # type: textblock
22253 #: ../test-tool/libguestfs-test-tool.pod:58
22254 msgid ""
22255 "If you have compiled qemu from source, point this option at the source "
22256 "directory to try it."
22257 msgstr ""
22258
22259 # type: =item
22260 #: ../test-tool/libguestfs-test-tool.pod:61
22261 msgid "I<--timeout N>"
22262 msgstr ""
22263
22264 # type: textblock
22265 #: ../test-tool/libguestfs-test-tool.pod:63
22266 msgid ""
22267 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
22268 "does not usually need to be adjusted unless your machine is very slow."
22269 msgstr ""
22270
22271 # type: =head1
22272 #: ../test-tool/libguestfs-test-tool.pod:69
22273 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
22274 msgstr ""
22275
22276 # type: textblock
22277 #: ../test-tool/libguestfs-test-tool.pod:71
22278 msgid ""
22279 "If you have compiled another version of qemu from source and would like to "
22280 "try that, then you can use the I<--qemudir> option to point to the qemu "
22281 "source directory."
22282 msgstr ""
22283
22284 # type: textblock
22285 #: ../test-tool/libguestfs-test-tool.pod:75
22286 msgid ""
22287 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
22288 "option to point to the binary."
22289 msgstr ""
22290
22291 # type: textblock
22292 #: ../test-tool/libguestfs-test-tool.pod:78
22293 msgid ""
22294 "When using an alternate qemu with libguestfs, usually you would need to "
22295 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
22296 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
22297 "use either of the I<--qemudir> or I<--qemu> options."
22298 msgstr ""
22299
22300 # type: textblock
22301 #: ../test-tool/libguestfs-test-tool.pod:85
22302 msgid ""
22303 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
22304 "I<1> if there was an error."
22305 msgstr ""
22306
22307 # type: =item
22308 #: ../test-tool/libguestfs-test-tool.pod:92
22309 msgid "/usr/libexec/libguestfs-test-tool-helper"
22310 msgstr ""
22311
22312 # type: textblock
22313 #: ../test-tool/libguestfs-test-tool.pod:94
22314 msgid ""
22315 "This helper program is run inside the appliance and provides additional "
22316 "tests."
22317 msgstr ""
22318
22319 # type: =item
22320 #: ../test-tool/libguestfs-test-tool.pod:97
22321 msgid "/usr/bin/mkisofs"
22322 msgstr ""
22323
22324 # type: textblock
22325 #: ../test-tool/libguestfs-test-tool.pod:99
22326 msgid ""
22327 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
22328 "which is used as part of the tests."
22329 msgstr ""
22330
22331 # type: textblock
22332 #: ../test-tool/libguestfs-test-tool.pod:106
22333 msgid ""
22334 "For the full list of environment variables which may affect libguestfs, "
22335 "please see the L<guestfs(3)> manual page."
22336 msgstr ""
22337
22338 # type: textblock
22339 #: ../test-tool/libguestfs-test-tool.pod:111
22340 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
22341 msgstr ""
22342
22343 # type: textblock
22344 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
22345 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
22346 msgstr ""
22347
22348 # type: textblock
22349 #: ../fuse/guestmount.pod:5
22350 msgid ""
22351 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22352 msgstr ""
22353
22354 # type: verbatim
22355 #: ../fuse/guestmount.pod:9
22356 #, no-wrap
22357 msgid ""
22358 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22359 "\n"
22360 msgstr ""
22361
22362 # type: textblock
22363 #: ../fuse/guestmount.pod:13
22364 msgid ""
22365 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22366 "machines.  If you do this, you risk disk corruption in the VM."
22367 msgstr ""
22368
22369 # type: textblock
22370 #: ../fuse/guestmount.pod:18
22371 msgid ""
22372 "The guestmount program can be used to mount virtual machine filesystems and "
22373 "other disk images on the host.  It uses libguestfs for access to the guest "
22374 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22375 "a mountable device."
22376 msgstr ""
22377
22378 # type: textblock
22379 #: ../fuse/guestmount.pod:23
22380 msgid ""
22381 "Along with other options, you have to give at least one device (I<-a> "
22382 "option) and at least one mountpoint (I<-m> option).  How this works is "
22383 "better explained in the L<guestfish(1)> manual page, or you can use L<virt-"
22384 "inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help you."
22385 msgstr ""
22386
22387 # type: textblock
22388 #: ../fuse/guestmount.pod:29
22389 msgid ""
22390 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22391 "by you, and the filesystem will not be visible to any other users unless you "
22392 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22393 "the filesystem, use the C<fusermount -u> command."
22394 msgstr ""
22395
22396 # type: textblock
22397 #: ../fuse/guestmount.pod:37
22398 msgid ""
22399 "For a typical Windows guest which has its main filesystem on the first "
22400 "partition:"
22401 msgstr ""
22402
22403 # type: verbatim
22404 #: ../fuse/guestmount.pod:40
22405 #, no-wrap
22406 msgid ""
22407 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22408 "\n"
22409 msgstr ""
22410
22411 # type: textblock
22412 #: ../fuse/guestmount.pod:42
22413 msgid ""
22414 "For a typical Linux guest which has a /boot filesystem on the first "
22415 "partition, and the root filesystem on a logical volume:"
22416 msgstr ""
22417
22418 # type: verbatim
22419 #: ../fuse/guestmount.pod:45
22420 #, no-wrap
22421 msgid ""
22422 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22423 "\n"
22424 msgstr ""
22425
22426 # type: textblock
22427 #: ../fuse/guestmount.pod:47
22428 msgid ""
22429 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
22430 "mountpoints for you:"
22431 msgstr ""
22432
22433 # type: verbatim
22434 #: ../fuse/guestmount.pod:50
22435 #, no-wrap
22436 msgid ""
22437 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
22438 "\n"
22439 msgstr ""
22440
22441 # type: textblock
22442 #: ../fuse/guestmount.pod:52
22443 msgid ""
22444 "(or use --fish if you don't want it to be a read only mount).  The option is "
22445 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
22446 "with L<guestfish(1)>."
22447 msgstr ""
22448
22449 # type: textblock
22450 #: ../fuse/guestmount.pod:56
22451 msgid ""
22452 "If you don't know what filesystems are contained in a guest or disk image, "
22453 "use L<virt-list-filesystems(1)> first:"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #: ../fuse/guestmount.pod:59
22458 #, no-wrap
22459 msgid ""
22460 " virt-list-filesystems MyGuest\n"
22461 "\n"
22462 msgstr ""
22463
22464 # type: textblock
22465 #: ../fuse/guestmount.pod:61
22466 msgid ""
22467 "If you want to trace the libguestfs calls but without excessive debugging, "
22468 "we recommend:"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #: ../fuse/guestmount.pod:64
22473 #, no-wrap
22474 msgid ""
22475 " guestmount [-a ... -m ...] --trace /mnt\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../fuse/guestmount.pod:66
22481 msgid "If you want to debug the program, we recommend:"
22482 msgstr ""
22483
22484 # type: verbatim
22485 #: ../fuse/guestmount.pod:68
22486 #, no-wrap
22487 msgid ""
22488 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
22489 "\n"
22490 msgstr ""
22491
22492 # type: textblock
22493 #: ../fuse/guestmount.pod:76
22494 msgid "Add a block device or virtual machine image."
22495 msgstr ""
22496
22497 # type: =item
22498 #: ../fuse/guestmount.pod:78
22499 msgid "B<--dir-cache-timeout N>"
22500 msgstr ""
22501
22502 # type: textblock
22503 #: ../fuse/guestmount.pod:80
22504 msgid ""
22505 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22506 "seconds.  The readdir cache [actually, there are several semi-independent "
22507 "caches] is populated after a readdir(2) call with the stat and extended "
22508 "attributes of the files in the directory, in anticipation that they will be "
22509 "requested soon after."
22510 msgstr ""
22511
22512 # type: textblock
22513 #: ../fuse/guestmount.pod:86
22514 msgid ""
22515 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22516 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22517 "requests, only cache existing ones."
22518 msgstr ""
22519
22520 # type: =item
22521 #: ../fuse/guestmount.pod:90
22522 msgid "B<--fuse-help>"
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../fuse/guestmount.pod:92
22527 msgid "Display help on special FUSE options (see I<-o> below)."
22528 msgstr ""
22529
22530 # type: textblock
22531 #: ../fuse/guestmount.pod:96
22532 msgid "Display brief help and exit."
22533 msgstr ""
22534
22535 # type: =item
22536 #: ../fuse/guestmount.pod:98
22537 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
22538 msgstr ""
22539
22540 # type: textblock
22541 #: ../fuse/guestmount.pod:100
22542 msgid ""
22543 "Mount the named partition or logical volume on the given mountpoint B<in the "
22544 "guest> (this has nothing to do with mountpoints in the host)."
22545 msgstr ""
22546
22547 # type: textblock
22548 #: ../fuse/guestmount.pod:103
22549 msgid ""
22550 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22551 "something on C</>."
22552 msgstr ""
22553
22554 # type: textblock
22555 #: ../fuse/guestmount.pod:108
22556 msgid ""
22557 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22558 "unmounted.  If you specify this option, then we don't attempt to sync the "
22559 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22560 msgstr ""
22561
22562 # type: =item
22563 #: ../fuse/guestmount.pod:113
22564 msgid "B<-o option> | B<--option option>"
22565 msgstr ""
22566
22567 # type: textblock
22568 #: ../fuse/guestmount.pod:115
22569 msgid "Pass extra options to FUSE."
22570 msgstr ""
22571
22572 # type: textblock
22573 #: ../fuse/guestmount.pod:117
22574 msgid ""
22575 "To get a list of all the extra options supported by FUSE, use the command "
22576 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22577 "of them are a good idea."
22578 msgstr ""
22579
22580 # type: verbatim
22581 #: ../fuse/guestmount.pod:121
22582 #, no-wrap
22583 msgid ""
22584 " guestmount --fuse-help\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: textblock
22589 #: ../fuse/guestmount.pod:123
22590 msgid "Some potentially useful FUSE options:"
22591 msgstr ""
22592
22593 # type: =item
22594 #: ../fuse/guestmount.pod:127
22595 msgid "B<-o allow_other>"
22596 msgstr ""
22597
22598 # type: textblock
22599 #: ../fuse/guestmount.pod:129
22600 msgid "Allow other users to see the filesystem."
22601 msgstr ""
22602
22603 # type: =item
22604 #: ../fuse/guestmount.pod:131
22605 msgid "B<-o attr_timeout=N>"
22606 msgstr ""
22607
22608 # type: textblock
22609 #: ../fuse/guestmount.pod:133
22610 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22611 msgstr ""
22612
22613 # type: =item
22614 #: ../fuse/guestmount.pod:135
22615 msgid "B<-o kernel_cache>"
22616 msgstr ""
22617
22618 # type: textblock
22619 #: ../fuse/guestmount.pod:137
22620 msgid ""
22621 "Allow the kernel to cache files (reduces the number of reads that have to go "
22622 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22623 "afford the extra memory usage."
22624 msgstr ""
22625
22626 # type: =item
22627 #: ../fuse/guestmount.pod:141
22628 msgid "B<-o uid=N> B<-o gid=N>"
22629 msgstr ""
22630
22631 # type: textblock
22632 #: ../fuse/guestmount.pod:143
22633 msgid ""
22634 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22635 "the chosen values."
22636 msgstr ""
22637
22638 # type: textblock
22639 #: ../fuse/guestmount.pod:150
22640 msgid ""
22641 "Add devices and mount everything read-only.  Also disallow writes and make "
22642 "the disk appear read-only to FUSE."
22643 msgstr ""
22644
22645 # type: textblock
22646 #: ../fuse/guestmount.pod:153
22647 msgid ""
22648 "This is highly recommended if you are not going to edit the guest disk.  If "
22649 "the guest is running and this option is I<not> supplied, then there is a "
22650 "strong risk of disk corruption in the guest.  We try to prevent this from "
22651 "happening, but it is not always possible."
22652 msgstr ""
22653
22654 # type: textblock
22655 #: ../fuse/guestmount.pod:160
22656 msgid "Enable SELinux support for the guest."
22657 msgstr ""
22658
22659 # type: =item
22660 #: ../fuse/guestmount.pod:162
22661 msgid "B<--trace>"
22662 msgstr ""
22663
22664 # type: textblock
22665 #: ../fuse/guestmount.pod:164
22666 msgid "Trace libguestfs calls (to stderr)."
22667 msgstr ""
22668
22669 # type: textblock
22670 #: ../fuse/guestmount.pod:166
22671 msgid "This also stops the daemon from forking into the background."
22672 msgstr ""
22673
22674 # type: textblock
22675 #: ../fuse/guestmount.pod:170
22676 msgid "Enable verbose messages from underlying libguestfs."
22677 msgstr ""
22678
22679 # type: textblock
22680 #: ../fuse/guestmount.pod:174
22681 msgid "Display the program version and exit."
22682 msgstr ""
22683
22684 # type: textblock
22685 #: ../fuse/guestmount.pod:180
22686 msgid ""
22687 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22688 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22689 "net/>."
22690 msgstr ""
22691
22692 # type: textblock
22693 #: ../inspector/virt-inspector.pl:40
22694 msgid ""
22695 "virt-inspector - Display OS version, kernel, drivers, mount points, "
22696 "applications, etc. in a virtual machine"
22697 msgstr ""
22698
22699 # type: verbatim
22700 #: ../inspector/virt-inspector.pl:44
22701 #, no-wrap
22702 msgid ""
22703 " virt-inspector [--connect URI] domname\n"
22704 "\n"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #: ../inspector/virt-inspector.pl:46
22709 #, no-wrap
22710 msgid ""
22711 " virt-inspector guest.img [guest.img ...]\n"
22712 "\n"
22713 msgstr ""
22714
22715 # type: textblock
22716 #: ../inspector/virt-inspector.pl:50
22717 msgid ""
22718 "B<virt-inspector> examines a virtual machine and tries to determine the "
22719 "version of the OS, the kernel version, what drivers are installed, whether "
22720 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
22721 "applications are installed and more."
22722 msgstr ""
22723
22724 # type: textblock
22725 #: ../inspector/virt-inspector.pl:55
22726 msgid ""
22727 "Virt-inspector can produce output in several formats, including a readable "
22728 "text report, and XML for feeding into other programs."
22729 msgstr ""
22730
22731 # type: textblock
22732 #: ../inspector/virt-inspector.pl:58
22733 msgid ""
22734 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
22735 "libvirt domain (see: C<virsh list --all>)."
22736 msgstr ""
22737
22738 # type: textblock
22739 #: ../inspector/virt-inspector.pl:61
22740 msgid ""
22741 "You can also run virt-inspector directly on disk images from a single "
22742 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
22743 "has several block devices, in which case you should list them one after "
22744 "another, with the first corresponding to the guest's C</dev/sda>, the second "
22745 "to the guest's C</dev/sdb> and so on."
22746 msgstr ""
22747
22748 # type: textblock
22749 #: ../inspector/virt-inspector.pl:67
22750 msgid ""
22751 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22752 "inspect several virtual machines, you have to run virt-inspector several "
22753 "times (for example, from a shell script for-loop)."
22754 msgstr ""
22755
22756 # type: textblock
22757 #: ../inspector/virt-inspector.pl:72
22758 msgid ""
22759 "Because virt-inspector needs direct access to guest images, it won't "
22760 "normally work over remote libvirt connections."
22761 msgstr ""
22762
22763 # type: textblock
22764 #: ../inspector/virt-inspector.pl:85 ../tools/virt-cat.pl:90
22765 #: ../tools/virt-df.pl:81 ../tools/virt-edit.pl:83
22766 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-list-partitions.pl:61
22767 #: ../tools/virt-ls.pl:89 ../tools/virt-make-fs.pl:163
22768 #: ../tools/virt-rescue.pl:113 ../tools/virt-tar.pl:109
22769 #: ../tools/virt-win-reg.pl:182
22770 msgid "Display brief help."
22771 msgstr ""
22772
22773 # type: =item
22774 #: ../inspector/virt-inspector.pl:91 ../tools/virt-cat.pl:96
22775 #: ../tools/virt-df.pl:87 ../tools/virt-edit.pl:89
22776 #: ../tools/virt-list-filesystems.pl:66 ../tools/virt-list-partitions.pl:67
22777 #: ../tools/virt-ls.pl:95 ../tools/virt-make-fs.pl:169
22778 #: ../tools/virt-rescue.pl:119 ../tools/virt-resize.pl:249
22779 #: ../tools/virt-tar.pl:115 ../tools/virt-win-reg.pl:188
22780 msgid "B<--version>"
22781 msgstr ""
22782
22783 # type: textblock
22784 #: ../inspector/virt-inspector.pl:93 ../tools/virt-cat.pl:98
22785 #: ../tools/virt-df.pl:89 ../tools/virt-edit.pl:91
22786 #: ../tools/virt-list-filesystems.pl:68 ../tools/virt-list-partitions.pl:69
22787 #: ../tools/virt-ls.pl:97 ../tools/virt-make-fs.pl:171
22788 #: ../tools/virt-rescue.pl:121 ../tools/virt-resize.pl:251
22789 #: ../tools/virt-tar.pl:117 ../tools/virt-win-reg.pl:190
22790 msgid "Display version number and exit."
22791 msgstr ""
22792
22793 # type: =item
22794 #: ../inspector/virt-inspector.pl:99 ../tools/virt-cat.pl:104
22795 #: ../tools/virt-df.pl:95 ../tools/virt-edit.pl:113
22796 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-list-partitions.pl:75
22797 #: ../tools/virt-ls.pl:103 ../tools/virt-rescue.pl:135
22798 #: ../tools/virt-tar.pl:123 ../tools/virt-win-reg.pl:204
22799 msgid "B<--connect URI> | B<-c URI>"
22800 msgstr ""
22801
22802 # type: textblock
22803 #: ../inspector/virt-inspector.pl:101 ../tools/virt-cat.pl:106
22804 #: ../tools/virt-df.pl:97 ../tools/virt-edit.pl:115
22805 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-list-partitions.pl:77
22806 #: ../tools/virt-ls.pl:105 ../tools/virt-rescue.pl:137
22807 #: ../tools/virt-tar.pl:125 ../tools/virt-win-reg.pl:206
22808 msgid ""
22809 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
22810 "to the default libvirt hypervisor."
22811 msgstr ""
22812
22813 # type: textblock
22814 #: ../inspector/virt-inspector.pl:104
22815 msgid ""
22816 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22817 "you specify guest block devices directly, then libvirt is not used at all."
22818 msgstr ""
22819
22820 # type: textblock
22821 #: ../inspector/virt-inspector.pl:114
22822 msgid ""
22823 "The following options select the output format.  Use only one of them.  The "
22824 "default is a readable text report."
22825 msgstr ""
22826
22827 # type: =item
22828 #: ../inspector/virt-inspector.pl:119
22829 msgid "B<--text> (default)"
22830 msgstr ""
22831
22832 # type: textblock
22833 #: ../inspector/virt-inspector.pl:121
22834 msgid "Plain text report."
22835 msgstr ""
22836
22837 # type: =item
22838 #: ../inspector/virt-inspector.pl:123
22839 msgid "B<--none>"
22840 msgstr ""
22841
22842 # type: textblock
22843 #: ../inspector/virt-inspector.pl:125
22844 msgid "Produce no output at all."
22845 msgstr ""
22846
22847 # type: =item
22848 #: ../inspector/virt-inspector.pl:127
22849 msgid "B<--xml>"
22850 msgstr ""
22851
22852 # type: textblock
22853 #: ../inspector/virt-inspector.pl:129
22854 msgid ""
22855 "If you select I<--xml> then you get XML output which can be fed to other "
22856 "programs."
22857 msgstr ""
22858
22859 # type: =item
22860 #: ../inspector/virt-inspector.pl:132
22861 msgid "B<--yaml>"
22862 msgstr ""
22863
22864 # type: textblock
22865 #: ../inspector/virt-inspector.pl:134
22866 msgid ""
22867 "If you select I<--yaml> then you get YAML output which can be fed to other "
22868 "programs."
22869 msgstr ""
22870
22871 # type: =item
22872 #: ../inspector/virt-inspector.pl:137
22873 msgid "B<--perl>"
22874 msgstr ""
22875
22876 # type: textblock
22877 #: ../inspector/virt-inspector.pl:139
22878 msgid ""
22879 "If you select I<--perl> then you get Perl structures output which can be "
22880 "used directly in another Perl program."
22881 msgstr ""
22882
22883 # type: =item
22884 #: ../inspector/virt-inspector.pl:142
22885 msgid "B<--fish>"
22886 msgstr ""
22887
22888 # type: =item
22889 #: ../inspector/virt-inspector.pl:144
22890 msgid "B<--ro-fish>"
22891 msgstr ""
22892
22893 # type: textblock
22894 #: ../inspector/virt-inspector.pl:146
22895 msgid ""
22896 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
22897 "will automatically mount up the filesystems on the correct mount points.  "
22898 "Try this for example:"
22899 msgstr ""
22900
22901 # type: verbatim
22902 #: ../inspector/virt-inspector.pl:150
22903 #, no-wrap
22904 msgid ""
22905 " guestfish $(virt-inspector --fish guest.img)\n"
22906 "\n"
22907 msgstr ""
22908
22909 # type: textblock
22910 #: ../inspector/virt-inspector.pl:152
22911 msgid ""
22912 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
22913 "that the filesystems are mounted read-only."
22914 msgstr ""
22915
22916 # type: =item
22917 #: ../inspector/virt-inspector.pl:155
22918 msgid "B<--query>"
22919 msgstr ""
22920
22921 # type: textblock
22922 #: ../inspector/virt-inspector.pl:157
22923 msgid ""
22924 "In \"query mode\" we answer common questions about the guest, such as "
22925 "whether it is fullvirt or needs a Xen hypervisor to run."
22926 msgstr ""
22927
22928 # type: textblock
22929 #: ../inspector/virt-inspector.pl:160
22930 msgid "See section I<QUERY MODE> below."
22931 msgstr ""
22932
22933 # type: =item
22934 #: ../inspector/virt-inspector.pl:166
22935 msgid "B<--windows-registry>"
22936 msgstr ""
22937
22938 # type: textblock
22939 #: ../inspector/virt-inspector.pl:168
22940 msgid ""
22941 "This flag is ignored for compatibility with earlier releases of the software."
22942 msgstr ""
22943
22944 # type: textblock
22945 #: ../inspector/virt-inspector.pl:171
22946 msgid ""
22947 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
22948 "information out of the Registry for any Windows guest."
22949 msgstr ""
22950
22951 # type: =head1
22952 #: ../inspector/virt-inspector.pl:218
22953 msgid "OUTPUT FORMAT"
22954 msgstr ""
22955
22956 # type: verbatim
22957 #: ../inspector/virt-inspector.pl:220
22958 #, no-wrap
22959 msgid ""
22960 " Operating system(s)\n"
22961 " -------------------\n"
22962 " Linux (distro + version)\n"
22963 " Windows (version)\n"
22964 "    |\n"
22965 "    |\n"
22966 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
22967 "         -----------            --------------     ----------------\n"
22968 "         mount point => device  List of apps       Extra information\n"
22969 "         mount point => device  and versions       about kernel(s)\n"
22970 "              ...                                  and drivers\n"
22971 "         swap => swap device\n"
22972 "         (plus lots of extra information\n"
22973 "         about each filesystem)\n"
22974 "\n"
22975 msgstr ""
22976
22977 # type: textblock
22978 #: ../inspector/virt-inspector.pl:235
22979 msgid "The output of virt-inspector is a complex two-level data structure."
22980 msgstr ""
22981
22982 # type: textblock
22983 #: ../inspector/virt-inspector.pl:237
22984 msgid ""
22985 "At the top level is a list of the operating systems installed on the guest.  "
22986 "(For the vast majority of guests, only a single OS is installed.)  The data "
22987 "returned for the OS includes the name (Linux, Windows), the distribution and "
22988 "version."
22989 msgstr ""
22990
22991 # type: textblock
22992 #: ../inspector/virt-inspector.pl:242
22993 msgid "The diagram above shows what we return for each OS."
22994 msgstr ""
22995
22996 # type: textblock
22997 #: ../inspector/virt-inspector.pl:244
22998 msgid ""
22999 "With the I<--xml> option the output is mapped into an XML document.  There "
23000 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23001 "normally ships with virt-inspector, or can be found in the source."
23002 msgstr ""
23003
23004 # type: textblock
23005 #: ../inspector/virt-inspector.pl:249
23006 msgid ""
23007 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23008 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23009 "and inspect the guest with everything mounted in the right place.  For "
23010 "example:"
23011 msgstr ""
23012
23013 # type: verbatim
23014 #: ../inspector/virt-inspector.pl:254
23015 #, no-wrap
23016 msgid ""
23017 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23018 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23019 "\n"
23020 msgstr ""
23021
23022 # type: =head1
23023 #: ../inspector/virt-inspector.pl:589
23024 msgid "QUERY MODE"
23025 msgstr ""
23026
23027 # type: textblock
23028 #: ../inspector/virt-inspector.pl:591
23029 msgid ""
23030 "When you use C<virt-inspector --query>, the output is a series of lines of "
23031 "the form:"
23032 msgstr ""
23033
23034 # type: verbatim
23035 #: ../inspector/virt-inspector.pl:594
23036 #, no-wrap
23037 msgid ""
23038 " windows=no\n"
23039 " linux=yes\n"
23040 " fullvirt=yes\n"
23041 " xen_pv_drivers=no\n"
23042 "\n"
23043 msgstr ""
23044
23045 # type: textblock
23046 #: ../inspector/virt-inspector.pl:599
23047 msgid ""
23048 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23049 "if we could not determine the answer at all)."
23050 msgstr ""
23051
23052 # type: textblock
23053 #: ../inspector/virt-inspector.pl:602
23054 msgid ""
23055 "If the guest is multiboot, you can get apparently conflicting answers (eg. "
23056 "C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and has a "
23057 "Xen PV kernel).  This is normal, and just means that the guest can do both "
23058 "things, although it might require operator intervention such as selecting a "
23059 "boot option when the guest is booting."
23060 msgstr ""
23061
23062 # type: textblock
23063 #: ../inspector/virt-inspector.pl:609
23064 msgid "This section describes the full range of answers possible."
23065 msgstr ""
23066
23067 # type: =item
23068 #: ../inspector/virt-inspector.pl:630
23069 msgid "windows=(yes|no)"
23070 msgstr ""
23071
23072 # type: textblock
23073 #: ../inspector/virt-inspector.pl:632
23074 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23075 msgstr ""
23076
23077 # type: =item
23078 #: ../inspector/virt-inspector.pl:645
23079 msgid "linux=(yes|no)"
23080 msgstr ""
23081
23082 # type: textblock
23083 #: ../inspector/virt-inspector.pl:647
23084 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23085 msgstr ""
23086
23087 # type: =item
23088 #: ../inspector/virt-inspector.pl:660
23089 msgid "rhel=(yes|no)"
23090 msgstr ""
23091
23092 # type: textblock
23093 #: ../inspector/virt-inspector.pl:662
23094 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23095 msgstr ""
23096
23097 # type: =item
23098 #: ../inspector/virt-inspector.pl:676
23099 msgid "fedora=(yes|no)"
23100 msgstr ""
23101
23102 # type: textblock
23103 #: ../inspector/virt-inspector.pl:678
23104 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23105 msgstr ""
23106
23107 # type: =item
23108 #: ../inspector/virt-inspector.pl:691
23109 msgid "debian=(yes|no)"
23110 msgstr ""
23111
23112 # type: textblock
23113 #: ../inspector/virt-inspector.pl:693
23114 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23115 msgstr ""
23116
23117 # type: =item
23118 #: ../inspector/virt-inspector.pl:706
23119 msgid "fullvirt=(yes|no)"
23120 msgstr ""
23121
23122 # type: textblock
23123 #: ../inspector/virt-inspector.pl:708
23124 msgid ""
23125 "Answer C<yes> if there is at least one operating system kernel installed in "
23126 "the guest which runs fully virtualized.  Such a guest would require a "
23127 "hypervisor which supports full system virtualization."
23128 msgstr ""
23129
23130 # type: =item
23131 #: ../inspector/virt-inspector.pl:731
23132 msgid "xen_domU_kernel=(yes|no)"
23133 msgstr ""
23134
23135 # type: textblock
23136 #: ../inspector/virt-inspector.pl:733
23137 msgid ""
23138 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23139 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23140 msgstr ""
23141
23142 # type: =item
23143 #: ../inspector/virt-inspector.pl:753
23144 msgid "xen_pv_drivers=(yes|no)"
23145 msgstr ""
23146
23147 # type: textblock
23148 #: ../inspector/virt-inspector.pl:755
23149 msgid ""
23150 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23151 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23152 "have been installed by the administrator for performance reasons)."
23153 msgstr ""
23154
23155 # type: =item
23156 #: ../inspector/virt-inspector.pl:777
23157 msgid "virtio_drivers=(yes|no)"
23158 msgstr ""
23159
23160 # type: textblock
23161 #: ../inspector/virt-inspector.pl:779
23162 msgid ""
23163 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23164 "Virtio drivers are commonly used to improve the performance of KVM."
23165 msgstr ""
23166
23167 # type: =item
23168 #: ../inspector/virt-inspector.pl:800
23169 msgid "userspace_arch=(x86_64|...)"
23170 msgstr ""
23171
23172 # type: textblock
23173 #: ../inspector/virt-inspector.pl:802
23174 msgid "Print the architecture of userspace."
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../inspector/virt-inspector.pl:804 ../inspector/virt-inspector.pl:825
23179 msgid "NB. For multi-boot VMs this can print several lines."
23180 msgstr ""
23181
23182 # type: =item
23183 #: ../inspector/virt-inspector.pl:821
23184 msgid "kernel_arch=(x86_64|...)"
23185 msgstr ""
23186
23187 # type: textblock
23188 #: ../inspector/virt-inspector.pl:823
23189 msgid "Print the architecture of the kernel."
23190 msgstr ""
23191
23192 # type: textblock
23193 #: ../inspector/virt-inspector.pl:848 ../tools/virt-df.pl:484
23194 msgid ""
23195 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
23196 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23197 msgstr ""
23198
23199 # type: textblock
23200 #: ../inspector/virt-inspector.pl:857 ../tools/virt-cat.pl:175
23201 #: ../tools/virt-df.pl:493 ../tools/virt-edit.pl:339
23202 #: ../tools/virt-list-filesystems.pl:205 ../tools/virt-list-partitions.pl:242
23203 #: ../tools/virt-ls.pl:223 ../tools/virt-make-fs.pl:554
23204 #: ../tools/virt-rescue.pl:243 ../tools/virt-resize.pl:1409
23205 #: ../tools/virt-tar.pl:270 ../tools/virt-win-reg.pl:489
23206 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
23207 msgstr ""
23208
23209 # type: textblock
23210 #: ../inspector/virt-inspector.pl:859
23211 msgid "Matthew Booth L<mbooth@redhat.com>"
23212 msgstr ""
23213
23214 # type: textblock
23215 #: ../inspector/virt-inspector.pl:863 ../tools/virt-cat.pl:179
23216 #: ../tools/virt-list-filesystems.pl:209 ../tools/virt-ls.pl:227
23217 #: ../tools/virt-tar.pl:274
23218 msgid "Copyright (C) 2009 Red Hat Inc."
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../tools/virt-cat.pl:34
23223 msgid "virt-cat - Display a file in a virtual machine"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../tools/virt-cat.pl:38
23228 #, no-wrap
23229 msgid ""
23230 " virt-cat [--options] domname file\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: verbatim
23235 #: ../tools/virt-cat.pl:40
23236 #, no-wrap
23237 msgid ""
23238 " virt-cat [--options] disk.img [disk.img ...] file\n"
23239 "\n"
23240 msgstr ""
23241
23242 # type: textblock
23243 #: ../tools/virt-cat.pl:44
23244 msgid ""
23245 "C<virt-cat> is a command line tool to display the contents of C<file> where "
23246 "C<file> exists in the named virtual machine (or disk image)."
23247 msgstr ""
23248
23249 # type: textblock
23250 #: ../tools/virt-cat.pl:47
23251 msgid ""
23252 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
23253 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
23254 "tool."
23255 msgstr ""
23256
23257 # type: textblock
23258 #: ../tools/virt-cat.pl:53
23259 msgid ""
23260 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../tools/virt-cat.pl:56
23265 #, no-wrap
23266 msgid ""
23267 " virt-cat mydomain /etc/fstab\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: textblock
23272 #: ../tools/virt-cat.pl:58
23273 msgid "List syslog messages from a VM:"
23274 msgstr ""
23275
23276 # type: verbatim
23277 #: ../tools/virt-cat.pl:60
23278 #, no-wrap
23279 msgid ""
23280 " virt-cat mydomain /var/log/messages | tail\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: textblock
23285 #: ../tools/virt-cat.pl:62
23286 msgid "Find out what DHCP IP address a VM acquired:"
23287 msgstr ""
23288
23289 # type: verbatim
23290 #: ../tools/virt-cat.pl:64
23291 #, no-wrap
23292 msgid ""
23293 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
23294 "\n"
23295 msgstr ""
23296
23297 # type: textblock
23298 #: ../tools/virt-cat.pl:66
23299 msgid "Find out what packages were recently installed:"
23300 msgstr ""
23301
23302 # type: verbatim
23303 #: ../tools/virt-cat.pl:68
23304 #, no-wrap
23305 msgid ""
23306 " virt-cat mydomain /var/log/yum.log | tail\n"
23307 "\n"
23308 msgstr ""
23309
23310 # type: textblock
23311 #: ../tools/virt-cat.pl:70
23312 msgid "Find out who is logged on inside a virtual machine:"
23313 msgstr ""
23314
23315 # type: verbatim
23316 #: ../tools/virt-cat.pl:72
23317 #, no-wrap
23318 msgid ""
23319 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
23320 " who /tmp/utmp\n"
23321 "\n"
23322 msgstr ""
23323
23324 # type: textblock
23325 #: ../tools/virt-cat.pl:75
23326 msgid "or who was logged on:"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #: ../tools/virt-cat.pl:77
23331 #, no-wrap
23332 msgid ""
23333 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
23334 " last -f /tmp/wtmp\n"
23335 "\n"
23336 msgstr ""
23337
23338 # type: textblock
23339 #: ../tools/virt-cat.pl:109 ../tools/virt-df.pl:100 ../tools/virt-edit.pl:118
23340 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
23341 #: ../tools/virt-ls.pl:108 ../tools/virt-rescue.pl:140
23342 #: ../tools/virt-tar.pl:128 ../tools/virt-win-reg.pl:209
23343 msgid ""
23344 "If you specify guest block devices directly, then libvirt is not used at all."
23345 msgstr ""
23346
23347 # type: textblock
23348 #: ../tools/virt-cat.pl:165
23349 msgid ""
23350 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
23351 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23352 msgstr ""
23353
23354 # type: =head1
23355 #: ../tools/virt-cat.pl:173 ../tools/virt-df.pl:491 ../tools/virt-edit.pl:337
23356 #: ../tools/virt-list-filesystems.pl:203 ../tools/virt-list-partitions.pl:240
23357 #: ../tools/virt-ls.pl:221 ../tools/virt-make-fs.pl:552
23358 #: ../tools/virt-rescue.pl:241 ../tools/virt-resize.pl:1407
23359 #: ../tools/virt-tar.pl:268 ../tools/virt-win-reg.pl:487
23360 msgid "AUTHOR"
23361 msgstr ""
23362
23363 # type: textblock
23364 #: ../tools/virt-df.pl:36
23365 msgid "virt-df - Display free space on virtual filesystems"
23366 msgstr ""
23367
23368 # type: verbatim
23369 #: ../tools/virt-df.pl:40
23370 #, no-wrap
23371 msgid ""
23372 " virt-df [--options]\n"
23373 "\n"
23374 msgstr ""
23375
23376 # type: verbatim
23377 #: ../tools/virt-df.pl:42
23378 #, no-wrap
23379 msgid ""
23380 " virt-df [--options] domname\n"
23381 "\n"
23382 msgstr ""
23383
23384 # type: verbatim
23385 #: ../tools/virt-df.pl:44
23386 #, no-wrap
23387 msgid ""
23388 " virt-df [--options] disk.img [disk.img ...]\n"
23389 "\n"
23390 msgstr ""
23391
23392 # type: textblock
23393 #: ../tools/virt-df.pl:48
23394 msgid ""
23395 "C<virt-df> is a command line tool to display free space on virtual machine "
23396 "filesystems.  Unlike other tools, it doesn't just display the amount of "
23397 "space allocated to a virtual machine, but can look inside the virtual "
23398 "machine to see how much space is really being used."
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../tools/virt-df.pl:53
23403 msgid ""
23404 "It is like the L<df(1)> command, but for virtual machines, except that it "
23405 "also works for Windows virtual machines."
23406 msgstr ""
23407
23408 # type: textblock
23409 #: ../tools/virt-df.pl:56
23410 msgid ""
23411 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
23412 "of all active and inactive guests, and performs a C<df>-type operation on "
23413 "each one in turn, printing out the results."
23414 msgstr ""
23415
23416 # type: textblock
23417 #: ../tools/virt-df.pl:60
23418 msgid ""
23419 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
23420 "either the single named libvirt domain, or on the disk image(s) listed on "
23421 "the command line (which must all belong to a single VM).  In this mode (with "
23422 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
23423 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
23424 msgstr ""
23425
23426 # type: textblock
23427 #: ../tools/virt-df.pl:67
23428 msgid ""
23429 "Use the C<--csv> option to get a format which can be easily parsed by other "
23430 "programs.  Other options are mostly similar to standard C<df> options.  See "
23431 "below for the complete list."
23432 msgstr ""
23433
23434 # type: =item
23435 #: ../tools/virt-df.pl:107
23436 msgid "B<--csv>"
23437 msgstr ""
23438
23439 # type: textblock
23440 #: ../tools/virt-df.pl:109
23441 msgid ""
23442 "Write out the results in CSV format (comma-separated values).  This format "
23443 "can be imported easily into databases and spreadsheets, but read L</NOTE "
23444 "ABOUT CSV FORMAT> below."
23445 msgstr ""
23446
23447 # type: =item
23448 #: ../tools/virt-df.pl:117
23449 msgid "B<--human-readable> | B<-h>"
23450 msgstr ""
23451
23452 # type: textblock
23453 #: ../tools/virt-df.pl:119
23454 msgid "Print sizes in human-readable format."
23455 msgstr ""
23456
23457 # type: textblock
23458 #: ../tools/virt-df.pl:121
23459 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
23460 msgstr ""
23461
23462 # type: =item
23463 #: ../tools/virt-df.pl:127
23464 msgid "B<--inodes> | B<-i>"
23465 msgstr ""
23466
23467 # type: textblock
23468 #: ../tools/virt-df.pl:129
23469 msgid "Print inodes instead of blocks."
23470 msgstr ""
23471
23472 # type: =head1
23473 #: ../tools/virt-df.pl:458
23474 msgid "NOTE ABOUT CSV FORMAT"
23475 msgstr ""
23476
23477 # type: textblock
23478 #: ../tools/virt-df.pl:460
23479 msgid ""
23480 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
23481 "should be easy to parse, but it is definitely not easy to parse."
23482 msgstr ""
23483
23484 # type: textblock
23485 #: ../tools/virt-df.pl:463
23486 msgid ""
23487 "Myth: Just split fields at commas.  Reality: This does I<not> work "
23488 "reliably.  This example has two columns:"
23489 msgstr ""
23490
23491 # type: verbatim
23492 #: ../tools/virt-df.pl:466
23493 #, no-wrap
23494 msgid ""
23495 " \"foo,bar\",baz\n"
23496 "\n"
23497 msgstr ""
23498
23499 # type: textblock
23500 #: ../tools/virt-df.pl:468
23501 msgid ""
23502 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
23503 "reliably.  This example has one row:"
23504 msgstr ""
23505
23506 # type: verbatim
23507 #: ../tools/virt-df.pl:471
23508 #, no-wrap
23509 msgid ""
23510 " \"foo\n"
23511 " bar\",baz\n"
23512 "\n"
23513 msgstr ""
23514
23515 # type: textblock
23516 #: ../tools/virt-df.pl:474
23517 msgid ""
23518 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
23519 "packaged in major Linux distributions)."
23520 msgstr ""
23521
23522 # type: textblock
23523 #: ../tools/virt-df.pl:477
23524 msgid ""
23525 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
23526 "or Python's built-in csv library)."
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../tools/virt-df.pl:480
23531 msgid "Most spreadsheets and databases can import CSV directly."
23532 msgstr ""
23533
23534 # type: textblock
23535 #: ../tools/virt-df.pl:497 ../tools/virt-edit.pl:343
23536 #: ../tools/virt-list-partitions.pl:246 ../tools/virt-rescue.pl:247
23537 msgid "Copyright (C) 2009-2010 Red Hat Inc."
23538 msgstr ""
23539
23540 # type: textblock
23541 #: ../tools/virt-edit.pl:35
23542 msgid "virt-edit - Edit a file in a virtual machine"
23543 msgstr ""
23544
23545 # type: verbatim
23546 #: ../tools/virt-edit.pl:39
23547 #, no-wrap
23548 msgid ""
23549 " virt-edit [--options] domname file\n"
23550 "\n"
23551 msgstr ""
23552
23553 # type: verbatim
23554 #: ../tools/virt-edit.pl:41
23555 #, no-wrap
23556 msgid ""
23557 " virt-edit [--options] disk.img [disk.img ...] file\n"
23558 "\n"
23559 msgstr ""
23560
23561 # type: verbatim
23562 #: ../tools/virt-edit.pl:43
23563 #, no-wrap
23564 msgid ""
23565 " virt-edit [domname|disk.img] file -e 'expr'\n"
23566 "\n"
23567 msgstr ""
23568
23569 # type: textblock
23570 #: ../tools/virt-edit.pl:47
23571 msgid ""
23572 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
23573 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
23574 "doing this, but doesn't catch all cases."
23575 msgstr ""
23576
23577 # type: textblock
23578 #: ../tools/virt-edit.pl:53
23579 msgid ""
23580 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
23581 "the named virtual machine (or disk image)."
23582 msgstr ""
23583
23584 # type: textblock
23585 #: ../tools/virt-edit.pl:56
23586 msgid ""
23587 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
23588 "you should look at the L<guestfish(1)> tool."
23589 msgstr ""
23590
23591 # type: textblock
23592 #: ../tools/virt-edit.pl:61
23593 msgid "Edit the named files interactively:"
23594 msgstr ""
23595
23596 # type: verbatim
23597 #: ../tools/virt-edit.pl:63
23598 #, no-wrap
23599 msgid ""
23600 " virt-edit mydomain /boot/grub/grub.conf\n"
23601 "\n"
23602 msgstr ""
23603
23604 # type: verbatim
23605 #: ../tools/virt-edit.pl:65
23606 #, no-wrap
23607 msgid ""
23608 " virt-edit mydomain /etc/passwd\n"
23609 "\n"
23610 msgstr ""
23611
23612 # type: textblock
23613 #: ../tools/virt-edit.pl:67
23614 msgid ""
23615 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
23616 "below).  To change the init default level to 5:"
23617 msgstr ""
23618
23619 # type: verbatim
23620 #: ../tools/virt-edit.pl:71
23621 #, no-wrap
23622 msgid ""
23623 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
23624 "\n"
23625 msgstr ""
23626
23627 # type: =item
23628 #: ../tools/virt-edit.pl:97
23629 msgid "B<--backup extension> | B<-b extension>"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../tools/virt-edit.pl:99
23634 msgid ""
23635 "Create a backup of the original file I<in the guest disk image>.  The backup "
23636 "has the original filename with C<extension> added."
23637 msgstr ""
23638
23639 # type: textblock
23640 #: ../tools/virt-edit.pl:102
23641 msgid ""
23642 "Usually the first character of C<extension> would be a dot C<.> so you would "
23643 "write:"
23644 msgstr ""
23645
23646 # type: verbatim
23647 #: ../tools/virt-edit.pl:105
23648 #, no-wrap
23649 msgid ""
23650 " virt-edit -b .orig [etc]\n"
23651 "\n"
23652 msgstr ""
23653
23654 # type: textblock
23655 #: ../tools/virt-edit.pl:107
23656 msgid "By default, no backup file is made."
23657 msgstr ""
23658
23659 # type: =item
23660 #: ../tools/virt-edit.pl:125
23661 msgid "B<--expr EXPR> | B<-e EXPR>"
23662 msgstr ""
23663
23664 # type: textblock
23665 #: ../tools/virt-edit.pl:127
23666 msgid ""
23667 "Instead of launching the external editor, non-interactively apply the Perl "
23668 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
23669 "EDITING> below."
23670 msgstr ""
23671
23672 # type: textblock
23673 #: ../tools/virt-edit.pl:131
23674 msgid ""
23675 "Be careful to properly quote the expression to prevent it from being altered "
23676 "by the shell."
23677 msgstr ""
23678
23679 # type: =head1
23680 #: ../tools/virt-edit.pl:250
23681 msgid "NON-INTERACTIVE EDITING"
23682 msgstr ""
23683
23684 # type: textblock
23685 #: ../tools/virt-edit.pl:252
23686 msgid ""
23687 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
23688 "administrator can interactively edit the file."
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../tools/virt-edit.pl:255
23693 msgid ""
23694 "There are two ways also to use C<virt-edit> from scripts in order to make "
23695 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
23696 "like this, it's less error-prone to write scripts directly using the "
23697 "libguestfs API and Augeas for configuration file editing.)"
23698 msgstr ""
23699
23700 # type: textblock
23701 #: ../tools/virt-edit.pl:261
23702 msgid ""
23703 "The first method is to temporarily set C<$EDITOR> to any script or program "
23704 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
23705 "update C<tmpfile> in place however it likes."
23706 msgstr ""
23707
23708 # type: textblock
23709 #: ../tools/virt-edit.pl:265
23710 msgid ""
23711 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
23712 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
23713 "instances of C<foo> with C<bar> in a file:"
23714 msgstr ""
23715
23716 # type: verbatim
23717 #: ../tools/virt-edit.pl:269
23718 #, no-wrap
23719 msgid ""
23720 " virt-edit domname filename -e 's/foo/bar/'\n"
23721 "\n"
23722 msgstr ""
23723
23724 # type: textblock
23725 #: ../tools/virt-edit.pl:271
23726 msgid ""
23727 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
23728 "For example to delete root's password you could do:"
23729 msgstr ""
23730
23731 # type: verbatim
23732 #: ../tools/virt-edit.pl:274
23733 #, no-wrap
23734 msgid ""
23735 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
23736 "\n"
23737 msgstr ""
23738
23739 # type: textblock
23740 #: ../tools/virt-edit.pl:276
23741 msgid ""
23742 "What really happens is that the snippet is evaluated as a Perl expression "
23743 "for each line of the file.  The line, including the final C<\\n>, is passed "
23744 "in C<$_> and the expression should update C<$_> or leave it unchanged."
23745 msgstr ""
23746
23747 # type: textblock
23748 #: ../tools/virt-edit.pl:281
23749 msgid ""
23750 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
23751 "C<apache> user account from the password file you can do:"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #: ../tools/virt-edit.pl:284
23756 #, no-wrap
23757 msgid ""
23758 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
23759 "\n"
23760 msgstr ""
23761
23762 # type: textblock
23763 #: ../tools/virt-edit.pl:286
23764 msgid ""
23765 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
23766 "the end of the file is rather difficult this way since there is no concept "
23767 "of \"last line of the file\" - your expression just doesn't get called "
23768 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
23769 "want to do this."
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../tools/virt-edit.pl:292
23774 msgid ""
23775 "The variable C<$lineno> contains the current line number.  As is "
23776 "traditional, the first line in the file is number C<1>."
23777 msgstr ""
23778
23779 # type: textblock
23780 #: ../tools/virt-edit.pl:295
23781 msgid ""
23782 "The return value from the expression is ignored, but the expression may call "
23783 "C<die> in order to abort the whole program, leaving the original file "
23784 "untouched."
23785 msgstr ""
23786
23787 # type: textblock
23788 #: ../tools/virt-edit.pl:299
23789 msgid ""
23790 "Remember when matching the end of a line that C<$_> may contain the final C<"
23791 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
23792 "newline then neither of these.  Thus to match or substitute some text at the "
23793 "end of a line, use this regular expression:"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #: ../tools/virt-edit.pl:304
23798 #, no-wrap
23799 msgid ""
23800 " /some text(\\r?\\n)?$/\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: textblock
23805 #: ../tools/virt-edit.pl:306
23806 msgid ""
23807 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
23808 "$_> itself (since that would remove all newlines from the file):"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../tools/virt-edit.pl:310
23813 #, no-wrap
23814 msgid ""
23815 " my $m = $_; chomp $m; $m =~ /some text$/\n"
23816 "\n"
23817 msgstr ""
23818
23819 # type: =item
23820 #: ../tools/virt-edit.pl:316
23821 msgid "C<EDITOR>"
23822 msgstr ""
23823
23824 # type: textblock
23825 #: ../tools/virt-edit.pl:318
23826 msgid ""
23827 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
23828 "\"emacs -nw\">"
23829 msgstr ""
23830
23831 # type: textblock
23832 #: ../tools/virt-edit.pl:321
23833 msgid "If not set, C<vi> is used."
23834 msgstr ""
23835
23836 # type: textblock
23837 #: ../tools/virt-edit.pl:327
23838 msgid ""
23839 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
23840 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
23841 "L<perlre(1)>."
23842 msgstr ""
23843
23844 # type: textblock
23845 #: ../tools/virt-list-filesystems.pl:32
23846 msgid ""
23847 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
23848 msgstr ""
23849
23850 # type: verbatim
23851 #: ../tools/virt-list-filesystems.pl:36
23852 #, no-wrap
23853 msgid ""
23854 " virt-list-filesystems [--options] domname\n"
23855 "\n"
23856 msgstr ""
23857
23858 # type: verbatim
23859 #: ../tools/virt-list-filesystems.pl:38
23860 #, no-wrap
23861 msgid ""
23862 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
23863 "\n"
23864 msgstr ""
23865
23866 # type: textblock
23867 #: ../tools/virt-list-filesystems.pl:42
23868 msgid ""
23869 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
23870 "are contained in a virtual machine or disk image."
23871 msgstr ""
23872
23873 # type: textblock
23874 #: ../tools/virt-list-filesystems.pl:46
23875 msgid ""
23876 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
23877 "functionality.  For more complex cases you should look at the L<guestfish(1)"
23878 "> tool."
23879 msgstr ""
23880
23881 # type: =item
23882 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-list-partitions.pl:95
23883 #: ../tools/virt-ls.pl:115
23884 msgid "B<-l> | B<--long>"
23885 msgstr ""
23886
23887 # type: textblock
23888 #: ../tools/virt-list-filesystems.pl:88
23889 msgid ""
23890 "With this option, C<virt-list-filesystems> displays the type of each "
23891 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
23892 msgstr ""
23893
23894 # type: =item
23895 #: ../tools/virt-list-filesystems.pl:95
23896 msgid "B<-a> | B<--all>"
23897 msgstr ""
23898
23899 # type: textblock
23900 #: ../tools/virt-list-filesystems.pl:97
23901 msgid ""
23902 "Normally we only show mountable filesystems.  If this option is given then "
23903 "swap devices are shown too."
23904 msgstr ""
23905
23906 # type: textblock
23907 #: ../tools/virt-list-filesystems.pl:193
23908 msgid ""
23909 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
23910 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
23911 ">, L<http://libguestfs.org/>."
23912 msgstr ""
23913
23914 # type: textblock
23915 #: ../tools/virt-list-partitions.pl:32
23916 msgid ""
23917 "virt-list-partitions - List partitions in a virtual machine or disk image"
23918 msgstr ""
23919
23920 # type: verbatim
23921 #: ../tools/virt-list-partitions.pl:36
23922 #, no-wrap
23923 msgid ""
23924 " virt-list-partitions [--options] domname\n"
23925 "\n"
23926 msgstr ""
23927
23928 # type: verbatim
23929 #: ../tools/virt-list-partitions.pl:38
23930 #, no-wrap
23931 msgid ""
23932 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23933 "\n"
23934 msgstr ""
23935
23936 # type: textblock
23937 #: ../tools/virt-list-partitions.pl:42
23938 msgid ""
23939 "C<virt-list-partitions> is a command line tool to list the partitions that "
23940 "are contained in a virtual machine or disk image.  It is mainly useful as a "
23941 "first step to using L<virt-resize(1)>."
23942 msgstr ""
23943
23944 # type: textblock
23945 #: ../tools/virt-list-partitions.pl:47
23946 msgid ""
23947 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
23948 "functionality.  For more complex cases you should look at the L<guestfish(1)"
23949 "> tool."
23950 msgstr ""
23951
23952 # type: =item
23953 #: ../tools/virt-list-partitions.pl:87
23954 msgid "B<-h> | B<--human-readable>"
23955 msgstr ""
23956
23957 # type: textblock
23958 #: ../tools/virt-list-partitions.pl:89
23959 msgid "Show sizes in human-readable form (eg. \"1G\")."
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../tools/virt-list-partitions.pl:97
23964 msgid ""
23965 "With this option, C<virt-list-partitions> displays the type and size of each "
23966 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
23967 msgstr ""
23968
23969 # type: =item
23970 #: ../tools/virt-list-partitions.pl:104
23971 msgid "B<-t> | B<--total>"
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../tools/virt-list-partitions.pl:106
23976 msgid ""
23977 "Display the total size of each block device (as a separate row or rows)."
23978 msgstr ""
23979
23980 # type: textblock
23981 #: ../tools/virt-list-partitions.pl:231
23982 msgid ""
23983 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
23984 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
23985 "libguestfs.org/>."
23986 msgstr ""
23987
23988 # type: textblock
23989 #: ../tools/virt-ls.pl:35
23990 msgid "virt-ls - List files in a virtual machine"
23991 msgstr ""
23992
23993 # type: verbatim
23994 #: ../tools/virt-ls.pl:39
23995 #, no-wrap
23996 msgid ""
23997 " virt-ls [--options] domname directory\n"
23998 "\n"
23999 msgstr ""
24000
24001 # type: verbatim
24002 #: ../tools/virt-ls.pl:41
24003 #, no-wrap
24004 msgid ""
24005 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24006 "\n"
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../tools/virt-ls.pl:45
24011 msgid ""
24012 "C<virt-ls> is a command line tool to list the names of files in a directory "
24013 "inside a virtual machine or disk image."
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../tools/virt-ls.pl:48
24018 msgid ""
24019 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24020 "For more complex cases you should look at the L<guestfish(1)> tool."
24021 msgstr ""
24022
24023 # type: textblock
24024 #: ../tools/virt-ls.pl:52
24025 msgid ""
24026 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24027 "simple listing is like the ordinary L<ls(1)> command:"
24028 msgstr ""
24029
24030 # type: verbatim
24031 #: ../tools/virt-ls.pl:55
24032 #, no-wrap
24033 msgid ""
24034 " $ virt-ls myguest /\n"
24035 " bin\n"
24036 " boot\n"
24037 " [etc.]\n"
24038 "\n"
24039 msgstr ""
24040
24041 # type: textblock
24042 #: ../tools/virt-ls.pl:60
24043 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../tools/virt-ls.pl:62
24048 #, no-wrap
24049 msgid ""
24050 " $ virt-ls -l myguest /\n"
24051 " total 204\n"
24052 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
24053 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
24054 " [etc.]\n"
24055 "\n"
24056 msgstr ""
24057
24058 # type: textblock
24059 #: ../tools/virt-ls.pl:68
24060 msgid ""
24061 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
24062 "and directories recursively:"
24063 msgstr ""
24064
24065 # type: verbatim
24066 #: ../tools/virt-ls.pl:71
24067 #, no-wrap
24068 msgid ""
24069 " $ virt-ls -R myguest /tmp\n"
24070 " foo\n"
24071 " foo/bar\n"
24072 " [etc.]\n"
24073 "\n"
24074 msgstr ""
24075
24076 # type: textblock
24077 #: ../tools/virt-ls.pl:76
24078 msgid ""
24079 "You I<cannot> combine these options.  To do more complicated things, use "
24080 "L<guestfish(1)>."
24081 msgstr ""
24082
24083 # type: =item
24084 #: ../tools/virt-ls.pl:117
24085 msgid "B<-R> | B<--recursive>"
24086 msgstr ""
24087
24088 # type: textblock
24089 #: ../tools/virt-ls.pl:119
24090 msgid ""
24091 "Select the mode.  With neither of these options, C<virt-ls> produces a "
24092 "simple, flat list of the files in the named directory."
24093 msgstr ""
24094
24095 # type: textblock
24096 #: ../tools/virt-ls.pl:122
24097 msgid ""
24098 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
24099 "like the plain C<ls -l> command)."
24100 msgstr ""
24101
24102 # type: textblock
24103 #: ../tools/virt-ls.pl:125
24104 msgid ""
24105 "C<virt-ls -R> produces a recursive list of files starting at the named "
24106 "directory.  See the documentation for the C<guestfs_find> command L<guestfs"
24107 "(3)> for precise details."
24108 msgstr ""
24109
24110 # type: textblock
24111 #: ../tools/virt-ls.pl:129
24112 msgid "You cannot combine these options."
24113 msgstr ""
24114
24115 # type: textblock
24116 #: ../tools/virt-ls.pl:212
24117 msgid ""
24118 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
24119 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
24120 "org/>."
24121 msgstr ""
24122
24123 # type: textblock
24124 #: ../tools/virt-make-fs.pl:37
24125 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
24126 msgstr ""
24127
24128 # type: verbatim
24129 #: ../tools/virt-make-fs.pl:41
24130 #, no-wrap
24131 msgid ""
24132 " virt-make-fs [--options] input.tar output.img\n"
24133 "\n"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #: ../tools/virt-make-fs.pl:43
24138 #, no-wrap
24139 msgid ""
24140 " virt-make-fs [--options] input.tar.gz output.img\n"
24141 "\n"
24142 msgstr ""
24143
24144 # type: verbatim
24145 #: ../tools/virt-make-fs.pl:45
24146 #, no-wrap
24147 msgid ""
24148 " virt-make-fs [--options] directory output.img\n"
24149 "\n"
24150 msgstr ""
24151
24152 # type: textblock
24153 #: ../tools/virt-make-fs.pl:49
24154 msgid ""
24155 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
24156 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
24157 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
24158 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
24159 "you want to attach these filesystems to existing virtual machines (eg. to "
24160 "import large amounts of read-only data to a VM)."
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../tools/virt-make-fs.pl:57
24165 msgid "Basic usage is:"
24166 msgstr ""
24167
24168 # type: verbatim
24169 #: ../tools/virt-make-fs.pl:59
24170 #, no-wrap
24171 msgid ""
24172 " virt-make-fs input output\n"
24173 "\n"
24174 msgstr ""
24175
24176 # type: textblock
24177 #: ../tools/virt-make-fs.pl:61
24178 msgid ""
24179 "where C<input> is either a directory containing files that you want to add, "
24180 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
24181 "C<output> is a disk image.  The input type is detected automatically.  The "
24182 "output disk image defaults to a raw ext2 image unless you specify extra "
24183 "flags (see L</OPTIONS> below)."
24184 msgstr ""
24185
24186 # type: =head2
24187 #: ../tools/virt-make-fs.pl:67
24188 msgid "EXTRA SPACE"
24189 msgstr ""
24190
24191 # type: textblock
24192 #: ../tools/virt-make-fs.pl:69
24193 msgid ""
24194 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
24195 "the files that it contains, but might have extra space.  Depending on how "
24196 "you are going to use the output, you might think this extra space is wasted "
24197 "and want to minimize it, or you might want to leave space so that more files "
24198 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
24199 "but you can use the C<--size> flag to leave space in the filesystem if you "
24200 "want it."
24201 msgstr ""
24202
24203 # type: textblock
24204 #: ../tools/virt-make-fs.pl:77
24205 msgid ""
24206 "An alternative way to leave extra space but not make the output image any "
24207 "bigger is to use an alternative disk image format (instead of the default "
24208 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
24209 "image format (check your hypervisor supports this before using it).  This "
24210 "allows you to choose a large C<--size> but the extra space won't actually be "
24211 "allocated in the image until you try to store something in it."
24212 msgstr ""
24213
24214 # type: textblock
24215 #: ../tools/virt-make-fs.pl:85
24216 msgid ""
24217 "Don't forget that you can also use local commands including L<resize2fs(8)> "
24218 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
24219 "resize to build another image from scratch."
24220 msgstr ""
24221
24222 # type: =head3
24223 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
24224 #: ../tools/virt-make-fs.pl:142
24225 msgid "EXAMPLE"
24226 msgstr ""
24227
24228 # type: verbatim
24229 #: ../tools/virt-make-fs.pl:91
24230 #, no-wrap
24231 msgid ""
24232 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
24233 "\n"
24234 msgstr ""
24235
24236 # type: =head2
24237 #: ../tools/virt-make-fs.pl:93
24238 msgid "FILESYSTEM TYPE"
24239 msgstr ""
24240
24241 # type: textblock
24242 #: ../tools/virt-make-fs.pl:95
24243 msgid ""
24244 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
24245 "libguestfs supports can be used (but I<not> read-only formats like "
24246 "ISO9660).  Here are some of the more common choices:"
24247 msgstr ""
24248
24249 # type: =item
24250 #: ../tools/virt-make-fs.pl:101
24251 msgid "I<ext3>"
24252 msgstr ""
24253
24254 # type: textblock
24255 #: ../tools/virt-make-fs.pl:103
24256 msgid ""
24257 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
24258 "you are not going to use the filesystem in a way that requires the journal, "
24259 "then this is just wasted overhead."
24260 msgstr ""
24261
24262 # type: =item
24263 #: ../tools/virt-make-fs.pl:107
24264 msgid "I<ntfs> or I<vfat>"
24265 msgstr ""
24266
24267 # type: textblock
24268 #: ../tools/virt-make-fs.pl:109
24269 msgid "Useful if exporting data to a Windows guest."
24270 msgstr ""
24271
24272 # type: textblock
24273 #: ../tools/virt-make-fs.pl:111
24274 msgid ""
24275 "I<Note for vfat>: The tar archive or local directory must only contain files "
24276 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
24277 "program running within libguestfs is unable to change the ownership of non-"
24278 "root files, since vfat itself does not support this."
24279 msgstr ""
24280
24281 # type: =item
24282 #: ../tools/virt-make-fs.pl:116
24283 msgid "I<minix>"
24284 msgstr ""
24285
24286 # type: textblock
24287 #: ../tools/virt-make-fs.pl:118
24288 msgid ""
24289 "Lower overhead than C<ext2>, but certain limitations on filename length and "
24290 "total filesystem size."
24291 msgstr ""
24292
24293 # type: verbatim
24294 #: ../tools/virt-make-fs.pl:125
24295 #, no-wrap
24296 msgid ""
24297 " virt-make-fs --type=minix input minixfs.img\n"
24298 "\n"
24299 msgstr ""
24300
24301 # type: =head2
24302 #: ../tools/virt-make-fs.pl:127
24303 msgid "TO PARTITION OR NOT TO PARTITION"
24304 msgstr ""
24305
24306 # type: textblock
24307 #: ../tools/virt-make-fs.pl:129
24308 msgid "Optionally virt-make-fs can add a partition table to the output disk."
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../tools/virt-make-fs.pl:131
24313 msgid ""
24314 "Adding a partition can make the disk image more compatible with certain "
24315 "virtualized operating systems which don't expect to see a filesystem "
24316 "directly located on a block device (Linux doesn't care and will happily "
24317 "handle both types)."
24318 msgstr ""
24319
24320 # type: textblock
24321 #: ../tools/virt-make-fs.pl:136
24322 msgid ""
24323 "On the other hand, if you have a partition table then the output image is no "
24324 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
24325 "directly on a partitioned disk image.  (However libguestfs tools such as "
24326 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../tools/virt-make-fs.pl:144
24331 msgid "Add an MBR partition:"
24332 msgstr ""
24333
24334 # type: verbatim
24335 #: ../tools/virt-make-fs.pl:146
24336 #, no-wrap
24337 msgid ""
24338 " virt-make-fs --partition -- input disk.img\n"
24339 "\n"
24340 msgstr ""
24341
24342 # type: textblock
24343 #: ../tools/virt-make-fs.pl:148
24344 msgid ""
24345 "If the output disk image could be terabyte-sized or larger, it's better to "
24346 "use an EFI/GPT-compatible partition table:"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../tools/virt-make-fs.pl:151
24351 #, no-wrap
24352 msgid ""
24353 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: =item
24358 #: ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:196
24359 msgid "B<--debug>"
24360 msgstr ""
24361
24362 # type: textblock
24363 #: ../tools/virt-make-fs.pl:179
24364 msgid "Enable debugging information."
24365 msgstr ""
24366
24367 # type: =item
24368 #: ../tools/virt-make-fs.pl:185
24369 msgid "B<--size=E<lt>NE<gt>>"
24370 msgstr ""
24371
24372 # type: =item
24373 #: ../tools/virt-make-fs.pl:187
24374 msgid "B<--size=+E<lt>NE<gt>>"
24375 msgstr ""
24376
24377 # type: =item
24378 #: ../tools/virt-make-fs.pl:189
24379 msgid "B<-s E<lt>NE<gt>>"
24380 msgstr ""
24381
24382 # type: =item
24383 #: ../tools/virt-make-fs.pl:191
24384 msgid "B<-s +E<lt>NE<gt>>"
24385 msgstr ""
24386
24387 # type: textblock
24388 #: ../tools/virt-make-fs.pl:193
24389 msgid ""
24390 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
24391 msgstr ""
24392
24393 # type: textblock
24394 #: ../tools/virt-make-fs.pl:196
24395 msgid ""
24396 "If this option is I<not> given, then the output image will be just large "
24397 "enough to contain all the files, with not much wasted space."
24398 msgstr ""
24399
24400 # type: textblock
24401 #: ../tools/virt-make-fs.pl:199
24402 msgid ""
24403 "To choose a fixed size output disk, specify an absolute number followed by b/"
24404 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24405 "Petabytes or Exabytes.  This must be large enough to contain all the input "
24406 "files, else you will get an error."
24407 msgstr ""
24408
24409 # type: textblock
24410 #: ../tools/virt-make-fs.pl:204
24411 msgid ""
24412 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
24413 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
24414 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
24415 "the input files, and (approximately) an extra 200 MB free space."
24416 msgstr ""
24417
24418 # type: textblock
24419 #: ../tools/virt-make-fs.pl:210
24420 msgid ""
24421 "Note that virt-make-fs estimates free space, and therefore will not produce "
24422 "filesystems containing precisely the free space requested.  (It is much more "
24423 "expensive and time-consuming to produce a filesystem which has precisely the "
24424 "desired free space)."
24425 msgstr ""
24426
24427 # type: =item
24428 #: ../tools/virt-make-fs.pl:219
24429 msgid "B<--format=E<lt>fmtE<gt>>"
24430 msgstr ""
24431
24432 # type: =item
24433 #: ../tools/virt-make-fs.pl:221
24434 msgid "B<-F E<lt>fmtE<gt>>"
24435 msgstr ""
24436
24437 # type: textblock
24438 #: ../tools/virt-make-fs.pl:223
24439 msgid "Choose the output disk image format."
24440 msgstr ""
24441
24442 # type: textblock
24443 #: ../tools/virt-make-fs.pl:225
24444 msgid "The default is C<raw> (raw disk image)."
24445 msgstr ""
24446
24447 # type: textblock
24448 #: ../tools/virt-make-fs.pl:227
24449 msgid ""
24450 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
24451 "that would really make sense here is C<qcow2>."
24452 msgstr ""
24453
24454 # type: =item
24455 #: ../tools/virt-make-fs.pl:234
24456 msgid "B<--type=E<lt>fsE<gt>>"
24457 msgstr ""
24458
24459 # type: =item
24460 #: ../tools/virt-make-fs.pl:236
24461 msgid "B<-t E<lt>fsE<gt>>"
24462 msgstr ""
24463
24464 # type: textblock
24465 #: ../tools/virt-make-fs.pl:238
24466 msgid "Choose the output filesystem type."
24467 msgstr ""
24468
24469 # type: textblock
24470 #: ../tools/virt-make-fs.pl:240
24471 msgid "The default is C<ext2>."
24472 msgstr ""
24473
24474 # type: textblock
24475 #: ../tools/virt-make-fs.pl:242
24476 msgid ""
24477 "Any filesystem which is supported read-write by libguestfs can be used here."
24478 msgstr ""
24479
24480 # type: =item
24481 #: ../tools/virt-make-fs.pl:249
24482 msgid "B<--partition>"
24483 msgstr ""
24484
24485 # type: =item
24486 #: ../tools/virt-make-fs.pl:251
24487 msgid "B<--partition=E<lt>parttypeE<gt>>"
24488 msgstr ""
24489
24490 # type: textblock
24491 #: ../tools/virt-make-fs.pl:253
24492 msgid ""
24493 "If specified, this flag adds an MBR partition table to the output disk image."
24494 msgstr ""
24495
24496 # type: textblock
24497 #: ../tools/virt-make-fs.pl:256
24498 msgid ""
24499 "You can change the partition table type, eg. C<--partition=gpt> for large "
24500 "disks."
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../tools/virt-make-fs.pl:259
24505 msgid ""
24506 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
24507 "might consider the next parameter to be the partition type.  For example:"
24508 msgstr ""
24509
24510 # type: verbatim
24511 #: ../tools/virt-make-fs.pl:263
24512 #, no-wrap
24513 msgid ""
24514 " virt-make-fs --partition input.tar ...\n"
24515 "\n"
24516 msgstr ""
24517
24518 # type: textblock
24519 #: ../tools/virt-make-fs.pl:265
24520 msgid ""
24521 "would cause virt-make-fs to think you wanted to use a partition type of "
24522 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
24523 "dash) between options and the input file argument:"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../tools/virt-make-fs.pl:269
24528 #, no-wrap
24529 msgid ""
24530 " virt-make-fs --partition -- input.tar ...\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../tools/virt-make-fs.pl:529
24536 msgid ""
24537 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
24538 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
24539 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
24540 msgstr ""
24541
24542 # type: textblock
24543 #: ../tools/virt-make-fs.pl:543 ../tools/virt-win-reg.pl:478
24544 msgid ""
24545 "When reporting bugs, please enable debugging and capture the I<complete> "
24546 "output:"
24547 msgstr ""
24548
24549 # type: verbatim
24550 #: ../tools/virt-make-fs.pl:546
24551 #, no-wrap
24552 msgid ""
24553 " export LIBGUESTFS_DEBUG=1\n"
24554 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../tools/virt-make-fs.pl:549
24560 msgid ""
24561 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
24562 "redhat.com/>"
24563 msgstr ""
24564
24565 # type: textblock
24566 #: ../tools/virt-make-fs.pl:558 ../tools/virt-resize.pl:1413
24567 #: ../tools/virt-win-reg.pl:493
24568 msgid "Copyright (C) 2010 Red Hat Inc."
24569 msgstr ""
24570
24571 # type: textblock
24572 #: ../tools/virt-rescue.pl:33
24573 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24574 msgstr ""
24575
24576 # type: verbatim
24577 #: ../tools/virt-rescue.pl:37
24578 #, no-wrap
24579 msgid ""
24580 " virt-rescue [--options] domname\n"
24581 "\n"
24582 msgstr ""
24583
24584 # type: verbatim
24585 #: ../tools/virt-rescue.pl:39
24586 #, no-wrap
24587 msgid ""
24588 " virt-rescue [--options] disk.img [disk.img ...]\n"
24589 "\n"
24590 msgstr ""
24591
24592 # type: textblock
24593 #: ../tools/virt-rescue.pl:43
24594 msgid ""
24595 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24596 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24597 "you from doing this, but doesn't catch all cases."
24598 msgstr ""
24599
24600 # type: textblock
24601 #: ../tools/virt-rescue.pl:47
24602 msgid ""
24603 "However if you use the I<--ro> (read only) option, then you can attach a "
24604 "shell to a live virtual machine.  The results might be strange or "
24605 "inconsistent at times but you won't get disk corruption."
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../tools/virt-rescue.pl:53
24610 msgid ""
24611 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24612 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24613 "recovery tools which you can use to examine or rescue a virtual machine or "
24614 "disk image."
24615 msgstr ""
24616
24617 # type: textblock
24618 #: ../tools/virt-rescue.pl:58
24619 msgid ""
24620 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24621 "on disk image(s):"
24622 msgstr ""
24623
24624 # type: verbatim
24625 #: ../tools/virt-rescue.pl:61
24626 #, no-wrap
24627 msgid ""
24628 " virt-rescue GuestName\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: verbatim
24633 #: ../tools/virt-rescue.pl:63
24634 #, no-wrap
24635 msgid ""
24636 " virt-rescue --ro /path/to/disk.img\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: verbatim
24641 #: ../tools/virt-rescue.pl:65
24642 #, no-wrap
24643 msgid ""
24644 " virt-rescue /dev/sdc\n"
24645 "\n"
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../tools/virt-rescue.pl:67
24650 msgid "For live VMs you I<must> use the --ro option."
24651 msgstr ""
24652
24653 # type: textblock
24654 #: ../tools/virt-rescue.pl:69
24655 msgid ""
24656 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24657 "in an interactive bash shell where you can use many ordinary Linux "
24658 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24659 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24660 "is an empty directory called C</sysroot> where you can mount filesystems."
24661 msgstr ""
24662
24663 # type: textblock
24664 #: ../tools/virt-rescue.pl:76
24665 msgid ""
24666 "In the example below, we list logical volumes, then choose one to mount "
24667 "under C</sysroot>:"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #: ../tools/virt-rescue.pl:79
24672 #, no-wrap
24673 msgid ""
24674 " ><rescue> lvs\n"
24675 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24676 " lv_root vg_f11x64 -wi-a-   8.83G\n"
24677 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
24678 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
24679 " ><rescue> ls /sysroot\n"
24680 "\n"
24681 msgstr ""
24682
24683 # type: textblock
24684 #: ../tools/virt-rescue.pl:86
24685 msgid ""
24686 "If you don't know what filesystems are available on the virtual machine then "
24687 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
24688 msgstr ""
24689
24690 # type: =head1
24691 #: ../tools/virt-rescue.pl:90 ../tools/virt-resize.pl:1350
24692 msgid "NOTES"
24693 msgstr ""
24694
24695 # type: textblock
24696 #: ../tools/virt-rescue.pl:92
24697 msgid ""
24698 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24699 "virtual machine.  For example you can use it on a blank file if you want to "
24700 "partition that file (although we would recommend using L<guestfish(1)> "
24701 "instead as it is more suitable for this purpose).  You can even use virt-"
24702 "rescue on things like SD cards."
24703 msgstr ""
24704
24705 # type: textblock
24706 #: ../tools/virt-rescue.pl:98
24707 msgid ""
24708 "This tool is just designed for quick interactive hacking on a virtual "
24709 "machine.  For more structured access to a virtual machine disk image, you "
24710 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24711 "make scripted changes to guests, use L<guestfish(1)>."
24712 msgstr ""
24713
24714 # type: =item
24715 #: ../tools/virt-rescue.pl:127
24716 msgid "B<--append kernelopts>"
24717 msgstr ""
24718
24719 # type: textblock
24720 #: ../tools/virt-rescue.pl:129
24721 msgid "Pass additional options to the rescue kernel."
24722 msgstr ""
24723
24724 # type: =item
24725 #: ../tools/virt-rescue.pl:147
24726 msgid "B<--memsize MB> | B<-m MB>"
24727 msgstr ""
24728
24729 # type: textblock
24730 #: ../tools/virt-rescue.pl:149
24731 msgid ""
24732 "Change the amount of memory allocated to the rescue system.  The default is "
24733 "set by libguestfs and is small but adequate for running system tools.  The "
24734 "occasional program might need more memory.  The parameter is specified in "
24735 "megabytes."
24736 msgstr ""
24737
24738 # type: =item
24739 #: ../tools/virt-rescue.pl:158
24740 msgid "B<--ro> | B<-r>"
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../tools/virt-rescue.pl:160
24745 msgid "Open the image read-only."
24746 msgstr ""
24747
24748 # type: textblock
24749 #: ../tools/virt-rescue.pl:172
24750 msgid ""
24751 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24752 "SELINUX> before using this option."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../tools/virt-rescue.pl:228
24757 msgid ""
24758 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24759 "ENVIRONMENT VARIABLES> for the complete list."
24760 msgstr ""
24761
24762 # type: textblock
24763 #: ../tools/virt-rescue.pl:233
24764 msgid ""
24765 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24766 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24767 msgstr ""
24768
24769 # type: textblock
24770 #: ../tools/virt-resize.pl:42
24771 msgid "virt-resize - Resize a virtual machine disk"
24772 msgstr ""
24773
24774 # type: verbatim
24775 #: ../tools/virt-resize.pl:46
24776 #, no-wrap
24777 msgid ""
24778 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24779 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24780 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: textblock
24785 #: ../tools/virt-resize.pl:52
24786 msgid ""
24787 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24788 "larger or smaller overall, and resizing or deleting any partitions contained "
24789 "within."
24790 msgstr ""
24791
24792 # type: textblock
24793 #: ../tools/virt-resize.pl:56
24794 msgid ""
24795 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24796 "not> be used on live virtual machines - for consistent results, shut the "
24797 "virtual machine down before resizing it."
24798 msgstr ""
24799
24800 # type: textblock
24801 #: ../tools/virt-resize.pl:60
24802 msgid ""
24803 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
24804 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
24805 "read those manual pages first."
24806 msgstr ""
24807
24808 # type: textblock
24809 #: ../tools/virt-resize.pl:68
24810 msgid ""
24811 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24812 "fill the extra 5GB of space."
24813 msgstr ""
24814
24815 # type: verbatim
24816 #: ../tools/virt-resize.pl:71
24817 #, no-wrap
24818 msgid ""
24819 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
24820 " virt-list-partitions -lht olddisk\n"
24821 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24822 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24823 "\n"
24824 msgstr ""
24825
24826 # type: textblock
24827 #: ../tools/virt-resize.pl:76
24828 msgid ""
24829 "As above, but make the /boot partition 200MB bigger, while giving the "
24830 "remaining space to /dev/sda2:"
24831 msgstr ""
24832
24833 # type: verbatim
24834 #: ../tools/virt-resize.pl:79
24835 #, no-wrap
24836 msgid ""
24837 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
24838 "\n"
24839 msgstr ""
24840
24841 # type: =head1
24842 #: ../tools/virt-resize.pl:81
24843 msgid "DETAILED USAGE"
24844 msgstr ""
24845
24846 # type: =head2
24847 #: ../tools/virt-resize.pl:83
24848 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24849 msgstr ""
24850
24851 # type: =item
24852 #: ../tools/virt-resize.pl:87
24853 msgid "1. Shut down the virtual machine"
24854 msgstr ""
24855
24856 # type: =item
24857 #: ../tools/virt-resize.pl:89
24858 msgid "2. Locate input disk image"
24859 msgstr ""
24860
24861 # type: textblock
24862 #: ../tools/virt-resize.pl:91
24863 msgid ""
24864 "Locate the input disk image (ie. the file or device on the host containing "
24865 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24866 "dumpxml> like this to find the disk image name:"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #: ../tools/virt-resize.pl:95
24871 #, no-wrap
24872 msgid ""
24873 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24874 " Found 1 nodes:\n"
24875 " -- NODE --\n"
24876 " <source dev=\"/dev/vg/lv_guest\" />\n"
24877 "\n"
24878 msgstr ""
24879
24880 # type: =item
24881 #: ../tools/virt-resize.pl:100
24882 msgid "3. Look at current sizing"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../tools/virt-resize.pl:102
24887 msgid ""
24888 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
24889 msgstr ""
24890
24891 # type: verbatim
24892 #: ../tools/virt-resize.pl:105
24893 #, no-wrap
24894 msgid ""
24895 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
24896 " /dev/sda1 ext3 101.9M\n"
24897 " /dev/sda2 pv 7.9G\n"
24898 " /dev/sda device 8.0G\n"
24899 "\n"
24900 msgstr ""
24901
24902 # type: textblock
24903 #: ../tools/virt-resize.pl:110
24904 msgid ""
24905 "(This example is a virtual machine with an 8 GB disk which we would like to "
24906 "expand up to 10 GB)."
24907 msgstr ""
24908
24909 # type: =item
24910 #: ../tools/virt-resize.pl:113
24911 msgid "4. Create output disk"
24912 msgstr ""
24913
24914 # type: textblock
24915 #: ../tools/virt-resize.pl:115
24916 msgid ""
24917 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24918 "to store the resized output disk."
24919 msgstr ""
24920
24921 # type: textblock
24922 #: ../tools/virt-resize.pl:118
24923 msgid ""
24924 "To store the resized disk image in a file, create a file of a suitable size:"
24925 msgstr ""
24926
24927 # type: verbatim
24928 #: ../tools/virt-resize.pl:121
24929 #, no-wrap
24930 msgid ""
24931 " # rm -f outdisk\n"
24932 " # truncate -s 10G outdisk\n"
24933 "\n"
24934 msgstr ""
24935
24936 # type: textblock
24937 #: ../tools/virt-resize.pl:124
24938 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24939 msgstr ""
24940
24941 # type: verbatim
24942 #: ../tools/virt-resize.pl:126
24943 #, no-wrap
24944 msgid ""
24945 " # lvcreate -L 10G -n lv_name vg_name\n"
24946 "\n"
24947 msgstr ""
24948
24949 # type: textblock
24950 #: ../tools/virt-resize.pl:128
24951 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24952 msgstr ""
24953
24954 # type: verbatim
24955 #: ../tools/virt-resize.pl:130
24956 #, no-wrap
24957 msgid ""
24958 " # virsh pool-list\n"
24959 " # virsh vol-create-as poolname newvol 10G\n"
24960 "\n"
24961 msgstr ""
24962
24963 # type: =item
24964 #: ../tools/virt-resize.pl:133
24965 msgid "5. Resize"
24966 msgstr ""
24967
24968 # type: textblock
24969 #: ../tools/virt-resize.pl:135
24970 msgid ""
24971 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24972 "file) and the output disk.  The output disk is the one created in the "
24973 "previous step."
24974 msgstr ""
24975
24976 # type: verbatim
24977 #: ../tools/virt-resize.pl:139
24978 #, no-wrap
24979 msgid ""
24980 " # virt-resize indisk outdisk\n"
24981 "\n"
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../tools/virt-resize.pl:141
24986 msgid ""
24987 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24988 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24989 "larger, then an extra, empty partition is created at the end of the disk "
24990 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24991 "error."
24992 msgstr ""
24993
24994 # type: textblock
24995 #: ../tools/virt-resize.pl:147
24996 msgid ""
24997 "More realistically you'd want to expand existing partitions in the disk "
24998 "image by passing extra options (for the full list see the L</OPTIONS> "
24999 "section below)."
25000 msgstr ""
25001
25002 # type: textblock
25003 #: ../tools/virt-resize.pl:151
25004 msgid ""
25005 "L</--expand> is the most useful option.  It expands the named partition "
25006 "within the disk to fill any extra space:"
25007 msgstr ""
25008
25009 # type: verbatim
25010 #: ../tools/virt-resize.pl:154
25011 #, no-wrap
25012 msgid ""
25013 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25014 "\n"
25015 msgstr ""
25016
25017 # type: textblock
25018 #: ../tools/virt-resize.pl:156
25019 msgid ""
25020 "(In this case, an extra partition is I<not> created at the end of the disk, "
25021 "because there will be no unused space)."
25022 msgstr ""
25023
25024 # type: textblock
25025 #: ../tools/virt-resize.pl:159
25026 msgid ""
25027 "L</--resize> is the other commonly used option.  The following would "
25028 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25029 "rest of the available space:"
25030 msgstr ""
25031
25032 # type: verbatim
25033 #: ../tools/virt-resize.pl:163
25034 #, no-wrap
25035 msgid ""
25036 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25037 "     indisk outdisk\n"
25038 "\n"
25039 msgstr ""
25040
25041 # type: textblock
25042 #: ../tools/virt-resize.pl:166
25043 msgid ""
25044 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25045 "if virt-resize knows how, it will resize the contents, the equivalent of "
25046 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
25047 ">.  However virt-resize does not know how to resize some filesystems, so you "
25048 "would have to online resize them after booting the guest.  And virt-resize "
25049 "also does not resize anything inside an LVM PV, it just resizes the PV "
25050 "itself and leaves the user to resize any LVs inside that PV as desired."
25051 msgstr ""
25052
25053 # type: textblock
25054 #: ../tools/virt-resize.pl:175
25055 msgid "Other options are covered below."
25056 msgstr ""
25057
25058 # type: =item
25059 #: ../tools/virt-resize.pl:177
25060 msgid "6. Test"
25061 msgstr ""
25062
25063 # type: textblock
25064 #: ../tools/virt-resize.pl:179
25065 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../tools/virt-resize.pl:181
25070 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #: ../tools/virt-resize.pl:183
25075 #, no-wrap
25076 msgid ""
25077 " # virsh edit guestname\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: textblock
25082 #: ../tools/virt-resize.pl:185
25083 msgid ""
25084 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25085 "html#elementsDisks>"
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../tools/virt-resize.pl:188
25090 msgid "Then start up the domain with the new, resized disk:"
25091 msgstr ""
25092
25093 # type: verbatim
25094 #: ../tools/virt-resize.pl:190
25095 #, no-wrap
25096 msgid ""
25097 " # virsh start guestname\n"
25098 "\n"
25099 msgstr ""
25100
25101 # type: textblock
25102 #: ../tools/virt-resize.pl:192
25103 msgid ""
25104 "and check that it still works.  See also the L</NOTES> section below for "
25105 "additional information."
25106 msgstr ""
25107
25108 # type: =item
25109 #: ../tools/virt-resize.pl:195
25110 msgid "7. Resize LVs etc inside the guest"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../tools/virt-resize.pl:197
25115 msgid "(This can also be done offline using L<guestfish(1)>)"
25116 msgstr ""
25117
25118 # type: textblock
25119 #: ../tools/virt-resize.pl:199
25120 msgid ""
25121 "Once the guest has booted you should see the new space available, at least "
25122 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25123 "may need to resize LVs inside PVs, and also resize filesystem types that "
25124 "virt-resize does not know how to expand."
25125 msgstr ""
25126
25127 # type: =head2
25128 #: ../tools/virt-resize.pl:206
25129 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25130 msgstr ""
25131
25132 # type: textblock
25133 #: ../tools/virt-resize.pl:208
25134 msgid ""
25135 "Shrinking is somewhat more complex than expanding, and only an overview is "
25136 "given here."
25137 msgstr ""
25138
25139 # type: textblock
25140 #: ../tools/virt-resize.pl:211
25141 msgid ""
25142 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25143 "filesystems).  The user has to shrink content before passing the disk image "
25144 "to virt-resize, and virt-resize will check that the content has been shrunk "
25145 "properly."
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../tools/virt-resize.pl:216
25150 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25151 msgstr ""
25152
25153 # type: textblock
25154 #: ../tools/virt-resize.pl:218
25155 msgid ""
25156 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25157 "steps 3 and 4 above to allocate a new disk image."
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../tools/virt-resize.pl:221
25162 msgid ""
25163 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25164 msgstr ""
25165
25166 # type: =head2
25167 #: ../tools/virt-resize.pl:224
25168 msgid "IGNORING OR DELETING PARTITIONS"
25169 msgstr ""
25170
25171 # type: textblock
25172 #: ../tools/virt-resize.pl:226
25173 msgid ""
25174 "virt-resize also gives a convenient way to ignore or delete partitions when "
25175 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25176 "up the copy where you don't care about the existing contents of a "
25177 "partition.  Deleting a partition removes it completely, but note that it "
25178 "also renumbers any partitions after the one which is deleted, which can "
25179 "leave some guests unbootable."
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../tools/virt-resize.pl:243
25184 msgid "Display help."
25185 msgstr ""
25186
25187 # type: =item
25188 #: ../tools/virt-resize.pl:257
25189 msgid "B<--resize part=size>"
25190 msgstr ""
25191
25192 # type: textblock
25193 #: ../tools/virt-resize.pl:259
25194 msgid ""
25195 "Resize the named partition (expanding or shrinking it) so that it has the "
25196 "given size."
25197 msgstr ""
25198
25199 # type: textblock
25200 #: ../tools/virt-resize.pl:262
25201 msgid ""
25202 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25203 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25204 "Exabytes; or as a percentage of the current size; or as a relative number or "
25205 "percentage.  For example:"
25206 msgstr ""
25207
25208 # type: verbatim
25209 #: ../tools/virt-resize.pl:267
25210 #, no-wrap
25211 msgid ""
25212 " --resize /dev/sda2=10G\n"
25213 "\n"
25214 msgstr ""
25215
25216 # type: verbatim
25217 #: ../tools/virt-resize.pl:269
25218 #, no-wrap
25219 msgid ""
25220 " --resize /dev/sda4=90%\n"
25221 "\n"
25222 msgstr ""
25223
25224 # type: verbatim
25225 #: ../tools/virt-resize.pl:271
25226 #, no-wrap
25227 msgid ""
25228 " --resize /dev/sda2=+1G\n"
25229 "\n"
25230 msgstr ""
25231
25232 # type: verbatim
25233 #: ../tools/virt-resize.pl:273
25234 #, no-wrap
25235 msgid ""
25236 " --resize /dev/sda2=-200M\n"
25237 "\n"
25238 msgstr ""
25239
25240 # type: verbatim
25241 #: ../tools/virt-resize.pl:275
25242 #, no-wrap
25243 msgid ""
25244 " --resize /dev/sda1=+128K\n"
25245 "\n"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #: ../tools/virt-resize.pl:277
25250 #, no-wrap
25251 msgid ""
25252 " --resize /dev/sda1=+10%\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: verbatim
25257 #: ../tools/virt-resize.pl:279
25258 #, no-wrap
25259 msgid ""
25260 " --resize /dev/sda1=-10%\n"
25261 "\n"
25262 msgstr ""
25263
25264 # type: textblock
25265 #: ../tools/virt-resize.pl:281
25266 msgid ""
25267 "You can increase the size of any partition.  Virt-resize will expand the "
25268 "direct content of the partition if it knows how (see C<--expand> below)."
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../tools/virt-resize.pl:285
25273 msgid ""
25274 "You can only I<decrease> the size of partitions that contain filesystems or "
25275 "PVs which have already been shrunk.  Virt-resize will check this has been "
25276 "done before proceeding, or else will print an error (see also C<--resize-"
25277 "force>)."
25278 msgstr ""
25279
25280 # type: textblock
25281 #: ../tools/virt-resize.pl:290 ../tools/virt-resize.pl:382
25282 #: ../tools/virt-resize.pl:399
25283 msgid "You can give this option multiple times."
25284 msgstr ""
25285
25286 # type: =item
25287 #: ../tools/virt-resize.pl:296
25288 msgid "B<--resize-force part=size>"
25289 msgstr ""
25290
25291 # type: textblock
25292 #: ../tools/virt-resize.pl:298
25293 msgid ""
25294 "This is the same as C<--resize> except that it will let you decrease the "
25295 "size of any partition.  Generally this means you will lose any data which "
25296 "was at the end of the partition you shrink, but you may not care about that "
25297 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25298 "as a swap partition)."
25299 msgstr ""
25300
25301 # type: textblock
25302 #: ../tools/virt-resize.pl:304
25303 msgid "See also the C<--ignore> option."
25304 msgstr ""
25305
25306 # type: =item
25307 #: ../tools/virt-resize.pl:310
25308 msgid "B<--expand part>"
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../tools/virt-resize.pl:312
25313 msgid ""
25314 "Expand the named partition so it uses up all extra space (space left over "
25315 "after any other resize changes that you request have been done)."
25316 msgstr ""
25317
25318 # type: textblock
25319 #: ../tools/virt-resize.pl:315
25320 msgid ""
25321 "If virt-resize knows how, it will expand the direct content of the "
25322 "partition.  For example, if the partition is an LVM PV, it will expand the "
25323 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25324 "content it doesn't know about alone."
25325 msgstr ""
25326
25327 # type: textblock
25328 #: ../tools/virt-resize.pl:320
25329 msgid "Currently virt-resize can resize:"
25330 msgstr ""
25331
25332 # type: textblock
25333 #: ../tools/virt-resize.pl:326
25334 msgid ""
25335 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25336 "partition."
25337 msgstr ""
25338
25339 # type: textblock
25340 #: ../tools/virt-resize.pl:331
25341 msgid ""
25342 "NTFS filesystems contained directly in a partition, if libguestfs was "
25343 "compiled with support for NTFS."
25344 msgstr ""
25345
25346 # type: textblock
25347 #: ../tools/virt-resize.pl:334
25348 msgid ""
25349 "The filesystem must have been shut down consistently last time it was used.  "
25350 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25351 "consistency check, so at the first boot after resizing Windows will check "
25352 "the disk."
25353 msgstr ""
25354
25355 # type: textblock
25356 #: ../tools/virt-resize.pl:341
25357 msgid ""
25358 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25359 "inside the PV.  The user will have to resize LVs as desired."
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../tools/virt-resize.pl:347 ../tools/virt-resize.pl:369
25364 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25365 msgstr ""
25366
25367 # type: =item
25368 #: ../tools/virt-resize.pl:353
25369 msgid "B<--shrink part>"
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../tools/virt-resize.pl:355
25374 msgid ""
25375 "Shrink the named partition until the overall disk image fits in the "
25376 "destination.  The named partition B<must> contain a filesystem or PV which "
25377 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25378 "online tools).  Virt-resize will check this and give an error if it has not "
25379 "been done."
25380 msgstr ""
25381
25382 # type: textblock
25383 #: ../tools/virt-resize.pl:361
25384 msgid ""
25385 "The amount by which the overall disk must be shrunk (after carrying out all "
25386 "other operations requested by the user) is called the \"deficit\".  For "
25387 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25388 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25389 "would give an error unless the user specified a partition to shrink and that "
25390 "partition had more than a gigabyte of free space."
25391 msgstr ""
25392
25393 # type: =item
25394 #: ../tools/virt-resize.pl:375
25395 msgid "B<--ignore part>"
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../tools/virt-resize.pl:377
25400 msgid ""
25401 "Ignore the named partition.  Effectively this means the partition is "
25402 "allocated on the destination disk, but the content is not copied across from "
25403 "the source disk.  The content of the partition will be blank (all zero "
25404 "bytes)."
25405 msgstr ""
25406
25407 # type: =item
25408 #: ../tools/virt-resize.pl:388
25409 msgid "B<--delete part>"
25410 msgstr ""
25411
25412 # type: textblock
25413 #: ../tools/virt-resize.pl:390
25414 msgid ""
25415 "Delete the named partition.  It would be more accurate to describe this as "
25416 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25417 "the original disk image is left intact."
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../tools/virt-resize.pl:394
25422 msgid ""
25423 "Note that when you delete a partition, then anything contained in the "
25424 "partition is also deleted.  Furthermore, this causes any partitions that "
25425 "come after to be I<renumbered>, which can easily make your guest unbootable."
25426 msgstr ""
25427
25428 # type: =item
25429 #: ../tools/virt-resize.pl:405
25430 msgid "B<--LV-expand logvol>"
25431 msgstr ""
25432
25433 # type: textblock
25434 #: ../tools/virt-resize.pl:407
25435 msgid ""
25436 "This takes the logical volume and, as a final step, expands it to fill all "
25437 "the space available in its volume group.  A typical usage, assuming a Linux "
25438 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25439 "lv_root> would be:"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #: ../tools/virt-resize.pl:412
25444 #, no-wrap
25445 msgid ""
25446 " virt-resize indisk outdisk \\\n"
25447 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25448 "\n"
25449 msgstr ""
25450
25451 # type: textblock
25452 #: ../tools/virt-resize.pl:415
25453 msgid ""
25454 "This would first expand the partition (and PV), and then expand the root "
25455 "device to fill the extra space in the PV."
25456 msgstr ""
25457
25458 # type: textblock
25459 #: ../tools/virt-resize.pl:418
25460 msgid ""
25461 "The contents of the LV are also resized if virt-resize knows how to do "
25462 "that.  You can stop virt-resize from trying to expand the content by using "
25463 "the option C<--no-expand-content>."
25464 msgstr ""
25465
25466 # type: textblock
25467 #: ../tools/virt-resize.pl:422
25468 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-resize.pl:425
25473 msgid ""
25474 "You can give this option multiple times, I<but> it doesn't make sense to do "
25475 "this unless the logical volumes you specify are all in different volume "
25476 "groups."
25477 msgstr ""
25478
25479 # type: =item
25480 #: ../tools/virt-resize.pl:433
25481 msgid "B<--no-copy-boot-loader>"
25482 msgstr ""
25483
25484 # type: textblock
25485 #: ../tools/virt-resize.pl:435
25486 msgid ""
25487 "By default, virt-resize copies over some sectors at the start of the disk "
25488 "(up to the beginning of the first partition).  Commonly these sectors "
25489 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25490 "in order for the guest to boot correctly."
25491 msgstr ""
25492
25493 # type: textblock
25494 #: ../tools/virt-resize.pl:440
25495 msgid ""
25496 "If you specify this flag, then this initial copy is not done.  You may need "
25497 "to reinstall the boot loader in this case."
25498 msgstr ""
25499
25500 # type: =item
25501 #: ../tools/virt-resize.pl:448
25502 msgid "B<--no-extra-partition>"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../tools/virt-resize.pl:450
25507 msgid ""
25508 "By default, virt-resize creates an extra partition if there is any extra, "
25509 "unused space after all resizing has happened.  Use this option to prevent "
25510 "the extra partition from being created.  If you do this then the extra space "
25511 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25512 "tool in the guest."
25513 msgstr ""
25514
25515 # type: textblock
25516 #: ../tools/virt-resize.pl:456
25517 msgid ""
25518 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25519 "will be created."
25520 msgstr ""
25521
25522 # type: =item
25523 #: ../tools/virt-resize.pl:463
25524 msgid "B<--no-expand-content>"
25525 msgstr ""
25526
25527 # type: textblock
25528 #: ../tools/virt-resize.pl:465
25529 msgid ""
25530 "By default, virt-resize will try to expand the direct contents of "
25531 "partitions, if it knows how (see C<--expand> option above)."
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../tools/virt-resize.pl:468
25536 msgid ""
25537 "If you give the C<--no-expand-content> option then virt-resize will not "
25538 "attempt this."
25539 msgstr ""
25540
25541 # type: =item
25542 #: ../tools/virt-resize.pl:475
25543 msgid "B<-d> | B<--debug>"
25544 msgstr ""
25545
25546 # type: textblock
25547 #: ../tools/virt-resize.pl:477 ../tools/virt-win-reg.pl:198
25548 msgid "Enable debugging messages."
25549 msgstr ""
25550
25551 # type: =item
25552 #: ../tools/virt-resize.pl:483
25553 msgid "B<-n> | B<--dryrun>"
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../tools/virt-resize.pl:485
25558 msgid "Print a summary of what would be done, but don't do anything."
25559 msgstr ""
25560
25561 # type: =item
25562 #: ../tools/virt-resize.pl:491
25563 msgid "B<-q> | B<--quiet>"
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-resize.pl:493
25568 msgid "Don't print the summary."
25569 msgstr ""
25570
25571 # type: =head2
25572 #: ../tools/virt-resize.pl:1352
25573 msgid "\"Partition 1 does not end on cylinder boundary.\""
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../tools/virt-resize.pl:1354
25578 msgid ""
25579 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25580 "means the partitions will not be aligned to the ancient CHS geometry.  "
25581 "However CHS geometry is meaningless for disks manufactured since the early "
25582 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25583 "cylinders is not required by any modern operating system."
25584 msgstr ""
25585
25586 # type: =head2
25587 #: ../tools/virt-resize.pl:1361
25588 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../tools/virt-resize.pl:1363
25593 msgid ""
25594 "In Windows Vista and later versions, Microsoft switched to using a separate "
25595 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25596 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
25597 "the boot partition.  Doing so seems to break the guest completely.  However "
25598 "expanding the second partition (ie. C: drive) should work."
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-resize.pl:1370
25603 msgid ""
25604 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25605 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25606 "it find errors) is nothing to worry about."
25607 msgstr ""
25608
25609 # type: =head1
25610 #: ../tools/virt-resize.pl:1374
25611 msgid "ALTERNATIVE TOOLS"
25612 msgstr ""
25613
25614 # type: textblock
25615 #: ../tools/virt-resize.pl:1376
25616 msgid ""
25617 "There are several proprietary tools for resizing partitions.  We won't "
25618 "mention any here."
25619 msgstr ""
25620
25621 # type: textblock
25622 #: ../tools/virt-resize.pl:1379
25623 msgid ""
25624 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25625 "operations on disk images.  They can resize and move partitions, but I don't "
25626 "think they can do anything with the contents, and they certainly don't "
25627 "understand LVM."
25628 msgstr ""
25629
25630 # type: textblock
25631 #: ../tools/virt-resize.pl:1384
25632 msgid ""
25633 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25634 "but at a much lower level.  You will probably end up hand-calculating sector "
25635 "offsets, which is something that virt-resize was designed to avoid.  If you "
25636 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25637 "C<--debug> flag."
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../tools/virt-resize.pl:1392
25642 msgid ""
25643 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
25644 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
25645 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<Sys::Guestfs"
25646 "(3)>, L<http://libguestfs.org/>."
25647 msgstr ""
25648
25649 # type: textblock
25650 #: ../tools/virt-tar.pl:34
25651 msgid "virt-tar - Extract or upload files to a virtual machine"
25652 msgstr ""
25653
25654 # type: verbatim
25655 #: ../tools/virt-tar.pl:38
25656 #, no-wrap
25657 msgid ""
25658 " virt-tar [--options] -x domname directory tarball\n"
25659 "\n"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../tools/virt-tar.pl:40
25664 #, no-wrap
25665 msgid ""
25666 " virt-tar [--options] -u domname tarball directory\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #: ../tools/virt-tar.pl:42
25672 #, no-wrap
25673 msgid ""
25674 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
25675 "\n"
25676 msgstr ""
25677
25678 # type: verbatim
25679 #: ../tools/virt-tar.pl:44
25680 #, no-wrap
25681 msgid ""
25682 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
25683 "\n"
25684 msgstr ""
25685
25686 # type: textblock
25687 #: ../tools/virt-tar.pl:48
25688 msgid "Download C</home> from the VM into a local tarball:"
25689 msgstr ""
25690
25691 # type: verbatim
25692 #: ../tools/virt-tar.pl:50
25693 #, no-wrap
25694 msgid ""
25695 " virt-tar -x domname /home home.tar\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: verbatim
25700 #: ../tools/virt-tar.pl:52
25701 #, no-wrap
25702 msgid ""
25703 " virt-tar -zx domname /home home.tar.gz\n"
25704 "\n"
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../tools/virt-tar.pl:54
25709 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
25710 msgstr ""
25711
25712 # type: verbatim
25713 #: ../tools/virt-tar.pl:56
25714 #, no-wrap
25715 msgid ""
25716 " virt-tar -u domname uploadstuff.tar /tmp\n"
25717 "\n"
25718 msgstr ""
25719
25720 # type: verbatim
25721 #: ../tools/virt-tar.pl:58
25722 #, no-wrap
25723 msgid ""
25724 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
25725 "\n"
25726 msgstr ""
25727
25728 # type: textblock
25729 #: ../tools/virt-tar.pl:62
25730 msgid ""
25731 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
25732 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
25733 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
25734 msgstr ""
25735
25736 # type: textblock
25737 #: ../tools/virt-tar.pl:67
25738 msgid ""
25739 "You can use C<-x> (extract) on live virtual machines, but you might get "
25740 "inconsistent results or errors if there is filesystem activity inside the "
25741 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
25742 "work, but the only way to guarantee consistent results is if the virtual "
25743 "machine is shut down."
25744 msgstr ""
25745
25746 # type: textblock
25747 #: ../tools/virt-tar.pl:75
25748 msgid ""
25749 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
25750 "parts of a guest filesystem.  There are many possibilities: making backups, "
25751 "uploading data files, snooping on guest activity, fixing or customizing "
25752 "guests, etc."
25753 msgstr ""
25754
25755 # type: textblock
25756 #: ../tools/virt-tar.pl:80
25757 msgid ""
25758 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
25759 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
25760 "should look at the L<guestfish(1)> tool."
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../tools/virt-tar.pl:84
25765 msgid ""
25766 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
25767 "its contents (recursively) from the virtual machine into a local tarball.  "
25768 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
25769 "virtual machine.  You cannot use these two options together."
25770 msgstr ""
25771
25772 # type: textblock
25773 #: ../tools/virt-tar.pl:90
25774 msgid ""
25775 "In addition, you may need to use the C<-z> (gZip) option to enable "
25776 "compression.  When uploading, you have to specify C<-z> if the upload file "
25777 "is compressed because virt-tar won't detect this on its own."
25778 msgstr ""
25779
25780 # type: textblock
25781 #: ../tools/virt-tar.pl:94
25782 msgid ""
25783 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
25784 "example it cannot do PKZip files or bzip2 compression.  If you want that "
25785 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
25786 "the L<libguestfs(3)> API)."
25787 msgstr ""
25788
25789 # type: =item
25790 #: ../tools/virt-tar.pl:135
25791 msgid "B<-x> | B<--extract> | B<--download>"
25792 msgstr ""
25793
25794 # type: =item
25795 #: ../tools/virt-tar.pl:137
25796 msgid "B<-u> | B<--upload>"
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../tools/virt-tar.pl:139
25801 msgid ""
25802 "Use C<-x> to extract (download) a directory from a virtual machine to a "
25803 "local tarball."
25804 msgstr ""
25805
25806 # type: textblock
25807 #: ../tools/virt-tar.pl:142
25808 msgid ""
25809 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
25810 "Please read the L</WARNING> section above before using this option."
25811 msgstr ""
25812
25813 # type: textblock
25814 #: ../tools/virt-tar.pl:146
25815 msgid "You must specify exactly one of these options."
25816 msgstr ""
25817
25818 # type: =item
25819 #: ../tools/virt-tar.pl:152
25820 msgid "B<-z> | B<--gzip>"
25821 msgstr ""
25822
25823 # type: textblock
25824 #: ../tools/virt-tar.pl:154
25825 msgid "Specify that the input or output tarball is gzip-compressed."
25826 msgstr ""
25827
25828 # type: textblock
25829 #: ../tools/virt-tar.pl:259
25830 msgid ""
25831 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
25832 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25833 "org/>."
25834 msgstr ""
25835
25836 # type: textblock
25837 #: ../tools/virt-win-reg.pl:38
25838 msgid ""
25839 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
25840 msgstr ""
25841
25842 # type: verbatim
25843 #: ../tools/virt-win-reg.pl:42
25844 #, no-wrap
25845 msgid ""
25846 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25847 "\n"
25848 msgstr ""
25849
25850 # type: verbatim
25851 #: ../tools/virt-win-reg.pl:44
25852 #, no-wrap
25853 msgid ""
25854 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25855 "\n"
25856 msgstr ""
25857
25858 # type: verbatim
25859 #: ../tools/virt-win-reg.pl:46
25860 #, no-wrap
25861 msgid ""
25862 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25863 "\n"
25864 msgstr ""
25865
25866 # type: verbatim
25867 #: ../tools/virt-win-reg.pl:48
25868 #, no-wrap
25869 msgid ""
25870 " virt-win-reg --merge domname [input.reg ...]\n"
25871 "\n"
25872 msgstr ""
25873
25874 # type: verbatim
25875 #: ../tools/virt-win-reg.pl:50
25876 #, no-wrap
25877 msgid ""
25878 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25879 "\n"
25880 msgstr ""
25881
25882 # type: textblock
25883 #: ../tools/virt-win-reg.pl:54
25884 msgid ""
25885 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25886 "virtual machines.  If you do this, you I<will> get irreversible disk "
25887 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25888 "but doesn't catch all cases."
25889 msgstr ""
25890
25891 # type: textblock
25892 #: ../tools/virt-win-reg.pl:59
25893 msgid ""
25894 "Modifying the Windows Registry is an inherently risky operation.  The format "
25895 "is deliberately obscure and undocumented, and Registry changes can leave the "
25896 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25897 "you have a reliable backup first."
25898 msgstr ""
25899
25900 # type: textblock
25901 #: ../tools/virt-win-reg.pl:66
25902 msgid ""
25903 "This program can export and merge Windows Registry entries from a Windows "
25904 "guest."
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../tools/virt-win-reg.pl:69
25909 msgid ""
25910 "The first parameter is the libvirt guest name or the raw disk image of a "
25911 "Windows guest."
25912 msgstr ""
25913
25914 # type: textblock
25915 #: ../tools/virt-win-reg.pl:72
25916 msgid ""
25917 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25918 "exported (recursively).  For example:"
25919 msgstr ""
25920
25921 # type: verbatim
25922 #: ../tools/virt-win-reg.pl:75
25923 #, no-wrap
25924 msgid ""
25925 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25926 "\n"
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../tools/virt-win-reg.pl:77
25931 msgid ""
25932 "You can also display single values from within registry keys, for example:"
25933 msgstr ""
25934
25935 # type: verbatim
25936 #: ../tools/virt-win-reg.pl:80
25937 #, no-wrap
25938 msgid ""
25939 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25940 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25941 " Windows 7 Enterprise\n"
25942 "\n"
25943 msgstr ""
25944
25945 # type: textblock
25946 #: ../tools/virt-win-reg.pl:84
25947 msgid ""
25948 "With C<--merge>, you can merge a textual regedit file into the Windows "
25949 "Registry:"
25950 msgstr ""
25951
25952 # type: verbatim
25953 #: ../tools/virt-win-reg.pl:87
25954 #, no-wrap
25955 msgid ""
25956 " $ virt-win-reg --merge Windows7 changes.reg\n"
25957 "\n"
25958 msgstr ""
25959
25960 # type: =head2
25961 #: ../tools/virt-win-reg.pl:89
25962 msgid "SUPPORTED SYSTEMS"
25963 msgstr ""
25964
25965 # type: textblock
25966 #: ../tools/virt-win-reg.pl:91
25967 msgid ""
25968 "The program currently supports Windows NT-derived guests starting with "
25969 "Windows XP through to at least Windows 7."
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../tools/virt-win-reg.pl:94
25974 msgid ""
25975 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25976 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25977 "and C<HKEY_USERS\\.DEFAULT>."
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../tools/virt-win-reg.pl:98
25982 msgid ""
25983 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25984 "C<HKEY_USERS>."
25985 msgstr ""
25986
25987 # type: textblock
25988 #: ../tools/virt-win-reg.pl:101
25989 msgid ""
25990 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25991 "time."
25992 msgstr ""
25993
25994 # type: =head2
25995 #: ../tools/virt-win-reg.pl:104
25996 msgid "NOTE"
25997 msgstr ""
25998
25999 # type: textblock
26000 #: ../tools/virt-win-reg.pl:106
26001 msgid ""
26002 "This program is only meant for simple access to the registry.  If you want "
26003 "to do complicated things with the registry, we suggest you download the "
26004 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26005 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26006 "L<hivexregedit(1)>."
26007 msgstr ""
26008
26009 # type: =head2
26010 #: ../tools/virt-win-reg.pl:112
26011 msgid "ENCODING"
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../tools/virt-win-reg.pl:114
26016 msgid ""
26017 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26018 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26019 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26020 "Windows-style line endings, you may need to reencode the whole file before "
26021 "or after processing."
26022 msgstr ""
26023
26024 # type: textblock
26025 #: ../tools/virt-win-reg.pl:120
26026 msgid ""
26027 "To reencode a file from Windows format to Linux (before processing it with "
26028 "the C<--merge> option), you would do something like this:"
26029 msgstr ""
26030
26031 # type: verbatim
26032 #: ../tools/virt-win-reg.pl:123
26033 #, no-wrap
26034 msgid ""
26035 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26036 "\n"
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../tools/virt-win-reg.pl:125
26041 msgid ""
26042 "To go in the opposite direction, after exporting and before sending the file "
26043 "to a Windows user, do something like this:"
26044 msgstr ""
26045
26046 # type: verbatim
26047 #: ../tools/virt-win-reg.pl:128
26048 #, no-wrap
26049 msgid ""
26050 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26051 "\n"
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../tools/virt-win-reg.pl:130
26056 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26057 msgstr ""
26058
26059 # type: textblock
26060 #: ../tools/virt-win-reg.pl:132
26061 msgid ""
26062 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26063 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26064 "style (CRLF) line endings, like this:"
26065 msgstr ""
26066
26067 # type: verbatim
26068 #: ../tools/virt-win-reg.pl:136
26069 #, no-wrap
26070 msgid ""
26071 " $ file software.reg\n"
26072 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26073 " with CRLF line terminators\n"
26074 "\n"
26075 msgstr ""
26076
26077 # type: textblock
26078 #: ../tools/virt-win-reg.pl:140
26079 msgid "This file would need conversion before you could C<--merge> it."
26080 msgstr ""
26081
26082 # type: =head2
26083 #: ../tools/virt-win-reg.pl:142
26084 msgid "SHELL QUOTING"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-win-reg.pl:144
26089 msgid ""
26090 "Be careful when passing parameters containing C<\\> (backslash) in the "
26091 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26092 "(but not both) to protect them from the shell."
26093 msgstr ""
26094
26095 # type: textblock
26096 #: ../tools/virt-win-reg.pl:148
26097 msgid "Paths and value names are case-insensitive."
26098 msgstr ""
26099
26100 # type: =head2
26101 #: ../tools/virt-win-reg.pl:150
26102 msgid "CurrentControlSet etc."
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../tools/virt-win-reg.pl:152
26107 msgid ""
26108 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26109 "Registry at the level of the hive file, and therefore you cannot modify "
26110 "these."
26111 msgstr ""
26112
26113 # type: textblock
26114 #: ../tools/virt-win-reg.pl:156
26115 msgid ""
26116 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26117 "circumstances it might refer to another control set.  The way to find out is "
26118 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26119 msgstr ""
26120
26121 # type: verbatim
26122 #: ../tools/virt-win-reg.pl:160
26123 #, no-wrap
26124 msgid ""
26125 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26126 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26127 " \"Current\"=dword:00000001\n"
26128 " \"Default\"=dword:00000001\n"
26129 " \"Failed\"=dword:00000000\n"
26130 " \"LastKnownGood\"=dword:00000002\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: textblock
26135 #: ../tools/virt-win-reg.pl:167
26136 msgid "\"Default\" is the one which Windows will choose when it boots."
26137 msgstr ""
26138
26139 # type: textblock
26140 #: ../tools/virt-win-reg.pl:169
26141 msgid ""
26142 "Similarly, other C<Current...> keys in the path may need to be replaced."
26143 msgstr ""
26144
26145 # type: =item
26146 #: ../tools/virt-win-reg.pl:216
26147 msgid "B<--merge>"
26148 msgstr ""
26149
26150 # type: textblock
26151 #: ../tools/virt-win-reg.pl:218
26152 msgid ""
26153 "In merge mode, this merges a textual regedit file into the Windows Registry "
26154 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26155 "displays or exports Registry entries instead."
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-win-reg.pl:222
26160 msgid ""
26161 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26162 "result in disk corruption.  However exporting (without this flag)  is always "
26163 "safe."
26164 msgstr ""
26165
26166 # type: =item
26167 #: ../tools/virt-win-reg.pl:230
26168 msgid "B<--encoding> UTF-16LE|ASCII"
26169 msgstr ""
26170
26171 # type: textblock
26172 #: ../tools/virt-win-reg.pl:232
26173 msgid ""
26174 "When merging (only), you may need to specify the encoding for strings to be "
26175 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26176 "(3)/ENCODING STRINGS>."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-win-reg.pl:236
26181 msgid ""
26182 "The default is to use UTF-16LE, which should work with recent versions of "
26183 "Windows."
26184 msgstr ""
26185
26186 # type: textblock
26187 #: ../tools/virt-win-reg.pl:463
26188 msgid ""
26189 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26190 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26191 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26192 msgstr ""
26193
26194 # type: verbatim
26195 #: ../tools/virt-win-reg.pl:481
26196 #, no-wrap
26197 msgid ""
26198 " export LIBGUESTFS_DEBUG=1\n"
26199 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26200 "\n"
26201 msgstr ""
26202
26203 # type: textblock
26204 #: ../tools/virt-win-reg.pl:484
26205 msgid ""
26206 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26207 "redhat.com/>"
26208 msgstr ""