Version 1.7.1.
[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-11-03 21:09+0000\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 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30
23 #: ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
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:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1224
782 #: ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449
783 #: ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560
784 #: ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573
785 #: ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608
786 #: ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849
787 #: ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966
788 #: ../src/guestfs.pod:1970 ../src/guestfs.pod:1974
789 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
790 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:469
791 #: ../src/guestfs-actions.pod:476 ../src/guestfs-actions.pod:483
792 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1426
793 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1434
794 #: ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1446
795 #: ../src/guestfs-actions.pod:1450 ../src/guestfs-actions.pod:1460
796 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1468
797 #: ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600
798 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:1610
799 #: ../src/guestfs-actions.pod:1665 ../src/guestfs-actions.pod:1669
800 #: ../src/guestfs-actions.pod:1674 ../fish/guestfish.pod:364
801 #: ../fish/guestfish.pod:368 ../fish/guestfish.pod:372
802 #: ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13
803 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339
804 #: ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354
805 #: ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056
806 #: ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064
807 #: ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076
808 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
809 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
810 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192
811 #: ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201
812 #: ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248
813 #: ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257
814 #: ../inspector/virt-inspector.pl:584 ../inspector/virt-inspector.pl:588
815 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
816 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
817 msgid "*"
818 msgstr ""
819
820 # type: textblock
821 #: ../src/guestfs.pod:362
822 msgid ""
823 "The kernel version that the command runs under will be different from what "
824 "it expects."
825 msgstr ""
826
827 # type: textblock
828 #: ../src/guestfs.pod:367
829 msgid ""
830 "If the command needs to communicate with daemons, then most likely they "
831 "won't be running."
832 msgstr ""
833
834 # type: textblock
835 #: ../src/guestfs.pod:372
836 msgid "The command will be running in limited memory."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:376
841 msgid ""
842 "The network may not be available unless you enable it (see L</"
843 "guestfs_set_network>)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:381
848 msgid "Only supports Linux guests (not Windows, BSD, etc)."
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:385
853 msgid ""
854 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
855 msgstr ""
856
857 # type: textblock
858 #: ../src/guestfs.pod:390
859 msgid ""
860 "For SELinux guests, you may need to enable SELinux and load policy first.  "
861 "See L</SELINUX> in this manpage."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:395
866 msgid ""
867 "I<Security:> It is not safe to run commands from untrusted, possibly "
868 "malicious guests.  These commands may attempt to exploit your program by "
869 "sending unexpected output.  They could also try to exploit the Linux kernel "
870 "or qemu provided by the libguestfs appliance.  They could use the network "
871 "provided by the libguestfs appliance to bypass ordinary network partitions "
872 "and firewalls.  They could use the elevated privileges or different SELinux "
873 "context of your program to their advantage."
874 msgstr ""
875
876 # type: textblock
877 #: ../src/guestfs.pod:404
878 msgid ""
879 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
880 "(a script which runs when the guest next boots normally), and to have this "
881 "script run the commands you want in the normal context of the running guest, "
882 "network security and so on."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:411
887 msgid ""
888 "The two main API calls to run commands are L</guestfs_command> and L</"
889 "guestfs_sh> (there are also variations)."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:414
894 msgid ""
895 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
896 "shell globs, redirections, etc will work."
897 msgstr ""
898
899 # type: =head2
900 #: ../src/guestfs.pod:417
901 msgid "CONFIGURATION FILES"
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:419
906 msgid ""
907 "To read and write configuration files in Linux guest filesystems, we "
908 "strongly recommend using Augeas.  For example, Augeas understands how to "
909 "read and write, say, a Linux shadow password file or X.org configuration "
910 "file, and so avoids you having to write that code."
911 msgstr ""
912
913 # type: textblock
914 #: ../src/guestfs.pod:424
915 msgid ""
916 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
917 "document Augeas itself here because there is excellent documentation on the "
918 "L<http://augeas.net/> website."
919 msgstr ""
920
921 # type: textblock
922 #: ../src/guestfs.pod:428
923 msgid ""
924 "If you don't want to use Augeas (you fool!) then try calling L</"
925 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
926 "over."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:432
931 msgid "SELINUX"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:434
936 msgid ""
937 "We support SELinux guests.  To ensure that labeling happens correctly in "
938 "SELinux guests, you need to enable SELinux and load the guest's policy:"
939 msgstr ""
940
941 # type: =item
942 #: ../src/guestfs.pod:440 ../src/guestfs.pod:953
943 msgid "1."
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:442
948 msgid "Before launching, do:"
949 msgstr ""
950
951 # type: verbatim
952 #: ../src/guestfs.pod:444
953 #, no-wrap
954 msgid ""
955 " guestfs_set_selinux (g, 1);\n"
956 "\n"
957 msgstr ""
958
959 # type: =item
960 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
961 msgid "2."
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:448
966 msgid ""
967 "After mounting the guest's filesystem(s), load the policy.  This is best "
968 "done by running the L<load_policy(8)> command in the guest itself:"
969 msgstr ""
970
971 # type: verbatim
972 #: ../src/guestfs.pod:452
973 #, no-wrap
974 msgid ""
975 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
976 "\n"
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:454
981 msgid ""
982 "(Older versions of C<load_policy> require you to specify the name of the "
983 "policy file)."
984 msgstr ""
985
986 # type: =item
987 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
988 msgid "3."
989 msgstr ""
990
991 # type: textblock
992 #: ../src/guestfs.pod:459
993 msgid ""
994 "Optionally, set the security context for the API.  The correct security "
995 "context to use can only be known by inspecting the guest.  As an example:"
996 msgstr ""
997
998 # type: verbatim
999 #: ../src/guestfs.pod:463
1000 #, no-wrap
1001 msgid ""
1002 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1003 "\n"
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:467
1008 msgid "This will work for running commands and editing existing files."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:469
1013 msgid ""
1014 "When new files are created, you may need to label them explicitly, for "
1015 "example by running the external command C<restorecon pathname>."
1016 msgstr ""
1017
1018 # type: =head2
1019 #: ../src/guestfs.pod:473
1020 msgid "UMASK"
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:475
1025 msgid ""
1026 "Certain calls are affected by the current file mode creation mask (the "
1027 "\"umask\").  In particular ones which create files or directories, such as "
1028 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1029 "either the default mode that the file is created with or modifies the mode "
1030 "that you supply."
1031 msgstr ""
1032
1033 # type: textblock
1034 #: ../src/guestfs.pod:481
1035 msgid ""
1036 "The default umask is C<022>, so files are created with modes such as C<0644> "
1037 "and directories with C<0755>."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:484
1042 msgid ""
1043 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1044 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1045 "guestfs_chmod> after creating each file or directory."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:488
1050 msgid "For more information about umask, see L<umask(2)>."
1051 msgstr ""
1052
1053 # type: =head1
1054 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
1055 msgid "ENCRYPTED DISKS"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs allows you to access Linux guests which have been encrypted using "
1062 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1063 "standard.  This includes nearly all whole disk encryption systems used by "
1064 "modern Linux guests."
1065 msgstr ""
1066
1067 # type: textblock
1068 #: ../src/guestfs.pod:498
1069 msgid ""
1070 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1071 "returns the string C<crypto_LUKS>)."
1072 msgstr ""
1073
1074 # type: textblock
1075 #: ../src/guestfs.pod:501
1076 msgid ""
1077 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1078 "will require the passphrase!"
1079 msgstr ""
1080
1081 # type: textblock
1082 #: ../src/guestfs.pod:504
1083 msgid ""
1084 "Opening a LUKS device creates a new device mapper device called C</dev/"
1085 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1086 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1087 "from and encrypted to the underlying block device respectively."
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:510
1092 msgid ""
1093 "LVM volume groups on the device can be made visible by calling L</"
1094 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1095 "(s) can now be mounted in the usual way."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:514
1100 msgid ""
1101 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1102 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1103 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1104 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1105 "underlying encrypted block device)."
1106 msgstr ""
1107
1108 # type: =head2
1109 #: ../src/guestfs.pod:521
1110 msgid "INSPECTION"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:523
1115 msgid ""
1116 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1117 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1118 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1119 "frequently used part of this library has been rewritten in C and moved into "
1120 "the core code)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:529
1125 msgid ""
1126 "Add all disks belonging to the unknown virtual machine and call L</"
1127 "guestfs_launch> in the usual way."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:532
1132 msgid ""
1133 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1134 "and certain heuristics, and returns a list of operating systems that were "
1135 "found.  An empty list means none were found.  A single element is the root "
1136 "filesystem of the operating system.  For dual- or multi-boot guests, "
1137 "multiple roots can be returned, each one corresponding to a separate "
1138 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1139 "world of virtualization, but since this scenario can happen, we have built "
1140 "libguestfs to deal with it.)"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:541
1145 msgid ""
1146 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1147 "to get additional details about that operating system.  For example, call L</"
1148 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1149 "Windows and Linux-based operating systems respectively."
1150 msgstr ""
1151
1152 # type: textblock
1153 #: ../src/guestfs.pod:547
1154 msgid ""
1155 "Un*x-like and Linux-based operating systems usually consist of several "
1156 "filesystems which are mounted at boot time (for example, a separate boot "
1157 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1158 "filesystems correspond to mount points.  Call "
1159 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1160 "hash table like this example:"
1161 msgstr ""
1162
1163 # type: verbatim
1164 #: ../src/guestfs.pod:554
1165 #, no-wrap
1166 msgid ""
1167 " /boot => /dev/sda1\n"
1168 " /     => /dev/vg_guest/lv_root\n"
1169 " /usr  => /dev/vg_guest/lv_usr\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:558
1175 msgid ""
1176 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1177 "filesystems as suggested."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:561
1182 msgid ""
1183 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1184 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1185 msgstr ""
1186
1187 # type: textblock
1188 #: ../src/guestfs.pod:565
1189 msgid ""
1190 "Inspection currently only works for some common operating systems.  "
1191 "Contributors are welcome to send patches for other operating systems that we "
1192 "currently cannot detect."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:569
1197 msgid ""
1198 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1199 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1200 "encrypted devices."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:573
1205 msgid ""
1206 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1207 "inspection and caches the results in the guest handle.  Subsequent calls to "
1208 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1209 "read the disks.  If you change the content of the guest disks, you can redo "
1210 "inspection by calling L</guestfs_inspect_os> again."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:580
1215 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:582
1220 msgid ""
1221 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1222 "ntfs-3g.org/> driver."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:585
1227 msgid ""
1228 "DOS and Windows still use drive letters, and the filesystems are always "
1229 "treated as case insensitive by Windows itself, and therefore you might find "
1230 "a Windows configuration file referring to a path like C<c:\\windows"
1231 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1232 "might be referred to as C</WINDOWS/System32>."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:591
1237 msgid ""
1238 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1239 "libguestfs to read the appropriate Windows Registry and configuration files, "
1240 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1241 "inspector(1)>)."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:596
1246 msgid ""
1247 "Replacing backslash characters with forward slash characters is also outside "
1248 "the scope of libguestfs, but something that you can easily do."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:599
1253 msgid ""
1254 "Where we can help is in resolving the case insensitivity of paths.  For "
1255 "this, call L</guestfs_case_sensitive_path>."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:602
1260 msgid ""
1261 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1262 "files, through the library C<hivex> which is part of the libguestfs project "
1263 "although ships as a separate tarball.  You have to locate and download the "
1264 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1265 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1266 "reg(1)> for more help on this issue."
1267 msgstr ""
1268
1269 # type: =head2
1270 #: ../src/guestfs.pod:610
1271 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:612
1276 msgid ""
1277 "Although we don't want to discourage you from using the C API, we will "
1278 "mention here that the same API is also available in other languages."
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:615
1283 msgid ""
1284 "The API is broadly identical in all supported languages.  This means that "
1285 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1286 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1287 "words, a straightforward, predictable isomorphism between each language."
1288 msgstr ""
1289
1290 # type: textblock
1291 #: ../src/guestfs.pod:621
1292 msgid ""
1293 "Error messages are automatically transformed into exceptions if the language "
1294 "supports it."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:624
1299 msgid ""
1300 "We don't try to \"object orientify\" parts of the API in OO languages, "
1301 "although contributors are welcome to write higher level APIs above what we "
1302 "provide in their favourite languages if they wish."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:630
1307 msgid "B<C++>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:632
1312 msgid ""
1313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1314 "identical to the C API.  C++ classes and exceptions are not used."
1315 msgstr ""
1316
1317 # type: =item
1318 #: ../src/guestfs.pod:636
1319 msgid "B<C#>"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:638
1324 msgid ""
1325 "The C# bindings are highly experimental.  Please read the warnings at the "
1326 "top of C<csharp/Libguestfs.cs>."
1327 msgstr ""
1328
1329 # type: =item
1330 #: ../src/guestfs.pod:641
1331 msgid "B<Haskell>"
1332 msgstr ""
1333
1334 # type: textblock
1335 #: ../src/guestfs.pod:643
1336 msgid ""
1337 "This is the only language binding that is working but incomplete.  Only "
1338 "calls which return simple integers have been bound in Haskell, and we are "
1339 "looking for help to complete this binding."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:647
1344 msgid "B<Java>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:649
1349 msgid ""
1350 "Full documentation is contained in the Javadoc which is distributed with "
1351 "libguestfs."
1352 msgstr ""
1353
1354 # type: =item
1355 #: ../src/guestfs.pod:652
1356 msgid "B<OCaml>"
1357 msgstr ""
1358
1359 # type: textblock
1360 #: ../src/guestfs.pod:654
1361 msgid "For documentation see the file C<guestfs.mli>."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:656
1366 msgid "B<Perl>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:658
1371 msgid "For documentation see L<Sys::Guestfs(3)>."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:660
1376 msgid "B<PHP>"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:662
1381 msgid ""
1382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1383 "the php-libguestfs package for your distribution."
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:665
1388 msgid "The PHP binding only works correctly on 64 bit machines."
1389 msgstr ""
1390
1391 # type: =item
1392 #: ../src/guestfs.pod:667
1393 msgid "B<Python>"
1394 msgstr ""
1395
1396 # type: textblock
1397 #: ../src/guestfs.pod:669
1398 msgid "For documentation do:"
1399 msgstr ""
1400
1401 # type: verbatim
1402 #: ../src/guestfs.pod:671
1403 #, no-wrap
1404 msgid ""
1405 " $ python\n"
1406 " >>> import guestfs\n"
1407 " >>> help (guestfs)\n"
1408 "\n"
1409 msgstr ""
1410
1411 # type: =item
1412 #: ../src/guestfs.pod:675
1413 msgid "B<Ruby>"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:677
1418 msgid ""
1419 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1420 "can find examples written in Ruby in the libguestfs source."
1421 msgstr ""
1422
1423 # type: =item
1424 #: ../src/guestfs.pod:680
1425 msgid "B<shell scripts>"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:682
1430 msgid "For documentation see L<guestfish(1)>."
1431 msgstr ""
1432
1433 # type: =head2
1434 #: ../src/guestfs.pod:686
1435 msgid "LIBGUESTFS GOTCHAS"
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:688
1440 msgid ""
1441 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1442 "system [...] that works in the way it is documented but is counterintuitive "
1443 "and almost invites mistakes.\""
1444 msgstr ""
1445
1446 # type: textblock
1447 #: ../src/guestfs.pod:692
1448 msgid ""
1449 "Since we developed libguestfs and the associated tools, there are several "
1450 "things we would have designed differently, but are now stuck with for "
1451 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1452 "release, you can expect these to change.  Beware of them."
1453 msgstr ""
1454
1455 # type: =item
1456 #: ../src/guestfs.pod:700
1457 msgid "Autosync / forgetting to sync."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:702
1462 msgid ""
1463 "When modifying a filesystem from C or another language, you B<must> unmount "
1464 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1465 "libguestfs handle.  You can also call:"
1466 msgstr ""
1467
1468 # type: verbatim
1469 #: ../src/guestfs.pod:706
1470 #, no-wrap
1471 msgid ""
1472 " guestfs_set_autosync (g, 1);\n"
1473 "\n"
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:708
1478 msgid ""
1479 "to have the unmount/sync done automatically for you when the handle 'g' is "
1480 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:712
1485 msgid ""
1486 "If you forget to do this, then it is entirely possible that your changes "
1487 "won't be written out, or will be partially written, or (very rarely) that "
1488 "you'll get disk corruption."
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:716
1493 msgid ""
1494 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1495 "guestfish scripts that forget to sync will work just fine, which can make "
1496 "this very puzzling if you are trying to debug a problem."
1497 msgstr ""
1498
1499 # type: textblock
1500 #: ../src/guestfs.pod:720
1501 msgid ""
1502 "Update: Autosync is enabled by default for all API users starting from "
1503 "libguestfs 1.5.24."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:723
1508 msgid "Mount option C<-o sync> should not be the default."
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:725
1513 msgid ""
1514 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1515 "However C<-o sync> does not add any reliability benefit, but does have a "
1516 "very large performance impact."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:729
1521 msgid ""
1522 "The work around is to use L</guestfs_mount_options> and set the mount "
1523 "options that you actually want to use."
1524 msgstr ""
1525
1526 # type: =item
1527 #: ../src/guestfs.pod:732
1528 msgid "Read-only should be the default."
1529 msgstr ""
1530
1531 # type: textblock
1532 #: ../src/guestfs.pod:734
1533 msgid ""
1534 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1535 "specify I<--rw> if you want to make changes to the image."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:737
1540 msgid "This would reduce the potential to corrupt live VM images."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:739
1545 msgid ""
1546 "Note that many filesystems change the disk when you just mount and unmount, "
1547 "even if you didn't perform any writes.  You need to use L</"
1548 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:743
1553 msgid "guestfish command line is hard to use."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:745
1558 msgid ""
1559 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1560 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1561 "exist, so it fails.  In earlier versions of guestfish the error message was "
1562 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1563 "we should have used C<guestfish -c command> to run commands."
1564 msgstr ""
1565
1566 # type: =item
1567 #: ../src/guestfs.pod:752
1568 msgid "guestfish megabyte modifiers don't work right on all commands"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:754
1573 msgid ""
1574 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1575 "other modifiers).  What guestfish actually does is to multiply the number "
1576 "part by the modifier part and pass the result to the C API.  However this "
1577 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1578 "expecting some other unit (eg. megabytes)."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:761
1583 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1584 msgstr ""
1585
1586 # type: verbatim
1587 #: ../src/guestfs.pod:763
1588 #, no-wrap
1589 msgid ""
1590 " lvcreate LV VG 100M\n"
1591 "\n"
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1598 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1599 "megabytes * megabytes) logical volume.  The error message you get from this "
1600 "is also a little obscure."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:770
1605 msgid ""
1606 "This could be fixed in the generator by specially marking parameters and "
1607 "return values which take bytes or other units."
1608 msgstr ""
1609
1610 # type: =item
1611 #: ../src/guestfs.pod:773
1612 msgid "Ambiguity between devices and paths"
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:775
1617 msgid ""
1618 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1619 "sdb2>) and a similar pathname.  A file might just happen to be called "
1620 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1621 msgstr ""
1622
1623 # type: textblock
1624 #: ../src/guestfs.pod:780
1625 msgid ""
1626 "In the current API we usually resolve this ambiguity by having two separate "
1627 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1628 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1629 "detecting if the path supplied begins with C</dev/>."
1630 msgstr ""
1631
1632 # type: textblock
1633 #: ../src/guestfs.pod:786
1634 msgid ""
1635 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1636 "make paths/devices into structured names.  One way to do this would be to "
1637 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1638 "aspect of grub.  Another way would be to use a structured type, equivalent "
1639 "to this OCaml type:"
1640 msgstr ""
1641
1642 # type: verbatim
1643 #: ../src/guestfs.pod:792
1644 #, no-wrap
1645 msgid ""
1646 " type path = Path of string | Device of int | Partition of int * int\n"
1647 "\n"
1648 msgstr ""
1649
1650 # type: textblock
1651 #: ../src/guestfs.pod:794
1652 msgid "which would allow you to pass arguments like:"
1653 msgstr ""
1654
1655 # type: verbatim
1656 #: ../src/guestfs.pod:796
1657 #, no-wrap
1658 msgid ""
1659 " Path \"/foo/bar\"\n"
1660 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1661 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1662 " Path \"/dev/sdb2\"    (* not a device *)\n"
1663 "\n"
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:801
1668 msgid ""
1669 "As you can see there are still problems to resolve even with this "
1670 "representation.  Also consider how it might work in guestfish."
1671 msgstr ""
1672
1673 # type: =head2
1674 #: ../src/guestfs.pod:806
1675 msgid "PROTOCOL LIMITS"
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:808
1680 msgid ""
1681 "Internally libguestfs uses a message-based protocol to pass API calls and "
1682 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1683 "plenty more detail about this).  The maximum message size used by the "
1684 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1685 "aware of this limit.  The API calls which may be affected are individually "
1686 "documented, with a link back to this section of the documentation."
1687 msgstr ""
1688
1689 # type: textblock
1690 #: ../src/guestfs.pod:816
1691 msgid ""
1692 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1693 "a simple string.  Because this string is at some point internally encoded as "
1694 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1695 "the requested file is larger than this then you will get an error."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:822
1700 msgid ""
1701 "In order to transfer large files into and out of the guest filesystem, you "
1702 "need to use particular calls that support this.  The sections L</UPLOADING> "
1703 "and L</DOWNLOADING> document how to do this."
1704 msgstr ""
1705
1706 # type: textblock
1707 #: ../src/guestfs.pod:826
1708 msgid ""
1709 "You might also consider mounting the disk image using our FUSE filesystem "
1710 "support (L<guestmount(1)>)."
1711 msgstr ""
1712
1713 # type: =head2
1714 #: ../src/guestfs.pod:829
1715 msgid "KEYS AND PASSPHRASES"
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:831
1720 msgid ""
1721 "Certain libguestfs calls take a parameter that contains sensitive key "
1722 "material, passed in as a C string."
1723 msgstr ""
1724
1725 # type: textblock
1726 #: ../src/guestfs.pod:834
1727 msgid ""
1728 "In the future we would hope to change the libguestfs implementation so that "
1729 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1730 "swap.  However this is I<not> done at the moment, because of the complexity "
1731 "of such an implementation."
1732 msgstr ""
1733
1734 # type: textblock
1735 #: ../src/guestfs.pod:839
1736 msgid ""
1737 "Therefore you should be aware that any key parameter you pass to libguestfs "
1738 "might end up being written out to the swap partition.  If this is a concern, "
1739 "scrub the swap partition or don't use libguestfs on encrypted devices."
1740 msgstr ""
1741
1742 # type: =head1
1743 #: ../src/guestfs.pod:844
1744 msgid "CONNECTION MANAGEMENT"
1745 msgstr ""
1746
1747 # type: =head2
1748 #: ../src/guestfs.pod:846
1749 msgid "guestfs_h *"
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:848
1754 msgid ""
1755 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1756 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1757 "handle and release all resources used."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:852
1762 msgid ""
1763 "For information on using multiple handles and threads, see the section L</"
1764 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1765 msgstr ""
1766
1767 # type: =head2
1768 #: ../src/guestfs.pod:855
1769 msgid "guestfs_create"
1770 msgstr ""
1771
1772 # type: verbatim
1773 #: ../src/guestfs.pod:857
1774 #, no-wrap
1775 msgid ""
1776 " guestfs_h *guestfs_create (void);\n"
1777 "\n"
1778 msgstr ""
1779
1780 # type: textblock
1781 #: ../src/guestfs.pod:859
1782 msgid "Create a connection handle."
1783 msgstr ""
1784
1785 # type: textblock
1786 #: ../src/guestfs.pod:861
1787 msgid ""
1788 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1789 "on the handle at least once."
1790 msgstr ""
1791
1792 # type: textblock
1793 #: ../src/guestfs.pod:864
1794 msgid ""
1795 "This function returns a non-NULL pointer to a handle on success or NULL on "
1796 "error."
1797 msgstr ""
1798
1799 # type: textblock
1800 #: ../src/guestfs.pod:867
1801 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1802 msgstr ""
1803
1804 # type: textblock
1805 #: ../src/guestfs.pod:869
1806 msgid ""
1807 "You may also want to configure error handling for the handle.  See L</ERROR "
1808 "HANDLING> section below."
1809 msgstr ""
1810
1811 # type: =head2
1812 #: ../src/guestfs.pod:872
1813 msgid "guestfs_close"
1814 msgstr ""
1815
1816 # type: verbatim
1817 #: ../src/guestfs.pod:874
1818 #, no-wrap
1819 msgid ""
1820 " void guestfs_close (guestfs_h *g);\n"
1821 "\n"
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:876
1826 msgid "This closes the connection handle and frees up all resources used."
1827 msgstr ""
1828
1829 # type: =head1
1830 #: ../src/guestfs.pod:878
1831 msgid "ERROR HANDLING"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:880
1836 msgid ""
1837 "API functions can return errors.  For example, almost all functions that "
1838 "return C<int> will return C<-1> to indicate an error."
1839 msgstr ""
1840
1841 # type: textblock
1842 #: ../src/guestfs.pod:883
1843 msgid ""
1844 "Additional information is available for errors: an error message string and "
1845 "optionally an error number (errno) if the thing that failed was a system "
1846 "call."
1847 msgstr ""
1848
1849 # type: textblock
1850 #: ../src/guestfs.pod:887
1851 msgid ""
1852 "You can get at the additional information about the last error on the handle "
1853 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1854 "up an error handler with L</guestfs_set_error_handler>."
1855 msgstr ""
1856
1857 # type: textblock
1858 #: ../src/guestfs.pod:892
1859 msgid ""
1860 "When the handle is created, a default error handler is installed which "
1861 "prints the error message string to C<stderr>.  For small short-running "
1862 "command line programs it is sufficient to do:"
1863 msgstr ""
1864
1865 # type: verbatim
1866 #: ../src/guestfs.pod:896
1867 #, no-wrap
1868 msgid ""
1869 " if (guestfs_launch (g) == -1)\n"
1870 "   exit (EXIT_FAILURE);\n"
1871 "\n"
1872 msgstr ""
1873
1874 # type: textblock
1875 #: ../src/guestfs.pod:899
1876 msgid ""
1877 "since the default error handler will ensure that an error message has been "
1878 "printed to C<stderr> before the program exits."
1879 msgstr ""
1880
1881 # type: textblock
1882 #: ../src/guestfs.pod:902
1883 msgid ""
1884 "For other programs the caller will almost certainly want to install an "
1885 "alternate error handler or do error handling in-line like this:"
1886 msgstr ""
1887
1888 # type: verbatim
1889 #: ../src/guestfs.pod:905
1890 #, no-wrap
1891 msgid ""
1892 " g = guestfs_create ();\n"
1893 " \n"
1894 msgstr ""
1895
1896 # type: verbatim
1897 #: ../src/guestfs.pod:907
1898 #, no-wrap
1899 msgid ""
1900 " /* This disables the default behaviour of printing errors\n"
1901 "    on stderr. */\n"
1902 " guestfs_set_error_handler (g, NULL, NULL);\n"
1903 " \n"
1904 msgstr ""
1905
1906 # type: verbatim
1907 #: ../src/guestfs.pod:911
1908 #, no-wrap
1909 msgid ""
1910 " if (guestfs_launch (g) == -1) {\n"
1911 "   /* Examine the error message and print it etc. */\n"
1912 "   char *msg = guestfs_last_error (g);\n"
1913 "   int errnum = guestfs_last_errno (g);\n"
1914 "   fprintf (stderr, \"%s\\n\", msg);\n"
1915 "   /* ... */\n"
1916 "  }\n"
1917 "\n"
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:919
1922 msgid ""
1923 "Out of memory errors are handled differently.  The default action is to call "
1924 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1925 "guestfs_set_out_of_memory_handler>."
1926 msgstr ""
1927
1928 # type: textblock
1929 #: ../src/guestfs.pod:923
1930 msgid ""
1931 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1932 "because there is no handle if this happens there is no way to get additional "
1933 "error information.  However L</guestfs_create> is supposed to be a "
1934 "lightweight operation which can only fail because of insufficient memory (it "
1935 "returns NULL in this case)."
1936 msgstr ""
1937
1938 # type: =head2
1939 #: ../src/guestfs.pod:929
1940 msgid "guestfs_last_error"
1941 msgstr ""
1942
1943 # type: verbatim
1944 #: ../src/guestfs.pod:931
1945 #, no-wrap
1946 msgid ""
1947 " const char *guestfs_last_error (guestfs_h *g);\n"
1948 "\n"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:933
1953 msgid ""
1954 "This returns the last error message that happened on C<g>.  If there has not "
1955 "been an error since the handle was created, then this returns C<NULL>."
1956 msgstr ""
1957
1958 # type: textblock
1959 #: ../src/guestfs.pod:937
1960 msgid ""
1961 "The lifetime of the returned string is until the next error occurs, or L</"
1962 "guestfs_close> is called."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:940
1967 msgid "guestfs_last_errno"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:942
1972 #, no-wrap
1973 msgid ""
1974 " int guestfs_last_errno (guestfs_h *g);\n"
1975 "\n"
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:944
1980 msgid "This returns the last error number (errno) that happened on C<g>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:946
1985 msgid "If successful, an errno integer not equal to zero is returned."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:948
1990 msgid ""
1991 "If no error, this returns 0.  This call can return 0 in three situations:"
1992 msgstr ""
1993
1994 # type: textblock
1995 #: ../src/guestfs.pod:955
1996 msgid "There has not been any error on the handle."
1997 msgstr ""
1998
1999 # type: textblock
2000 #: ../src/guestfs.pod:959
2001 msgid ""
2002 "There has been an error but the errno was meaningless.  This corresponds to "
2003 "the case where the error did not come from a failed system call, but for "
2004 "some other reason."
2005 msgstr ""
2006
2007 # type: textblock
2008 #: ../src/guestfs.pod:965
2009 msgid ""
2010 "There was an error from a failed system call, but for some reason the errno "
2011 "was not captured and returned.  This usually indicates a bug in libguestfs."
2012 msgstr ""
2013
2014 # type: textblock
2015 #: ../src/guestfs.pod:971
2016 msgid ""
2017 "Libguestfs tries to convert the errno from inside the applicance into a "
2018 "corresponding errno for the caller (not entirely trivial: the appliance "
2019 "might be running a completely different operating system from the library "
2020 "and error numbers are not standardized across Un*xen).  If this could not be "
2021 "done, then the error is translated to C<EINVAL>.  In practice this should "
2022 "only happen in very rare circumstances."
2023 msgstr ""
2024
2025 # type: =head2
2026 #: ../src/guestfs.pod:979
2027 msgid "guestfs_set_error_handler"
2028 msgstr ""
2029
2030 # type: verbatim
2031 #: ../src/guestfs.pod:981
2032 #, no-wrap
2033 msgid ""
2034 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2035 "                                           void *opaque,\n"
2036 "                                           const char *msg);\n"
2037 " void guestfs_set_error_handler (guestfs_h *g,\n"
2038 "                                 guestfs_error_handler_cb cb,\n"
2039 "                                 void *opaque);\n"
2040 "\n"
2041 msgstr ""
2042
2043 # type: textblock
2044 #: ../src/guestfs.pod:988
2045 msgid ""
2046 "The callback C<cb> will be called if there is an error.  The parameters "
2047 "passed to the callback are an opaque data pointer and the error message "
2048 "string."
2049 msgstr ""
2050
2051 # type: textblock
2052 #: ../src/guestfs.pod:992
2053 msgid ""
2054 "C<errno> is not passed to the callback.  To get that the callback must call "
2055 "L</guestfs_last_errno>."
2056 msgstr ""
2057
2058 # type: textblock
2059 #: ../src/guestfs.pod:995
2060 msgid ""
2061 "Note that the message string C<msg> is freed as soon as the callback "
2062 "function returns, so if you want to stash it somewhere you must make your "
2063 "own copy."
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:999
2068 msgid "The default handler prints messages on C<stderr>."
2069 msgstr ""
2070
2071 # type: textblock
2072 #: ../src/guestfs.pod:1001
2073 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2074 msgstr ""
2075
2076 # type: =head2
2077 #: ../src/guestfs.pod:1003
2078 msgid "guestfs_get_error_handler"
2079 msgstr ""
2080
2081 # type: verbatim
2082 #: ../src/guestfs.pod:1005
2083 #, no-wrap
2084 msgid ""
2085 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2086 "                                                     void **opaque_rtn);\n"
2087 "\n"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1008
2092 msgid "Returns the current error handler callback."
2093 msgstr ""
2094
2095 # type: =head2
2096 #: ../src/guestfs.pod:1010
2097 msgid "guestfs_set_out_of_memory_handler"
2098 msgstr ""
2099
2100 # type: verbatim
2101 #: ../src/guestfs.pod:1012
2102 #, no-wrap
2103 msgid ""
2104 " typedef void (*guestfs_abort_cb) (void);\n"
2105 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2106 "                                        guestfs_abort_cb);\n"
2107 "\n"
2108 msgstr ""
2109
2110 # type: textblock
2111 #: ../src/guestfs.pod:1016
2112 msgid ""
2113 "The callback C<cb> will be called if there is an out of memory situation.  "
2114 "I<Note this callback must not return>."
2115 msgstr ""
2116
2117 # type: textblock
2118 #: ../src/guestfs.pod:1019
2119 msgid "The default is to call L<abort(3)>."
2120 msgstr ""
2121
2122 # type: textblock
2123 #: ../src/guestfs.pod:1021
2124 msgid ""
2125 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2126 msgstr ""
2127
2128 # type: =head2
2129 #: ../src/guestfs.pod:1024
2130 msgid "guestfs_get_out_of_memory_handler"
2131 msgstr ""
2132
2133 # type: verbatim
2134 #: ../src/guestfs.pod:1026
2135 #, no-wrap
2136 msgid ""
2137 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2138 "\n"
2139 msgstr ""
2140
2141 # type: textblock
2142 #: ../src/guestfs.pod:1028
2143 msgid "This returns the current out of memory handler."
2144 msgstr ""
2145
2146 # type: =head1
2147 #: ../src/guestfs.pod:1030
2148 msgid "PATH"
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1032
2153 msgid ""
2154 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #: ../src/guestfs.pod:1035
2160 msgid ""
2161 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2162 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #: ../src/guestfs.pod:1038
2167 msgid ""
2168 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2169 "to change the directories that libguestfs will search in.  The value is a "
2170 "colon-separated list of paths.  The current directory is I<not> searched "
2171 "unless the path contains an empty element or C<.>.  For example "
2172 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2173 "then C</usr/lib/guestfs>."
2174 msgstr ""
2175
2176 # type: =head1
2177 #: ../src/guestfs.pod:1045
2178 msgid "HIGH-LEVEL API ACTIONS"
2179 msgstr ""
2180
2181 # type: =head2
2182 #: ../src/guestfs.pod:1047
2183 msgid "ABI GUARANTEE"
2184 msgstr ""
2185
2186 # type: textblock
2187 #: ../src/guestfs.pod:1049
2188 msgid ""
2189 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2190 "actions as outlined in this section.  Although we will deprecate some "
2191 "actions, for example if they get replaced by newer calls, we will keep the "
2192 "old actions forever.  This allows you the developer to program in confidence "
2193 "against the libguestfs API."
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:860
2198 msgid "@ACTIONS@"
2199 msgstr ""
2200
2201 # type: =head1
2202 #: ../src/guestfs.pod:1057
2203 msgid "STRUCTURES"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1059
2208 msgid "@STRUCTS@"
2209 msgstr ""
2210
2211 # type: =head1
2212 #: ../src/guestfs.pod:1061
2213 msgid "AVAILABILITY"
2214 msgstr ""
2215
2216 # type: =head2
2217 #: ../src/guestfs.pod:1063
2218 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2219 msgstr ""
2220
2221 # type: textblock
2222 #: ../src/guestfs.pod:1065
2223 msgid ""
2224 "Using L</guestfs_available> you can test availability of the following "
2225 "groups of functions.  This test queries the appliance to see if the "
2226 "appliance you are currently using supports the functionality."
2227 msgstr ""
2228
2229 # type: textblock
2230 #: ../src/guestfs.pod:1070
2231 msgid "@AVAILABILITY@"
2232 msgstr ""
2233
2234 # type: =head2
2235 #: ../src/guestfs.pod:1072
2236 msgid "GUESTFISH supported COMMAND"
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1074
2241 msgid ""
2242 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2243 "prints out the available groups and whether they are supported by this build "
2244 "of libguestfs.  Note however that you have to do C<run> first."
2245 msgstr ""
2246
2247 # type: =head2
2248 #: ../src/guestfs.pod:1079
2249 msgid "SINGLE CALLS AT COMPILE TIME"
2250 msgstr ""
2251
2252 # type: textblock
2253 #: ../src/guestfs.pod:1081
2254 msgid ""
2255 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2256 "function, such as:"
2257 msgstr ""
2258
2259 # type: verbatim
2260 #: ../src/guestfs.pod:1084
2261 #, no-wrap
2262 msgid ""
2263 " #define LIBGUESTFS_HAVE_DD 1\n"
2264 "\n"
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1086
2269 msgid "if L</guestfs_dd> is available."
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1088
2274 msgid ""
2275 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2276 "function is available at compile time, we recommended using build tools such "
2277 "as autoconf or cmake.  For example in autotools you could use:"
2278 msgstr ""
2279
2280 # type: verbatim
2281 #: ../src/guestfs.pod:1093
2282 #, no-wrap
2283 msgid ""
2284 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2285 " AC_CHECK_FUNCS([guestfs_dd])\n"
2286 "\n"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1096
2291 msgid ""
2292 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2293 "in your program."
2294 msgstr ""
2295
2296 # type: =head2
2297 #: ../src/guestfs.pod:1099
2298 msgid "SINGLE CALLS AT RUN TIME"
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1101
2303 msgid ""
2304 "Testing at compile time doesn't guarantee that a function really exists in "
2305 "the library.  The reason is that you might be dynamically linked against a "
2306 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2307 "This situation unfortunately results in a segmentation fault, which is a "
2308 "shortcoming of the C dynamic linking system itself."
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1108
2313 msgid ""
2314 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2315 "in this example program (note that you still need the compile time check as "
2316 "well):"
2317 msgstr ""
2318
2319 # type: verbatim
2320 #: ../src/guestfs.pod:1112
2321 #, no-wrap
2322 msgid ""
2323 " #include <stdio.h>\n"
2324 " #include <stdlib.h>\n"
2325 " #include <unistd.h>\n"
2326 " #include <dlfcn.h>\n"
2327 " #include <guestfs.h>\n"
2328 " \n"
2329 msgstr ""
2330
2331 # type: verbatim
2332 #: ../src/guestfs.pod:1118
2333 #, no-wrap
2334 msgid ""
2335 " main ()\n"
2336 " {\n"
2337 " #ifdef LIBGUESTFS_HAVE_DD\n"
2338 "   void *dl;\n"
2339 "   int has_function;\n"
2340 " \n"
2341 msgstr ""
2342
2343 # type: verbatim
2344 #: ../src/guestfs.pod:1124
2345 #, no-wrap
2346 msgid ""
2347 "   /* Test if the function guestfs_dd is really available. */\n"
2348 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2349 "   if (!dl) {\n"
2350 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2351 "     exit (EXIT_FAILURE);\n"
2352 "   }\n"
2353 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2354 "   dlclose (dl);\n"
2355 " \n"
2356 msgstr ""
2357
2358 # type: verbatim
2359 #: ../src/guestfs.pod:1133
2360 #, no-wrap
2361 msgid ""
2362 "   if (!has_function)\n"
2363 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2364 "   else {\n"
2365 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2366 "     /* Now it's safe to call\n"
2367 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2368 "     */\n"
2369 "   }\n"
2370 " #else\n"
2371 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2372 " #endif\n"
2373 "  }\n"
2374 "\n"
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1146
2379 msgid ""
2380 "You may think the above is an awful lot of hassle, and it is.  There are "
2381 "other ways outside of the C linking system to ensure that this kind of "
2382 "incompatibility never arises, such as using package versioning:"
2383 msgstr ""
2384
2385 # type: verbatim
2386 #: ../src/guestfs.pod:1151
2387 #, no-wrap
2388 msgid ""
2389 " Requires: libguestfs >= 1.0.80\n"
2390 "\n"
2391 msgstr ""
2392
2393 # type: =head1
2394 #: ../src/guestfs.pod:1153
2395 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2396 msgstr ""
2397
2398 # type: textblock
2399 #: ../src/guestfs.pod:1155
2400 msgid ""
2401 "A recent feature of the API is the introduction of calls which take optional "
2402 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2403 "takes variable arguments (ie. C<...>), as in this example:"
2404 msgstr ""
2405
2406 # type: verbatim
2407 #: ../src/guestfs.pod:1160
2408 #, no-wrap
2409 msgid ""
2410 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2411 "\n"
2412 msgstr ""
2413
2414 # type: textblock
2415 #: ../src/guestfs.pod:1162
2416 msgid ""
2417 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2418 "call with no optional arguments specified:"
2419 msgstr ""
2420
2421 # type: verbatim
2422 #: ../src/guestfs.pod:1165
2423 #, no-wrap
2424 msgid ""
2425 " guestfs_add_drive_opts (g, filename, -1);\n"
2426 "\n"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1167
2431 msgid "With a single optional argument:"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1169
2436 #, no-wrap
2437 msgid ""
2438 " guestfs_add_drive_opts (g, filename,\n"
2439 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2440 "                         -1);\n"
2441 "\n"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1173
2446 msgid "With two:"
2447 msgstr ""
2448
2449 # type: verbatim
2450 #: ../src/guestfs.pod:1175
2451 #, no-wrap
2452 msgid ""
2453 " guestfs_add_drive_opts (g, filename,\n"
2454 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2455 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2456 "                         -1);\n"
2457 "\n"
2458 msgstr ""
2459
2460 # type: textblock
2461 #: ../src/guestfs.pod:1180
2462 msgid ""
2463 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2464 "happen!"
2465 msgstr ""
2466
2467 # type: =head2
2468 #: ../src/guestfs.pod:1183
2469 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1185
2474 msgid ""
2475 "The second variant has the same name with the suffix C<_va>, which works the "
2476 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2477 "example function, this is declared:"
2478 msgstr ""
2479
2480 # type: verbatim
2481 #: ../src/guestfs.pod:1189
2482 #, no-wrap
2483 msgid ""
2484 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2485 "                                va_list args);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: =head2
2490 #: ../src/guestfs.pod:1192
2491 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1194
2496 msgid ""
2497 "The third variant is useful where you need to construct these calls.  You "
2498 "pass in a structure where you fill in the optional fields.  The structure "
2499 "has a bitmask as the first element which you must set to indicate which "
2500 "fields you have filled in.  For our example function the structure and call "
2501 "are declared:"
2502 msgstr ""
2503
2504 # type: verbatim
2505 #: ../src/guestfs.pod:1200
2506 #, no-wrap
2507 msgid ""
2508 " struct guestfs_add_drive_opts_argv {\n"
2509 "   uint64_t bitmask;\n"
2510 "   int readonly;\n"
2511 "   const char *format;\n"
2512 "   /* ... */\n"
2513 " };\n"
2514 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2515 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2516 "\n"
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1209
2521 msgid "You could call it like this:"
2522 msgstr ""
2523
2524 # type: verbatim
2525 #: ../src/guestfs.pod:1211
2526 #, no-wrap
2527 msgid ""
2528 " struct guestfs_add_drive_opts_argv optargs = {\n"
2529 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2530 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2531 "   .readonly = 1,\n"
2532 "   .format = \"qcow2\"\n"
2533 " };\n"
2534 " \n"
2535 msgstr ""
2536
2537 # type: verbatim
2538 #: ../src/guestfs.pod:1218
2539 #, no-wrap
2540 msgid ""
2541 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2542 "\n"
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11
2547 #: ../src/guestfs-actions.pod:1661 ../fish/guestfish-actions.pod:9
2548 #: ../fish/guestfish-actions.pod:1244
2549 msgid "Notes:"
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1226
2554 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1231
2559 msgid "You do not need to fill in all fields of the structure."
2560 msgstr ""
2561
2562 # type: textblock
2563 #: ../src/guestfs.pod:1235
2564 msgid ""
2565 "There must be a one-to-one correspondence between fields of the structure "
2566 "that are filled in, and bits set in the bitmask."
2567 msgstr ""
2568
2569 # type: =head2
2570 #: ../src/guestfs.pod:1240
2571 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1242
2576 msgid ""
2577 "In other languages, optional arguments are expressed in the way that is "
2578 "natural for that language.  We refer you to the language-specific "
2579 "documentation for more details on that."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1246
2584 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2585 msgstr ""
2586
2587 # type: =end
2588 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2589 msgid "html"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1250
2594 msgid ""
2595 "<!-- old anchor for the next section --> <a name="
2596 "\"state_machine_and_low_level_event_api\"/>"
2597 msgstr ""
2598
2599 # type: =head1
2600 #: ../src/guestfs.pod:1255
2601 msgid "ARCHITECTURE"
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1257
2606 msgid ""
2607 "Internally, libguestfs is implemented by running an appliance (a special "
2608 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2609 "process of the main program."
2610 msgstr ""
2611
2612 # type: verbatim
2613 #: ../src/guestfs.pod:1261
2614 #, no-wrap
2615 msgid ""
2616 "  ___________________\n"
2617 " /                   \\\n"
2618 " | main program      |\n"
2619 " |                   |\n"
2620 " |                   |           child process / appliance\n"
2621 " |                   |           __________________________\n"
2622 " |                   |          / qemu                     \\\n"
2623 " +-------------------+   RPC    |      +-----------------+ |\n"
2624 " | libguestfs     <--------------------> guestfsd        | |\n"
2625 " |                   |          |      +-----------------+ |\n"
2626 " \\___________________/          |      | Linux kernel    | |\n"
2627 "                                |      +--^--------------+ |\n"
2628 "                                \\_________|________________/\n"
2629 "                                          |\n"
2630 "                                   _______v______\n"
2631 "                                  /              \\\n"
2632 "                                  | Device or    |\n"
2633 "                                  | disk image   |\n"
2634 "                                  \\______________/\n"
2635 "\n"
2636 msgstr ""
2637
2638 # type: textblock
2639 #: ../src/guestfs.pod:1281
2640 msgid ""
2641 "The library, linked to the main program, creates the child process and hence "
2642 "the appliance in the L</guestfs_launch> function."
2643 msgstr ""
2644
2645 # type: textblock
2646 #: ../src/guestfs.pod:1284
2647 msgid ""
2648 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2649 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2650 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2651 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2652 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2653 "attached to the qemu process which translates device access by the "
2654 "appliance's Linux kernel into accesses to the image."
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1293
2659 msgid ""
2660 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2661 "Although the disk image you are attached to might also be used by some "
2662 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2663 "care if both libguestfs's qemu process and your virtual machine are trying "
2664 "to update the disk image at the same time, since these usually results in "
2665 "massive disk corruption)."
2666 msgstr ""
2667
2668 # type: =head1
2669 #: ../src/guestfs.pod:1300
2670 msgid "STATE MACHINE"
2671 msgstr ""
2672
2673 # type: textblock
2674 #: ../src/guestfs.pod:1302
2675 msgid "libguestfs uses a state machine to model the child process:"
2676 msgstr ""
2677
2678 # type: verbatim
2679 #: ../src/guestfs.pod:1304
2680 #, no-wrap
2681 msgid ""
2682 "                         |\n"
2683 "                    guestfs_create\n"
2684 "                         |\n"
2685 "                         |\n"
2686 "                     ____V_____\n"
2687 "                    /          \\\n"
2688 "                    |  CONFIG  |\n"
2689 "                    \\__________/\n"
2690 "                     ^ ^   ^  \\\n"
2691 "                    /  |    \\  \\ guestfs_launch\n"
2692 "                   /   |    _\\__V______\n"
2693 "                  /    |   /           \\\n"
2694 "                 /     |   | LAUNCHING |\n"
2695 "                /      |   \\___________/\n"
2696 "               /       |       /\n"
2697 "              /        |  guestfs_launch\n"
2698 "             /         |     /\n"
2699 "    ______  /        __|____V\n"
2700 "   /      \\ ------> /        \\\n"
2701 "   | BUSY |         | READY  |\n"
2702 "   \\______/ <------ \\________/\n"
2703 "\n"
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1326
2708 msgid ""
2709 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2710 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2711 "(3) alternating between READY and BUSY as commands are issued to, and "
2712 "carried out by, the child process."
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1331
2717 msgid ""
2718 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2719 "asynchronously at any time (eg. due to some internal error), and that causes "
2720 "the state to transition back to CONFIG."
2721 msgstr ""
2722
2723 # type: textblock
2724 #: ../src/guestfs.pod:1335
2725 msgid ""
2726 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2727 "issued when in the CONFIG state."
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1338
2732 msgid ""
2733 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2734 "L</guestfs_launch> blocks until the child process is READY to accept "
2735 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2736 "moves the state from CONFIG to LAUNCHING while it is running."
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1344
2741 msgid ""
2742 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2743 "state.  These API calls block waiting for the command to be carried out (ie. "
2744 "the state to transition to BUSY and then back to READY).  There are no non-"
2745 "blocking versions, and no way to issue more than one command per handle at "
2746 "the same time."
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1350
2751 msgid ""
2752 "Finally, the child process sends asynchronous messages back to the main "
2753 "program, such as kernel log messages.  You can register a callback to "
2754 "receive these messages."
2755 msgstr ""
2756
2757 # type: =head2
2758 #: ../src/guestfs.pod:1354
2759 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2760 msgstr ""
2761
2762 # type: textblock
2763 #: ../src/guestfs.pod:1356
2764 msgid ""
2765 "The child process generates events in some situations.  Current events "
2766 "include: receiving a log message, the child process exits."
2767 msgstr ""
2768
2769 # type: textblock
2770 #: ../src/guestfs.pod:1359
2771 msgid ""
2772 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2773 "types of events."
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1362
2778 msgid ""
2779 "Only I<one callback of each type> can be registered for each handle.  "
2780 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2781 "that type.  Cancel all callbacks of this type by calling this function with "
2782 "C<cb> set to C<NULL>."
2783 msgstr ""
2784
2785 # type: =head2
2786 #: ../src/guestfs.pod:1367
2787 msgid "guestfs_set_log_message_callback"
2788 msgstr ""
2789
2790 # type: verbatim
2791 #: ../src/guestfs.pod:1369
2792 #, no-wrap
2793 msgid ""
2794 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2795 "                                         char *buf, int len);\n"
2796 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2797 "                                        guestfs_log_message_cb cb,\n"
2798 "                                        void *opaque);\n"
2799 "\n"
2800 msgstr ""
2801
2802 # type: textblock
2803 #: ../src/guestfs.pod:1375
2804 msgid ""
2805 "The callback function C<cb> will be called whenever qemu or the guest writes "
2806 "anything to the console."
2807 msgstr ""
2808
2809 # type: textblock
2810 #: ../src/guestfs.pod:1378
2811 msgid "Use this function to capture kernel messages and similar."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1380
2816 msgid ""
2817 "Normally there is no log message handler, and log messages are just "
2818 "discarded."
2819 msgstr ""
2820
2821 # type: =head2
2822 #: ../src/guestfs.pod:1383
2823 msgid "guestfs_set_subprocess_quit_callback"
2824 msgstr ""
2825
2826 # type: verbatim
2827 #: ../src/guestfs.pod:1385
2828 #, no-wrap
2829 msgid ""
2830 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2831 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2832 "                                            guestfs_subprocess_quit_cb cb,\n"
2833 "                                            void *opaque);\n"
2834 "\n"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1390
2839 msgid ""
2840 "The callback function C<cb> will be called when the child process quits, "
2841 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2842 "corresponds to a transition from any state to the CONFIG state)."
2843 msgstr ""
2844
2845 # type: =head2
2846 #: ../src/guestfs.pod:1395
2847 msgid "guestfs_set_launch_done_callback"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1397
2852 #, no-wrap
2853 msgid ""
2854 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2855 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2856 "                                        guestfs_launch_done_cb cb,\n"
2857 "                                        void *opaque);\n"
2858 "\n"
2859 msgstr ""
2860
2861 # type: textblock
2862 #: ../src/guestfs.pod:1402
2863 msgid ""
2864 "The callback function C<cb> will be called when the child process becomes "
2865 "ready first time after it has been launched.  (This corresponds to a "
2866 "transition from LAUNCHING to the READY state)."
2867 msgstr ""
2868
2869 # type: =head2
2870 #: ../src/guestfs.pod:1406
2871 msgid "guestfs_set_close_callback"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1408
2876 #, no-wrap
2877 msgid ""
2878 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2879 " void guestfs_set_close_callback (guestfs_h *g,\n"
2880 "                                  guestfs_close_cb cb,\n"
2881 "                                  void *opaque);\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #: ../src/guestfs.pod:1413
2887 msgid ""
2888 "The callback function C<cb> will be called while the handle is being closed "
2889 "(synchronously from L</guestfs_close>)."
2890 msgstr ""
2891
2892 # type: textblock
2893 #: ../src/guestfs.pod:1416
2894 msgid ""
2895 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2896 "handles that are open when the program exits.  This means that this callback "
2897 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2898 "problems in higher-level languages (eg. if your HLL interpreter has already "
2899 "been cleaned up by the time this is called, and if your callback then jumps "
2900 "into some HLL function)."
2901 msgstr ""
2902
2903 # type: =head2
2904 #: ../src/guestfs.pod:1424
2905 msgid "guestfs_set_progress_callback"
2906 msgstr ""
2907
2908 # type: verbatim
2909 #: ../src/guestfs.pod:1426
2910 #, no-wrap
2911 msgid ""
2912 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2913 "                                      int proc_nr, int serial,\n"
2914 "                                      uint64_t position, uint64_t total);\n"
2915 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2916 "                                     guestfs_progress_cb cb,\n"
2917 "                                     void *opaque);\n"
2918 "\n"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1433
2923 msgid ""
2924 "Some long-running operations can generate progress messages.  If this "
2925 "callback is registered, then it will be called each time a progress message "
2926 "is generated (usually two seconds after the operation started, and three "
2927 "times per second thereafter until it completes, although the frequency may "
2928 "change in future versions)."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1439
2933 msgid ""
2934 "The callback receives two numbers: C<position> and C<total>.  The units of "
2935 "C<total> are not defined, although for some operations C<total> may relate "
2936 "in some way to the amount of data to be transferred (eg. in bytes or "
2937 "megabytes), and C<position> may be the portion which has been transferred."
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1445
2942 msgid "The only defined and stable parts of the API are:"
2943 msgstr ""
2944
2945 # type: textblock
2946 #: ../src/guestfs.pod:1451
2947 msgid ""
2948 "The callback can display to the user some type of progress bar or indicator "
2949 "which shows the ratio of C<position>:C<total>."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1456
2954 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1460
2959 msgid ""
2960 "If any progress notification is sent during a call, then a final progress "
2961 "notification is always sent when C<position> = C<total>."
2962 msgstr ""
2963
2964 # type: textblock
2965 #: ../src/guestfs.pod:1463
2966 msgid ""
2967 "This is to simplify caller code, so callers can easily set the progress "
2968 "indicator to \"100%\" at the end of the operation, without requiring special "
2969 "code to detect this case."
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1469
2974 msgid ""
2975 "The callback also receives the procedure number and serial number of the "
2976 "call.  These are only useful for debugging protocol issues, and the callback "
2977 "can normally ignore them.  The callback may want to print these numbers in "
2978 "error messages or debugging messages."
2979 msgstr ""
2980
2981 # type: =head1
2982 #: ../src/guestfs.pod:1474
2983 msgid "PRIVATE DATA AREA"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1476
2988 msgid ""
2989 "You can attach named pieces of private data to the libguestfs handle, and "
2990 "fetch them by name for the lifetime of the handle.  This is called the "
2991 "private data area and is only available from the C API."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1480
2996 msgid "To attach a named piece of data, use the following call:"
2997 msgstr ""
2998
2999 # type: verbatim
3000 #: ../src/guestfs.pod:1482
3001 #, no-wrap
3002 msgid ""
3003 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3004 "\n"
3005 msgstr ""
3006
3007 # type: textblock
3008 #: ../src/guestfs.pod:1484
3009 msgid ""
3010 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3011 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3012 "overwritten."
3013 msgstr ""
3014
3015 # type: textblock
3016 #: ../src/guestfs.pod:1488
3017 msgid ""
3018 "You can use any C<key> you want, but names beginning with an underscore "
3019 "character are reserved for internal libguestfs purposes (for implementing "
3020 "language bindings).  It is recommended to prefix the name with some unique "
3021 "string to avoid collisions with other users."
3022 msgstr ""
3023
3024 # type: textblock
3025 #: ../src/guestfs.pod:1493
3026 msgid "To retrieve the pointer, use:"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #: ../src/guestfs.pod:1495
3031 #, no-wrap
3032 msgid ""
3033 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1497
3039 msgid ""
3040 "This function returns C<NULL> if either no data is found associated with "
3041 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3042 "C<NULL>."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1501
3047 msgid ""
3048 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3049 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3050 "all.  In particular, libguestfs does I<not> try to free the data when the "
3051 "handle is closed.  If the data must be freed, then the caller must either "
3052 "free it before calling L</guestfs_close> or must set up a close callback to "
3053 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3054 "can be registered for a handle)."
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1509
3059 msgid ""
3060 "The private data area is implemented using a hash table, and should be "
3061 "reasonably efficient for moderate numbers of keys."
3062 msgstr ""
3063
3064 # type: =head1
3065 #: ../src/guestfs.pod:1512
3066 msgid "BLOCK DEVICE NAMING"
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1514
3071 msgid ""
3072 "In the kernel there is now quite a profusion of schemata for naming block "
3073 "devices (in this context, by I<block device> I mean a physical or virtual "
3074 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
3075 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
3076 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
3077 "for the old IDE driver (particularly for SATA devices) those devices also "
3078 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
3079 "paravirtualized drivers.  This has created several different naming systems, "
3080 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
3081 msgstr ""
3082
3083 # type: textblock
3084 #: ../src/guestfs.pod:1526
3085 msgid ""
3086 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3087 "Linux kernel to access block devices.  We can run a variety of appliances "
3088 "based on a variety of Linux kernels."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1530
3093 msgid ""
3094 "This causes a problem for libguestfs because many API calls use device or "
3095 "partition names.  Working scripts and the recipe (example) scripts that we "
3096 "make available over the internet could fail if the naming scheme changes."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1535
3101 msgid ""
3102 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3103 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3104 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3105 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3106 msgstr ""
3107
3108 # type: textblock
3109 #: ../src/guestfs.pod:1541
3110 msgid ""
3111 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3112 "L</guestfs_list_partitions> and similar calls return the true names of the "
3113 "devices and partitions as known to the appliance."
3114 msgstr ""
3115
3116 # type: =head2
3117 #: ../src/guestfs.pod:1546
3118 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1548
3123 msgid ""
3124 "Usually this translation is transparent.  However in some (very rare)  cases "
3125 "you may need to know the exact algorithm.  Such cases include where you use "
3126 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3127 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1554
3132 msgid ""
3133 "The algorithm is applied only to I<parameters> which are known to be either "
3134 "device or partition names.  Return values from functions such as L</"
3135 "guestfs_list_devices> are never changed."
3136 msgstr ""
3137
3138 # type: textblock
3139 #: ../src/guestfs.pod:1562
3140 msgid "Is the string a parameter which is a device or partition name?"
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1566
3145 msgid "Does the string begin with C</dev/sd>?"
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1570
3150 msgid ""
3151 "Does the named device exist? If so, we use that device.  However if I<not> "
3152 "then we continue with this algorithm."
3153 msgstr ""
3154
3155 # type: textblock
3156 #: ../src/guestfs.pod:1575
3157 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1577
3162 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3163 msgstr ""
3164
3165 # type: textblock
3166 #: ../src/guestfs.pod:1579
3167 msgid "If that named device exists, use it.  If not, continue."
3168 msgstr ""
3169
3170 # type: textblock
3171 #: ../src/guestfs.pod:1583
3172 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1585
3177 msgid "If that named device exists, use it.  If not, return an error."
3178 msgstr ""
3179
3180 # type: =head2
3181 #: ../src/guestfs.pod:1589
3182 msgid "PORTABILITY CONCERNS"
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1591
3187 msgid ""
3188 "Although the standard naming scheme and automatic translation is useful for "
3189 "simple programs and guestfish scripts, for larger programs it is best not to "
3190 "rely on this mechanism."
3191 msgstr ""
3192
3193 # type: textblock
3194 #: ../src/guestfs.pod:1595
3195 msgid ""
3196 "Where possible for maximum future portability programs using libguestfs "
3197 "should use these future-proof techniques:"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1602
3202 msgid ""
3203 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3204 "device names, and then use those names directly."
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1605
3209 msgid ""
3210 "Since those device names exist by definition, they will never be translated."
3211 msgstr ""
3212
3213 # type: textblock
3214 #: ../src/guestfs.pod:1610
3215 msgid ""
3216 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3217 "filesystem labels."
3218 msgstr ""
3219
3220 # type: =head1
3221 #: ../src/guestfs.pod:1615
3222 msgid "INTERNALS"
3223 msgstr ""
3224
3225 # type: =head2
3226 #: ../src/guestfs.pod:1617
3227 msgid "COMMUNICATION PROTOCOL"
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1619
3232 msgid ""
3233 "Don't rely on using this protocol directly.  This section documents how it "
3234 "currently works, but it may change at any time."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1622
3239 msgid ""
3240 "The protocol used to talk between the library and the daemon running inside "
3241 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3242 "1014, RFC 1832, RFC 4506)."
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1626
3247 msgid ""
3248 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3249 "this file is automatically generated)."
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1629
3254 msgid ""
3255 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3256 "and C<FileOut> parameters, which are handled with very simple request/reply "
3257 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3258 "parameters, which use the same request and reply messages, but they may also "
3259 "be followed by files sent using a chunked encoding."
3260 msgstr ""
3261
3262 # type: =head3
3263 #: ../src/guestfs.pod:1636
3264 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1638
3269 msgid "For ordinary functions, the request message is:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #: ../src/guestfs.pod:1640
3274 #, no-wrap
3275 msgid ""
3276 " total length (header + arguments,\n"
3277 "      but not including the length word itself)\n"
3278 " struct guestfs_message_header (encoded as XDR)\n"
3279 " struct guestfs_<foo>_args (encoded as XDR)\n"
3280 "\n"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1645
3285 msgid ""
3286 "The total length field allows the daemon to allocate a fixed size buffer "
3287 "into which it slurps the rest of the message.  As a result, the total length "
3288 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3289 "effective size of any request is limited to somewhere under this size."
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1651
3294 msgid ""
3295 "Note also that many functions don't take any arguments, in which case the "
3296 "C<guestfs_I<foo>_args> is completely omitted."
3297 msgstr ""
3298
3299 # type: textblock
3300 #: ../src/guestfs.pod:1654
3301 msgid ""
3302 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3303 "receiver knows what type of args structure to expect, or none at all."
3304 msgstr ""
3305
3306 # type: textblock
3307 #: ../src/guestfs.pod:1658
3308 msgid "The reply message for ordinary functions is:"
3309 msgstr ""
3310
3311 # type: verbatim
3312 #: ../src/guestfs.pod:1660
3313 #, no-wrap
3314 msgid ""
3315 " total length (header + ret,\n"
3316 "      but not including the length word itself)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3319 "\n"
3320 msgstr ""
3321
3322 # type: textblock
3323 #: ../src/guestfs.pod:1665
3324 msgid ""
3325 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3326 "functions that return no formal return values."
3327 msgstr ""
3328
3329 # type: textblock
3330 #: ../src/guestfs.pod:1668
3331 msgid ""
3332 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1671
3337 msgid ""
3338 "In the case of an error, a flag is set in the header, and the reply message "
3339 "is slightly changed:"
3340 msgstr ""
3341
3342 # type: verbatim
3343 #: ../src/guestfs.pod:1674
3344 #, no-wrap
3345 msgid ""
3346 " total length (header + error,\n"
3347 "      but not including the length word itself)\n"
3348 " struct guestfs_message_header (encoded as XDR)\n"
3349 " struct guestfs_message_error (encoded as XDR)\n"
3350 "\n"
3351 msgstr ""
3352
3353 # type: textblock
3354 #: ../src/guestfs.pod:1679
3355 msgid ""
3356 "The C<guestfs_message_error> structure contains the error message as a "
3357 "string."
3358 msgstr ""
3359
3360 # type: =head3
3361 #: ../src/guestfs.pod:1682
3362 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1684
3367 msgid ""
3368 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3369 "The normal request message is sent (see above).  However this is followed by "
3370 "a sequence of file chunks."
3371 msgstr ""
3372
3373 # type: verbatim
3374 #: ../src/guestfs.pod:1688
3375 #, no-wrap
3376 msgid ""
3377 " total length (header + arguments,\n"
3378 "      but not including the length word itself,\n"
3379 "      and not including the chunks)\n"
3380 " struct guestfs_message_header (encoded as XDR)\n"
3381 " struct guestfs_<foo>_args (encoded as XDR)\n"
3382 " sequence of chunks for FileIn param #0\n"
3383 " sequence of chunks for FileIn param #1 etc.\n"
3384 "\n"
3385 msgstr ""
3386
3387 # type: textblock
3388 #: ../src/guestfs.pod:1696
3389 msgid "The \"sequence of chunks\" is:"
3390 msgstr ""
3391
3392 # type: verbatim
3393 #: ../src/guestfs.pod:1698
3394 #, no-wrap
3395 msgid ""
3396 " length of chunk (not including length word itself)\n"
3397 " struct guestfs_chunk (encoded as XDR)\n"
3398 " length of chunk\n"
3399 " struct guestfs_chunk (encoded as XDR)\n"
3400 "   ...\n"
3401 " length of chunk\n"
3402 " struct guestfs_chunk (with data.data_len == 0)\n"
3403 "\n"
3404 msgstr ""
3405
3406 # type: textblock
3407 #: ../src/guestfs.pod:1706
3408 msgid ""
3409 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3410 "is set in the final chunk to indicate either successful completion or early "
3411 "cancellation."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1710
3416 msgid ""
3417 "At time of writing there are no functions that have more than one FileIn "
3418 "parameter.  However this is (theoretically) supported, by sending the "
3419 "sequence of chunks for each FileIn parameter one after another (from left to "
3420 "right)."
3421 msgstr ""
3422
3423 # type: textblock
3424 #: ../src/guestfs.pod:1715
3425 msgid ""
3426 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3427 "transfer.  The library does this by sending a chunk with a special flag set "
3428 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3429 "RPC, does I<not> send any reply, and goes back to reading the next request."
3430 msgstr ""
3431
3432 # type: textblock
3433 #: ../src/guestfs.pod:1721
3434 msgid ""
3435 "The daemon may also cancel.  It does this by writing a special word "
3436 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3437 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3438 "cancel chunk).  The special word is chosen so that even if cancellation "
3439 "happens right at the end of the transfer (after the library has finished "
3440 "writing and has started listening for the reply), the \"spurious\" cancel "
3441 "flag will not be confused with the reply message."
3442 msgstr ""
3443
3444 # type: textblock
3445 #: ../src/guestfs.pod:1730
3446 msgid ""
3447 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3448 "limit), and also files where the size is not known in advance (eg. from "
3449 "pipes or sockets).  However the chunks are rather small "
3450 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3451 "to keep much in memory."
3452 msgstr ""
3453
3454 # type: =head3
3455 #: ../src/guestfs.pod:1736
3456 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1738
3461 msgid ""
3462 "The protocol for FileOut parameters is exactly the same as for FileIn "
3463 "parameters, but with the roles of daemon and library reversed."
3464 msgstr ""
3465
3466 # type: verbatim
3467 #: ../src/guestfs.pod:1741
3468 #, no-wrap
3469 msgid ""
3470 " total length (header + ret,\n"
3471 "      but not including the length word itself,\n"
3472 "      and not including the chunks)\n"
3473 " struct guestfs_message_header (encoded as XDR)\n"
3474 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3475 " sequence of chunks for FileOut param #0\n"
3476 " sequence of chunks for FileOut param #1 etc.\n"
3477 "\n"
3478 msgstr ""
3479
3480 # type: =head3
3481 #: ../src/guestfs.pod:1749
3482 msgid "INITIAL MESSAGE"
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1751
3487 msgid ""
3488 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3489 "which indicates that the guest and daemon is alive.  This is what L</"
3490 "guestfs_launch> waits for."
3491 msgstr ""
3492
3493 # type: =head3
3494 #: ../src/guestfs.pod:1755
3495 msgid "PROGRESS NOTIFICATION MESSAGES"
3496 msgstr ""
3497
3498 # type: textblock
3499 #: ../src/guestfs.pod:1757
3500 msgid ""
3501 "The daemon may send progress notification messages at any time.  These are "
3502 "distinguished by the normal length word being replaced by "
3503 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1761
3508 msgid ""
3509 "The library turns them into progress callbacks (see "
3510 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3511 "discards them if not."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1765
3516 msgid ""
3517 "The daemon self-limits the frequency of progress messages it sends (see "
3518 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3519 "messages."
3520 msgstr ""
3521
3522 # type: =head1
3523 #: ../src/guestfs.pod:1769
3524 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3525 msgstr ""
3526
3527 # type: textblock
3528 #: ../src/guestfs.pod:1771
3529 msgid ""
3530 "All high-level libguestfs actions are synchronous.  If you want to use "
3531 "libguestfs asynchronously then you must create a thread."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1774
3536 msgid ""
3537 "Only use the handle from a single thread.  Either use the handle exclusively "
3538 "from one thread, or provide your own mutex so that two threads cannot issue "
3539 "calls on the same handle at the same time."
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1778
3544 msgid ""
3545 "See the graphical program guestfs-browser for one possible architecture for "
3546 "multithreaded programs using libvirt and libguestfs."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1781
3551 msgid "QEMU WRAPPERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1783
3556 msgid ""
3557 "If you want to compile your own qemu, run qemu from a non-standard location, "
3558 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3559 "around qemu."
3560 msgstr ""
3561
3562 # type: textblock
3563 #: ../src/guestfs.pod:1787
3564 msgid ""
3565 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3566 "last command in the shell script (so that qemu replaces the shell and "
3567 "becomes the direct child of the libguestfs-using program).  If you don't do "
3568 "this, then the qemu process won't be cleaned up correctly."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1792
3573 msgid ""
3574 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3575 "source:"
3576 msgstr ""
3577
3578 # type: verbatim
3579 #: ../src/guestfs.pod:1795
3580 #, no-wrap
3581 msgid ""
3582 " #!/bin/sh -\n"
3583 " qemudir=/home/rjones/d/qemu\n"
3584 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3585 "\n"
3586 msgstr ""
3587
3588 # type: textblock
3589 #: ../src/guestfs.pod:1799
3590 msgid ""
3591 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3592 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3593 "example:"
3594 msgstr ""
3595
3596 # type: verbatim
3597 #: ../src/guestfs.pod:1803
3598 #, no-wrap
3599 msgid ""
3600 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3601 "\n"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1805
3606 msgid ""
3607 "Note that libguestfs also calls qemu with the -help and -version options in "
3608 "order to determine features."
3609 msgstr ""
3610
3611 # type: =head1
3612 #: ../src/guestfs.pod:1808
3613 msgid "LIBGUESTFS VERSION NUMBERS"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1810
3618 msgid ""
3619 "Since April 2010, libguestfs has started to make separate development and "
3620 "stable releases, along with corresponding branches in our git repository.  "
3621 "These separate releases can be identified by version number:"
3622 msgstr ""
3623
3624 # type: verbatim
3625 #: ../src/guestfs.pod:1815
3626 #, no-wrap
3627 msgid ""
3628 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3629 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3630 "       |\n"
3631 "       v\n"
3632 " 1  .  3  .  5\n"
3633 " ^           ^\n"
3634 " |           |\n"
3635 " |           `-------- sub-version\n"
3636 " |\n"
3637 " `------ always '1' because we don't change the ABI\n"
3638 "\n"
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1826
3643 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3644 msgstr ""
3645
3646 # type: textblock
3647 #: ../src/guestfs.pod:1828
3648 msgid ""
3649 "As time passes we cherry pick fixes from the development branch and backport "
3650 "those into the stable branch, the effect being that the stable branch should "
3651 "get more stable and less buggy over time.  So the stable releases are ideal "
3652 "for people who don't need new features but would just like the software to "
3653 "work."
3654 msgstr ""
3655
3656 # type: textblock
3657 #: ../src/guestfs.pod:1834
3658 msgid "Our criteria for backporting changes are:"
3659 msgstr ""
3660
3661 # type: textblock
3662 #: ../src/guestfs.pod:1840
3663 msgid ""
3664 "Documentation changes which don't affect any code are backported unless the "
3665 "documentation refers to a future feature which is not in stable."
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1846
3670 msgid ""
3671 "Bug fixes which are not controversial, fix obvious problems, and have been "
3672 "well tested are backported."
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1851
3677 msgid ""
3678 "Simple rearrangements of code which shouldn't affect how it works get "
3679 "backported.  This is so that the code in the two branches doesn't get too "
3680 "far out of step, allowing us to backport future fixes more easily."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1857
3685 msgid ""
3686 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3687 "exceptional case: the new feature is required in order to implement an "
3688 "important bug fix."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1863
3693 msgid ""
3694 "A new stable branch starts when we think the new features in development are "
3695 "substantial and compelling enough over the current stable branch to warrant "
3696 "it.  When that happens we create new stable and development versions 1.N.0 "
3697 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3698 "stable at this point, but by backporting fixes from development, that branch "
3699 "will stabilize over time."
3700 msgstr ""
3701
3702 # type: =head1
3703 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:867
3704 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3705 #: ../tools/virt-rescue.pl:255
3706 msgid "ENVIRONMENT VARIABLES"
3707 msgstr ""
3708
3709 # type: =item
3710 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:893
3711 msgid "LIBGUESTFS_APPEND"
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:895
3716 msgid "Pass additional options to the guest kernel."
3717 msgstr ""
3718
3719 # type: =item
3720 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:897
3721 msgid "LIBGUESTFS_DEBUG"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1881
3726 msgid ""
3727 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3728 "effect as calling C<guestfs_set_verbose (g, 1)>."
3729 msgstr ""
3730
3731 # type: =item
3732 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:902
3733 msgid "LIBGUESTFS_MEMSIZE"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:904
3738 msgid ""
3739 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3740 msgstr ""
3741
3742 # type: verbatim
3743 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:907
3744 #, no-wrap
3745 msgid ""
3746 " LIBGUESTFS_MEMSIZE=700\n"
3747 "\n"
3748 msgstr ""
3749
3750 # type: =item
3751 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:909
3752 msgid "LIBGUESTFS_PATH"
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs.pod:1893
3757 msgid ""
3758 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3759 "the discussion of paths in section PATH above."
3760 msgstr ""
3761
3762 # type: =item
3763 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:914
3764 msgid "LIBGUESTFS_QEMU"
3765 msgstr ""
3766
3767 # type: textblock
3768 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:916
3769 msgid ""
3770 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3771 "which was found at compile time by the configure script is used."
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1902
3776 msgid "See also L</QEMU WRAPPERS> above."
3777 msgstr ""
3778
3779 # type: =item
3780 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:920
3781 msgid "LIBGUESTFS_TRACE"
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs.pod:1906
3786 msgid ""
3787 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3788 "effect as calling C<guestfs_set_trace (g, 1)>."
3789 msgstr ""
3790
3791 # type: =item
3792 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:929
3793 msgid "TMPDIR"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:931
3798 msgid "Location of temporary directory, defaults to C</tmp>."
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:933
3803 msgid ""
3804 "If libguestfs was compiled to use the supermin appliance then the real "
3805 "appliance is cached in this directory, shared between all handles belonging "
3806 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3807 "use in case C</tmp> is not large enough."
3808 msgstr ""
3809
3810 # type: =head1
3811 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod:991
3812 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214
3813 #: ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350
3814 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3815 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3816 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185
3817 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3818 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3819 msgid "SEE ALSO"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1923
3824 msgid ""
3825 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3826 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3827 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3828 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3829 "L<http://libguestfs.org/>."
3830 msgstr ""
3831
3832 # type: textblock
3833 #: ../src/guestfs.pod:1941
3834 msgid ""
3835 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3836 "(8)>, L<disktype(1)>."
3837 msgstr ""
3838
3839 # type: =head1
3840 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499
3841 #: ../tools/virt-make-fs.pl:548
3842 msgid "BUGS"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs.pod:1950
3847 msgid "To get a list of bugs against libguestfs use this link:"
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:1952
3852 msgid ""
3853 "L<https://bugzilla.redhat.com/buglist.cgi?"
3854 "component=libguestfs&product=Virtualization+Tools>"
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:1954
3859 msgid "To report a new bug against libguestfs use this link:"
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs.pod:1956
3864 msgid ""
3865 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3866 "component=libguestfs&product=Virtualization+Tools>"
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs.pod:1958
3871 msgid "When reporting a bug, please check:"
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:1964
3876 msgid "That the bug hasn't been reported already."
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:1968
3881 msgid "That you are testing a recent version."
3882 msgstr ""
3883
3884 # type: textblock
3885 #: ../src/guestfs.pod:1972
3886 msgid "Describe the bug accurately, and give a way to reproduce it."
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1976
3891 msgid ""
3892 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3893 "bug report."
3894 msgstr ""
3895
3896 # type: =head1
3897 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1008
3898 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225
3899 #: ../inspector/virt-inspector.pl:580
3900 msgid "AUTHORS"
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1010
3905 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3906 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3907 msgstr ""
3908
3909 # type: =head1
3910 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod:1012
3911 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229
3912 #: ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366
3913 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3914 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3915 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199
3916 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3917 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3918 msgid "COPYRIGHT"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1014
3923 #: ../fuse/guestmount.pod:231
3924 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:1990
3929 msgid ""
3930 "This library is free software; you can redistribute it and/or modify it "
3931 "under the terms of the GNU Lesser General Public License as published by the "
3932 "Free Software Foundation; either version 2 of the License, or (at your "
3933 "option) any later version."
3934 msgstr ""
3935
3936 # type: textblock
3937 #: ../src/guestfs.pod:1995
3938 msgid ""
3939 "This library is distributed in the hope that it will be useful, but WITHOUT "
3940 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3941 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3942 "for more details."
3943 msgstr ""
3944
3945 # type: textblock
3946 #: ../src/guestfs.pod:2000
3947 msgid ""
3948 "You should have received a copy of the GNU Lesser General Public License "
3949 "along with this library; if not, write to the Free Software Foundation, "
3950 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3951 msgstr ""
3952
3953 # type: =head2
3954 #: ../src/guestfs-actions.pod:1
3955 msgid "guestfs_add_cdrom"
3956 msgstr ""
3957
3958 # type: verbatim
3959 #: ../src/guestfs-actions.pod:3
3960 #, no-wrap
3961 msgid ""
3962 " int\n"
3963 " guestfs_add_cdrom (guestfs_h *g,\n"
3964 "                    const char *filename);\n"
3965 "\n"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3970 msgid "This function adds a virtual CD-ROM disk image to the guest."
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3975 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3976 msgstr ""
3977
3978 # type: textblock
3979 #: ../src/guestfs-actions.pod:17
3980 msgid ""
3981 "This call checks for the existence of C<filename>.  This stops you from "
3982 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3983 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3984 "instead."
3985 msgstr ""
3986
3987 # type: textblock
3988 #: ../src/guestfs-actions.pod:24
3989 msgid ""
3990 "If you just want to add an ISO file (often you use this as an efficient way "
3991 "to transfer large files into the guest), then you should probably use "
3992 "C<guestfs_add_drive_ro> instead."
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:56
3997 #: ../src/guestfs-actions.pod:115 ../src/guestfs-actions.pod:150
3998 #: ../src/guestfs-actions.pod:162 ../src/guestfs-actions.pod:181
3999 #: ../src/guestfs-actions.pod:199 ../src/guestfs-actions.pod:211
4000 #: ../src/guestfs-actions.pod:318 ../src/guestfs-actions.pod:336
4001 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:387
4002 #: ../src/guestfs-actions.pod:411 ../src/guestfs-actions.pod:427
4003 #: ../src/guestfs-actions.pod:492 ../src/guestfs-actions.pod:521
4004 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:546
4005 #: ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:649
4006 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:673
4007 #: ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:842
4008 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:936
4009 #: ../src/guestfs-actions.pod:952 ../src/guestfs-actions.pod:969
4010 #: ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:999
4011 #: ../src/guestfs-actions.pod:1034 ../src/guestfs-actions.pod:1096
4012 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1148
4013 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1275
4014 #: ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1513
4015 #: ../src/guestfs-actions.pod:1533 ../src/guestfs-actions.pod:1616
4016 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2119
4017 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2208
4018 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2693
4019 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2825
4020 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2848
4021 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2873
4022 #: ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:2972
4023 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3005
4024 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3047
4025 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094
4026 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
4027 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3186
4028 #: ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3211
4029 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
4030 #: ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3342
4031 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3400
4032 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3432
4033 #: ../src/guestfs-actions.pod:3446 ../src/guestfs-actions.pod:3458
4034 #: ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3485
4035 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3516
4036 #: ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3592
4037 #: ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3626
4038 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3651
4039 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675
4040 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3721
4041 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3752
4042 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3779
4043 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3855
4044 #: ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:3893
4045 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924
4046 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4104
4047 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4140
4048 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4228
4049 #: ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4254
4050 #: ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4533
4051 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4562
4052 #: ../src/guestfs-actions.pod:4572 ../src/guestfs-actions.pod:4584
4053 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4606
4054 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4639
4055 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4673
4056 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4710
4057 #: ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4743
4058 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779
4059 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4820
4060 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4859
4061 #: ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:4894
4062 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924
4063 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4980
4064 #: ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5100
4065 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5221
4066 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
4067 #: ../src/guestfs-actions.pod:5263 ../src/guestfs-actions.pod:5274
4068 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5296
4069 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5362
4070 #: ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391
4071 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420
4072 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5449
4073 #: ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5493
4074 #: ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5541
4075 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5584
4076 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5722
4077 #: ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5750
4078 #: ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5810
4079 #: ../src/guestfs-actions.pod:5850 ../src/guestfs-actions.pod:5879
4080 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5949
4081 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6026
4082 #: ../src/guestfs-actions.pod:6053
4083 msgid "This function returns 0 on success or -1 on error."
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:164
4088 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:28
4089 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
4090 msgid ""
4091 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4092 "instead."
4093 msgstr ""
4094
4095 # type: textblock
4096 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:167
4097 #: ../src/guestfs-actions.pod:186 ../src/guestfs-actions.pod:1280
4098 #: ../src/guestfs-actions.pod:1732 ../src/guestfs-actions.pod:1751
4099 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:6110
4100 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
4101 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
4102 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
4103 #: ../fish/guestfish-actions.pod:4353 ../fish/guestfish-actions.pod:4450
4104 msgid ""
4105 "Deprecated functions will not be removed from the API, but the fact that "
4106 "they are deprecated indicates that there are problems with correct use of "
4107 "these functions."
4108 msgstr ""
4109
4110 # type: =head2
4111 #: ../src/guestfs-actions.pod:39
4112 msgid "guestfs_add_drive"
4113 msgstr ""
4114
4115 # type: verbatim
4116 #: ../src/guestfs-actions.pod:41
4117 #, no-wrap
4118 msgid ""
4119 " int\n"
4120 " guestfs_add_drive (guestfs_h *g,\n"
4121 "                    const char *filename);\n"
4122 "\n"
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs-actions.pod:45
4127 msgid ""
4128 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4129 "optional parameters, so the disk is added writable, with the format being "
4130 "detected automatically."
4131 msgstr ""
4132
4133 # type: textblock
4134 #: ../src/guestfs-actions.pod:49
4135 msgid ""
4136 "Automatic detection of the format opens you up to a potential security hole "
4137 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4138 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4139 "you should think about replacing calls to this function with calls to "
4140 "C<guestfs_add_drive_opts>, and specifying the format."
4141 msgstr ""
4142
4143 # type: =head2
4144 #: ../src/guestfs-actions.pod:58
4145 msgid "guestfs_add_drive_opts"
4146 msgstr ""
4147
4148 # type: verbatim
4149 #: ../src/guestfs-actions.pod:60
4150 #, no-wrap
4151 msgid ""
4152 " int\n"
4153 " guestfs_add_drive_opts (guestfs_h *g,\n"
4154 "                         const char *filename,\n"
4155 "                         ...);\n"
4156 "\n"
4157 msgstr ""
4158
4159 # type: textblock
4160 #: ../src/guestfs-actions.pod:65
4161 msgid ""
4162 "You may supply a list of optional arguments to this call.  Use zero or more "
4163 "of the following pairs of parameters, and terminate the list with C<-1> on "
4164 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4165 msgstr ""
4166
4167 # type: verbatim
4168 #: ../src/guestfs-actions.pod:70
4169 #, no-wrap
4170 msgid ""
4171 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4172 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4173 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4174 "\n"
4175 msgstr ""
4176
4177 # type: textblock
4178 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:56
4179 msgid ""
4180 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4181 "The first time you call this function, the disk appears as C</dev/sda>, the "
4182 "second time as C</dev/sdb>, and so on."
4183 msgstr ""
4184
4185 # type: textblock
4186 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:61
4187 msgid ""
4188 "You don't necessarily need to be root when using libguestfs.  However you "
4189 "obviously do need sufficient permissions to access the filename for whatever "
4190 "operations you want to perform (ie. read access if you just want to read the "
4191 "image or write access if you want to modify the image)."
4192 msgstr ""
4193
4194 # type: textblock
4195 #: ../src/guestfs-actions.pod:85 ../fish/guestfish-actions.pod:67
4196 msgid "This call checks that C<filename> exists."
4197 msgstr ""
4198
4199 # type: textblock
4200 #: ../src/guestfs-actions.pod:87 ../fish/guestfish-actions.pod:69
4201 msgid "The optional arguments are:"
4202 msgstr ""
4203
4204 # type: =item
4205 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:73
4206 msgid "C<readonly>"
4207 msgstr ""
4208
4209 # type: textblock
4210 #: ../src/guestfs-actions.pod:93 ../fish/guestfish-actions.pod:75
4211 msgid ""
4212 "If true then the image is treated as read-only.  Writes are still allowed, "
4213 "but they are stored in a temporary snapshot overlay which is discarded at "
4214 "the end.  The disk that you add is not modified."
4215 msgstr ""
4216
4217 # type: =item
4218 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:79
4219 msgid "C<format>"
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:99
4224 msgid ""
4225 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4226 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4227 "Possible formats include C<raw> and C<qcow2>."
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:103 ../fish/guestfish-actions.pod:85
4232 msgid ""
4233 "Automatic detection of the format opens you up to a potential security hole "
4234 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4235 "RHBZ#642934.  Specifying the format closes this security hole."
4236 msgstr ""
4237
4238 # type: =item
4239 #: ../src/guestfs-actions.pod:108 ../fish/guestfish-actions.pod:90
4240 msgid "C<iface>"
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs-actions.pod:110
4245 msgid ""
4246 "This rarely-used option lets you emulate the behaviour of the deprecated "
4247 "C<guestfs_add_drive_with_if> call (q.v.)"
4248 msgstr ""
4249
4250 # type: =head2
4251 #: ../src/guestfs-actions.pod:117
4252 msgid "guestfs_add_drive_opts_va"
4253 msgstr ""
4254
4255 # type: verbatim
4256 #: ../src/guestfs-actions.pod:119
4257 #, no-wrap
4258 msgid ""
4259 " int\n"
4260 "guestfs_add_drive_opts_va (guestfs_h *g,\n"
4261 "                        const char *filename,\n"
4262 "                        va_list args);\n"
4263 "\n"
4264 msgstr ""
4265
4266 # type: textblock
4267 #: ../src/guestfs-actions.pod:124
4268 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4269 msgstr ""
4270
4271 # type: textblock
4272 #: ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:137
4273 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4274 msgstr ""
4275
4276 # type: =head2
4277 #: ../src/guestfs-actions.pod:128
4278 msgid "guestfs_add_drive_opts_argv"
4279 msgstr ""
4280
4281 # type: verbatim
4282 #: ../src/guestfs-actions.pod:130
4283 #, no-wrap
4284 msgid ""
4285 " int\n"
4286 "guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4287 "                        const char *filename,\n"
4288 "                        const struct guestfs_add_drive_opts_argv *optargs);\n"
4289 "\n"
4290 msgstr ""
4291
4292 # type: textblock
4293 #: ../src/guestfs-actions.pod:135
4294 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4295 msgstr ""
4296
4297 # type: =head2
4298 #: ../src/guestfs-actions.pod:139
4299 msgid "guestfs_add_drive_ro"
4300 msgstr ""
4301
4302 # type: verbatim
4303 #: ../src/guestfs-actions.pod:141
4304 #, no-wrap
4305 msgid ""
4306 " int\n"
4307 " guestfs_add_drive_ro (guestfs_h *g,\n"
4308 "                       const char *filename);\n"
4309 "\n"
4310 msgstr ""
4311
4312 # type: textblock
4313 #: ../src/guestfs-actions.pod:145
4314 msgid ""
4315 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4316 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4317 "disk is added read-only, with the format being detected automatically."
4318 msgstr ""
4319
4320 # type: =head2
4321 #: ../src/guestfs-actions.pod:152
4322 msgid "guestfs_add_drive_ro_with_if"
4323 msgstr ""
4324
4325 # type: verbatim
4326 #: ../src/guestfs-actions.pod:154
4327 #, no-wrap
4328 msgid ""
4329 " int\n"
4330 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4331 "                               const char *filename,\n"
4332 "                               const char *iface);\n"
4333 "\n"
4334 msgstr ""
4335
4336 # type: textblock
4337 #: ../src/guestfs-actions.pod:159
4338 msgid ""
4339 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4340 "QEMU interface emulation to use at run time."
4341 msgstr ""
4342
4343 # type: =head2
4344 #: ../src/guestfs-actions.pod:171
4345 msgid "guestfs_add_drive_with_if"
4346 msgstr ""
4347
4348 # type: verbatim
4349 #: ../src/guestfs-actions.pod:173
4350 #, no-wrap
4351 msgid ""
4352 " int\n"
4353 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4354 "                            const char *filename,\n"
4355 "                            const char *iface);\n"
4356 "\n"
4357 msgstr ""
4358
4359 # type: textblock
4360 #: ../src/guestfs-actions.pod:178
4361 msgid ""
4362 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4363 "QEMU interface emulation to use at run time."
4364 msgstr ""
4365
4366 # type: =head2
4367 #: ../src/guestfs-actions.pod:190
4368 msgid "guestfs_aug_clear"
4369 msgstr ""
4370
4371 # type: verbatim
4372 #: ../src/guestfs-actions.pod:192
4373 #, no-wrap
4374 msgid ""
4375 " int\n"
4376 " guestfs_aug_clear (guestfs_h *g,\n"
4377 "                    const char *augpath);\n"
4378 "\n"
4379 msgstr ""
4380
4381 # type: textblock
4382 #: ../src/guestfs-actions.pod:196 ../fish/guestfish-actions.pod:142
4383 msgid ""
4384 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4385 "L<augtool(1)> C<clear> command."
4386 msgstr ""
4387
4388 # type: =head2
4389 #: ../src/guestfs-actions.pod:201
4390 msgid "guestfs_aug_close"
4391 msgstr ""
4392
4393 # type: verbatim
4394 #: ../src/guestfs-actions.pod:203
4395 #, no-wrap
4396 msgid ""
4397 " int\n"
4398 " guestfs_aug_close (guestfs_h *g);\n"
4399 "\n"
4400 msgstr ""
4401
4402 # type: textblock
4403 #: ../src/guestfs-actions.pod:206
4404 msgid ""
4405 "Close the current Augeas handle and free up any resources used by it.  After "
4406 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4407 "any other Augeas functions."
4408 msgstr ""
4409
4410 # type: =head2
4411 #: ../src/guestfs-actions.pod:213
4412 msgid "guestfs_aug_defnode"
4413 msgstr ""
4414
4415 # type: verbatim
4416 #: ../src/guestfs-actions.pod:215
4417 #, no-wrap
4418 msgid ""
4419 " struct guestfs_int_bool *\n"
4420 " guestfs_aug_defnode (guestfs_h *g,\n"
4421 "                      const char *name,\n"
4422 "                      const char *expr,\n"
4423 "                      const char *val);\n"
4424 "\n"
4425 msgstr ""
4426
4427 # type: textblock
4428 #: ../src/guestfs-actions.pod:221 ../fish/guestfish-actions.pod:158
4429 msgid ""
4430 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4431 msgstr ""
4432
4433 # type: textblock
4434 #: ../src/guestfs-actions.pod:224
4435 msgid ""
4436 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4437 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4438 "containing that single node."
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:165
4443 msgid ""
4444 "On success this returns a pair containing the number of nodes in the "
4445 "nodeset, and a boolean flag if a node was created."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:232
4450 msgid ""
4451 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4452 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4453 msgstr ""
4454
4455 # type: =head2
4456 #: ../src/guestfs-actions.pod:236
4457 msgid "guestfs_aug_defvar"
4458 msgstr ""
4459
4460 # type: verbatim
4461 #: ../src/guestfs-actions.pod:238
4462 #, no-wrap
4463 msgid ""
4464 " int\n"
4465 " guestfs_aug_defvar (guestfs_h *g,\n"
4466 "                     const char *name,\n"
4467 "                     const char *expr);\n"
4468 "\n"
4469 msgstr ""
4470
4471 # type: textblock
4472 #: ../src/guestfs-actions.pod:243 ../fish/guestfish-actions.pod:173
4473 msgid ""
4474 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4475 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4476 msgstr ""
4477
4478 # type: textblock
4479 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:177
4480 msgid ""
4481 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4482 "evaluates to something which is not a nodeset."
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:250 ../src/guestfs-actions.pod:399
4487 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:588
4488 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:621
4489 #: ../src/guestfs-actions.pod:1166 ../src/guestfs-actions.pod:1494
4490 #: ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1770
4491 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1851
4492 #: ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:2108
4493 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:2368
4494 #: ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3957
4495 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4353
4496 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5890
4497 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5912
4498 msgid "On error this function returns -1."
4499 msgstr ""
4500
4501 # type: =head2
4502 #: ../src/guestfs-actions.pod:252
4503 msgid "guestfs_aug_get"
4504 msgstr ""
4505
4506 # type: verbatim
4507 #: ../src/guestfs-actions.pod:254
4508 #, no-wrap
4509 msgid ""
4510 " char *\n"
4511 " guestfs_aug_get (guestfs_h *g,\n"
4512 "                  const char *augpath);\n"
4513 "\n"
4514 msgstr ""
4515
4516 # type: textblock
4517 #: ../src/guestfs-actions.pod:258 ../fish/guestfish-actions.pod:184
4518 msgid ""
4519 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4520 "node, the C<value> is returned."
4521 msgstr ""
4522
4523 # type: textblock
4524 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:713
4525 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:787
4526 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:896
4527 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1047
4528 #: ../src/guestfs-actions.pod:1062 ../src/guestfs-actions.pod:1079
4529 #: ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1369
4530 #: ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1630
4531 #: ../src/guestfs-actions.pod:1645 ../src/guestfs-actions.pod:1726
4532 #: ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:1891
4533 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2228
4534 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2420
4535 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2477
4536 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3128
4537 #: ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:3380
4538 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4155
4539 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4473
4540 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:5023
4541 #: ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5052
4542 #: ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5668
4543 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5701
4544 #: ../src/guestfs-actions.pod:5860 ../src/guestfs-actions.pod:6104
4545 msgid ""
4546 "This function returns a string, or NULL on error.  I<The caller must free "
4547 "the returned string after use>."
4548 msgstr ""
4549
4550 # type: =head2
4551 #: ../src/guestfs-actions.pod:264
4552 msgid "guestfs_aug_init"
4553 msgstr ""
4554
4555 # type: verbatim
4556 #: ../src/guestfs-actions.pod:266
4557 #, no-wrap
4558 msgid ""
4559 " int\n"
4560 " guestfs_aug_init (guestfs_h *g,\n"
4561 "                   const char *root,\n"
4562 "                   int flags);\n"
4563 "\n"
4564 msgstr ""
4565
4566 # type: textblock
4567 #: ../src/guestfs-actions.pod:271 ../fish/guestfish-actions.pod:191
4568 msgid ""
4569 "Create a new Augeas handle for editing configuration files.  If there was "
4570 "any previous Augeas handle associated with this guestfs session, then it is "
4571 "closed."
4572 msgstr ""
4573
4574 # type: textblock
4575 #: ../src/guestfs-actions.pod:275
4576 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4577 msgstr ""
4578
4579 # type: textblock
4580 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:198
4581 msgid ""
4582 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4583 msgstr ""
4584
4585 # type: textblock
4586 #: ../src/guestfs-actions.pod:281 ../fish/guestfish-actions.pod:201
4587 msgid ""
4588 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4589 "logical I<or> of the following integers:"
4590 msgstr ""
4591
4592 # type: =item
4593 #: ../src/guestfs-actions.pod:287 ../fish/guestfish-actions.pod:207
4594 msgid "C<AUG_SAVE_BACKUP> = 1"
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:289 ../fish/guestfish-actions.pod:209
4599 msgid "Keep the original file with a C<.augsave> extension."
4600 msgstr ""
4601
4602 # type: =item
4603 #: ../src/guestfs-actions.pod:291 ../fish/guestfish-actions.pod:211
4604 msgid "C<AUG_SAVE_NEWFILE> = 2"
4605 msgstr ""
4606
4607 # type: textblock
4608 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:213
4609 msgid ""
4610 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4611 "original.  Overrides C<AUG_SAVE_BACKUP>."
4612 msgstr ""
4613
4614 # type: =item
4615 #: ../src/guestfs-actions.pod:296 ../fish/guestfish-actions.pod:216
4616 msgid "C<AUG_TYPE_CHECK> = 4"
4617 msgstr ""
4618
4619 # type: textblock
4620 #: ../src/guestfs-actions.pod:298 ../fish/guestfish-actions.pod:218
4621 msgid "Typecheck lenses (can be expensive)."
4622 msgstr ""
4623
4624 # type: =item
4625 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:220
4626 msgid "C<AUG_NO_STDINC> = 8"
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:222
4631 msgid "Do not use standard load path for modules."
4632 msgstr ""
4633
4634 # type: =item
4635 #: ../src/guestfs-actions.pod:304 ../fish/guestfish-actions.pod:224
4636 msgid "C<AUG_SAVE_NOOP> = 16"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:306 ../fish/guestfish-actions.pod:226
4641 msgid "Make save a no-op, just record what would have been changed."
4642 msgstr ""
4643
4644 # type: =item
4645 #: ../src/guestfs-actions.pod:308 ../fish/guestfish-actions.pod:228
4646 msgid "C<AUG_NO_LOAD> = 32"
4647 msgstr ""
4648
4649 # type: textblock
4650 #: ../src/guestfs-actions.pod:310
4651 msgid "Do not load the tree in C<guestfs_aug_init>."
4652 msgstr ""
4653
4654 # type: textblock
4655 #: ../src/guestfs-actions.pod:314
4656 msgid "To close the handle, you can call C<guestfs_aug_close>."
4657 msgstr ""
4658
4659 # type: textblock
4660 #: ../src/guestfs-actions.pod:316 ../fish/guestfish-actions.pod:236
4661 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4662 msgstr ""
4663
4664 # type: =head2
4665 #: ../src/guestfs-actions.pod:320
4666 msgid "guestfs_aug_insert"
4667 msgstr ""
4668
4669 # type: verbatim
4670 #: ../src/guestfs-actions.pod:322
4671 #, no-wrap
4672 msgid ""
4673 " int\n"
4674 " guestfs_aug_insert (guestfs_h *g,\n"
4675 "                     const char *augpath,\n"
4676 "                     const char *label,\n"
4677 "                     int before);\n"
4678 "\n"
4679 msgstr ""
4680
4681 # type: textblock
4682 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:242
4683 msgid ""
4684 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4685 "or after C<path> (depending on the boolean flag C<before>)."
4686 msgstr ""
4687
4688 # type: textblock
4689 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:246
4690 msgid ""
4691 "C<path> must match exactly one existing node in the tree, and C<label> must "
4692 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4693 msgstr ""
4694
4695 # type: =head2
4696 #: ../src/guestfs-actions.pod:338
4697 msgid "guestfs_aug_load"
4698 msgstr ""
4699
4700 # type: verbatim
4701 #: ../src/guestfs-actions.pod:340
4702 #, no-wrap
4703 msgid ""
4704 " int\n"
4705 " guestfs_aug_load (guestfs_h *g);\n"
4706 "\n"
4707 msgstr ""
4708
4709 # type: textblock
4710 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:254
4711 msgid "Load files into the tree."
4712 msgstr ""
4713
4714 # type: textblock
4715 #: ../src/guestfs-actions.pod:345 ../fish/guestfish-actions.pod:256
4716 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4717 msgstr ""
4718
4719 # type: =head2
4720 #: ../src/guestfs-actions.pod:350
4721 msgid "guestfs_aug_ls"
4722 msgstr ""
4723
4724 # type: verbatim
4725 #: ../src/guestfs-actions.pod:352
4726 #, no-wrap
4727 msgid ""
4728 " char **\n"
4729 " guestfs_aug_ls (guestfs_h *g,\n"
4730 "                 const char *augpath);\n"
4731 "\n"
4732 msgstr ""
4733
4734 # type: textblock
4735 #: ../src/guestfs-actions.pod:356
4736 msgid ""
4737 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4738 "sorting the resulting nodes into alphabetical order."
4739 msgstr ""
4740
4741 # type: textblock
4742 #: ../src/guestfs-actions.pod:359 ../src/guestfs-actions.pod:373
4743 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:913
4744 #: ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1226
4745 #: ../src/guestfs-actions.pod:1319 ../src/guestfs-actions.pod:1336
4746 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1930
4747 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1961
4748 #: ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2022
4749 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2130
4750 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2517
4751 #: ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2797
4752 #: ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:3254
4753 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:4281
4754 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4505
4755 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5141
4756 #: ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5320
4757 #: ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5766
4758 #: ../src/guestfs-actions.pod:5784 ../src/guestfs-actions.pod:5825
4759 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:5988
4760 #: ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6082
4761 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6141
4762 msgid ""
4763 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4764 ">), or NULL if there was an error.  I<The caller must free the strings and "
4765 "the array after use>."
4766 msgstr ""
4767
4768 # type: =head2
4769 #: ../src/guestfs-actions.pod:363
4770 msgid "guestfs_aug_match"
4771 msgstr ""
4772
4773 # type: verbatim
4774 #: ../src/guestfs-actions.pod:365
4775 #, no-wrap
4776 msgid ""
4777 " char **\n"
4778 " guestfs_aug_match (guestfs_h *g,\n"
4779 "                    const char *augpath);\n"
4780 "\n"
4781 msgstr ""
4782
4783 # type: textblock
4784 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:270
4785 msgid ""
4786 "Returns a list of paths which match the path expression C<path>.  The "
4787 "returned paths are sufficiently qualified so that they match exactly one "
4788 "node in the current tree."
4789 msgstr ""
4790
4791 # type: =head2
4792 #: ../src/guestfs-actions.pod:377
4793 msgid "guestfs_aug_mv"
4794 msgstr ""
4795
4796 # type: verbatim
4797 #: ../src/guestfs-actions.pod:379
4798 #, no-wrap
4799 msgid ""
4800 " int\n"
4801 " guestfs_aug_mv (guestfs_h *g,\n"
4802 "                 const char *src,\n"
4803 "                 const char *dest);\n"
4804 "\n"
4805 msgstr ""
4806
4807 # type: textblock
4808 #: ../src/guestfs-actions.pod:384 ../fish/guestfish-actions.pod:278
4809 msgid ""
4810 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4811 "C<dest> is overwritten if it exists."
4812 msgstr ""
4813
4814 # type: =head2
4815 #: ../src/guestfs-actions.pod:389
4816 msgid "guestfs_aug_rm"
4817 msgstr ""
4818
4819 # type: verbatim
4820 #: ../src/guestfs-actions.pod:391
4821 #, no-wrap
4822 msgid ""
4823 " int\n"
4824 " guestfs_aug_rm (guestfs_h *g,\n"
4825 "                 const char *augpath);\n"
4826 "\n"
4827 msgstr ""
4828
4829 # type: textblock
4830 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:285
4831 msgid "Remove C<path> and all of its children."
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:287
4836 msgid "On success this returns the number of entries which were removed."
4837 msgstr ""
4838
4839 # type: =head2
4840 #: ../src/guestfs-actions.pod:401
4841 msgid "guestfs_aug_save"
4842 msgstr ""
4843
4844 # type: verbatim
4845 #: ../src/guestfs-actions.pod:403
4846 #, no-wrap
4847 msgid ""
4848 " int\n"
4849 " guestfs_aug_save (guestfs_h *g);\n"
4850 "\n"
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:293
4855 msgid "This writes all pending changes to disk."
4856 msgstr ""
4857
4858 # type: textblock
4859 #: ../src/guestfs-actions.pod:408
4860 msgid ""
4861 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4862 "are saved."
4863 msgstr ""
4864
4865 # type: =head2
4866 #: ../src/guestfs-actions.pod:413
4867 msgid "guestfs_aug_set"
4868 msgstr ""
4869
4870 # type: verbatim
4871 #: ../src/guestfs-actions.pod:415
4872 #, no-wrap
4873 msgid ""
4874 " int\n"
4875 " guestfs_aug_set (guestfs_h *g,\n"
4876 "                  const char *augpath,\n"
4877 "                  const char *val);\n"
4878 "\n"
4879 msgstr ""
4880
4881 # type: textblock
4882 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:302
4883 msgid "Set the value associated with C<path> to C<val>."
4884 msgstr ""
4885
4886 # type: textblock
4887 #: ../src/guestfs-actions.pod:422
4888 msgid ""
4889 "In the Augeas API, it is possible to clear a node by setting the value to "
4890 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4891 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4892 msgstr ""
4893
4894 # type: =head2
4895 #: ../src/guestfs-actions.pod:429
4896 msgid "guestfs_available"
4897 msgstr ""
4898
4899 # type: verbatim
4900 #: ../src/guestfs-actions.pod:431
4901 #, no-wrap
4902 msgid ""
4903 " int\n"
4904 " guestfs_available (guestfs_h *g,\n"
4905 "                    char *const *groups);\n"
4906 "\n"
4907 msgstr ""
4908
4909 # type: textblock
4910 #: ../src/guestfs-actions.pod:435 ../fish/guestfish-actions.pod:313
4911 msgid ""
4912 "This command is used to check the availability of some groups of "
4913 "functionality in the appliance, which not all builds of the libguestfs "
4914 "appliance will be able to provide."
4915 msgstr ""
4916
4917 # type: textblock
4918 #: ../src/guestfs-actions.pod:439
4919 msgid ""
4920 "The libguestfs groups, and the functions that those groups correspond to, "
4921 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4922 "runtime by calling C<guestfs_available_all_groups>."
4923 msgstr ""
4924
4925 # type: textblock
4926 #: ../src/guestfs-actions.pod:444 ../fish/guestfish-actions.pod:322
4927 msgid ""
4928 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4929 "\"]> would check for the availability of the Linux inotify functions and "
4930 "Augeas (configuration file editing) functions."
4931 msgstr ""
4932
4933 # type: textblock
4934 #: ../src/guestfs-actions.pod:449 ../fish/guestfish-actions.pod:327
4935 msgid "The command returns no error if I<all> requested groups are available."
4936 msgstr ""
4937
4938 # type: textblock
4939 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:329
4940 msgid ""
4941 "It fails with an error if one or more of the requested groups is unavailable "
4942 "in the appliance."
4943 msgstr ""
4944
4945 # type: textblock
4946 #: ../src/guestfs-actions.pod:454 ../fish/guestfish-actions.pod:332
4947 msgid ""
4948 "If an unknown group name is included in the list of groups then an error is "
4949 "always returned."
4950 msgstr ""
4951
4952 # type: textblock
4953 #: ../src/guestfs-actions.pod:457 ../fish/guestfish-actions.pod:335
4954 msgid "I<Notes:>"
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:463
4959 msgid "You must call C<guestfs_launch> before calling this function."
4960 msgstr ""
4961
4962 # type: textblock
4963 #: ../src/guestfs-actions.pod:465 ../fish/guestfish-actions.pod:343
4964 msgid ""
4965 "The reason is because we don't know what groups are supported by the "
4966 "appliance/daemon until it is running and can be queried."
4967 msgstr ""
4968
4969 # type: textblock
4970 #: ../src/guestfs-actions.pod:471 ../fish/guestfish-actions.pod:349
4971 msgid ""
4972 "If a group of functions is available, this does not necessarily mean that "
4973 "they will work.  You still have to check for errors when calling individual "
4974 "API functions even if they are available."
4975 msgstr ""
4976
4977 # type: textblock
4978 #: ../src/guestfs-actions.pod:478 ../fish/guestfish-actions.pod:356
4979 msgid ""
4980 "It is usually the job of distro packagers to build complete functionality "
4981 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4982 "with all requirements satisfied, will support everything."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:485
4987 msgid ""
4988 "This call was added in version C<1.0.80>.  In previous versions of "
4989 "libguestfs all you could do would be to speculatively execute a command to "
4990 "find out if the daemon implemented it.  See also C<guestfs_version>."
4991 msgstr ""
4992
4993 # type: =head2
4994 #: ../src/guestfs-actions.pod:494
4995 msgid "guestfs_available_all_groups"
4996 msgstr ""
4997
4998 # type: verbatim
4999 #: ../src/guestfs-actions.pod:496
5000 #, no-wrap
5001 msgid ""
5002 " char **\n"
5003 " guestfs_available_all_groups (guestfs_h *g);\n"
5004 "\n"
5005 msgstr ""
5006
5007 # type: textblock
5008 #: ../src/guestfs-actions.pod:499
5009 msgid ""
5010 "This command returns a list of all optional groups that this daemon knows "
5011 "about.  Note this returns both supported and unsupported groups.  To find "
5012 "out which ones the daemon can actually support you have to call "
5013 "C<guestfs_available> on each member of the returned list."
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:505
5018 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5019 msgstr ""
5020
5021 # type: =head2
5022 #: ../src/guestfs-actions.pod:511
5023 msgid "guestfs_base64_in"
5024 msgstr ""
5025
5026 # type: verbatim
5027 #: ../src/guestfs-actions.pod:513
5028 #, no-wrap
5029 msgid ""
5030 " int\n"
5031 " guestfs_base64_in (guestfs_h *g,\n"
5032 "                    const char *base64file,\n"
5033 "                    const char *filename);\n"
5034 "\n"
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:386
5039 msgid ""
5040 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5041 msgstr ""
5042
5043 # type: =head2
5044 #: ../src/guestfs-actions.pod:523
5045 msgid "guestfs_base64_out"
5046 msgstr ""
5047
5048 # type: verbatim
5049 #: ../src/guestfs-actions.pod:525
5050 #, no-wrap
5051 msgid ""
5052 " int\n"
5053 " guestfs_base64_out (guestfs_h *g,\n"
5054 "                     const char *filename,\n"
5055 "                     const char *base64file);\n"
5056 "\n"
5057 msgstr ""
5058
5059 # type: textblock
5060 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:395
5061 msgid ""
5062 "This command downloads the contents of C<filename>, writing it out to local "
5063 "file C<base64file> encoded as base64."
5064 msgstr ""
5065
5066 # type: =head2
5067 #: ../src/guestfs-actions.pod:535
5068 msgid "guestfs_blockdev_flushbufs"
5069 msgstr ""
5070
5071 # type: verbatim
5072 #: ../src/guestfs-actions.pod:537
5073 #, no-wrap
5074 msgid ""
5075 " int\n"
5076 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5077 "                             const char *device);\n"
5078 "\n"
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:541 ../fish/guestfish-actions.pod:404
5083 msgid ""
5084 "This tells the kernel to flush internal buffers associated with C<device>."
5085 msgstr ""
5086
5087 # type: textblock
5088 #: ../src/guestfs-actions.pod:544 ../src/guestfs-actions.pod:559
5089 #: ../src/guestfs-actions.pod:572 ../src/guestfs-actions.pod:586
5090 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:619
5091 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:647
5092 #: ../src/guestfs-actions.pod:659 ../src/guestfs-actions.pod:671
5093 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
5094 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
5095 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
5096 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
5097 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
5098 msgid "This uses the L<blockdev(8)> command."
5099 msgstr ""
5100
5101 # type: =head2
5102 #: ../src/guestfs-actions.pod:548
5103 msgid "guestfs_blockdev_getbsz"
5104 msgstr ""
5105
5106 # type: verbatim
5107 #: ../src/guestfs-actions.pod:550
5108 #, no-wrap
5109 msgid ""
5110 " int\n"
5111 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5112 "                          const char *device);\n"
5113 "\n"
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:413
5118 msgid "This returns the block size of a device."
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:644
5123 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
5124 msgid ""
5125 "(Note this is different from both I<size in blocks> and I<filesystem block "
5126 "size>)."
5127 msgstr ""
5128
5129 # type: =head2
5130 #: ../src/guestfs-actions.pod:563
5131 msgid "guestfs_blockdev_getro"
5132 msgstr ""
5133
5134 # type: verbatim
5135 #: ../src/guestfs-actions.pod:565
5136 #, no-wrap
5137 msgid ""
5138 " int\n"
5139 " guestfs_blockdev_getro (guestfs_h *g,\n"
5140 "                         const char *device);\n"
5141 "\n"
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:569 ../fish/guestfish-actions.pod:424
5146 msgid ""
5147 "Returns a boolean indicating if the block device is read-only (true if read-"
5148 "only, false if not)."
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:574 ../src/guestfs-actions.pod:1245
5153 #: ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1706
5154 #: ../src/guestfs-actions.pod:1715 ../src/guestfs-actions.pod:1779
5155 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1839
5156 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1879
5157 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2544
5158 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2569
5159 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2596
5160 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:2622
5161 #: ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2645
5162 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2671
5163 #: ../src/guestfs-actions.pod:3941
5164 msgid "This function returns a C truth value on success or -1 on error."
5165 msgstr ""
5166
5167 # type: =head2
5168 #: ../src/guestfs-actions.pod:576
5169 msgid "guestfs_blockdev_getsize64"
5170 msgstr ""
5171
5172 # type: verbatim
5173 #: ../src/guestfs-actions.pod:578
5174 #, no-wrap
5175 msgid ""
5176 " int64_t\n"
5177 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5178 "                             const char *device);\n"
5179 "\n"
5180 msgstr ""
5181
5182 # type: textblock
5183 #: ../src/guestfs-actions.pod:582 ../fish/guestfish-actions.pod:433
5184 msgid "This returns the size of the device in bytes."
5185 msgstr ""
5186
5187 # type: textblock
5188 #: ../src/guestfs-actions.pod:584
5189 msgid "See also C<guestfs_blockdev_getsz>."
5190 msgstr ""
5191
5192 # type: =head2
5193 #: ../src/guestfs-actions.pod:590
5194 msgid "guestfs_blockdev_getss"
5195 msgstr ""
5196
5197 # type: verbatim
5198 #: ../src/guestfs-actions.pod:592
5199 #, no-wrap
5200 msgid ""
5201 " int\n"
5202 " guestfs_blockdev_getss (guestfs_h *g,\n"
5203 "                         const char *device);\n"
5204 "\n"
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:443
5209 msgid ""
5210 "This returns the size of sectors on a block device.  Usually 512, but can be "
5211 "larger for modern devices."
5212 msgstr ""
5213
5214 # type: textblock
5215 #: ../src/guestfs-actions.pod:599
5216 msgid ""
5217 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5218 "that)."
5219 msgstr ""
5220
5221 # type: =head2
5222 #: ../src/guestfs-actions.pod:606
5223 msgid "guestfs_blockdev_getsz"
5224 msgstr ""
5225
5226 # type: verbatim
5227 #: ../src/guestfs-actions.pod:608
5228 #, no-wrap
5229 msgid ""
5230 " int64_t\n"
5231 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5232 "                         const char *device);\n"
5233 "\n"
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:612 ../fish/guestfish-actions.pod:455
5238 msgid ""
5239 "This returns the size of the device in units of 512-byte sectors (even if "
5240 "the sectorsize isn't 512 bytes ... weird)."
5241 msgstr ""
5242
5243 # type: textblock
5244 #: ../src/guestfs-actions.pod:615
5245 msgid ""
5246 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5247 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5248 msgstr ""
5249
5250 # type: =head2
5251 #: ../src/guestfs-actions.pod:623
5252 msgid "guestfs_blockdev_rereadpt"
5253 msgstr ""
5254
5255 # type: verbatim
5256 #: ../src/guestfs-actions.pod:625
5257 #, no-wrap
5258 msgid ""
5259 " int\n"
5260 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5261 "                            const char *device);\n"
5262 "\n"
5263 msgstr ""
5264
5265 # type: textblock
5266 #: ../src/guestfs-actions.pod:629 ../fish/guestfish-actions.pod:468
5267 msgid "Reread the partition table on C<device>."
5268 msgstr ""
5269
5270 # type: =head2
5271 #: ../src/guestfs-actions.pod:635
5272 msgid "guestfs_blockdev_setbsz"
5273 msgstr ""
5274
5275 # type: verbatim
5276 #: ../src/guestfs-actions.pod:637
5277 #, no-wrap
5278 msgid ""
5279 " int\n"
5280 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5281 "                          const char *device,\n"
5282 "                          int blocksize);\n"
5283 "\n"
5284 msgstr ""
5285
5286 # type: textblock
5287 #: ../src/guestfs-actions.pod:642 ../fish/guestfish-actions.pod:476
5288 msgid "This sets the block size of a device."
5289 msgstr ""
5290
5291 # type: =head2
5292 #: ../src/guestfs-actions.pod:651
5293 msgid "guestfs_blockdev_setro"
5294 msgstr ""
5295
5296 # type: verbatim
5297 #: ../src/guestfs-actions.pod:653
5298 #, no-wrap
5299 msgid ""
5300 " int\n"
5301 " guestfs_blockdev_setro (guestfs_h *g,\n"
5302 "                         const char *device);\n"
5303 "\n"
5304 msgstr ""
5305
5306 # type: textblock
5307 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:487
5308 msgid "Sets the block device named C<device> to read-only."
5309 msgstr ""
5310
5311 # type: =head2
5312 #: ../src/guestfs-actions.pod:663
5313 msgid "guestfs_blockdev_setrw"
5314 msgstr ""
5315
5316 # type: verbatim
5317 #: ../src/guestfs-actions.pod:665
5318 #, no-wrap
5319 msgid ""
5320 " int\n"
5321 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5322 "                         const char *device);\n"
5323 "\n"
5324 msgstr ""
5325
5326 # type: textblock
5327 #: ../src/guestfs-actions.pod:669 ../fish/guestfish-actions.pod:495
5328 msgid "Sets the block device named C<device> to read-write."
5329 msgstr ""
5330
5331 # type: =head2
5332 #: ../src/guestfs-actions.pod:675
5333 msgid "guestfs_case_sensitive_path"
5334 msgstr ""
5335
5336 # type: verbatim
5337 #: ../src/guestfs-actions.pod:677
5338 #, no-wrap
5339 msgid ""
5340 " char *\n"
5341 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5342 "                              const char *path);\n"
5343 "\n"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:681 ../fish/guestfish-actions.pod:503
5348 msgid ""
5349 "This can be used to resolve case insensitive paths on a filesystem which is "
5350 "case sensitive.  The use case is to resolve paths which you have read from "
5351 "Windows configuration files or the Windows Registry, to the true path."
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:508
5356 msgid ""
5357 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5358 "(and probably others), which is that although the underlying filesystem is "
5359 "case-insensitive, the driver exports the filesystem to Linux as case-"
5360 "sensitive."
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:513
5365 msgid ""
5366 "One consequence of this is that special directories such as C<c:\\windows> "
5367 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5368 "precise details of how they were created.  In Windows itself this would not "
5369 "be a problem."
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:519
5374 msgid ""
5375 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5376 "#posixfilenames1>"
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:700 ../fish/guestfish-actions.pod:522
5381 msgid ""
5382 "This function resolves the true case of each element in the path and returns "
5383 "the case-sensitive path."
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:703
5388 msgid ""
5389 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5390 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5391 "how the directories were originally created under Windows)."
5392 msgstr ""
5393
5394 # type: textblock
5395 #: ../src/guestfs-actions.pod:708 ../fish/guestfish-actions.pod:530
5396 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5397 msgstr ""
5398
5399 # type: textblock
5400 #: ../src/guestfs-actions.pod:711
5401 msgid "See also C<guestfs_realpath>."
5402 msgstr ""
5403
5404 # type: =head2
5405 #: ../src/guestfs-actions.pod:716
5406 msgid "guestfs_cat"
5407 msgstr ""
5408
5409 # type: verbatim
5410 #: ../src/guestfs-actions.pod:718
5411 #, no-wrap
5412 msgid ""
5413 " char *\n"
5414 " guestfs_cat (guestfs_h *g,\n"
5415 "              const char *path);\n"
5416 "\n"
5417 msgstr ""
5418
5419 # type: textblock
5420 #: ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:4386
5421 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5422 msgid "Return the contents of the file named C<path>."
5423 msgstr ""
5424
5425 # type: textblock
5426 #: ../src/guestfs-actions.pod:724
5427 msgid ""
5428 "Note that this function cannot correctly handle binary files (specifically, "
5429 "files containing C<\\0> character which is treated as end of string).  For "
5430 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5431 "functions which have a more complex interface."
5432 msgstr ""
5433
5434 # type: textblock
5435 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:899
5436 #: ../src/guestfs-actions.pod:917 ../src/guestfs-actions.pod:1213
5437 #: ../src/guestfs-actions.pod:1230 ../src/guestfs-actions.pod:1323
5438 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1577
5439 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1965
5440 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2026
5441 #: ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2068
5442 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4215
5443 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4355
5444 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5145
5445 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5324
5446 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5927
5447 #: ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:5975
5448 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6069
5449 #: ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6128
5450 #: ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:546
5451 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5452 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5453 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5454 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5455 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5456 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5457 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3067
5458 #: ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158
5459 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190
5460 #: ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819
5461 #: ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919
5462 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347
5463 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374
5464 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432
5465 #: ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
5466 msgid ""
5467 "Because of the message protocol, there is a transfer limit of somewhere "
5468 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5469 msgstr ""
5470
5471 # type: =head2
5472 #: ../src/guestfs-actions.pod:735
5473 msgid "guestfs_checksum"
5474 msgstr ""
5475
5476 # type: verbatim
5477 #: ../src/guestfs-actions.pod:737
5478 #, no-wrap
5479 msgid ""
5480 " char *\n"
5481 " guestfs_checksum (guestfs_h *g,\n"
5482 "                   const char *csumtype,\n"
5483 "                   const char *path);\n"
5484 "\n"
5485 msgstr ""
5486
5487 # type: textblock
5488 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:553
5489 msgid ""
5490 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5491 msgstr ""
5492
5493 # type: textblock
5494 #: ../src/guestfs-actions.pod:745 ../fish/guestfish-actions.pod:556
5495 msgid ""
5496 "The type of checksum to compute is given by the C<csumtype> parameter which "
5497 "must have one of the following values:"
5498 msgstr ""
5499
5500 # type: =item
5501 #: ../src/guestfs-actions.pod:750 ../fish/guestfish-actions.pod:561
5502 msgid "C<crc>"
5503 msgstr ""
5504
5505 # type: textblock
5506 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:563
5507 msgid ""
5508 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5509 "C<cksum> command."
5510 msgstr ""
5511
5512 # type: =item
5513 #: ../src/guestfs-actions.pod:755 ../fish/guestfish-actions.pod:566
5514 msgid "C<md5>"
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:568
5519 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5520 msgstr ""
5521
5522 # type: =item
5523 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:570
5524 msgid "C<sha1>"
5525 msgstr ""
5526
5527 # type: textblock
5528 #: ../src/guestfs-actions.pod:761 ../fish/guestfish-actions.pod:572
5529 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5530 msgstr ""
5531
5532 # type: =item
5533 #: ../src/guestfs-actions.pod:763 ../fish/guestfish-actions.pod:574
5534 msgid "C<sha224>"
5535 msgstr ""
5536
5537 # type: textblock
5538 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:576
5539 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5540 msgstr ""
5541
5542 # type: =item
5543 #: ../src/guestfs-actions.pod:767 ../fish/guestfish-actions.pod:578
5544 msgid "C<sha256>"
5545 msgstr ""
5546
5547 # type: textblock
5548 #: ../src/guestfs-actions.pod:769 ../fish/guestfish-actions.pod:580
5549 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5550 msgstr ""
5551
5552 # type: =item
5553 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:582
5554 msgid "C<sha384>"
5555 msgstr ""
5556
5557 # type: textblock
5558 #: ../src/guestfs-actions.pod:773 ../fish/guestfish-actions.pod:584
5559 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5560 msgstr ""
5561
5562 # type: =item
5563 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:586
5564 msgid "C<sha512>"
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:777 ../fish/guestfish-actions.pod:588
5569 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5570 msgstr ""
5571
5572 # type: textblock
5573 #: ../src/guestfs-actions.pod:781 ../fish/guestfish-actions.pod:592
5574 msgid "The checksum is returned as a printable string."
5575 msgstr ""
5576
5577 # type: textblock
5578 #: ../src/guestfs-actions.pod:783
5579 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5580 msgstr ""
5581
5582 # type: textblock
5583 #: ../src/guestfs-actions.pod:785
5584 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5585 msgstr ""
5586
5587 # type: =head2
5588 #: ../src/guestfs-actions.pod:790
5589 msgid "guestfs_checksum_device"
5590 msgstr ""
5591
5592 # type: verbatim
5593 #: ../src/guestfs-actions.pod:792
5594 #, no-wrap
5595 msgid ""
5596 " char *\n"
5597 " guestfs_checksum_device (guestfs_h *g,\n"
5598 "                          const char *csumtype,\n"
5599 "                          const char *device);\n"
5600 "\n"
5601 msgstr ""
5602
5603 # type: textblock
5604 #: ../src/guestfs-actions.pod:797
5605 msgid ""
5606 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5607 "device named C<device>.  For the types of checksums supported see the "
5608 "C<guestfs_checksum> command."
5609 msgstr ""
5610
5611 # type: =head2
5612 #: ../src/guestfs-actions.pod:804
5613 msgid "guestfs_checksums_out"
5614 msgstr ""
5615
5616 # type: verbatim
5617 #: ../src/guestfs-actions.pod:806
5618 #, no-wrap
5619 msgid ""
5620 " int\n"
5621 " guestfs_checksums_out (guestfs_h *g,\n"
5622 "                        const char *csumtype,\n"
5623 "                        const char *directory,\n"
5624 "                        const char *sumsfile);\n"
5625 "\n"
5626 msgstr ""
5627
5628 # type: textblock
5629 #: ../src/guestfs-actions.pod:812 ../fish/guestfish-actions.pod:610
5630 msgid ""
5631 "This command computes the checksums of all regular files in C<directory> and "
5632 "then emits a list of those checksums to the local output file C<sumsfile>."
5633 msgstr ""
5634
5635 # type: textblock
5636 #: ../src/guestfs-actions.pod:816 ../fish/guestfish-actions.pod:614
5637 msgid ""
5638 "This can be used for verifying the integrity of a virtual machine.  However "
5639 "to be properly secure you should pay attention to the output of the checksum "
5640 "command (it uses the ones from GNU coreutils).  In particular when the "
5641 "filename is not printable, coreutils uses a special backslash syntax.  For "
5642 "more information, see the GNU coreutils info file."
5643 msgstr ""
5644
5645 # type: =head2
5646 #: ../src/guestfs-actions.pod:826
5647 msgid "guestfs_chmod"
5648 msgstr ""
5649
5650 # type: verbatim
5651 #: ../src/guestfs-actions.pod:828
5652 #, no-wrap
5653 msgid ""
5654 " int\n"
5655 " guestfs_chmod (guestfs_h *g,\n"
5656 "                int mode,\n"
5657 "                const char *path);\n"
5658 "\n"
5659 msgstr ""
5660
5661 # type: textblock
5662 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:628
5663 msgid ""
5664 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5665 "supported."
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:631
5670 msgid ""
5671 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5672 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5673 "C<700>."
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:840 ../src/guestfs-actions.pod:3483
5678 #: ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3607
5679 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:635
5680 #: ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642
5681 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
5682 msgid "The mode actually set is affected by the umask."
5683 msgstr ""
5684
5685 # type: =head2
5686 #: ../src/guestfs-actions.pod:844
5687 msgid "guestfs_chown"
5688 msgstr ""
5689
5690 # type: verbatim
5691 #: ../src/guestfs-actions.pod:846
5692 #, no-wrap
5693 msgid ""
5694 " int\n"
5695 " guestfs_chown (guestfs_h *g,\n"
5696 "                int owner,\n"
5697 "                int group,\n"
5698 "                const char *path);\n"
5699 "\n"
5700 msgstr ""
5701
5702 # type: textblock
5703 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:641
5704 msgid "Change the file owner to C<owner> and group to C<group>."
5705 msgstr ""
5706
5707 # type: textblock
5708 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:2707
5709 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5710 msgid ""
5711 "Only numeric uid and gid are supported.  If you want to use names, you will "
5712 "need to locate and parse the password file yourself (Augeas support makes "
5713 "this relatively easy)."
5714 msgstr ""
5715
5716 # type: =head2
5717 #: ../src/guestfs-actions.pod:860
5718 msgid "guestfs_command"
5719 msgstr ""
5720
5721 # type: verbatim
5722 #: ../src/guestfs-actions.pod:862
5723 #, no-wrap
5724 msgid ""
5725 " char *\n"
5726 " guestfs_command (guestfs_h *g,\n"
5727 "                  char *const *arguments);\n"
5728 "\n"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:866 ../fish/guestfish-actions.pod:651
5733 msgid ""
5734 "This call runs a command from the guest filesystem.  The filesystem must be "
5735 "mounted, and must contain a compatible operating system (ie. something "
5736 "Linux, with the same or compatible processor architecture)."
5737 msgstr ""
5738
5739 # type: textblock
5740 #: ../src/guestfs-actions.pod:871
5741 msgid ""
5742 "The single parameter is an argv-style list of arguments.  The first element "
5743 "is the name of the program to run.  Subsequent elements are parameters.  The "
5744 "list must be non-empty (ie. must contain a program name).  Note that the "
5745 "command runs directly, and is I<not> invoked via the shell (see "
5746 "C<guestfs_sh>)."
5747 msgstr ""
5748
5749 # type: textblock
5750 #: ../src/guestfs-actions.pod:878 ../fish/guestfish-actions.pod:663
5751 msgid "The return value is anything printed to I<stdout> by the command."
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:666
5756 msgid ""
5757 "If the command returns a non-zero exit status, then this function returns an "
5758 "error message.  The error message string is the content of I<stderr> from "
5759 "the command."
5760 msgstr ""
5761
5762 # type: textblock
5763 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:670
5764 msgid ""
5765 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5766 "bin>.  If you require a program from another location, you should provide "
5767 "the full path in the first parameter."
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:675
5772 msgid ""
5773 "Shared libraries and data files required by the program must be available on "
5774 "filesystems which are mounted in the correct places.  It is the caller's "
5775 "responsibility to ensure all filesystems that are needed are mounted at the "
5776 "right locations."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:902
5781 msgid "guestfs_command_lines"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:904
5786 #, no-wrap
5787 msgid ""
5788 " char **\n"
5789 " guestfs_command_lines (guestfs_h *g,\n"
5790 "                        char *const *arguments);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:908
5796 msgid ""
5797 "This is the same as C<guestfs_command>, but splits the result into a list of "
5798 "lines."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:911
5803 msgid "See also: C<guestfs_sh_lines>"
5804 msgstr ""
5805
5806 # type: =head2
5807 #: ../src/guestfs-actions.pod:920
5808 msgid "guestfs_config"
5809 msgstr ""
5810
5811 # type: verbatim
5812 #: ../src/guestfs-actions.pod:922
5813 #, no-wrap
5814 msgid ""
5815 " int\n"
5816 " guestfs_config (guestfs_h *g,\n"
5817 "                 const char *qemuparam,\n"
5818 "                 const char *qemuvalue);\n"
5819 "\n"
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:700
5824 msgid ""
5825 "This can be used to add arbitrary qemu command line parameters of the form "
5826 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5827 "setting some parameters which would interfere with parameters that we use."
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:705
5832 msgid "The first character of C<param> string must be a C<-> (dash)."
5833 msgstr ""
5834
5835 # type: textblock
5836 #: ../src/guestfs-actions.pod:934 ../fish/guestfish-actions.pod:707
5837 msgid "C<value> can be NULL."
5838 msgstr ""
5839
5840 # type: =head2
5841 #: ../src/guestfs-actions.pod:938
5842 msgid "guestfs_copy_size"
5843 msgstr ""
5844
5845 # type: verbatim
5846 #: ../src/guestfs-actions.pod:940
5847 #, no-wrap
5848 msgid ""
5849 " int\n"
5850 " guestfs_copy_size (guestfs_h *g,\n"
5851 "                    const char *src,\n"
5852 "                    const char *dest,\n"
5853 "                    int64_t size);\n"
5854 "\n"
5855 msgstr ""
5856
5857 # type: textblock
5858 #: ../src/guestfs-actions.pod:946 ../fish/guestfish-actions.pod:713
5859 msgid ""
5860 "This command copies exactly C<size> bytes from one source device or file "
5861 "C<src> to another destination device or file C<dest>."
5862 msgstr ""
5863
5864 # type: textblock
5865 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:716
5866 msgid ""
5867 "Note this will fail if the source is too short or if the destination is not "
5868 "large enough."
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1098
5873 #: ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1515
5874 #: ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:6011
5875 #: ../src/guestfs-actions.pod:6028
5876 msgid ""
5877 "This long-running command can generate progress notification messages so "
5878 "that the caller can display a progress bar or indicator.  To receive these "
5879 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5880 "guestfs_set_progress_callback>."
5881 msgstr ""
5882
5883 # type: =head2
5884 #: ../src/guestfs-actions.pod:959
5885 msgid "guestfs_cp"
5886 msgstr ""
5887
5888 # type: verbatim
5889 #: ../src/guestfs-actions.pod:961
5890 #, no-wrap
5891 msgid ""
5892 " int\n"
5893 " guestfs_cp (guestfs_h *g,\n"
5894 "             const char *src,\n"
5895 "             const char *dest);\n"
5896 "\n"
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:966 ../fish/guestfish-actions.pod:723
5901 msgid ""
5902 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5903 "destination filename or destination directory."
5904 msgstr ""
5905
5906 # type: =head2
5907 #: ../src/guestfs-actions.pod:971
5908 msgid "guestfs_cp_a"
5909 msgstr ""
5910
5911 # type: verbatim
5912 #: ../src/guestfs-actions.pod:973
5913 #, no-wrap
5914 msgid ""
5915 " int\n"
5916 " guestfs_cp_a (guestfs_h *g,\n"
5917 "               const char *src,\n"
5918 "               const char *dest);\n"
5919 "\n"
5920 msgstr ""
5921
5922 # type: textblock
5923 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:730
5924 msgid ""
5925 "This copies a file or directory from C<src> to C<dest> recursively using the "
5926 "C<cp -a> command."
5927 msgstr ""
5928
5929 # type: =head2
5930 #: ../src/guestfs-actions.pod:983
5931 msgid "guestfs_dd"
5932 msgstr ""
5933
5934 # type: verbatim
5935 #: ../src/guestfs-actions.pod:985
5936 #, no-wrap
5937 msgid ""
5938 " int\n"
5939 " guestfs_dd (guestfs_h *g,\n"
5940 "             const char *src,\n"
5941 "             const char *dest);\n"
5942 "\n"
5943 msgstr ""
5944
5945 # type: textblock
5946 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:737
5947 msgid ""
5948 "This command copies from one source device or file C<src> to another "
5949 "destination device or file C<dest>.  Normally you would use this to copy to "
5950 "or from a device or partition, for example to duplicate a filesystem."
5951 msgstr ""
5952
5953 # type: textblock
5954 #: ../src/guestfs-actions.pod:995
5955 msgid ""
5956 "If the destination is a device, it must be as large or larger than the "
5957 "source file or device, otherwise the copy will fail.  This command cannot do "
5958 "partial copies (see C<guestfs_copy_size>)."
5959 msgstr ""
5960
5961 # type: =head2
5962 #: ../src/guestfs-actions.pod:1001
5963 msgid "guestfs_debug"
5964 msgstr ""
5965
5966 # type: verbatim
5967 #: ../src/guestfs-actions.pod:1003
5968 #, no-wrap
5969 msgid ""
5970 " char *\n"
5971 " guestfs_debug (guestfs_h *g,\n"
5972 "                const char *subcmd,\n"
5973 "                char *const *extraargs);\n"
5974 "\n"
5975 msgstr ""
5976
5977 # type: textblock
5978 #: ../src/guestfs-actions.pod:1008
5979 msgid ""
5980 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5981 "guestfs daemon) that runs inside the qemu subprocess."
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:1012 ../fish/guestfish-actions.pod:754
5986 msgid ""
5987 "There is no comprehensive help for this command.  You have to look at the "
5988 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5989 msgstr ""
5990
5991 # type: =head2
5992 #: ../src/guestfs-actions.pod:1019
5993 msgid "guestfs_debug_upload"
5994 msgstr ""
5995
5996 # type: verbatim
5997 #: ../src/guestfs-actions.pod:1021
5998 #, no-wrap
5999 msgid ""
6000 " int\n"
6001 " guestfs_debug_upload (guestfs_h *g,\n"
6002 "                       const char *filename,\n"
6003 "                       const char *tmpname,\n"
6004 "                       int mode);\n"
6005 "\n"
6006 msgstr ""
6007
6008 # type: textblock
6009 #: ../src/guestfs-actions.pod:1027
6010 msgid ""
6011 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
6012 "appliance."
6013 msgstr ""
6014
6015 # type: textblock
6016 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:765
6017 msgid ""
6018 "There is no comprehensive help for this command.  You have to look at the "
6019 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
6020 msgstr ""
6021
6022 # type: =head2
6023 #: ../src/guestfs-actions.pod:1036
6024 msgid "guestfs_df"
6025 msgstr ""
6026
6027 # type: verbatim
6028 #: ../src/guestfs-actions.pod:1038
6029 #, no-wrap
6030 msgid ""
6031 " char *\n"
6032 " guestfs_df (guestfs_h *g);\n"
6033 "\n"
6034 msgstr ""
6035
6036 # type: textblock
6037 #: ../src/guestfs-actions.pod:1041 ../fish/guestfish-actions.pod:775
6038 msgid "This command runs the C<df> command to report disk space used."
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:1058
6043 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
6044 msgid ""
6045 "This command is mostly useful for interactive sessions.  It is I<not> "
6046 "intended that you try to parse the output string.  Use C<statvfs> from "
6047 "programs."
6048 msgstr ""
6049
6050 # type: =head2
6051 #: ../src/guestfs-actions.pod:1050
6052 msgid "guestfs_df_h"
6053 msgstr ""
6054
6055 # type: verbatim
6056 #: ../src/guestfs-actions.pod:1052
6057 #, no-wrap
6058 msgid ""
6059 " char *\n"
6060 " guestfs_df_h (guestfs_h *g);\n"
6061 "\n"
6062 msgstr ""
6063
6064 # type: textblock
6065 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:785
6066 msgid ""
6067 "This command runs the C<df -h> command to report disk space used in human-"
6068 "readable format."
6069 msgstr ""
6070
6071 # type: =head2
6072 #: ../src/guestfs-actions.pod:1065
6073 msgid "guestfs_dmesg"
6074 msgstr ""
6075
6076 # type: verbatim
6077 #: ../src/guestfs-actions.pod:1067
6078 #, no-wrap
6079 msgid ""
6080 " char *\n"
6081 " guestfs_dmesg (guestfs_h *g);\n"
6082 "\n"
6083 msgstr ""
6084
6085 # type: textblock
6086 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:796
6087 msgid ""
6088 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6089 "This is sometimes useful for extended debugging of problems."
6090 msgstr ""
6091
6092 # type: textblock
6093 #: ../src/guestfs-actions.pod:1074
6094 msgid ""
6095 "Another way to get the same information is to enable verbose messages with "
6096 "C<guestfs_set_verbose> or by setting the environment variable "
6097 "C<LIBGUESTFS_DEBUG=1> before running the program."
6098 msgstr ""
6099
6100 # type: =head2
6101 #: ../src/guestfs-actions.pod:1082
6102 msgid "guestfs_download"
6103 msgstr ""
6104
6105 # type: verbatim
6106 #: ../src/guestfs-actions.pod:1084
6107 #, no-wrap
6108 msgid ""
6109 " int\n"
6110 " guestfs_download (guestfs_h *g,\n"
6111 "                   const char *remotefilename,\n"
6112 "                   const char *filename);\n"
6113 "\n"
6114 msgstr ""
6115
6116 # type: textblock
6117 #: ../src/guestfs-actions.pod:1089 ../src/guestfs-actions.pod:1112
6118 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
6119 msgid ""
6120 "Download file C<remotefilename> and save it as C<filename> on the local "
6121 "machine."
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:5553
6126 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
6127 msgid "C<filename> can also be a named pipe."
6128 msgstr ""
6129
6130 # type: textblock
6131 #: ../src/guestfs-actions.pod:1094
6132 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6133 msgstr ""
6134
6135 # type: =head2
6136 #: ../src/guestfs-actions.pod:1103
6137 msgid "guestfs_download_offset"
6138 msgstr ""
6139
6140 # type: verbatim
6141 #: ../src/guestfs-actions.pod:1105
6142 #, no-wrap
6143 msgid ""
6144 " int\n"
6145 " guestfs_download_offset (guestfs_h *g,\n"
6146 "                          const char *remotefilename,\n"
6147 "                          const char *filename,\n"
6148 "                          int64_t offset,\n"
6149 "                          int64_t size);\n"
6150 "\n"
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:1115 ../fish/guestfish-actions.pod:825
6155 msgid ""
6156 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6157 "region must be within the file or device)."
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:1118
6162 msgid ""
6163 "Note that there is no limit on the amount of data that can be downloaded "
6164 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6165 "full amount unless an error occurs."
6166 msgstr ""
6167
6168 # type: textblock
6169 #: ../src/guestfs-actions.pod:1123
6170 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6171 msgstr ""
6172
6173 # type: =head2
6174 #: ../src/guestfs-actions.pod:1132
6175 msgid "guestfs_drop_caches"
6176 msgstr ""
6177
6178 # type: verbatim
6179 #: ../src/guestfs-actions.pod:1134
6180 #, no-wrap
6181 msgid ""
6182 " int\n"
6183 " guestfs_drop_caches (guestfs_h *g,\n"
6184 "                      int whattodrop);\n"
6185 "\n"
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:841
6190 msgid ""
6191 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6192 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6193 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6194 msgstr ""
6195
6196 # type: textblock
6197 #: ../src/guestfs-actions.pod:1143 ../fish/guestfish-actions.pod:846
6198 msgid "Setting C<whattodrop> to 3 should drop everything."
6199 msgstr ""
6200
6201 # type: textblock
6202 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:848
6203 msgid ""
6204 "This automatically calls L<sync(2)> before the operation, so that the "
6205 "maximum guest memory is freed."
6206 msgstr ""
6207
6208 # type: =head2
6209 #: ../src/guestfs-actions.pod:1150
6210 msgid "guestfs_du"
6211 msgstr ""
6212
6213 # type: verbatim
6214 #: ../src/guestfs-actions.pod:1152
6215 #, no-wrap
6216 msgid ""
6217 " int64_t\n"
6218 " guestfs_du (guestfs_h *g,\n"
6219 "             const char *path);\n"
6220 "\n"
6221 msgstr ""
6222
6223 # type: textblock
6224 #: ../src/guestfs-actions.pod:1156 ../fish/guestfish-actions.pod:855
6225 msgid ""
6226 "This command runs the C<du -s> command to estimate file space usage for "
6227 "C<path>."
6228 msgstr ""
6229
6230 # type: textblock
6231 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:858
6232 msgid ""
6233 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6234 "estimate includes the contents of the directory and all subdirectories "
6235 "(recursively)."
6236 msgstr ""
6237
6238 # type: textblock
6239 #: ../src/guestfs-actions.pod:1163 ../fish/guestfish-actions.pod:862
6240 msgid ""
6241 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6242 msgstr ""
6243
6244 # type: =head2
6245 #: ../src/guestfs-actions.pod:1168
6246 msgid "guestfs_e2fsck_f"
6247 msgstr ""
6248
6249 # type: verbatim
6250 #: ../src/guestfs-actions.pod:1170
6251 #, no-wrap
6252 msgid ""
6253 " int\n"
6254 " guestfs_e2fsck_f (guestfs_h *g,\n"
6255 "                   const char *device);\n"
6256 "\n"
6257 msgstr ""
6258
6259 # type: textblock
6260 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:869
6261 msgid ""
6262 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6263 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6264 "clean (C<-f>)."
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1178
6269 msgid ""
6270 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6271 "Normally you should use C<guestfs_fsck>."
6272 msgstr ""
6273
6274 # type: =head2
6275 #: ../src/guestfs-actions.pod:1183
6276 msgid "guestfs_echo_daemon"
6277 msgstr ""
6278
6279 # type: verbatim
6280 #: ../src/guestfs-actions.pod:1185
6281 #, no-wrap
6282 msgid ""
6283 " char *\n"
6284 " guestfs_echo_daemon (guestfs_h *g,\n"
6285 "                      char *const *words);\n"
6286 "\n"
6287 msgstr ""
6288
6289 # type: textblock
6290 #: ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:880
6291 msgid ""
6292 "This command concatenates the list of C<words> passed with single spaces "
6293 "between them and returns the resulting string."
6294 msgstr ""
6295
6296 # type: textblock
6297 #: ../src/guestfs-actions.pod:1192 ../fish/guestfish-actions.pod:883
6298 msgid "You can use this command to test the connection through to the daemon."
6299 msgstr ""
6300
6301 # type: textblock
6302 #: ../src/guestfs-actions.pod:1194
6303 msgid "See also C<guestfs_ping_daemon>."
6304 msgstr ""
6305
6306 # type: =head2
6307 #: ../src/guestfs-actions.pod:1199
6308 msgid "guestfs_egrep"
6309 msgstr ""
6310
6311 # type: verbatim
6312 #: ../src/guestfs-actions.pod:1201
6313 #, no-wrap
6314 msgid ""
6315 " char **\n"
6316 " guestfs_egrep (guestfs_h *g,\n"
6317 "                const char *regex,\n"
6318 "                const char *path);\n"
6319 "\n"
6320 msgstr ""
6321
6322 # type: textblock
6323 #: ../src/guestfs-actions.pod:1206 ../fish/guestfish-actions.pod:891
6324 msgid ""
6325 "This calls the external C<egrep> program and returns the matching lines."
6326 msgstr ""
6327
6328 # type: =head2
6329 #: ../src/guestfs-actions.pod:1216
6330 msgid "guestfs_egrepi"
6331 msgstr ""
6332
6333 # type: verbatim
6334 #: ../src/guestfs-actions.pod:1218
6335 #, no-wrap
6336 msgid ""
6337 " char **\n"
6338 " guestfs_egrepi (guestfs_h *g,\n"
6339 "                 const char *regex,\n"
6340 "                 const char *path);\n"
6341 "\n"
6342 msgstr ""
6343
6344 # type: textblock
6345 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:901
6346 msgid ""
6347 "This calls the external C<egrep -i> program and returns the matching lines."
6348 msgstr ""
6349
6350 # type: =head2
6351 #: ../src/guestfs-actions.pod:1233
6352 msgid "guestfs_equal"
6353 msgstr ""
6354
6355 # type: verbatim
6356 #: ../src/guestfs-actions.pod:1235
6357 #, no-wrap
6358 msgid ""
6359 " int\n"
6360 " guestfs_equal (guestfs_h *g,\n"
6361 "                const char *file1,\n"
6362 "                const char *file2);\n"
6363 "\n"
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1240 ../fish/guestfish-actions.pod:911
6368 msgid ""
6369 "This compares the two files C<file1> and C<file2> and returns true if their "
6370 "content is exactly equal, or false otherwise."
6371 msgstr ""
6372
6373 # type: textblock
6374 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:914
6375 msgid "The external L<cmp(1)> program is used for the comparison."
6376 msgstr ""
6377
6378 # type: =head2
6379 #: ../src/guestfs-actions.pod:1247
6380 msgid "guestfs_exists"
6381 msgstr ""
6382
6383 # type: verbatim
6384 #: ../src/guestfs-actions.pod:1249
6385 #, no-wrap
6386 msgid ""
6387 " int\n"
6388 " guestfs_exists (guestfs_h *g,\n"
6389 "                 const char *path);\n"
6390 "\n"
6391 msgstr ""
6392
6393 # type: textblock
6394 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:920
6395 msgid ""
6396 "This returns C<true> if and only if there is a file, directory (or anything) "
6397 "with the given C<path> name."
6398 msgstr ""
6399
6400 # type: textblock
6401 #: ../src/guestfs-actions.pod:1256
6402 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6403 msgstr ""
6404
6405 # type: =head2
6406 #: ../src/guestfs-actions.pod:1260
6407 msgid "guestfs_fallocate"
6408 msgstr ""
6409
6410 # type: verbatim
6411 #: ../src/guestfs-actions.pod:1262
6412 #, no-wrap
6413 msgid ""
6414 " int\n"
6415 " guestfs_fallocate (guestfs_h *g,\n"
6416 "                    const char *path,\n"
6417 "                    int len);\n"
6418 "\n"
6419 msgstr ""
6420
6421 # type: textblock
6422 #: ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1291
6423 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6424 msgid ""
6425 "This command preallocates a file (containing zero bytes) named C<path> of "
6426 "size C<len> bytes.  If the file exists already, it is overwritten."
6427 msgstr ""
6428
6429 # type: textblock
6430 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:933
6431 msgid ""
6432 "Do not confuse this with the guestfish-specific C<alloc> command which "
6433 "allocates a file in the host and attaches it as a device."
6434 msgstr ""
6435
6436 # type: textblock
6437 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:937
6438 msgid ""
6439 "This function is deprecated.  In new code, use the C<fallocate64> call "
6440 "instead."
6441 msgstr ""
6442
6443 # type: =head2
6444 #: ../src/guestfs-actions.pod:1284
6445 msgid "guestfs_fallocate64"
6446 msgstr ""
6447
6448 # type: verbatim
6449 #: ../src/guestfs-actions.pod:1286
6450 #, no-wrap
6451 msgid ""
6452 " int\n"
6453 " guestfs_fallocate64 (guestfs_h *g,\n"
6454 "                      const char *path,\n"
6455 "                      int64_t len);\n"
6456 "\n"
6457 msgstr ""
6458
6459 # type: textblock
6460 #: ../src/guestfs-actions.pod:1295
6461 msgid ""
6462 "Note that this call allocates disk blocks for the file.  To create a sparse "
6463 "file use C<guestfs_truncate_size> instead."
6464 msgstr ""
6465
6466 # type: textblock
6467 #: ../src/guestfs-actions.pod:1298
6468 msgid ""
6469 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6470 "oversight it only allowed 30 bit lengths to be specified, effectively "
6471 "limiting the maximum size of files created through that call to 1GB."
6472 msgstr ""
6473
6474 # type: textblock
6475 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:960
6476 msgid ""
6477 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6478 "commands which create a file in the host and attach it as a device."
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1309
6483 msgid "guestfs_fgrep"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1311
6488 #, no-wrap
6489 msgid ""
6490 " char **\n"
6491 " guestfs_fgrep (guestfs_h *g,\n"
6492 "                const char *pattern,\n"
6493 "                const char *path);\n"
6494 "\n"
6495 msgstr ""
6496
6497 # type: textblock
6498 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:968
6499 msgid ""
6500 "This calls the external C<fgrep> program and returns the matching lines."
6501 msgstr ""
6502
6503 # type: =head2
6504 #: ../src/guestfs-actions.pod:1326
6505 msgid "guestfs_fgrepi"
6506 msgstr ""
6507
6508 # type: verbatim
6509 #: ../src/guestfs-actions.pod:1328
6510 #, no-wrap
6511 msgid ""
6512 " char **\n"
6513 " guestfs_fgrepi (guestfs_h *g,\n"
6514 "                 const char *pattern,\n"
6515 "                 const char *path);\n"
6516 "\n"
6517 msgstr ""
6518
6519 # type: textblock
6520 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:978
6521 msgid ""
6522 "This calls the external C<fgrep -i> program and returns the matching lines."
6523 msgstr ""
6524
6525 # type: =head2
6526 #: ../src/guestfs-actions.pod:1343
6527 msgid "guestfs_file"
6528 msgstr ""
6529
6530 # type: verbatim
6531 #: ../src/guestfs-actions.pod:1345
6532 #, no-wrap
6533 msgid ""
6534 " char *\n"
6535 " guestfs_file (guestfs_h *g,\n"
6536 "               const char *path);\n"
6537 "\n"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1349 ../fish/guestfish-actions.pod:988
6542 msgid ""
6543 "This call uses the standard L<file(1)> command to determine the type or "
6544 "contents of the file."
6545 msgstr ""
6546
6547 # type: textblock
6548 #: ../src/guestfs-actions.pod:1352 ../fish/guestfish-actions.pod:991
6549 msgid ""
6550 "This call will also transparently look inside various types of compressed "
6551 "file."
6552 msgstr ""
6553
6554 # type: textblock
6555 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:994
6556 msgid ""
6557 "The exact command which runs is C<file -zb path>.  Note in particular that "
6558 "the filename is not prepended to the output (the C<-b> option)."
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1359
6563 msgid ""
6564 "This command can also be used on C</dev/> devices (and partitions, LV "
6565 "names).  You can for example use this to determine if a device contains a "
6566 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1364 ../fish/guestfish-actions.pod:1003
6571 msgid ""
6572 "If the C<path> does not begin with C</dev/> then this command only works for "
6573 "the content of regular files.  For other file types (directory, symbolic "
6574 "link etc) it will just return the string C<directory> etc."
6575 msgstr ""
6576
6577 # type: =head2
6578 #: ../src/guestfs-actions.pod:1372
6579 msgid "guestfs_file_architecture"
6580 msgstr ""
6581
6582 # type: verbatim
6583 #: ../src/guestfs-actions.pod:1374
6584 #, no-wrap
6585 msgid ""
6586 " char *\n"
6587 " guestfs_file_architecture (guestfs_h *g,\n"
6588 "                            const char *filename);\n"
6589 "\n"
6590 msgstr ""
6591
6592 # type: textblock
6593 #: ../src/guestfs-actions.pod:1378 ../fish/guestfish-actions.pod:1012
6594 msgid ""
6595 "This detects the architecture of the binary C<filename>, and returns it if "
6596 "known."
6597 msgstr ""
6598
6599 # type: textblock
6600 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1015
6601 msgid "Currently defined architectures are:"
6602 msgstr ""
6603
6604 # type: =item
6605 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1019
6606 msgid "\"i386\""
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1387 ../fish/guestfish-actions.pod:1021
6611 msgid ""
6612 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6613 "irrespective of the precise processor requirements of the binary."
6614 msgstr ""
6615
6616 # type: =item
6617 #: ../src/guestfs-actions.pod:1390 ../fish/guestfish-actions.pod:1024
6618 msgid "\"x86_64\""
6619 msgstr ""
6620
6621 # type: textblock
6622 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1026
6623 msgid "64 bit x86-64."
6624 msgstr ""
6625
6626 # type: =item
6627 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:1028
6628 msgid "\"sparc\""
6629 msgstr ""
6630
6631 # type: textblock
6632 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:1030
6633 msgid "32 bit SPARC."
6634 msgstr ""
6635
6636 # type: =item
6637 #: ../src/guestfs-actions.pod:1398 ../fish/guestfish-actions.pod:1032
6638 msgid "\"sparc64\""
6639 msgstr ""
6640
6641 # type: textblock
6642 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1034
6643 msgid "64 bit SPARC V9 and above."
6644 msgstr ""
6645
6646 # type: =item
6647 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:1036
6648 msgid "\"ia64\""
6649 msgstr ""
6650
6651 # type: textblock
6652 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:1038
6653 msgid "Intel Itanium."
6654 msgstr ""
6655
6656 # type: =item
6657 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:1040
6658 msgid "\"ppc\""
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:1042
6663 msgid "32 bit Power PC."
6664 msgstr ""
6665
6666 # type: =item
6667 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1044
6668 msgid "\"ppc64\""
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:1046
6673 msgid "64 bit Power PC."
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1050
6678 msgid "Libguestfs may return other architecture strings in future."
6679 msgstr ""
6680
6681 # type: textblock
6682 #: ../src/guestfs-actions.pod:1418 ../fish/guestfish-actions.pod:1052
6683 msgid "The function works on at least the following types of files:"
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1424 ../fish/guestfish-actions.pod:1058
6688 msgid "many types of Un*x and Linux binary"
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1062
6693 msgid "many types of Un*x and Linux shared library"
6694 msgstr ""
6695
6696 # type: textblock
6697 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1066
6698 msgid "Windows Win32 and Win64 binaries"
6699 msgstr ""
6700
6701 # type: textblock
6702 #: ../src/guestfs-actions.pod:1436 ../fish/guestfish-actions.pod:1070
6703 msgid "Windows Win32 and Win64 DLLs"
6704 msgstr ""
6705
6706 # type: textblock
6707 #: ../src/guestfs-actions.pod:1438 ../fish/guestfish-actions.pod:1072
6708 msgid "Win32 binaries and DLLs return C<i386>."
6709 msgstr ""
6710
6711 # type: textblock
6712 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:1074
6713 msgid "Win64 binaries and DLLs return C<x86_64>."
6714 msgstr ""
6715
6716 # type: textblock
6717 #: ../src/guestfs-actions.pod:1444 ../fish/guestfish-actions.pod:1078
6718 msgid "Linux kernel modules"
6719 msgstr ""
6720
6721 # type: textblock
6722 #: ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:1082
6723 msgid "Linux new-style initrd images"
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1452 ../fish/guestfish-actions.pod:1086
6728 msgid "some non-x86 Linux vmlinuz kernels"
6729 msgstr ""
6730
6731 # type: textblock
6732 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1090
6733 msgid "What it can't do currently:"
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:1096
6738 msgid "static libraries (libfoo.a)"
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1466 ../fish/guestfish-actions.pod:1100
6743 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6744 msgstr ""
6745
6746 # type: textblock
6747 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1104
6748 msgid "x86 Linux vmlinuz kernels"
6749 msgstr ""
6750
6751 # type: textblock
6752 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:1106
6753 msgid ""
6754 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6755 "compressed code, and are horribly hard to unpack.  If you want to find the "
6756 "architecture of a kernel, use the architecture of the associated initrd or "
6757 "kernel module(s) instead."
6758 msgstr ""
6759
6760 # type: =head2
6761 #: ../src/guestfs-actions.pod:1482
6762 msgid "guestfs_filesize"
6763 msgstr ""
6764
6765 # type: verbatim
6766 #: ../src/guestfs-actions.pod:1484
6767 #, no-wrap
6768 msgid ""
6769 " int64_t\n"
6770 " guestfs_filesize (guestfs_h *g,\n"
6771 "                   const char *file);\n"
6772 "\n"
6773 msgstr ""
6774
6775 # type: textblock
6776 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:1117
6777 msgid "This command returns the size of C<file> in bytes."
6778 msgstr ""
6779
6780 # type: textblock
6781 #: ../src/guestfs-actions.pod:1490
6782 msgid ""
6783 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6784 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6785 "devices, use C<guestfs_blockdev_getsize64>."
6786 msgstr ""
6787
6788 # type: =head2
6789 #: ../src/guestfs-actions.pod:1496
6790 msgid "guestfs_fill"
6791 msgstr ""
6792
6793 # type: verbatim
6794 #: ../src/guestfs-actions.pod:1498
6795 #, no-wrap
6796 msgid ""
6797 " int\n"
6798 " guestfs_fill (guestfs_h *g,\n"
6799 "               int c,\n"
6800 "               int len,\n"
6801 "               const char *path);\n"
6802 "\n"
6803 msgstr ""
6804
6805 # type: textblock
6806 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:1127
6807 msgid ""
6808 "This command creates a new file called C<path>.  The initial content of the "
6809 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6810 "[0..255]>."
6811 msgstr ""
6812
6813 # type: textblock
6814 #: ../src/guestfs-actions.pod:1508
6815 msgid ""
6816 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6817 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6818 "bytes use C<guestfs_fill_pattern>."
6819 msgstr ""
6820
6821 # type: =head2
6822 #: ../src/guestfs-actions.pod:1520
6823 msgid "guestfs_fill_pattern"
6824 msgstr ""
6825
6826 # type: verbatim
6827 #: ../src/guestfs-actions.pod:1522
6828 #, no-wrap
6829 msgid ""
6830 " int\n"
6831 " guestfs_fill_pattern (guestfs_h *g,\n"
6832 "                       const char *pattern,\n"
6833 "                       int len,\n"
6834 "                       const char *path);\n"
6835 "\n"
6836 msgstr ""
6837
6838 # type: textblock
6839 #: ../src/guestfs-actions.pod:1528
6840 msgid ""
6841 "This function is like C<guestfs_fill> except that it creates a new file of "
6842 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6843 "pattern is truncated if necessary to ensure the length of the file is "
6844 "exactly C<len> bytes."
6845 msgstr ""
6846
6847 # type: =head2
6848 #: ../src/guestfs-actions.pod:1540
6849 msgid "guestfs_find"
6850 msgstr ""
6851
6852 # type: verbatim
6853 #: ../src/guestfs-actions.pod:1542
6854 #, no-wrap
6855 msgid ""
6856 " char **\n"
6857 " guestfs_find (guestfs_h *g,\n"
6858 "               const char *directory);\n"
6859 "\n"
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1149
6864 msgid ""
6865 "This command lists out all files and directories, recursively, starting at "
6866 "C<directory>.  It is essentially equivalent to running the shell command "
6867 "C<find directory -print> but some post-processing happens on the output, "
6868 "described below."
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1154
6873 msgid ""
6874 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6875 "structure was:"
6876 msgstr ""
6877
6878 # type: verbatim
6879 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1157
6880 #, no-wrap
6881 msgid ""
6882 " /tmp/a\n"
6883 " /tmp/b\n"
6884 " /tmp/c/d\n"
6885 "\n"
6886 msgstr ""
6887
6888 # type: textblock
6889 #: ../src/guestfs-actions.pod:1558
6890 msgid ""
6891 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6892 msgstr ""
6893
6894 # type: verbatim
6895 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1164
6896 #, no-wrap
6897 msgid ""
6898 " a\n"
6899 " b\n"
6900 " c\n"
6901 " c/d\n"
6902 "\n"
6903 msgstr ""
6904
6905 # type: textblock
6906 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1169
6907 msgid "If C<directory> is not a directory, then this command returns an error."
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1172
6912 msgid "The returned list is sorted."
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1571
6917 msgid "See also C<guestfs_find0>."
6918 msgstr ""
6919
6920 # type: =head2
6921 #: ../src/guestfs-actions.pod:1580
6922 msgid "guestfs_find0"
6923 msgstr ""
6924
6925 # type: verbatim
6926 #: ../src/guestfs-actions.pod:1582
6927 #, no-wrap
6928 msgid ""
6929 " int\n"
6930 " guestfs_find0 (guestfs_h *g,\n"
6931 "                const char *directory,\n"
6932 "                const char *files);\n"
6933 "\n"
6934 msgstr ""
6935
6936 # type: textblock
6937 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1183
6938 msgid ""
6939 "This command lists out all files and directories, recursively, starting at "
6940 "C<directory>, placing the resulting list in the external file called "
6941 "C<files>."
6942 msgstr ""
6943
6944 # type: textblock
6945 #: ../src/guestfs-actions.pod:1591
6946 msgid ""
6947 "This command works the same way as C<guestfs_find> with the following "
6948 "exceptions:"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1194
6953 msgid "The resulting list is written to an external file."
6954 msgstr ""
6955
6956 # type: textblock
6957 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1198
6958 msgid ""
6959 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6960 "L<find(1)> option I<-print0>."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1203
6965 msgid "This command is not limited in the number of names that it can return."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1208
6970 msgid "The result list is not sorted."
6971 msgstr ""
6972
6973 # type: =head2
6974 #: ../src/guestfs-actions.pod:1618
6975 msgid "guestfs_findfs_label"
6976 msgstr ""
6977
6978 # type: verbatim
6979 #: ../src/guestfs-actions.pod:1620
6980 #, no-wrap
6981 msgid ""
6982 " char *\n"
6983 " guestfs_findfs_label (guestfs_h *g,\n"
6984 "                       const char *label);\n"
6985 "\n"
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1218
6990 msgid ""
6991 "This command searches the filesystems and returns the one which has the "
6992 "given label.  An error is returned if no such filesystem can be found."
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1628
6997 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6998 msgstr ""
6999
7000 # type: =head2
7001 #: ../src/guestfs-actions.pod:1633
7002 msgid "guestfs_findfs_uuid"
7003 msgstr ""
7004
7005 # type: verbatim
7006 #: ../src/guestfs-actions.pod:1635
7007 #, no-wrap
7008 msgid ""
7009 " char *\n"
7010 " guestfs_findfs_uuid (guestfs_h *g,\n"
7011 "                      const char *uuid);\n"
7012 "\n"
7013 msgstr ""
7014
7015 # type: textblock
7016 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1228
7017 msgid ""
7018 "This command searches the filesystems and returns the one which has the "
7019 "given UUID.  An error is returned if no such filesystem can be found."
7020 msgstr ""
7021
7022 # type: textblock
7023 #: ../src/guestfs-actions.pod:1643
7024 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7025 msgstr ""
7026
7027 # type: =head2
7028 #: ../src/guestfs-actions.pod:1648
7029 msgid "guestfs_fsck"
7030 msgstr ""
7031
7032 # type: verbatim
7033 #: ../src/guestfs-actions.pod:1650
7034 #, no-wrap
7035 msgid ""
7036 " int\n"
7037 " guestfs_fsck (guestfs_h *g,\n"
7038 "               const char *fstype,\n"
7039 "               const char *device);\n"
7040 "\n"
7041 msgstr ""
7042
7043 # type: textblock
7044 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1238
7045 msgid ""
7046 "This runs the filesystem checker (fsck) on C<device> which should have "
7047 "filesystem type C<fstype>."
7048 msgstr ""
7049
7050 # type: textblock
7051 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1241
7052 msgid ""
7053 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7054 "codes from C<fsck>."
7055 msgstr ""
7056
7057 # type: textblock
7058 #: ../src/guestfs-actions.pod:1667 ../fish/guestfish-actions.pod:1250
7059 msgid "Multiple status codes can be summed together."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1254
7064 msgid ""
7065 "A non-zero return code can mean \"success\", for example if errors have been "
7066 "corrected on the filesystem."
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1259
7071 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1264
7076 msgid ""
7077 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7078 msgstr ""
7079
7080 # type: =head2
7081 #: ../src/guestfs-actions.pod:1685
7082 msgid "guestfs_get_append"
7083 msgstr ""
7084
7085 # type: verbatim
7086 #: ../src/guestfs-actions.pod:1687
7087 #, no-wrap
7088 msgid ""
7089 " const char *\n"
7090 " guestfs_get_append (guestfs_h *g);\n"
7091 "\n"
7092 msgstr ""
7093
7094 # type: textblock
7095 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1270
7096 msgid ""
7097 "Return the additional kernel options which are added to the guest kernel "
7098 "command line."
7099 msgstr ""
7100
7101 # type: textblock
7102 #: ../src/guestfs-actions.pod:1693 ../fish/guestfish-actions.pod:1273
7103 msgid "If C<NULL> then no options are added."
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1695
7108 msgid ""
7109 "This function returns a string which may be NULL.  There is no way to return "
7110 "an error from this function.  The string is owned by the guest handle and "
7111 "must I<not> be freed."
7112 msgstr ""
7113
7114 # type: =head2
7115 #: ../src/guestfs-actions.pod:1699
7116 msgid "guestfs_get_autosync"
7117 msgstr ""
7118
7119 # type: verbatim
7120 #: ../src/guestfs-actions.pod:1701
7121 #, no-wrap
7122 msgid ""
7123 " int\n"
7124 " guestfs_get_autosync (guestfs_h *g);\n"
7125 "\n"
7126 msgstr ""
7127
7128 # type: textblock
7129 #: ../src/guestfs-actions.pod:1704 ../fish/guestfish-actions.pod:1279
7130 msgid "Get the autosync flag."
7131 msgstr ""
7132
7133 # type: =head2
7134 #: ../src/guestfs-actions.pod:1708
7135 msgid "guestfs_get_direct"
7136 msgstr ""
7137
7138 # type: verbatim
7139 #: ../src/guestfs-actions.pod:1710
7140 #, no-wrap
7141 msgid ""
7142 " int\n"
7143 " guestfs_get_direct (guestfs_h *g);\n"
7144 "\n"
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1285
7149 msgid "Return the direct appliance mode flag."
7150 msgstr ""
7151
7152 # type: =head2
7153 #: ../src/guestfs-actions.pod:1717
7154 msgid "guestfs_get_e2label"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #: ../src/guestfs-actions.pod:1719
7159 #, no-wrap
7160 msgid ""
7161 " char *\n"
7162 " guestfs_get_e2label (guestfs_h *g,\n"
7163 "                      const char *device);\n"
7164 "\n"
7165 msgstr ""
7166
7167 # type: textblock
7168 #: ../src/guestfs-actions.pod:1723 ../fish/guestfish-actions.pod:1291
7169 msgid ""
7170 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1294
7175 msgid ""
7176 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7177 msgstr ""
7178
7179 # type: =head2
7180 #: ../src/guestfs-actions.pod:1736
7181 msgid "guestfs_get_e2uuid"
7182 msgstr ""
7183
7184 # type: verbatim
7185 #: ../src/guestfs-actions.pod:1738
7186 #, no-wrap
7187 msgid ""
7188 " char *\n"
7189 " guestfs_get_e2uuid (guestfs_h *g,\n"
7190 "                     const char *device);\n"
7191 "\n"
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1305
7196 msgid ""
7197 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1308
7202 msgid ""
7203 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7204 msgstr ""
7205
7206 # type: =head2
7207 #: ../src/guestfs-actions.pod:1755
7208 msgid "guestfs_get_memsize"
7209 msgstr ""
7210
7211 # type: verbatim
7212 #: ../src/guestfs-actions.pod:1757
7213 #, no-wrap
7214 msgid ""
7215 " int\n"
7216 " guestfs_get_memsize (guestfs_h *g);\n"
7217 "\n"
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1760 ../fish/guestfish-actions.pod:1319
7222 msgid ""
7223 "This gets the memory size in megabytes allocated to the qemu subprocess."
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1763
7228 msgid ""
7229 "If C<guestfs_set_memsize> was not called on this handle, and if "
7230 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7231 "value for memsize."
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1836
7236 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4856
7237 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7238 #: ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
7239 msgid ""
7240 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7241 msgstr ""
7242
7243 # type: =head2
7244 #: ../src/guestfs-actions.pod:1772
7245 msgid "guestfs_get_network"
7246 msgstr ""
7247
7248 # type: verbatim
7249 #: ../src/guestfs-actions.pod:1774
7250 #, no-wrap
7251 msgid ""
7252 " int\n"
7253 " guestfs_get_network (guestfs_h *g);\n"
7254 "\n"
7255 msgstr ""
7256
7257 # type: textblock
7258 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1333
7259 msgid "This returns the enable network flag."
7260 msgstr ""
7261
7262 # type: =head2
7263 #: ../src/guestfs-actions.pod:1781
7264 msgid "guestfs_get_path"
7265 msgstr ""
7266
7267 # type: verbatim
7268 #: ../src/guestfs-actions.pod:1783
7269 #, no-wrap
7270 msgid ""
7271 " const char *\n"
7272 " guestfs_get_path (guestfs_h *g);\n"
7273 "\n"
7274 msgstr ""
7275
7276 # type: textblock
7277 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1339
7278 msgid "Return the current search path."
7279 msgstr ""
7280
7281 # type: textblock
7282 #: ../src/guestfs-actions.pod:1788 ../fish/guestfish-actions.pod:1341
7283 msgid ""
7284 "This is always non-NULL.  If it wasn't set already, then this will return "
7285 "the default path."
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
7290 msgid ""
7291 "This function returns a string, or NULL on error.  The string is owned by "
7292 "the guest handle and must I<not> be freed."
7293 msgstr ""
7294
7295 # type: =head2
7296 #: ../src/guestfs-actions.pod:1794
7297 msgid "guestfs_get_pid"
7298 msgstr ""
7299
7300 # type: verbatim
7301 #: ../src/guestfs-actions.pod:1796
7302 #, no-wrap
7303 msgid ""
7304 " int\n"
7305 " guestfs_get_pid (guestfs_h *g);\n"
7306 "\n"
7307 msgstr ""
7308
7309 # type: textblock
7310 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1350
7311 msgid ""
7312 "Return the process ID of the qemu subprocess.  If there is no qemu "
7313 "subprocess, then this will return an error."
7314 msgstr ""
7315
7316 # type: textblock
7317 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1353
7318 msgid "This is an internal call used for debugging and testing."
7319 msgstr ""
7320
7321 # type: =head2
7322 #: ../src/guestfs-actions.pod:1806
7323 msgid "guestfs_get_qemu"
7324 msgstr ""
7325
7326 # type: verbatim
7327 #: ../src/guestfs-actions.pod:1808
7328 #, no-wrap
7329 msgid ""
7330 " const char *\n"
7331 " guestfs_get_qemu (guestfs_h *g);\n"
7332 "\n"
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1359
7337 msgid "Return the current qemu binary."
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:1361
7342 msgid ""
7343 "This is always non-NULL.  If it wasn't set already, then this will return "
7344 "the default qemu binary name."
7345 msgstr ""
7346
7347 # type: =head2
7348 #: ../src/guestfs-actions.pod:1819
7349 msgid "guestfs_get_recovery_proc"
7350 msgstr ""
7351
7352 # type: verbatim
7353 #: ../src/guestfs-actions.pod:1821
7354 #, no-wrap
7355 msgid ""
7356 " int\n"
7357 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7358 "\n"
7359 msgstr ""
7360
7361 # type: textblock
7362 #: ../src/guestfs-actions.pod:1824 ../fish/guestfish-actions.pod:1368
7363 msgid "Return the recovery process enabled flag."
7364 msgstr ""
7365
7366 # type: =head2
7367 #: ../src/guestfs-actions.pod:1828
7368 msgid "guestfs_get_selinux"
7369 msgstr ""
7370
7371 # type: verbatim
7372 #: ../src/guestfs-actions.pod:1830
7373 #, no-wrap
7374 msgid ""
7375 " int\n"
7376 " guestfs_get_selinux (guestfs_h *g);\n"
7377 "\n"
7378 msgstr ""
7379
7380 # type: textblock
7381 #: ../src/guestfs-actions.pod:1833
7382 msgid ""
7383 "This returns the current setting of the selinux flag which is passed to the "
7384 "appliance at boot time.  See C<guestfs_set_selinux>."
7385 msgstr ""
7386
7387 # type: =head2
7388 #: ../src/guestfs-actions.pod:1841
7389 msgid "guestfs_get_state"
7390 msgstr ""
7391
7392 # type: verbatim
7393 #: ../src/guestfs-actions.pod:1843
7394 #, no-wrap
7395 msgid ""
7396 " int\n"
7397 " guestfs_get_state (guestfs_h *g);\n"
7398 "\n"
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1846 ../fish/guestfish-actions.pod:1384
7403 msgid ""
7404 "This returns the current state as an opaque integer.  This is only useful "
7405 "for printing debug and internal error messages."
7406 msgstr ""
7407
7408 # type: textblock
7409 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:2542
7410 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2620
7411 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1387
7412 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935
7413 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
7414 msgid "For more information on states, see L<guestfs(3)>."
7415 msgstr ""
7416
7417 # type: =head2
7418 #: ../src/guestfs-actions.pod:1853
7419 msgid "guestfs_get_trace"
7420 msgstr ""
7421
7422 # type: verbatim
7423 #: ../src/guestfs-actions.pod:1855
7424 #, no-wrap
7425 msgid ""
7426 " int\n"
7427 " guestfs_get_trace (guestfs_h *g);\n"
7428 "\n"
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1393
7433 msgid "Return the command trace flag."
7434 msgstr ""
7435
7436 # type: =head2
7437 #: ../src/guestfs-actions.pod:1862
7438 msgid "guestfs_get_umask"
7439 msgstr ""
7440
7441 # type: verbatim
7442 #: ../src/guestfs-actions.pod:1864
7443 #, no-wrap
7444 msgid ""
7445 " int\n"
7446 " guestfs_get_umask (guestfs_h *g);\n"
7447 "\n"
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:1867
7452 msgid ""
7453 "Return the current umask.  By default the umask is C<022> unless it has been "
7454 "set by calling C<guestfs_umask>."
7455 msgstr ""
7456
7457 # type: =head2
7458 #: ../src/guestfs-actions.pod:1872
7459 msgid "guestfs_get_verbose"
7460 msgstr ""
7461
7462 # type: verbatim
7463 #: ../src/guestfs-actions.pod:1874
7464 #, no-wrap
7465 msgid ""
7466 " int\n"
7467 " guestfs_get_verbose (guestfs_h *g);\n"
7468 "\n"
7469 msgstr ""
7470
7471 # type: textblock
7472 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1406
7473 msgid "This returns the verbose messages flag."
7474 msgstr ""
7475
7476 # type: =head2
7477 #: ../src/guestfs-actions.pod:1881
7478 msgid "guestfs_getcon"
7479 msgstr ""
7480
7481 # type: verbatim
7482 #: ../src/guestfs-actions.pod:1883
7483 #, no-wrap
7484 msgid ""
7485 " char *\n"
7486 " guestfs_getcon (guestfs_h *g);\n"
7487 "\n"
7488 msgstr ""
7489
7490 # type: textblock
7491 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1412
7492 msgid "This gets the SELinux security context of the daemon."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1888
7497 msgid ""
7498 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7499 msgstr ""
7500
7501 # type: =head2
7502 #: ../src/guestfs-actions.pod:1894
7503 msgid "guestfs_getxattrs"
7504 msgstr ""
7505
7506 # type: verbatim
7507 #: ../src/guestfs-actions.pod:1896
7508 #, no-wrap
7509 msgid ""
7510 " struct guestfs_xattr_list *\n"
7511 " guestfs_getxattrs (guestfs_h *g,\n"
7512 "                    const char *path);\n"
7513 "\n"
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1421
7518 msgid ""
7519 "This call lists the extended attributes of the file or directory C<path>."
7520 msgstr ""
7521
7522 # type: textblock
7523 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1424
7524 msgid ""
7525 "At the system call level, this is a combination of the L<listxattr(2)> and "
7526 "L<getxattr(2)> calls."
7527 msgstr ""
7528
7529 # type: textblock
7530 #: ../src/guestfs-actions.pod:1906
7531 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7532 msgstr ""
7533
7534 # type: textblock
7535 #: ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:2723
7536 #: ../src/guestfs-actions.pod:3311
7537 msgid ""
7538 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7539 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7540 "C<guestfs_free_xattr_list> after use>."
7541 msgstr ""
7542
7543 # type: =head2
7544 #: ../src/guestfs-actions.pod:1913
7545 msgid "guestfs_glob_expand"
7546 msgstr ""
7547
7548 # type: verbatim
7549 #: ../src/guestfs-actions.pod:1915
7550 #, no-wrap
7551 msgid ""
7552 " char **\n"
7553 " guestfs_glob_expand (guestfs_h *g,\n"
7554 "                      const char *pattern);\n"
7555 "\n"
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:1919 ../fish/guestfish-actions.pod:1433
7560 msgid ""
7561 "This command searches for all the pathnames matching C<pattern> according to "
7562 "the wildcard expansion rules used by the shell."
7563 msgstr ""
7564
7565 # type: textblock
7566 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1437
7567 msgid ""
7568 "If no paths match, then this returns an empty list (note: not an error)."
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1440
7573 msgid ""
7574 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7575 "GLOB_BRACE>.  See that manual page for more details."
7576 msgstr ""
7577
7578 # type: =head2
7579 #: ../src/guestfs-actions.pod:1934
7580 msgid "guestfs_grep"
7581 msgstr ""
7582
7583 # type: verbatim
7584 #: ../src/guestfs-actions.pod:1936
7585 #, no-wrap
7586 msgid ""
7587 " char **\n"
7588 " guestfs_grep (guestfs_h *g,\n"
7589 "               const char *regex,\n"
7590 "               const char *path);\n"
7591 "\n"
7592 msgstr ""
7593
7594 # type: textblock
7595 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1448
7596 msgid "This calls the external C<grep> program and returns the matching lines."
7597 msgstr ""
7598
7599 # type: =head2
7600 #: ../src/guestfs-actions.pod:1951
7601 msgid "guestfs_grepi"
7602 msgstr ""
7603
7604 # type: verbatim
7605 #: ../src/guestfs-actions.pod:1953
7606 #, no-wrap
7607 msgid ""
7608 " char **\n"
7609 " guestfs_grepi (guestfs_h *g,\n"
7610 "                const char *regex,\n"
7611 "                const char *path);\n"
7612 "\n"
7613 msgstr ""
7614
7615 # type: textblock
7616 #: ../src/guestfs-actions.pod:1958 ../fish/guestfish-actions.pod:1458
7617 msgid ""
7618 "This calls the external C<grep -i> program and returns the matching lines."
7619 msgstr ""
7620
7621 # type: =head2
7622 #: ../src/guestfs-actions.pod:1968
7623 msgid "guestfs_grub_install"
7624 msgstr ""
7625
7626 # type: verbatim
7627 #: ../src/guestfs-actions.pod:1970
7628 #, no-wrap
7629 msgid ""
7630 " int\n"
7631 " guestfs_grub_install (guestfs_h *g,\n"
7632 "                       const char *root,\n"
7633 "                       const char *device);\n"
7634 "\n"
7635 msgstr ""
7636
7637 # type: textblock
7638 #: ../src/guestfs-actions.pod:1975 ../fish/guestfish-actions.pod:1468
7639 msgid ""
7640 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7641 "the root directory being C<root>."
7642 msgstr ""
7643
7644 # type: textblock
7645 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1471
7646 msgid ""
7647 "Note: If grub-install reports the error \"No suitable drive was found in the "
7648 "generated device map.\" it may be that you need to create a C</boot/grub/"
7649 "device.map> file first that contains the mapping between grub device names "
7650 "and Linux device names.  It is usually sufficient to create a file "
7651 "containing:"
7652 msgstr ""
7653
7654 # type: verbatim
7655 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1478
7656 #, no-wrap
7657 msgid ""
7658 " (hd0) /dev/vda\n"
7659 "\n"
7660 msgstr ""
7661
7662 # type: textblock
7663 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1480
7664 msgid "replacing C</dev/vda> with the name of the installation device."
7665 msgstr ""
7666
7667 # type: =head2
7668 #: ../src/guestfs-actions.pod:1991
7669 msgid "guestfs_head"
7670 msgstr ""
7671
7672 # type: verbatim
7673 #: ../src/guestfs-actions.pod:1993
7674 #, no-wrap
7675 msgid ""
7676 " char **\n"
7677 " guestfs_head (guestfs_h *g,\n"
7678 "               const char *path);\n"
7679 "\n"
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1486
7684 msgid ""
7685 "This command returns up to the first 10 lines of a file as a list of strings."
7686 msgstr ""
7687
7688 # type: =head2
7689 #: ../src/guestfs-actions.pod:2007
7690 msgid "guestfs_head_n"
7691 msgstr ""
7692
7693 # type: verbatim
7694 #: ../src/guestfs-actions.pod:2009
7695 #, no-wrap
7696 msgid ""
7697 " char **\n"
7698 " guestfs_head_n (guestfs_h *g,\n"
7699 "                 int nrlines,\n"
7700 "                 const char *path);\n"
7701 "\n"
7702 msgstr ""
7703
7704 # type: textblock
7705 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1496
7706 msgid ""
7707 "If the parameter C<nrlines> is a positive number, this returns the first "
7708 "C<nrlines> lines of the file C<path>."
7709 msgstr ""
7710
7711 # type: textblock
7712 #: ../src/guestfs-actions.pod:2017 ../fish/guestfish-actions.pod:1499
7713 msgid ""
7714 "If the parameter C<nrlines> is a negative number, this returns lines from "
7715 "the file C<path>, excluding the last C<nrlines> lines."
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5340
7720 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
7721 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7722 msgstr ""
7723
7724 # type: =head2
7725 #: ../src/guestfs-actions.pod:2029
7726 msgid "guestfs_hexdump"
7727 msgstr ""
7728
7729 # type: verbatim
7730 #: ../src/guestfs-actions.pod:2031
7731 #, no-wrap
7732 msgid ""
7733 " char *\n"
7734 " guestfs_hexdump (guestfs_h *g,\n"
7735 "                  const char *path);\n"
7736 "\n"
7737 msgstr ""
7738
7739 # type: textblock
7740 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1511
7741 msgid ""
7742 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7743 "readable, canonical hex dump of the file."
7744 msgstr ""
7745
7746 # type: =head2
7747 #: ../src/guestfs-actions.pod:2044
7748 msgid "guestfs_initrd_cat"
7749 msgstr ""
7750
7751 # type: verbatim
7752 #: ../src/guestfs-actions.pod:2046
7753 #, no-wrap
7754 msgid ""
7755 " char *\n"
7756 " guestfs_initrd_cat (guestfs_h *g,\n"
7757 "                     const char *initrdpath,\n"
7758 "                     const char *filename,\n"
7759 "                     size_t *size_r);\n"
7760 "\n"
7761 msgstr ""
7762
7763 # type: textblock
7764 #: ../src/guestfs-actions.pod:2052 ../fish/guestfish-actions.pod:1521
7765 msgid ""
7766 "This command unpacks the file C<filename> from the initrd file called "
7767 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7768 "character."
7769 msgstr ""
7770
7771 # type: textblock
7772 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1525
7773 msgid ""
7774 "For example, in guestfish you could use the following command to examine the "
7775 "boot script (usually called C</init>)  contained in a Linux initrd or "
7776 "initramfs image:"
7777 msgstr ""
7778
7779 # type: verbatim
7780 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1529
7781 #, no-wrap
7782 msgid ""
7783 " initrd-cat /boot/initrd-<version>.img init\n"
7784 "\n"
7785 msgstr ""
7786
7787 # type: textblock
7788 #: ../src/guestfs-actions.pod:2062
7789 msgid "See also C<guestfs_initrd_list>."
7790 msgstr ""
7791
7792 # type: textblock
7793 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:4187
7794 #: ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4373
7795 msgid ""
7796 "This function returns a buffer, or NULL on error.  The size of the returned "
7797 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7798 "after use>."
7799 msgstr ""
7800
7801 # type: =head2
7802 #: ../src/guestfs-actions.pod:2071
7803 msgid "guestfs_initrd_list"
7804 msgstr ""
7805
7806 # type: verbatim
7807 #: ../src/guestfs-actions.pod:2073
7808 #, no-wrap
7809 msgid ""
7810 " char **\n"
7811 " guestfs_initrd_list (guestfs_h *g,\n"
7812 "                      const char *path);\n"
7813 "\n"
7814 msgstr ""
7815
7816 # type: textblock
7817 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1540
7818 msgid "This command lists out files contained in an initrd."
7819 msgstr ""
7820
7821 # type: textblock
7822 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1542
7823 msgid ""
7824 "The files are listed without any initial C</> character.  The files are "
7825 "listed in the order they appear (not necessarily alphabetical).  Directory "
7826 "names are listed as separate items."
7827 msgstr ""
7828
7829 # type: textblock
7830 #: ../src/guestfs-actions.pod:2083 ../fish/guestfish-actions.pod:1546
7831 msgid ""
7832 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7833 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7834 "files)."
7835 msgstr ""
7836
7837 # type: =head2
7838 #: ../src/guestfs-actions.pod:2091
7839 msgid "guestfs_inotify_add_watch"
7840 msgstr ""
7841
7842 # type: verbatim
7843 #: ../src/guestfs-actions.pod:2093
7844 #, no-wrap
7845 msgid ""
7846 " int64_t\n"
7847 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7848 "                            const char *path,\n"
7849 "                            int mask);\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2098 ../fish/guestfish-actions.pod:1554
7855 msgid "Watch C<path> for the events listed in C<mask>."
7856 msgstr ""
7857
7858 # type: textblock
7859 #: ../src/guestfs-actions.pod:2100 ../fish/guestfish-actions.pod:1556
7860 msgid ""
7861 "Note that if C<path> is a directory then events within that directory are "
7862 "watched, but this does I<not> happen recursively (in subdirectories)."
7863 msgstr ""
7864
7865 # type: textblock
7866 #: ../src/guestfs-actions.pod:2104 ../fish/guestfish-actions.pod:1560
7867 msgid ""
7868 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7869 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7870 msgstr ""
7871
7872 # type: =head2
7873 #: ../src/guestfs-actions.pod:2110
7874 msgid "guestfs_inotify_close"
7875 msgstr ""
7876
7877 # type: verbatim
7878 #: ../src/guestfs-actions.pod:2112
7879 #, no-wrap
7880 msgid ""
7881 " int\n"
7882 " guestfs_inotify_close (guestfs_h *g);\n"
7883 "\n"
7884 msgstr ""
7885
7886 # type: textblock
7887 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1568
7888 msgid ""
7889 "This closes the inotify handle which was previously opened by inotify_init.  "
7890 "It removes all watches, throws away any pending events, and deallocates all "
7891 "resources."
7892 msgstr ""
7893
7894 # type: =head2
7895 #: ../src/guestfs-actions.pod:2121
7896 msgid "guestfs_inotify_files"
7897 msgstr ""
7898
7899 # type: verbatim
7900 #: ../src/guestfs-actions.pod:2123
7901 #, no-wrap
7902 msgid ""
7903 " char **\n"
7904 " guestfs_inotify_files (guestfs_h *g);\n"
7905 "\n"
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2126
7910 msgid ""
7911 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7912 "returns a list of pathnames of objects that were touched.  The returned "
7913 "pathnames are sorted and deduplicated."
7914 msgstr ""
7915
7916 # type: =head2
7917 #: ../src/guestfs-actions.pod:2134
7918 msgid "guestfs_inotify_init"
7919 msgstr ""
7920
7921 # type: verbatim
7922 #: ../src/guestfs-actions.pod:2136
7923 #, no-wrap
7924 msgid ""
7925 " int\n"
7926 " guestfs_inotify_init (guestfs_h *g,\n"
7927 "                       int maxevents);\n"
7928 "\n"
7929 msgstr ""
7930
7931 # type: textblock
7932 #: ../src/guestfs-actions.pod:2140 ../fish/guestfish-actions.pod:1584
7933 msgid ""
7934 "This command creates a new inotify handle.  The inotify subsystem can be "
7935 "used to notify events which happen to objects in the guest filesystem."
7936 msgstr ""
7937
7938 # type: textblock
7939 #: ../src/guestfs-actions.pod:2144
7940 msgid ""
7941 "C<maxevents> is the maximum number of events which will be queued up between "
7942 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7943 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7944 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7945 "throws away events, but records the fact that it threw them away by setting "
7946 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7947 "C<guestfs_inotify_read>)."
7948 msgstr ""
7949
7950 # type: textblock
7951 #: ../src/guestfs-actions.pod:2154
7952 msgid ""
7953 "Before any events are generated, you have to add some watches to the "
7954 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7955 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7956 msgstr ""
7957
7958 # type: textblock
7959 #: ../src/guestfs-actions.pod:2160
7960 msgid ""
7961 "Queued up events should be read periodically by calling "
7962 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7963 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7964 "often enough then you risk the internal queue overflowing."
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2167
7969 msgid ""
7970 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7971 "This also removes any watches automatically."
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1615
7976 msgid ""
7977 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7978 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7979 "that there is one global inotify handle per libguestfs instance."
7980 msgstr ""
7981
7982 # type: =head2
7983 #: ../src/guestfs-actions.pod:2178
7984 msgid "guestfs_inotify_read"
7985 msgstr ""
7986
7987 # type: verbatim
7988 #: ../src/guestfs-actions.pod:2180
7989 #, no-wrap
7990 msgid ""
7991 " struct guestfs_inotify_event_list *\n"
7992 " guestfs_inotify_read (guestfs_h *g);\n"
7993 "\n"
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1624
7998 msgid ""
7999 "Return the complete queue of events that have happened since the previous "
8000 "read call."
8001 msgstr ""
8002
8003 # type: textblock
8004 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1627
8005 msgid "If no events have happened, this returns an empty list."
8006 msgstr ""
8007
8008 # type: textblock
8009 #: ../src/guestfs-actions.pod:2188 ../fish/guestfish-actions.pod:1629
8010 msgid ""
8011 "I<Note>: In order to make sure that all events have been read, you must call "
8012 "this function repeatedly until it returns an empty list.  The reason is that "
8013 "the call will read events up to the maximum appliance-to-host message size "
8014 "and leave remaining events in the queue."
8015 msgstr ""
8016
8017 # type: textblock
8018 #: ../src/guestfs-actions.pod:2194
8019 msgid ""
8020 "This function returns a C<struct guestfs_inotify_event_list *> (see "
8021 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8022 "must call C<guestfs_free_inotify_event_list> after use>."
8023 msgstr ""
8024
8025 # type: =head2
8026 #: ../src/guestfs-actions.pod:2199
8027 msgid "guestfs_inotify_rm_watch"
8028 msgstr ""
8029
8030 # type: verbatim
8031 #: ../src/guestfs-actions.pod:2201
8032 #, no-wrap
8033 msgid ""
8034 " int\n"
8035 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8036 "                           int wd);\n"
8037 "\n"
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2205
8042 msgid ""
8043 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8044 msgstr ""
8045
8046 # type: =head2
8047 #: ../src/guestfs-actions.pod:2210
8048 msgid "guestfs_inspect_get_arch"
8049 msgstr ""
8050
8051 # type: verbatim
8052 #: ../src/guestfs-actions.pod:2212
8053 #, no-wrap
8054 msgid ""
8055 " char *\n"
8056 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8057 "                           const char *root);\n"
8058 "\n"
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2237
8063 #: ../src/guestfs-actions.pod:2308 ../src/guestfs-actions.pod:2332
8064 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2376
8065 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2429
8066 #: ../src/guestfs-actions.pod:2465
8067 msgid ""
8068 "This function should only be called with a root device string as returned by "
8069 "C<guestfs_inspect_os>."
8070 msgstr ""
8071
8072 # type: textblock
8073 #: ../src/guestfs-actions.pod:2219
8074 msgid ""
8075 "This returns the architecture of the inspected operating system.  The "
8076 "possible return values are listed under C<guestfs_file_architecture>."
8077 msgstr ""
8078
8079 # type: textblock
8080 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1653
8081 msgid ""
8082 "If the architecture could not be determined, then the string C<unknown> is "
8083 "returned."
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2297
8088 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2418
8089 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2475
8090 #: ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1656
8091 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761
8092 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847
8093 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
8094 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8095 msgstr ""
8096
8097 # type: =head2
8098 #: ../src/guestfs-actions.pod:2231
8099 msgid "guestfs_inspect_get_distro"
8100 msgstr ""
8101
8102 # type: verbatim
8103 #: ../src/guestfs-actions.pod:2233
8104 #, no-wrap
8105 msgid ""
8106 " char *\n"
8107 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8108 "                             const char *root);\n"
8109 "\n"
8110 msgstr ""
8111
8112 # type: textblock
8113 #: ../src/guestfs-actions.pod:2240 ../fish/guestfish-actions.pod:1665
8114 msgid ""
8115 "This returns the distro (distribution) of the inspected operating system."
8116 msgstr ""
8117
8118 # type: textblock
8119 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1668
8120 msgid "Currently defined distros are:"
8121 msgstr ""
8122
8123 # type: =item
8124 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1672
8125 msgid "\"archlinux\""
8126 msgstr ""
8127
8128 # type: textblock
8129 #: ../src/guestfs-actions.pod:2249 ../fish/guestfish-actions.pod:1674
8130 msgid "Arch Linux."
8131 msgstr ""
8132
8133 # type: =item
8134 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1676
8135 msgid "\"debian\""
8136 msgstr ""
8137
8138 # type: textblock
8139 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1678
8140 msgid "Debian or a Debian-derived distro such as Ubuntu."
8141 msgstr ""
8142
8143 # type: =item
8144 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1680
8145 msgid "\"fedora\""
8146 msgstr ""
8147
8148 # type: textblock
8149 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1682
8150 msgid "Fedora."
8151 msgstr ""
8152
8153 # type: =item
8154 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1684
8155 msgid "\"gentoo\""
8156 msgstr ""
8157
8158 # type: textblock
8159 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1686
8160 msgid "Gentoo."
8161 msgstr ""
8162
8163 # type: =item
8164 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1688
8165 msgid "\"meego\""
8166 msgstr ""
8167
8168 # type: textblock
8169 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1690
8170 msgid "MeeGo."
8171 msgstr ""
8172
8173 # type: =item
8174 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1692
8175 msgid "\"pardus\""
8176 msgstr ""
8177
8178 # type: textblock
8179 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1694
8180 msgid "Pardus."
8181 msgstr ""
8182
8183 # type: =item
8184 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1696
8185 msgid "\"redhat-based\""
8186 msgstr ""
8187
8188 # type: textblock
8189 #: ../src/guestfs-actions.pod:2273 ../fish/guestfish-actions.pod:1698
8190 msgid "Some Red Hat-derived distro."
8191 msgstr ""
8192
8193 # type: =item
8194 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1700
8195 msgid "\"rhel\""
8196 msgstr ""
8197
8198 # type: textblock
8199 #: ../src/guestfs-actions.pod:2277 ../fish/guestfish-actions.pod:1702
8200 msgid "Red Hat Enterprise Linux and some derivatives."
8201 msgstr ""
8202
8203 # type: =item
8204 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2441
8205 #: ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
8206 msgid "\"windows\""
8207 msgstr ""
8208
8209 # type: textblock
8210 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1706
8211 msgid ""
8212 "Windows does not have distributions.  This string is returned if the OS type "
8213 "is Windows."
8214 msgstr ""
8215
8216 # type: =item
8217 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1709
8218 msgid "\"ubuntu\""
8219 msgstr ""
8220
8221 # type: textblock
8222 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1711
8223 msgid "Ubuntu."
8224 msgstr ""
8225
8226 # type: =item
8227 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2445
8228 #: ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
8229 msgid "\"unknown\""
8230 msgstr ""
8231
8232 # type: textblock
8233 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1715
8234 msgid "The distro could not be determined."
8235 msgstr ""
8236
8237 # type: textblock
8238 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2451
8239 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
8240 msgid ""
8241 "Future versions of libguestfs may return other strings here.  The caller "
8242 "should be prepared to handle any string."
8243 msgstr ""
8244
8245 # type: =head2
8246 #: ../src/guestfs-actions.pod:2302
8247 msgid "guestfs_inspect_get_filesystems"
8248 msgstr ""
8249
8250 # type: verbatim
8251 #: ../src/guestfs-actions.pod:2304
8252 #, no-wrap
8253 msgid ""
8254 " char **\n"
8255 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8256 "                                  const char *root);\n"
8257 "\n"
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1731
8262 msgid ""
8263 "This returns a list of all the filesystems that we think are associated with "
8264 "this operating system.  This includes the root filesystem, other ordinary "
8265 "filesystems, and non-mounted devices like swap partitions."
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1736
8270 msgid ""
8271 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8272 "to be shared between operating systems."
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2319
8277 msgid ""
8278 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8279 "C<guestfs_inspect_get_mountpoints>."
8280 msgstr ""
8281
8282 # type: =head2
8283 #: ../src/guestfs-actions.pod:2326
8284 msgid "guestfs_inspect_get_major_version"
8285 msgstr ""
8286
8287 # type: verbatim
8288 #: ../src/guestfs-actions.pod:2328
8289 #, no-wrap
8290 msgid ""
8291 " int\n"
8292 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8293 "                                    const char *root);\n"
8294 "\n"
8295 msgstr ""
8296
8297 # type: textblock
8298 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1749
8299 msgid ""
8300 "This returns the major version number of the inspected operating system."
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1752
8305 msgid ""
8306 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8307 "popular public names used by the operating system.  Notably the operating "
8308 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8309 "1).  You can find out the real versions corresponding to releases of Windows "
8310 "by consulting Wikipedia or MSDN."
8311 msgstr ""
8312
8313 # type: textblock
8314 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2363
8315 #: ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8316 msgid "If the version could not be determined, then C<0> is returned."
8317 msgstr ""
8318
8319 # type: =head2
8320 #: ../src/guestfs-actions.pod:2351
8321 msgid "guestfs_inspect_get_minor_version"
8322 msgstr ""
8323
8324 # type: verbatim
8325 #: ../src/guestfs-actions.pod:2353
8326 #, no-wrap
8327 msgid ""
8328 " int\n"
8329 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8330 "                                    const char *root);\n"
8331 "\n"
8332 msgstr ""
8333
8334 # type: textblock
8335 #: ../src/guestfs-actions.pod:2360 ../fish/guestfish-actions.pod:1770
8336 msgid ""
8337 "This returns the minor version number of the inspected operating system."
8338 msgstr ""
8339
8340 # type: textblock
8341 #: ../src/guestfs-actions.pod:2365
8342 msgid ""
8343 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8344 "C<guestfs_inspect_get_major_version>."
8345 msgstr ""
8346
8347 # type: =head2
8348 #: ../src/guestfs-actions.pod:2370
8349 msgid "guestfs_inspect_get_mountpoints"
8350 msgstr ""
8351
8352 # type: verbatim
8353 #: ../src/guestfs-actions.pod:2372
8354 #, no-wrap
8355 msgid ""
8356 " char **\n"
8357 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8358 "                                  const char *root);\n"
8359 "\n"
8360 msgstr ""
8361
8362 # type: textblock
8363 #: ../src/guestfs-actions.pod:2379 ../fish/guestfish-actions.pod:1785
8364 msgid ""
8365 "This returns a hash of where we think the filesystems associated with this "
8366 "operating system should be mounted.  Callers should note that this is at "
8367 "best an educated guess made by reading configuration files such as C</etc/"
8368 "fstab>."
8369 msgstr ""
8370
8371 # type: textblock
8372 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1790
8373 msgid ""
8374 "Each element in the returned hashtable has a key which is the path of the "
8375 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8376 "mounted there (eg. C</dev/sda1>)."
8377 msgstr ""
8378
8379 # type: textblock
8380 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1795
8381 msgid ""
8382 "Non-mounted devices such as swap devices are I<not> returned in this list."
8383 msgstr ""
8384
8385 # type: textblock
8386 #: ../src/guestfs-actions.pod:2392
8387 msgid ""
8388 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8389 "C<guestfs_inspect_get_filesystems>."
8390 msgstr ""
8391
8392 # type: textblock
8393 #: ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2777
8394 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:5465
8395 msgid ""
8396 "This function returns a NULL-terminated array of strings, or NULL if there "
8397 "was an error.  The array of strings will always have length C<2n+1>, where "
8398 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8399 "caller must free the strings and the array after use>."
8400 msgstr ""
8401
8402 # type: =head2
8403 #: ../src/guestfs-actions.pod:2401
8404 msgid "guestfs_inspect_get_product_name"
8405 msgstr ""
8406
8407 # type: verbatim
8408 #: ../src/guestfs-actions.pod:2403
8409 #, no-wrap
8410 msgid ""
8411 " char *\n"
8412 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8413 "                                   const char *root);\n"
8414 "\n"
8415 msgstr ""
8416
8417 # type: textblock
8418 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1808
8419 msgid ""
8420 "This returns the product name of the inspected operating system.  The "
8421 "product name is generally some freeform string which can be displayed to the "
8422 "user, but should not be parsed by programs."
8423 msgstr ""
8424
8425 # type: textblock
8426 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1813
8427 msgid ""
8428 "If the product name could not be determined, then the string C<unknown> is "
8429 "returned."
8430 msgstr ""
8431
8432 # type: =head2
8433 #: ../src/guestfs-actions.pod:2423
8434 msgid "guestfs_inspect_get_type"
8435 msgstr ""
8436
8437 # type: verbatim
8438 #: ../src/guestfs-actions.pod:2425
8439 #, no-wrap
8440 msgid ""
8441 " char *\n"
8442 " guestfs_inspect_get_type (guestfs_h *g,\n"
8443 "                           const char *root);\n"
8444 "\n"
8445 msgstr ""
8446
8447 # type: textblock
8448 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1825
8449 msgid ""
8450 "This returns the type of the inspected operating system.  Currently defined "
8451 "types are:"
8452 msgstr ""
8453
8454 # type: =item
8455 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1830
8456 msgid "\"linux\""
8457 msgstr ""
8458
8459 # type: textblock
8460 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1832
8461 msgid "Any Linux-based operating system."
8462 msgstr ""
8463
8464 # type: textblock
8465 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1836
8466 msgid "Any Microsoft Windows operating system."
8467 msgstr ""
8468
8469 # type: textblock
8470 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1840
8471 msgid "The operating system type could not be determined."
8472 msgstr ""
8473
8474 # type: =head2
8475 #: ../src/guestfs-actions.pod:2459
8476 msgid "guestfs_inspect_get_windows_systemroot"
8477 msgstr ""
8478
8479 # type: verbatim
8480 #: ../src/guestfs-actions.pod:2461
8481 #, no-wrap
8482 msgid ""
8483 " char *\n"
8484 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8485 "                                         const char *root);\n"
8486 "\n"
8487 msgstr ""
8488
8489 # type: textblock
8490 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1856
8491 msgid ""
8492 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8493 "is a directory path such as C</WINDOWS>."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1859
8498 msgid ""
8499 "This call assumes that the guest is Windows and that the systemroot could be "
8500 "determined by inspection.  If this is not the case then an error is returned."
8501 msgstr ""
8502
8503 # type: =head2
8504 #: ../src/guestfs-actions.pod:2480
8505 msgid "guestfs_inspect_os"
8506 msgstr ""
8507
8508 # type: verbatim
8509 #: ../src/guestfs-actions.pod:2482
8510 #, no-wrap
8511 msgid ""
8512 " char **\n"
8513 " guestfs_inspect_os (guestfs_h *g);\n"
8514 "\n"
8515 msgstr ""
8516
8517 # type: textblock
8518 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1869
8519 msgid ""
8520 "This function uses other libguestfs functions and certain heuristics to "
8521 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8522 "for operating systems."
8523 msgstr ""
8524
8525 # type: textblock
8526 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1873
8527 msgid "The list returned is empty if no operating systems were found."
8528 msgstr ""
8529
8530 # type: textblock
8531 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1875
8532 msgid ""
8533 "If one operating system was found, then this returns a list with a single "
8534 "element, which is the name of the root filesystem of this operating system.  "
8535 "It is also possible for this function to return a list containing more than "
8536 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8537 "element being the root filesystem of one of the operating systems."
8538 msgstr ""
8539
8540 # type: textblock
8541 #: ../src/guestfs-actions.pod:2498
8542 msgid ""
8543 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8544 "functions in order to query further information about each operating system, "
8545 "such as the name and version."
8546 msgstr ""
8547
8548 # type: textblock
8549 #: ../src/guestfs-actions.pod:2503
8550 msgid ""
8551 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8552 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8553 "the contents.  This should be called with no disks currently mounted.  The "
8554 "function may also use Augeas, so any existing Augeas handle will be closed."
8555 msgstr ""
8556
8557 # type: textblock
8558 #: ../src/guestfs-actions.pod:2509 ../fish/guestfish-actions.pod:1893
8559 msgid ""
8560 "This function cannot decrypt encrypted disks.  The caller must do that first "
8561 "(supplying the necessary keys) if the disk is encrypted."
8562 msgstr ""
8563
8564 # type: textblock
8565 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2737
8566 #: ../src/guestfs-actions.pod:2795
8567 msgid "See also C<guestfs_list_filesystems>."
8568 msgstr ""
8569
8570 # type: =head2
8571 #: ../src/guestfs-actions.pod:2521
8572 msgid "guestfs_is_blockdev"
8573 msgstr ""
8574
8575 # type: verbatim
8576 #: ../src/guestfs-actions.pod:2523
8577 #, no-wrap
8578 msgid ""
8579 " int\n"
8580 " guestfs_is_blockdev (guestfs_h *g,\n"
8581 "                      const char *path);\n"
8582 "\n"
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2527 ../fish/guestfish-actions.pod:1905
8587 msgid ""
8588 "This returns C<true> if and only if there is a block device with the given "
8589 "C<path> name."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2530 ../src/guestfs-actions.pod:2555
8594 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2594
8595 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2656
8596 #: ../src/guestfs-actions.pod:2669
8597 msgid "See also C<guestfs_stat>."
8598 msgstr ""
8599
8600 # type: =head2
8601 #: ../src/guestfs-actions.pod:2534
8602 msgid "guestfs_is_busy"
8603 msgstr ""
8604
8605 # type: verbatim
8606 #: ../src/guestfs-actions.pod:2536
8607 #, no-wrap
8608 msgid ""
8609 " int\n"
8610 " guestfs_is_busy (guestfs_h *g);\n"
8611 "\n"
8612 msgstr ""
8613
8614 # type: textblock
8615 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1914
8616 msgid ""
8617 "This returns true iff this handle is busy processing a command (in the "
8618 "C<BUSY> state)."
8619 msgstr ""
8620
8621 # type: =head2
8622 #: ../src/guestfs-actions.pod:2546
8623 msgid "guestfs_is_chardev"
8624 msgstr ""
8625
8626 # type: verbatim
8627 #: ../src/guestfs-actions.pod:2548
8628 #, no-wrap
8629 msgid ""
8630 " int\n"
8631 " guestfs_is_chardev (guestfs_h *g,\n"
8632 "                     const char *path);\n"
8633 "\n"
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1923
8638 msgid ""
8639 "This returns C<true> if and only if there is a character device with the "
8640 "given C<path> name."
8641 msgstr ""
8642
8643 # type: =head2
8644 #: ../src/guestfs-actions.pod:2559
8645 msgid "guestfs_is_config"
8646 msgstr ""
8647
8648 # type: verbatim
8649 #: ../src/guestfs-actions.pod:2561
8650 #, no-wrap
8651 msgid ""
8652 " int\n"
8653 " guestfs_is_config (guestfs_h *g);\n"
8654 "\n"
8655 msgstr ""
8656
8657 # type: textblock
8658 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1932
8659 msgid ""
8660 "This returns true iff this handle is being configured (in the C<CONFIG> "
8661 "state)."
8662 msgstr ""
8663
8664 # type: =head2
8665 #: ../src/guestfs-actions.pod:2571
8666 msgid "guestfs_is_dir"
8667 msgstr ""
8668
8669 # type: verbatim
8670 #: ../src/guestfs-actions.pod:2573
8671 #, no-wrap
8672 msgid ""
8673 " int\n"
8674 " guestfs_is_dir (guestfs_h *g,\n"
8675 "                 const char *path);\n"
8676 "\n"
8677 msgstr ""
8678
8679 # type: textblock
8680 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1941
8681 msgid ""
8682 "This returns C<true> if and only if there is a directory with the given "
8683 "C<path> name.  Note that it returns false for other objects like files."
8684 msgstr ""
8685
8686 # type: =head2
8687 #: ../src/guestfs-actions.pod:2585
8688 msgid "guestfs_is_fifo"
8689 msgstr ""
8690
8691 # type: verbatim
8692 #: ../src/guestfs-actions.pod:2587
8693 #, no-wrap
8694 msgid ""
8695 " int\n"
8696 " guestfs_is_fifo (guestfs_h *g,\n"
8697 "                  const char *path);\n"
8698 "\n"
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1951
8703 msgid ""
8704 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8705 "given C<path> name."
8706 msgstr ""
8707
8708 # type: =head2
8709 #: ../src/guestfs-actions.pod:2598
8710 msgid "guestfs_is_file"
8711 msgstr ""
8712
8713 # type: verbatim
8714 #: ../src/guestfs-actions.pod:2600
8715 #, no-wrap
8716 msgid ""
8717 " int\n"
8718 " guestfs_is_file (guestfs_h *g,\n"
8719 "                  const char *path);\n"
8720 "\n"
8721 msgstr ""
8722
8723 # type: textblock
8724 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1960
8725 msgid ""
8726 "This returns C<true> if and only if there is a regular file with the given "
8727 "C<path> name.  Note that it returns false for other objects like directories."
8728 msgstr ""
8729
8730 # type: =head2
8731 #: ../src/guestfs-actions.pod:2612
8732 msgid "guestfs_is_launching"
8733 msgstr ""
8734
8735 # type: verbatim
8736 #: ../src/guestfs-actions.pod:2614
8737 #, no-wrap
8738 msgid ""
8739 " int\n"
8740 " guestfs_is_launching (guestfs_h *g);\n"
8741 "\n"
8742 msgstr ""
8743
8744 # type: textblock
8745 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1970
8746 msgid ""
8747 "This returns true iff this handle is launching the subprocess (in the "
8748 "C<LAUNCHING> state)."
8749 msgstr ""
8750
8751 # type: =head2
8752 #: ../src/guestfs-actions.pod:2624
8753 msgid "guestfs_is_lv"
8754 msgstr ""
8755
8756 # type: verbatim
8757 #: ../src/guestfs-actions.pod:2626
8758 #, no-wrap
8759 msgid ""
8760 " int\n"
8761 " guestfs_is_lv (guestfs_h *g,\n"
8762 "                const char *device);\n"
8763 "\n"
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1979
8768 msgid ""
8769 "This command tests whether C<device> is a logical volume, and returns true "
8770 "iff this is the case."
8771 msgstr ""
8772
8773 # type: =head2
8774 #: ../src/guestfs-actions.pod:2635
8775 msgid "guestfs_is_ready"
8776 msgstr ""
8777
8778 # type: verbatim
8779 #: ../src/guestfs-actions.pod:2637
8780 #, no-wrap
8781 msgid ""
8782 " int\n"
8783 " guestfs_is_ready (guestfs_h *g);\n"
8784 "\n"
8785 msgstr ""
8786
8787 # type: textblock
8788 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1986
8789 msgid ""
8790 "This returns true iff this handle is ready to accept commands (in the "
8791 "C<READY> state)."
8792 msgstr ""
8793
8794 # type: =head2
8795 #: ../src/guestfs-actions.pod:2647
8796 msgid "guestfs_is_socket"
8797 msgstr ""
8798
8799 # type: verbatim
8800 #: ../src/guestfs-actions.pod:2649
8801 #, no-wrap
8802 msgid ""
8803 " int\n"
8804 " guestfs_is_socket (guestfs_h *g,\n"
8805 "                    const char *path);\n"
8806 "\n"
8807 msgstr ""
8808
8809 # type: textblock
8810 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1995
8811 msgid ""
8812 "This returns C<true> if and only if there is a Unix domain socket with the "
8813 "given C<path> name."
8814 msgstr ""
8815
8816 # type: =head2
8817 #: ../src/guestfs-actions.pod:2660
8818 msgid "guestfs_is_symlink"
8819 msgstr ""
8820
8821 # type: verbatim
8822 #: ../src/guestfs-actions.pod:2662
8823 #, no-wrap
8824 msgid ""
8825 " int\n"
8826 " guestfs_is_symlink (guestfs_h *g,\n"
8827 "                     const char *path);\n"
8828 "\n"
8829 msgstr ""
8830
8831 # type: textblock
8832 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:2004
8833 msgid ""
8834 "This returns C<true> if and only if there is a symbolic link with the given "
8835 "C<path> name."
8836 msgstr ""
8837
8838 # type: =head2
8839 #: ../src/guestfs-actions.pod:2673
8840 msgid "guestfs_kill_subprocess"
8841 msgstr ""
8842
8843 # type: verbatim
8844 #: ../src/guestfs-actions.pod:2675
8845 #, no-wrap
8846 msgid ""
8847 " int\n"
8848 " guestfs_kill_subprocess (guestfs_h *g);\n"
8849 "\n"
8850 msgstr ""
8851
8852 # type: textblock
8853 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:2013
8854 msgid "This kills the qemu subprocess.  You should never need to call this."
8855 msgstr ""
8856
8857 # type: =head2
8858 #: ../src/guestfs-actions.pod:2682
8859 msgid "guestfs_launch"
8860 msgstr ""
8861
8862 # type: verbatim
8863 #: ../src/guestfs-actions.pod:2684
8864 #, no-wrap
8865 msgid ""
8866 " int\n"
8867 " guestfs_launch (guestfs_h *g);\n"
8868 "\n"
8869 msgstr ""
8870
8871 # type: textblock
8872 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:2021
8873 msgid ""
8874 "Internally libguestfs is implemented by running a virtual machine using "
8875 "L<qemu(1)>."
8876 msgstr ""
8877
8878 # type: textblock
8879 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:2024
8880 msgid ""
8881 "You should call this after configuring the handle (eg. adding drives) but "
8882 "before performing any actions."
8883 msgstr ""
8884
8885 # type: =head2
8886 #: ../src/guestfs-actions.pod:2695
8887 msgid "guestfs_lchown"
8888 msgstr ""
8889
8890 # type: verbatim
8891 #: ../src/guestfs-actions.pod:2697
8892 #, no-wrap
8893 msgid ""
8894 " int\n"
8895 " guestfs_lchown (guestfs_h *g,\n"
8896 "                 int owner,\n"
8897 "                 int group,\n"
8898 "                 const char *path);\n"
8899 "\n"
8900 msgstr ""
8901
8902 # type: textblock
8903 #: ../src/guestfs-actions.pod:2703
8904 msgid ""
8905 "Change the file owner to C<owner> and group to C<group>.  This is like "
8906 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8907 "changed, not the target."
8908 msgstr ""
8909
8910 # type: =head2
8911 #: ../src/guestfs-actions.pod:2713
8912 msgid "guestfs_lgetxattrs"
8913 msgstr ""
8914
8915 # type: verbatim
8916 #: ../src/guestfs-actions.pod:2715
8917 #, no-wrap
8918 msgid ""
8919 " struct guestfs_xattr_list *\n"
8920 " guestfs_lgetxattrs (guestfs_h *g,\n"
8921 "                     const char *path);\n"
8922 "\n"
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:2719
8927 msgid ""
8928 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8929 "then it returns the extended attributes of the link itself."
8930 msgstr ""
8931
8932 # type: =head2
8933 #: ../src/guestfs-actions.pod:2728
8934 msgid "guestfs_list_devices"
8935 msgstr ""
8936
8937 # type: verbatim
8938 #: ../src/guestfs-actions.pod:2730
8939 #, no-wrap
8940 msgid ""
8941 " char **\n"
8942 " guestfs_list_devices (guestfs_h *g);\n"
8943 "\n"
8944 msgstr ""
8945
8946 # type: textblock
8947 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2051
8948 msgid "List all the block devices."
8949 msgstr ""
8950
8951 # type: textblock
8952 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:2053
8953 msgid "The full block device names are returned, eg. C</dev/sda>."
8954 msgstr ""
8955
8956 # type: =head2
8957 #: ../src/guestfs-actions.pod:2743
8958 msgid "guestfs_list_filesystems"
8959 msgstr ""
8960
8961 # type: verbatim
8962 #: ../src/guestfs-actions.pod:2745
8963 #, no-wrap
8964 msgid ""
8965 " char **\n"
8966 " guestfs_list_filesystems (guestfs_h *g);\n"
8967 "\n"
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:2748 ../fish/guestfish-actions.pod:2061
8972 msgid ""
8973 "This inspection command looks for filesystems on partitions, block devices "
8974 "and logical volumes, returning a list of devices containing filesystems and "
8975 "their type."
8976 msgstr ""
8977
8978 # type: textblock
8979 #: ../src/guestfs-actions.pod:2752 ../fish/guestfish-actions.pod:2065
8980 msgid ""
8981 "The return value is a hash, where the keys are the devices containing "
8982 "filesystems, and the values are the filesystem types.  For example:"
8983 msgstr ""
8984
8985 # type: verbatim
8986 #: ../src/guestfs-actions.pod:2756 ../fish/guestfish-actions.pod:2069
8987 #, no-wrap
8988 msgid ""
8989 " \"/dev/sda1\" => \"ntfs\"\n"
8990 " \"/dev/sda2\" => \"ext2\"\n"
8991 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8992 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8993 "\n"
8994 msgstr ""
8995
8996 # type: textblock
8997 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:2074
8998 msgid ""
8999 "The value can have the special value \"unknown\", meaning the content of the "
9000 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2765
9005 msgid ""
9006 "This command runs other libguestfs commands, which might include "
9007 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9008 "soon after launch and only when nothing is mounted."
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2769
9013 msgid ""
9014 "Not all of the filesystems returned will be mountable.  In particular, swap "
9015 "partitions are returned in the list.  Also this command does not check that "
9016 "each filesystem found is valid and mountable, and some filesystems might be "
9017 "mountable but require special options.  Filesystems may not all belong to a "
9018 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9019 msgstr ""
9020
9021 # type: =head2
9022 #: ../src/guestfs-actions.pod:2783
9023 msgid "guestfs_list_partitions"
9024 msgstr ""
9025
9026 # type: verbatim
9027 #: ../src/guestfs-actions.pod:2785
9028 #, no-wrap
9029 msgid ""
9030 " char **\n"
9031 " guestfs_list_partitions (guestfs_h *g);\n"
9032 "\n"
9033 msgstr ""
9034
9035 # type: textblock
9036 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:2094
9037 msgid "List all the partitions detected on all block devices."
9038 msgstr ""
9039
9040 # type: textblock
9041 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:2096
9042 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2792
9047 msgid ""
9048 "This does not return logical volumes.  For that you will need to call "
9049 "C<guestfs_lvs>."
9050 msgstr ""
9051
9052 # type: =head2
9053 #: ../src/guestfs-actions.pod:2801
9054 msgid "guestfs_ll"
9055 msgstr ""
9056
9057 # type: verbatim
9058 #: ../src/guestfs-actions.pod:2803
9059 #, no-wrap
9060 msgid ""
9061 " char *\n"
9062 " guestfs_ll (guestfs_h *g,\n"
9063 "             const char *directory);\n"
9064 "\n"
9065 msgstr ""
9066
9067 # type: textblock
9068 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2107
9069 msgid ""
9070 "List the files in C<directory> (relative to the root directory, there is no "
9071 "cwd) in the format of 'ls -la'."
9072 msgstr ""
9073
9074 # type: textblock
9075 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:2110
9076 msgid ""
9077 "This command is mostly useful for interactive sessions.  It is I<not> "
9078 "intended that you try to parse the output string."
9079 msgstr ""
9080
9081 # type: =head2
9082 #: ../src/guestfs-actions.pod:2816
9083 msgid "guestfs_ln"
9084 msgstr ""
9085
9086 # type: verbatim
9087 #: ../src/guestfs-actions.pod:2818
9088 #, no-wrap
9089 msgid ""
9090 " int\n"
9091 " guestfs_ln (guestfs_h *g,\n"
9092 "             const char *target,\n"
9093 "             const char *linkname);\n"
9094 "\n"
9095 msgstr ""
9096
9097 # type: textblock
9098 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:2117
9099 msgid "This command creates a hard link using the C<ln> command."
9100 msgstr ""
9101
9102 # type: =head2
9103 #: ../src/guestfs-actions.pod:2827
9104 msgid "guestfs_ln_f"
9105 msgstr ""
9106
9107 # type: verbatim
9108 #: ../src/guestfs-actions.pod:2829
9109 #, no-wrap
9110 msgid ""
9111 " int\n"
9112 " guestfs_ln_f (guestfs_h *g,\n"
9113 "               const char *target,\n"
9114 "               const char *linkname);\n"
9115 "\n"
9116 msgstr ""
9117
9118 # type: textblock
9119 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:2123
9120 msgid ""
9121 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9122 "option removes the link (C<linkname>) if it exists already."
9123 msgstr ""
9124
9125 # type: =head2
9126 #: ../src/guestfs-actions.pod:2839
9127 msgid "guestfs_ln_s"
9128 msgstr ""
9129
9130 # type: verbatim
9131 #: ../src/guestfs-actions.pod:2841
9132 #, no-wrap
9133 msgid ""
9134 " int\n"
9135 " guestfs_ln_s (guestfs_h *g,\n"
9136 "               const char *target,\n"
9137 "               const char *linkname);\n"
9138 "\n"
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:2130
9143 msgid "This command creates a symbolic link using the C<ln -s> command."
9144 msgstr ""
9145
9146 # type: =head2
9147 #: ../src/guestfs-actions.pod:2850
9148 msgid "guestfs_ln_sf"
9149 msgstr ""
9150
9151 # type: verbatim
9152 #: ../src/guestfs-actions.pod:2852
9153 #, no-wrap
9154 msgid ""
9155 " int\n"
9156 " guestfs_ln_sf (guestfs_h *g,\n"
9157 "                const char *target,\n"
9158 "                const char *linkname);\n"
9159 "\n"
9160 msgstr ""
9161
9162 # type: textblock
9163 #: ../src/guestfs-actions.pod:2857 ../fish/guestfish-actions.pod:2136
9164 msgid ""
9165 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9166 "option removes the link (C<linkname>) if it exists already."
9167 msgstr ""
9168
9169 # type: =head2
9170 #: ../src/guestfs-actions.pod:2862
9171 msgid "guestfs_lremovexattr"
9172 msgstr ""
9173
9174 # type: verbatim
9175 #: ../src/guestfs-actions.pod:2864
9176 #, no-wrap
9177 msgid ""
9178 " int\n"
9179 " guestfs_lremovexattr (guestfs_h *g,\n"
9180 "                       const char *xattr,\n"
9181 "                       const char *path);\n"
9182 "\n"
9183 msgstr ""
9184
9185 # type: textblock
9186 #: ../src/guestfs-actions.pod:2869
9187 msgid ""
9188 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9189 "link, then it removes an extended attribute of the link itself."
9190 msgstr ""
9191
9192 # type: =head2
9193 #: ../src/guestfs-actions.pod:2875
9194 msgid "guestfs_ls"
9195 msgstr ""
9196
9197 # type: verbatim
9198 #: ../src/guestfs-actions.pod:2877
9199 #, no-wrap
9200 msgid ""
9201 " char **\n"
9202 " guestfs_ls (guestfs_h *g,\n"
9203 "             const char *directory);\n"
9204 "\n"
9205 msgstr ""
9206
9207 # type: textblock
9208 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2151
9209 msgid ""
9210 "List the files in C<directory> (relative to the root directory, there is no "
9211 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9212 msgstr ""
9213
9214 # type: textblock
9215 #: ../src/guestfs-actions.pod:2885
9216 msgid ""
9217 "This command is mostly useful for interactive sessions.  Programs should "
9218 "probably use C<guestfs_readdir> instead."
9219 msgstr ""
9220
9221 # type: =head2
9222 #: ../src/guestfs-actions.pod:2892
9223 msgid "guestfs_lsetxattr"
9224 msgstr ""
9225
9226 # type: verbatim
9227 #: ../src/guestfs-actions.pod:2894
9228 #, no-wrap
9229 msgid ""
9230 " int\n"
9231 " guestfs_lsetxattr (guestfs_h *g,\n"
9232 "                    const char *xattr,\n"
9233 "                    const char *val,\n"
9234 "                    int vallen,\n"
9235 "                    const char *path);\n"
9236 "\n"
9237 msgstr ""
9238
9239 # type: textblock
9240 #: ../src/guestfs-actions.pod:2901
9241 msgid ""
9242 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9243 "then it sets an extended attribute of the link itself."
9244 msgstr ""
9245
9246 # type: =head2
9247 #: ../src/guestfs-actions.pod:2907
9248 msgid "guestfs_lstat"
9249 msgstr ""
9250
9251 # type: verbatim
9252 #: ../src/guestfs-actions.pod:2909
9253 #, no-wrap
9254 msgid ""
9255 " struct guestfs_stat *\n"
9256 " guestfs_lstat (guestfs_h *g,\n"
9257 "                const char *path);\n"
9258 "\n"
9259 msgstr ""
9260
9261 # type: textblock
9262 #: ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:5108
9263 #: ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
9264 msgid "Returns file information for the given C<path>."
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:2915
9269 msgid ""
9270 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9271 "link, then the link is stat-ed, not the file it refers to."
9272 msgstr ""
9273
9274 # type: textblock
9275 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2176
9276 msgid "This is the same as the C<lstat(2)> system call."
9277 msgstr ""
9278
9279 # type: textblock
9280 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:5112
9281 msgid ""
9282 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9283 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9284 msgstr ""
9285
9286 # type: =head2
9287 #: ../src/guestfs-actions.pod:2925
9288 msgid "guestfs_lstatlist"
9289 msgstr ""
9290
9291 # type: verbatim
9292 #: ../src/guestfs-actions.pod:2927
9293 #, no-wrap
9294 msgid ""
9295 " struct guestfs_stat_list *\n"
9296 " guestfs_lstatlist (guestfs_h *g,\n"
9297 "                    const char *path,\n"
9298 "                    char *const *names);\n"
9299 "\n"
9300 msgstr ""
9301
9302 # type: textblock
9303 #: ../src/guestfs-actions.pod:2932
9304 msgid ""
9305 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9306 "files, where all files are in the directory C<path>.  C<names> is the list "
9307 "of files from this directory."
9308 msgstr ""
9309
9310 # type: textblock
9311 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2186
9312 msgid ""
9313 "On return you get a list of stat structs, with a one-to-one correspondence "
9314 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9315 "then the C<ino> field of that structure is set to C<-1>."
9316 msgstr ""
9317
9318 # type: textblock
9319 #: ../src/guestfs-actions.pod:2941
9320 msgid ""
9321 "This call is intended for programs that want to efficiently list a directory "
9322 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9323 "for a similarly efficient call for getting extended attributes.  Very long "
9324 "directory listings might cause the protocol message size to be exceeded, "
9325 "causing this call to fail.  The caller must split up such requests into "
9326 "smaller groups of names."
9327 msgstr ""
9328
9329 # type: textblock
9330 #: ../src/guestfs-actions.pod:2949
9331 msgid ""
9332 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9333 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9334 "C<guestfs_free_stat_list> after use>."
9335 msgstr ""
9336
9337 # type: =head2
9338 #: ../src/guestfs-actions.pod:2954
9339 msgid "guestfs_luks_add_key"
9340 msgstr ""
9341
9342 # type: verbatim
9343 #: ../src/guestfs-actions.pod:2956
9344 #, no-wrap
9345 msgid ""
9346 " int\n"
9347 " guestfs_luks_add_key (guestfs_h *g,\n"
9348 "                       const char *device,\n"
9349 "                       const char *key,\n"
9350 "                       const char *newkey,\n"
9351 "                       int keyslot);\n"
9352 "\n"
9353 msgstr ""
9354
9355 # type: textblock
9356 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2203
9357 msgid ""
9358 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9359 "existing key, and is used to access the device.  C<newkey> is the new key to "
9360 "add.  C<keyslot> is the key slot that will be replaced."
9361 msgstr ""
9362
9363 # type: textblock
9364 #: ../src/guestfs-actions.pod:2968
9365 msgid ""
9366 "Note that if C<keyslot> already contains a key, then this command will "
9367 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9368 msgstr ""
9369
9370 # type: textblock
9371 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010
9372 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3049
9373 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3096
9374 msgid ""
9375 "This function takes a key or passphrase parameter which could contain "
9376 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9377 "information."
9378 msgstr ""
9379
9380 # type: =head2
9381 #: ../src/guestfs-actions.pod:2978
9382 msgid "guestfs_luks_close"
9383 msgstr ""
9384
9385 # type: verbatim
9386 #: ../src/guestfs-actions.pod:2980
9387 #, no-wrap
9388 msgid ""
9389 " int\n"
9390 " guestfs_luks_close (guestfs_h *g,\n"
9391 "                     const char *device);\n"
9392 "\n"
9393 msgstr ""
9394
9395 # type: textblock
9396 #: ../src/guestfs-actions.pod:2984
9397 msgid ""
9398 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9399 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9400 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9401 "underlying block device."
9402 msgstr ""
9403
9404 # type: =head2
9405 #: ../src/guestfs-actions.pod:2992
9406 msgid "guestfs_luks_format"
9407 msgstr ""
9408
9409 # type: verbatim
9410 #: ../src/guestfs-actions.pod:2994
9411 #, no-wrap
9412 msgid ""
9413 " int\n"
9414 " guestfs_luks_format (guestfs_h *g,\n"
9415 "                      const char *device,\n"
9416 "                      const char *key,\n"
9417 "                      int keyslot);\n"
9418 "\n"
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2229
9423 msgid ""
9424 "This command erases existing data on C<device> and formats the device as a "
9425 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9426 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9427 msgstr ""
9428
9429 # type: textblock
9430 #: ../src/guestfs-actions.pod:3007 ../src/guestfs-actions.pod:3028
9431 #: ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3926
9432 #: ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4961
9433 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:5006
9434 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:2237
9435 #: ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334
9436 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371
9437 #: ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667
9438 #: ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9439 msgid ""
9440 "B<This command is dangerous.  Without careful use you can easily destroy all "
9441 "your data>."
9442 msgstr ""
9443
9444 # type: =head2
9445 #: ../src/guestfs-actions.pod:3014
9446 msgid "guestfs_luks_format_cipher"
9447 msgstr ""
9448
9449 # type: verbatim
9450 #: ../src/guestfs-actions.pod:3016
9451 #, no-wrap
9452 msgid ""
9453 " int\n"
9454 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9455 "                             const char *device,\n"
9456 "                             const char *key,\n"
9457 "                             int keyslot,\n"
9458 "                             const char *cipher);\n"
9459 "\n"
9460 msgstr ""
9461
9462 # type: textblock
9463 #: ../src/guestfs-actions.pod:3023
9464 msgid ""
9465 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9466 "set the C<cipher> used."
9467 msgstr ""
9468
9469 # type: =head2
9470 #: ../src/guestfs-actions.pod:3035
9471 msgid "guestfs_luks_kill_slot"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:3037
9476 #, no-wrap
9477 msgid ""
9478 " int\n"
9479 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9480 "                         const char *device,\n"
9481 "                         const char *key,\n"
9482 "                         int keyslot);\n"
9483 "\n"
9484 msgstr ""
9485
9486 # type: textblock
9487 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2257
9488 msgid ""
9489 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9490 "device C<device>.  C<key> must be one of the I<other> keys."
9491 msgstr ""
9492
9493 # type: =head2
9494 #: ../src/guestfs-actions.pod:3053
9495 msgid "guestfs_luks_open"
9496 msgstr ""
9497
9498 # type: verbatim
9499 #: ../src/guestfs-actions.pod:3055
9500 #, no-wrap
9501 msgid ""
9502 " int\n"
9503 " guestfs_luks_open (guestfs_h *g,\n"
9504 "                    const char *device,\n"
9505 "                    const char *key,\n"
9506 "                    const char *mapname);\n"
9507 "\n"
9508 msgstr ""
9509
9510 # type: textblock
9511 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2268
9512 msgid ""
9513 "This command opens a block device which has been encrypted according to the "
9514 "Linux Unified Key Setup (LUKS) standard."
9515 msgstr ""
9516
9517 # type: textblock
9518 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2271
9519 msgid "C<device> is the encrypted block device or partition."
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2273
9524 msgid ""
9525 "The caller must supply one of the keys associated with the LUKS block "
9526 "device, in the C<key> parameter."
9527 msgstr ""
9528
9529 # type: textblock
9530 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2276
9531 msgid ""
9532 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9533 "writes to this block device are decrypted from and encrypted to the "
9534 "underlying C<device> respectively."
9535 msgstr ""
9536
9537 # type: textblock
9538 #: ../src/guestfs-actions.pod:3073
9539 msgid ""
9540 "If this block device contains LVM volume groups, then calling "
9541 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9542 "visible."
9543 msgstr ""
9544
9545 # type: =head2
9546 #: ../src/guestfs-actions.pod:3083
9547 msgid "guestfs_luks_open_ro"
9548 msgstr ""
9549
9550 # type: verbatim
9551 #: ../src/guestfs-actions.pod:3085
9552 #, no-wrap
9553 msgid ""
9554 " int\n"
9555 " guestfs_luks_open_ro (guestfs_h *g,\n"
9556 "                       const char *device,\n"
9557 "                       const char *key,\n"
9558 "                       const char *mapname);\n"
9559 "\n"
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3091
9564 msgid ""
9565 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9566 "created."
9567 msgstr ""
9568
9569 # type: =head2
9570 #: ../src/guestfs-actions.pod:3100
9571 msgid "guestfs_lvcreate"
9572 msgstr ""
9573
9574 # type: verbatim
9575 #: ../src/guestfs-actions.pod:3102
9576 #, no-wrap
9577 msgid ""
9578 " int\n"
9579 " guestfs_lvcreate (guestfs_h *g,\n"
9580 "                   const char *logvol,\n"
9581 "                   const char *volgroup,\n"
9582 "                   int mbytes);\n"
9583 "\n"
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2301
9588 msgid ""
9589 "This creates an LVM logical volume called C<logvol> on the volume group "
9590 "C<volgroup>, with C<size> megabytes."
9591 msgstr ""
9592
9593 # type: =head2
9594 #: ../src/guestfs-actions.pod:3113
9595 msgid "guestfs_lvm_canonical_lv_name"
9596 msgstr ""
9597
9598 # type: verbatim
9599 #: ../src/guestfs-actions.pod:3115
9600 #, no-wrap
9601 msgid ""
9602 " char *\n"
9603 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9604 "                                const char *lvname);\n"
9605 "\n"
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2308
9610 msgid ""
9611 "This converts alternative naming schemes for LVs that you might find to the "
9612 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9613 "LV>."
9614 msgstr ""
9615
9616 # type: textblock
9617 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2312
9618 msgid ""
9619 "This command returns an error if the C<lvname> parameter does not refer to a "
9620 "logical volume."
9621 msgstr ""
9622
9623 # type: textblock
9624 #: ../src/guestfs-actions.pod:3126
9625 msgid "See also C<guestfs_is_lv>."
9626 msgstr ""
9627
9628 # type: =head2
9629 #: ../src/guestfs-actions.pod:3131
9630 msgid "guestfs_lvm_clear_filter"
9631 msgstr ""
9632
9633 # type: verbatim
9634 #: ../src/guestfs-actions.pod:3133
9635 #, no-wrap
9636 msgid ""
9637 " int\n"
9638 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9639 "\n"
9640 msgstr ""
9641
9642 # type: textblock
9643 #: ../src/guestfs-actions.pod:3136
9644 msgid ""
9645 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9646 "see every block device."
9647 msgstr ""
9648
9649 # type: textblock
9650 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3177
9651 #: ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9652 msgid ""
9653 "This command also clears the LVM cache and performs a volume group scan."
9654 msgstr ""
9655
9656 # type: =head2
9657 #: ../src/guestfs-actions.pod:3144
9658 msgid "guestfs_lvm_remove_all"
9659 msgstr ""
9660
9661 # type: verbatim
9662 #: ../src/guestfs-actions.pod:3146
9663 #, no-wrap
9664 msgid ""
9665 " int\n"
9666 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9667 "\n"
9668 msgstr ""
9669
9670 # type: textblock
9671 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2331
9672 msgid ""
9673 "This command removes all LVM logical volumes, volume groups and physical "
9674 "volumes."
9675 msgstr ""
9676
9677 # type: =head2
9678 #: ../src/guestfs-actions.pod:3157
9679 msgid "guestfs_lvm_set_filter"
9680 msgstr ""
9681
9682 # type: verbatim
9683 #: ../src/guestfs-actions.pod:3159
9684 #, no-wrap
9685 msgid ""
9686 " int\n"
9687 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9688 "                         char *const *devices);\n"
9689 "\n"
9690 msgstr ""
9691
9692 # type: textblock
9693 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2341
9694 msgid ""
9695 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9696 "block devices in the list C<devices>, and will ignore all other attached "
9697 "block devices."
9698 msgstr ""
9699
9700 # type: textblock
9701 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2345
9702 msgid ""
9703 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9704 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9705 "there are two types of duplication possible: either cloned PVs/VGs which "
9706 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9707 "same name.  In normal operation you cannot create this situation, but you "
9708 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9709 "inside the LVM metadata."
9710 msgstr ""
9711
9712 # type: textblock
9713 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2358
9714 msgid "You can filter whole block devices or individual partitions."
9715 msgstr ""
9716
9717 # type: textblock
9718 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2360
9719 msgid ""
9720 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9721 "filesystem), even if you are not filtering out that VG."
9722 msgstr ""
9723
9724 # type: =head2
9725 #: ../src/guestfs-actions.pod:3188
9726 msgid "guestfs_lvremove"
9727 msgstr ""
9728
9729 # type: verbatim
9730 #: ../src/guestfs-actions.pod:3190
9731 #, no-wrap
9732 msgid ""
9733 " int\n"
9734 " guestfs_lvremove (guestfs_h *g,\n"
9735 "                   const char *device);\n"
9736 "\n"
9737 msgstr ""
9738
9739 # type: textblock
9740 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2368
9741 msgid ""
9742 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9743 "LV, such as C</dev/VG/LV>."
9744 msgstr ""
9745
9746 # type: textblock
9747 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2371
9748 msgid ""
9749 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9750 "dev/VG>."
9751 msgstr ""
9752
9753 # type: =head2
9754 #: ../src/guestfs-actions.pod:3202
9755 msgid "guestfs_lvrename"
9756 msgstr ""
9757
9758 # type: verbatim
9759 #: ../src/guestfs-actions.pod:3204
9760 #, no-wrap
9761 msgid ""
9762 " int\n"
9763 " guestfs_lvrename (guestfs_h *g,\n"
9764 "                   const char *logvol,\n"
9765 "                   const char *newlogvol);\n"
9766 "\n"
9767 msgstr ""
9768
9769 # type: textblock
9770 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2378
9771 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9772 msgstr ""
9773
9774 # type: =head2
9775 #: ../src/guestfs-actions.pod:3213
9776 msgid "guestfs_lvresize"
9777 msgstr ""
9778
9779 # type: verbatim
9780 #: ../src/guestfs-actions.pod:3215
9781 #, no-wrap
9782 msgid ""
9783 " int\n"
9784 " guestfs_lvresize (guestfs_h *g,\n"
9785 "                   const char *device,\n"
9786 "                   int mbytes);\n"
9787 "\n"
9788 msgstr ""
9789
9790 # type: textblock
9791 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2384
9792 msgid ""
9793 "This resizes (expands or shrinks) an existing LVM logical volume to "
9794 "C<mbytes>.  When reducing, data in the reduced part is lost."
9795 msgstr ""
9796
9797 # type: =head2
9798 #: ../src/guestfs-actions.pod:3226
9799 msgid "guestfs_lvresize_free"
9800 msgstr ""
9801
9802 # type: verbatim
9803 #: ../src/guestfs-actions.pod:3228
9804 #, no-wrap
9805 msgid ""
9806 " int\n"
9807 " guestfs_lvresize_free (guestfs_h *g,\n"
9808 "                        const char *lv,\n"
9809 "                        int percent);\n"
9810 "\n"
9811 msgstr ""
9812
9813 # type: textblock
9814 #: ../src/guestfs-actions.pod:3233 ../fish/guestfish-actions.pod:2392
9815 msgid ""
9816 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9817 "remaining free space in the volume group.  Commonly you would call this with "
9818 "pc = 100 which expands the logical volume as much as possible, using all "
9819 "remaining free space in the volume group."
9820 msgstr ""
9821
9822 # type: =head2
9823 #: ../src/guestfs-actions.pod:3241
9824 msgid "guestfs_lvs"
9825 msgstr ""
9826
9827 # type: verbatim
9828 #: ../src/guestfs-actions.pod:3243
9829 #, no-wrap
9830 msgid ""
9831 " char **\n"
9832 " guestfs_lvs (guestfs_h *g);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2402
9838 msgid ""
9839 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9840 "(8)> command."
9841 msgstr ""
9842
9843 # type: textblock
9844 #: ../src/guestfs-actions.pod:3249 ../fish/guestfish-actions.pod:2405
9845 msgid ""
9846 "This returns a list of the logical volume device names (eg. C</dev/"
9847 "VolGroup00/LogVol00>)."
9848 msgstr ""
9849
9850 # type: textblock
9851 #: ../src/guestfs-actions.pod:3252
9852 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9853 msgstr ""
9854
9855 # type: =head2
9856 #: ../src/guestfs-actions.pod:3258
9857 msgid "guestfs_lvs_full"
9858 msgstr ""
9859
9860 # type: verbatim
9861 #: ../src/guestfs-actions.pod:3260
9862 #, no-wrap
9863 msgid ""
9864 " struct guestfs_lvm_lv_list *\n"
9865 " guestfs_lvs_full (guestfs_h *g);\n"
9866 "\n"
9867 msgstr ""
9868
9869 # type: textblock
9870 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2414
9871 msgid ""
9872 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9873 "(8)> command.  The \"full\" version includes all fields."
9874 msgstr ""
9875
9876 # type: textblock
9877 #: ../src/guestfs-actions.pod:3266
9878 msgid ""
9879 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9880 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9881 "C<guestfs_free_lvm_lv_list> after use>."
9882 msgstr ""
9883
9884 # type: =head2
9885 #: ../src/guestfs-actions.pod:3271
9886 msgid "guestfs_lvuuid"
9887 msgstr ""
9888
9889 # type: verbatim
9890 #: ../src/guestfs-actions.pod:3273
9891 #, no-wrap
9892 msgid ""
9893 " char *\n"
9894 " guestfs_lvuuid (guestfs_h *g,\n"
9895 "                 const char *device);\n"
9896 "\n"
9897 msgstr ""
9898
9899 # type: textblock
9900 #: ../src/guestfs-actions.pod:3277 ../fish/guestfish-actions.pod:2421
9901 msgid "This command returns the UUID of the LVM LV C<device>."
9902 msgstr ""
9903
9904 # type: =head2
9905 #: ../src/guestfs-actions.pod:3282
9906 msgid "guestfs_lxattrlist"
9907 msgstr ""
9908
9909 # type: verbatim
9910 #: ../src/guestfs-actions.pod:3284
9911 #, no-wrap
9912 msgid ""
9913 " struct guestfs_xattr_list *\n"
9914 " guestfs_lxattrlist (guestfs_h *g,\n"
9915 "                     const char *path,\n"
9916 "                     char *const *names);\n"
9917 "\n"
9918 msgstr ""
9919
9920 # type: textblock
9921 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2427
9922 msgid ""
9923 "This call allows you to get the extended attributes of multiple files, where "
9924 "all files are in the directory C<path>.  C<names> is the list of files from "
9925 "this directory."
9926 msgstr ""
9927
9928 # type: textblock
9929 #: ../src/guestfs-actions.pod:3293 ../fish/guestfish-actions.pod:2431
9930 msgid ""
9931 "On return you get a flat list of xattr structs which must be interpreted "
9932 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9933 "C<attrval> in this struct is zero-length to indicate there was an error "
9934 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9935 "number (the number of following attributes for this file, which could be C<"
9936 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9937 "for the first named file.  This repeats for the second and subsequent files."
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3303
9942 msgid ""
9943 "This call is intended for programs that want to efficiently list a directory "
9944 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9945 "a similarly efficient call for getting standard stats.  Very long directory "
9946 "listings might cause the protocol message size to be exceeded, causing this "
9947 "call to fail.  The caller must split up such requests into smaller groups of "
9948 "names."
9949 msgstr ""
9950
9951 # type: =head2
9952 #: ../src/guestfs-actions.pod:3316
9953 msgid "guestfs_mkdir"
9954 msgstr ""
9955
9956 # type: verbatim
9957 #: ../src/guestfs-actions.pod:3318
9958 #, no-wrap
9959 msgid ""
9960 " int\n"
9961 " guestfs_mkdir (guestfs_h *g,\n"
9962 "                const char *path);\n"
9963 "\n"
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2453
9968 msgid "Create a directory named C<path>."
9969 msgstr ""
9970
9971 # type: =head2
9972 #: ../src/guestfs-actions.pod:3326
9973 msgid "guestfs_mkdir_mode"
9974 msgstr ""
9975
9976 # type: verbatim
9977 #: ../src/guestfs-actions.pod:3328
9978 #, no-wrap
9979 msgid ""
9980 " int\n"
9981 " guestfs_mkdir_mode (guestfs_h *g,\n"
9982 "                     const char *path,\n"
9983 "                     int mode);\n"
9984 "\n"
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2459
9989 msgid ""
9990 "This command creates a directory, setting the initial permissions of the "
9991 "directory to C<mode>."
9992 msgstr ""
9993
9994 # type: textblock
9995 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2462
9996 msgid ""
9997 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9998 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9999 "other ways."
10000 msgstr ""
10001
10002 # type: textblock
10003 #: ../src/guestfs-actions.pod:3340
10004 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10005 msgstr ""
10006
10007 # type: =head2
10008 #: ../src/guestfs-actions.pod:3344
10009 msgid "guestfs_mkdir_p"
10010 msgstr ""
10011
10012 # type: verbatim
10013 #: ../src/guestfs-actions.pod:3346
10014 #, no-wrap
10015 msgid ""
10016 " int\n"
10017 " guestfs_mkdir_p (guestfs_h *g,\n"
10018 "                  const char *path);\n"
10019 "\n"
10020 msgstr ""
10021
10022 # type: textblock
10023 #: ../src/guestfs-actions.pod:3350 ../fish/guestfish-actions.pod:2472
10024 msgid ""
10025 "Create a directory named C<path>, creating any parent directories as "
10026 "necessary.  This is like the C<mkdir -p> shell command."
10027 msgstr ""
10028
10029 # type: =head2
10030 #: ../src/guestfs-actions.pod:3355
10031 msgid "guestfs_mkdtemp"
10032 msgstr ""
10033
10034 # type: verbatim
10035 #: ../src/guestfs-actions.pod:3357
10036 #, no-wrap
10037 msgid ""
10038 " char *\n"
10039 " guestfs_mkdtemp (guestfs_h *g,\n"
10040 "                  const char *template);\n"
10041 "\n"
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2479
10046 msgid ""
10047 "This command creates a temporary directory.  The C<template> parameter "
10048 "should be a full pathname for the temporary directory name with the final "
10049 "six characters being \"XXXXXX\"."
10050 msgstr ""
10051
10052 # type: textblock
10053 #: ../src/guestfs-actions.pod:3366 ../fish/guestfish-actions.pod:2484
10054 msgid ""
10055 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10056 "being suitable for Windows filesystems."
10057 msgstr ""
10058
10059 # type: textblock
10060 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2487
10061 msgid "The name of the temporary directory that was created is returned."
10062 msgstr ""
10063
10064 # type: textblock
10065 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2490
10066 msgid "The temporary directory is created with mode 0700 and is owned by root."
10067 msgstr ""
10068
10069 # type: textblock
10070 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2493
10071 msgid ""
10072 "The caller is responsible for deleting the temporary directory and its "
10073 "contents after use."
10074 msgstr ""
10075
10076 # type: textblock
10077 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2496
10078 msgid "See also: L<mkdtemp(3)>"
10079 msgstr ""
10080
10081 # type: =head2
10082 #: ../src/guestfs-actions.pod:3383
10083 msgid "guestfs_mke2fs_J"
10084 msgstr ""
10085
10086 # type: verbatim
10087 #: ../src/guestfs-actions.pod:3385
10088 #, no-wrap
10089 msgid ""
10090 " int\n"
10091 " guestfs_mke2fs_J (guestfs_h *g,\n"
10092 "                   const char *fstype,\n"
10093 "                   int blocksize,\n"
10094 "                   const char *device,\n"
10095 "                   const char *journal);\n"
10096 "\n"
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2502
10101 msgid ""
10102 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10103 "C<journal>.  It is equivalent to the command:"
10104 msgstr ""
10105
10106 # type: verbatim
10107 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:2506
10108 #, no-wrap
10109 msgid ""
10110 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10111 "\n"
10112 msgstr ""
10113
10114 # type: textblock
10115 #: ../src/guestfs-actions.pod:3398
10116 msgid "See also C<guestfs_mke2journal>."
10117 msgstr ""
10118
10119 # type: =head2
10120 #: ../src/guestfs-actions.pod:3402
10121 msgid "guestfs_mke2fs_JL"
10122 msgstr ""
10123
10124 # type: verbatim
10125 #: ../src/guestfs-actions.pod:3404
10126 #, no-wrap
10127 msgid ""
10128 " int\n"
10129 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10130 "                    const char *fstype,\n"
10131 "                    int blocksize,\n"
10132 "                    const char *device,\n"
10133 "                    const char *label);\n"
10134 "\n"
10135 msgstr ""
10136
10137 # type: textblock
10138 #: ../src/guestfs-actions.pod:3411 ../fish/guestfish-actions.pod:2514
10139 msgid ""
10140 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10141 "the journal labeled C<label>."
10142 msgstr ""
10143
10144 # type: textblock
10145 #: ../src/guestfs-actions.pod:3414
10146 msgid "See also C<guestfs_mke2journal_L>."
10147 msgstr ""
10148
10149 # type: =head2
10150 #: ../src/guestfs-actions.pod:3418
10151 msgid "guestfs_mke2fs_JU"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #: ../src/guestfs-actions.pod:3420
10156 #, no-wrap
10157 msgid ""
10158 " int\n"
10159 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10160 "                    const char *fstype,\n"
10161 "                    int blocksize,\n"
10162 "                    const char *device,\n"
10163 "                    const char *uuid);\n"
10164 "\n"
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3427 ../fish/guestfish-actions.pod:2523
10169 msgid ""
10170 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10171 "the journal with UUID C<uuid>."
10172 msgstr ""
10173
10174 # type: textblock
10175 #: ../src/guestfs-actions.pod:3430
10176 msgid "See also C<guestfs_mke2journal_U>."
10177 msgstr ""
10178
10179 # type: =head2
10180 #: ../src/guestfs-actions.pod:3434
10181 msgid "guestfs_mke2journal"
10182 msgstr ""
10183
10184 # type: verbatim
10185 #: ../src/guestfs-actions.pod:3436
10186 #, no-wrap
10187 msgid ""
10188 " int\n"
10189 " guestfs_mke2journal (guestfs_h *g,\n"
10190 "                      int blocksize,\n"
10191 "                      const char *device);\n"
10192 "\n"
10193 msgstr ""
10194
10195 # type: textblock
10196 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2532
10197 msgid ""
10198 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10199 "command:"
10200 msgstr ""
10201
10202 # type: verbatim
10203 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2535
10204 #, no-wrap
10205 msgid ""
10206 " mke2fs -O journal_dev -b blocksize device\n"
10207 "\n"
10208 msgstr ""
10209
10210 # type: =head2
10211 #: ../src/guestfs-actions.pod:3448
10212 msgid "guestfs_mke2journal_L"
10213 msgstr ""
10214
10215 # type: verbatim
10216 #: ../src/guestfs-actions.pod:3450
10217 #, no-wrap
10218 msgid ""
10219 " int\n"
10220 " guestfs_mke2journal_L (guestfs_h *g,\n"
10221 "                        int blocksize,\n"
10222 "                        const char *label,\n"
10223 "                        const char *device);\n"
10224 "\n"
10225 msgstr ""
10226
10227 # type: textblock
10228 #: ../src/guestfs-actions.pod:3456 ../fish/guestfish-actions.pod:2541
10229 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10230 msgstr ""
10231
10232 # type: =head2
10233 #: ../src/guestfs-actions.pod:3460
10234 msgid "guestfs_mke2journal_U"
10235 msgstr ""
10236
10237 # type: verbatim
10238 #: ../src/guestfs-actions.pod:3462
10239 #, no-wrap
10240 msgid ""
10241 " int\n"
10242 " guestfs_mke2journal_U (guestfs_h *g,\n"
10243 "                        int blocksize,\n"
10244 "                        const char *uuid,\n"
10245 "                        const char *device);\n"
10246 "\n"
10247 msgstr ""
10248
10249 # type: textblock
10250 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2547
10251 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10252 msgstr ""
10253
10254 # type: =head2
10255 #: ../src/guestfs-actions.pod:3472
10256 msgid "guestfs_mkfifo"
10257 msgstr ""
10258
10259 # type: verbatim
10260 #: ../src/guestfs-actions.pod:3474
10261 #, no-wrap
10262 msgid ""
10263 " int\n"
10264 " guestfs_mkfifo (guestfs_h *g,\n"
10265 "                 int mode,\n"
10266 "                 const char *path);\n"
10267 "\n"
10268 msgstr ""
10269
10270 # type: textblock
10271 #: ../src/guestfs-actions.pod:3479
10272 msgid ""
10273 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10274 "is just a convenient wrapper around C<guestfs_mknod>."
10275 msgstr ""
10276
10277 # type: =head2
10278 #: ../src/guestfs-actions.pod:3487
10279 msgid "guestfs_mkfs"
10280 msgstr ""
10281
10282 # type: verbatim
10283 #: ../src/guestfs-actions.pod:3489
10284 #, no-wrap
10285 msgid ""
10286 " int\n"
10287 " guestfs_mkfs (guestfs_h *g,\n"
10288 "               const char *fstype,\n"
10289 "               const char *device);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2563
10295 msgid ""
10296 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10297 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10298 msgstr ""
10299
10300 # type: =head2
10301 #: ../src/guestfs-actions.pod:3500
10302 msgid "guestfs_mkfs_b"
10303 msgstr ""
10304
10305 # type: verbatim
10306 #: ../src/guestfs-actions.pod:3502
10307 #, no-wrap
10308 msgid ""
10309 " int\n"
10310 " guestfs_mkfs_b (guestfs_h *g,\n"
10311 "                 const char *fstype,\n"
10312 "                 int blocksize,\n"
10313 "                 const char *device);\n"
10314 "\n"
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3508
10319 msgid ""
10320 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10321 "block size of the resulting filesystem.  Supported block sizes depend on the "
10322 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3513 ../fish/guestfish-actions.pod:2576
10327 msgid ""
10328 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10329 "cluster size."
10330 msgstr ""
10331
10332 # type: =head2
10333 #: ../src/guestfs-actions.pod:3518
10334 msgid "guestfs_mkmountpoint"
10335 msgstr ""
10336
10337 # type: verbatim
10338 #: ../src/guestfs-actions.pod:3520
10339 #, no-wrap
10340 msgid ""
10341 " int\n"
10342 " guestfs_mkmountpoint (guestfs_h *g,\n"
10343 "                       const char *exemptpath);\n"
10344 "\n"
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3524
10349 msgid ""
10350 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10351 "that can be used to create extra mountpoints before mounting the first "
10352 "filesystem."
10353 msgstr ""
10354
10355 # type: textblock
10356 #: ../src/guestfs-actions.pod:3528 ../fish/guestfish-actions.pod:2587
10357 msgid ""
10358 "These calls are I<only> necessary in some very limited circumstances, mainly "
10359 "the case where you want to mount a mix of unrelated and/or read-only "
10360 "filesystems together."
10361 msgstr ""
10362
10363 # type: textblock
10364 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2591
10365 msgid ""
10366 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10367 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10368 "inside that.  You can unpack this as follows in guestfish:"
10369 msgstr ""
10370
10371 # type: verbatim
10372 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2596
10373 #, no-wrap
10374 msgid ""
10375 " add-ro Fedora-11-i686-Live.iso\n"
10376 " run\n"
10377 " mkmountpoint /cd\n"
10378 " mkmountpoint /sqsh\n"
10379 " mkmountpoint /ext3fs\n"
10380 " mount /dev/sda /cd\n"
10381 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10382 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10383 "\n"
10384 msgstr ""
10385
10386 # type: textblock
10387 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2605
10388 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10389 msgstr ""
10390
10391 # type: textblock
10392 #: ../src/guestfs-actions.pod:3548
10393 msgid ""
10394 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10395 "may get unexpected errors if you try to mix these calls.  It is safest to "
10396 "manually unmount filesystems and remove mountpoints after use."
10397 msgstr ""
10398
10399 # type: textblock
10400 #: ../src/guestfs-actions.pod:3552
10401 msgid ""
10402 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10403 "first, so for this to work for manual mountpoints, you must ensure that the "
10404 "innermost mountpoints have the longest pathnames, as in the example code "
10405 "above."
10406 msgstr ""
10407
10408 # type: textblock
10409 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2616
10410 msgid ""
10411 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10412 msgstr ""
10413
10414 # type: textblock
10415 #: ../src/guestfs-actions.pod:3559
10416 msgid ""
10417 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10418 "means that C<guestfs_umount_all> is called when the handle is closed which "
10419 "can also trigger these issues."
10420 msgstr ""
10421
10422 # type: =head2
10423 #: ../src/guestfs-actions.pod:3565
10424 msgid "guestfs_mknod"
10425 msgstr ""
10426
10427 # type: verbatim
10428 #: ../src/guestfs-actions.pod:3567
10429 #, no-wrap
10430 msgid ""
10431 " int\n"
10432 " guestfs_mknod (guestfs_h *g,\n"
10433 "                int mode,\n"
10434 "                int devmajor,\n"
10435 "                int devminor,\n"
10436 "                const char *path);\n"
10437 "\n"
10438 msgstr ""
10439
10440 # type: textblock
10441 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2626
10442 msgid ""
10443 "This call creates block or character special devices, or named pipes (FIFOs)."
10444 msgstr ""
10445
10446 # type: textblock
10447 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2629
10448 msgid ""
10449 "The C<mode> parameter should be the mode, using the standard constants.  "
10450 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10451 "used when creating block and character special devices."
10452 msgstr ""
10453
10454 # type: textblock
10455 #: ../src/guestfs-actions.pod:3582
10456 msgid ""
10457 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10458 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10459 "regular file).  These constants are available in the standard Linux header "
10460 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10461 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10462 "the appropriate constant for you."
10463 msgstr ""
10464
10465 # type: =head2
10466 #: ../src/guestfs-actions.pod:3594
10467 msgid "guestfs_mknod_b"
10468 msgstr ""
10469
10470 # type: verbatim
10471 #: ../src/guestfs-actions.pod:3596
10472 #, no-wrap
10473 msgid ""
10474 " int\n"
10475 " guestfs_mknod_b (guestfs_h *g,\n"
10476 "                  int mode,\n"
10477 "                  int devmajor,\n"
10478 "                  int devminor,\n"
10479 "                  const char *path);\n"
10480 "\n"
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3603
10485 msgid ""
10486 "This call creates a block device node called C<path> with mode C<mode> and "
10487 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10488 "wrapper around C<guestfs_mknod>."
10489 msgstr ""
10490
10491 # type: =head2
10492 #: ../src/guestfs-actions.pod:3611
10493 msgid "guestfs_mknod_c"
10494 msgstr ""
10495
10496 # type: verbatim
10497 #: ../src/guestfs-actions.pod:3613
10498 #, no-wrap
10499 msgid ""
10500 " int\n"
10501 " guestfs_mknod_c (guestfs_h *g,\n"
10502 "                  int mode,\n"
10503 "                  int devmajor,\n"
10504 "                  int devminor,\n"
10505 "                  const char *path);\n"
10506 "\n"
10507 msgstr ""
10508
10509 # type: textblock
10510 #: ../src/guestfs-actions.pod:3620
10511 msgid ""
10512 "This call creates a char device node called C<path> with mode C<mode> and "
10513 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10514 "wrapper around C<guestfs_mknod>."
10515 msgstr ""
10516
10517 # type: =head2
10518 #: ../src/guestfs-actions.pod:3628
10519 msgid "guestfs_mkswap"
10520 msgstr ""
10521
10522 # type: verbatim
10523 #: ../src/guestfs-actions.pod:3630
10524 #, no-wrap
10525 msgid ""
10526 " int\n"
10527 " guestfs_mkswap (guestfs_h *g,\n"
10528 "                 const char *device);\n"
10529 "\n"
10530 msgstr ""
10531
10532 # type: textblock
10533 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2668
10534 msgid "Create a swap partition on C<device>."
10535 msgstr ""
10536
10537 # type: =head2
10538 #: ../src/guestfs-actions.pod:3638
10539 msgid "guestfs_mkswap_L"
10540 msgstr ""
10541
10542 # type: verbatim
10543 #: ../src/guestfs-actions.pod:3640
10544 #, no-wrap
10545 msgid ""
10546 " int\n"
10547 " guestfs_mkswap_L (guestfs_h *g,\n"
10548 "                   const char *label,\n"
10549 "                   const char *device);\n"
10550 "\n"
10551 msgstr ""
10552
10553 # type: textblock
10554 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2674
10555 msgid "Create a swap partition on C<device> with label C<label>."
10556 msgstr ""
10557
10558 # type: textblock
10559 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2676
10560 msgid ""
10561 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10562 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10563 "or swap tools."
10564 msgstr ""
10565
10566 # type: =head2
10567 #: ../src/guestfs-actions.pod:3653
10568 msgid "guestfs_mkswap_U"
10569 msgstr ""
10570
10571 # type: verbatim
10572 #: ../src/guestfs-actions.pod:3655
10573 #, no-wrap
10574 msgid ""
10575 " int\n"
10576 " guestfs_mkswap_U (guestfs_h *g,\n"
10577 "                   const char *uuid,\n"
10578 "                   const char *device);\n"
10579 "\n"
10580 msgstr ""
10581
10582 # type: textblock
10583 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2684
10584 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10585 msgstr ""
10586
10587 # type: =head2
10588 #: ../src/guestfs-actions.pod:3664
10589 msgid "guestfs_mkswap_file"
10590 msgstr ""
10591
10592 # type: verbatim
10593 #: ../src/guestfs-actions.pod:3666
10594 #, no-wrap
10595 msgid ""
10596 " int\n"
10597 " guestfs_mkswap_file (guestfs_h *g,\n"
10598 "                      const char *path);\n"
10599 "\n"
10600 msgstr ""
10601
10602 # type: textblock
10603 #: ../src/guestfs-actions.pod:3670 ../fish/guestfish-actions.pod:2690
10604 msgid "Create a swap file."
10605 msgstr ""
10606
10607 # type: textblock
10608 #: ../src/guestfs-actions.pod:3672
10609 msgid ""
10610 "This command just writes a swap file signature to an existing file.  To "
10611 "create the file itself, use something like C<guestfs_fallocate>."
10612 msgstr ""
10613
10614 # type: =head2
10615 #: ../src/guestfs-actions.pod:3677
10616 msgid "guestfs_modprobe"
10617 msgstr ""
10618
10619 # type: verbatim
10620 #: ../src/guestfs-actions.pod:3679
10621 #, no-wrap
10622 msgid ""
10623 " int\n"
10624 " guestfs_modprobe (guestfs_h *g,\n"
10625 "                   const char *modulename);\n"
10626 "\n"
10627 msgstr ""
10628
10629 # type: textblock
10630 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2699
10631 msgid "This loads a kernel module in the appliance."
10632 msgstr ""
10633
10634 # type: textblock
10635 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2701
10636 msgid ""
10637 "The kernel module must have been whitelisted when libguestfs was built (see "
10638 "C<appliance/kmod.whitelist.in> in the source)."
10639 msgstr ""
10640
10641 # type: =head2
10642 #: ../src/guestfs-actions.pod:3690
10643 msgid "guestfs_mount"
10644 msgstr ""
10645
10646 # type: verbatim
10647 #: ../src/guestfs-actions.pod:3692
10648 #, no-wrap
10649 msgid ""
10650 " int\n"
10651 " guestfs_mount (guestfs_h *g,\n"
10652 "                const char *device,\n"
10653 "                const char *mountpoint);\n"
10654 "\n"
10655 msgstr ""
10656
10657 # type: textblock
10658 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2708
10659 msgid ""
10660 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10661 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10662 "those block devices contain partitions, they will have the usual names (eg. "
10663 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2714
10668 msgid ""
10669 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10670 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10671 "mounted on directories which already exist."
10672 msgstr ""
10673
10674 # type: textblock
10675 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2719
10676 msgid ""
10677 "The mounted filesystem is writable, if we have sufficient permissions on the "
10678 "underlying device."
10679 msgstr ""
10680
10681 # type: textblock
10682 #: ../src/guestfs-actions.pod:3711
10683 msgid ""
10684 "B<Important note:> When you use this call, the filesystem options C<sync> "
10685 "and C<noatime> are set implicitly.  This was originally done because we "
10686 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10687 "very large negative performance impact and negligible effect on "
10688 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10689 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10690 "(use an empty string for the first parameter if you don't want any options)."
10691 msgstr ""
10692
10693 # type: =head2
10694 #: ../src/guestfs-actions.pod:3723
10695 msgid "guestfs_mount_loop"
10696 msgstr ""
10697
10698 # type: verbatim
10699 #: ../src/guestfs-actions.pod:3725
10700 #, no-wrap
10701 msgid ""
10702 " int\n"
10703 " guestfs_mount_loop (guestfs_h *g,\n"
10704 "                     const char *file,\n"
10705 "                     const char *mountpoint);\n"
10706 "\n"
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2736
10711 msgid ""
10712 "This command lets you mount C<file> (a filesystem image in a file) on a "
10713 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10714 "mountpoint>."
10715 msgstr ""
10716
10717 # type: =head2
10718 #: ../src/guestfs-actions.pod:3736
10719 msgid "guestfs_mount_options"
10720 msgstr ""
10721
10722 # type: verbatim
10723 #: ../src/guestfs-actions.pod:3738
10724 #, no-wrap
10725 msgid ""
10726 " int\n"
10727 " guestfs_mount_options (guestfs_h *g,\n"
10728 "                        const char *options,\n"
10729 "                        const char *device,\n"
10730 "                        const char *mountpoint);\n"
10731 "\n"
10732 msgstr ""
10733
10734 # type: textblock
10735 #: ../src/guestfs-actions.pod:3744
10736 msgid ""
10737 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10738 "the mount options as for the L<mount(8)> I<-o> flag."
10739 msgstr ""
10740
10741 # type: textblock
10742 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2748
10743 msgid ""
10744 "If the C<options> parameter is an empty string, then no options are passed "
10745 "(all options default to whatever the filesystem uses)."
10746 msgstr ""
10747
10748 # type: =head2
10749 #: ../src/guestfs-actions.pod:3754
10750 msgid "guestfs_mount_ro"
10751 msgstr ""
10752
10753 # type: verbatim
10754 #: ../src/guestfs-actions.pod:3756
10755 #, no-wrap
10756 msgid ""
10757 " int\n"
10758 " guestfs_mount_ro (guestfs_h *g,\n"
10759 "                   const char *device,\n"
10760 "                   const char *mountpoint);\n"
10761 "\n"
10762 msgstr ""
10763
10764 # type: textblock
10765 #: ../src/guestfs-actions.pod:3761
10766 msgid ""
10767 "This is the same as the C<guestfs_mount> command, but it mounts the "
10768 "filesystem with the read-only (I<-o ro>) flag."
10769 msgstr ""
10770
10771 # type: =head2
10772 #: ../src/guestfs-actions.pod:3766
10773 msgid "guestfs_mount_vfs"
10774 msgstr ""
10775
10776 # type: verbatim
10777 #: ../src/guestfs-actions.pod:3768
10778 #, no-wrap
10779 msgid ""
10780 " int\n"
10781 " guestfs_mount_vfs (guestfs_h *g,\n"
10782 "                    const char *options,\n"
10783 "                    const char *vfstype,\n"
10784 "                    const char *device,\n"
10785 "                    const char *mountpoint);\n"
10786 "\n"
10787 msgstr ""
10788
10789 # type: textblock
10790 #: ../src/guestfs-actions.pod:3775
10791 msgid ""
10792 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10793 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10794 "t> flags."
10795 msgstr ""
10796
10797 # type: =head2
10798 #: ../src/guestfs-actions.pod:3781
10799 msgid "guestfs_mountpoints"
10800 msgstr ""
10801
10802 # type: verbatim
10803 #: ../src/guestfs-actions.pod:3783
10804 #, no-wrap
10805 msgid ""
10806 " char **\n"
10807 " guestfs_mountpoints (guestfs_h *g);\n"
10808 "\n"
10809 msgstr ""
10810
10811 # type: textblock
10812 #: ../src/guestfs-actions.pod:3786
10813 msgid ""
10814 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10815 "devices.  This one returns a hash table (map) of device name to directory "
10816 "where the device is mounted."
10817 msgstr ""
10818
10819 # type: =head2
10820 #: ../src/guestfs-actions.pod:3796
10821 msgid "guestfs_mounts"
10822 msgstr ""
10823
10824 # type: verbatim
10825 #: ../src/guestfs-actions.pod:3798
10826 #, no-wrap
10827 msgid ""
10828 " char **\n"
10829 " guestfs_mounts (guestfs_h *g);\n"
10830 "\n"
10831 msgstr ""
10832
10833 # type: textblock
10834 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2779
10835 msgid ""
10836 "This returns the list of currently mounted filesystems.  It returns the list "
10837 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10838 msgstr ""
10839
10840 # type: textblock
10841 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2782
10842 msgid "Some internal mounts are not shown."
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:3806
10847 msgid "See also: C<guestfs_mountpoints>"
10848 msgstr ""
10849
10850 # type: =head2
10851 #: ../src/guestfs-actions.pod:3812
10852 msgid "guestfs_mv"
10853 msgstr ""
10854
10855 # type: verbatim
10856 #: ../src/guestfs-actions.pod:3814
10857 #, no-wrap
10858 msgid ""
10859 " int\n"
10860 " guestfs_mv (guestfs_h *g,\n"
10861 "             const char *src,\n"
10862 "             const char *dest);\n"
10863 "\n"
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2790
10868 msgid ""
10869 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10870 "destination filename or destination directory."
10871 msgstr ""
10872
10873 # type: =head2
10874 #: ../src/guestfs-actions.pod:3824
10875 msgid "guestfs_ntfs_3g_probe"
10876 msgstr ""
10877
10878 # type: verbatim
10879 #: ../src/guestfs-actions.pod:3826
10880 #, no-wrap
10881 msgid ""
10882 " int\n"
10883 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10884 "                        int rw,\n"
10885 "                        const char *device);\n"
10886 "\n"
10887 msgstr ""
10888
10889 # type: textblock
10890 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2797
10891 msgid ""
10892 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10893 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10894 "write, and some cannot be mounted at all)."
10895 msgstr ""
10896
10897 # type: textblock
10898 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2801
10899 msgid ""
10900 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10901 "can be mounted read-write.  Set it to false if you want to test if the "
10902 "volume can be mounted read-only."
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2805
10907 msgid ""
10908 "The return value is an integer which C<0> if the operation would succeed, or "
10909 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10910 msgstr ""
10911
10912 # type: =head2
10913 #: ../src/guestfs-actions.pod:3845
10914 msgid "guestfs_ntfsresize"
10915 msgstr ""
10916
10917 # type: verbatim
10918 #: ../src/guestfs-actions.pod:3847
10919 #, no-wrap
10920 msgid ""
10921 " int\n"
10922 " guestfs_ntfsresize (guestfs_h *g,\n"
10923 "                     const char *device);\n"
10924 "\n"
10925 msgstr ""
10926
10927 # type: textblock
10928 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2813
10929 msgid ""
10930 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10931 "size of the underlying device.  See also L<ntfsresize(8)>."
10932 msgstr ""
10933
10934 # type: =head2
10935 #: ../src/guestfs-actions.pod:3857
10936 msgid "guestfs_ntfsresize_size"
10937 msgstr ""
10938
10939 # type: verbatim
10940 #: ../src/guestfs-actions.pod:3859
10941 #, no-wrap
10942 msgid ""
10943 " int\n"
10944 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10945 "                          const char *device,\n"
10946 "                          int64_t size);\n"
10947 "\n"
10948 msgstr ""
10949
10950 # type: textblock
10951 #: ../src/guestfs-actions.pod:3864
10952 msgid ""
10953 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10954 "to specify the new size (in bytes) explicitly."
10955 msgstr ""
10956
10957 # type: =head2
10958 #: ../src/guestfs-actions.pod:3869
10959 msgid "guestfs_part_add"
10960 msgstr ""
10961
10962 # type: verbatim
10963 #: ../src/guestfs-actions.pod:3871
10964 #, no-wrap
10965 msgid ""
10966 " int\n"
10967 " guestfs_part_add (guestfs_h *g,\n"
10968 "                   const char *device,\n"
10969 "                   const char *prlogex,\n"
10970 "                   int64_t startsect,\n"
10971 "                   int64_t endsect);\n"
10972 "\n"
10973 msgstr ""
10974
10975 # type: textblock
10976 #: ../src/guestfs-actions.pod:3878
10977 msgid ""
10978 "This command adds a partition to C<device>.  If there is no partition table "
10979 "on the device, call C<guestfs_part_init> first."
10980 msgstr ""
10981
10982 # type: textblock
10983 #: ../src/guestfs-actions.pod:3881 ../fish/guestfish-actions.pod:2831
10984 msgid ""
10985 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10986 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10987 "C<logical>) and C<e> (or C<extended>) partition types."
10988 msgstr ""
10989
10990 # type: textblock
10991 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2836
10992 msgid ""
10993 "C<startsect> and C<endsect> are the start and end of the partition in "
10994 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10995 "from the end of the disk (C<-1> is the last sector)."
10996 msgstr ""
10997
10998 # type: textblock
10999 #: ../src/guestfs-actions.pod:3890
11000 msgid ""
11001 "Creating a partition which covers the whole disk is not so easy.  Use "
11002 "C<guestfs_part_disk> to do that."
11003 msgstr ""
11004
11005 # type: =head2
11006 #: ../src/guestfs-actions.pod:3895
11007 msgid "guestfs_part_del"
11008 msgstr ""
11009
11010 # type: verbatim
11011 #: ../src/guestfs-actions.pod:3897
11012 #, no-wrap
11013 msgid ""
11014 " int\n"
11015 " guestfs_part_del (guestfs_h *g,\n"
11016 "                   const char *device,\n"
11017 "                   int partnum);\n"
11018 "\n"
11019 msgstr ""
11020
11021 # type: textblock
11022 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2847
11023 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11024 msgstr ""
11025
11026 # type: textblock
11027 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2849
11028 msgid ""
11029 "Note that in the case of MBR partitioning, deleting an extended partition "
11030 "also deletes any logical partitions it contains."
11031 msgstr ""
11032
11033 # type: =head2
11034 #: ../src/guestfs-actions.pod:3910
11035 msgid "guestfs_part_disk"
11036 msgstr ""
11037
11038 # type: verbatim
11039 #: ../src/guestfs-actions.pod:3912
11040 #, no-wrap
11041 msgid ""
11042 " int\n"
11043 " guestfs_part_disk (guestfs_h *g,\n"
11044 "                    const char *device,\n"
11045 "                    const char *parttype);\n"
11046 "\n"
11047 msgstr ""
11048
11049 # type: textblock
11050 #: ../src/guestfs-actions.pod:3917
11051 msgid ""
11052 "This command is simply a combination of C<guestfs_part_init> followed by "
11053 "C<guestfs_part_add> to create a single primary partition covering the whole "
11054 "disk."
11055 msgstr ""
11056
11057 # type: textblock
11058 #: ../src/guestfs-actions.pod:3921
11059 msgid ""
11060 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11061 "possible values are described in C<guestfs_part_init>."
11062 msgstr ""
11063
11064 # type: =head2
11065 #: ../src/guestfs-actions.pod:3929
11066 msgid "guestfs_part_get_bootable"
11067 msgstr ""
11068
11069 # type: verbatim
11070 #: ../src/guestfs-actions.pod:3931
11071 #, no-wrap
11072 msgid ""
11073 " int\n"
11074 " guestfs_part_get_bootable (guestfs_h *g,\n"
11075 "                            const char *device,\n"
11076 "                            int partnum);\n"
11077 "\n"
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2871
11082 msgid ""
11083 "This command returns true if the partition C<partnum> on C<device> has the "
11084 "bootable flag set."
11085 msgstr ""
11086
11087 # type: textblock
11088 #: ../src/guestfs-actions.pod:3939
11089 msgid "See also C<guestfs_part_set_bootable>."
11090 msgstr ""
11091
11092 # type: =head2
11093 #: ../src/guestfs-actions.pod:3943
11094 msgid "guestfs_part_get_mbr_id"
11095 msgstr ""
11096
11097 # type: verbatim
11098 #: ../src/guestfs-actions.pod:3945
11099 #, no-wrap
11100 msgid ""
11101 " int\n"
11102 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11103 "                          const char *device,\n"
11104 "                          int partnum);\n"
11105 "\n"
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2880
11110 msgid ""
11111 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11112 "partition C<partnum>."
11113 msgstr ""
11114
11115 # type: textblock
11116 #: ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:4120
11117 msgid ""
11118 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11119 "undefined results for other partition table types (see "
11120 "C<guestfs_part_get_parttype>)."
11121 msgstr ""
11122
11123 # type: =head2
11124 #: ../src/guestfs-actions.pod:3959
11125 msgid "guestfs_part_get_parttype"
11126 msgstr ""
11127
11128 # type: verbatim
11129 #: ../src/guestfs-actions.pod:3961
11130 #, no-wrap
11131 msgid ""
11132 " char *\n"
11133 " guestfs_part_get_parttype (guestfs_h *g,\n"
11134 "                            const char *device);\n"
11135 "\n"
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2891
11140 msgid ""
11141 "This command examines the partition table on C<device> and returns the "
11142 "partition table type (format) being used."
11143 msgstr ""
11144
11145 # type: textblock
11146 #: ../src/guestfs-actions.pod:3968
11147 msgid ""
11148 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11149 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11150 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11151 msgstr ""
11152
11153 # type: =head2
11154 #: ../src/guestfs-actions.pod:3976
11155 msgid "guestfs_part_init"
11156 msgstr ""
11157
11158 # type: verbatim
11159 #: ../src/guestfs-actions.pod:3978
11160 #, no-wrap
11161 msgid ""
11162 " int\n"
11163 " guestfs_part_init (guestfs_h *g,\n"
11164 "                    const char *device,\n"
11165 "                    const char *parttype);\n"
11166 "\n"
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:3983 ../fish/guestfish-actions.pod:2903
11171 msgid ""
11172 "This creates an empty partition table on C<device> of one of the partition "
11173 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11174 "(for large disks)."
11175 msgstr ""
11176
11177 # type: textblock
11178 #: ../src/guestfs-actions.pod:3987
11179 msgid ""
11180 "Initially there are no partitions.  Following this, you should call "
11181 "C<guestfs_part_add> for each partition required."
11182 msgstr ""
11183
11184 # type: textblock
11185 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:2910
11186 msgid "Possible values for C<parttype> are:"
11187 msgstr ""
11188
11189 # type: =item
11190 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2914
11191 msgid "B<efi> | B<gpt>"
11192 msgstr ""
11193
11194 # type: textblock
11195 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2916
11196 msgid "Intel EFI / GPT partition table."
11197 msgstr ""
11198
11199 # type: textblock
11200 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2918
11201 msgid ""
11202 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11203 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11204 "the C<mbr> format."
11205 msgstr ""
11206
11207 # type: =item
11208 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2922
11209 msgid "B<mbr> | B<msdos>"
11210 msgstr ""
11211
11212 # type: textblock
11213 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2924
11214 msgid ""
11215 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11216 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11217 "TB.  For large disks we recommend using C<gpt>."
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2931
11222 msgid ""
11223 "Other partition table types that may work but are not supported include:"
11224 msgstr ""
11225
11226 # type: =item
11227 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:2936
11228 msgid "B<aix>"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2938
11233 msgid "AIX disk labels."
11234 msgstr ""
11235
11236 # type: =item
11237 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2940
11238 msgid "B<amiga> | B<rdb>"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2942
11243 msgid "Amiga \"Rigid Disk Block\" format."
11244 msgstr ""
11245
11246 # type: =item
11247 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2944
11248 msgid "B<bsd>"
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2946
11253 msgid "BSD disk labels."
11254 msgstr ""
11255
11256 # type: =item
11257 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:2948
11258 msgid "B<dasd>"
11259 msgstr ""
11260
11261 # type: textblock
11262 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2950
11263 msgid "DASD, used on IBM mainframes."
11264 msgstr ""
11265
11266 # type: =item
11267 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:2952
11268 msgid "B<dvh>"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:2954
11273 msgid "MIPS/SGI volumes."
11274 msgstr ""
11275
11276 # type: =item
11277 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2956
11278 msgid "B<mac>"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2958
11283 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11284 msgstr ""
11285
11286 # type: =item
11287 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2960
11288 msgid "B<pc98>"
11289 msgstr ""
11290
11291 # type: textblock
11292 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2962
11293 msgid "NEC PC-98 format, common in Japan apparently."
11294 msgstr ""
11295
11296 # type: =item
11297 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2964
11298 msgid "B<sun>"
11299 msgstr ""
11300
11301 # type: textblock
11302 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2966
11303 msgid "Sun disk labels."
11304 msgstr ""
11305
11306 # type: =head2
11307 #: ../src/guestfs-actions.pod:4052
11308 msgid "guestfs_part_list"
11309 msgstr ""
11310
11311 # type: verbatim
11312 #: ../src/guestfs-actions.pod:4054
11313 #, no-wrap
11314 msgid ""
11315 " struct guestfs_partition_list *\n"
11316 " guestfs_part_list (guestfs_h *g,\n"
11317 "                    const char *device);\n"
11318 "\n"
11319 msgstr ""
11320
11321 # type: textblock
11322 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2974
11323 msgid ""
11324 "This command parses the partition table on C<device> and returns the list of "
11325 "partitions found."
11326 msgstr ""
11327
11328 # type: textblock
11329 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2977
11330 msgid "The fields in the returned structure are:"
11331 msgstr ""
11332
11333 # type: =item
11334 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2981
11335 msgid "B<part_num>"
11336 msgstr ""
11337
11338 # type: textblock
11339 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2983
11340 msgid "Partition number, counting from 1."
11341 msgstr ""
11342
11343 # type: =item
11344 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:2985
11345 msgid "B<part_start>"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4071
11350 msgid ""
11351 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11352 "the device's sector size, see C<guestfs_blockdev_getss>."
11353 msgstr ""
11354
11355 # type: =item
11356 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2990
11357 msgid "B<part_end>"
11358 msgstr ""
11359
11360 # type: textblock
11361 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2992
11362 msgid "End of the partition in bytes."
11363 msgstr ""
11364
11365 # type: =item
11366 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:2994
11367 msgid "B<part_size>"
11368 msgstr ""
11369
11370 # type: textblock
11371 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:2996
11372 msgid "Size of the partition in bytes."
11373 msgstr ""
11374
11375 # type: textblock
11376 #: ../src/guestfs-actions.pod:4084
11377 msgid ""
11378 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11379 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11380 "C<guestfs_free_partition_list> after use>."
11381 msgstr ""
11382
11383 # type: =head2
11384 #: ../src/guestfs-actions.pod:4089
11385 msgid "guestfs_part_set_bootable"
11386 msgstr ""
11387
11388 # type: verbatim
11389 #: ../src/guestfs-actions.pod:4091
11390 #, no-wrap
11391 msgid ""
11392 " int\n"
11393 " guestfs_part_set_bootable (guestfs_h *g,\n"
11394 "                            const char *device,\n"
11395 "                            int partnum,\n"
11396 "                            int bootable);\n"
11397 "\n"
11398 msgstr ""
11399
11400 # type: textblock
11401 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3004
11402 msgid ""
11403 "This sets the bootable flag on partition numbered C<partnum> on device "
11404 "C<device>.  Note that partitions are numbered from 1."
11405 msgstr ""
11406
11407 # type: textblock
11408 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:3007
11409 msgid ""
11410 "The bootable flag is used by some operating systems (notably Windows) to "
11411 "determine which partition to boot from.  It is by no means universally "
11412 "recognized."
11413 msgstr ""
11414
11415 # type: =head2
11416 #: ../src/guestfs-actions.pod:4106
11417 msgid "guestfs_part_set_mbr_id"
11418 msgstr ""
11419
11420 # type: verbatim
11421 #: ../src/guestfs-actions.pod:4108
11422 #, no-wrap
11423 msgid ""
11424 " int\n"
11425 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11426 "                          const char *device,\n"
11427 "                          int partnum,\n"
11428 "                          int idbyte);\n"
11429 "\n"
11430 msgstr ""
11431
11432 # type: textblock
11433 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3015
11434 msgid ""
11435 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11436 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11437 "documentation are in fact hexadecimal numbers, but usually documented "
11438 "without any leading \"0x\" which might be confusing."
11439 msgstr ""
11440
11441 # type: =head2
11442 #: ../src/guestfs-actions.pod:4126
11443 msgid "guestfs_part_set_name"
11444 msgstr ""
11445
11446 # type: verbatim
11447 #: ../src/guestfs-actions.pod:4128
11448 #, no-wrap
11449 msgid ""
11450 " int\n"
11451 " guestfs_part_set_name (guestfs_h *g,\n"
11452 "                        const char *device,\n"
11453 "                        int partnum,\n"
11454 "                        const char *name);\n"
11455 "\n"
11456 msgstr ""
11457
11458 # type: textblock
11459 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3029
11460 msgid ""
11461 "This sets the partition name on partition numbered C<partnum> on device "
11462 "C<device>.  Note that partitions are numbered from 1."
11463 msgstr ""
11464
11465 # type: textblock
11466 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3032
11467 msgid ""
11468 "The partition name can only be set on certain types of partition table.  "
11469 "This works on C<gpt> but not on C<mbr> partitions."
11470 msgstr ""
11471
11472 # type: =head2
11473 #: ../src/guestfs-actions.pod:4142
11474 msgid "guestfs_part_to_dev"
11475 msgstr ""
11476
11477 # type: verbatim
11478 #: ../src/guestfs-actions.pod:4144
11479 #, no-wrap
11480 msgid ""
11481 " char *\n"
11482 " guestfs_part_to_dev (guestfs_h *g,\n"
11483 "                      const char *partition);\n"
11484 "\n"
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3039
11489 msgid ""
11490 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11491 "partition number, returning the device name (eg. \"/dev/sdb\")."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4152
11496 msgid ""
11497 "The named partition must exist, for example as a string returned from "
11498 "C<guestfs_list_partitions>."
11499 msgstr ""
11500
11501 # type: =head2
11502 #: ../src/guestfs-actions.pod:4158
11503 msgid "guestfs_ping_daemon"
11504 msgstr ""
11505
11506 # type: verbatim
11507 #: ../src/guestfs-actions.pod:4160
11508 #, no-wrap
11509 msgid ""
11510 " int\n"
11511 " guestfs_ping_daemon (guestfs_h *g);\n"
11512 "\n"
11513 msgstr ""
11514
11515 # type: textblock
11516 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:3050
11517 msgid ""
11518 "This is a test probe into the guestfs daemon running inside the qemu "
11519 "subprocess.  Calling this function checks that the daemon responds to the "
11520 "ping message, without affecting the daemon or attached block device(s) in "
11521 "any other way."
11522 msgstr ""
11523
11524 # type: =head2
11525 #: ../src/guestfs-actions.pod:4170
11526 msgid "guestfs_pread"
11527 msgstr ""
11528
11529 # type: verbatim
11530 #: ../src/guestfs-actions.pod:4172
11531 #, no-wrap
11532 msgid ""
11533 " char *\n"
11534 " guestfs_pread (guestfs_h *g,\n"
11535 "                const char *path,\n"
11536 "                int count,\n"
11537 "                int64_t offset,\n"
11538 "                size_t *size_r);\n"
11539 "\n"
11540 msgstr ""
11541
11542 # type: textblock
11543 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3059
11544 msgid ""
11545 "This command lets you read part of a file.  It reads C<count> bytes of the "
11546 "file, starting at C<offset>, from file C<path>."
11547 msgstr ""
11548
11549 # type: textblock
11550 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4206
11551 #: ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11552 msgid ""
11553 "This may read fewer bytes than requested.  For further details see the "
11554 "L<pread(2)> system call."
11555 msgstr ""
11556
11557 # type: textblock
11558 #: ../src/guestfs-actions.pod:4185
11559 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11560 msgstr ""
11561
11562 # type: =head2
11563 #: ../src/guestfs-actions.pod:4194
11564 msgid "guestfs_pread_device"
11565 msgstr ""
11566
11567 # type: verbatim
11568 #: ../src/guestfs-actions.pod:4196
11569 #, no-wrap
11570 msgid ""
11571 " char *\n"
11572 " guestfs_pread_device (guestfs_h *g,\n"
11573 "                       const char *device,\n"
11574 "                       int count,\n"
11575 "                       int64_t offset,\n"
11576 "                       size_t *size_r);\n"
11577 "\n"
11578 msgstr ""
11579
11580 # type: textblock
11581 #: ../src/guestfs-actions.pod:4203 ../fish/guestfish-actions.pod:3074
11582 msgid ""
11583 "This command lets you read part of a file.  It reads C<count> bytes of "
11584 "C<device>, starting at C<offset>."
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4209
11589 msgid "See also C<guestfs_pread>."
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4218
11594 msgid "guestfs_pvcreate"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4220
11599 #, no-wrap
11600 msgid ""
11601 " int\n"
11602 " guestfs_pvcreate (guestfs_h *g,\n"
11603 "                   const char *device);\n"
11604 "\n"
11605 msgstr ""
11606
11607 # type: textblock
11608 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:3089
11609 msgid ""
11610 "This creates an LVM physical volume on the named C<device>, where C<device> "
11611 "should usually be a partition name such as C</dev/sda1>."
11612 msgstr ""
11613
11614 # type: =head2
11615 #: ../src/guestfs-actions.pod:4230
11616 msgid "guestfs_pvremove"
11617 msgstr ""
11618
11619 # type: verbatim
11620 #: ../src/guestfs-actions.pod:4232
11621 #, no-wrap
11622 msgid ""
11623 " int\n"
11624 " guestfs_pvremove (guestfs_h *g,\n"
11625 "                   const char *device);\n"
11626 "\n"
11627 msgstr ""
11628
11629 # type: textblock
11630 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:3097
11631 msgid ""
11632 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11633 "it."
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:3100
11638 msgid ""
11639 "The implementation uses the C<pvremove> command which refuses to wipe "
11640 "physical volumes that contain any volume groups, so you have to remove those "
11641 "first."
11642 msgstr ""
11643
11644 # type: =head2
11645 #: ../src/guestfs-actions.pod:4245
11646 msgid "guestfs_pvresize"
11647 msgstr ""
11648
11649 # type: verbatim
11650 #: ../src/guestfs-actions.pod:4247
11651 #, no-wrap
11652 msgid ""
11653 " int\n"
11654 " guestfs_pvresize (guestfs_h *g,\n"
11655 "                   const char *device);\n"
11656 "\n"
11657 msgstr ""
11658
11659 # type: textblock
11660 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:3108
11661 msgid ""
11662 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11663 "the new size of the underlying device."
11664 msgstr ""
11665
11666 # type: =head2
11667 #: ../src/guestfs-actions.pod:4256
11668 msgid "guestfs_pvresize_size"
11669 msgstr ""
11670
11671 # type: verbatim
11672 #: ../src/guestfs-actions.pod:4258
11673 #, no-wrap
11674 msgid ""
11675 " int\n"
11676 " guestfs_pvresize_size (guestfs_h *g,\n"
11677 "                        const char *device,\n"
11678 "                        int64_t size);\n"
11679 "\n"
11680 msgstr ""
11681
11682 # type: textblock
11683 #: ../src/guestfs-actions.pod:4263
11684 msgid ""
11685 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11686 "specify the new size (in bytes) explicitly."
11687 msgstr ""
11688
11689 # type: =head2
11690 #: ../src/guestfs-actions.pod:4268
11691 msgid "guestfs_pvs"
11692 msgstr ""
11693
11694 # type: verbatim
11695 #: ../src/guestfs-actions.pod:4270
11696 #, no-wrap
11697 msgid ""
11698 " char **\n"
11699 " guestfs_pvs (guestfs_h *g);\n"
11700 "\n"
11701 msgstr ""
11702
11703 # type: textblock
11704 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3122
11705 msgid ""
11706 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11707 "(8)> command."
11708 msgstr ""
11709
11710 # type: textblock
11711 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:3125
11712 msgid ""
11713 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11714 "sda2>)."
11715 msgstr ""
11716
11717 # type: textblock
11718 #: ../src/guestfs-actions.pod:4279
11719 msgid "See also C<guestfs_pvs_full>."
11720 msgstr ""
11721
11722 # type: =head2
11723 #: ../src/guestfs-actions.pod:4285
11724 msgid "guestfs_pvs_full"
11725 msgstr ""
11726
11727 # type: verbatim
11728 #: ../src/guestfs-actions.pod:4287
11729 #, no-wrap
11730 msgid ""
11731 " struct guestfs_lvm_pv_list *\n"
11732 " guestfs_pvs_full (guestfs_h *g);\n"
11733 "\n"
11734 msgstr ""
11735
11736 # type: textblock
11737 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:3134
11738 msgid ""
11739 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11740 "(8)> command.  The \"full\" version includes all fields."
11741 msgstr ""
11742
11743 # type: textblock
11744 #: ../src/guestfs-actions.pod:4293
11745 msgid ""
11746 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11747 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11748 "C<guestfs_free_lvm_pv_list> after use>."
11749 msgstr ""
11750
11751 # type: =head2
11752 #: ../src/guestfs-actions.pod:4298
11753 msgid "guestfs_pvuuid"
11754 msgstr ""
11755
11756 # type: verbatim
11757 #: ../src/guestfs-actions.pod:4300
11758 #, no-wrap
11759 msgid ""
11760 " char *\n"
11761 " guestfs_pvuuid (guestfs_h *g,\n"
11762 "                 const char *device);\n"
11763 "\n"
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:3141
11768 msgid "This command returns the UUID of the LVM PV C<device>."
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4309
11773 msgid "guestfs_pwrite"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4311
11778 #, no-wrap
11779 msgid ""
11780 " int\n"
11781 " guestfs_pwrite (guestfs_h *g,\n"
11782 "                 const char *path,\n"
11783 "                 const char *content,\n"
11784 "                 size_t content_size,\n"
11785 "                 int64_t offset);\n"
11786 "\n"
11787 msgstr ""
11788
11789 # type: textblock
11790 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:3147
11791 msgid ""
11792 "This command writes to part of a file.  It writes the data buffer C<content> "
11793 "to the file C<path> starting at offset C<offset>."
11794 msgstr ""
11795
11796 # type: textblock
11797 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3150
11798 msgid ""
11799 "This command implements the L<pwrite(2)> system call, and like that system "
11800 "call it may not write the full data requested.  The return value is the "
11801 "number of bytes that were actually written to the file.  This could even be "
11802 "0, although short writes are unlikely for regular files in ordinary "
11803 "circumstances."
11804 msgstr ""
11805
11806 # type: textblock
11807 #: ../src/guestfs-actions.pod:4327
11808 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11809 msgstr ""
11810
11811 # type: =head2
11812 #: ../src/guestfs-actions.pod:4334
11813 msgid "guestfs_pwrite_device"
11814 msgstr ""
11815
11816 # type: verbatim
11817 #: ../src/guestfs-actions.pod:4336
11818 #, no-wrap
11819 msgid ""
11820 " int\n"
11821 " guestfs_pwrite_device (guestfs_h *g,\n"
11822 "                        const char *device,\n"
11823 "                        const char *content,\n"
11824 "                        size_t content_size,\n"
11825 "                        int64_t offset);\n"
11826 "\n"
11827 msgstr ""
11828
11829 # type: textblock
11830 #: ../src/guestfs-actions.pod:4343 ../fish/guestfish-actions.pod:3165
11831 msgid ""
11832 "This command writes to part of a device.  It writes the data buffer "
11833 "C<content> to C<device> starting at offset C<offset>."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:3168
11838 msgid ""
11839 "This command implements the L<pwrite(2)> system call, and like that system "
11840 "call it may not write the full data requested (although short writes to disk "
11841 "devices and partitions are probably impossible with standard Linux kernels)."
11842 msgstr ""
11843
11844 # type: textblock
11845 #: ../src/guestfs-actions.pod:4351
11846 msgid "See also C<guestfs_pwrite>."
11847 msgstr ""
11848
11849 # type: =head2
11850 #: ../src/guestfs-actions.pod:4358
11851 msgid "guestfs_read_file"
11852 msgstr ""
11853
11854 # type: verbatim
11855 #: ../src/guestfs-actions.pod:4360
11856 #, no-wrap
11857 msgid ""
11858 " char *\n"
11859 " guestfs_read_file (guestfs_h *g,\n"
11860 "                    const char *path,\n"
11861 "                    size_t *size_r);\n"
11862 "\n"
11863 msgstr ""
11864
11865 # type: textblock
11866 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:3182
11867 msgid "This calls returns the contents of the file C<path> as a buffer."
11868 msgstr ""
11869
11870 # type: textblock
11871 #: ../src/guestfs-actions.pod:4368
11872 msgid ""
11873 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11874 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11875 "function is limited in the total size of file that can be handled."
11876 msgstr ""
11877
11878 # type: =head2
11879 #: ../src/guestfs-actions.pod:4380
11880 msgid "guestfs_read_lines"
11881 msgstr ""
11882
11883 # type: verbatim
11884 #: ../src/guestfs-actions.pod:4382
11885 #, no-wrap
11886 msgid ""
11887 " char **\n"
11888 " guestfs_read_lines (guestfs_h *g,\n"
11889 "                     const char *path);\n"
11890 "\n"
11891 msgstr ""
11892
11893 # type: textblock
11894 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3199
11895 msgid ""
11896 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11897 "C<CRLF> character sequences are I<not> returned."
11898 msgstr ""
11899
11900 # type: textblock
11901 #: ../src/guestfs-actions.pod:4391
11902 msgid ""
11903 "Note that this function cannot correctly handle binary files (specifically, "
11904 "files containing C<\\0> character which is treated as end of line).  For "
11905 "those you need to use the C<guestfs_read_file> function which has a more "
11906 "complex interface."
11907 msgstr ""
11908
11909 # type: =head2
11910 #: ../src/guestfs-actions.pod:4400
11911 msgid "guestfs_readdir"
11912 msgstr ""
11913
11914 # type: verbatim
11915 #: ../src/guestfs-actions.pod:4402
11916 #, no-wrap
11917 msgid ""
11918 " struct guestfs_dirent_list *\n"
11919 " guestfs_readdir (guestfs_h *g,\n"
11920 "                  const char *dir);\n"
11921 "\n"
11922 msgstr ""
11923
11924 # type: textblock
11925 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3211
11926 msgid "This returns the list of directory entries in directory C<dir>."
11927 msgstr ""
11928
11929 # type: textblock
11930 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:3213
11931 msgid ""
11932 "All entries in the directory are returned, including C<.> and C<..>.  The "
11933 "entries are I<not> sorted, but returned in the same order as the underlying "
11934 "filesystem."
11935 msgstr ""
11936
11937 # type: textblock
11938 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:3217
11939 msgid ""
11940 "Also this call returns basic file type information about each file.  The "
11941 "C<ftyp> field will contain one of the following characters:"
11942 msgstr ""
11943
11944 # type: =item
11945 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:3222
11946 msgid "'b'"
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3224
11951 msgid "Block special"
11952 msgstr ""
11953
11954 # type: =item
11955 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3226
11956 msgid "'c'"
11957 msgstr ""
11958
11959 # type: textblock
11960 #: ../src/guestfs-actions.pod:4423 ../fish/guestfish-actions.pod:3228
11961 msgid "Char special"
11962 msgstr ""
11963
11964 # type: =item
11965 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:3230
11966 msgid "'d'"
11967 msgstr ""
11968
11969 # type: textblock
11970 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:3232
11971 msgid "Directory"
11972 msgstr ""
11973
11974 # type: =item
11975 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:3234
11976 msgid "'f'"
11977 msgstr ""
11978
11979 # type: textblock
11980 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:3236
11981 msgid "FIFO (named pipe)"
11982 msgstr ""
11983
11984 # type: =item
11985 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3238
11986 msgid "'l'"
11987 msgstr ""
11988
11989 # type: textblock
11990 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3240
11991 msgid "Symbolic link"
11992 msgstr ""
11993
11994 # type: =item
11995 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:3242
11996 msgid "'r'"
11997 msgstr ""
11998
11999 # type: textblock
12000 #: ../src/guestfs-actions.pod:4439 ../fish/guestfish-actions.pod:3244
12001 msgid "Regular file"
12002 msgstr ""
12003
12004 # type: =item
12005 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3246
12006 msgid "'s'"
12007 msgstr ""
12008
12009 # type: textblock
12010 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3248
12011 msgid "Socket"
12012 msgstr ""
12013
12014 # type: =item
12015 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:3250
12016 msgid "'u'"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3252
12021 msgid "Unknown file type"
12022 msgstr ""
12023
12024 # type: =item
12025 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:3254
12026 msgid "'?'"
12027 msgstr ""
12028
12029 # type: textblock
12030 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3256
12031 msgid ""
12032 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12033 msgstr ""
12034
12035 # type: textblock
12036 #: ../src/guestfs-actions.pod:4456
12037 msgid ""
12038 "This function is primarily intended for use by programs.  To get a simple "
12039 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12040 "consumption, use C<guestfs_ll>."
12041 msgstr ""
12042
12043 # type: textblock
12044 #: ../src/guestfs-actions.pod:4460
12045 msgid ""
12046 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
12047 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
12048 "C<guestfs_free_dirent_list> after use>."
12049 msgstr ""
12050
12051 # type: =head2
12052 #: ../src/guestfs-actions.pod:4465
12053 msgid "guestfs_readlink"
12054 msgstr ""
12055
12056 # type: verbatim
12057 #: ../src/guestfs-actions.pod:4467
12058 #, no-wrap
12059 msgid ""
12060 " char *\n"
12061 " guestfs_readlink (guestfs_h *g,\n"
12062 "                   const char *path);\n"
12063 "\n"
12064 msgstr ""
12065
12066 # type: textblock
12067 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3269
12068 msgid "This command reads the target of a symbolic link."
12069 msgstr ""
12070
12071 # type: =head2
12072 #: ../src/guestfs-actions.pod:4476
12073 msgid "guestfs_readlinklist"
12074 msgstr ""
12075
12076 # type: verbatim
12077 #: ../src/guestfs-actions.pod:4478
12078 #, no-wrap
12079 msgid ""
12080 " char **\n"
12081 " guestfs_readlinklist (guestfs_h *g,\n"
12082 "                       const char *path,\n"
12083 "                       char *const *names);\n"
12084 "\n"
12085 msgstr ""
12086
12087 # type: textblock
12088 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3275
12089 msgid ""
12090 "This call allows you to do a C<readlink> operation on multiple files, where "
12091 "all files are in the directory C<path>.  C<names> is the list of files from "
12092 "this directory."
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3279
12097 msgid ""
12098 "On return you get a list of strings, with a one-to-one correspondence to the "
12099 "C<names> list.  Each string is the value of the symbolic link."
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:3283
12104 msgid ""
12105 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12106 "result string is the empty string C<\"\">.  However the whole operation is "
12107 "completed even if there were C<readlink(2)> errors, and so you can call this "
12108 "function with names where you don't know if they are symbolic links already "
12109 "(albeit slightly less efficient)."
12110 msgstr ""
12111
12112 # type: textblock
12113 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:3290
12114 msgid ""
12115 "This call is intended for programs that want to efficiently list a directory "
12116 "contents without making many round-trips.  Very long directory listings "
12117 "might cause the protocol message size to be exceeded, causing this call to "
12118 "fail.  The caller must split up such requests into smaller groups of names."
12119 msgstr ""
12120
12121 # type: =head2
12122 #: ../src/guestfs-actions.pod:4509
12123 msgid "guestfs_realpath"
12124 msgstr ""
12125
12126 # type: verbatim
12127 #: ../src/guestfs-actions.pod:4511
12128 #, no-wrap
12129 msgid ""
12130 " char *\n"
12131 " guestfs_realpath (guestfs_h *g,\n"
12132 "                   const char *path);\n"
12133 "\n"
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3301
12138 msgid ""
12139 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12140 "has no C<.>, C<..> or symbolic link path elements."
12141 msgstr ""
12142
12143 # type: =head2
12144 #: ../src/guestfs-actions.pod:4521
12145 msgid "guestfs_removexattr"
12146 msgstr ""
12147
12148 # type: verbatim
12149 #: ../src/guestfs-actions.pod:4523
12150 #, no-wrap
12151 msgid ""
12152 " int\n"
12153 " guestfs_removexattr (guestfs_h *g,\n"
12154 "                      const char *xattr,\n"
12155 "                      const char *path);\n"
12156 "\n"
12157 msgstr ""
12158
12159 # type: textblock
12160 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3308
12161 msgid ""
12162 "This call removes the extended attribute named C<xattr> of the file C<path>."
12163 msgstr ""
12164
12165 # type: textblock
12166 #: ../src/guestfs-actions.pod:4531
12167 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12168 msgstr ""
12169
12170 # type: =head2
12171 #: ../src/guestfs-actions.pod:4535
12172 msgid "guestfs_resize2fs"
12173 msgstr ""
12174
12175 # type: verbatim
12176 #: ../src/guestfs-actions.pod:4537
12177 #, no-wrap
12178 msgid ""
12179 " int\n"
12180 " guestfs_resize2fs (guestfs_h *g,\n"
12181 "                    const char *device);\n"
12182 "\n"
12183 msgstr ""
12184
12185 # type: textblock
12186 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3317
12187 msgid ""
12188 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12189 "underlying device."
12190 msgstr ""
12191
12192 # type: textblock
12193 #: ../src/guestfs-actions.pod:4544
12194 msgid ""
12195 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12196 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12197 "sometimes gives an error about this and sometimes not.  In any case, it is "
12198 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12199 msgstr ""
12200
12201 # type: =head2
12202 #: ../src/guestfs-actions.pod:4552
12203 msgid "guestfs_resize2fs_size"
12204 msgstr ""
12205
12206 # type: verbatim
12207 #: ../src/guestfs-actions.pod:4554
12208 #, no-wrap
12209 msgid ""
12210 " int\n"
12211 " guestfs_resize2fs_size (guestfs_h *g,\n"
12212 "                         const char *device,\n"
12213 "                         int64_t size);\n"
12214 "\n"
12215 msgstr ""
12216
12217 # type: textblock
12218 #: ../src/guestfs-actions.pod:4559
12219 msgid ""
12220 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12221 "to specify the new size (in bytes) explicitly."
12222 msgstr ""
12223
12224 # type: =head2
12225 #: ../src/guestfs-actions.pod:4564
12226 msgid "guestfs_rm"
12227 msgstr ""
12228
12229 # type: verbatim
12230 #: ../src/guestfs-actions.pod:4566
12231 #, no-wrap
12232 msgid ""
12233 " int\n"
12234 " guestfs_rm (guestfs_h *g,\n"
12235 "             const char *path);\n"
12236 "\n"
12237 msgstr ""
12238
12239 # type: textblock
12240 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3337
12241 msgid "Remove the single file C<path>."
12242 msgstr ""
12243
12244 # type: =head2
12245 #: ../src/guestfs-actions.pod:4574
12246 msgid "guestfs_rm_rf"
12247 msgstr ""
12248
12249 # type: verbatim
12250 #: ../src/guestfs-actions.pod:4576
12251 #, no-wrap
12252 msgid ""
12253 " int\n"
12254 " guestfs_rm_rf (guestfs_h *g,\n"
12255 "                const char *path);\n"
12256 "\n"
12257 msgstr ""
12258
12259 # type: textblock
12260 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3343
12261 msgid ""
12262 "Remove the file or directory C<path>, recursively removing the contents if "
12263 "its a directory.  This is like the C<rm -rf> shell command."
12264 msgstr ""
12265
12266 # type: =head2
12267 #: ../src/guestfs-actions.pod:4586
12268 msgid "guestfs_rmdir"
12269 msgstr ""
12270
12271 # type: verbatim
12272 #: ../src/guestfs-actions.pod:4588
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_rmdir (guestfs_h *g,\n"
12277 "                const char *path);\n"
12278 "\n"
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3351
12283 msgid "Remove the single directory C<path>."
12284 msgstr ""
12285
12286 # type: =head2
12287 #: ../src/guestfs-actions.pod:4596
12288 msgid "guestfs_rmmountpoint"
12289 msgstr ""
12290
12291 # type: verbatim
12292 #: ../src/guestfs-actions.pod:4598
12293 #, no-wrap
12294 msgid ""
12295 " int\n"
12296 " guestfs_rmmountpoint (guestfs_h *g,\n"
12297 "                       const char *exemptpath);\n"
12298 "\n"
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4602
12303 msgid ""
12304 "This calls removes a mountpoint that was previously created with "
12305 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12306 msgstr ""
12307
12308 # type: =head2
12309 #: ../src/guestfs-actions.pod:4608
12310 msgid "guestfs_scrub_device"
12311 msgstr ""
12312
12313 # type: verbatim
12314 #: ../src/guestfs-actions.pod:4610
12315 #, no-wrap
12316 msgid ""
12317 " int\n"
12318 " guestfs_scrub_device (guestfs_h *g,\n"
12319 "                       const char *device);\n"
12320 "\n"
12321 msgstr ""
12322
12323 # type: textblock
12324 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3365
12325 msgid ""
12326 "This command writes patterns over C<device> to make data retrieval more "
12327 "difficult."
12328 msgstr ""
12329
12330 # type: textblock
12331 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4636
12332 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3368
12333 #: ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
12334 msgid ""
12335 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12336 "more details."
12337 msgstr ""
12338
12339 # type: =head2
12340 #: ../src/guestfs-actions.pod:4625
12341 msgid "guestfs_scrub_file"
12342 msgstr ""
12343
12344 # type: verbatim
12345 #: ../src/guestfs-actions.pod:4627
12346 #, no-wrap
12347 msgid ""
12348 " int\n"
12349 " guestfs_scrub_file (guestfs_h *g,\n"
12350 "                     const char *file);\n"
12351 "\n"
12352 msgstr ""
12353
12354 # type: textblock
12355 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3378
12356 msgid ""
12357 "This command writes patterns over a file to make data retrieval more "
12358 "difficult."
12359 msgstr ""
12360
12361 # type: textblock
12362 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3381
12363 msgid "The file is I<removed> after scrubbing."
12364 msgstr ""
12365
12366 # type: =head2
12367 #: ../src/guestfs-actions.pod:4641
12368 msgid "guestfs_scrub_freespace"
12369 msgstr ""
12370
12371 # type: verbatim
12372 #: ../src/guestfs-actions.pod:4643
12373 #, no-wrap
12374 msgid ""
12375 " int\n"
12376 " guestfs_scrub_freespace (guestfs_h *g,\n"
12377 "                          const char *dir);\n"
12378 "\n"
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:4647
12383 msgid ""
12384 "This command creates the directory C<dir> and then fills it with files until "
12385 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12386 "and deletes them.  The intention is to scrub any free space on the partition "
12387 "containing C<dir>."
12388 msgstr ""
12389
12390 # type: =head2
12391 #: ../src/guestfs-actions.pod:4658
12392 msgid "guestfs_set_append"
12393 msgstr ""
12394
12395 # type: verbatim
12396 #: ../src/guestfs-actions.pod:4660
12397 #, no-wrap
12398 msgid ""
12399 " int\n"
12400 " guestfs_set_append (guestfs_h *g,\n"
12401 "                     const char *append);\n"
12402 "\n"
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3405
12407 msgid ""
12408 "This function is used to add additional options to the guest kernel command "
12409 "line."
12410 msgstr ""
12411
12412 # type: textblock
12413 #: ../src/guestfs-actions.pod:4667 ../fish/guestfish-actions.pod:3408
12414 msgid ""
12415 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12416 "environment variable."
12417 msgstr ""
12418
12419 # type: textblock
12420 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3411
12421 msgid ""
12422 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12423 "(libguestfs always adds a few of its own)."
12424 msgstr ""
12425
12426 # type: =head2
12427 #: ../src/guestfs-actions.pod:4675
12428 msgid "guestfs_set_autosync"
12429 msgstr ""
12430
12431 # type: verbatim
12432 #: ../src/guestfs-actions.pod:4677
12433 #, no-wrap
12434 msgid ""
12435 " int\n"
12436 " guestfs_set_autosync (guestfs_h *g,\n"
12437 "                       int autosync);\n"
12438 "\n"
12439 msgstr ""
12440
12441 # type: textblock
12442 #: ../src/guestfs-actions.pod:4681
12443 msgid ""
12444 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12445 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12446 "the handle is closed (also if the program exits without closing handles)."
12447 msgstr ""
12448
12449 # type: textblock
12450 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3425
12451 msgid ""
12452 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12453 "disabled by default)."
12454 msgstr ""
12455
12456 # type: =head2
12457 #: ../src/guestfs-actions.pod:4691
12458 msgid "guestfs_set_direct"
12459 msgstr ""
12460
12461 # type: verbatim
12462 #: ../src/guestfs-actions.pod:4693
12463 #, no-wrap
12464 msgid ""
12465 " int\n"
12466 " guestfs_set_direct (guestfs_h *g,\n"
12467 "                     int direct);\n"
12468 "\n"
12469 msgstr ""
12470
12471 # type: textblock
12472 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3434
12473 msgid ""
12474 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12475 "passed directly through to the appliance once it is launched."
12476 msgstr ""
12477
12478 # type: textblock
12479 #: ../src/guestfs-actions.pod:4701
12480 msgid ""
12481 "One consequence of this is that log messages aren't caught by the library "
12482 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12483 "stdout."
12484 msgstr ""
12485
12486 # type: textblock
12487 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3442
12488 msgid "You probably don't want to use this unless you know what you are doing."
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3445
12493 msgid "The default is disabled."
12494 msgstr ""
12495
12496 # type: =head2
12497 #: ../src/guestfs-actions.pod:4712
12498 msgid "guestfs_set_e2label"
12499 msgstr ""
12500
12501 # type: verbatim
12502 #: ../src/guestfs-actions.pod:4714
12503 #, no-wrap
12504 msgid ""
12505 " int\n"
12506 " guestfs_set_e2label (guestfs_h *g,\n"
12507 "                      const char *device,\n"
12508 "                      const char *label);\n"
12509 "\n"
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3451
12514 msgid ""
12515 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12516 "C<label>.  Filesystem labels are limited to 16 characters."
12517 msgstr ""
12518
12519 # type: textblock
12520 #: ../src/guestfs-actions.pod:4723
12521 msgid ""
12522 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12523 "the existing label on a filesystem."
12524 msgstr ""
12525
12526 # type: =head2
12527 #: ../src/guestfs-actions.pod:4728
12528 msgid "guestfs_set_e2uuid"
12529 msgstr ""
12530
12531 # type: verbatim
12532 #: ../src/guestfs-actions.pod:4730
12533 #, no-wrap
12534 msgid ""
12535 " int\n"
12536 " guestfs_set_e2uuid (guestfs_h *g,\n"
12537 "                     const char *device,\n"
12538 "                     const char *uuid);\n"
12539 "\n"
12540 msgstr ""
12541
12542 # type: textblock
12543 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3462
12544 msgid ""
12545 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12546 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12547 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12548 msgstr ""
12549
12550 # type: textblock
12551 #: ../src/guestfs-actions.pod:4740
12552 msgid ""
12553 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12554 "the existing UUID of a filesystem."
12555 msgstr ""
12556
12557 # type: =head2
12558 #: ../src/guestfs-actions.pod:4745
12559 msgid "guestfs_set_memsize"
12560 msgstr ""
12561
12562 # type: verbatim
12563 #: ../src/guestfs-actions.pod:4747
12564 #, no-wrap
12565 msgid ""
12566 " int\n"
12567 " guestfs_set_memsize (guestfs_h *g,\n"
12568 "                      int memsize);\n"
12569 "\n"
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:4751
12574 msgid ""
12575 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12576 "This only has any effect if called before C<guestfs_launch>."
12577 msgstr ""
12578
12579 # type: textblock
12580 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3480
12581 msgid ""
12582 "You can also change this by setting the environment variable "
12583 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12584 msgstr ""
12585
12586 # type: =head2
12587 #: ../src/guestfs-actions.pod:4764
12588 msgid "guestfs_set_network"
12589 msgstr ""
12590
12591 # type: verbatim
12592 #: ../src/guestfs-actions.pod:4766
12593 #, no-wrap
12594 msgid ""
12595 " int\n"
12596 " guestfs_set_network (guestfs_h *g,\n"
12597 "                      int network);\n"
12598 "\n"
12599 msgstr ""
12600
12601 # type: textblock
12602 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3493
12603 msgid ""
12604 "If C<network> is true, then the network is enabled in the libguestfs "
12605 "appliance.  The default is false."
12606 msgstr ""
12607
12608 # type: textblock
12609 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3496
12610 msgid ""
12611 "This affects whether commands are able to access the network (see L<guestfs"
12612 "(3)/RUNNING COMMANDS>)."
12613 msgstr ""
12614
12615 # type: textblock
12616 #: ../src/guestfs-actions.pod:4776
12617 msgid ""
12618 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12619 "effect."
12620 msgstr ""
12621
12622 # type: =head2
12623 #: ../src/guestfs-actions.pod:4781
12624 msgid "guestfs_set_path"
12625 msgstr ""
12626
12627 # type: verbatim
12628 #: ../src/guestfs-actions.pod:4783
12629 #, no-wrap
12630 msgid ""
12631 " int\n"
12632 " guestfs_set_path (guestfs_h *g,\n"
12633 "                   const char *searchpath);\n"
12634 "\n"
12635 msgstr ""
12636
12637 # type: textblock
12638 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3508
12639 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12640 msgstr ""
12641
12642 # type: textblock
12643 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3510
12644 msgid ""
12645 "The default is C<$libdir/guestfs> unless overridden by setting "
12646 "C<LIBGUESTFS_PATH> environment variable."
12647 msgstr ""
12648
12649 # type: textblock
12650 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3513
12651 msgid "Setting C<path> to C<NULL> restores the default path."
12652 msgstr ""
12653
12654 # type: =head2
12655 #: ../src/guestfs-actions.pod:4796
12656 msgid "guestfs_set_qemu"
12657 msgstr ""
12658
12659 # type: verbatim
12660 #: ../src/guestfs-actions.pod:4798
12661 #, no-wrap
12662 msgid ""
12663 " int\n"
12664 " guestfs_set_qemu (guestfs_h *g,\n"
12665 "                   const char *qemu);\n"
12666 "\n"
12667 msgstr ""
12668
12669 # type: textblock
12670 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3521
12671 msgid "Set the qemu binary that we will use."
12672 msgstr ""
12673
12674 # type: textblock
12675 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3523
12676 msgid ""
12677 "The default is chosen when the library was compiled by the configure script."
12678 msgstr ""
12679
12680 # type: textblock
12681 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3526
12682 msgid ""
12683 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12684 "variable."
12685 msgstr ""
12686
12687 # type: textblock
12688 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3529
12689 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3531
12694 msgid ""
12695 "Note that you should call this function as early as possible after creating "
12696 "the handle.  This is because some pre-launch operations depend on testing "
12697 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12698 "don't retest features, and so you might see inconsistent results.  Using the "
12699 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12700 "the qemu binary at the same time as the handle is created."
12701 msgstr ""
12702
12703 # type: =head2
12704 #: ../src/guestfs-actions.pod:4822
12705 msgid "guestfs_set_recovery_proc"
12706 msgstr ""
12707
12708 # type: verbatim
12709 #: ../src/guestfs-actions.pod:4824
12710 #, no-wrap
12711 msgid ""
12712 " int\n"
12713 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12714 "                            int recoveryproc);\n"
12715 "\n"
12716 msgstr ""
12717
12718 # type: textblock
12719 #: ../src/guestfs-actions.pod:4828
12720 msgid ""
12721 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12722 "not create a recovery process.  The purpose of the recovery process is to "
12723 "stop runaway qemu processes in the case where the main program aborts "
12724 "abruptly."
12725 msgstr ""
12726
12727 # type: textblock
12728 #: ../src/guestfs-actions.pod:4833
12729 msgid ""
12730 "This only has any effect if called before C<guestfs_launch>, and the default "
12731 "is true."
12732 msgstr ""
12733
12734 # type: textblock
12735 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3553
12736 msgid ""
12737 "About the only time when you would want to disable this is if the main "
12738 "process will fork itself into the background (\"daemonize\" itself).  In "
12739 "this case the recovery process thinks that the main program has disappeared "
12740 "and so kills qemu, which is not very helpful."
12741 msgstr ""
12742
12743 # type: =head2
12744 #: ../src/guestfs-actions.pod:4844
12745 msgid "guestfs_set_selinux"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #: ../src/guestfs-actions.pod:4846
12750 #, no-wrap
12751 msgid ""
12752 " int\n"
12753 " guestfs_set_selinux (guestfs_h *g,\n"
12754 "                      int selinux);\n"
12755 "\n"
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:4850 ../fish/guestfish-actions.pod:3565
12760 msgid ""
12761 "This sets the selinux flag that is passed to the appliance at boot time.  "
12762 "The default is C<selinux=0> (disabled)."
12763 msgstr ""
12764
12765 # type: textblock
12766 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3568
12767 msgid ""
12768 "Note that if SELinux is enabled, it is always in Permissive mode "
12769 "(C<enforcing=0>)."
12770 msgstr ""
12771
12772 # type: =head2
12773 #: ../src/guestfs-actions.pod:4861
12774 msgid "guestfs_set_trace"
12775 msgstr ""
12776
12777 # type: verbatim
12778 #: ../src/guestfs-actions.pod:4863
12779 #, no-wrap
12780 msgid ""
12781 " int\n"
12782 " guestfs_set_trace (guestfs_h *g,\n"
12783 "                    int trace);\n"
12784 "\n"
12785 msgstr ""
12786
12787 # type: textblock
12788 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3580
12789 msgid ""
12790 "If the command trace flag is set to 1, then commands are printed on stderr "
12791 "before they are executed in a format which is very similar to the one used "
12792 "by guestfish.  In other words, you can run a program with this enabled, and "
12793 "you will get out a script which you can feed to guestfish to perform the "
12794 "same set of actions."
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3587
12799 msgid ""
12800 "If you want to trace C API calls into libguestfs (and other libraries) then "
12801 "possibly a better way is to use the external ltrace(1) command."
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3591
12806 msgid ""
12807 "Command traces are disabled unless the environment variable "
12808 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12809 msgstr ""
12810
12811 # type: =head2
12812 #: ../src/guestfs-actions.pod:4883
12813 msgid "guestfs_set_verbose"
12814 msgstr ""
12815
12816 # type: verbatim
12817 #: ../src/guestfs-actions.pod:4885
12818 #, no-wrap
12819 msgid ""
12820 " int\n"
12821 " guestfs_set_verbose (guestfs_h *g,\n"
12822 "                      int verbose);\n"
12823 "\n"
12824 msgstr ""
12825
12826 # type: textblock
12827 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3600
12828 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12829 msgstr ""
12830
12831 # type: textblock
12832 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3602
12833 msgid ""
12834 "Verbose messages are disabled unless the environment variable "
12835 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12836 msgstr ""
12837
12838 # type: =head2
12839 #: ../src/guestfs-actions.pod:4896
12840 msgid "guestfs_setcon"
12841 msgstr ""
12842
12843 # type: verbatim
12844 #: ../src/guestfs-actions.pod:4898
12845 #, no-wrap
12846 msgid ""
12847 " int\n"
12848 " guestfs_setcon (guestfs_h *g,\n"
12849 "                 const char *context);\n"
12850 "\n"
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3609
12855 msgid ""
12856 "This sets the SELinux security context of the daemon to the string "
12857 "C<context>."
12858 msgstr ""
12859
12860 # type: textblock
12861 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3612
12862 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12863 msgstr ""
12864
12865 # type: =head2
12866 #: ../src/guestfs-actions.pod:4909
12867 msgid "guestfs_setxattr"
12868 msgstr ""
12869
12870 # type: verbatim
12871 #: ../src/guestfs-actions.pod:4911
12872 #, no-wrap
12873 msgid ""
12874 " int\n"
12875 " guestfs_setxattr (guestfs_h *g,\n"
12876 "                   const char *xattr,\n"
12877 "                   const char *val,\n"
12878 "                   int vallen,\n"
12879 "                   const char *path);\n"
12880 "\n"
12881 msgstr ""
12882
12883 # type: textblock
12884 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3618
12885 msgid ""
12886 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12887 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12888 msgstr ""
12889
12890 # type: textblock
12891 #: ../src/guestfs-actions.pod:4922
12892 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12893 msgstr ""
12894
12895 # type: =head2
12896 #: ../src/guestfs-actions.pod:4926
12897 msgid "guestfs_sfdisk"
12898 msgstr ""
12899
12900 # type: verbatim
12901 #: ../src/guestfs-actions.pod:4928
12902 #, no-wrap
12903 msgid ""
12904 " int\n"
12905 " guestfs_sfdisk (guestfs_h *g,\n"
12906 "                 const char *device,\n"
12907 "                 int cyls,\n"
12908 "                 int heads,\n"
12909 "                 int sectors,\n"
12910 "                 char *const *lines);\n"
12911 "\n"
12912 msgstr ""
12913
12914 # type: textblock
12915 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3628
12916 msgid ""
12917 "This is a direct interface to the L<sfdisk(8)> program for creating "
12918 "partitions on block devices."
12919 msgstr ""
12920
12921 # type: textblock
12922 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3631
12923 msgid "C<device> should be a block device, for example C</dev/sda>."
12924 msgstr ""
12925
12926 # type: textblock
12927 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3633
12928 msgid ""
12929 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12930 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12931 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12932 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12933 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12934 "the kernel) cannot work out the right geometry and you will need to tell it."
12935 msgstr ""
12936
12937 # type: textblock
12938 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3641
12939 msgid ""
12940 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12941 "refer to the L<sfdisk(8)> manpage."
12942 msgstr ""
12943
12944 # type: textblock
12945 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3644
12946 msgid ""
12947 "To create a single partition occupying the whole disk, you would pass "
12948 "C<lines> as a single element list, when the single element being the string "
12949 "C<,> (comma)."
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:4956
12954 msgid ""
12955 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12956 msgstr ""
12957
12958 # type: =head2
12959 #: ../src/guestfs-actions.pod:4964
12960 msgid "guestfs_sfdiskM"
12961 msgstr ""
12962
12963 # type: verbatim
12964 #: ../src/guestfs-actions.pod:4966
12965 #, no-wrap
12966 msgid ""
12967 " int\n"
12968 " guestfs_sfdiskM (guestfs_h *g,\n"
12969 "                  const char *device,\n"
12970 "                  char *const *lines);\n"
12971 "\n"
12972 msgstr ""
12973
12974 # type: textblock
12975 #: ../src/guestfs-actions.pod:4971
12976 msgid ""
12977 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12978 "partition sizes are specified in megabytes only (rounded to the nearest "
12979 "cylinder) and you don't need to specify the cyls, heads and sectors "
12980 "parameters which were rarely if ever used anyway."
12981 msgstr ""
12982
12983 # type: textblock
12984 #: ../src/guestfs-actions.pod:4977
12985 msgid ""
12986 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12987 "C<guestfs_part_disk>"
12988 msgstr ""
12989
12990 # type: =head2
12991 #: ../src/guestfs-actions.pod:4985
12992 msgid "guestfs_sfdisk_N"
12993 msgstr ""
12994
12995 # type: verbatim
12996 #: ../src/guestfs-actions.pod:4987
12997 #, no-wrap
12998 msgid ""
12999 " int\n"
13000 " guestfs_sfdisk_N (guestfs_h *g,\n"
13001 "                   const char *device,\n"
13002 "                   int partnum,\n"
13003 "                   int cyls,\n"
13004 "                   int heads,\n"
13005 "                   int sectors,\n"
13006 "                   const char *line);\n"
13007 "\n"
13008 msgstr ""
13009
13010 # type: textblock
13011 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3674
13012 msgid ""
13013 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13014 "(note: C<n> counts from 1)."
13015 msgstr ""
13016
13017 # type: textblock
13018 #: ../src/guestfs-actions.pod:4999
13019 msgid ""
13020 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13021 "for the cyls/heads/sectors parameters."
13022 msgstr ""
13023
13024 # type: textblock
13025 #: ../src/guestfs-actions.pod:5002
13026 msgid "See also: C<guestfs_part_add>"
13027 msgstr ""
13028
13029 # type: =head2
13030 #: ../src/guestfs-actions.pod:5009
13031 msgid "guestfs_sfdisk_disk_geometry"
13032 msgstr ""
13033
13034 # type: verbatim
13035 #: ../src/guestfs-actions.pod:5011
13036 #, no-wrap
13037 msgid ""
13038 " char *\n"
13039 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13040 "                               const char *device);\n"
13041 "\n"
13042 msgstr ""
13043
13044 # type: textblock
13045 #: ../src/guestfs-actions.pod:5015
13046 msgid ""
13047 "This displays the disk geometry of C<device> read from the partition table.  "
13048 "Especially in the case where the underlying block device has been resized, "
13049 "this can be different from the kernel's idea of the geometry (see "
13050 "C<guestfs_sfdisk_kernel_geometry>)."
13051 msgstr ""
13052
13053 # type: textblock
13054 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034
13055 #: ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
13056 msgid "The result is in human-readable format, and not designed to be parsed."
13057 msgstr ""
13058
13059 # type: =head2
13060 #: ../src/guestfs-actions.pod:5026
13061 msgid "guestfs_sfdisk_kernel_geometry"
13062 msgstr ""
13063
13064 # type: verbatim
13065 #: ../src/guestfs-actions.pod:5028
13066 #, no-wrap
13067 msgid ""
13068 " char *\n"
13069 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13070 "                                 const char *device);\n"
13071 "\n"
13072 msgstr ""
13073
13074 # type: textblock
13075 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3701
13076 msgid "This displays the kernel's idea of the geometry of C<device>."
13077 msgstr ""
13078
13079 # type: =head2
13080 #: ../src/guestfs-actions.pod:5040
13081 msgid "guestfs_sfdisk_l"
13082 msgstr ""
13083
13084 # type: verbatim
13085 #: ../src/guestfs-actions.pod:5042
13086 #, no-wrap
13087 msgid ""
13088 " char *\n"
13089 " guestfs_sfdisk_l (guestfs_h *g,\n"
13090 "                   const char *device);\n"
13091 "\n"
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3710
13096 msgid ""
13097 "This displays the partition table on C<device>, in the human-readable output "
13098 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13099 msgstr ""
13100
13101 # type: textblock
13102 #: ../src/guestfs-actions.pod:5050
13103 msgid "See also: C<guestfs_part_list>"
13104 msgstr ""
13105
13106 # type: =head2
13107 #: ../src/guestfs-actions.pod:5055
13108 msgid "guestfs_sh"
13109 msgstr ""
13110
13111 # type: verbatim
13112 #: ../src/guestfs-actions.pod:5057
13113 #, no-wrap
13114 msgid ""
13115 " char *\n"
13116 " guestfs_sh (guestfs_h *g,\n"
13117 "             const char *command);\n"
13118 "\n"
13119 msgstr ""
13120
13121 # type: textblock
13122 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3720
13123 msgid ""
13124 "This call runs a command from the guest filesystem via the guest's C</bin/"
13125 "sh>."
13126 msgstr ""
13127
13128 # type: textblock
13129 #: ../src/guestfs-actions.pod:5064
13130 msgid "This is like C<guestfs_command>, but passes the command to:"
13131 msgstr ""
13132
13133 # type: verbatim
13134 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3725
13135 #, no-wrap
13136 msgid ""
13137 " /bin/sh -c \"command\"\n"
13138 "\n"
13139 msgstr ""
13140
13141 # type: textblock
13142 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3727
13143 msgid ""
13144 "Depending on the guest's shell, this usually results in wildcards being "
13145 "expanded, shell expressions being interpolated and so on."
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5072
13150 msgid "All the provisos about C<guestfs_command> apply to this call."
13151 msgstr ""
13152
13153 # type: =head2
13154 #: ../src/guestfs-actions.pod:5077
13155 msgid "guestfs_sh_lines"
13156 msgstr ""
13157
13158 # type: verbatim
13159 #: ../src/guestfs-actions.pod:5079
13160 #, no-wrap
13161 msgid ""
13162 " char **\n"
13163 " guestfs_sh_lines (guestfs_h *g,\n"
13164 "                   const char *command);\n"
13165 "\n"
13166 msgstr ""
13167
13168 # type: textblock
13169 #: ../src/guestfs-actions.pod:5083
13170 msgid ""
13171 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13172 "lines."
13173 msgstr ""
13174
13175 # type: textblock
13176 #: ../src/guestfs-actions.pod:5086
13177 msgid "See also: C<guestfs_command_lines>"
13178 msgstr ""
13179
13180 # type: =head2
13181 #: ../src/guestfs-actions.pod:5092
13182 msgid "guestfs_sleep"
13183 msgstr ""
13184
13185 # type: verbatim
13186 #: ../src/guestfs-actions.pod:5094
13187 #, no-wrap
13188 msgid ""
13189 " int\n"
13190 " guestfs_sleep (guestfs_h *g,\n"
13191 "                int secs);\n"
13192 "\n"
13193 msgstr ""
13194
13195 # type: textblock
13196 #: ../src/guestfs-actions.pod:5098 ../fish/guestfish-actions.pod:3746
13197 msgid "Sleep for C<secs> seconds."
13198 msgstr ""
13199
13200 # type: =head2
13201 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-structs.pod:109
13202 msgid "guestfs_stat"
13203 msgstr ""
13204
13205 # type: verbatim
13206 #: ../src/guestfs-actions.pod:5104
13207 #, no-wrap
13208 msgid ""
13209 " struct guestfs_stat *\n"
13210 " guestfs_stat (guestfs_h *g,\n"
13211 "               const char *path);\n"
13212 "\n"
13213 msgstr ""
13214
13215 # type: textblock
13216 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3754
13217 msgid "This is the same as the C<stat(2)> system call."
13218 msgstr ""
13219
13220 # type: =head2
13221 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-structs.pod:135
13222 msgid "guestfs_statvfs"
13223 msgstr ""
13224
13225 # type: verbatim
13226 #: ../src/guestfs-actions.pod:5118
13227 #, no-wrap
13228 msgid ""
13229 " struct guestfs_statvfs *\n"
13230 " guestfs_statvfs (guestfs_h *g,\n"
13231 "                  const char *path);\n"
13232 "\n"
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3760
13237 msgid ""
13238 "Returns file system statistics for any mounted file system.  C<path> should "
13239 "be a file or directory in the mounted file system (typically it is the mount "
13240 "point itself, but it doesn't need to be)."
13241 msgstr ""
13242
13243 # type: textblock
13244 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3764
13245 msgid "This is the same as the C<statvfs(2)> system call."
13246 msgstr ""
13247
13248 # type: textblock
13249 #: ../src/guestfs-actions.pod:5128
13250 msgid ""
13251 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13252 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13253 msgstr ""
13254
13255 # type: =head2
13256 #: ../src/guestfs-actions.pod:5132
13257 msgid "guestfs_strings"
13258 msgstr ""
13259
13260 # type: verbatim
13261 #: ../src/guestfs-actions.pod:5134
13262 #, no-wrap
13263 msgid ""
13264 " char **\n"
13265 " guestfs_strings (guestfs_h *g,\n"
13266 "                  const char *path);\n"
13267 "\n"
13268 msgstr ""
13269
13270 # type: textblock
13271 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3770
13272 msgid ""
13273 "This runs the L<strings(1)> command on a file and returns the list of "
13274 "printable strings found."
13275 msgstr ""
13276
13277 # type: =head2
13278 #: ../src/guestfs-actions.pod:5148
13279 msgid "guestfs_strings_e"
13280 msgstr ""
13281
13282 # type: verbatim
13283 #: ../src/guestfs-actions.pod:5150
13284 #, no-wrap
13285 msgid ""
13286 " char **\n"
13287 " guestfs_strings_e (guestfs_h *g,\n"
13288 "                    const char *encoding,\n"
13289 "                    const char *path);\n"
13290 "\n"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5155
13295 msgid ""
13296 "This is like the C<guestfs_strings> command, but allows you to specify the "
13297 "encoding of strings that are looked for in the source file C<path>."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3784
13302 msgid "Allowed encodings are:"
13303 msgstr ""
13304
13305 # type: =item
13306 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3788
13307 msgid "s"
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5165
13312 msgid ""
13313 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13314 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13315 msgstr ""
13316
13317 # type: =item
13318 #: ../src/guestfs-actions.pod:5168 ../fish/guestfish-actions.pod:3793
13319 msgid "S"
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3795
13324 msgid "Single 8-bit-byte characters."
13325 msgstr ""
13326
13327 # type: =item
13328 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3797
13329 msgid "b"
13330 msgstr ""
13331
13332 # type: textblock
13333 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3799
13334 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13335 msgstr ""
13336
13337 # type: =item
13338 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3802
13339 msgid "l (lower case letter L)"
13340 msgstr ""
13341
13342 # type: textblock
13343 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3804
13344 msgid ""
13345 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13346 "examining binaries in Windows guests."
13347 msgstr ""
13348
13349 # type: =item
13350 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3807
13351 msgid "B"
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:3809
13356 msgid "32-bit big endian such as UCS-4BE."
13357 msgstr ""
13358
13359 # type: =item
13360 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3811
13361 msgid "L"
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3813
13366 msgid "32-bit little endian such as UCS-4LE."
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3817
13371 msgid "The returned strings are transcoded to UTF-8."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5201
13376 msgid "guestfs_swapoff_device"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5203
13381 #, no-wrap
13382 msgid ""
13383 " int\n"
13384 " guestfs_swapoff_device (guestfs_h *g,\n"
13385 "                         const char *device);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5207
13391 msgid ""
13392 "This command disables the libguestfs appliance swap device or partition "
13393 "named C<device>.  See C<guestfs_swapon_device>."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5213
13398 msgid "guestfs_swapoff_file"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5215
13403 #, no-wrap
13404 msgid ""
13405 " int\n"
13406 " guestfs_swapoff_file (guestfs_h *g,\n"
13407 "                       const char *file);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3834
13413 msgid "This command disables the libguestfs appliance swap on file."
13414 msgstr ""
13415
13416 # type: =head2
13417 #: ../src/guestfs-actions.pod:5223
13418 msgid "guestfs_swapoff_label"
13419 msgstr ""
13420
13421 # type: verbatim
13422 #: ../src/guestfs-actions.pod:5225
13423 #, no-wrap
13424 msgid ""
13425 " int\n"
13426 " guestfs_swapoff_label (guestfs_h *g,\n"
13427 "                        const char *label);\n"
13428 "\n"
13429 msgstr ""
13430
13431 # type: textblock
13432 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3840
13433 msgid ""
13434 "This command disables the libguestfs appliance swap on labeled swap "
13435 "partition."
13436 msgstr ""
13437
13438 # type: =head2
13439 #: ../src/guestfs-actions.pod:5234
13440 msgid "guestfs_swapoff_uuid"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #: ../src/guestfs-actions.pod:5236
13445 #, no-wrap
13446 msgid ""
13447 " int\n"
13448 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13449 "                       const char *uuid);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #: ../src/guestfs-actions.pod:5240 ../fish/guestfish-actions.pod:3847
13455 msgid ""
13456 "This command disables the libguestfs appliance swap partition with the given "
13457 "UUID."
13458 msgstr ""
13459
13460 # type: =head2
13461 #: ../src/guestfs-actions.pod:5245
13462 msgid "guestfs_swapon_device"
13463 msgstr ""
13464
13465 # type: verbatim
13466 #: ../src/guestfs-actions.pod:5247
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_swapon_device (guestfs_h *g,\n"
13471 "                        const char *device);\n"
13472 "\n"
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5251
13477 msgid ""
13478 "This command enables the libguestfs appliance to use the swap device or "
13479 "partition named C<device>.  The increased memory is made available for all "
13480 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3859
13485 msgid ""
13486 "Note that you should not swap to existing guest swap partitions unless you "
13487 "know what you are doing.  They may contain hibernation information, or other "
13488 "information that the guest doesn't want you to trash.  You also risk leaking "
13489 "information about the host to the guest this way.  Instead, attach a new "
13490 "host device to the guest and swap on that."
13491 msgstr ""
13492
13493 # type: =head2
13494 #: ../src/guestfs-actions.pod:5265
13495 msgid "guestfs_swapon_file"
13496 msgstr ""
13497
13498 # type: verbatim
13499 #: ../src/guestfs-actions.pod:5267
13500 #, no-wrap
13501 msgid ""
13502 " int\n"
13503 " guestfs_swapon_file (guestfs_h *g,\n"
13504 "                      const char *file);\n"
13505 "\n"
13506 msgstr ""
13507
13508 # type: textblock
13509 #: ../src/guestfs-actions.pod:5271
13510 msgid ""
13511 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13512 "notes."
13513 msgstr ""
13514
13515 # type: =head2
13516 #: ../src/guestfs-actions.pod:5276
13517 msgid "guestfs_swapon_label"
13518 msgstr ""
13519
13520 # type: verbatim
13521 #: ../src/guestfs-actions.pod:5278
13522 #, no-wrap
13523 msgid ""
13524 " int\n"
13525 " guestfs_swapon_label (guestfs_h *g,\n"
13526 "                       const char *label);\n"
13527 "\n"
13528 msgstr ""
13529
13530 # type: textblock
13531 #: ../src/guestfs-actions.pod:5282
13532 msgid ""
13533 "This command enables swap to a labeled swap partition.  See "
13534 "C<guestfs_swapon_device> for other notes."
13535 msgstr ""
13536
13537 # type: =head2
13538 #: ../src/guestfs-actions.pod:5287
13539 msgid "guestfs_swapon_uuid"
13540 msgstr ""
13541
13542 # type: verbatim
13543 #: ../src/guestfs-actions.pod:5289
13544 #, no-wrap
13545 msgid ""
13546 " int\n"
13547 " guestfs_swapon_uuid (guestfs_h *g,\n"
13548 "                      const char *uuid);\n"
13549 "\n"
13550 msgstr ""
13551
13552 # type: textblock
13553 #: ../src/guestfs-actions.pod:5293
13554 msgid ""
13555 "This command enables swap to a swap partition with the given UUID.  See "
13556 "C<guestfs_swapon_device> for other notes."
13557 msgstr ""
13558
13559 # type: =head2
13560 #: ../src/guestfs-actions.pod:5298
13561 msgid "guestfs_sync"
13562 msgstr ""
13563
13564 # type: verbatim
13565 #: ../src/guestfs-actions.pod:5300
13566 #, no-wrap
13567 msgid ""
13568 " int\n"
13569 " guestfs_sync (guestfs_h *g);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3891
13575 msgid ""
13576 "This syncs the disk, so that any writes are flushed through to the "
13577 "underlying disk image."
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:3894
13582 msgid ""
13583 "You should always call this if you have modified a disk image, before "
13584 "closing the handle."
13585 msgstr ""
13586
13587 # type: =head2
13588 #: ../src/guestfs-actions.pod:5311
13589 msgid "guestfs_tail"
13590 msgstr ""
13591
13592 # type: verbatim
13593 #: ../src/guestfs-actions.pod:5313
13594 #, no-wrap
13595 msgid ""
13596 " char **\n"
13597 " guestfs_tail (guestfs_h *g,\n"
13598 "               const char *path);\n"
13599 "\n"
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5317 ../fish/guestfish-actions.pod:3901
13604 msgid ""
13605 "This command returns up to the last 10 lines of a file as a list of strings."
13606 msgstr ""
13607
13608 # type: =head2
13609 #: ../src/guestfs-actions.pod:5327
13610 msgid "guestfs_tail_n"
13611 msgstr ""
13612
13613 # type: verbatim
13614 #: ../src/guestfs-actions.pod:5329
13615 #, no-wrap
13616 msgid ""
13617 " char **\n"
13618 " guestfs_tail_n (guestfs_h *g,\n"
13619 "                 int nrlines,\n"
13620 "                 const char *path);\n"
13621 "\n"
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3911
13626 msgid ""
13627 "If the parameter C<nrlines> is a positive number, this returns the last "
13628 "C<nrlines> lines of the file C<path>."
13629 msgstr ""
13630
13631 # type: textblock
13632 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3914
13633 msgid ""
13634 "If the parameter C<nrlines> is a negative number, this returns lines from "
13635 "the file C<path>, starting with the C<-nrlines>th line."
13636 msgstr ""
13637
13638 # type: =head2
13639 #: ../src/guestfs-actions.pod:5349
13640 msgid "guestfs_tar_in"
13641 msgstr ""
13642
13643 # type: verbatim
13644 #: ../src/guestfs-actions.pod:5351
13645 #, no-wrap
13646 msgid ""
13647 " int\n"
13648 " guestfs_tar_in (guestfs_h *g,\n"
13649 "                 const char *tarfile,\n"
13650 "                 const char *directory);\n"
13651 "\n"
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3926
13656 msgid ""
13657 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13658 "tar file) into C<directory>."
13659 msgstr ""
13660
13661 # type: textblock
13662 #: ../src/guestfs-actions.pod:5359
13663 msgid ""
13664 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13665 msgstr ""
13666
13667 # type: =head2
13668 #: ../src/guestfs-actions.pod:5364
13669 msgid "guestfs_tar_out"
13670 msgstr ""
13671
13672 # type: verbatim
13673 #: ../src/guestfs-actions.pod:5366
13674 #, no-wrap
13675 msgid ""
13676 " int\n"
13677 " guestfs_tar_out (guestfs_h *g,\n"
13678 "                  const char *directory,\n"
13679 "                  const char *tarfile);\n"
13680 "\n"
13681 msgstr ""
13682
13683 # type: textblock
13684 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3938
13685 msgid ""
13686 "This command packs the contents of C<directory> and downloads it to local "
13687 "file C<tarfile>."
13688 msgstr ""
13689
13690 # type: textblock
13691 #: ../src/guestfs-actions.pod:5374
13692 msgid ""
13693 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13694 "C<guestfs_txz_out>."
13695 msgstr ""
13696
13697 # type: =head2
13698 #: ../src/guestfs-actions.pod:5379
13699 msgid "guestfs_tgz_in"
13700 msgstr ""
13701
13702 # type: verbatim
13703 #: ../src/guestfs-actions.pod:5381
13704 #, no-wrap
13705 msgid ""
13706 " int\n"
13707 " guestfs_tgz_in (guestfs_h *g,\n"
13708 "                 const char *tarball,\n"
13709 "                 const char *directory);\n"
13710 "\n"
13711 msgstr ""
13712
13713 # type: textblock
13714 #: ../src/guestfs-actions.pod:5386 ../fish/guestfish-actions.pod:3950
13715 msgid ""
13716 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13717 "tar file) into C<directory>."
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-actions.pod:5389
13722 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13723 msgstr ""
13724
13725 # type: =head2
13726 #: ../src/guestfs-actions.pod:5393
13727 msgid "guestfs_tgz_out"
13728 msgstr ""
13729
13730 # type: verbatim
13731 #: ../src/guestfs-actions.pod:5395
13732 #, no-wrap
13733 msgid ""
13734 " int\n"
13735 " guestfs_tgz_out (guestfs_h *g,\n"
13736 "                  const char *directory,\n"
13737 "                  const char *tarball);\n"
13738 "\n"
13739 msgstr ""
13740
13741 # type: textblock
13742 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3961
13743 msgid ""
13744 "This command packs the contents of C<directory> and downloads it to local "
13745 "file C<tarball>."
13746 msgstr ""
13747
13748 # type: textblock
13749 #: ../src/guestfs-actions.pod:5403
13750 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13751 msgstr ""
13752
13753 # type: =head2
13754 #: ../src/guestfs-actions.pod:5407
13755 msgid "guestfs_touch"
13756 msgstr ""
13757
13758 # type: verbatim
13759 #: ../src/guestfs-actions.pod:5409
13760 #, no-wrap
13761 msgid ""
13762 " int\n"
13763 " guestfs_touch (guestfs_h *g,\n"
13764 "                const char *path);\n"
13765 "\n"
13766 msgstr ""
13767
13768 # type: textblock
13769 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3972
13770 msgid ""
13771 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13772 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13773 "length file."
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3976
13778 msgid ""
13779 "This command only works on regular files, and will fail on other file types "
13780 "such as directories, symbolic links, block special etc."
13781 msgstr ""
13782
13783 # type: =head2
13784 #: ../src/guestfs-actions.pod:5422
13785 msgid "guestfs_truncate"
13786 msgstr ""
13787
13788 # type: verbatim
13789 #: ../src/guestfs-actions.pod:5424
13790 #, no-wrap
13791 msgid ""
13792 " int\n"
13793 " guestfs_truncate (guestfs_h *g,\n"
13794 "                   const char *path);\n"
13795 "\n"
13796 msgstr ""
13797
13798 # type: textblock
13799 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3983
13800 msgid ""
13801 "This command truncates C<path> to a zero-length file.  The file must exist "
13802 "already."
13803 msgstr ""
13804
13805 # type: =head2
13806 #: ../src/guestfs-actions.pod:5433
13807 msgid "guestfs_truncate_size"
13808 msgstr ""
13809
13810 # type: verbatim
13811 #: ../src/guestfs-actions.pod:5435
13812 #, no-wrap
13813 msgid ""
13814 " int\n"
13815 " guestfs_truncate_size (guestfs_h *g,\n"
13816 "                        const char *path,\n"
13817 "                        int64_t size);\n"
13818 "\n"
13819 msgstr ""
13820
13821 # type: textblock
13822 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3990
13823 msgid ""
13824 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13825 "already."
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5443
13830 msgid ""
13831 "If the current file size is less than C<size> then the file is extended to "
13832 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13833 "blocks are not allocated for the file until you write to it).  To create a "
13834 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13835 msgstr ""
13836
13837 # type: =head2
13838 #: ../src/guestfs-actions.pod:5451
13839 msgid "guestfs_tune2fs_l"
13840 msgstr ""
13841
13842 # type: verbatim
13843 #: ../src/guestfs-actions.pod:5453
13844 #, no-wrap
13845 msgid ""
13846 " char **\n"
13847 " guestfs_tune2fs_l (guestfs_h *g,\n"
13848 "                    const char *device);\n"
13849 "\n"
13850 msgstr ""
13851
13852 # type: textblock
13853 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:4003
13854 msgid ""
13855 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13856 "C<device>."
13857 msgstr ""
13858
13859 # type: textblock
13860 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:4006
13861 msgid ""
13862 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13863 "for more details.  The list of fields returned isn't clearly defined, and "
13864 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13865 "and the filesystem itself."
13866 msgstr ""
13867
13868 # type: =head2
13869 #: ../src/guestfs-actions.pod:5471
13870 msgid "guestfs_txz_in"
13871 msgstr ""
13872
13873 # type: verbatim
13874 #: ../src/guestfs-actions.pod:5473
13875 #, no-wrap
13876 msgid ""
13877 " int\n"
13878 " guestfs_txz_in (guestfs_h *g,\n"
13879 "                 const char *tarball,\n"
13880 "                 const char *directory);\n"
13881 "\n"
13882 msgstr ""
13883
13884 # type: textblock
13885 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4015
13886 msgid ""
13887 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13888 "tar file) into C<directory>."
13889 msgstr ""
13890
13891 # type: =head2
13892 #: ../src/guestfs-actions.pod:5483
13893 msgid "guestfs_txz_out"
13894 msgstr ""
13895
13896 # type: verbatim
13897 #: ../src/guestfs-actions.pod:5485
13898 #, no-wrap
13899 msgid ""
13900 " int\n"
13901 " guestfs_txz_out (guestfs_h *g,\n"
13902 "                  const char *directory,\n"
13903 "                  const char *tarball);\n"
13904 "\n"
13905 msgstr ""
13906
13907 # type: textblock
13908 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:4024
13909 msgid ""
13910 "This command packs the contents of C<directory> and downloads it to local "
13911 "file C<tarball> (as an xz compressed tar archive)."
13912 msgstr ""
13913
13914 # type: =head2
13915 #: ../src/guestfs-actions.pod:5495
13916 msgid "guestfs_umask"
13917 msgstr ""
13918
13919 # type: verbatim
13920 #: ../src/guestfs-actions.pod:5497
13921 #, no-wrap
13922 msgid ""
13923 " int\n"
13924 " guestfs_umask (guestfs_h *g,\n"
13925 "                int mask);\n"
13926 "\n"
13927 msgstr ""
13928
13929 # type: textblock
13930 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:4033
13931 msgid ""
13932 "This function sets the mask used for creating new files and device nodes to "
13933 "C<mask & 0777>."
13934 msgstr ""
13935
13936 # type: textblock
13937 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:4036
13938 msgid ""
13939 "Typical umask values would be C<022> which creates new files with "
13940 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13941 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13942 msgstr ""
13943
13944 # type: textblock
13945 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4041
13946 msgid ""
13947 "The default umask is C<022>.  This is important because it means that "
13948 "directories and device nodes will be created with C<0644> or C<0755> mode "
13949 "even if you specify C<0777>."
13950 msgstr ""
13951
13952 # type: textblock
13953 #: ../src/guestfs-actions.pod:5513
13954 msgid ""
13955 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13956 "C<guestfs_mkdir>."
13957 msgstr ""
13958
13959 # type: textblock
13960 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:4048
13961 msgid "This call returns the previous umask."
13962 msgstr ""
13963
13964 # type: =head2
13965 #: ../src/guestfs-actions.pod:5520
13966 msgid "guestfs_umount"
13967 msgstr ""
13968
13969 # type: verbatim
13970 #: ../src/guestfs-actions.pod:5522
13971 #, no-wrap
13972 msgid ""
13973 " int\n"
13974 " guestfs_umount (guestfs_h *g,\n"
13975 "                 const char *pathordevice);\n"
13976 "\n"
13977 msgstr ""
13978
13979 # type: textblock
13980 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:4056
13981 msgid ""
13982 "This unmounts the given filesystem.  The filesystem may be specified either "
13983 "by its mountpoint (path) or the device which contains the filesystem."
13984 msgstr ""
13985
13986 # type: =head2
13987 #: ../src/guestfs-actions.pod:5532
13988 msgid "guestfs_umount_all"
13989 msgstr ""
13990
13991 # type: verbatim
13992 #: ../src/guestfs-actions.pod:5534
13993 #, no-wrap
13994 msgid ""
13995 " int\n"
13996 " guestfs_umount_all (guestfs_h *g);\n"
13997 "\n"
13998 msgstr ""
13999
14000 # type: textblock
14001 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:4066
14002 msgid "This unmounts all mounted filesystems."
14003 msgstr ""
14004
14005 # type: textblock
14006 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:4068
14007 msgid "Some internal mounts are not unmounted by this call."
14008 msgstr ""
14009
14010 # type: =head2
14011 #: ../src/guestfs-actions.pod:5543
14012 msgid "guestfs_upload"
14013 msgstr ""
14014
14015 # type: verbatim
14016 #: ../src/guestfs-actions.pod:5545
14017 #, no-wrap
14018 msgid ""
14019 " int\n"
14020 " guestfs_upload (guestfs_h *g,\n"
14021 "                 const char *filename,\n"
14022 "                 const char *remotefilename);\n"
14023 "\n"
14024 msgstr ""
14025
14026 # type: textblock
14027 #: ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5567
14028 #: ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
14029 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14030 msgstr ""
14031
14032 # type: textblock
14033 #: ../src/guestfs-actions.pod:5555
14034 msgid "See also C<guestfs_download>."
14035 msgstr ""
14036
14037 # type: =head2
14038 #: ../src/guestfs-actions.pod:5559
14039 msgid "guestfs_upload_offset"
14040 msgstr ""
14041
14042 # type: verbatim
14043 #: ../src/guestfs-actions.pod:5561
14044 #, no-wrap
14045 msgid ""
14046 " int\n"
14047 " guestfs_upload_offset (guestfs_h *g,\n"
14048 "                        const char *filename,\n"
14049 "                        const char *remotefilename,\n"
14050 "                        int64_t offset);\n"
14051 "\n"
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4090
14056 msgid ""
14057 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14058 "The intention is to overwrite parts of existing files or devices, although "
14059 "if a non-existant file is specified then it is created with a \"hole\" "
14060 "before C<offset>.  The size of the data written is implicit in the size of "
14061 "the source C<filename>."
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5577
14066 msgid ""
14067 "Note that there is no limit on the amount of data that can be uploaded with "
14068 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14069 "full amount unless an error occurs."
14070 msgstr ""
14071
14072 # type: textblock
14073 #: ../src/guestfs-actions.pod:5582
14074 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14075 msgstr ""
14076
14077 # type: =head2
14078 #: ../src/guestfs-actions.pod:5586
14079 msgid "guestfs_utimens"
14080 msgstr ""
14081
14082 # type: verbatim
14083 #: ../src/guestfs-actions.pod:5588
14084 #, no-wrap
14085 msgid ""
14086 " int\n"
14087 " guestfs_utimens (guestfs_h *g,\n"
14088 "                  const char *path,\n"
14089 "                  int64_t atsecs,\n"
14090 "                  int64_t atnsecs,\n"
14091 "                  int64_t mtsecs,\n"
14092 "                  int64_t mtnsecs);\n"
14093 "\n"
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:4110
14098 msgid "This command sets the timestamps of a file with nanosecond precision."
14099 msgstr ""
14100
14101 # type: textblock
14102 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4113
14103 msgid ""
14104 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14105 "from the epoch."
14106 msgstr ""
14107
14108 # type: textblock
14109 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4116
14110 msgid ""
14111 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14112 "nanoseconds from the epoch."
14113 msgstr ""
14114
14115 # type: textblock
14116 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:4119
14117 msgid ""
14118 "If the C<*nsecs> field contains the special value C<-1> then the "
14119 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14120 "ignored in this case)."
14121 msgstr ""
14122
14123 # type: textblock
14124 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:4123
14125 msgid ""
14126 "If the C<*nsecs> field contains the special value C<-2> then the "
14127 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14128 "in this case)."
14129 msgstr ""
14130
14131 # type: =head2
14132 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-structs.pod:175
14133 msgid "guestfs_version"
14134 msgstr ""
14135
14136 # type: verbatim
14137 #: ../src/guestfs-actions.pod:5617
14138 #, no-wrap
14139 msgid ""
14140 " struct guestfs_version *\n"
14141 " guestfs_version (guestfs_h *g);\n"
14142 "\n"
14143 msgstr ""
14144
14145 # type: textblock
14146 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:4131
14147 msgid ""
14148 "Return the libguestfs version number that the program is linked against."
14149 msgstr ""
14150
14151 # type: textblock
14152 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:4134
14153 msgid ""
14154 "Note that because of dynamic linking this is not necessarily the version of "
14155 "libguestfs that you compiled against.  You can compile the program, and then "
14156 "at runtime dynamically link against a completely different C<libguestfs.so> "
14157 "library."
14158 msgstr ""
14159
14160 # type: textblock
14161 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:4139
14162 msgid ""
14163 "This call was added in version C<1.0.58>.  In previous versions of "
14164 "libguestfs there was no way to get the version number.  From C code you can "
14165 "use dynamic linker functions to find out if this symbol exists (if it "
14166 "doesn't, then it's an earlier version)."
14167 msgstr ""
14168
14169 # type: textblock
14170 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:4145
14171 msgid ""
14172 "The call returns a structure with four elements.  The first three (C<major>, "
14173 "C<minor> and C<release>) are numbers and correspond to the usual version "
14174 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14175 "but may be used for distro-specific information."
14176 msgstr ""
14177
14178 # type: textblock
14179 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:4151
14180 msgid ""
14181 "To construct the original version string: C<$major.$minor.$release$extra>"
14182 msgstr ""
14183
14184 # type: textblock
14185 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4154
14186 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14187 msgstr ""
14188
14189 # type: textblock
14190 #: ../src/guestfs-actions.pod:5645
14191 msgid ""
14192 "I<Note:> Don't use this call to test for availability of features.  In "
14193 "enterprise distributions we backport features from later versions into "
14194 "earlier versions, making this an unreliable way to test for features.  Use "
14195 "C<guestfs_available> instead."
14196 msgstr ""
14197
14198 # type: textblock
14199 #: ../src/guestfs-actions.pod:5651
14200 msgid ""
14201 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14202 "error.  I<The caller must call C<guestfs_free_version> after use>."
14203 msgstr ""
14204
14205 # type: =head2
14206 #: ../src/guestfs-actions.pod:5655
14207 msgid "guestfs_vfs_label"
14208 msgstr ""
14209
14210 # type: verbatim
14211 #: ../src/guestfs-actions.pod:5657
14212 #, no-wrap
14213 msgid ""
14214 " char *\n"
14215 " guestfs_vfs_label (guestfs_h *g,\n"
14216 "                    const char *device);\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: textblock
14221 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:4166
14222 msgid "This returns the filesystem label of the filesystem on C<device>."
14223 msgstr ""
14224
14225 # type: textblock
14226 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4169
14227 msgid "If the filesystem is unlabeled, this returns the empty string."
14228 msgstr ""
14229
14230 # type: textblock
14231 #: ../src/guestfs-actions.pod:5666
14232 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14233 msgstr ""
14234
14235 # type: =head2
14236 #: ../src/guestfs-actions.pod:5671
14237 msgid "guestfs_vfs_type"
14238 msgstr ""
14239
14240 # type: verbatim
14241 #: ../src/guestfs-actions.pod:5673
14242 #, no-wrap
14243 msgid ""
14244 " char *\n"
14245 " guestfs_vfs_type (guestfs_h *g,\n"
14246 "                   const char *device);\n"
14247 "\n"
14248 msgstr ""
14249
14250 # type: textblock
14251 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:4177
14252 msgid ""
14253 "This command gets the filesystem type corresponding to the filesystem on "
14254 "C<device>."
14255 msgstr ""
14256
14257 # type: textblock
14258 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4180
14259 msgid ""
14260 "For most filesystems, the result is the name of the Linux VFS module which "
14261 "would be used to mount this filesystem if you mounted it without specifying "
14262 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14263 msgstr ""
14264
14265 # type: =head2
14266 #: ../src/guestfs-actions.pod:5688
14267 msgid "guestfs_vfs_uuid"
14268 msgstr ""
14269
14270 # type: verbatim
14271 #: ../src/guestfs-actions.pod:5690
14272 #, no-wrap
14273 msgid ""
14274 " char *\n"
14275 " guestfs_vfs_uuid (guestfs_h *g,\n"
14276 "                   const char *device);\n"
14277 "\n"
14278 msgstr ""
14279
14280 # type: textblock
14281 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:4189
14282 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14283 msgstr ""
14284
14285 # type: textblock
14286 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4192
14287 msgid "If the filesystem does not have a UUID, this returns the empty string."
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:5699
14292 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14293 msgstr ""
14294
14295 # type: =head2
14296 #: ../src/guestfs-actions.pod:5704
14297 msgid "guestfs_vg_activate"
14298 msgstr ""
14299
14300 # type: verbatim
14301 #: ../src/guestfs-actions.pod:5706
14302 #, no-wrap
14303 msgid ""
14304 " int\n"
14305 " guestfs_vg_activate (guestfs_h *g,\n"
14306 "                      int activate,\n"
14307 "                      char *const *volgroups);\n"
14308 "\n"
14309 msgstr ""
14310
14311 # type: textblock
14312 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:4200
14313 msgid ""
14314 "This command activates or (if C<activate> is false) deactivates all logical "
14315 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14316 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14317 "deactivated, then those devices disappear."
14318 msgstr ""
14319
14320 # type: textblock
14321 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:4206
14322 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14323 msgstr ""
14324
14325 # type: textblock
14326 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:4208
14327 msgid ""
14328 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14329 "activated or deactivated."
14330 msgstr ""
14331
14332 # type: =head2
14333 #: ../src/guestfs-actions.pod:5724
14334 msgid "guestfs_vg_activate_all"
14335 msgstr ""
14336
14337 # type: verbatim
14338 #: ../src/guestfs-actions.pod:5726
14339 #, no-wrap
14340 msgid ""
14341 " int\n"
14342 " guestfs_vg_activate_all (guestfs_h *g,\n"
14343 "                          int activate);\n"
14344 "\n"
14345 msgstr ""
14346
14347 # type: textblock
14348 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:4215
14349 msgid ""
14350 "This command activates or (if C<activate> is false) deactivates all logical "
14351 "volumes in all volume groups.  If activated, then they are made known to the "
14352 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14353 "those devices disappear."
14354 msgstr ""
14355
14356 # type: textblock
14357 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4221
14358 msgid "This command is the same as running C<vgchange -a y|n>"
14359 msgstr ""
14360
14361 # type: =head2
14362 #: ../src/guestfs-actions.pod:5740
14363 msgid "guestfs_vgcreate"
14364 msgstr ""
14365
14366 # type: verbatim
14367 #: ../src/guestfs-actions.pod:5742
14368 #, no-wrap
14369 msgid ""
14370 " int\n"
14371 " guestfs_vgcreate (guestfs_h *g,\n"
14372 "                   const char *volgroup,\n"
14373 "                   char *const *physvols);\n"
14374 "\n"
14375 msgstr ""
14376
14377 # type: textblock
14378 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:4227
14379 msgid ""
14380 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14381 "of physical volumes C<physvols>."
14382 msgstr ""
14383
14384 # type: =head2
14385 #: ../src/guestfs-actions.pod:5752
14386 msgid "guestfs_vglvuuids"
14387 msgstr ""
14388
14389 # type: verbatim
14390 #: ../src/guestfs-actions.pod:5754
14391 #, no-wrap
14392 msgid ""
14393 " char **\n"
14394 " guestfs_vglvuuids (guestfs_h *g,\n"
14395 "                    const char *vgname);\n"
14396 "\n"
14397 msgstr ""
14398
14399 # type: textblock
14400 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:4234
14401 msgid ""
14402 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14403 "volumes created in this volume group."
14404 msgstr ""
14405
14406 # type: textblock
14407 #: ../src/guestfs-actions.pod:5761
14408 msgid ""
14409 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14410 "associate logical volumes and volume groups."
14411 msgstr ""
14412
14413 # type: textblock
14414 #: ../src/guestfs-actions.pod:5764
14415 msgid "See also C<guestfs_vgpvuuids>."
14416 msgstr ""
14417
14418 # type: =head2
14419 #: ../src/guestfs-actions.pod:5770
14420 msgid "guestfs_vgpvuuids"
14421 msgstr ""
14422
14423 # type: verbatim
14424 #: ../src/guestfs-actions.pod:5772
14425 #, no-wrap
14426 msgid ""
14427 " char **\n"
14428 " guestfs_vgpvuuids (guestfs_h *g,\n"
14429 "                    const char *vgname);\n"
14430 "\n"
14431 msgstr ""
14432
14433 # type: textblock
14434 #: ../src/guestfs-actions.pod:5776 ../fish/guestfish-actions.pod:4246
14435 msgid ""
14436 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14437 "volumes that this volume group resides on."
14438 msgstr ""
14439
14440 # type: textblock
14441 #: ../src/guestfs-actions.pod:5779
14442 msgid ""
14443 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14444 "associate physical volumes and volume groups."
14445 msgstr ""
14446
14447 # type: textblock
14448 #: ../src/guestfs-actions.pod:5782
14449 msgid "See also C<guestfs_vglvuuids>."
14450 msgstr ""
14451
14452 # type: =head2
14453 #: ../src/guestfs-actions.pod:5788
14454 msgid "guestfs_vgremove"
14455 msgstr ""
14456
14457 # type: verbatim
14458 #: ../src/guestfs-actions.pod:5790
14459 #, no-wrap
14460 msgid ""
14461 " int\n"
14462 " guestfs_vgremove (guestfs_h *g,\n"
14463 "                   const char *vgname);\n"
14464 "\n"
14465 msgstr ""
14466
14467 # type: textblock
14468 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:4258
14469 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:4260
14474 msgid ""
14475 "This also forcibly removes all logical volumes in the volume group (if any)."
14476 msgstr ""
14477
14478 # type: =head2
14479 #: ../src/guestfs-actions.pod:5801
14480 msgid "guestfs_vgrename"
14481 msgstr ""
14482
14483 # type: verbatim
14484 #: ../src/guestfs-actions.pod:5803
14485 #, no-wrap
14486 msgid ""
14487 " int\n"
14488 " guestfs_vgrename (guestfs_h *g,\n"
14489 "                   const char *volgroup,\n"
14490 "                   const char *newvolgroup);\n"
14491 "\n"
14492 msgstr ""
14493
14494 # type: textblock
14495 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:4267
14496 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14497 msgstr ""
14498
14499 # type: =head2
14500 #: ../src/guestfs-actions.pod:5812
14501 msgid "guestfs_vgs"
14502 msgstr ""
14503
14504 # type: verbatim
14505 #: ../src/guestfs-actions.pod:5814
14506 #, no-wrap
14507 msgid ""
14508 " char **\n"
14509 " guestfs_vgs (guestfs_h *g);\n"
14510 "\n"
14511 msgstr ""
14512
14513 # type: textblock
14514 #: ../src/guestfs-actions.pod:5817 ../fish/guestfish-actions.pod:4273
14515 msgid ""
14516 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14517 "> command."
14518 msgstr ""
14519
14520 # type: textblock
14521 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:4276
14522 msgid ""
14523 "This returns a list of just the volume group names that were detected (eg. "
14524 "C<VolGroup00>)."
14525 msgstr ""
14526
14527 # type: textblock
14528 #: ../src/guestfs-actions.pod:5823
14529 msgid "See also C<guestfs_vgs_full>."
14530 msgstr ""
14531
14532 # type: =head2
14533 #: ../src/guestfs-actions.pod:5829
14534 msgid "guestfs_vgs_full"
14535 msgstr ""
14536
14537 # type: verbatim
14538 #: ../src/guestfs-actions.pod:5831
14539 #, no-wrap
14540 msgid ""
14541 " struct guestfs_lvm_vg_list *\n"
14542 " guestfs_vgs_full (guestfs_h *g);\n"
14543 "\n"
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:4285
14548 msgid ""
14549 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14550 "> command.  The \"full\" version includes all fields."
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:5837
14555 msgid ""
14556 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14557 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14558 "C<guestfs_free_lvm_vg_list> after use>."
14559 msgstr ""
14560
14561 # type: =head2
14562 #: ../src/guestfs-actions.pod:5842
14563 msgid "guestfs_vgscan"
14564 msgstr ""
14565
14566 # type: verbatim
14567 #: ../src/guestfs-actions.pod:5844
14568 #, no-wrap
14569 msgid ""
14570 " int\n"
14571 " guestfs_vgscan (guestfs_h *g);\n"
14572 "\n"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:4292
14577 msgid ""
14578 "This rescans all block devices and rebuilds the list of LVM physical "
14579 "volumes, volume groups and logical volumes."
14580 msgstr ""
14581
14582 # type: =head2
14583 #: ../src/guestfs-actions.pod:5852
14584 msgid "guestfs_vguuid"
14585 msgstr ""
14586
14587 # type: verbatim
14588 #: ../src/guestfs-actions.pod:5854
14589 #, no-wrap
14590 msgid ""
14591 " char *\n"
14592 " guestfs_vguuid (guestfs_h *g,\n"
14593 "                 const char *vgname);\n"
14594 "\n"
14595 msgstr ""
14596
14597 # type: textblock
14598 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:4299
14599 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14600 msgstr ""
14601
14602 # type: =head2
14603 #: ../src/guestfs-actions.pod:5863
14604 msgid "guestfs_wait_ready"
14605 msgstr ""
14606
14607 # type: verbatim
14608 #: ../src/guestfs-actions.pod:5865
14609 #, no-wrap
14610 msgid ""
14611 " int\n"
14612 " guestfs_wait_ready (guestfs_h *g);\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:5868
14618 msgid "This function is a no op."
14619 msgstr ""
14620
14621 # type: textblock
14622 #: ../src/guestfs-actions.pod:5870
14623 msgid ""
14624 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14625 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14626 "is no longer necessary because C<guestfs_launch> now does the waiting."
14627 msgstr ""
14628
14629 # type: textblock
14630 #: ../src/guestfs-actions.pod:5875
14631 msgid ""
14632 "If you see any calls to this function in code then you can just remove them, "
14633 "unless you want to retain compatibility with older versions of the API."
14634 msgstr ""
14635
14636 # type: =head2
14637 #: ../src/guestfs-actions.pod:5881
14638 msgid "guestfs_wc_c"
14639 msgstr ""
14640
14641 # type: verbatim
14642 #: ../src/guestfs-actions.pod:5883
14643 #, no-wrap
14644 msgid ""
14645 " int\n"
14646 " guestfs_wc_c (guestfs_h *g,\n"
14647 "               const char *path);\n"
14648 "\n"
14649 msgstr ""
14650
14651 # type: textblock
14652 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:4305
14653 msgid ""
14654 "This command counts the characters in a file, using the C<wc -c> external "
14655 "command."
14656 msgstr ""
14657
14658 # type: =head2
14659 #: ../src/guestfs-actions.pod:5892
14660 msgid "guestfs_wc_l"
14661 msgstr ""
14662
14663 # type: verbatim
14664 #: ../src/guestfs-actions.pod:5894
14665 #, no-wrap
14666 msgid ""
14667 " int\n"
14668 " guestfs_wc_l (guestfs_h *g,\n"
14669 "               const char *path);\n"
14670 "\n"
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:4312
14675 msgid ""
14676 "This command counts the lines in a file, using the C<wc -l> external command."
14677 msgstr ""
14678
14679 # type: =head2
14680 #: ../src/guestfs-actions.pod:5903
14681 msgid "guestfs_wc_w"
14682 msgstr ""
14683
14684 # type: verbatim
14685 #: ../src/guestfs-actions.pod:5905
14686 #, no-wrap
14687 msgid ""
14688 " int\n"
14689 " guestfs_wc_w (guestfs_h *g,\n"
14690 "               const char *path);\n"
14691 "\n"
14692 msgstr ""
14693
14694 # type: textblock
14695 #: ../src/guestfs-actions.pod:5909 ../fish/guestfish-actions.pod:4319
14696 msgid ""
14697 "This command counts the words in a file, using the C<wc -w> external command."
14698 msgstr ""
14699
14700 # type: =head2
14701 #: ../src/guestfs-actions.pod:5914
14702 msgid "guestfs_write"
14703 msgstr ""
14704
14705 # type: verbatim
14706 #: ../src/guestfs-actions.pod:5916
14707 #, no-wrap
14708 msgid ""
14709 " int\n"
14710 " guestfs_write (guestfs_h *g,\n"
14711 "                const char *path,\n"
14712 "                const char *content,\n"
14713 "                size_t content_size);\n"
14714 "\n"
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:4326
14719 msgid ""
14720 "This call creates a file called C<path>.  The content of the file is the "
14721 "string C<content> (which can contain any 8 bit data)."
14722 msgstr ""
14723
14724 # type: =head2
14725 #: ../src/guestfs-actions.pod:5930
14726 msgid "guestfs_write_file"
14727 msgstr ""
14728
14729 # type: verbatim
14730 #: ../src/guestfs-actions.pod:5932
14731 #, no-wrap
14732 msgid ""
14733 " int\n"
14734 " guestfs_write_file (guestfs_h *g,\n"
14735 "                     const char *path,\n"
14736 "                     const char *content,\n"
14737 "                     int size);\n"
14738 "\n"
14739 msgstr ""
14740
14741 # type: textblock
14742 #: ../src/guestfs-actions.pod:5938 ../fish/guestfish-actions.pod:4336
14743 msgid ""
14744 "This call creates a file called C<path>.  The contents of the file is the "
14745 "string C<content> (which can contain any 8 bit data), with length C<size>."
14746 msgstr ""
14747
14748 # type: textblock
14749 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4340
14750 msgid ""
14751 "As a special case, if C<size> is C<0> then the length is calculated using "
14752 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14753 msgstr ""
14754
14755 # type: textblock
14756 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:4344
14757 msgid ""
14758 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14759 "I<not> work, even if the length is specified."
14760 msgstr ""
14761
14762 # type: textblock
14763 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:4350
14764 msgid ""
14765 "This function is deprecated.  In new code, use the C<write> call instead."
14766 msgstr ""
14767
14768 # type: =head2
14769 #: ../src/guestfs-actions.pod:5961
14770 msgid "guestfs_zegrep"
14771 msgstr ""
14772
14773 # type: verbatim
14774 #: ../src/guestfs-actions.pod:5963
14775 #, no-wrap
14776 msgid ""
14777 " char **\n"
14778 " guestfs_zegrep (guestfs_h *g,\n"
14779 "                 const char *regex,\n"
14780 "                 const char *path);\n"
14781 "\n"
14782 msgstr ""
14783
14784 # type: textblock
14785 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:4361
14786 msgid ""
14787 "This calls the external C<zegrep> program and returns the matching lines."
14788 msgstr ""
14789
14790 # type: =head2
14791 #: ../src/guestfs-actions.pod:5978
14792 msgid "guestfs_zegrepi"
14793 msgstr ""
14794
14795 # type: verbatim
14796 #: ../src/guestfs-actions.pod:5980
14797 #, no-wrap
14798 msgid ""
14799 " char **\n"
14800 " guestfs_zegrepi (guestfs_h *g,\n"
14801 "                  const char *regex,\n"
14802 "                  const char *path);\n"
14803 "\n"
14804 msgstr ""
14805
14806 # type: textblock
14807 #: ../src/guestfs-actions.pod:5985 ../fish/guestfish-actions.pod:4371
14808 msgid ""
14809 "This calls the external C<zegrep -i> program and returns the matching lines."
14810 msgstr ""
14811
14812 # type: =head2
14813 #: ../src/guestfs-actions.pod:5995
14814 msgid "guestfs_zero"
14815 msgstr ""
14816
14817 # type: verbatim
14818 #: ../src/guestfs-actions.pod:5997
14819 #, no-wrap
14820 msgid ""
14821 " int\n"
14822 " guestfs_zero (guestfs_h *g,\n"
14823 "               const char *device);\n"
14824 "\n"
14825 msgstr ""
14826
14827 # type: textblock
14828 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4381
14829 msgid "This command writes zeroes over the first few blocks of C<device>."
14830 msgstr ""
14831
14832 # type: textblock
14833 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4383
14834 msgid ""
14835 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14836 "securely wipe the device).  It should be sufficient to remove any partition "
14837 "tables, filesystem superblocks and so on."
14838 msgstr ""
14839
14840 # type: textblock
14841 #: ../src/guestfs-actions.pod:6007
14842 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14843 msgstr ""
14844
14845 # type: =head2
14846 #: ../src/guestfs-actions.pod:6016
14847 msgid "guestfs_zero_device"
14848 msgstr ""
14849
14850 # type: verbatim
14851 #: ../src/guestfs-actions.pod:6018
14852 #, no-wrap
14853 msgid ""
14854 " int\n"
14855 " guestfs_zero_device (guestfs_h *g,\n"
14856 "                      const char *device);\n"
14857 "\n"
14858 msgstr ""
14859
14860 # type: textblock
14861 #: ../src/guestfs-actions.pod:6022
14862 msgid ""
14863 "This command writes zeroes over the entire C<device>.  Compare with "
14864 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14865 msgstr ""
14866
14867 # type: =head2
14868 #: ../src/guestfs-actions.pod:6036
14869 msgid "guestfs_zerofree"
14870 msgstr ""
14871
14872 # type: verbatim
14873 #: ../src/guestfs-actions.pod:6038
14874 #, no-wrap
14875 msgid ""
14876 " int\n"
14877 " guestfs_zerofree (guestfs_h *g,\n"
14878 "                   const char *device);\n"
14879 "\n"
14880 msgstr ""
14881
14882 # type: textblock
14883 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4404
14884 msgid ""
14885 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14886 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14887 "possible to compress the filesystem more effectively."
14888 msgstr ""
14889
14890 # type: textblock
14891 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4409
14892 msgid "You should B<not> run this program if the filesystem is mounted."
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4412
14897 msgid ""
14898 "It is possible that using this program can damage the filesystem or data on "
14899 "the filesystem."
14900 msgstr ""
14901
14902 # type: =head2
14903 #: ../src/guestfs-actions.pod:6055
14904 msgid "guestfs_zfgrep"
14905 msgstr ""
14906
14907 # type: verbatim
14908 #: ../src/guestfs-actions.pod:6057
14909 #, no-wrap
14910 msgid ""
14911 " char **\n"
14912 " guestfs_zfgrep (guestfs_h *g,\n"
14913 "                 const char *pattern,\n"
14914 "                 const char *path);\n"
14915 "\n"
14916 msgstr ""
14917
14918 # type: textblock
14919 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4419
14920 msgid ""
14921 "This calls the external C<zfgrep> program and returns the matching lines."
14922 msgstr ""
14923
14924 # type: =head2
14925 #: ../src/guestfs-actions.pod:6072
14926 msgid "guestfs_zfgrepi"
14927 msgstr ""
14928
14929 # type: verbatim
14930 #: ../src/guestfs-actions.pod:6074
14931 #, no-wrap
14932 msgid ""
14933 " char **\n"
14934 " guestfs_zfgrepi (guestfs_h *g,\n"
14935 "                  const char *pattern,\n"
14936 "                  const char *path);\n"
14937 "\n"
14938 msgstr ""
14939
14940 # type: textblock
14941 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4429
14942 msgid ""
14943 "This calls the external C<zfgrep -i> program and returns the matching lines."
14944 msgstr ""
14945
14946 # type: =head2
14947 #: ../src/guestfs-actions.pod:6089
14948 msgid "guestfs_zfile"
14949 msgstr ""
14950
14951 # type: verbatim
14952 #: ../src/guestfs-actions.pod:6091
14953 #, no-wrap
14954 msgid ""
14955 " char *\n"
14956 " guestfs_zfile (guestfs_h *g,\n"
14957 "                const char *meth,\n"
14958 "                const char *path);\n"
14959 "\n"
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4439
14964 msgid ""
14965 "This command runs C<file> after first decompressing C<path> using C<method>."
14966 msgstr ""
14967
14968 # type: textblock
14969 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4442
14970 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14971 msgstr ""
14972
14973 # type: textblock
14974 #: ../src/guestfs-actions.pod:6101
14975 msgid ""
14976 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14977 "files."
14978 msgstr ""
14979
14980 # type: textblock
14981 #: ../src/guestfs-actions.pod:6107 ../fish/guestfish-actions.pod:4447
14982 msgid ""
14983 "This function is deprecated.  In new code, use the C<file> call instead."
14984 msgstr ""
14985
14986 # type: =head2
14987 #: ../src/guestfs-actions.pod:6114
14988 msgid "guestfs_zgrep"
14989 msgstr ""
14990
14991 # type: verbatim
14992 #: ../src/guestfs-actions.pod:6116
14993 #, no-wrap
14994 msgid ""
14995 " char **\n"
14996 " guestfs_zgrep (guestfs_h *g,\n"
14997 "                const char *regex,\n"
14998 "                const char *path);\n"
14999 "\n"
15000 msgstr ""
15001
15002 # type: textblock
15003 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4458
15004 msgid ""
15005 "This calls the external C<zgrep> program and returns the matching lines."
15006 msgstr ""
15007
15008 # type: =head2
15009 #: ../src/guestfs-actions.pod:6131
15010 msgid "guestfs_zgrepi"
15011 msgstr ""
15012
15013 # type: verbatim
15014 #: ../src/guestfs-actions.pod:6133
15015 #, no-wrap
15016 msgid ""
15017 " char **\n"
15018 " guestfs_zgrepi (guestfs_h *g,\n"
15019 "                 const char *regex,\n"
15020 "                 const char *path);\n"
15021 "\n"
15022 msgstr ""
15023
15024 # type: textblock
15025 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4468
15026 msgid ""
15027 "This calls the external C<zgrep -i> program and returns the matching lines."
15028 msgstr ""
15029
15030 # type: =item
15031 #: ../src/guestfs-availability.pod:3
15032 msgid "B<augeas>"
15033 msgstr ""
15034
15035 # type: textblock
15036 #: ../src/guestfs-availability.pod:5
15037 msgid ""
15038 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15039 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15040 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15041 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15042 "L</guestfs_aug_save> L</guestfs_aug_set>"
15043 msgstr ""
15044
15045 # type: =item
15046 #: ../src/guestfs-availability.pod:21
15047 msgid "B<inotify>"
15048 msgstr ""
15049
15050 # type: textblock
15051 #: ../src/guestfs-availability.pod:23
15052 msgid ""
15053 "The following functions: L</guestfs_inotify_add_watch> L</"
15054 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15055 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15056 msgstr ""
15057
15058 # type: =item
15059 #: ../src/guestfs-availability.pod:31
15060 msgid "B<linuxfsuuid>"
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../src/guestfs-availability.pod:33
15065 msgid ""
15066 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15067 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15068 msgstr ""
15069
15070 # type: =item
15071 #: ../src/guestfs-availability.pod:40
15072 msgid "B<linuxmodules>"
15073 msgstr ""
15074
15075 # type: textblock
15076 #: ../src/guestfs-availability.pod:42
15077 msgid "The following functions: L</guestfs_modprobe>"
15078 msgstr ""
15079
15080 # type: =item
15081 #: ../src/guestfs-availability.pod:45
15082 msgid "B<linuxxattrs>"
15083 msgstr ""
15084
15085 # type: textblock
15086 #: ../src/guestfs-availability.pod:47
15087 msgid ""
15088 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15089 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15090 "guestfs_removexattr> L</guestfs_setxattr>"
15091 msgstr ""
15092
15093 # type: =item
15094 #: ../src/guestfs-availability.pod:56
15095 msgid "B<luks>"
15096 msgstr ""
15097
15098 # type: textblock
15099 #: ../src/guestfs-availability.pod:58
15100 msgid ""
15101 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15102 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15103 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15104 msgstr ""
15105
15106 # type: =item
15107 #: ../src/guestfs-availability.pod:67
15108 msgid "B<lvm2>"
15109 msgstr ""
15110
15111 # type: textblock
15112 #: ../src/guestfs-availability.pod:69
15113 msgid ""
15114 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15115 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15116 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15117 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15118 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15119 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15120 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15121 msgstr ""
15122
15123 # type: =item
15124 #: ../src/guestfs-availability.pod:92
15125 msgid "B<mknod>"
15126 msgstr ""
15127
15128 # type: textblock
15129 #: ../src/guestfs-availability.pod:94
15130 msgid ""
15131 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15132 "guestfs_mknod_b> L</guestfs_mknod_c>"
15133 msgstr ""
15134
15135 # type: =item
15136 #: ../src/guestfs-availability.pod:100
15137 msgid "B<ntfs3g>"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-availability.pod:102
15142 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15143 msgstr ""
15144
15145 # type: =item
15146 #: ../src/guestfs-availability.pod:105
15147 msgid "B<ntfsprogs>"
15148 msgstr ""
15149
15150 # type: textblock
15151 #: ../src/guestfs-availability.pod:107
15152 msgid ""
15153 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15154 msgstr ""
15155
15156 # type: =item
15157 #: ../src/guestfs-availability.pod:111
15158 msgid "B<realpath>"
15159 msgstr ""
15160
15161 # type: textblock
15162 #: ../src/guestfs-availability.pod:113
15163 msgid "The following functions: L</guestfs_realpath>"
15164 msgstr ""
15165
15166 # type: =item
15167 #: ../src/guestfs-availability.pod:116
15168 msgid "B<scrub>"
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-availability.pod:118
15173 msgid ""
15174 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15175 "guestfs_scrub_freespace>"
15176 msgstr ""
15177
15178 # type: =item
15179 #: ../src/guestfs-availability.pod:123
15180 msgid "B<selinux>"
15181 msgstr ""
15182
15183 # type: textblock
15184 #: ../src/guestfs-availability.pod:125
15185 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15186 msgstr ""
15187
15188 # type: =item
15189 #: ../src/guestfs-availability.pod:129
15190 msgid "B<xz>"
15191 msgstr ""
15192
15193 # type: textblock
15194 #: ../src/guestfs-availability.pod:131
15195 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15196 msgstr ""
15197
15198 # type: =item
15199 #: ../src/guestfs-availability.pod:135
15200 msgid "B<zerofree>"
15201 msgstr ""
15202
15203 # type: textblock
15204 #: ../src/guestfs-availability.pod:137
15205 msgid "The following functions: L</guestfs_zerofree>"
15206 msgstr ""
15207
15208 # type: =head2
15209 #: ../src/guestfs-structs.pod:1
15210 msgid "guestfs_int_bool"
15211 msgstr ""
15212
15213 # type: verbatim
15214 #: ../src/guestfs-structs.pod:3
15215 #, no-wrap
15216 msgid ""
15217 " struct guestfs_int_bool {\n"
15218 "   int32_t i;\n"
15219 "   int32_t b;\n"
15220 " };\n"
15221 " \n"
15222 msgstr ""
15223
15224 # type: verbatim
15225 #: ../src/guestfs-structs.pod:8
15226 #, no-wrap
15227 msgid ""
15228 " struct guestfs_int_bool_list {\n"
15229 "   uint32_t len; /* Number of elements in list. */\n"
15230 "   struct guestfs_int_bool *val; /* Elements. */\n"
15231 " };\n"
15232 " \n"
15233 msgstr ""
15234
15235 # type: verbatim
15236 #: ../src/guestfs-structs.pod:13
15237 #, no-wrap
15238 msgid ""
15239 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15240 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15241 "\n"
15242 msgstr ""
15243
15244 # type: =head2
15245 #: ../src/guestfs-structs.pod:16
15246 msgid "guestfs_lvm_pv"
15247 msgstr ""
15248
15249 # type: verbatim
15250 #: ../src/guestfs-structs.pod:18
15251 #, no-wrap
15252 msgid ""
15253 " struct guestfs_lvm_pv {\n"
15254 "   char *pv_name;\n"
15255 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15256 "   char pv_uuid[32];\n"
15257 "   char *pv_fmt;\n"
15258 "   uint64_t pv_size;\n"
15259 "   uint64_t dev_size;\n"
15260 "   uint64_t pv_free;\n"
15261 "   uint64_t pv_used;\n"
15262 "   char *pv_attr;\n"
15263 "   int64_t pv_pe_count;\n"
15264 "   int64_t pv_pe_alloc_count;\n"
15265 "   char *pv_tags;\n"
15266 "   uint64_t pe_start;\n"
15267 "   int64_t pv_mda_count;\n"
15268 "   uint64_t pv_mda_free;\n"
15269 " };\n"
15270 " \n"
15271 msgstr ""
15272
15273 # type: verbatim
15274 #: ../src/guestfs-structs.pod:36
15275 #, no-wrap
15276 msgid ""
15277 " struct guestfs_lvm_pv_list {\n"
15278 "   uint32_t len; /* Number of elements in list. */\n"
15279 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15280 " };\n"
15281 " \n"
15282 msgstr ""
15283
15284 # type: verbatim
15285 #: ../src/guestfs-structs.pod:41
15286 #, no-wrap
15287 msgid ""
15288 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15289 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: =head2
15294 #: ../src/guestfs-structs.pod:44
15295 msgid "guestfs_lvm_vg"
15296 msgstr ""
15297
15298 # type: verbatim
15299 #: ../src/guestfs-structs.pod:46
15300 #, no-wrap
15301 msgid ""
15302 " struct guestfs_lvm_vg {\n"
15303 "   char *vg_name;\n"
15304 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15305 "   char vg_uuid[32];\n"
15306 "   char *vg_fmt;\n"
15307 "   char *vg_attr;\n"
15308 "   uint64_t vg_size;\n"
15309 "   uint64_t vg_free;\n"
15310 "   char *vg_sysid;\n"
15311 "   uint64_t vg_extent_size;\n"
15312 "   int64_t vg_extent_count;\n"
15313 "   int64_t vg_free_count;\n"
15314 "   int64_t max_lv;\n"
15315 "   int64_t max_pv;\n"
15316 "   int64_t pv_count;\n"
15317 "   int64_t lv_count;\n"
15318 "   int64_t snap_count;\n"
15319 "   int64_t vg_seqno;\n"
15320 "   char *vg_tags;\n"
15321 "   int64_t vg_mda_count;\n"
15322 "   uint64_t vg_mda_free;\n"
15323 " };\n"
15324 " \n"
15325 msgstr ""
15326
15327 # type: verbatim
15328 #: ../src/guestfs-structs.pod:69
15329 #, no-wrap
15330 msgid ""
15331 " struct guestfs_lvm_vg_list {\n"
15332 "   uint32_t len; /* Number of elements in list. */\n"
15333 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15334 " };\n"
15335 " \n"
15336 msgstr ""
15337
15338 # type: verbatim
15339 #: ../src/guestfs-structs.pod:74
15340 #, no-wrap
15341 msgid ""
15342 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15343 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15344 "\n"
15345 msgstr ""
15346
15347 # type: =head2
15348 #: ../src/guestfs-structs.pod:77
15349 msgid "guestfs_lvm_lv"
15350 msgstr ""
15351
15352 # type: verbatim
15353 #: ../src/guestfs-structs.pod:79
15354 #, no-wrap
15355 msgid ""
15356 " struct guestfs_lvm_lv {\n"
15357 "   char *lv_name;\n"
15358 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15359 "   char lv_uuid[32];\n"
15360 "   char *lv_attr;\n"
15361 "   int64_t lv_major;\n"
15362 "   int64_t lv_minor;\n"
15363 "   int64_t lv_kernel_major;\n"
15364 "   int64_t lv_kernel_minor;\n"
15365 "   uint64_t lv_size;\n"
15366 "   int64_t seg_count;\n"
15367 "   char *origin;\n"
15368 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15369 "   float snap_percent;\n"
15370 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15371 "   float copy_percent;\n"
15372 "   char *move_pv;\n"
15373 "   char *lv_tags;\n"
15374 "   char *mirror_log;\n"
15375 "   char *modules;\n"
15376 " };\n"
15377 " \n"
15378 msgstr ""
15379
15380 # type: verbatim
15381 #: ../src/guestfs-structs.pod:101
15382 #, no-wrap
15383 msgid ""
15384 " struct guestfs_lvm_lv_list {\n"
15385 "   uint32_t len; /* Number of elements in list. */\n"
15386 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15387 " };\n"
15388 " \n"
15389 msgstr ""
15390
15391 # type: verbatim
15392 #: ../src/guestfs-structs.pod:106
15393 #, no-wrap
15394 msgid ""
15395 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15396 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15397 "\n"
15398 msgstr ""
15399
15400 # type: verbatim
15401 #: ../src/guestfs-structs.pod:111
15402 #, no-wrap
15403 msgid ""
15404 " struct guestfs_stat {\n"
15405 "   int64_t dev;\n"
15406 "   int64_t ino;\n"
15407 "   int64_t mode;\n"
15408 "   int64_t nlink;\n"
15409 "   int64_t uid;\n"
15410 "   int64_t gid;\n"
15411 "   int64_t rdev;\n"
15412 "   int64_t size;\n"
15413 "   int64_t blksize;\n"
15414 "   int64_t blocks;\n"
15415 "   int64_t atime;\n"
15416 "   int64_t mtime;\n"
15417 "   int64_t ctime;\n"
15418 " };\n"
15419 " \n"
15420 msgstr ""
15421
15422 # type: verbatim
15423 #: ../src/guestfs-structs.pod:127
15424 #, no-wrap
15425 msgid ""
15426 " struct guestfs_stat_list {\n"
15427 "   uint32_t len; /* Number of elements in list. */\n"
15428 "   struct guestfs_stat *val; /* Elements. */\n"
15429 " };\n"
15430 " \n"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #: ../src/guestfs-structs.pod:132
15435 #, no-wrap
15436 msgid ""
15437 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15438 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15439 "\n"
15440 msgstr ""
15441
15442 # type: verbatim
15443 #: ../src/guestfs-structs.pod:137
15444 #, no-wrap
15445 msgid ""
15446 " struct guestfs_statvfs {\n"
15447 "   int64_t bsize;\n"
15448 "   int64_t frsize;\n"
15449 "   int64_t blocks;\n"
15450 "   int64_t bfree;\n"
15451 "   int64_t bavail;\n"
15452 "   int64_t files;\n"
15453 "   int64_t ffree;\n"
15454 "   int64_t favail;\n"
15455 "   int64_t fsid;\n"
15456 "   int64_t flag;\n"
15457 "   int64_t namemax;\n"
15458 " };\n"
15459 " \n"
15460 msgstr ""
15461
15462 # type: verbatim
15463 #: ../src/guestfs-structs.pod:151
15464 #, no-wrap
15465 msgid ""
15466 " struct guestfs_statvfs_list {\n"
15467 "   uint32_t len; /* Number of elements in list. */\n"
15468 "   struct guestfs_statvfs *val; /* Elements. */\n"
15469 " };\n"
15470 " \n"
15471 msgstr ""
15472
15473 # type: verbatim
15474 #: ../src/guestfs-structs.pod:156
15475 #, no-wrap
15476 msgid ""
15477 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15478 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15479 "\n"
15480 msgstr ""
15481
15482 # type: =head2
15483 #: ../src/guestfs-structs.pod:159
15484 msgid "guestfs_dirent"
15485 msgstr ""
15486
15487 # type: verbatim
15488 #: ../src/guestfs-structs.pod:161
15489 #, no-wrap
15490 msgid ""
15491 " struct guestfs_dirent {\n"
15492 "   int64_t ino;\n"
15493 "   char ftyp;\n"
15494 "   char *name;\n"
15495 " };\n"
15496 " \n"
15497 msgstr ""
15498
15499 # type: verbatim
15500 #: ../src/guestfs-structs.pod:167
15501 #, no-wrap
15502 msgid ""
15503 " struct guestfs_dirent_list {\n"
15504 "   uint32_t len; /* Number of elements in list. */\n"
15505 "   struct guestfs_dirent *val; /* Elements. */\n"
15506 " };\n"
15507 " \n"
15508 msgstr ""
15509
15510 # type: verbatim
15511 #: ../src/guestfs-structs.pod:172
15512 #, no-wrap
15513 msgid ""
15514 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15515 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15516 "\n"
15517 msgstr ""
15518
15519 # type: verbatim
15520 #: ../src/guestfs-structs.pod:177
15521 #, no-wrap
15522 msgid ""
15523 " struct guestfs_version {\n"
15524 "   int64_t major;\n"
15525 "   int64_t minor;\n"
15526 "   int64_t release;\n"
15527 "   char *extra;\n"
15528 " };\n"
15529 " \n"
15530 msgstr ""
15531
15532 # type: verbatim
15533 #: ../src/guestfs-structs.pod:184
15534 #, no-wrap
15535 msgid ""
15536 " struct guestfs_version_list {\n"
15537 "   uint32_t len; /* Number of elements in list. */\n"
15538 "   struct guestfs_version *val; /* Elements. */\n"
15539 " };\n"
15540 " \n"
15541 msgstr ""
15542
15543 # type: verbatim
15544 #: ../src/guestfs-structs.pod:189
15545 #, no-wrap
15546 msgid ""
15547 " void guestfs_free_version (struct guestfs_free_version *);\n"
15548 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15549 "\n"
15550 msgstr ""
15551
15552 # type: =head2
15553 #: ../src/guestfs-structs.pod:192
15554 msgid "guestfs_xattr"
15555 msgstr ""
15556
15557 # type: verbatim
15558 #: ../src/guestfs-structs.pod:194
15559 #, no-wrap
15560 msgid ""
15561 " struct guestfs_xattr {\n"
15562 "   char *attrname;\n"
15563 "   /* The next two fields describe a byte array. */\n"
15564 "   uint32_t attrval_len;\n"
15565 "   char *attrval;\n"
15566 " };\n"
15567 " \n"
15568 msgstr ""
15569
15570 # type: verbatim
15571 #: ../src/guestfs-structs.pod:201
15572 #, no-wrap
15573 msgid ""
15574 " struct guestfs_xattr_list {\n"
15575 "   uint32_t len; /* Number of elements in list. */\n"
15576 "   struct guestfs_xattr *val; /* Elements. */\n"
15577 " };\n"
15578 " \n"
15579 msgstr ""
15580
15581 # type: verbatim
15582 #: ../src/guestfs-structs.pod:206
15583 #, no-wrap
15584 msgid ""
15585 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15586 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15587 "\n"
15588 msgstr ""
15589
15590 # type: =head2
15591 #: ../src/guestfs-structs.pod:209
15592 msgid "guestfs_inotify_event"
15593 msgstr ""
15594
15595 # type: verbatim
15596 #: ../src/guestfs-structs.pod:211
15597 #, no-wrap
15598 msgid ""
15599 " struct guestfs_inotify_event {\n"
15600 "   int64_t in_wd;\n"
15601 "   uint32_t in_mask;\n"
15602 "   uint32_t in_cookie;\n"
15603 "   char *in_name;\n"
15604 " };\n"
15605 " \n"
15606 msgstr ""
15607
15608 # type: verbatim
15609 #: ../src/guestfs-structs.pod:218
15610 #, no-wrap
15611 msgid ""
15612 " struct guestfs_inotify_event_list {\n"
15613 "   uint32_t len; /* Number of elements in list. */\n"
15614 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15615 " };\n"
15616 " \n"
15617 msgstr ""
15618
15619 # type: verbatim
15620 #: ../src/guestfs-structs.pod:223
15621 #, no-wrap
15622 msgid ""
15623 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15624 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15625 "\n"
15626 msgstr ""
15627
15628 # type: =head2
15629 #: ../src/guestfs-structs.pod:226
15630 msgid "guestfs_partition"
15631 msgstr ""
15632
15633 # type: verbatim
15634 #: ../src/guestfs-structs.pod:228
15635 #, no-wrap
15636 msgid ""
15637 " struct guestfs_partition {\n"
15638 "   int32_t part_num;\n"
15639 "   uint64_t part_start;\n"
15640 "   uint64_t part_end;\n"
15641 "   uint64_t part_size;\n"
15642 " };\n"
15643 " \n"
15644 msgstr ""
15645
15646 # type: verbatim
15647 #: ../src/guestfs-structs.pod:235
15648 #, no-wrap
15649 msgid ""
15650 " struct guestfs_partition_list {\n"
15651 "   uint32_t len; /* Number of elements in list. */\n"
15652 "   struct guestfs_partition *val; /* Elements. */\n"
15653 " };\n"
15654 " \n"
15655 msgstr ""
15656
15657 # type: verbatim
15658 #: ../src/guestfs-structs.pod:240
15659 #, no-wrap
15660 msgid ""
15661 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15662 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15663 "\n"
15664 msgstr ""
15665
15666 # type: textblock
15667 #: ../fish/guestfish.pod:5
15668 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15669 msgstr ""
15670
15671 # type: verbatim
15672 #: ../fish/guestfish.pod:9
15673 #, no-wrap
15674 msgid ""
15675 " guestfish [--options] [commands]\n"
15676 "\n"
15677 msgstr ""
15678
15679 # type: verbatim
15680 #: ../fish/guestfish.pod:11
15681 #, no-wrap
15682 msgid ""
15683 " guestfish\n"
15684 "\n"
15685 msgstr ""
15686
15687 # type: verbatim
15688 #: ../fish/guestfish.pod:13
15689 #, no-wrap
15690 msgid ""
15691 " guestfish -a disk.img\n"
15692 "\n"
15693 msgstr ""
15694
15695 # type: verbatim
15696 #: ../fish/guestfish.pod:15
15697 #, no-wrap
15698 msgid ""
15699 " guestfish -a disk.img -m dev[:mountpoint]\n"
15700 "\n"
15701 msgstr ""
15702
15703 # type: verbatim
15704 #: ../fish/guestfish.pod:17
15705 #, no-wrap
15706 msgid ""
15707 " guestfish -d libvirt-domain\n"
15708 "\n"
15709 msgstr ""
15710
15711 # type: verbatim
15712 #: ../fish/guestfish.pod:19
15713 #, no-wrap
15714 msgid ""
15715 " guestfish -a disk.img -i\n"
15716 "\n"
15717 msgstr ""
15718
15719 # type: verbatim
15720 #: ../fish/guestfish.pod:21
15721 #, no-wrap
15722 msgid ""
15723 " guestfish -d libvirt-domain -i\n"
15724 "\n"
15725 msgstr ""
15726
15727 # type: =head1
15728 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
15729 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
15730 #: ../tools/virt-rescue.pl:41
15731 msgid "WARNING"
15732 msgstr ""
15733
15734 # type: textblock
15735 #: ../fish/guestfish.pod:25
15736 msgid ""
15737 "Using guestfish in read/write mode on live virtual machines can be "
15738 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15739 "option to use guestfish safely if the disk image or virtual machine might be "
15740 "live."
15741 msgstr ""
15742
15743 # type: textblock
15744 #: ../fish/guestfish.pod:32
15745 msgid ""
15746 "Guestfish is a shell and command-line tool for examining and modifying "
15747 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15748 "functionality of the guestfs API, see L<guestfs(3)>."
15749 msgstr ""
15750
15751 # type: textblock
15752 #: ../fish/guestfish.pod:36
15753 msgid ""
15754 "Guestfish gives you structured access to the libguestfs API, from shell "
15755 "scripts or the command line or interactively.  If you want to rescue a "
15756 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15757 "command."
15758 msgstr ""
15759
15760 # type: =head1
15761 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15762 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
15763 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15764 msgid "EXAMPLES"
15765 msgstr ""
15766
15767 # type: =head2
15768 #: ../fish/guestfish.pod:43
15769 msgid "As an interactive shell"
15770 msgstr ""
15771
15772 # type: verbatim
15773 #: ../fish/guestfish.pod:45
15774 #, no-wrap
15775 msgid ""
15776 " $ guestfish\n"
15777 " \n"
15778 msgstr ""
15779
15780 # type: verbatim
15781 #: ../fish/guestfish.pod:47
15782 #, no-wrap
15783 msgid ""
15784 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15785 " editing virtual machine filesystems.\n"
15786 " \n"
15787 msgstr ""
15788
15789 # type: verbatim
15790 #: ../fish/guestfish.pod:50
15791 #, no-wrap
15792 msgid ""
15793 " Type: 'help' for a list of commands\n"
15794 "       'man' to read the manual\n"
15795 "       'quit' to quit the shell\n"
15796 " \n"
15797 msgstr ""
15798
15799 # type: verbatim
15800 #: ../fish/guestfish.pod:54
15801 #, no-wrap
15802 msgid ""
15803 " ><fs> add-ro disk.img\n"
15804 " ><fs> run\n"
15805 " ><fs> list-filesystems\n"
15806 " /dev/sda1: ext4\n"
15807 " /dev/vg_guest/lv_root: ext4\n"
15808 " /dev/vg_guest/lv_swap: swap\n"
15809 " ><fs> mount /dev/vg_guest/lv_root /\n"
15810 " ><fs> cat /etc/fstab\n"
15811 " # /etc/fstab\n"
15812 " # Created by anaconda\n"
15813 " [...]\n"
15814 " ><fs> exit\n"
15815 "\n"
15816 msgstr ""
15817
15818 # type: =head2
15819 #: ../fish/guestfish.pod:67
15820 msgid "From shell scripts"
15821 msgstr ""
15822
15823 # type: textblock
15824 #: ../fish/guestfish.pod:69
15825 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15826 msgstr ""
15827
15828 # type: verbatim
15829 #: ../fish/guestfish.pod:71
15830 #, no-wrap
15831 msgid ""
15832 " guestfish <<_EOF_\n"
15833 " add disk.img\n"
15834 " run\n"
15835 " mount /dev/vg_guest/lv_root /\n"
15836 " write /etc/motd \"Welcome, new users\"\n"
15837 " _EOF_\n"
15838 "\n"
15839 msgstr ""
15840
15841 # type: textblock
15842 #: ../fish/guestfish.pod:78
15843 msgid "List the LVM logical volumes in a disk image:"
15844 msgstr ""
15845
15846 # type: verbatim
15847 #: ../fish/guestfish.pod:80
15848 #, no-wrap
15849 msgid ""
15850 " guestfish -a disk.img --ro <<_EOF_\n"
15851 " run\n"
15852 " lvs\n"
15853 " _EOF_\n"
15854 "\n"
15855 msgstr ""
15856
15857 # type: textblock
15858 #: ../fish/guestfish.pod:85
15859 msgid "List all the filesystems in a disk image:"
15860 msgstr ""
15861
15862 # type: verbatim
15863 #: ../fish/guestfish.pod:87
15864 #, no-wrap
15865 msgid ""
15866 " guestfish -a disk.img --ro <<_EOF_\n"
15867 " run\n"
15868 " list-filesystems\n"
15869 " _EOF_\n"
15870 "\n"
15871 msgstr ""
15872
15873 # type: =head2
15874 #: ../fish/guestfish.pod:92
15875 msgid "On one command line"
15876 msgstr ""
15877
15878 # type: textblock
15879 #: ../fish/guestfish.pod:94
15880 msgid "Update C</etc/resolv.conf> in a guest:"
15881 msgstr ""
15882
15883 # type: verbatim
15884 #: ../fish/guestfish.pod:96
15885 #, no-wrap
15886 msgid ""
15887 " guestfish \\\n"
15888 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15889 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15890 "\n"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../fish/guestfish.pod:100
15895 msgid "Edit C</boot/grub/grub.conf> interactively:"
15896 msgstr ""
15897
15898 # type: verbatim
15899 #: ../fish/guestfish.pod:102
15900 #, no-wrap
15901 msgid ""
15902 " guestfish --add disk.img \\\n"
15903 "   --mount /dev/vg_guest/lv_root \\\n"
15904 "   --mount /dev/sda1:/boot \\\n"
15905 "   edit /boot/grub/grub.conf\n"
15906 "\n"
15907 msgstr ""
15908
15909 # type: =head2
15910 #: ../fish/guestfish.pod:107
15911 msgid "Mount disks automatically"
15912 msgstr ""
15913
15914 # type: textblock
15915 #: ../fish/guestfish.pod:109
15916 msgid ""
15917 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15918 msgstr ""
15919
15920 # type: verbatim
15921 #: ../fish/guestfish.pod:112
15922 #, no-wrap
15923 msgid ""
15924 " guestfish --ro -a disk.img -i cat /etc/group\n"
15925 "\n"
15926 msgstr ""
15927
15928 # type: verbatim
15929 #: ../fish/guestfish.pod:114
15930 #, no-wrap
15931 msgid ""
15932 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15933 "\n"
15934 msgstr ""
15935
15936 # type: textblock
15937 #: ../fish/guestfish.pod:116
15938 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15939 msgstr ""
15940
15941 # type: verbatim
15942 #: ../fish/guestfish.pod:118
15943 #, no-wrap
15944 msgid ""
15945 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15946 "\n"
15947 msgstr ""
15948
15949 # type: =head2
15950 #: ../fish/guestfish.pod:120
15951 msgid "As a script interpreter"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../fish/guestfish.pod:122
15956 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15957 msgstr ""
15958
15959 # type: verbatim
15960 #: ../fish/guestfish.pod:124
15961 #, no-wrap
15962 msgid ""
15963 " #!/usr/bin/guestfish -f\n"
15964 " sparse test1.img 100M\n"
15965 " run\n"
15966 " part-disk /dev/sda mbr\n"
15967 " mkfs ext2 /dev/sda1\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: =head2
15972 #: ../fish/guestfish.pod:130
15973 msgid "Start with a prepared disk"
15974 msgstr ""
15975
15976 # type: textblock
15977 #: ../fish/guestfish.pod:132
15978 msgid ""
15979 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15980 "single ext2-formatted partition:"
15981 msgstr ""
15982
15983 # type: verbatim
15984 #: ../fish/guestfish.pod:135
15985 #, no-wrap
15986 msgid ""
15987 " guestfish -N fs\n"
15988 "\n"
15989 msgstr ""
15990
15991 # type: textblock
15992 #: ../fish/guestfish.pod:137
15993 msgid "To list what is available do:"
15994 msgstr ""
15995
15996 # type: verbatim
15997 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15998 #, no-wrap
15999 msgid ""
16000 " guestfish -N help | less\n"
16001 "\n"
16002 msgstr ""
16003
16004 # type: =head2
16005 #: ../fish/guestfish.pod:141
16006 msgid "Remote control"
16007 msgstr ""
16008
16009 # type: verbatim
16010 #: ../fish/guestfish.pod:143
16011 #, no-wrap
16012 msgid ""
16013 " eval `guestfish --listen`\n"
16014 " guestfish --remote add-ro disk.img\n"
16015 " guestfish --remote run\n"
16016 " guestfish --remote lvs\n"
16017 "\n"
16018 msgstr ""
16019
16020 # type: =head1
16021 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16022 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16023 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16024 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16025 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
16026 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
16027 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16028 msgid "OPTIONS"
16029 msgstr ""
16030
16031 # type: =item
16032 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
16033 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16034 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16035 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16036 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
16037 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
16038 #: ../tools/virt-list-partitions.pl:59
16039 msgid "B<--help>"
16040 msgstr ""
16041
16042 # type: textblock
16043 #: ../fish/guestfish.pod:154
16044 msgid "Displays general help on options."
16045 msgstr ""
16046
16047 # type: =item
16048 #: ../fish/guestfish.pod:156
16049 msgid "B<-h> | B<--cmd-help>"
16050 msgstr ""
16051
16052 # type: textblock
16053 #: ../fish/guestfish.pod:158
16054 msgid "Lists all available guestfish commands."
16055 msgstr ""
16056
16057 # type: =item
16058 #: ../fish/guestfish.pod:160
16059 msgid "B<-h cmd> | B<--cmd-help cmd>"
16060 msgstr ""
16061
16062 # type: textblock
16063 #: ../fish/guestfish.pod:162
16064 msgid "Displays detailed help on a single command C<cmd>."
16065 msgstr ""
16066
16067 # type: =item
16068 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16069 msgid "B<-a image> | B<--add image>"
16070 msgstr ""
16071
16072 # type: textblock
16073 #: ../fish/guestfish.pod:166
16074 msgid "Add a block device or virtual machine image to the shell."
16075 msgstr ""
16076
16077 # type: textblock
16078 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16079 msgid ""
16080 "The format of the disk image is auto-detected.  To override this and force a "
16081 "particular format use the I<--format=..> option."
16082 msgstr ""
16083
16084 # type: =item
16085 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16086 msgid "B<-c URI> | B<--connect URI>"
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16091 msgid ""
16092 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16093 "URI to use.  The default is to use the default libvirt connection."
16094 msgstr ""
16095
16096 # type: =item
16097 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
16098 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16099 msgstr ""
16100
16101 # type: textblock
16102 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
16103 msgid ""
16104 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16105 "used, then any libvirt domain can be used.  However in write mode, only "
16106 "libvirt domains which are shut down can be named here."
16107 msgstr ""
16108
16109 # type: =item
16110 #: ../fish/guestfish.pod:183
16111 msgid "B<-D> | B<--no-dest-paths>"
16112 msgstr ""
16113
16114 # type: textblock
16115 #: ../fish/guestfish.pod:185
16116 msgid ""
16117 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16118 "to hit the tab key to complete paths on the guest filesystem, but this "
16119 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16120 "allow this feature to be disabled."
16121 msgstr ""
16122
16123 # type: =item
16124 #: ../fish/guestfish.pod:190
16125 msgid "B<--echo-keys>"
16126 msgstr ""
16127
16128 # type: textblock
16129 #: ../fish/guestfish.pod:192
16130 msgid ""
16131 "When prompting for keys and passphrases, guestfish normally turns echoing "
16132 "off so you cannot see what you are typing.  If you are not worried about "
16133 "Tempest attacks and there is no one else in the room you can specify this "
16134 "flag to see what you are typing."
16135 msgstr ""
16136
16137 # type: =item
16138 #: ../fish/guestfish.pod:197
16139 msgid "B<-f file> | B<--file file>"
16140 msgstr ""
16141
16142 # type: textblock
16143 #: ../fish/guestfish.pod:199
16144 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16145 msgstr ""
16146
16147 # type: verbatim
16148 #: ../fish/guestfish.pod:202
16149 #, no-wrap
16150 msgid ""
16151 " #!/usr/bin/guestfish -f\n"
16152 "\n"
16153 msgstr ""
16154
16155 # type: =item
16156 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
16157 msgid "B<--format=raw|qcow2|..> | B<--format>"
16158 msgstr ""
16159
16160 # type: textblock
16161 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
16162 msgid ""
16163 "The default for the I<-a> option is to auto-detect the format of the disk "
16164 "image.  Using this forces the disk format for I<-a> options which follow on "
16165 "the command line.  Using I<--format> with no argument switches back to auto-"
16166 "detection for subsequent I<-a> options."
16167 msgstr ""
16168
16169 # type: textblock
16170 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
16171 #: ../inspector/virt-inspector.pl:549
16172 msgid "For example:"
16173 msgstr ""
16174
16175 # type: verbatim
16176 #: ../fish/guestfish.pod:213
16177 #, no-wrap
16178 msgid ""
16179 " guestfish --format=raw -a disk.img\n"
16180 "\n"
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:215
16185 msgid "forces raw format (no auto-detection) for C<disk.img>."
16186 msgstr ""
16187
16188 # type: verbatim
16189 #: ../fish/guestfish.pod:217
16190 #, no-wrap
16191 msgid ""
16192 " guestfish --format=raw -a disk.img --format -a another.img\n"
16193 "\n"
16194 msgstr ""
16195
16196 # type: textblock
16197 #: ../fish/guestfish.pod:219
16198 msgid ""
16199 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16200 "detection for C<another.img>."
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../fish/guestfish.pod:222
16205 msgid ""
16206 "If you have untrusted raw-format guest disk images, you should use this "
16207 "option to specify the disk format.  This avoids a possible security problem "
16208 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16209 msgstr ""
16210
16211 # type: =item
16212 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
16213 msgid "B<-i> | B<--inspector>"
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
16218 msgid ""
16219 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16220 "system and mount filesystems as they would be mounted on the real virtual "
16221 "machine."
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../fish/guestfish.pod:233
16226 msgid "Typical usage is either:"
16227 msgstr ""
16228
16229 # type: verbatim
16230 #: ../fish/guestfish.pod:235
16231 #, no-wrap
16232 msgid ""
16233 " guestfish -d myguest -i\n"
16234 "\n"
16235 msgstr ""
16236
16237 # type: textblock
16238 #: ../fish/guestfish.pod:237
16239 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16240 msgstr ""
16241
16242 # type: verbatim
16243 #: ../fish/guestfish.pod:239
16244 #, no-wrap
16245 msgid ""
16246 " guestfish --ro -d myguest -i\n"
16247 "\n"
16248 msgstr ""
16249
16250 # type: textblock
16251 #: ../fish/guestfish.pod:241
16252 msgid "(for active domains, readonly), or specify the block device directly:"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #: ../fish/guestfish.pod:243
16257 #, no-wrap
16258 msgid ""
16259 " guestfish -a /dev/Guests/MyGuest -i\n"
16260 "\n"
16261 msgstr ""
16262
16263 # type: textblock
16264 #: ../fish/guestfish.pod:245
16265 msgid ""
16266 "Note that the command line syntax changed slightly over older versions of "
16267 "guestfish.  You can still use the old syntax:"
16268 msgstr ""
16269
16270 # type: verbatim
16271 #: ../fish/guestfish.pod:248
16272 #, no-wrap
16273 msgid ""
16274 " guestfish [--ro] -i disk.img\n"
16275 "\n"
16276 msgstr ""
16277
16278 # type: verbatim
16279 #: ../fish/guestfish.pod:250
16280 #, no-wrap
16281 msgid ""
16282 " guestfish [--ro] -i libvirt-domain\n"
16283 "\n"
16284 msgstr ""
16285
16286 # type: =item
16287 #: ../fish/guestfish.pod:252
16288 msgid "B<--keys-from-stdin>"
16289 msgstr ""
16290
16291 # type: textblock
16292 #: ../fish/guestfish.pod:254
16293 msgid ""
16294 "Read key or passphrase parameters from stdin.  The default is to try to read "
16295 "passphrases from the user by opening C</dev/tty>."
16296 msgstr ""
16297
16298 # type: =item
16299 #: ../fish/guestfish.pod:257
16300 msgid "B<--listen>"
16301 msgstr ""
16302
16303 # type: textblock
16304 #: ../fish/guestfish.pod:259
16305 msgid ""
16306 "Fork into the background and listen for remote commands.  See section L</"
16307 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16308 msgstr ""
16309
16310 # type: =item
16311 #: ../fish/guestfish.pod:262
16312 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16313 msgstr ""
16314
16315 # type: textblock
16316 #: ../fish/guestfish.pod:264
16317 msgid "Mount the named partition or logical volume on the given mountpoint."
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../fish/guestfish.pod:266
16322 msgid "If the mountpoint is omitted, it defaults to C</>."
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../fish/guestfish.pod:268
16327 msgid "You have to mount something on C</> before most commands will work."
16328 msgstr ""
16329
16330 # type: textblock
16331 #: ../fish/guestfish.pod:270
16332 msgid ""
16333 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16334 "launched."
16335 msgstr ""
16336
16337 # type: textblock
16338 #: ../fish/guestfish.pod:273
16339 msgid ""
16340 "If you don't know what filesystems a disk image contains, you can either run "
16341 "guestfish without this option, then list the partitions and LVs available "
16342 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16343 "list-filesystems(1)> program."
16344 msgstr ""
16345
16346 # type: =item
16347 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
16348 msgid "B<-n> | B<--no-sync>"
16349 msgstr ""
16350
16351 # type: textblock
16352 #: ../fish/guestfish.pod:280
16353 msgid ""
16354 "Disable autosync.  This is enabled by default.  See the discussion of "
16355 "autosync in the L<guestfs(3)> manpage."
16356 msgstr ""
16357
16358 # type: =item
16359 #: ../fish/guestfish.pod:283
16360 msgid "B<-N type> | B<--new type> | B<-N help>"
16361 msgstr ""
16362
16363 # type: textblock
16364 #: ../fish/guestfish.pod:285
16365 msgid ""
16366 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16367 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16368 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16369 "IMAGES> below."
16370 msgstr ""
16371
16372 # type: =item
16373 #: ../fish/guestfish.pod:290
16374 msgid "B<--progress-bars>"
16375 msgstr ""
16376
16377 # type: textblock
16378 #: ../fish/guestfish.pod:292
16379 msgid "Enable progress bars, even when guestfish is used non-interactively."
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../fish/guestfish.pod:294
16384 msgid ""
16385 "Progress bars are enabled by default when guestfish is used as an "
16386 "interactive shell."
16387 msgstr ""
16388
16389 # type: =item
16390 #: ../fish/guestfish.pod:297
16391 msgid "B<--no-progress-bars>"
16392 msgstr ""
16393
16394 # type: textblock
16395 #: ../fish/guestfish.pod:299
16396 msgid "Disable progress bars."
16397 msgstr ""
16398
16399 # type: =item
16400 #: ../fish/guestfish.pod:301
16401 msgid "B<--remote[=pid]>"
16402 msgstr ""
16403
16404 # type: textblock
16405 #: ../fish/guestfish.pod:303
16406 msgid ""
16407 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16408 "CONTROL GUESTFISH OVER A SOCKET> below."
16409 msgstr ""
16410
16411 # type: =item
16412 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
16413 msgid "B<-r> | B<--ro>"
16414 msgstr ""
16415
16416 # type: textblock
16417 #: ../fish/guestfish.pod:308
16418 msgid ""
16419 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16420 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16421 msgstr ""
16422
16423 # type: textblock
16424 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
16425 msgid ""
16426 "The option must always be used if the disk image or virtual machine might be "
16427 "running, and is generally recommended in cases where you don't need write "
16428 "access to the disk."
16429 msgstr ""
16430
16431 # type: textblock
16432 #: ../fish/guestfish.pod:315
16433 msgid ""
16434 "Note that prepared disk images created with I<-N> are not affected by the "
16435 "I<--ro> option."
16436 msgstr ""
16437
16438 # type: =item
16439 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
16440 #: ../tools/virt-rescue.pl:195
16441 msgid "B<--selinux>"
16442 msgstr ""
16443
16444 # type: textblock
16445 #: ../fish/guestfish.pod:320
16446 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16447 msgstr ""
16448
16449 # type: =item
16450 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
16451 msgid "B<-v> | B<--verbose>"
16452 msgstr ""
16453
16454 # type: textblock
16455 #: ../fish/guestfish.pod:324
16456 msgid ""
16457 "Enable very verbose messages.  This is particularly useful if you find a bug."
16458 msgstr ""
16459
16460 # type: =item
16461 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16462 msgid "B<-V> | B<--version>"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:329
16467 msgid "Display the guestfish / libguestfs version number and exit."
16468 msgstr ""
16469
16470 # type: =item
16471 #: ../fish/guestfish.pod:331
16472 msgid "B<-x>"
16473 msgstr ""
16474
16475 # type: textblock
16476 #: ../fish/guestfish.pod:333
16477 msgid "Echo each command before executing it."
16478 msgstr ""
16479
16480 # type: =head1
16481 #: ../fish/guestfish.pod:337
16482 msgid "COMMANDS ON COMMAND LINE"
16483 msgstr ""
16484
16485 # type: textblock
16486 #: ../fish/guestfish.pod:339
16487 msgid ""
16488 "Any additional (non-option) arguments are treated as commands to execute."
16489 msgstr ""
16490
16491 # type: textblock
16492 #: ../fish/guestfish.pod:342
16493 msgid ""
16494 "Commands to execute should be separated by a colon (C<:>), where the colon "
16495 "is a separate parameter.  Thus:"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #: ../fish/guestfish.pod:345
16500 #, no-wrap
16501 msgid ""
16502 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16503 "\n"
16504 msgstr ""
16505
16506 # type: textblock
16507 #: ../fish/guestfish.pod:347
16508 msgid ""
16509 "If there are no additional arguments, then we enter a shell, either an "
16510 "interactive shell with a prompt (if the input is a terminal) or a non-"
16511 "interactive shell."
16512 msgstr ""
16513
16514 # type: textblock
16515 #: ../fish/guestfish.pod:351
16516 msgid ""
16517 "In either command line mode or non-interactive shell, the first command that "
16518 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16519 "prompt) if a command fails, you can continue to enter commands."
16520 msgstr ""
16521
16522 # type: =head1
16523 #: ../fish/guestfish.pod:356
16524 msgid "USING launch (OR run)"
16525 msgstr ""
16526
16527 # type: textblock
16528 #: ../fish/guestfish.pod:358
16529 msgid ""
16530 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16531 "then launch it, then mount any disks you need, and finally issue actions/"
16532 "commands.  So the general order of the day is:"
16533 msgstr ""
16534
16535 # type: textblock
16536 #: ../fish/guestfish.pod:366
16537 msgid "add or -a/--add"
16538 msgstr ""
16539
16540 # type: textblock
16541 #: ../fish/guestfish.pod:370
16542 msgid "launch (aka run)"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:374
16547 msgid "mount or -m/--mount"
16548 msgstr ""
16549
16550 # type: textblock
16551 #: ../fish/guestfish.pod:378
16552 msgid "any other commands"
16553 msgstr ""
16554
16555 # type: textblock
16556 #: ../fish/guestfish.pod:382
16557 msgid ""
16558 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16559 "guest before mounting or performing any other commands."
16560 msgstr ""
16561
16562 # type: textblock
16563 #: ../fish/guestfish.pod:385
16564 msgid ""
16565 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16566 "I<--new> options were given then C<run> is done automatically, simply "
16567 "because guestfish can't perform the action you asked for without doing this."
16568 msgstr ""
16569
16570 # type: =head1
16571 #: ../fish/guestfish.pod:390
16572 msgid "QUOTING"
16573 msgstr ""
16574
16575 # type: textblock
16576 #: ../fish/guestfish.pod:392
16577 msgid ""
16578 "You can quote ordinary parameters using either single or double quotes.  For "
16579 "example:"
16580 msgstr ""
16581
16582 # type: verbatim
16583 #: ../fish/guestfish.pod:395
16584 #, no-wrap
16585 msgid ""
16586 " add \"file with a space.img\"\n"
16587 "\n"
16588 msgstr ""
16589
16590 # type: verbatim
16591 #: ../fish/guestfish.pod:397
16592 #, no-wrap
16593 msgid ""
16594 " rm '/file name'\n"
16595 "\n"
16596 msgstr ""
16597
16598 # type: verbatim
16599 #: ../fish/guestfish.pod:399
16600 #, no-wrap
16601 msgid ""
16602 " rm '/\"'\n"
16603 "\n"
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../fish/guestfish.pod:401
16608 msgid ""
16609 "A few commands require a list of strings to be passed.  For these, use a "
16610 "whitespace-separated list, enclosed in quotes.  Strings containing "
16611 "whitespace to be passed through must be enclosed in single quotes.  A "
16612 "literal single quote must be escaped with a backslash."
16613 msgstr ""
16614
16615 # type: verbatim
16616 #: ../fish/guestfish.pod:406
16617 #, no-wrap
16618 msgid ""
16619 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16620 " command \"/bin/echo 'foo      bar'\"\n"
16621 " command \"/bin/echo \\'foo\\'\"\n"
16622 "\n"
16623 msgstr ""
16624
16625 # type: =head1
16626 #: ../fish/guestfish.pod:410
16627 msgid "OPTIONAL ARGUMENTS"
16628 msgstr ""
16629
16630 # type: textblock
16631 #: ../fish/guestfish.pod:412
16632 msgid ""
16633 "Some commands take optional arguments.  These arguments appear in this "
16634 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16635 msgstr ""
16636
16637 # type: verbatim
16638 #: ../fish/guestfish.pod:416
16639 #, no-wrap
16640 msgid ""
16641 " add-drive-opts filename\n"
16642 "\n"
16643 msgstr ""
16644
16645 # type: verbatim
16646 #: ../fish/guestfish.pod:418
16647 #, no-wrap
16648 msgid ""
16649 " add-drive-opts filename readonly:true\n"
16650 "\n"
16651 msgstr ""
16652
16653 # type: verbatim
16654 #: ../fish/guestfish.pod:420
16655 #, no-wrap
16656 msgid ""
16657 " add-drive-opts filename format:qcow2 readonly:false\n"
16658 "\n"
16659 msgstr ""
16660
16661 # type: textblock
16662 #: ../fish/guestfish.pod:422
16663 msgid ""
16664 "Each optional argument can appear at most once.  All optional arguments must "
16665 "appear after the required ones."
16666 msgstr ""
16667
16668 # type: =head1
16669 #: ../fish/guestfish.pod:425
16670 msgid "NUMBERS"
16671 msgstr ""
16672
16673 # type: textblock
16674 #: ../fish/guestfish.pod:427
16675 msgid ""
16676 "This section applies to all commands which can take integers as parameters."
16677 msgstr ""
16678
16679 # type: =head2
16680 #: ../fish/guestfish.pod:430
16681 msgid "SIZE SUFFIX"
16682 msgstr ""
16683
16684 # type: textblock
16685 #: ../fish/guestfish.pod:432
16686 msgid ""
16687 "When the command takes a parameter measured in bytes, you can use one of the "
16688 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16689 msgstr ""
16690
16691 # type: =item
16692 #: ../fish/guestfish.pod:438
16693 msgid "B<k> or B<K> or B<KiB>"
16694 msgstr ""
16695
16696 # type: textblock
16697 #: ../fish/guestfish.pod:440
16698 msgid "The size in kilobytes (multiplied by 1024)."
16699 msgstr ""
16700
16701 # type: =item
16702 #: ../fish/guestfish.pod:442
16703 msgid "B<KB>"
16704 msgstr ""
16705
16706 # type: textblock
16707 #: ../fish/guestfish.pod:444
16708 msgid "The size in SI 1000 byte units."
16709 msgstr ""
16710
16711 # type: =item
16712 #: ../fish/guestfish.pod:446
16713 msgid "B<M> or B<MiB>"
16714 msgstr ""
16715
16716 # type: textblock
16717 #: ../fish/guestfish.pod:448
16718 msgid "The size in megabytes (multiplied by 1048576)."
16719 msgstr ""
16720
16721 # type: =item
16722 #: ../fish/guestfish.pod:450
16723 msgid "B<MB>"
16724 msgstr ""
16725
16726 # type: textblock
16727 #: ../fish/guestfish.pod:452
16728 msgid "The size in SI 1000000 byte units."
16729 msgstr ""
16730
16731 # type: =item
16732 #: ../fish/guestfish.pod:454
16733 msgid "B<G> or B<GiB>"
16734 msgstr ""
16735
16736 # type: textblock
16737 #: ../fish/guestfish.pod:456
16738 msgid "The size in gigabytes (multiplied by 2**30)."
16739 msgstr ""
16740
16741 # type: =item
16742 #: ../fish/guestfish.pod:458
16743 msgid "B<GB>"
16744 msgstr ""
16745
16746 # type: textblock
16747 #: ../fish/guestfish.pod:460
16748 msgid "The size in SI 10**9 byte units."
16749 msgstr ""
16750
16751 # type: =item
16752 #: ../fish/guestfish.pod:462
16753 msgid "B<T> or B<TiB>"
16754 msgstr ""
16755
16756 # type: textblock
16757 #: ../fish/guestfish.pod:464
16758 msgid "The size in terabytes (multiplied by 2**40)."
16759 msgstr ""
16760
16761 # type: =item
16762 #: ../fish/guestfish.pod:466
16763 msgid "B<TB>"
16764 msgstr ""
16765
16766 # type: textblock
16767 #: ../fish/guestfish.pod:468
16768 msgid "The size in SI 10**12 byte units."
16769 msgstr ""
16770
16771 # type: =item
16772 #: ../fish/guestfish.pod:470
16773 msgid "B<P> or B<PiB>"
16774 msgstr ""
16775
16776 # type: textblock
16777 #: ../fish/guestfish.pod:472
16778 msgid "The size in petabytes (multiplied by 2**50)."
16779 msgstr ""
16780
16781 # type: =item
16782 #: ../fish/guestfish.pod:474
16783 msgid "B<PB>"
16784 msgstr ""
16785
16786 # type: textblock
16787 #: ../fish/guestfish.pod:476
16788 msgid "The size in SI 10**15 byte units."
16789 msgstr ""
16790
16791 # type: =item
16792 #: ../fish/guestfish.pod:478
16793 msgid "B<E> or B<EiB>"
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:480
16798 msgid "The size in exabytes (multiplied by 2**60)."
16799 msgstr ""
16800
16801 # type: =item
16802 #: ../fish/guestfish.pod:482
16803 msgid "B<EB>"
16804 msgstr ""
16805
16806 # type: textblock
16807 #: ../fish/guestfish.pod:484
16808 msgid "The size in SI 10**18 byte units."
16809 msgstr ""
16810
16811 # type: =item
16812 #: ../fish/guestfish.pod:486
16813 msgid "B<Z> or B<ZiB>"
16814 msgstr ""
16815
16816 # type: textblock
16817 #: ../fish/guestfish.pod:488
16818 msgid "The size in zettabytes (multiplied by 2**70)."
16819 msgstr ""
16820
16821 # type: =item
16822 #: ../fish/guestfish.pod:490
16823 msgid "B<ZB>"
16824 msgstr ""
16825
16826 # type: textblock
16827 #: ../fish/guestfish.pod:492
16828 msgid "The size in SI 10**21 byte units."
16829 msgstr ""
16830
16831 # type: =item
16832 #: ../fish/guestfish.pod:494
16833 msgid "B<Y> or B<YiB>"
16834 msgstr ""
16835
16836 # type: textblock
16837 #: ../fish/guestfish.pod:496
16838 msgid "The size in yottabytes (multiplied by 2**80)."
16839 msgstr ""
16840
16841 # type: =item
16842 #: ../fish/guestfish.pod:498
16843 msgid "B<YB>"
16844 msgstr ""
16845
16846 # type: textblock
16847 #: ../fish/guestfish.pod:500
16848 msgid "The size in SI 10**24 byte units."
16849 msgstr ""
16850
16851 # type: verbatim
16852 #: ../fish/guestfish.pod:506
16853 #, no-wrap
16854 msgid ""
16855 " truncate-size /file 1G\n"
16856 "\n"
16857 msgstr ""
16858
16859 # type: textblock
16860 #: ../fish/guestfish.pod:508
16861 msgid "would truncate the file to 1 gigabyte."
16862 msgstr ""
16863
16864 # type: textblock
16865 #: ../fish/guestfish.pod:510
16866 msgid ""
16867 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16868 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16869 "suffix will probably not do what you expect."
16870 msgstr ""
16871
16872 # type: =head2
16873 #: ../fish/guestfish.pod:514
16874 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16875 msgstr ""
16876
16877 # type: textblock
16878 #: ../fish/guestfish.pod:516
16879 msgid ""
16880 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16881 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16882 msgstr ""
16883
16884 # type: verbatim
16885 #: ../fish/guestfish.pod:519
16886 #, no-wrap
16887 msgid ""
16888 " 1234      decimal number 1234\n"
16889 " 02322     octal number, equivalent to decimal 1234\n"
16890 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16891 "\n"
16892 msgstr ""
16893
16894 # type: textblock
16895 #: ../fish/guestfish.pod:523
16896 msgid ""
16897 "When using the C<chmod> command, you almost always want to specify an octal "
16898 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16899 "L<chmod(1)> program):"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish.pod:527
16904 #, no-wrap
16905 msgid ""
16906 " chmod 0777 /public  # OK\n"
16907 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16908 "\n"
16909 msgstr ""
16910
16911 # type: textblock
16912 #: ../fish/guestfish.pod:530
16913 msgid ""
16914 "Commands that return numbers usually print them in decimal, but some "
16915 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16916 "octal, preceeded by C<0>)."
16917 msgstr ""
16918
16919 # type: =head1
16920 #: ../fish/guestfish.pod:534
16921 msgid "WILDCARDS AND GLOBBING"
16922 msgstr ""
16923
16924 # type: textblock
16925 #: ../fish/guestfish.pod:536
16926 msgid ""
16927 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16928 "(globbing) by default.  So for example the following will not do what you "
16929 "expect:"
16930 msgstr ""
16931
16932 # type: verbatim
16933 #: ../fish/guestfish.pod:540
16934 #, no-wrap
16935 msgid ""
16936 " rm-rf /home/*\n"
16937 "\n"
16938 msgstr ""
16939
16940 # type: textblock
16941 #: ../fish/guestfish.pod:542
16942 msgid ""
16943 "Assuming you don't have a directory called literally C</home/*> then the "
16944 "above command will return an error."
16945 msgstr ""
16946
16947 # type: textblock
16948 #: ../fish/guestfish.pod:545
16949 msgid "To perform wildcard expansion, use the C<glob> command."
16950 msgstr ""
16951
16952 # type: verbatim
16953 #: ../fish/guestfish.pod:547
16954 #, no-wrap
16955 msgid ""
16956 " glob rm-rf /home/*\n"
16957 "\n"
16958 msgstr ""
16959
16960 # type: textblock
16961 #: ../fish/guestfish.pod:549
16962 msgid ""
16963 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16964 "many times), equivalent to:"
16965 msgstr ""
16966
16967 # type: verbatim
16968 #: ../fish/guestfish.pod:552
16969 #, no-wrap
16970 msgid ""
16971 " rm-rf /home/jim\n"
16972 " rm-rf /home/joe\n"
16973 " rm-rf /home/mary\n"
16974 "\n"
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:556
16979 msgid "C<glob> only works on simple guest paths and not on device names."
16980 msgstr ""
16981
16982 # type: textblock
16983 #: ../fish/guestfish.pod:558
16984 msgid ""
16985 "If you have several parameters, each containing a wildcard, then glob will "
16986 "perform a Cartesian product."
16987 msgstr ""
16988
16989 # type: =head1
16990 #: ../fish/guestfish.pod:561
16991 msgid "COMMENTS"
16992 msgstr ""
16993
16994 # type: textblock
16995 #: ../fish/guestfish.pod:563
16996 msgid ""
16997 "Any line which starts with a I<#> character is treated as a comment and "
16998 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16999 "a command.  For example:"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish.pod:567
17004 #, no-wrap
17005 msgid ""
17006 " # this is a comment\n"
17007 "         # this is a comment\n"
17008 " foo # NOT a comment\n"
17009 "\n"
17010 msgstr ""
17011
17012 # type: textblock
17013 #: ../fish/guestfish.pod:571
17014 msgid "Blank lines are also ignored."
17015 msgstr ""
17016
17017 # type: =head1
17018 #: ../fish/guestfish.pod:573
17019 msgid "RUNNING COMMANDS LOCALLY"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:575
17024 msgid ""
17025 "Any line which starts with a I<!> character is treated as a command sent to "
17026 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17027 msgstr ""
17028
17029 # type: verbatim
17030 #: ../fish/guestfish.pod:579
17031 #, no-wrap
17032 msgid ""
17033 " !mkdir local\n"
17034 " tgz-out /remote local/remote-data.tar.gz\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:582
17040 msgid ""
17041 "will create a directory C<local> on the host, and then export the contents "
17042 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17043 "(See C<tgz-out>)."
17044 msgstr ""
17045
17046 # type: textblock
17047 #: ../fish/guestfish.pod:586
17048 msgid ""
17049 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17050 "effect, due to the way that subprocesses work in Unix."
17051 msgstr ""
17052
17053 # type: =head1
17054 #: ../fish/guestfish.pod:589
17055 msgid "PIPES"
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:591
17060 msgid ""
17061 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17062 "command (a guestfish command) to the second command (any host command).  For "
17063 "example:"
17064 msgstr ""
17065
17066 # type: verbatim
17067 #: ../fish/guestfish.pod:595
17068 #, no-wrap
17069 msgid ""
17070 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17071 "\n"
17072 msgstr ""
17073
17074 # type: textblock
17075 #: ../fish/guestfish.pod:597
17076 msgid ""
17077 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17078 "program).  The above command would list all accounts in the guest filesystem "
17079 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../fish/guestfish.pod:602
17084 #, no-wrap
17085 msgid ""
17086 " hexdump /bin/ls | head\n"
17087 " list-devices | tail -1\n"
17088 " tgz-out / - | tar ztf -\n"
17089 "\n"
17090 msgstr ""
17091
17092 # type: textblock
17093 #: ../fish/guestfish.pod:606
17094 msgid ""
17095 "The space before the pipe symbol is required, any space after the pipe "
17096 "symbol is optional.  Everything after the pipe symbol is just passed "
17097 "straight to the host shell, so it can contain redirections, globs and "
17098 "anything else that makes sense on the host side."
17099 msgstr ""
17100
17101 # type: textblock
17102 #: ../fish/guestfish.pod:611
17103 msgid ""
17104 "To use a literal argument which begins with a pipe symbol, you have to quote "
17105 "it, eg:"
17106 msgstr ""
17107
17108 # type: verbatim
17109 #: ../fish/guestfish.pod:614
17110 #, no-wrap
17111 msgid ""
17112 " echo \"|\"\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: =head1
17117 #: ../fish/guestfish.pod:616
17118 msgid "HOME DIRECTORIES"
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:618
17123 msgid ""
17124 "If a parameter starts with the character C<~> then the tilde may be expanded "
17125 "as a home directory path (either C<~> for the current user's home directory, "
17126 "or C<~user> for another user)."
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:622
17131 msgid ""
17132 "Note that home directory expansion happens for users known I<on the host>, "
17133 "not in the guest filesystem."
17134 msgstr ""
17135
17136 # type: textblock
17137 #: ../fish/guestfish.pod:625
17138 msgid ""
17139 "To use a literal argument which begins with a tilde, you have to quote it, "
17140 "eg:"
17141 msgstr ""
17142
17143 # type: verbatim
17144 #: ../fish/guestfish.pod:628
17145 #, no-wrap
17146 msgid ""
17147 " echo \"~\"\n"
17148 "\n"
17149 msgstr ""
17150
17151 # type: textblock
17152 #: ../fish/guestfish.pod:632
17153 msgid ""
17154 "Libguestfs has some support for Linux guests encrypted according to the "
17155 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17156 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17157 "LUKS is supported."
17158 msgstr ""
17159
17160 # type: textblock
17161 #: ../fish/guestfish.pod:637
17162 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17163 msgstr ""
17164
17165 # type: verbatim
17166 #: ../fish/guestfish.pod:639
17167 #, no-wrap
17168 msgid ""
17169 " ><fs> vfs-type /dev/sda2\n"
17170 " crypto_LUKS\n"
17171 "\n"
17172 msgstr ""
17173
17174 # type: textblock
17175 #: ../fish/guestfish.pod:642
17176 msgid ""
17177 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17178 "device called C</dev/mapper/luksdev>."
17179 msgstr ""
17180
17181 # type: verbatim
17182 #: ../fish/guestfish.pod:645
17183 #, no-wrap
17184 msgid ""
17185 " ><fs> luks-open /dev/sda2 luksdev\n"
17186 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17187 "\n"
17188 msgstr ""
17189
17190 # type: textblock
17191 #: ../fish/guestfish.pod:648
17192 msgid ""
17193 "Finally you have to tell LVM to scan for volume groups on the newly created "
17194 "mapper device:"
17195 msgstr ""
17196
17197 # type: verbatim
17198 #: ../fish/guestfish.pod:651
17199 #, no-wrap
17200 msgid ""
17201 " vgscan\n"
17202 " vg-activate-all true\n"
17203 "\n"
17204 msgstr ""
17205
17206 # type: textblock
17207 #: ../fish/guestfish.pod:654
17208 msgid "The logical volume(s) can now be mounted in the usual way."
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:656
17213 msgid ""
17214 "Before closing a LUKS device you must unmount any logical volumes on it and "
17215 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17216 "one.  Then you can close the mapper device:"
17217 msgstr ""
17218
17219 # type: verbatim
17220 #: ../fish/guestfish.pod:660
17221 #, no-wrap
17222 msgid ""
17223 " vg-activate false /dev/VG\n"
17224 " luks-close /dev/mapper/luksdev\n"
17225 "\n"
17226 msgstr ""
17227
17228 # type: =head1
17229 #: ../fish/guestfish.pod:663
17230 msgid "WINDOWS PATHS"
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:665
17235 msgid ""
17236 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17237 "(with some limitations).  The following commands are equivalent:"
17238 msgstr ""
17239
17240 # type: verbatim
17241 #: ../fish/guestfish.pod:668
17242 #, no-wrap
17243 msgid ""
17244 " file /WINDOWS/system32/config/system.LOG\n"
17245 "\n"
17246 msgstr ""
17247
17248 # type: verbatim
17249 #: ../fish/guestfish.pod:670
17250 #, no-wrap
17251 msgid ""
17252 " file win:/windows/system32/config/system.log\n"
17253 "\n"
17254 msgstr ""
17255
17256 # type: verbatim
17257 #: ../fish/guestfish.pod:672
17258 #, no-wrap
17259 msgid ""
17260 " file win:\\windows\\system32\\config\\system.log\n"
17261 "\n"
17262 msgstr ""
17263
17264 # type: verbatim
17265 #: ../fish/guestfish.pod:674
17266 #, no-wrap
17267 msgid ""
17268 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17269 "\n"
17270 msgstr ""
17271
17272 # type: textblock
17273 #: ../fish/guestfish.pod:676
17274 msgid ""
17275 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17276 "handles case insensitivity like Windows would.  This only works in argument "
17277 "positions that expect a path."
17278 msgstr ""
17279
17280 # type: =head1
17281 #: ../fish/guestfish.pod:680
17282 msgid "UPLOADING AND DOWNLOADING FILES"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:682
17287 msgid ""
17288 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17289 "others which upload from or download to a local file, you can use the "
17290 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17291 msgstr ""
17292
17293 # type: verbatim
17294 #: ../fish/guestfish.pod:686
17295 #, no-wrap
17296 msgid ""
17297 " upload - /foo\n"
17298 "\n"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:688
17303 msgid ""
17304 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17305 msgstr ""
17306
17307 # type: verbatim
17308 #: ../fish/guestfish.pod:691
17309 #, no-wrap
17310 msgid ""
17311 " tar-out /etc - | tar tf -\n"
17312 "\n"
17313 msgstr ""
17314
17315 # type: textblock
17316 #: ../fish/guestfish.pod:693
17317 msgid ""
17318 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17319 "command (see L</PIPES>)."
17320 msgstr ""
17321
17322 # type: textblock
17323 #: ../fish/guestfish.pod:696
17324 msgid ""
17325 "When using C<-> to read from stdin, the input is read up to the end of "
17326 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17327 "some arbitrary end marker:"
17328 msgstr ""
17329
17330 # type: verbatim
17331 #: ../fish/guestfish.pod:700
17332 #, no-wrap
17333 msgid ""
17334 " upload -<<END /foo\n"
17335 " input line 1\n"
17336 " input line 2\n"
17337 " input line 3\n"
17338 " END\n"
17339 "\n"
17340 msgstr ""
17341
17342 # type: textblock
17343 #: ../fish/guestfish.pod:706
17344 msgid ""
17345 "Any string of characters can be used instead of C<END>.  The end marker must "
17346 "appear on a line of its own, without any preceeding or following characters "
17347 "(not even spaces)."
17348 msgstr ""
17349
17350 # type: textblock
17351 #: ../fish/guestfish.pod:710
17352 msgid ""
17353 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17354 "upload local files (so-called \"FileIn\" parameters in the generator)."
17355 msgstr ""
17356
17357 # type: =head1
17358 #: ../fish/guestfish.pod:713
17359 msgid "EXIT ON ERROR BEHAVIOUR"
17360 msgstr ""
17361
17362 # type: textblock
17363 #: ../fish/guestfish.pod:715
17364 msgid ""
17365 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17366 "taking commands from a human over a tty), and will exit on the first error "
17367 "in non-interactive mode (scripts, commands given on the command line)."
17368 msgstr ""
17369
17370 # type: textblock
17371 #: ../fish/guestfish.pod:720
17372 msgid ""
17373 "If you prefix a command with a I<-> character, then that command will not "
17374 "cause guestfish to exit, even if that (one) command returns an error."
17375 msgstr ""
17376
17377 # type: =head1
17378 #: ../fish/guestfish.pod:724
17379 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:726
17384 msgid ""
17385 "Guestfish can be remote-controlled over a socket.  This is useful "
17386 "particularly in shell scripts where you want to make several different "
17387 "changes to a filesystem, but you don't want the overhead of starting up a "
17388 "guestfish process each time."
17389 msgstr ""
17390
17391 # type: textblock
17392 #: ../fish/guestfish.pod:731
17393 msgid "Start a guestfish server process using:"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #: ../fish/guestfish.pod:733
17398 #, no-wrap
17399 msgid ""
17400 " eval `guestfish --listen`\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish.pod:735
17406 msgid "and then send it commands by doing:"
17407 msgstr ""
17408
17409 # type: verbatim
17410 #: ../fish/guestfish.pod:737
17411 #, no-wrap
17412 msgid ""
17413 " guestfish --remote cmd [...]\n"
17414 "\n"
17415 msgstr ""
17416
17417 # type: textblock
17418 #: ../fish/guestfish.pod:739
17419 msgid "To cause the server to exit, send it the exit command:"
17420 msgstr ""
17421
17422 # type: verbatim
17423 #: ../fish/guestfish.pod:741
17424 #, no-wrap
17425 msgid ""
17426 " guestfish --remote exit\n"
17427 "\n"
17428 msgstr ""
17429
17430 # type: textblock
17431 #: ../fish/guestfish.pod:743
17432 msgid ""
17433 "Note that the server will normally exit if there is an error in a command.  "
17434 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17435 "BEHAVIOUR>."
17436 msgstr ""
17437
17438 # type: =head2
17439 #: ../fish/guestfish.pod:747
17440 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17441 msgstr ""
17442
17443 # type: textblock
17444 #: ../fish/guestfish.pod:749
17445 msgid ""
17446 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17447 "is how the I<--remote> option knows where to send the commands.  You can "
17448 "have several guestfish listener processes running using:"
17449 msgstr ""
17450
17451 # type: verbatim
17452 #: ../fish/guestfish.pod:753
17453 #, no-wrap
17454 msgid ""
17455 " eval `guestfish --listen`\n"
17456 " pid1=$GUESTFISH_PID\n"
17457 " eval `guestfish --listen`\n"
17458 " pid2=$GUESTFISH_PID\n"
17459 " ...\n"
17460 " guestfish --remote=$pid1 cmd\n"
17461 " guestfish --remote=$pid2 cmd\n"
17462 "\n"
17463 msgstr ""
17464
17465 # type: =head2
17466 #: ../fish/guestfish.pod:761
17467 msgid "REMOTE CONTROL DETAILS"
17468 msgstr ""
17469
17470 # type: textblock
17471 #: ../fish/guestfish.pod:763
17472 msgid ""
17473 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
17474 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
17475 "and C<$PID> is the process ID of the server."
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish.pod:767
17480 msgid "Guestfish client and server versions must match exactly."
17481 msgstr ""
17482
17483 # type: =head1
17484 #: ../fish/guestfish.pod:769
17485 msgid "PREPARED DISK IMAGES"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish.pod:771
17490 msgid ""
17491 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17492 "preformatted disk images that guestfish can make for you to save typing.  "
17493 "This is particularly useful for testing purposes.  This option is used "
17494 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17495 "can be mixed with I<-a>)."
17496 msgstr ""
17497
17498 # type: textblock
17499 #: ../fish/guestfish.pod:777
17500 msgid ""
17501 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17502 "the second and so on.  Existing files in the current directory are "
17503 "I<overwritten>."
17504 msgstr ""
17505
17506 # type: textblock
17507 #: ../fish/guestfish.pod:781
17508 msgid ""
17509 "The type briefly describes how the disk should be sized, partitioned, how "
17510 "filesystem(s) should be created, and how content should be added.  "
17511 "Optionally the type can be followed by extra parameters, separated by C<:> "
17512 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17513 "allocated disk, containing a single partition, with the partition formatted "
17514 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17515 "disk instead."
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:789
17520 msgid "To list the available types and any extra parameters they take, run:"
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:793
17525 msgid ""
17526 "Note that the prepared filesystem is not mounted.  You would usually have to "
17527 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17528 msgstr ""
17529
17530 # type: textblock
17531 #: ../fish/guestfish.pod:797
17532 msgid ""
17533 "If any I<-N> or I<--new> options are given, the guest is automatically "
17534 "launched."
17535 msgstr ""
17536
17537 # type: textblock
17538 #: ../fish/guestfish.pod:802
17539 msgid "Create a 100MB disk with an ext4-formatted partition:"
17540 msgstr ""
17541
17542 # type: verbatim
17543 #: ../fish/guestfish.pod:804
17544 #, no-wrap
17545 msgid ""
17546 " guestfish -N fs:ext4\n"
17547 "\n"
17548 msgstr ""
17549
17550 # type: textblock
17551 #: ../fish/guestfish.pod:806
17552 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17553 msgstr ""
17554
17555 # type: verbatim
17556 #: ../fish/guestfish.pod:808
17557 #, no-wrap
17558 msgid ""
17559 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17560 "\n"
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish.pod:810
17565 msgid "Create a blank 200MB disk:"
17566 msgstr ""
17567
17568 # type: verbatim
17569 #: ../fish/guestfish.pod:812
17570 #, no-wrap
17571 msgid ""
17572 " guestfish -N disk:200M\n"
17573 "\n"
17574 msgstr ""
17575
17576 # type: =head1
17577 #: ../fish/guestfish.pod:814
17578 msgid "PROGRESS BARS"
17579 msgstr ""
17580
17581 # type: textblock
17582 #: ../fish/guestfish.pod:816
17583 msgid ""
17584 "Some (not all) long-running commands send progress notification messages as "
17585 "they are running.  Guestfish turns these messages into progress bars."
17586 msgstr ""
17587
17588 # type: textblock
17589 #: ../fish/guestfish.pod:820
17590 msgid ""
17591 "When a command that supports progress bars takes longer than two seconds to "
17592 "run, and if progress bars are enabled, then you will see one appearing below "
17593 "the command:"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #: ../fish/guestfish.pod:824
17598 #, no-wrap
17599 msgid ""
17600 " ><fs> copy-size /large-file /another-file 2048M\n"
17601 " / 10% [#####-----------------------------------------] 00:30\n"
17602 "\n"
17603 msgstr ""
17604
17605 # type: textblock
17606 #: ../fish/guestfish.pod:827
17607 msgid ""
17608 "The spinner on the left hand side moves round once for every progress "
17609 "notification received from the backend.  This is a (reasonably) golden "
17610 "assurance that the command is \"doing something\" even if the progress bar "
17611 "is not moving, because the command is able to send the progress "
17612 "notifications.  When the bar reaches 100% and the command finishes, the "
17613 "spinner disappears."
17614 msgstr ""
17615
17616 # type: textblock
17617 #: ../fish/guestfish.pod:834
17618 msgid ""
17619 "Progress bars are enabled by default when guestfish is used interactively.  "
17620 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17621 "and you can disable them completely using I<--no-progress-bars>."
17622 msgstr ""
17623
17624 # type: =head1
17625 #: ../fish/guestfish.pod:839
17626 msgid "GUESTFISH COMMANDS"
17627 msgstr ""
17628
17629 # type: textblock
17630 #: ../fish/guestfish.pod:841
17631 msgid ""
17632 "The commands in this section are guestfish convenience commands, in other "
17633 "words, they are not part of the L<guestfs(3)> API."
17634 msgstr ""
17635
17636 # type: =head2
17637 #: ../fish/guestfish.pod:844
17638 msgid "help"
17639 msgstr ""
17640
17641 # type: verbatim
17642 #: ../fish/guestfish.pod:846
17643 #, no-wrap
17644 msgid ""
17645 " help\n"
17646 " help cmd\n"
17647 "\n"
17648 msgstr ""
17649
17650 # type: textblock
17651 #: ../fish/guestfish.pod:849
17652 msgid ""
17653 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17654 "this displays detailed help for a command."
17655 msgstr ""
17656
17657 # type: =head2
17658 #: ../fish/guestfish.pod:852
17659 msgid "quit | exit"
17660 msgstr ""
17661
17662 # type: textblock
17663 #: ../fish/guestfish.pod:854
17664 msgid "This exits guestfish.  You can also use C<^D> key."
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:856
17669 msgid "@FISH_COMMANDS@"
17670 msgstr ""
17671
17672 # type: =head1
17673 #: ../fish/guestfish.pod:858
17674 msgid "COMMANDS"
17675 msgstr ""
17676
17677 # type: =head1
17678 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17679 msgid "EXIT CODE"
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:864
17684 msgid ""
17685 "guestfish returns 0 if the commands completed without error, or 1 if there "
17686 "was an error."
17687 msgstr ""
17688
17689 # type: =item
17690 #: ../fish/guestfish.pod:871
17691 msgid "EDITOR"
17692 msgstr ""
17693
17694 # type: textblock
17695 #: ../fish/guestfish.pod:873
17696 msgid ""
17697 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17698 "C<vi>."
17699 msgstr ""
17700
17701 # type: =item
17702 #: ../fish/guestfish.pod:876
17703 msgid "GUESTFISH_PID"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish.pod:878
17708 msgid ""
17709 "Used with the I<--remote> option to specify the remote guestfish process to "
17710 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17711 msgstr ""
17712
17713 # type: =item
17714 #: ../fish/guestfish.pod:882
17715 msgid "HEXEDITOR"
17716 msgstr ""
17717
17718 # type: textblock
17719 #: ../fish/guestfish.pod:884
17720 msgid ""
17721 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17722 "not specified, the external L<hexedit(1)> program is used."
17723 msgstr ""
17724
17725 # type: =item
17726 #: ../fish/guestfish.pod:888
17727 msgid "HOME"
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish.pod:890
17732 msgid ""
17733 "If compiled with GNU readline support, various files in the home directory "
17734 "can be used.  See L</FILES>."
17735 msgstr ""
17736
17737 # type: textblock
17738 #: ../fish/guestfish.pod:899
17739 msgid ""
17740 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17741 "effect as using the B<-v> option."
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:911
17746 msgid ""
17747 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17748 "the discussion of paths in L<guestfs(3)>."
17749 msgstr ""
17750
17751 # type: textblock
17752 #: ../fish/guestfish.pod:922
17753 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17754 msgstr ""
17755
17756 # type: =item
17757 #: ../fish/guestfish.pod:924
17758 msgid "PAGER"
17759 msgstr ""
17760
17761 # type: textblock
17762 #: ../fish/guestfish.pod:926
17763 msgid ""
17764 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17765 "C<more>."
17766 msgstr ""
17767
17768 # type: =head1
17769 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17770 msgid "FILES"
17771 msgstr ""
17772
17773 # type: =item
17774 #: ../fish/guestfish.pod:945
17775 msgid "$HOME/.guestfish"
17776 msgstr ""
17777
17778 # type: textblock
17779 #: ../fish/guestfish.pod:947
17780 msgid ""
17781 "If compiled with GNU readline support, then the command history is saved in "
17782 "this file."
17783 msgstr ""
17784
17785 # type: =item
17786 #: ../fish/guestfish.pod:950
17787 msgid "$HOME/.inputrc"
17788 msgstr ""
17789
17790 # type: =item
17791 #: ../fish/guestfish.pod:952
17792 msgid "/etc/inputrc"
17793 msgstr ""
17794
17795 # type: textblock
17796 #: ../fish/guestfish.pod:954
17797 msgid ""
17798 "If compiled with GNU readline support, then these files can be used to "
17799 "configure readline.  For further information, please see L<readline(3)/"
17800 "INITIALIZATION FILE>."
17801 msgstr ""
17802
17803 # type: textblock
17804 #: ../fish/guestfish.pod:958
17805 msgid "To write rules which only apply to guestfish, use:"
17806 msgstr ""
17807
17808 # type: verbatim
17809 #: ../fish/guestfish.pod:960
17810 #, no-wrap
17811 msgid ""
17812 " $if guestfish\n"
17813 " ...\n"
17814 " $endif\n"
17815 "\n"
17816 msgstr ""
17817
17818 # type: textblock
17819 #: ../fish/guestfish.pod:964
17820 msgid ""
17821 "Variables that you can set in inputrc that change the behaviour of guestfish "
17822 "in useful ways include:"
17823 msgstr ""
17824
17825 # type: =item
17826 #: ../fish/guestfish.pod:969
17827 msgid "completion-ignore-case (default: on)"
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:971
17832 msgid ""
17833 "By default, guestfish will ignore case when tab-completing paths on the "
17834 "disk.  Use:"
17835 msgstr ""
17836
17837 # type: verbatim
17838 #: ../fish/guestfish.pod:974
17839 #, no-wrap
17840 msgid ""
17841 " set completion-ignore-case off\n"
17842 "\n"
17843 msgstr ""
17844
17845 # type: textblock
17846 #: ../fish/guestfish.pod:976
17847 msgid "to make guestfish case sensitive."
17848 msgstr ""
17849
17850 # type: =item
17851 #: ../fish/guestfish.pod:980
17852 msgid "test1.img"
17853 msgstr ""
17854
17855 # type: =item
17856 #: ../fish/guestfish.pod:982
17857 msgid "test2.img (etc)"
17858 msgstr ""
17859
17860 # type: textblock
17861 #: ../fish/guestfish.pod:984
17862 msgid ""
17863 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17864 "will be created in the file C<test1.img> in the current directory.  The "
17865 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17866 "the same name will be overwritten."
17867 msgstr ""
17868
17869 # type: textblock
17870 #: ../fish/guestfish.pod:993
17871 msgid ""
17872 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17873 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17874 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17875 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17876 msgstr ""
17877
17878 # type: textblock
17879 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17880 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:598
17881 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
17882 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
17883 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
17884 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
17885 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17886 #: ../tools/virt-list-partitions.pl:273
17887 msgid ""
17888 "This program is free software; you can redistribute it and/or modify it "
17889 "under the terms of the GNU General Public License as published by the Free "
17890 "Software Foundation; either version 2 of the License, or (at your option) "
17891 "any later version."
17892 msgstr ""
17893
17894 # type: textblock
17895 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17896 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:603
17897 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
17898 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
17899 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
17900 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
17901 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17902 #: ../tools/virt-list-partitions.pl:278
17903 msgid ""
17904 "This program is distributed in the hope that it will be useful, but WITHOUT "
17905 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17906 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17907 "more details."
17908 msgstr ""
17909
17910 # type: textblock
17911 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17912 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:608
17913 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
17914 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
17915 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
17916 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
17917 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17918 #: ../tools/virt-list-partitions.pl:283
17919 msgid ""
17920 "You should have received a copy of the GNU General Public License along with "
17921 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17922 "Ave, Cambridge, MA 02139, USA."
17923 msgstr ""
17924
17925 # type: =head2
17926 #: ../fish/guestfish-actions.pod:1
17927 msgid "add-cdrom"
17928 msgstr ""
17929
17930 # type: verbatim
17931 #: ../fish/guestfish-actions.pod:3
17932 #, no-wrap
17933 msgid ""
17934 " add-cdrom filename\n"
17935 "\n"
17936 msgstr ""
17937
17938 # type: textblock
17939 #: ../fish/guestfish-actions.pod:15
17940 msgid ""
17941 "This call checks for the existence of C<filename>.  This stops you from "
17942 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17943 "and C<http:> URLs.  To specify those, use the general L</config> call "
17944 "instead."
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish-actions.pod:22
17949 msgid ""
17950 "If you just want to add an ISO file (often you use this as an efficient way "
17951 "to transfer large files into the guest), then you should probably use L</add-"
17952 "drive-ro> instead."
17953 msgstr ""
17954
17955 # type: =head2
17956 #: ../fish/guestfish-actions.pod:35
17957 msgid "add-drive"
17958 msgstr ""
17959
17960 # type: verbatim
17961 #: ../fish/guestfish-actions.pod:37
17962 #, no-wrap
17963 msgid ""
17964 " add-drive filename\n"
17965 "\n"
17966 msgstr ""
17967
17968 # type: textblock
17969 #: ../fish/guestfish-actions.pod:39
17970 msgid ""
17971 "This function is the equivalent of calling L</add-drive-opts> with no "
17972 "optional parameters, so the disk is added writable, with the format being "
17973 "detected automatically."
17974 msgstr ""
17975
17976 # type: textblock
17977 #: ../fish/guestfish-actions.pod:43
17978 msgid ""
17979 "Automatic detection of the format opens you up to a potential security hole "
17980 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17981 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17982 "you should think about replacing calls to this function with calls to L</add-"
17983 "drive-opts>, and specifying the format."
17984 msgstr ""
17985
17986 # type: =head2
17987 #: ../fish/guestfish-actions.pod:50
17988 msgid "add-drive-opts"
17989 msgstr ""
17990
17991 # type: =head2
17992 #: ../fish/guestfish-actions.pod:52
17993 msgid "add"
17994 msgstr ""
17995
17996 # type: verbatim
17997 #: ../fish/guestfish-actions.pod:54
17998 #, no-wrap
17999 msgid ""
18000 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18001 "\n"
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish-actions.pod:81
18006 msgid ""
18007 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
18008 "add-drive-ro>) then the format is automatically detected.  Possible formats "
18009 "include C<raw> and C<qcow2>."
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish-actions.pod:92
18014 msgid ""
18015 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
18016 "add-drive-with-if> call (q.v.)"
18017 msgstr ""
18018
18019 # type: textblock
18020 #: ../fish/guestfish-actions.pod:97
18021 msgid ""
18022 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18023 msgstr ""
18024
18025 # type: =head2
18026 #: ../fish/guestfish-actions.pod:99
18027 msgid "add-drive-ro"
18028 msgstr ""
18029
18030 # type: =head2
18031 #: ../fish/guestfish-actions.pod:101
18032 msgid "add-ro"
18033 msgstr ""
18034
18035 # type: verbatim
18036 #: ../fish/guestfish-actions.pod:103
18037 #, no-wrap
18038 msgid ""
18039 " add-drive-ro filename\n"
18040 "\n"
18041 msgstr ""
18042
18043 # type: textblock
18044 #: ../fish/guestfish-actions.pod:105
18045 msgid ""
18046 "This function is the equivalent of calling L</add-drive-opts> with the "
18047 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18048 "is added read-only, with the format being detected automatically."
18049 msgstr ""
18050
18051 # type: =head2
18052 #: ../fish/guestfish-actions.pod:110
18053 msgid "add-drive-ro-with-if"
18054 msgstr ""
18055
18056 # type: verbatim
18057 #: ../fish/guestfish-actions.pod:112
18058 #, no-wrap
18059 msgid ""
18060 " add-drive-ro-with-if filename iface\n"
18061 "\n"
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish-actions.pod:114
18066 msgid ""
18067 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18068 "interface emulation to use at run time."
18069 msgstr ""
18070
18071 # type: =head2
18072 #: ../fish/guestfish-actions.pod:124
18073 msgid "add-drive-with-if"
18074 msgstr ""
18075
18076 # type: verbatim
18077 #: ../fish/guestfish-actions.pod:126
18078 #, no-wrap
18079 msgid ""
18080 " add-drive-with-if filename iface\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish-actions.pod:128
18086 msgid ""
18087 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18088 "interface emulation to use at run time."
18089 msgstr ""
18090
18091 # type: =head2
18092 #: ../fish/guestfish-actions.pod:138
18093 msgid "aug-clear"
18094 msgstr ""
18095
18096 # type: verbatim
18097 #: ../fish/guestfish-actions.pod:140
18098 #, no-wrap
18099 msgid ""
18100 " aug-clear augpath\n"
18101 "\n"
18102 msgstr ""
18103
18104 # type: =head2
18105 #: ../fish/guestfish-actions.pod:145
18106 msgid "aug-close"
18107 msgstr ""
18108
18109 # type: verbatim
18110 #: ../fish/guestfish-actions.pod:147
18111 #, no-wrap
18112 msgid ""
18113 " aug-close\n"
18114 "\n"
18115 msgstr ""
18116
18117 # type: textblock
18118 #: ../fish/guestfish-actions.pod:149
18119 msgid ""
18120 "Close the current Augeas handle and free up any resources used by it.  After "
18121 "calling this, you have to call L</aug-init> again before you can use any "
18122 "other Augeas functions."
18123 msgstr ""
18124
18125 # type: =head2
18126 #: ../fish/guestfish-actions.pod:154
18127 msgid "aug-defnode"
18128 msgstr ""
18129
18130 # type: verbatim
18131 #: ../fish/guestfish-actions.pod:156
18132 #, no-wrap
18133 msgid ""
18134 " aug-defnode name expr val\n"
18135 "\n"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish-actions.pod:161
18140 msgid ""
18141 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18142 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18143 "containing that single node."
18144 msgstr ""
18145
18146 # type: =head2
18147 #: ../fish/guestfish-actions.pod:169
18148 msgid "aug-defvar"
18149 msgstr ""
18150
18151 # type: verbatim
18152 #: ../fish/guestfish-actions.pod:171
18153 #, no-wrap
18154 msgid ""
18155 " aug-defvar name expr\n"
18156 "\n"
18157 msgstr ""
18158
18159 # type: =head2
18160 #: ../fish/guestfish-actions.pod:180
18161 msgid "aug-get"
18162 msgstr ""
18163
18164 # type: verbatim
18165 #: ../fish/guestfish-actions.pod:182
18166 #, no-wrap
18167 msgid ""
18168 " aug-get augpath\n"
18169 "\n"
18170 msgstr ""
18171
18172 # type: =head2
18173 #: ../fish/guestfish-actions.pod:187
18174 msgid "aug-init"
18175 msgstr ""
18176
18177 # type: verbatim
18178 #: ../fish/guestfish-actions.pod:189
18179 #, no-wrap
18180 msgid ""
18181 " aug-init root flags\n"
18182 "\n"
18183 msgstr ""
18184
18185 # type: textblock
18186 #: ../fish/guestfish-actions.pod:195
18187 msgid "You must call this before using any other L</aug-*> commands."
18188 msgstr ""
18189
18190 # type: textblock
18191 #: ../fish/guestfish-actions.pod:230
18192 msgid "Do not load the tree in L</aug-init>."
18193 msgstr ""
18194
18195 # type: textblock
18196 #: ../fish/guestfish-actions.pod:234
18197 msgid "To close the handle, you can call L</aug-close>."
18198 msgstr ""
18199
18200 # type: =head2
18201 #: ../fish/guestfish-actions.pod:238
18202 msgid "aug-insert"
18203 msgstr ""
18204
18205 # type: verbatim
18206 #: ../fish/guestfish-actions.pod:240
18207 #, no-wrap
18208 msgid ""
18209 " aug-insert augpath label true|false\n"
18210 "\n"
18211 msgstr ""
18212
18213 # type: =head2
18214 #: ../fish/guestfish-actions.pod:250
18215 msgid "aug-load"
18216 msgstr ""
18217
18218 # type: verbatim
18219 #: ../fish/guestfish-actions.pod:252
18220 #, no-wrap
18221 msgid ""
18222 " aug-load\n"
18223 "\n"
18224 msgstr ""
18225
18226 # type: =head2
18227 #: ../fish/guestfish-actions.pod:259
18228 msgid "aug-ls"
18229 msgstr ""
18230
18231 # type: verbatim
18232 #: ../fish/guestfish-actions.pod:261
18233 #, no-wrap
18234 msgid ""
18235 " aug-ls augpath\n"
18236 "\n"
18237 msgstr ""
18238
18239 # type: textblock
18240 #: ../fish/guestfish-actions.pod:263
18241 msgid ""
18242 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18243 "resulting nodes into alphabetical order."
18244 msgstr ""
18245
18246 # type: =head2
18247 #: ../fish/guestfish-actions.pod:266
18248 msgid "aug-match"
18249 msgstr ""
18250
18251 # type: verbatim
18252 #: ../fish/guestfish-actions.pod:268
18253 #, no-wrap
18254 msgid ""
18255 " aug-match augpath\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: =head2
18260 #: ../fish/guestfish-actions.pod:274
18261 msgid "aug-mv"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #: ../fish/guestfish-actions.pod:276
18266 #, no-wrap
18267 msgid ""
18268 " aug-mv src dest\n"
18269 "\n"
18270 msgstr ""
18271
18272 # type: =head2
18273 #: ../fish/guestfish-actions.pod:281
18274 msgid "aug-rm"
18275 msgstr ""
18276
18277 # type: verbatim
18278 #: ../fish/guestfish-actions.pod:283
18279 #, no-wrap
18280 msgid ""
18281 " aug-rm augpath\n"
18282 "\n"
18283 msgstr ""
18284
18285 # type: =head2
18286 #: ../fish/guestfish-actions.pod:289
18287 msgid "aug-save"
18288 msgstr ""
18289
18290 # type: verbatim
18291 #: ../fish/guestfish-actions.pod:291
18292 #, no-wrap
18293 msgid ""
18294 " aug-save\n"
18295 "\n"
18296 msgstr ""
18297
18298 # type: textblock
18299 #: ../fish/guestfish-actions.pod:295
18300 msgid ""
18301 "The flags which were passed to L</aug-init> affect exactly how files are "
18302 "saved."
18303 msgstr ""
18304
18305 # type: =head2
18306 #: ../fish/guestfish-actions.pod:298
18307 msgid "aug-set"
18308 msgstr ""
18309
18310 # type: verbatim
18311 #: ../fish/guestfish-actions.pod:300
18312 #, no-wrap
18313 msgid ""
18314 " aug-set augpath val\n"
18315 "\n"
18316 msgstr ""
18317
18318 # type: textblock
18319 #: ../fish/guestfish-actions.pod:304
18320 msgid ""
18321 "In the Augeas API, it is possible to clear a node by setting the value to "
18322 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18323 "this call.  Instead you must use the L</aug-clear> call."
18324 msgstr ""
18325
18326 # type: =head2
18327 #: ../fish/guestfish-actions.pod:309
18328 msgid "available"
18329 msgstr ""
18330
18331 # type: verbatim
18332 #: ../fish/guestfish-actions.pod:311
18333 #, no-wrap
18334 msgid ""
18335 " available 'groups ...'\n"
18336 "\n"
18337 msgstr ""
18338
18339 # type: textblock
18340 #: ../fish/guestfish-actions.pod:317
18341 msgid ""
18342 "The libguestfs groups, and the functions that those groups correspond to, "
18343 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18344 "runtime by calling L</available-all-groups>."
18345 msgstr ""
18346
18347 # type: textblock
18348 #: ../fish/guestfish-actions.pod:341
18349 msgid "You must call L</launch> before calling this function."
18350 msgstr ""
18351
18352 # type: textblock
18353 #: ../fish/guestfish-actions.pod:363
18354 msgid ""
18355 "This call was added in version C<1.0.80>.  In previous versions of "
18356 "libguestfs all you could do would be to speculatively execute a command to "
18357 "find out if the daemon implemented it.  See also L</version>."
18358 msgstr ""
18359
18360 # type: =head2
18361 #: ../fish/guestfish-actions.pod:370
18362 msgid "available-all-groups"
18363 msgstr ""
18364
18365 # type: verbatim
18366 #: ../fish/guestfish-actions.pod:372
18367 #, no-wrap
18368 msgid ""
18369 " available-all-groups\n"
18370 "\n"
18371 msgstr ""
18372
18373 # type: textblock
18374 #: ../fish/guestfish-actions.pod:374
18375 msgid ""
18376 "This command returns a list of all optional groups that this daemon knows "
18377 "about.  Note this returns both supported and unsupported groups.  To find "
18378 "out which ones the daemon can actually support you have to call L</"
18379 "available> on each member of the returned list."
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish-actions.pod:380
18384 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18385 msgstr ""
18386
18387 # type: =head2
18388 #: ../fish/guestfish-actions.pod:382
18389 msgid "base64-in"
18390 msgstr ""
18391
18392 # type: verbatim
18393 #: ../fish/guestfish-actions.pod:384
18394 #, no-wrap
18395 msgid ""
18396 " base64-in (base64file|-) filename\n"
18397 "\n"
18398 msgstr ""
18399
18400 # type: textblock
18401 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
18402 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
18403 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
18404 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3932
18405 #: ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955
18406 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018
18407 #: ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081
18408 #: ../fish/guestfish-actions.pod:4104
18409 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18410 msgstr ""
18411
18412 # type: =head2
18413 #: ../fish/guestfish-actions.pod:391
18414 msgid "base64-out"
18415 msgstr ""
18416
18417 # type: verbatim
18418 #: ../fish/guestfish-actions.pod:393
18419 #, no-wrap
18420 msgid ""
18421 " base64-out filename (base64file|-)\n"
18422 "\n"
18423 msgstr ""
18424
18425 # type: =head2
18426 #: ../fish/guestfish-actions.pod:400
18427 msgid "blockdev-flushbufs"
18428 msgstr ""
18429
18430 # type: verbatim
18431 #: ../fish/guestfish-actions.pod:402
18432 #, no-wrap
18433 msgid ""
18434 " blockdev-flushbufs device\n"
18435 "\n"
18436 msgstr ""
18437
18438 # type: =head2
18439 #: ../fish/guestfish-actions.pod:409
18440 msgid "blockdev-getbsz"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #: ../fish/guestfish-actions.pod:411
18445 #, no-wrap
18446 msgid ""
18447 " blockdev-getbsz device\n"
18448 "\n"
18449 msgstr ""
18450
18451 # type: =head2
18452 #: ../fish/guestfish-actions.pod:420
18453 msgid "blockdev-getro"
18454 msgstr ""
18455
18456 # type: verbatim
18457 #: ../fish/guestfish-actions.pod:422
18458 #, no-wrap
18459 msgid ""
18460 " blockdev-getro device\n"
18461 "\n"
18462 msgstr ""
18463
18464 # type: =head2
18465 #: ../fish/guestfish-actions.pod:429
18466 msgid "blockdev-getsize64"
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish-actions.pod:431
18471 #, no-wrap
18472 msgid ""
18473 " blockdev-getsize64 device\n"
18474 "\n"
18475 msgstr ""
18476
18477 # type: textblock
18478 #: ../fish/guestfish-actions.pod:435
18479 msgid "See also L</blockdev-getsz>."
18480 msgstr ""
18481
18482 # type: =head2
18483 #: ../fish/guestfish-actions.pod:439
18484 msgid "blockdev-getss"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #: ../fish/guestfish-actions.pod:441
18489 #, no-wrap
18490 msgid ""
18491 " blockdev-getss device\n"
18492 "\n"
18493 msgstr ""
18494
18495 # type: textblock
18496 #: ../fish/guestfish-actions.pod:446
18497 msgid ""
18498 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18499 msgstr ""
18500
18501 # type: =head2
18502 #: ../fish/guestfish-actions.pod:451
18503 msgid "blockdev-getsz"
18504 msgstr ""
18505
18506 # type: verbatim
18507 #: ../fish/guestfish-actions.pod:453
18508 #, no-wrap
18509 msgid ""
18510 " blockdev-getsz device\n"
18511 "\n"
18512 msgstr ""
18513
18514 # type: textblock
18515 #: ../fish/guestfish-actions.pod:458
18516 msgid ""
18517 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18518 "blockdev-getsize64> for the more useful I<size in bytes>."
18519 msgstr ""
18520
18521 # type: =head2
18522 #: ../fish/guestfish-actions.pod:464
18523 msgid "blockdev-rereadpt"
18524 msgstr ""
18525
18526 # type: verbatim
18527 #: ../fish/guestfish-actions.pod:466
18528 #, no-wrap
18529 msgid ""
18530 " blockdev-rereadpt device\n"
18531 "\n"
18532 msgstr ""
18533
18534 # type: =head2
18535 #: ../fish/guestfish-actions.pod:472
18536 msgid "blockdev-setbsz"
18537 msgstr ""
18538
18539 # type: verbatim
18540 #: ../fish/guestfish-actions.pod:474
18541 #, no-wrap
18542 msgid ""
18543 " blockdev-setbsz device blocksize\n"
18544 "\n"
18545 msgstr ""
18546
18547 # type: =head2
18548 #: ../fish/guestfish-actions.pod:483
18549 msgid "blockdev-setro"
18550 msgstr ""
18551
18552 # type: verbatim
18553 #: ../fish/guestfish-actions.pod:485
18554 #, no-wrap
18555 msgid ""
18556 " blockdev-setro device\n"
18557 "\n"
18558 msgstr ""
18559
18560 # type: =head2
18561 #: ../fish/guestfish-actions.pod:491
18562 msgid "blockdev-setrw"
18563 msgstr ""
18564
18565 # type: verbatim
18566 #: ../fish/guestfish-actions.pod:493
18567 #, no-wrap
18568 msgid ""
18569 " blockdev-setrw device\n"
18570 "\n"
18571 msgstr ""
18572
18573 # type: =head2
18574 #: ../fish/guestfish-actions.pod:499
18575 msgid "case-sensitive-path"
18576 msgstr ""
18577
18578 # type: verbatim
18579 #: ../fish/guestfish-actions.pod:501
18580 #, no-wrap
18581 msgid ""
18582 " case-sensitive-path path\n"
18583 "\n"
18584 msgstr ""
18585
18586 # type: textblock
18587 #: ../fish/guestfish-actions.pod:525
18588 msgid ""
18589 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18590 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18591 "the directories were originally created under Windows)."
18592 msgstr ""
18593
18594 # type: textblock
18595 #: ../fish/guestfish-actions.pod:533
18596 msgid "See also L</realpath>."
18597 msgstr ""
18598
18599 # type: =head2
18600 #: ../fish/guestfish-actions.pod:535
18601 msgid "cat"
18602 msgstr ""
18603
18604 # type: verbatim
18605 #: ../fish/guestfish-actions.pod:537
18606 #, no-wrap
18607 msgid ""
18608 " cat path\n"
18609 "\n"
18610 msgstr ""
18611
18612 # type: textblock
18613 #: ../fish/guestfish-actions.pod:541
18614 msgid ""
18615 "Note that this function cannot correctly handle binary files (specifically, "
18616 "files containing C<\\0> character which is treated as end of string).  For "
18617 "those you need to use the L</read-file> or L</download> functions which have "
18618 "a more complex interface."
18619 msgstr ""
18620
18621 # type: =head2
18622 #: ../fish/guestfish-actions.pod:549
18623 msgid "checksum"
18624 msgstr ""
18625
18626 # type: verbatim
18627 #: ../fish/guestfish-actions.pod:551
18628 #, no-wrap
18629 msgid ""
18630 " checksum csumtype path\n"
18631 "\n"
18632 msgstr ""
18633
18634 # type: textblock
18635 #: ../fish/guestfish-actions.pod:594
18636 msgid "To get the checksum for a device, use L</checksum-device>."
18637 msgstr ""
18638
18639 # type: textblock
18640 #: ../fish/guestfish-actions.pod:596
18641 msgid "To get the checksums for many files, use L</checksums-out>."
18642 msgstr ""
18643
18644 # type: =head2
18645 #: ../fish/guestfish-actions.pod:598
18646 msgid "checksum-device"
18647 msgstr ""
18648
18649 # type: verbatim
18650 #: ../fish/guestfish-actions.pod:600
18651 #, no-wrap
18652 msgid ""
18653 " checksum-device csumtype device\n"
18654 "\n"
18655 msgstr ""
18656
18657 # type: textblock
18658 #: ../fish/guestfish-actions.pod:602
18659 msgid ""
18660 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18661 "device named C<device>.  For the types of checksums supported see the L</"
18662 "checksum> command."
18663 msgstr ""
18664
18665 # type: =head2
18666 #: ../fish/guestfish-actions.pod:606
18667 msgid "checksums-out"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish-actions.pod:608
18672 #, no-wrap
18673 msgid ""
18674 " checksums-out csumtype directory (sumsfile|-)\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: =head2
18679 #: ../fish/guestfish-actions.pod:624
18680 msgid "chmod"
18681 msgstr ""
18682
18683 # type: verbatim
18684 #: ../fish/guestfish-actions.pod:626
18685 #, no-wrap
18686 msgid ""
18687 " chmod mode path\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: =head2
18692 #: ../fish/guestfish-actions.pod:637
18693 msgid "chown"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #: ../fish/guestfish-actions.pod:639
18698 #, no-wrap
18699 msgid ""
18700 " chown owner group path\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: =head2
18705 #: ../fish/guestfish-actions.pod:647
18706 msgid "command"
18707 msgstr ""
18708
18709 # type: verbatim
18710 #: ../fish/guestfish-actions.pod:649
18711 #, no-wrap
18712 msgid ""
18713 " command 'arguments ...'\n"
18714 "\n"
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish-actions.pod:656
18719 msgid ""
18720 "The single parameter is an argv-style list of arguments.  The first element "
18721 "is the name of the program to run.  Subsequent elements are parameters.  The "
18722 "list must be non-empty (ie. must contain a program name).  Note that the "
18723 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18724 msgstr ""
18725
18726 # type: =head2
18727 #: ../fish/guestfish-actions.pod:684
18728 msgid "command-lines"
18729 msgstr ""
18730
18731 # type: verbatim
18732 #: ../fish/guestfish-actions.pod:686
18733 #, no-wrap
18734 msgid ""
18735 " command-lines 'arguments ...'\n"
18736 "\n"
18737 msgstr ""
18738
18739 # type: textblock
18740 #: ../fish/guestfish-actions.pod:688
18741 msgid ""
18742 "This is the same as L</command>, but splits the result into a list of lines."
18743 msgstr ""
18744
18745 # type: textblock
18746 #: ../fish/guestfish-actions.pod:691
18747 msgid "See also: L</sh-lines>"
18748 msgstr ""
18749
18750 # type: =head2
18751 #: ../fish/guestfish-actions.pod:696
18752 msgid "config"
18753 msgstr ""
18754
18755 # type: verbatim
18756 #: ../fish/guestfish-actions.pod:698
18757 #, no-wrap
18758 msgid ""
18759 " config qemuparam qemuvalue\n"
18760 "\n"
18761 msgstr ""
18762
18763 # type: =head2
18764 #: ../fish/guestfish-actions.pod:709
18765 msgid "copy-size"
18766 msgstr ""
18767
18768 # type: verbatim
18769 #: ../fish/guestfish-actions.pod:711
18770 #, no-wrap
18771 msgid ""
18772 " copy-size src dest size\n"
18773 "\n"
18774 msgstr ""
18775
18776 # type: =head2
18777 #: ../fish/guestfish-actions.pod:719
18778 msgid "cp"
18779 msgstr ""
18780
18781 # type: verbatim
18782 #: ../fish/guestfish-actions.pod:721
18783 #, no-wrap
18784 msgid ""
18785 " cp src dest\n"
18786 "\n"
18787 msgstr ""
18788
18789 # type: =head2
18790 #: ../fish/guestfish-actions.pod:726
18791 msgid "cp-a"
18792 msgstr ""
18793
18794 # type: verbatim
18795 #: ../fish/guestfish-actions.pod:728
18796 #, no-wrap
18797 msgid ""
18798 " cp-a src dest\n"
18799 "\n"
18800 msgstr ""
18801
18802 # type: =head2
18803 #: ../fish/guestfish-actions.pod:733
18804 msgid "dd"
18805 msgstr ""
18806
18807 # type: verbatim
18808 #: ../fish/guestfish-actions.pod:735
18809 #, no-wrap
18810 msgid ""
18811 " dd src dest\n"
18812 "\n"
18813 msgstr ""
18814
18815 # type: textblock
18816 #: ../fish/guestfish-actions.pod:742
18817 msgid ""
18818 "If the destination is a device, it must be as large or larger than the "
18819 "source file or device, otherwise the copy will fail.  This command cannot do "
18820 "partial copies (see L</copy-size>)."
18821 msgstr ""
18822
18823 # type: =head2
18824 #: ../fish/guestfish-actions.pod:746
18825 msgid "debug"
18826 msgstr ""
18827
18828 # type: verbatim
18829 #: ../fish/guestfish-actions.pod:748
18830 #, no-wrap
18831 msgid ""
18832 " debug subcmd 'extraargs ...'\n"
18833 "\n"
18834 msgstr ""
18835
18836 # type: textblock
18837 #: ../fish/guestfish-actions.pod:750
18838 msgid ""
18839 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18840 "daemon) that runs inside the qemu subprocess."
18841 msgstr ""
18842
18843 # type: =head2
18844 #: ../fish/guestfish-actions.pod:758
18845 msgid "debug-upload"
18846 msgstr ""
18847
18848 # type: verbatim
18849 #: ../fish/guestfish-actions.pod:760
18850 #, no-wrap
18851 msgid ""
18852 " debug-upload (filename|-) tmpname mode\n"
18853 "\n"
18854 msgstr ""
18855
18856 # type: textblock
18857 #: ../fish/guestfish-actions.pod:762
18858 msgid ""
18859 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18860 msgstr ""
18861
18862 # type: =head2
18863 #: ../fish/guestfish-actions.pod:771
18864 msgid "df"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #: ../fish/guestfish-actions.pod:773
18869 #, no-wrap
18870 msgid ""
18871 " df\n"
18872 "\n"
18873 msgstr ""
18874
18875 # type: =head2
18876 #: ../fish/guestfish-actions.pod:781
18877 msgid "df-h"
18878 msgstr ""
18879
18880 # type: verbatim
18881 #: ../fish/guestfish-actions.pod:783
18882 #, no-wrap
18883 msgid ""
18884 " df-h\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: =head2
18889 #: ../fish/guestfish-actions.pod:792
18890 msgid "dmesg"
18891 msgstr ""
18892
18893 # type: verbatim
18894 #: ../fish/guestfish-actions.pod:794
18895 #, no-wrap
18896 msgid ""
18897 " dmesg\n"
18898 "\n"
18899 msgstr ""
18900
18901 # type: textblock
18902 #: ../fish/guestfish-actions.pod:800
18903 msgid ""
18904 "Another way to get the same information is to enable verbose messages with "
18905 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18906 "before running the program."
18907 msgstr ""
18908
18909 # type: =head2
18910 #: ../fish/guestfish-actions.pod:805
18911 msgid "download"
18912 msgstr ""
18913
18914 # type: verbatim
18915 #: ../fish/guestfish-actions.pod:807
18916 #, no-wrap
18917 msgid ""
18918 " download remotefilename (filename|-)\n"
18919 "\n"
18920 msgstr ""
18921
18922 # type: textblock
18923 #: ../fish/guestfish-actions.pod:814
18924 msgid "See also L</upload>, L</cat>."
18925 msgstr ""
18926
18927 # type: =head2
18928 #: ../fish/guestfish-actions.pod:818
18929 msgid "download-offset"
18930 msgstr ""
18931
18932 # type: verbatim
18933 #: ../fish/guestfish-actions.pod:820
18934 #, no-wrap
18935 msgid ""
18936 " download-offset remotefilename (filename|-) offset size\n"
18937 "\n"
18938 msgstr ""
18939
18940 # type: textblock
18941 #: ../fish/guestfish-actions.pod:828
18942 msgid ""
18943 "Note that there is no limit on the amount of data that can be downloaded "
18944 "with this call, unlike with L</pread>, and this call always reads the full "
18945 "amount unless an error occurs."
18946 msgstr ""
18947
18948 # type: textblock
18949 #: ../fish/guestfish-actions.pod:833
18950 msgid "See also L</download>, L</pread>."
18951 msgstr ""
18952
18953 # type: =head2
18954 #: ../fish/guestfish-actions.pod:837
18955 msgid "drop-caches"
18956 msgstr ""
18957
18958 # type: verbatim
18959 #: ../fish/guestfish-actions.pod:839
18960 #, no-wrap
18961 msgid ""
18962 " drop-caches whattodrop\n"
18963 "\n"
18964 msgstr ""
18965
18966 # type: =head2
18967 #: ../fish/guestfish-actions.pod:851
18968 msgid "du"
18969 msgstr ""
18970
18971 # type: verbatim
18972 #: ../fish/guestfish-actions.pod:853
18973 #, no-wrap
18974 msgid ""
18975 " du path\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: =head2
18980 #: ../fish/guestfish-actions.pod:865
18981 msgid "e2fsck-f"
18982 msgstr ""
18983
18984 # type: verbatim
18985 #: ../fish/guestfish-actions.pod:867
18986 #, no-wrap
18987 msgid ""
18988 " e2fsck-f device\n"
18989 "\n"
18990 msgstr ""
18991
18992 # type: textblock
18993 #: ../fish/guestfish-actions.pod:873
18994 msgid ""
18995 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18996 "should use L</fsck>."
18997 msgstr ""
18998
18999 # type: =head2
19000 #: ../fish/guestfish-actions.pod:876
19001 msgid "echo-daemon"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #: ../fish/guestfish-actions.pod:878
19006 #, no-wrap
19007 msgid ""
19008 " echo-daemon 'words ...'\n"
19009 "\n"
19010 msgstr ""
19011
19012 # type: textblock
19013 #: ../fish/guestfish-actions.pod:885
19014 msgid "See also L</ping-daemon>."
19015 msgstr ""
19016
19017 # type: =head2
19018 #: ../fish/guestfish-actions.pod:887
19019 msgid "egrep"
19020 msgstr ""
19021
19022 # type: verbatim
19023 #: ../fish/guestfish-actions.pod:889
19024 #, no-wrap
19025 msgid ""
19026 " egrep regex path\n"
19027 "\n"
19028 msgstr ""
19029
19030 # type: =head2
19031 #: ../fish/guestfish-actions.pod:897
19032 msgid "egrepi"
19033 msgstr ""
19034
19035 # type: verbatim
19036 #: ../fish/guestfish-actions.pod:899
19037 #, no-wrap
19038 msgid ""
19039 " egrepi regex path\n"
19040 "\n"
19041 msgstr ""
19042
19043 # type: =head2
19044 #: ../fish/guestfish-actions.pod:907
19045 msgid "equal"
19046 msgstr ""
19047
19048 # type: verbatim
19049 #: ../fish/guestfish-actions.pod:909
19050 #, no-wrap
19051 msgid ""
19052 " equal file1 file2\n"
19053 "\n"
19054 msgstr ""
19055
19056 # type: =head2
19057 #: ../fish/guestfish-actions.pod:916
19058 msgid "exists"
19059 msgstr ""
19060
19061 # type: verbatim
19062 #: ../fish/guestfish-actions.pod:918
19063 #, no-wrap
19064 msgid ""
19065 " exists path\n"
19066 "\n"
19067 msgstr ""
19068
19069 # type: textblock
19070 #: ../fish/guestfish-actions.pod:923
19071 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19072 msgstr ""
19073
19074 # type: =head2
19075 #: ../fish/guestfish-actions.pod:925
19076 msgid "fallocate"
19077 msgstr ""
19078
19079 # type: verbatim
19080 #: ../fish/guestfish-actions.pod:927
19081 #, no-wrap
19082 msgid ""
19083 " fallocate path len\n"
19084 "\n"
19085 msgstr ""
19086
19087 # type: =head2
19088 #: ../fish/guestfish-actions.pod:944
19089 msgid "fallocate64"
19090 msgstr ""
19091
19092 # type: verbatim
19093 #: ../fish/guestfish-actions.pod:946
19094 #, no-wrap
19095 msgid ""
19096 " fallocate64 path len\n"
19097 "\n"
19098 msgstr ""
19099
19100 # type: textblock
19101 #: ../fish/guestfish-actions.pod:952
19102 msgid ""
19103 "Note that this call allocates disk blocks for the file.  To create a sparse "
19104 "file use L</truncate-size> instead."
19105 msgstr ""
19106
19107 # type: textblock
19108 #: ../fish/guestfish-actions.pod:955
19109 msgid ""
19110 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19111 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19112 "maximum size of files created through that call to 1GB."
19113 msgstr ""
19114
19115 # type: =head2
19116 #: ../fish/guestfish-actions.pod:964
19117 msgid "fgrep"
19118 msgstr ""
19119
19120 # type: verbatim
19121 #: ../fish/guestfish-actions.pod:966
19122 #, no-wrap
19123 msgid ""
19124 " fgrep pattern path\n"
19125 "\n"
19126 msgstr ""
19127
19128 # type: =head2
19129 #: ../fish/guestfish-actions.pod:974
19130 msgid "fgrepi"
19131 msgstr ""
19132
19133 # type: verbatim
19134 #: ../fish/guestfish-actions.pod:976
19135 #, no-wrap
19136 msgid ""
19137 " fgrepi pattern path\n"
19138 "\n"
19139 msgstr ""
19140
19141 # type: =head2
19142 #: ../fish/guestfish-actions.pod:984
19143 msgid "file"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #: ../fish/guestfish-actions.pod:986
19148 #, no-wrap
19149 msgid ""
19150 " file path\n"
19151 "\n"
19152 msgstr ""
19153
19154 # type: textblock
19155 #: ../fish/guestfish-actions.pod:998
19156 msgid ""
19157 "This command can also be used on C</dev/> devices (and partitions, LV "
19158 "names).  You can for example use this to determine if a device contains a "
19159 "filesystem, although it's usually better to use L</vfs-type>."
19160 msgstr ""
19161
19162 # type: =head2
19163 #: ../fish/guestfish-actions.pod:1008
19164 msgid "file-architecture"
19165 msgstr ""
19166
19167 # type: verbatim
19168 #: ../fish/guestfish-actions.pod:1010
19169 #, no-wrap
19170 msgid ""
19171 " file-architecture filename\n"
19172 "\n"
19173 msgstr ""
19174
19175 # type: =head2
19176 #: ../fish/guestfish-actions.pod:1113
19177 msgid "filesize"
19178 msgstr ""
19179
19180 # type: verbatim
19181 #: ../fish/guestfish-actions.pod:1115
19182 #, no-wrap
19183 msgid ""
19184 " filesize file\n"
19185 "\n"
19186 msgstr ""
19187
19188 # type: textblock
19189 #: ../fish/guestfish-actions.pod:1119
19190 msgid ""
19191 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19192 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19193 msgstr ""
19194
19195 # type: =head2
19196 #: ../fish/guestfish-actions.pod:1123
19197 msgid "fill"
19198 msgstr ""
19199
19200 # type: verbatim
19201 #: ../fish/guestfish-actions.pod:1125
19202 #, no-wrap
19203 msgid ""
19204 " fill c len path\n"
19205 "\n"
19206 msgstr ""
19207
19208 # type: textblock
19209 #: ../fish/guestfish-actions.pod:1131
19210 msgid ""
19211 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19212 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19213 "L</fill-pattern>."
19214 msgstr ""
19215
19216 # type: =head2
19217 #: ../fish/guestfish-actions.pod:1136
19218 msgid "fill-pattern"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #: ../fish/guestfish-actions.pod:1138
19223 #, no-wrap
19224 msgid ""
19225 " fill-pattern pattern len path\n"
19226 "\n"
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:1140
19231 msgid ""
19232 "This function is like L</fill> except that it creates a new file of length "
19233 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19234 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19235 "bytes."
19236 msgstr ""
19237
19238 # type: =head2
19239 #: ../fish/guestfish-actions.pod:1145
19240 msgid "find"
19241 msgstr ""
19242
19243 # type: verbatim
19244 #: ../fish/guestfish-actions.pod:1147
19245 #, no-wrap
19246 msgid ""
19247 " find directory\n"
19248 "\n"
19249 msgstr ""
19250
19251 # type: textblock
19252 #: ../fish/guestfish-actions.pod:1161
19253 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19254 msgstr ""
19255
19256 # type: textblock
19257 #: ../fish/guestfish-actions.pod:1174
19258 msgid "See also L</find0>."
19259 msgstr ""
19260
19261 # type: =head2
19262 #: ../fish/guestfish-actions.pod:1179
19263 msgid "find0"
19264 msgstr ""
19265
19266 # type: verbatim
19267 #: ../fish/guestfish-actions.pod:1181
19268 #, no-wrap
19269 msgid ""
19270 " find0 directory (files|-)\n"
19271 "\n"
19272 msgstr ""
19273
19274 # type: textblock
19275 #: ../fish/guestfish-actions.pod:1187
19276 msgid ""
19277 "This command works the same way as L</find> with the following exceptions:"
19278 msgstr ""
19279
19280 # type: =head2
19281 #: ../fish/guestfish-actions.pod:1214
19282 msgid "findfs-label"
19283 msgstr ""
19284
19285 # type: verbatim
19286 #: ../fish/guestfish-actions.pod:1216
19287 #, no-wrap
19288 msgid ""
19289 " findfs-label label\n"
19290 "\n"
19291 msgstr ""
19292
19293 # type: textblock
19294 #: ../fish/guestfish-actions.pod:1222
19295 msgid "To find the label of a filesystem, use L</vfs-label>."
19296 msgstr ""
19297
19298 # type: =head2
19299 #: ../fish/guestfish-actions.pod:1224
19300 msgid "findfs-uuid"
19301 msgstr ""
19302
19303 # type: verbatim
19304 #: ../fish/guestfish-actions.pod:1226
19305 #, no-wrap
19306 msgid ""
19307 " findfs-uuid uuid\n"
19308 "\n"
19309 msgstr ""
19310
19311 # type: textblock
19312 #: ../fish/guestfish-actions.pod:1232
19313 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19314 msgstr ""
19315
19316 # type: =head2
19317 #: ../fish/guestfish-actions.pod:1234
19318 msgid "fsck"
19319 msgstr ""
19320
19321 # type: verbatim
19322 #: ../fish/guestfish-actions.pod:1236
19323 #, no-wrap
19324 msgid ""
19325 " fsck fstype device\n"
19326 "\n"
19327 msgstr ""
19328
19329 # type: =head2
19330 #: ../fish/guestfish-actions.pod:1266
19331 msgid "get-append"
19332 msgstr ""
19333
19334 # type: verbatim
19335 #: ../fish/guestfish-actions.pod:1268
19336 #, no-wrap
19337 msgid ""
19338 " get-append\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: =head2
19343 #: ../fish/guestfish-actions.pod:1275
19344 msgid "get-autosync"
19345 msgstr ""
19346
19347 # type: verbatim
19348 #: ../fish/guestfish-actions.pod:1277
19349 #, no-wrap
19350 msgid ""
19351 " get-autosync\n"
19352 "\n"
19353 msgstr ""
19354
19355 # type: =head2
19356 #: ../fish/guestfish-actions.pod:1281
19357 msgid "get-direct"
19358 msgstr ""
19359
19360 # type: verbatim
19361 #: ../fish/guestfish-actions.pod:1283
19362 #, no-wrap
19363 msgid ""
19364 " get-direct\n"
19365 "\n"
19366 msgstr ""
19367
19368 # type: =head2
19369 #: ../fish/guestfish-actions.pod:1287
19370 msgid "get-e2label"
19371 msgstr ""
19372
19373 # type: verbatim
19374 #: ../fish/guestfish-actions.pod:1289
19375 #, no-wrap
19376 msgid ""
19377 " get-e2label device\n"
19378 "\n"
19379 msgstr ""
19380
19381 # type: =head2
19382 #: ../fish/guestfish-actions.pod:1301
19383 msgid "get-e2uuid"
19384 msgstr ""
19385
19386 # type: verbatim
19387 #: ../fish/guestfish-actions.pod:1303
19388 #, no-wrap
19389 msgid ""
19390 " get-e2uuid device\n"
19391 "\n"
19392 msgstr ""
19393
19394 # type: =head2
19395 #: ../fish/guestfish-actions.pod:1315
19396 msgid "get-memsize"
19397 msgstr ""
19398
19399 # type: verbatim
19400 #: ../fish/guestfish-actions.pod:1317
19401 #, no-wrap
19402 msgid ""
19403 " get-memsize\n"
19404 "\n"
19405 msgstr ""
19406
19407 # type: textblock
19408 #: ../fish/guestfish-actions.pod:1322
19409 msgid ""
19410 "If L</set-memsize> was not called on this handle, and if "
19411 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19412 "value for memsize."
19413 msgstr ""
19414
19415 # type: =head2
19416 #: ../fish/guestfish-actions.pod:1329
19417 msgid "get-network"
19418 msgstr ""
19419
19420 # type: verbatim
19421 #: ../fish/guestfish-actions.pod:1331
19422 #, no-wrap
19423 msgid ""
19424 " get-network\n"
19425 "\n"
19426 msgstr ""
19427
19428 # type: =head2
19429 #: ../fish/guestfish-actions.pod:1335
19430 msgid "get-path"
19431 msgstr ""
19432
19433 # type: verbatim
19434 #: ../fish/guestfish-actions.pod:1337
19435 #, no-wrap
19436 msgid ""
19437 " get-path\n"
19438 "\n"
19439 msgstr ""
19440
19441 # type: =head2
19442 #: ../fish/guestfish-actions.pod:1344
19443 msgid "get-pid"
19444 msgstr ""
19445
19446 # type: =head2
19447 #: ../fish/guestfish-actions.pod:1346
19448 msgid "pid"
19449 msgstr ""
19450
19451 # type: verbatim
19452 #: ../fish/guestfish-actions.pod:1348
19453 #, no-wrap
19454 msgid ""
19455 " get-pid\n"
19456 "\n"
19457 msgstr ""
19458
19459 # type: =head2
19460 #: ../fish/guestfish-actions.pod:1355
19461 msgid "get-qemu"
19462 msgstr ""
19463
19464 # type: verbatim
19465 #: ../fish/guestfish-actions.pod:1357
19466 #, no-wrap
19467 msgid ""
19468 " get-qemu\n"
19469 "\n"
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:1364
19474 msgid "get-recovery-proc"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:1366
19479 #, no-wrap
19480 msgid ""
19481 " get-recovery-proc\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:1370
19487 msgid "get-selinux"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:1372
19492 #, no-wrap
19493 msgid ""
19494 " get-selinux\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: textblock
19499 #: ../fish/guestfish-actions.pod:1374
19500 msgid ""
19501 "This returns the current setting of the selinux flag which is passed to the "
19502 "appliance at boot time.  See L</set-selinux>."
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:1380
19507 msgid "get-state"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:1382
19512 #, no-wrap
19513 msgid ""
19514 " get-state\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:1389
19520 msgid "get-trace"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:1391
19525 #, no-wrap
19526 msgid ""
19527 " get-trace\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: =head2
19532 #: ../fish/guestfish-actions.pod:1395
19533 msgid "get-umask"
19534 msgstr ""
19535
19536 # type: verbatim
19537 #: ../fish/guestfish-actions.pod:1397
19538 #, no-wrap
19539 msgid ""
19540 " get-umask\n"
19541 "\n"
19542 msgstr ""
19543
19544 # type: textblock
19545 #: ../fish/guestfish-actions.pod:1399
19546 msgid ""
19547 "Return the current umask.  By default the umask is C<022> unless it has been "
19548 "set by calling L</umask>."
19549 msgstr ""
19550
19551 # type: =head2
19552 #: ../fish/guestfish-actions.pod:1402
19553 msgid "get-verbose"
19554 msgstr ""
19555
19556 # type: verbatim
19557 #: ../fish/guestfish-actions.pod:1404
19558 #, no-wrap
19559 msgid ""
19560 " get-verbose\n"
19561 "\n"
19562 msgstr ""
19563
19564 # type: =head2
19565 #: ../fish/guestfish-actions.pod:1408
19566 msgid "getcon"
19567 msgstr ""
19568
19569 # type: verbatim
19570 #: ../fish/guestfish-actions.pod:1410
19571 #, no-wrap
19572 msgid ""
19573 " getcon\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: textblock
19578 #: ../fish/guestfish-actions.pod:1414
19579 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19580 msgstr ""
19581
19582 # type: =head2
19583 #: ../fish/guestfish-actions.pod:1417
19584 msgid "getxattrs"
19585 msgstr ""
19586
19587 # type: verbatim
19588 #: ../fish/guestfish-actions.pod:1419
19589 #, no-wrap
19590 msgid ""
19591 " getxattrs path\n"
19592 "\n"
19593 msgstr ""
19594
19595 # type: textblock
19596 #: ../fish/guestfish-actions.pod:1427
19597 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19598 msgstr ""
19599
19600 # type: =head2
19601 #: ../fish/guestfish-actions.pod:1429
19602 msgid "glob-expand"
19603 msgstr ""
19604
19605 # type: verbatim
19606 #: ../fish/guestfish-actions.pod:1431
19607 #, no-wrap
19608 msgid ""
19609 " glob-expand pattern\n"
19610 "\n"
19611 msgstr ""
19612
19613 # type: =head2
19614 #: ../fish/guestfish-actions.pod:1444
19615 msgid "grep"
19616 msgstr ""
19617
19618 # type: verbatim
19619 #: ../fish/guestfish-actions.pod:1446
19620 #, no-wrap
19621 msgid ""
19622 " grep regex path\n"
19623 "\n"
19624 msgstr ""
19625
19626 # type: =head2
19627 #: ../fish/guestfish-actions.pod:1454
19628 msgid "grepi"
19629 msgstr ""
19630
19631 # type: verbatim
19632 #: ../fish/guestfish-actions.pod:1456
19633 #, no-wrap
19634 msgid ""
19635 " grepi regex path\n"
19636 "\n"
19637 msgstr ""
19638
19639 # type: =head2
19640 #: ../fish/guestfish-actions.pod:1464
19641 msgid "grub-install"
19642 msgstr ""
19643
19644 # type: verbatim
19645 #: ../fish/guestfish-actions.pod:1466
19646 #, no-wrap
19647 msgid ""
19648 " grub-install root device\n"
19649 "\n"
19650 msgstr ""
19651
19652 # type: =head2
19653 #: ../fish/guestfish-actions.pod:1482
19654 msgid "head"
19655 msgstr ""
19656
19657 # type: verbatim
19658 #: ../fish/guestfish-actions.pod:1484
19659 #, no-wrap
19660 msgid ""
19661 " head path\n"
19662 "\n"
19663 msgstr ""
19664
19665 # type: =head2
19666 #: ../fish/guestfish-actions.pod:1492
19667 msgid "head-n"
19668 msgstr ""
19669
19670 # type: verbatim
19671 #: ../fish/guestfish-actions.pod:1494
19672 #, no-wrap
19673 msgid ""
19674 " head-n nrlines path\n"
19675 "\n"
19676 msgstr ""
19677
19678 # type: =head2
19679 #: ../fish/guestfish-actions.pod:1507
19680 msgid "hexdump"
19681 msgstr ""
19682
19683 # type: verbatim
19684 #: ../fish/guestfish-actions.pod:1509
19685 #, no-wrap
19686 msgid ""
19687 " hexdump path\n"
19688 "\n"
19689 msgstr ""
19690
19691 # type: =head2
19692 #: ../fish/guestfish-actions.pod:1517
19693 msgid "initrd-cat"
19694 msgstr ""
19695
19696 # type: verbatim
19697 #: ../fish/guestfish-actions.pod:1519
19698 #, no-wrap
19699 msgid ""
19700 " initrd-cat initrdpath filename\n"
19701 "\n"
19702 msgstr ""
19703
19704 # type: textblock
19705 #: ../fish/guestfish-actions.pod:1531
19706 msgid "See also L</initrd-list>."
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:1536
19711 msgid "initrd-list"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:1538
19716 #, no-wrap
19717 msgid ""
19718 " initrd-list path\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:1550
19724 msgid "inotify-add-watch"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:1552
19729 #, no-wrap
19730 msgid ""
19731 " inotify-add-watch path mask\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:1564
19737 msgid "inotify-close"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:1566
19742 #, no-wrap
19743 msgid ""
19744 " inotify-close\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: =head2
19749 #: ../fish/guestfish-actions.pod:1572
19750 msgid "inotify-files"
19751 msgstr ""
19752
19753 # type: verbatim
19754 #: ../fish/guestfish-actions.pod:1574
19755 #, no-wrap
19756 msgid ""
19757 " inotify-files\n"
19758 "\n"
19759 msgstr ""
19760
19761 # type: textblock
19762 #: ../fish/guestfish-actions.pod:1576
19763 msgid ""
19764 "This function is a helpful wrapper around L</inotify-read> which just "
19765 "returns a list of pathnames of objects that were touched.  The returned "
19766 "pathnames are sorted and deduplicated."
19767 msgstr ""
19768
19769 # type: =head2
19770 #: ../fish/guestfish-actions.pod:1580
19771 msgid "inotify-init"
19772 msgstr ""
19773
19774 # type: verbatim
19775 #: ../fish/guestfish-actions.pod:1582
19776 #, no-wrap
19777 msgid ""
19778 " inotify-init maxevents\n"
19779 "\n"
19780 msgstr ""
19781
19782 # type: textblock
19783 #: ../fish/guestfish-actions.pod:1588
19784 msgid ""
19785 "C<maxevents> is the maximum number of events which will be queued up between "
19786 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19787 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19788 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19789 "but records the fact that it threw them away by setting a flag "
19790 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19791 msgstr ""
19792
19793 # type: textblock
19794 #: ../fish/guestfish-actions.pod:1598
19795 msgid ""
19796 "Before any events are generated, you have to add some watches to the "
19797 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19798 "L</inotify-watch-all>."
19799 msgstr ""
19800
19801 # type: textblock
19802 #: ../fish/guestfish-actions.pod:1604
19803 msgid ""
19804 "Queued up events should be read periodically by calling L</inotify-read> (or "
19805 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19806 "If you don't read the events out often enough then you risk the internal "
19807 "queue overflowing."
19808 msgstr ""
19809
19810 # type: textblock
19811 #: ../fish/guestfish-actions.pod:1611
19812 msgid ""
19813 "The handle should be closed after use by calling L</inotify-close>.  This "
19814 "also removes any watches automatically."
19815 msgstr ""
19816
19817 # type: =head2
19818 #: ../fish/guestfish-actions.pod:1620
19819 msgid "inotify-read"
19820 msgstr ""
19821
19822 # type: verbatim
19823 #: ../fish/guestfish-actions.pod:1622
19824 #, no-wrap
19825 msgid ""
19826 " inotify-read\n"
19827 "\n"
19828 msgstr ""
19829
19830 # type: =head2
19831 #: ../fish/guestfish-actions.pod:1635
19832 msgid "inotify-rm-watch"
19833 msgstr ""
19834
19835 # type: verbatim
19836 #: ../fish/guestfish-actions.pod:1637
19837 #, no-wrap
19838 msgid ""
19839 " inotify-rm-watch wd\n"
19840 "\n"
19841 msgstr ""
19842
19843 # type: textblock
19844 #: ../fish/guestfish-actions.pod:1639
19845 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19846 msgstr ""
19847
19848 # type: =head2
19849 #: ../fish/guestfish-actions.pod:1642
19850 msgid "inspect-get-arch"
19851 msgstr ""
19852
19853 # type: verbatim
19854 #: ../fish/guestfish-actions.pod:1644
19855 #, no-wrap
19856 msgid ""
19857 " inspect-get-arch root\n"
19858 "\n"
19859 msgstr ""
19860
19861 # type: textblock
19862 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19863 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746
19864 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782
19865 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822
19866 #: ../fish/guestfish-actions.pod:1853
19867 msgid ""
19868 "This function should only be called with a root device string as returned by "
19869 "L</inspect-os>."
19870 msgstr ""
19871
19872 # type: textblock
19873 #: ../fish/guestfish-actions.pod:1649
19874 msgid ""
19875 "This returns the architecture of the inspected operating system.  The "
19876 "possible return values are listed under L</file-architecture>."
19877 msgstr ""
19878
19879 # type: =head2
19880 #: ../fish/guestfish-actions.pod:1658
19881 msgid "inspect-get-distro"
19882 msgstr ""
19883
19884 # type: verbatim
19885 #: ../fish/guestfish-actions.pod:1660
19886 #, no-wrap
19887 msgid ""
19888 " inspect-get-distro root\n"
19889 "\n"
19890 msgstr ""
19891
19892 # type: =head2
19893 #: ../fish/guestfish-actions.pod:1724
19894 msgid "inspect-get-filesystems"
19895 msgstr ""
19896
19897 # type: verbatim
19898 #: ../fish/guestfish-actions.pod:1726
19899 #, no-wrap
19900 msgid ""
19901 " inspect-get-filesystems root\n"
19902 "\n"
19903 msgstr ""
19904
19905 # type: textblock
19906 #: ../fish/guestfish-actions.pod:1739
19907 msgid ""
19908 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19909 "get-mountpoints>."
19910 msgstr ""
19911
19912 # type: =head2
19913 #: ../fish/guestfish-actions.pod:1742
19914 msgid "inspect-get-major-version"
19915 msgstr ""
19916
19917 # type: verbatim
19918 #: ../fish/guestfish-actions.pod:1744
19919 #, no-wrap
19920 msgid ""
19921 " inspect-get-major-version root\n"
19922 "\n"
19923 msgstr ""
19924
19925 # type: =head2
19926 #: ../fish/guestfish-actions.pod:1763
19927 msgid "inspect-get-minor-version"
19928 msgstr ""
19929
19930 # type: verbatim
19931 #: ../fish/guestfish-actions.pod:1765
19932 #, no-wrap
19933 msgid ""
19934 " inspect-get-minor-version root\n"
19935 "\n"
19936 msgstr ""
19937
19938 # type: textblock
19939 #: ../fish/guestfish-actions.pod:1775
19940 msgid ""
19941 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19942 "get-major-version>."
19943 msgstr ""
19944
19945 # type: =head2
19946 #: ../fish/guestfish-actions.pod:1778
19947 msgid "inspect-get-mountpoints"
19948 msgstr ""
19949
19950 # type: verbatim
19951 #: ../fish/guestfish-actions.pod:1780
19952 #, no-wrap
19953 msgid ""
19954 " inspect-get-mountpoints root\n"
19955 "\n"
19956 msgstr ""
19957
19958 # type: textblock
19959 #: ../fish/guestfish-actions.pod:1798
19960 msgid ""
19961 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19962 "get-filesystems>."
19963 msgstr ""
19964
19965 # type: =head2
19966 #: ../fish/guestfish-actions.pod:1801
19967 msgid "inspect-get-product-name"
19968 msgstr ""
19969
19970 # type: verbatim
19971 #: ../fish/guestfish-actions.pod:1803
19972 #, no-wrap
19973 msgid ""
19974 " inspect-get-product-name root\n"
19975 "\n"
19976 msgstr ""
19977
19978 # type: =head2
19979 #: ../fish/guestfish-actions.pod:1818
19980 msgid "inspect-get-type"
19981 msgstr ""
19982
19983 # type: verbatim
19984 #: ../fish/guestfish-actions.pod:1820
19985 #, no-wrap
19986 msgid ""
19987 " inspect-get-type root\n"
19988 "\n"
19989 msgstr ""
19990
19991 # type: =head2
19992 #: ../fish/guestfish-actions.pod:1849
19993 msgid "inspect-get-windows-systemroot"
19994 msgstr ""
19995
19996 # type: verbatim
19997 #: ../fish/guestfish-actions.pod:1851
19998 #, no-wrap
19999 msgid ""
20000 " inspect-get-windows-systemroot root\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: =head2
20005 #: ../fish/guestfish-actions.pod:1865
20006 msgid "inspect-os"
20007 msgstr ""
20008
20009 # type: verbatim
20010 #: ../fish/guestfish-actions.pod:1867
20011 #, no-wrap
20012 msgid ""
20013 " inspect-os\n"
20014 "\n"
20015 msgstr ""
20016
20017 # type: textblock
20018 #: ../fish/guestfish-actions.pod:1882
20019 msgid ""
20020 "You can pass the root string(s) returned to other L</inspect-get-*> "
20021 "functions in order to query further information about each operating system, "
20022 "such as the name and version."
20023 msgstr ""
20024
20025 # type: textblock
20026 #: ../fish/guestfish-actions.pod:1887
20027 msgid ""
20028 "This function uses other libguestfs features such as L</mount-ro> and L</"
20029 "umount-all> in order to mount and unmount filesystems and look at the "
20030 "contents.  This should be called with no disks currently mounted.  The "
20031 "function may also use Augeas, so any existing Augeas handle will be closed."
20032 msgstr ""
20033
20034 # type: textblock
20035 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055
20036 #: ../fish/guestfish-actions.pod:2101
20037 msgid "See also L</list-filesystems>."
20038 msgstr ""
20039
20040 # type: =head2
20041 #: ../fish/guestfish-actions.pod:1901
20042 msgid "is-blockdev"
20043 msgstr ""
20044
20045 # type: verbatim
20046 #: ../fish/guestfish-actions.pod:1903
20047 #, no-wrap
20048 msgid ""
20049 " is-blockdev path\n"
20050 "\n"
20051 msgstr ""
20052
20053 # type: textblock
20054 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926
20055 #: ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954
20056 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998
20057 #: ../fish/guestfish-actions.pod:2007
20058 msgid "See also L</stat>."
20059 msgstr ""
20060
20061 # type: =head2
20062 #: ../fish/guestfish-actions.pod:1910
20063 msgid "is-busy"
20064 msgstr ""
20065
20066 # type: verbatim
20067 #: ../fish/guestfish-actions.pod:1912
20068 #, no-wrap
20069 msgid ""
20070 " is-busy\n"
20071 "\n"
20072 msgstr ""
20073
20074 # type: =head2
20075 #: ../fish/guestfish-actions.pod:1919
20076 msgid "is-chardev"
20077 msgstr ""
20078
20079 # type: verbatim
20080 #: ../fish/guestfish-actions.pod:1921
20081 #, no-wrap
20082 msgid ""
20083 " is-chardev path\n"
20084 "\n"
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:1928
20089 msgid "is-config"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:1930
20094 #, no-wrap
20095 msgid ""
20096 " is-config\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:1937
20102 msgid "is-dir"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:1939
20107 #, no-wrap
20108 msgid ""
20109 " is-dir path\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:1947
20115 msgid "is-fifo"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:1949
20120 #, no-wrap
20121 msgid ""
20122 " is-fifo path\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: =head2
20127 #: ../fish/guestfish-actions.pod:1956
20128 msgid "is-file"
20129 msgstr ""
20130
20131 # type: verbatim
20132 #: ../fish/guestfish-actions.pod:1958
20133 #, no-wrap
20134 msgid ""
20135 " is-file path\n"
20136 "\n"
20137 msgstr ""
20138
20139 # type: =head2
20140 #: ../fish/guestfish-actions.pod:1966
20141 msgid "is-launching"
20142 msgstr ""
20143
20144 # type: verbatim
20145 #: ../fish/guestfish-actions.pod:1968
20146 #, no-wrap
20147 msgid ""
20148 " is-launching\n"
20149 "\n"
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:1975
20154 msgid "is-lv"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:1977
20159 #, no-wrap
20160 msgid ""
20161 " is-lv device\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:1982
20167 msgid "is-ready"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:1984
20172 #, no-wrap
20173 msgid ""
20174 " is-ready\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: =head2
20179 #: ../fish/guestfish-actions.pod:1991
20180 msgid "is-socket"
20181 msgstr ""
20182
20183 # type: verbatim
20184 #: ../fish/guestfish-actions.pod:1993
20185 #, no-wrap
20186 msgid ""
20187 " is-socket path\n"
20188 "\n"
20189 msgstr ""
20190
20191 # type: =head2
20192 #: ../fish/guestfish-actions.pod:2000
20193 msgid "is-symlink"
20194 msgstr ""
20195
20196 # type: verbatim
20197 #: ../fish/guestfish-actions.pod:2002
20198 #, no-wrap
20199 msgid ""
20200 " is-symlink path\n"
20201 "\n"
20202 msgstr ""
20203
20204 # type: =head2
20205 #: ../fish/guestfish-actions.pod:2009
20206 msgid "kill-subprocess"
20207 msgstr ""
20208
20209 # type: verbatim
20210 #: ../fish/guestfish-actions.pod:2011
20211 #, no-wrap
20212 msgid ""
20213 " kill-subprocess\n"
20214 "\n"
20215 msgstr ""
20216
20217 # type: =head2
20218 #: ../fish/guestfish-actions.pod:2015
20219 msgid "launch"
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:2017
20224 msgid "run"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:2019
20229 #, no-wrap
20230 msgid ""
20231 " launch\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: =head2
20236 #: ../fish/guestfish-actions.pod:2027
20237 msgid "lchown"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #: ../fish/guestfish-actions.pod:2029
20242 #, no-wrap
20243 msgid ""
20244 " lchown owner group path\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: textblock
20249 #: ../fish/guestfish-actions.pod:2031
20250 msgid ""
20251 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
20252 "chown> but if C<path> is a symlink then the link itself is changed, not the "
20253 "target."
20254 msgstr ""
20255
20256 # type: =head2
20257 #: ../fish/guestfish-actions.pod:2039
20258 msgid "lgetxattrs"
20259 msgstr ""
20260
20261 # type: verbatim
20262 #: ../fish/guestfish-actions.pod:2041
20263 #, no-wrap
20264 msgid ""
20265 " lgetxattrs path\n"
20266 "\n"
20267 msgstr ""
20268
20269 # type: textblock
20270 #: ../fish/guestfish-actions.pod:2043
20271 msgid ""
20272 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20273 "it returns the extended attributes of the link itself."
20274 msgstr ""
20275
20276 # type: =head2
20277 #: ../fish/guestfish-actions.pod:2047
20278 msgid "list-devices"
20279 msgstr ""
20280
20281 # type: verbatim
20282 #: ../fish/guestfish-actions.pod:2049
20283 #, no-wrap
20284 msgid ""
20285 " list-devices\n"
20286 "\n"
20287 msgstr ""
20288
20289 # type: =head2
20290 #: ../fish/guestfish-actions.pod:2057
20291 msgid "list-filesystems"
20292 msgstr ""
20293
20294 # type: verbatim
20295 #: ../fish/guestfish-actions.pod:2059
20296 #, no-wrap
20297 msgid ""
20298 " list-filesystems\n"
20299 "\n"
20300 msgstr ""
20301
20302 # type: textblock
20303 #: ../fish/guestfish-actions.pod:2078
20304 msgid ""
20305 "This command runs other libguestfs commands, which might include L</mount> "
20306 "and L</umount>, and therefore you should use this soon after launch and only "
20307 "when nothing is mounted."
20308 msgstr ""
20309
20310 # type: textblock
20311 #: ../fish/guestfish-actions.pod:2082
20312 msgid ""
20313 "Not all of the filesystems returned will be mountable.  In particular, swap "
20314 "partitions are returned in the list.  Also this command does not check that "
20315 "each filesystem found is valid and mountable, and some filesystems might be "
20316 "mountable but require special options.  Filesystems may not all belong to a "
20317 "single logical operating system (use L</inspect-os> to look for OSes)."
20318 msgstr ""
20319
20320 # type: =head2
20321 #: ../fish/guestfish-actions.pod:2090
20322 msgid "list-partitions"
20323 msgstr ""
20324
20325 # type: verbatim
20326 #: ../fish/guestfish-actions.pod:2092
20327 #, no-wrap
20328 msgid ""
20329 " list-partitions\n"
20330 "\n"
20331 msgstr ""
20332
20333 # type: textblock
20334 #: ../fish/guestfish-actions.pod:2098
20335 msgid ""
20336 "This does not return logical volumes.  For that you will need to call L</"
20337 "lvs>."
20338 msgstr ""
20339
20340 # type: =head2
20341 #: ../fish/guestfish-actions.pod:2103
20342 msgid "ll"
20343 msgstr ""
20344
20345 # type: verbatim
20346 #: ../fish/guestfish-actions.pod:2105
20347 #, no-wrap
20348 msgid ""
20349 " ll directory\n"
20350 "\n"
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:2113
20355 msgid "ln"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:2115
20360 #, no-wrap
20361 msgid ""
20362 " ln target linkname\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: =head2
20367 #: ../fish/guestfish-actions.pod:2119
20368 msgid "ln-f"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #: ../fish/guestfish-actions.pod:2121
20373 #, no-wrap
20374 msgid ""
20375 " ln-f target linkname\n"
20376 "\n"
20377 msgstr ""
20378
20379 # type: =head2
20380 #: ../fish/guestfish-actions.pod:2126
20381 msgid "ln-s"
20382 msgstr ""
20383
20384 # type: verbatim
20385 #: ../fish/guestfish-actions.pod:2128
20386 #, no-wrap
20387 msgid ""
20388 " ln-s target linkname\n"
20389 "\n"
20390 msgstr ""
20391
20392 # type: =head2
20393 #: ../fish/guestfish-actions.pod:2132
20394 msgid "ln-sf"
20395 msgstr ""
20396
20397 # type: verbatim
20398 #: ../fish/guestfish-actions.pod:2134
20399 #, no-wrap
20400 msgid ""
20401 " ln-sf target linkname\n"
20402 "\n"
20403 msgstr ""
20404
20405 # type: =head2
20406 #: ../fish/guestfish-actions.pod:2139
20407 msgid "lremovexattr"
20408 msgstr ""
20409
20410 # type: verbatim
20411 #: ../fish/guestfish-actions.pod:2141
20412 #, no-wrap
20413 msgid ""
20414 " lremovexattr xattr path\n"
20415 "\n"
20416 msgstr ""
20417
20418 # type: textblock
20419 #: ../fish/guestfish-actions.pod:2143
20420 msgid ""
20421 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20422 "it removes an extended attribute of the link itself."
20423 msgstr ""
20424
20425 # type: =head2
20426 #: ../fish/guestfish-actions.pod:2147
20427 msgid "ls"
20428 msgstr ""
20429
20430 # type: verbatim
20431 #: ../fish/guestfish-actions.pod:2149
20432 #, no-wrap
20433 msgid ""
20434 " ls directory\n"
20435 "\n"
20436 msgstr ""
20437
20438 # type: textblock
20439 #: ../fish/guestfish-actions.pod:2155
20440 msgid ""
20441 "This command is mostly useful for interactive sessions.  Programs should "
20442 "probably use L</readdir> instead."
20443 msgstr ""
20444
20445 # type: =head2
20446 #: ../fish/guestfish-actions.pod:2158
20447 msgid "lsetxattr"
20448 msgstr ""
20449
20450 # type: verbatim
20451 #: ../fish/guestfish-actions.pod:2160
20452 #, no-wrap
20453 msgid ""
20454 " lsetxattr xattr val vallen path\n"
20455 "\n"
20456 msgstr ""
20457
20458 # type: textblock
20459 #: ../fish/guestfish-actions.pod:2162
20460 msgid ""
20461 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20462 "sets an extended attribute of the link itself."
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:2166
20467 msgid "lstat"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:2168
20472 #, no-wrap
20473 msgid ""
20474 " lstat path\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: textblock
20479 #: ../fish/guestfish-actions.pod:2172
20480 msgid ""
20481 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20482 "the link is stat-ed, not the file it refers to."
20483 msgstr ""
20484
20485 # type: =head2
20486 #: ../fish/guestfish-actions.pod:2178
20487 msgid "lstatlist"
20488 msgstr ""
20489
20490 # type: verbatim
20491 #: ../fish/guestfish-actions.pod:2180
20492 #, no-wrap
20493 msgid ""
20494 " lstatlist path 'names ...'\n"
20495 "\n"
20496 msgstr ""
20497
20498 # type: textblock
20499 #: ../fish/guestfish-actions.pod:2182
20500 msgid ""
20501 "This call allows you to perform the L</lstat> operation on multiple files, "
20502 "where all files are in the directory C<path>.  C<names> is the list of files "
20503 "from this directory."
20504 msgstr ""
20505
20506 # type: textblock
20507 #: ../fish/guestfish-actions.pod:2191
20508 msgid ""
20509 "This call is intended for programs that want to efficiently list a directory "
20510 "contents without making many round-trips.  See also L</lxattrlist> for a "
20511 "similarly efficient call for getting extended attributes.  Very long "
20512 "directory listings might cause the protocol message size to be exceeded, "
20513 "causing this call to fail.  The caller must split up such requests into "
20514 "smaller groups of names."
20515 msgstr ""
20516
20517 # type: =head2
20518 #: ../fish/guestfish-actions.pod:2199
20519 msgid "luks-add-key"
20520 msgstr ""
20521
20522 # type: verbatim
20523 #: ../fish/guestfish-actions.pod:2201
20524 #, no-wrap
20525 msgid ""
20526 " luks-add-key device keyslot\n"
20527 "\n"
20528 msgstr ""
20529
20530 # type: textblock
20531 #: ../fish/guestfish-actions.pod:2208
20532 msgid ""
20533 "Note that if C<keyslot> already contains a key, then this command will "
20534 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20535 msgstr ""
20536
20537 # type: textblock
20538 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234
20539 #: ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261
20540 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
20541 msgid ""
20542 "This command has one or more key or passphrase parameters.  Guestfish will "
20543 "prompt for these separately."
20544 msgstr ""
20545
20546 # type: =head2
20547 #: ../fish/guestfish-actions.pod:2215
20548 msgid "luks-close"
20549 msgstr ""
20550
20551 # type: verbatim
20552 #: ../fish/guestfish-actions.pod:2217
20553 #, no-wrap
20554 msgid ""
20555 " luks-close device\n"
20556 "\n"
20557 msgstr ""
20558
20559 # type: textblock
20560 #: ../fish/guestfish-actions.pod:2219
20561 msgid ""
20562 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
20563 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
20564 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
20565 "block device."
20566 msgstr ""
20567
20568 # type: =head2
20569 #: ../fish/guestfish-actions.pod:2225
20570 msgid "luks-format"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #: ../fish/guestfish-actions.pod:2227
20575 #, no-wrap
20576 msgid ""
20577 " luks-format device keyslot\n"
20578 "\n"
20579 msgstr ""
20580
20581 # type: =head2
20582 #: ../fish/guestfish-actions.pod:2240
20583 msgid "luks-format-cipher"
20584 msgstr ""
20585
20586 # type: verbatim
20587 #: ../fish/guestfish-actions.pod:2242
20588 #, no-wrap
20589 msgid ""
20590 " luks-format-cipher device keyslot cipher\n"
20591 "\n"
20592 msgstr ""
20593
20594 # type: textblock
20595 #: ../fish/guestfish-actions.pod:2244
20596 msgid ""
20597 "This command is the same as L</luks-format> but it also allows you to set "
20598 "the C<cipher> used."
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:2253
20603 msgid "luks-kill-slot"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #: ../fish/guestfish-actions.pod:2255
20608 #, no-wrap
20609 msgid ""
20610 " luks-kill-slot device keyslot\n"
20611 "\n"
20612 msgstr ""
20613
20614 # type: =head2
20615 #: ../fish/guestfish-actions.pod:2264
20616 msgid "luks-open"
20617 msgstr ""
20618
20619 # type: verbatim
20620 #: ../fish/guestfish-actions.pod:2266
20621 #, no-wrap
20622 msgid ""
20623 " luks-open device mapname\n"
20624 "\n"
20625 msgstr ""
20626
20627 # type: textblock
20628 #: ../fish/guestfish-actions.pod:2280
20629 msgid ""
20630 "If this block device contains LVM volume groups, then calling L</vgscan> "
20631 "followed by L</vg-activate-all> will make them visible."
20632 msgstr ""
20633
20634 # type: =head2
20635 #: ../fish/guestfish-actions.pod:2287
20636 msgid "luks-open-ro"
20637 msgstr ""
20638
20639 # type: verbatim
20640 #: ../fish/guestfish-actions.pod:2289
20641 #, no-wrap
20642 msgid ""
20643 " luks-open-ro device mapname\n"
20644 "\n"
20645 msgstr ""
20646
20647 # type: textblock
20648 #: ../fish/guestfish-actions.pod:2291
20649 msgid ""
20650 "This is the same as L</luks-open> except that a read-only mapping is created."
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:2297
20655 msgid "lvcreate"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:2299
20660 #, no-wrap
20661 msgid ""
20662 " lvcreate logvol volgroup mbytes\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: =head2
20667 #: ../fish/guestfish-actions.pod:2304
20668 msgid "lvm-canonical-lv-name"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #: ../fish/guestfish-actions.pod:2306
20673 #, no-wrap
20674 msgid ""
20675 " lvm-canonical-lv-name lvname\n"
20676 "\n"
20677 msgstr ""
20678
20679 # type: textblock
20680 #: ../fish/guestfish-actions.pod:2315
20681 msgid "See also L</is-lv>."
20682 msgstr ""
20683
20684 # type: =head2
20685 #: ../fish/guestfish-actions.pod:2317
20686 msgid "lvm-clear-filter"
20687 msgstr ""
20688
20689 # type: verbatim
20690 #: ../fish/guestfish-actions.pod:2319
20691 #, no-wrap
20692 msgid ""
20693 " lvm-clear-filter\n"
20694 "\n"
20695 msgstr ""
20696
20697 # type: textblock
20698 #: ../fish/guestfish-actions.pod:2321
20699 msgid ""
20700 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20701 "block device."
20702 msgstr ""
20703
20704 # type: =head2
20705 #: ../fish/guestfish-actions.pod:2327
20706 msgid "lvm-remove-all"
20707 msgstr ""
20708
20709 # type: verbatim
20710 #: ../fish/guestfish-actions.pod:2329
20711 #, no-wrap
20712 msgid ""
20713 " lvm-remove-all\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: =head2
20718 #: ../fish/guestfish-actions.pod:2337
20719 msgid "lvm-set-filter"
20720 msgstr ""
20721
20722 # type: verbatim
20723 #: ../fish/guestfish-actions.pod:2339
20724 #, no-wrap
20725 msgid ""
20726 " lvm-set-filter 'devices ...'\n"
20727 "\n"
20728 msgstr ""
20729
20730 # type: =head2
20731 #: ../fish/guestfish-actions.pod:2364
20732 msgid "lvremove"
20733 msgstr ""
20734
20735 # type: verbatim
20736 #: ../fish/guestfish-actions.pod:2366
20737 #, no-wrap
20738 msgid ""
20739 " lvremove device\n"
20740 "\n"
20741 msgstr ""
20742
20743 # type: =head2
20744 #: ../fish/guestfish-actions.pod:2374
20745 msgid "lvrename"
20746 msgstr ""
20747
20748 # type: verbatim
20749 #: ../fish/guestfish-actions.pod:2376
20750 #, no-wrap
20751 msgid ""
20752 " lvrename logvol newlogvol\n"
20753 "\n"
20754 msgstr ""
20755
20756 # type: =head2
20757 #: ../fish/guestfish-actions.pod:2380
20758 msgid "lvresize"
20759 msgstr ""
20760
20761 # type: verbatim
20762 #: ../fish/guestfish-actions.pod:2382
20763 #, no-wrap
20764 msgid ""
20765 " lvresize device mbytes\n"
20766 "\n"
20767 msgstr ""
20768
20769 # type: =head2
20770 #: ../fish/guestfish-actions.pod:2388
20771 msgid "lvresize-free"
20772 msgstr ""
20773
20774 # type: verbatim
20775 #: ../fish/guestfish-actions.pod:2390
20776 #, no-wrap
20777 msgid ""
20778 " lvresize-free lv percent\n"
20779 "\n"
20780 msgstr ""
20781
20782 # type: =head2
20783 #: ../fish/guestfish-actions.pod:2398
20784 msgid "lvs"
20785 msgstr ""
20786
20787 # type: verbatim
20788 #: ../fish/guestfish-actions.pod:2400
20789 #, no-wrap
20790 msgid ""
20791 " lvs\n"
20792 "\n"
20793 msgstr ""
20794
20795 # type: textblock
20796 #: ../fish/guestfish-actions.pod:2408
20797 msgid "See also L</lvs-full>, L</list-filesystems>."
20798 msgstr ""
20799
20800 # type: =head2
20801 #: ../fish/guestfish-actions.pod:2410
20802 msgid "lvs-full"
20803 msgstr ""
20804
20805 # type: verbatim
20806 #: ../fish/guestfish-actions.pod:2412
20807 #, no-wrap
20808 msgid ""
20809 " lvs-full\n"
20810 "\n"
20811 msgstr ""
20812
20813 # type: =head2
20814 #: ../fish/guestfish-actions.pod:2417
20815 msgid "lvuuid"
20816 msgstr ""
20817
20818 # type: verbatim
20819 #: ../fish/guestfish-actions.pod:2419
20820 #, no-wrap
20821 msgid ""
20822 " lvuuid device\n"
20823 "\n"
20824 msgstr ""
20825
20826 # type: =head2
20827 #: ../fish/guestfish-actions.pod:2423
20828 msgid "lxattrlist"
20829 msgstr ""
20830
20831 # type: verbatim
20832 #: ../fish/guestfish-actions.pod:2425
20833 #, no-wrap
20834 msgid ""
20835 " lxattrlist path 'names ...'\n"
20836 "\n"
20837 msgstr ""
20838
20839 # type: textblock
20840 #: ../fish/guestfish-actions.pod:2441
20841 msgid ""
20842 "This call is intended for programs that want to efficiently list a directory "
20843 "contents without making many round-trips.  See also L</lstatlist> for a "
20844 "similarly efficient call for getting standard stats.  Very long directory "
20845 "listings might cause the protocol message size to be exceeded, causing this "
20846 "call to fail.  The caller must split up such requests into smaller groups of "
20847 "names."
20848 msgstr ""
20849
20850 # type: =head2
20851 #: ../fish/guestfish-actions.pod:2449
20852 msgid "mkdir"
20853 msgstr ""
20854
20855 # type: verbatim
20856 #: ../fish/guestfish-actions.pod:2451
20857 #, no-wrap
20858 msgid ""
20859 " mkdir path\n"
20860 "\n"
20861 msgstr ""
20862
20863 # type: =head2
20864 #: ../fish/guestfish-actions.pod:2455
20865 msgid "mkdir-mode"
20866 msgstr ""
20867
20868 # type: verbatim
20869 #: ../fish/guestfish-actions.pod:2457
20870 #, no-wrap
20871 msgid ""
20872 " mkdir-mode path mode\n"
20873 "\n"
20874 msgstr ""
20875
20876 # type: textblock
20877 #: ../fish/guestfish-actions.pod:2466
20878 msgid "See also L</mkdir>, L</umask>"
20879 msgstr ""
20880
20881 # type: =head2
20882 #: ../fish/guestfish-actions.pod:2468
20883 msgid "mkdir-p"
20884 msgstr ""
20885
20886 # type: verbatim
20887 #: ../fish/guestfish-actions.pod:2470
20888 #, no-wrap
20889 msgid ""
20890 " mkdir-p path\n"
20891 "\n"
20892 msgstr ""
20893
20894 # type: =head2
20895 #: ../fish/guestfish-actions.pod:2475
20896 msgid "mkdtemp"
20897 msgstr ""
20898
20899 # type: verbatim
20900 #: ../fish/guestfish-actions.pod:2477
20901 #, no-wrap
20902 msgid ""
20903 " mkdtemp template\n"
20904 "\n"
20905 msgstr ""
20906
20907 # type: =head2
20908 #: ../fish/guestfish-actions.pod:2498
20909 msgid "mke2fs-J"
20910 msgstr ""
20911
20912 # type: verbatim
20913 #: ../fish/guestfish-actions.pod:2500
20914 #, no-wrap
20915 msgid ""
20916 " mke2fs-J fstype blocksize device journal\n"
20917 "\n"
20918 msgstr ""
20919
20920 # type: textblock
20921 #: ../fish/guestfish-actions.pod:2508
20922 msgid "See also L</mke2journal>."
20923 msgstr ""
20924
20925 # type: =head2
20926 #: ../fish/guestfish-actions.pod:2510
20927 msgid "mke2fs-JL"
20928 msgstr ""
20929
20930 # type: verbatim
20931 #: ../fish/guestfish-actions.pod:2512
20932 #, no-wrap
20933 msgid ""
20934 " mke2fs-JL fstype blocksize device label\n"
20935 "\n"
20936 msgstr ""
20937
20938 # type: textblock
20939 #: ../fish/guestfish-actions.pod:2517
20940 msgid "See also L</mke2journal-L>."
20941 msgstr ""
20942
20943 # type: =head2
20944 #: ../fish/guestfish-actions.pod:2519
20945 msgid "mke2fs-JU"
20946 msgstr ""
20947
20948 # type: verbatim
20949 #: ../fish/guestfish-actions.pod:2521
20950 #, no-wrap
20951 msgid ""
20952 " mke2fs-JU fstype blocksize device uuid\n"
20953 "\n"
20954 msgstr ""
20955
20956 # type: textblock
20957 #: ../fish/guestfish-actions.pod:2526
20958 msgid "See also L</mke2journal-U>."
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:2528
20963 msgid "mke2journal"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:2530
20968 #, no-wrap
20969 msgid ""
20970 " mke2journal blocksize device\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: =head2
20975 #: ../fish/guestfish-actions.pod:2537
20976 msgid "mke2journal-L"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #: ../fish/guestfish-actions.pod:2539
20981 #, no-wrap
20982 msgid ""
20983 " mke2journal-L blocksize label device\n"
20984 "\n"
20985 msgstr ""
20986
20987 # type: =head2
20988 #: ../fish/guestfish-actions.pod:2543
20989 msgid "mke2journal-U"
20990 msgstr ""
20991
20992 # type: verbatim
20993 #: ../fish/guestfish-actions.pod:2545
20994 #, no-wrap
20995 msgid ""
20996 " mke2journal-U blocksize uuid device\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: =head2
21001 #: ../fish/guestfish-actions.pod:2549
21002 msgid "mkfifo"
21003 msgstr ""
21004
21005 # type: verbatim
21006 #: ../fish/guestfish-actions.pod:2551
21007 #, no-wrap
21008 msgid ""
21009 " mkfifo mode path\n"
21010 "\n"
21011 msgstr ""
21012
21013 # type: textblock
21014 #: ../fish/guestfish-actions.pod:2553
21015 msgid ""
21016 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21017 "is just a convenient wrapper around L</mknod>."
21018 msgstr ""
21019
21020 # type: =head2
21021 #: ../fish/guestfish-actions.pod:2559
21022 msgid "mkfs"
21023 msgstr ""
21024
21025 # type: verbatim
21026 #: ../fish/guestfish-actions.pod:2561
21027 #, no-wrap
21028 msgid ""
21029 " mkfs fstype device\n"
21030 "\n"
21031 msgstr ""
21032
21033 # type: =head2
21034 #: ../fish/guestfish-actions.pod:2567
21035 msgid "mkfs-b"
21036 msgstr ""
21037
21038 # type: verbatim
21039 #: ../fish/guestfish-actions.pod:2569
21040 #, no-wrap
21041 msgid ""
21042 " mkfs-b fstype blocksize device\n"
21043 "\n"
21044 msgstr ""
21045
21046 # type: textblock
21047 #: ../fish/guestfish-actions.pod:2571
21048 msgid ""
21049 "This call is similar to L</mkfs>, but it allows you to control the block "
21050 "size of the resulting filesystem.  Supported block sizes depend on the "
21051 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21052 msgstr ""
21053
21054 # type: =head2
21055 #: ../fish/guestfish-actions.pod:2579
21056 msgid "mkmountpoint"
21057 msgstr ""
21058
21059 # type: verbatim
21060 #: ../fish/guestfish-actions.pod:2581
21061 #, no-wrap
21062 msgid ""
21063 " mkmountpoint exemptpath\n"
21064 "\n"
21065 msgstr ""
21066
21067 # type: textblock
21068 #: ../fish/guestfish-actions.pod:2583
21069 msgid ""
21070 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21071 "to create extra mountpoints before mounting the first filesystem."
21072 msgstr ""
21073
21074 # type: textblock
21075 #: ../fish/guestfish-actions.pod:2607
21076 msgid ""
21077 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21078 "unexpected errors if you try to mix these calls.  It is safest to manually "
21079 "unmount filesystems and remove mountpoints after use."
21080 msgstr ""
21081
21082 # type: textblock
21083 #: ../fish/guestfish-actions.pod:2611
21084 msgid ""
21085 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21086 "for this to work for manual mountpoints, you must ensure that the innermost "
21087 "mountpoints have the longest pathnames, as in the example code above."
21088 msgstr ""
21089
21090 # type: textblock
21091 #: ../fish/guestfish-actions.pod:2618
21092 msgid ""
21093 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21094 "that L</umount-all> is called when the handle is closed which can also "
21095 "trigger these issues."
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:2622
21100 msgid "mknod"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:2624
21105 #, no-wrap
21106 msgid ""
21107 " mknod mode devmajor devminor path\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #: ../fish/guestfish-actions.pod:2634
21113 msgid ""
21114 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21115 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21116 "regular file).  These constants are available in the standard Linux header "
21117 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21118 "wrappers around this command which bitwise OR in the appropriate constant "
21119 "for you."
21120 msgstr ""
21121
21122 # type: =head2
21123 #: ../fish/guestfish-actions.pod:2644
21124 msgid "mknod-b"
21125 msgstr ""
21126
21127 # type: verbatim
21128 #: ../fish/guestfish-actions.pod:2646
21129 #, no-wrap
21130 msgid ""
21131 " mknod-b mode devmajor devminor path\n"
21132 "\n"
21133 msgstr ""
21134
21135 # type: textblock
21136 #: ../fish/guestfish-actions.pod:2648
21137 msgid ""
21138 "This call creates a block device node called C<path> with mode C<mode> and "
21139 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21140 "wrapper around L</mknod>."
21141 msgstr ""
21142
21143 # type: =head2
21144 #: ../fish/guestfish-actions.pod:2654
21145 msgid "mknod-c"
21146 msgstr ""
21147
21148 # type: verbatim
21149 #: ../fish/guestfish-actions.pod:2656
21150 #, no-wrap
21151 msgid ""
21152 " mknod-c mode devmajor devminor path\n"
21153 "\n"
21154 msgstr ""
21155
21156 # type: textblock
21157 #: ../fish/guestfish-actions.pod:2658
21158 msgid ""
21159 "This call creates a char device node called C<path> with mode C<mode> and "
21160 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21161 "wrapper around L</mknod>."
21162 msgstr ""
21163
21164 # type: =head2
21165 #: ../fish/guestfish-actions.pod:2664
21166 msgid "mkswap"
21167 msgstr ""
21168
21169 # type: verbatim
21170 #: ../fish/guestfish-actions.pod:2666
21171 #, no-wrap
21172 msgid ""
21173 " mkswap device\n"
21174 "\n"
21175 msgstr ""
21176
21177 # type: =head2
21178 #: ../fish/guestfish-actions.pod:2670
21179 msgid "mkswap-L"
21180 msgstr ""
21181
21182 # type: verbatim
21183 #: ../fish/guestfish-actions.pod:2672
21184 #, no-wrap
21185 msgid ""
21186 " mkswap-L label device\n"
21187 "\n"
21188 msgstr ""
21189
21190 # type: =head2
21191 #: ../fish/guestfish-actions.pod:2680
21192 msgid "mkswap-U"
21193 msgstr ""
21194
21195 # type: verbatim
21196 #: ../fish/guestfish-actions.pod:2682
21197 #, no-wrap
21198 msgid ""
21199 " mkswap-U uuid device\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: =head2
21204 #: ../fish/guestfish-actions.pod:2686
21205 msgid "mkswap-file"
21206 msgstr ""
21207
21208 # type: verbatim
21209 #: ../fish/guestfish-actions.pod:2688
21210 #, no-wrap
21211 msgid ""
21212 " mkswap-file path\n"
21213 "\n"
21214 msgstr ""
21215
21216 # type: textblock
21217 #: ../fish/guestfish-actions.pod:2692
21218 msgid ""
21219 "This command just writes a swap file signature to an existing file.  To "
21220 "create the file itself, use something like L</fallocate>."
21221 msgstr ""
21222
21223 # type: =head2
21224 #: ../fish/guestfish-actions.pod:2695
21225 msgid "modprobe"
21226 msgstr ""
21227
21228 # type: verbatim
21229 #: ../fish/guestfish-actions.pod:2697
21230 #, no-wrap
21231 msgid ""
21232 " modprobe modulename\n"
21233 "\n"
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:2704
21238 msgid "mount"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:2706
21243 #, no-wrap
21244 msgid ""
21245 " mount device mountpoint\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: textblock
21250 #: ../fish/guestfish-actions.pod:2722
21251 msgid ""
21252 "B<Important note:> When you use this call, the filesystem options C<sync> "
21253 "and C<noatime> are set implicitly.  This was originally done because we "
21254 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21255 "very large negative performance impact and negligible effect on "
21256 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21257 "code that needs performance, and instead use L</mount-options> (use an empty "
21258 "string for the first parameter if you don't want any options)."
21259 msgstr ""
21260
21261 # type: =head2
21262 #: ../fish/guestfish-actions.pod:2732
21263 msgid "mount-loop"
21264 msgstr ""
21265
21266 # type: verbatim
21267 #: ../fish/guestfish-actions.pod:2734
21268 #, no-wrap
21269 msgid ""
21270 " mount-loop file mountpoint\n"
21271 "\n"
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:2740
21276 msgid "mount-options"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:2742
21281 #, no-wrap
21282 msgid ""
21283 " mount-options options device mountpoint\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: textblock
21288 #: ../fish/guestfish-actions.pod:2744
21289 msgid ""
21290 "This is the same as the L</mount> command, but it allows you to set the "
21291 "mount options as for the L<mount(8)> I<-o> flag."
21292 msgstr ""
21293
21294 # type: =head2
21295 #: ../fish/guestfish-actions.pod:2752
21296 msgid "mount-ro"
21297 msgstr ""
21298
21299 # type: verbatim
21300 #: ../fish/guestfish-actions.pod:2754
21301 #, no-wrap
21302 msgid ""
21303 " mount-ro device mountpoint\n"
21304 "\n"
21305 msgstr ""
21306
21307 # type: textblock
21308 #: ../fish/guestfish-actions.pod:2756
21309 msgid ""
21310 "This is the same as the L</mount> command, but it mounts the filesystem with "
21311 "the read-only (I<-o ro>) flag."
21312 msgstr ""
21313
21314 # type: =head2
21315 #: ../fish/guestfish-actions.pod:2759
21316 msgid "mount-vfs"
21317 msgstr ""
21318
21319 # type: verbatim
21320 #: ../fish/guestfish-actions.pod:2761
21321 #, no-wrap
21322 msgid ""
21323 " mount-vfs options vfstype device mountpoint\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: textblock
21328 #: ../fish/guestfish-actions.pod:2763
21329 msgid ""
21330 "This is the same as the L</mount> command, but it allows you to set both the "
21331 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:2767
21336 msgid "mountpoints"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #: ../fish/guestfish-actions.pod:2769
21341 #, no-wrap
21342 msgid ""
21343 " mountpoints\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: textblock
21348 #: ../fish/guestfish-actions.pod:2771
21349 msgid ""
21350 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21351 "This one returns a hash table (map) of device name to directory where the "
21352 "device is mounted."
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:2775
21357 msgid "mounts"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:2777
21362 #, no-wrap
21363 msgid ""
21364 " mounts\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: textblock
21369 #: ../fish/guestfish-actions.pod:2784
21370 msgid "See also: L</mountpoints>"
21371 msgstr ""
21372
21373 # type: =head2
21374 #: ../fish/guestfish-actions.pod:2786
21375 msgid "mv"
21376 msgstr ""
21377
21378 # type: verbatim
21379 #: ../fish/guestfish-actions.pod:2788
21380 #, no-wrap
21381 msgid ""
21382 " mv src dest\n"
21383 "\n"
21384 msgstr ""
21385
21386 # type: =head2
21387 #: ../fish/guestfish-actions.pod:2793
21388 msgid "ntfs-3g-probe"
21389 msgstr ""
21390
21391 # type: verbatim
21392 #: ../fish/guestfish-actions.pod:2795
21393 #, no-wrap
21394 msgid ""
21395 " ntfs-3g-probe true|false device\n"
21396 "\n"
21397 msgstr ""
21398
21399 # type: =head2
21400 #: ../fish/guestfish-actions.pod:2809
21401 msgid "ntfsresize"
21402 msgstr ""
21403
21404 # type: verbatim
21405 #: ../fish/guestfish-actions.pod:2811
21406 #, no-wrap
21407 msgid ""
21408 " ntfsresize device\n"
21409 "\n"
21410 msgstr ""
21411
21412 # type: =head2
21413 #: ../fish/guestfish-actions.pod:2817
21414 msgid "ntfsresize-size"
21415 msgstr ""
21416
21417 # type: verbatim
21418 #: ../fish/guestfish-actions.pod:2819
21419 #, no-wrap
21420 msgid ""
21421 " ntfsresize-size device size\n"
21422 "\n"
21423 msgstr ""
21424
21425 # type: textblock
21426 #: ../fish/guestfish-actions.pod:2821
21427 msgid ""
21428 "This command is the same as L</ntfsresize> except that it allows you to "
21429 "specify the new size (in bytes) explicitly."
21430 msgstr ""
21431
21432 # type: =head2
21433 #: ../fish/guestfish-actions.pod:2824
21434 msgid "part-add"
21435 msgstr ""
21436
21437 # type: verbatim
21438 #: ../fish/guestfish-actions.pod:2826
21439 #, no-wrap
21440 msgid ""
21441 " part-add device prlogex startsect endsect\n"
21442 "\n"
21443 msgstr ""
21444
21445 # type: textblock
21446 #: ../fish/guestfish-actions.pod:2828
21447 msgid ""
21448 "This command adds a partition to C<device>.  If there is no partition table "
21449 "on the device, call L</part-init> first."
21450 msgstr ""
21451
21452 # type: textblock
21453 #: ../fish/guestfish-actions.pod:2840
21454 msgid ""
21455 "Creating a partition which covers the whole disk is not so easy.  Use L</"
21456 "part-disk> to do that."
21457 msgstr ""
21458
21459 # type: =head2
21460 #: ../fish/guestfish-actions.pod:2843
21461 msgid "part-del"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #: ../fish/guestfish-actions.pod:2845
21466 #, no-wrap
21467 msgid ""
21468 " part-del device partnum\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:2853
21474 msgid "part-disk"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:2855
21479 #, no-wrap
21480 msgid ""
21481 " part-disk device parttype\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: textblock
21486 #: ../fish/guestfish-actions.pod:2857
21487 msgid ""
21488 "This command is simply a combination of L</part-init> followed by L</part-"
21489 "add> to create a single primary partition covering the whole disk."
21490 msgstr ""
21491
21492 # type: textblock
21493 #: ../fish/guestfish-actions.pod:2861
21494 msgid ""
21495 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21496 "possible values are described in L</part-init>."
21497 msgstr ""
21498
21499 # type: =head2
21500 #: ../fish/guestfish-actions.pod:2867
21501 msgid "part-get-bootable"
21502 msgstr ""
21503
21504 # type: verbatim
21505 #: ../fish/guestfish-actions.pod:2869
21506 #, no-wrap
21507 msgid ""
21508 " part-get-bootable device partnum\n"
21509 "\n"
21510 msgstr ""
21511
21512 # type: textblock
21513 #: ../fish/guestfish-actions.pod:2874
21514 msgid "See also L</part-set-bootable>."
21515 msgstr ""
21516
21517 # type: =head2
21518 #: ../fish/guestfish-actions.pod:2876
21519 msgid "part-get-mbr-id"
21520 msgstr ""
21521
21522 # type: verbatim
21523 #: ../fish/guestfish-actions.pod:2878
21524 #, no-wrap
21525 msgid ""
21526 " part-get-mbr-id device partnum\n"
21527 "\n"
21528 msgstr ""
21529
21530 # type: textblock
21531 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21532 msgid ""
21533 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21534 "undefined results for other partition table types (see L</part-get-"
21535 "parttype>)."
21536 msgstr ""
21537
21538 # type: =head2
21539 #: ../fish/guestfish-actions.pod:2887
21540 msgid "part-get-parttype"
21541 msgstr ""
21542
21543 # type: verbatim
21544 #: ../fish/guestfish-actions.pod:2889
21545 #, no-wrap
21546 msgid ""
21547 " part-get-parttype device\n"
21548 "\n"
21549 msgstr ""
21550
21551 # type: textblock
21552 #: ../fish/guestfish-actions.pod:2894
21553 msgid ""
21554 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21555 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21556 "possible, although unusual.  See L</part-init> for a full list."
21557 msgstr ""
21558
21559 # type: =head2
21560 #: ../fish/guestfish-actions.pod:2899
21561 msgid "part-init"
21562 msgstr ""
21563
21564 # type: verbatim
21565 #: ../fish/guestfish-actions.pod:2901
21566 #, no-wrap
21567 msgid ""
21568 " part-init device parttype\n"
21569 "\n"
21570 msgstr ""
21571
21572 # type: textblock
21573 #: ../fish/guestfish-actions.pod:2907
21574 msgid ""
21575 "Initially there are no partitions.  Following this, you should call L</part-"
21576 "add> for each partition required."
21577 msgstr ""
21578
21579 # type: =head2
21580 #: ../fish/guestfish-actions.pod:2970
21581 msgid "part-list"
21582 msgstr ""
21583
21584 # type: verbatim
21585 #: ../fish/guestfish-actions.pod:2972
21586 #, no-wrap
21587 msgid ""
21588 " part-list device\n"
21589 "\n"
21590 msgstr ""
21591
21592 # type: textblock
21593 #: ../fish/guestfish-actions.pod:2987
21594 msgid ""
21595 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21596 "the device's sector size, see L</blockdev-getss>."
21597 msgstr ""
21598
21599 # type: =head2
21600 #: ../fish/guestfish-actions.pod:3000
21601 msgid "part-set-bootable"
21602 msgstr ""
21603
21604 # type: verbatim
21605 #: ../fish/guestfish-actions.pod:3002
21606 #, no-wrap
21607 msgid ""
21608 " part-set-bootable device partnum true|false\n"
21609 "\n"
21610 msgstr ""
21611
21612 # type: =head2
21613 #: ../fish/guestfish-actions.pod:3011
21614 msgid "part-set-mbr-id"
21615 msgstr ""
21616
21617 # type: verbatim
21618 #: ../fish/guestfish-actions.pod:3013
21619 #, no-wrap
21620 msgid ""
21621 " part-set-mbr-id device partnum idbyte\n"
21622 "\n"
21623 msgstr ""
21624
21625 # type: =head2
21626 #: ../fish/guestfish-actions.pod:3025
21627 msgid "part-set-name"
21628 msgstr ""
21629
21630 # type: verbatim
21631 #: ../fish/guestfish-actions.pod:3027
21632 #, no-wrap
21633 msgid ""
21634 " part-set-name device partnum name\n"
21635 "\n"
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:3035
21640 msgid "part-to-dev"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:3037
21645 #, no-wrap
21646 msgid ""
21647 " part-to-dev partition\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:3043
21653 msgid ""
21654 "The named partition must exist, for example as a string returned from L</"
21655 "list-partitions>."
21656 msgstr ""
21657
21658 # type: =head2
21659 #: ../fish/guestfish-actions.pod:3046
21660 msgid "ping-daemon"
21661 msgstr ""
21662
21663 # type: verbatim
21664 #: ../fish/guestfish-actions.pod:3048
21665 #, no-wrap
21666 msgid ""
21667 " ping-daemon\n"
21668 "\n"
21669 msgstr ""
21670
21671 # type: =head2
21672 #: ../fish/guestfish-actions.pod:3055
21673 msgid "pread"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #: ../fish/guestfish-actions.pod:3057
21678 #, no-wrap
21679 msgid ""
21680 " pread path count offset\n"
21681 "\n"
21682 msgstr ""
21683
21684 # type: textblock
21685 #: ../fish/guestfish-actions.pod:3065
21686 msgid "See also L</pwrite>, L</pread-device>."
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:3070
21691 msgid "pread-device"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:3072
21696 #, no-wrap
21697 msgid ""
21698 " pread-device device count offset\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: textblock
21703 #: ../fish/guestfish-actions.pod:3080
21704 msgid "See also L</pread>."
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:3085
21709 msgid "pvcreate"
21710 msgstr ""
21711
21712 # type: verbatim
21713 #: ../fish/guestfish-actions.pod:3087
21714 #, no-wrap
21715 msgid ""
21716 " pvcreate device\n"
21717 "\n"
21718 msgstr ""
21719
21720 # type: =head2
21721 #: ../fish/guestfish-actions.pod:3093
21722 msgid "pvremove"
21723 msgstr ""
21724
21725 # type: verbatim
21726 #: ../fish/guestfish-actions.pod:3095
21727 #, no-wrap
21728 msgid ""
21729 " pvremove device\n"
21730 "\n"
21731 msgstr ""
21732
21733 # type: =head2
21734 #: ../fish/guestfish-actions.pod:3104
21735 msgid "pvresize"
21736 msgstr ""
21737
21738 # type: verbatim
21739 #: ../fish/guestfish-actions.pod:3106
21740 #, no-wrap
21741 msgid ""
21742 " pvresize device\n"
21743 "\n"
21744 msgstr ""
21745
21746 # type: =head2
21747 #: ../fish/guestfish-actions.pod:3111
21748 msgid "pvresize-size"
21749 msgstr ""
21750
21751 # type: verbatim
21752 #: ../fish/guestfish-actions.pod:3113
21753 #, no-wrap
21754 msgid ""
21755 " pvresize-size device size\n"
21756 "\n"
21757 msgstr ""
21758
21759 # type: textblock
21760 #: ../fish/guestfish-actions.pod:3115
21761 msgid ""
21762 "This command is the same as L</pvresize> except that it allows you to "
21763 "specify the new size (in bytes) explicitly."
21764 msgstr ""
21765
21766 # type: =head2
21767 #: ../fish/guestfish-actions.pod:3118
21768 msgid "pvs"
21769 msgstr ""
21770
21771 # type: verbatim
21772 #: ../fish/guestfish-actions.pod:3120
21773 #, no-wrap
21774 msgid ""
21775 " pvs\n"
21776 "\n"
21777 msgstr ""
21778
21779 # type: textblock
21780 #: ../fish/guestfish-actions.pod:3128
21781 msgid "See also L</pvs-full>."
21782 msgstr ""
21783
21784 # type: =head2
21785 #: ../fish/guestfish-actions.pod:3130
21786 msgid "pvs-full"
21787 msgstr ""
21788
21789 # type: verbatim
21790 #: ../fish/guestfish-actions.pod:3132
21791 #, no-wrap
21792 msgid ""
21793 " pvs-full\n"
21794 "\n"
21795 msgstr ""
21796
21797 # type: =head2
21798 #: ../fish/guestfish-actions.pod:3137
21799 msgid "pvuuid"
21800 msgstr ""
21801
21802 # type: verbatim
21803 #: ../fish/guestfish-actions.pod:3139
21804 #, no-wrap
21805 msgid ""
21806 " pvuuid device\n"
21807 "\n"
21808 msgstr ""
21809
21810 # type: =head2
21811 #: ../fish/guestfish-actions.pod:3143
21812 msgid "pwrite"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #: ../fish/guestfish-actions.pod:3145
21817 #, no-wrap
21818 msgid ""
21819 " pwrite path content offset\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: textblock
21824 #: ../fish/guestfish-actions.pod:3156
21825 msgid "See also L</pread>, L</pwrite-device>."
21826 msgstr ""
21827
21828 # type: =head2
21829 #: ../fish/guestfish-actions.pod:3161
21830 msgid "pwrite-device"
21831 msgstr ""
21832
21833 # type: verbatim
21834 #: ../fish/guestfish-actions.pod:3163
21835 #, no-wrap
21836 msgid ""
21837 " pwrite-device device content offset\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: textblock
21842 #: ../fish/guestfish-actions.pod:3173
21843 msgid "See also L</pwrite>."
21844 msgstr ""
21845
21846 # type: =head2
21847 #: ../fish/guestfish-actions.pod:3178
21848 msgid "read-file"
21849 msgstr ""
21850
21851 # type: verbatim
21852 #: ../fish/guestfish-actions.pod:3180
21853 #, no-wrap
21854 msgid ""
21855 " read-file path\n"
21856 "\n"
21857 msgstr ""
21858
21859 # type: textblock
21860 #: ../fish/guestfish-actions.pod:3185
21861 msgid ""
21862 "Unlike L</cat>, this function can correctly handle files that contain "
21863 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21864 "is limited in the total size of file that can be handled."
21865 msgstr ""
21866
21867 # type: =head2
21868 #: ../fish/guestfish-actions.pod:3193
21869 msgid "read-lines"
21870 msgstr ""
21871
21872 # type: verbatim
21873 #: ../fish/guestfish-actions.pod:3195
21874 #, no-wrap
21875 msgid ""
21876 " read-lines path\n"
21877 "\n"
21878 msgstr ""
21879
21880 # type: textblock
21881 #: ../fish/guestfish-actions.pod:3202
21882 msgid ""
21883 "Note that this function cannot correctly handle binary files (specifically, "
21884 "files containing C<\\0> character which is treated as end of line).  For "
21885 "those you need to use the L</read-file> function which has a more complex "
21886 "interface."
21887 msgstr ""
21888
21889 # type: =head2
21890 #: ../fish/guestfish-actions.pod:3207
21891 msgid "readdir"
21892 msgstr ""
21893
21894 # type: verbatim
21895 #: ../fish/guestfish-actions.pod:3209
21896 #, no-wrap
21897 msgid ""
21898 " readdir dir\n"
21899 "\n"
21900 msgstr ""
21901
21902 # type: textblock
21903 #: ../fish/guestfish-actions.pod:3261
21904 msgid ""
21905 "This function is primarily intended for use by programs.  To get a simple "
21906 "list of names, use L</ls>.  To get a printable directory for human "
21907 "consumption, use L</ll>."
21908 msgstr ""
21909
21910 # type: =head2
21911 #: ../fish/guestfish-actions.pod:3265
21912 msgid "readlink"
21913 msgstr ""
21914
21915 # type: verbatim
21916 #: ../fish/guestfish-actions.pod:3267
21917 #, no-wrap
21918 msgid ""
21919 " readlink path\n"
21920 "\n"
21921 msgstr ""
21922
21923 # type: =head2
21924 #: ../fish/guestfish-actions.pod:3271
21925 msgid "readlinklist"
21926 msgstr ""
21927
21928 # type: verbatim
21929 #: ../fish/guestfish-actions.pod:3273
21930 #, no-wrap
21931 msgid ""
21932 " readlinklist path 'names ...'\n"
21933 "\n"
21934 msgstr ""
21935
21936 # type: =head2
21937 #: ../fish/guestfish-actions.pod:3297
21938 msgid "realpath"
21939 msgstr ""
21940
21941 # type: verbatim
21942 #: ../fish/guestfish-actions.pod:3299
21943 #, no-wrap
21944 msgid ""
21945 " realpath path\n"
21946 "\n"
21947 msgstr ""
21948
21949 # type: =head2
21950 #: ../fish/guestfish-actions.pod:3304
21951 msgid "removexattr"
21952 msgstr ""
21953
21954 # type: verbatim
21955 #: ../fish/guestfish-actions.pod:3306
21956 #, no-wrap
21957 msgid ""
21958 " removexattr xattr path\n"
21959 "\n"
21960 msgstr ""
21961
21962 # type: textblock
21963 #: ../fish/guestfish-actions.pod:3311
21964 msgid "See also: L</lremovexattr>, L<attr(5)>."
21965 msgstr ""
21966
21967 # type: =head2
21968 #: ../fish/guestfish-actions.pod:3313
21969 msgid "resize2fs"
21970 msgstr ""
21971
21972 # type: verbatim
21973 #: ../fish/guestfish-actions.pod:3315
21974 #, no-wrap
21975 msgid ""
21976 " resize2fs device\n"
21977 "\n"
21978 msgstr ""
21979
21980 # type: textblock
21981 #: ../fish/guestfish-actions.pod:3320
21982 msgid ""
21983 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21984 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21985 "gives an error about this and sometimes not.  In any case, it is always safe "
21986 "to call L</e2fsck-f> before calling this function."
21987 msgstr ""
21988
21989 # type: =head2
21990 #: ../fish/guestfish-actions.pod:3326
21991 msgid "resize2fs-size"
21992 msgstr ""
21993
21994 # type: verbatim
21995 #: ../fish/guestfish-actions.pod:3328
21996 #, no-wrap
21997 msgid ""
21998 " resize2fs-size device size\n"
21999 "\n"
22000 msgstr ""
22001
22002 # type: textblock
22003 #: ../fish/guestfish-actions.pod:3330
22004 msgid ""
22005 "This command is the same as L</resize2fs> except that it allows you to "
22006 "specify the new size (in bytes) explicitly."
22007 msgstr ""
22008
22009 # type: =head2
22010 #: ../fish/guestfish-actions.pod:3333
22011 msgid "rm"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #: ../fish/guestfish-actions.pod:3335
22016 #, no-wrap
22017 msgid ""
22018 " rm path\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: =head2
22023 #: ../fish/guestfish-actions.pod:3339
22024 msgid "rm-rf"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #: ../fish/guestfish-actions.pod:3341
22029 #, no-wrap
22030 msgid ""
22031 " rm-rf path\n"
22032 "\n"
22033 msgstr ""
22034
22035 # type: =head2
22036 #: ../fish/guestfish-actions.pod:3347
22037 msgid "rmdir"
22038 msgstr ""
22039
22040 # type: verbatim
22041 #: ../fish/guestfish-actions.pod:3349
22042 #, no-wrap
22043 msgid ""
22044 " rmdir path\n"
22045 "\n"
22046 msgstr ""
22047
22048 # type: =head2
22049 #: ../fish/guestfish-actions.pod:3353
22050 msgid "rmmountpoint"
22051 msgstr ""
22052
22053 # type: verbatim
22054 #: ../fish/guestfish-actions.pod:3355
22055 #, no-wrap
22056 msgid ""
22057 " rmmountpoint exemptpath\n"
22058 "\n"
22059 msgstr ""
22060
22061 # type: textblock
22062 #: ../fish/guestfish-actions.pod:3357
22063 msgid ""
22064 "This calls removes a mountpoint that was previously created with L</"
22065 "mkmountpoint>.  See L</mkmountpoint> for full details."
22066 msgstr ""
22067
22068 # type: =head2
22069 #: ../fish/guestfish-actions.pod:3361
22070 msgid "scrub-device"
22071 msgstr ""
22072
22073 # type: verbatim
22074 #: ../fish/guestfish-actions.pod:3363
22075 #, no-wrap
22076 msgid ""
22077 " scrub-device device\n"
22078 "\n"
22079 msgstr ""
22080
22081 # type: =head2
22082 #: ../fish/guestfish-actions.pod:3374
22083 msgid "scrub-file"
22084 msgstr ""
22085
22086 # type: verbatim
22087 #: ../fish/guestfish-actions.pod:3376
22088 #, no-wrap
22089 msgid ""
22090 " scrub-file file\n"
22091 "\n"
22092 msgstr ""
22093
22094 # type: =head2
22095 #: ../fish/guestfish-actions.pod:3386
22096 msgid "scrub-freespace"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #: ../fish/guestfish-actions.pod:3388
22101 #, no-wrap
22102 msgid ""
22103 " scrub-freespace dir\n"
22104 "\n"
22105 msgstr ""
22106
22107 # type: textblock
22108 #: ../fish/guestfish-actions.pod:3390
22109 msgid ""
22110 "This command creates the directory C<dir> and then fills it with files until "
22111 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22112 "deletes them.  The intention is to scrub any free space on the partition "
22113 "containing C<dir>."
22114 msgstr ""
22115
22116 # type: =head2
22117 #: ../fish/guestfish-actions.pod:3399
22118 msgid "set-append"
22119 msgstr ""
22120
22121 # type: =head2
22122 #: ../fish/guestfish-actions.pod:3401
22123 msgid "append"
22124 msgstr ""
22125
22126 # type: verbatim
22127 #: ../fish/guestfish-actions.pod:3403
22128 #, no-wrap
22129 msgid ""
22130 " set-append append\n"
22131 "\n"
22132 msgstr ""
22133
22134 # type: =head2
22135 #: ../fish/guestfish-actions.pod:3414
22136 msgid "set-autosync"
22137 msgstr ""
22138
22139 # type: =head2
22140 #: ../fish/guestfish-actions.pod:3416
22141 msgid "autosync"
22142 msgstr ""
22143
22144 # type: verbatim
22145 #: ../fish/guestfish-actions.pod:3418
22146 #, no-wrap
22147 msgid ""
22148 " set-autosync true|false\n"
22149 "\n"
22150 msgstr ""
22151
22152 # type: textblock
22153 #: ../fish/guestfish-actions.pod:3420
22154 msgid ""
22155 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22156 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22157 "closed (also if the program exits without closing handles)."
22158 msgstr ""
22159
22160 # type: =head2
22161 #: ../fish/guestfish-actions.pod:3428
22162 msgid "set-direct"
22163 msgstr ""
22164
22165 # type: =head2
22166 #: ../fish/guestfish-actions.pod:3430
22167 msgid "direct"
22168 msgstr ""
22169
22170 # type: verbatim
22171 #: ../fish/guestfish-actions.pod:3432
22172 #, no-wrap
22173 msgid ""
22174 " set-direct true|false\n"
22175 "\n"
22176 msgstr ""
22177
22178 # type: textblock
22179 #: ../fish/guestfish-actions.pod:3438
22180 msgid ""
22181 "One consequence of this is that log messages aren't caught by the library "
22182 "and handled by L</set-log-message-callback>, but go straight to stdout."
22183 msgstr ""
22184
22185 # type: =head2
22186 #: ../fish/guestfish-actions.pod:3447
22187 msgid "set-e2label"
22188 msgstr ""
22189
22190 # type: verbatim
22191 #: ../fish/guestfish-actions.pod:3449
22192 #, no-wrap
22193 msgid ""
22194 " set-e2label device label\n"
22195 "\n"
22196 msgstr ""
22197
22198 # type: textblock
22199 #: ../fish/guestfish-actions.pod:3455
22200 msgid ""
22201 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22202 "label on a filesystem."
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:3458
22207 msgid "set-e2uuid"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:3460
22212 #, no-wrap
22213 msgid ""
22214 " set-e2uuid device uuid\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: textblock
22219 #: ../fish/guestfish-actions.pod:3467
22220 msgid ""
22221 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22222 "UUID of a filesystem."
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:3470
22227 msgid "set-memsize"
22228 msgstr ""
22229
22230 # type: =head2
22231 #: ../fish/guestfish-actions.pod:3472
22232 msgid "memsize"
22233 msgstr ""
22234
22235 # type: verbatim
22236 #: ../fish/guestfish-actions.pod:3474
22237 #, no-wrap
22238 msgid ""
22239 " set-memsize memsize\n"
22240 "\n"
22241 msgstr ""
22242
22243 # type: textblock
22244 #: ../fish/guestfish-actions.pod:3476
22245 msgid ""
22246 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22247 "This only has any effect if called before L</launch>."
22248 msgstr ""
22249
22250 # type: =head2
22251 #: ../fish/guestfish-actions.pod:3487
22252 msgid "set-network"
22253 msgstr ""
22254
22255 # type: =head2
22256 #: ../fish/guestfish-actions.pod:3489
22257 msgid "network"
22258 msgstr ""
22259
22260 # type: verbatim
22261 #: ../fish/guestfish-actions.pod:3491
22262 #, no-wrap
22263 msgid ""
22264 " set-network true|false\n"
22265 "\n"
22266 msgstr ""
22267
22268 # type: textblock
22269 #: ../fish/guestfish-actions.pod:3499
22270 msgid ""
22271 "You must call this before calling L</launch>, otherwise it has no effect."
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:3502
22276 msgid "set-path"
22277 msgstr ""
22278
22279 # type: =head2
22280 #: ../fish/guestfish-actions.pod:3504
22281 msgid "path"
22282 msgstr ""
22283
22284 # type: verbatim
22285 #: ../fish/guestfish-actions.pod:3506
22286 #, no-wrap
22287 msgid ""
22288 " set-path searchpath\n"
22289 "\n"
22290 msgstr ""
22291
22292 # type: =head2
22293 #: ../fish/guestfish-actions.pod:3515
22294 msgid "set-qemu"
22295 msgstr ""
22296
22297 # type: =head2
22298 #: ../fish/guestfish-actions.pod:3517
22299 msgid "qemu"
22300 msgstr ""
22301
22302 # type: verbatim
22303 #: ../fish/guestfish-actions.pod:3519
22304 #, no-wrap
22305 msgid ""
22306 " set-qemu qemu\n"
22307 "\n"
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:3539
22312 msgid "set-recovery-proc"
22313 msgstr ""
22314
22315 # type: =head2
22316 #: ../fish/guestfish-actions.pod:3541
22317 msgid "recovery-proc"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #: ../fish/guestfish-actions.pod:3543
22322 #, no-wrap
22323 msgid ""
22324 " set-recovery-proc true|false\n"
22325 "\n"
22326 msgstr ""
22327
22328 # type: textblock
22329 #: ../fish/guestfish-actions.pod:3545
22330 msgid ""
22331 "If this is called with the parameter C<false> then L</launch> does not "
22332 "create a recovery process.  The purpose of the recovery process is to stop "
22333 "runaway qemu processes in the case where the main program aborts abruptly."
22334 msgstr ""
22335
22336 # type: textblock
22337 #: ../fish/guestfish-actions.pod:3550
22338 msgid ""
22339 "This only has any effect if called before L</launch>, and the default is "
22340 "true."
22341 msgstr ""
22342
22343 # type: =head2
22344 #: ../fish/guestfish-actions.pod:3559
22345 msgid "set-selinux"
22346 msgstr ""
22347
22348 # type: =head2
22349 #: ../fish/guestfish-actions.pod:3561
22350 msgid "selinux"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #: ../fish/guestfish-actions.pod:3563
22355 #, no-wrap
22356 msgid ""
22357 " set-selinux true|false\n"
22358 "\n"
22359 msgstr ""
22360
22361 # type: =head2
22362 #: ../fish/guestfish-actions.pod:3574
22363 msgid "set-trace"
22364 msgstr ""
22365
22366 # type: =head2
22367 #: ../fish/guestfish-actions.pod:3576
22368 msgid "trace"
22369 msgstr ""
22370
22371 # type: verbatim
22372 #: ../fish/guestfish-actions.pod:3578
22373 #, no-wrap
22374 msgid ""
22375 " set-trace true|false\n"
22376 "\n"
22377 msgstr ""
22378
22379 # type: =head2
22380 #: ../fish/guestfish-actions.pod:3594
22381 msgid "set-verbose"
22382 msgstr ""
22383
22384 # type: =head2
22385 #: ../fish/guestfish-actions.pod:3596
22386 msgid "verbose"
22387 msgstr ""
22388
22389 # type: verbatim
22390 #: ../fish/guestfish-actions.pod:3598
22391 #, no-wrap
22392 msgid ""
22393 " set-verbose true|false\n"
22394 "\n"
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:3605
22399 msgid "setcon"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:3607
22404 #, no-wrap
22405 msgid ""
22406 " setcon context\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: =head2
22411 #: ../fish/guestfish-actions.pod:3614
22412 msgid "setxattr"
22413 msgstr ""
22414
22415 # type: verbatim
22416 #: ../fish/guestfish-actions.pod:3616
22417 #, no-wrap
22418 msgid ""
22419 " setxattr xattr val vallen path\n"
22420 "\n"
22421 msgstr ""
22422
22423 # type: textblock
22424 #: ../fish/guestfish-actions.pod:3622
22425 msgid "See also: L</lsetxattr>, L<attr(5)>."
22426 msgstr ""
22427
22428 # type: =head2
22429 #: ../fish/guestfish-actions.pod:3624
22430 msgid "sfdisk"
22431 msgstr ""
22432
22433 # type: verbatim
22434 #: ../fish/guestfish-actions.pod:3626
22435 #, no-wrap
22436 msgid ""
22437 " sfdisk device cyls heads sectors 'lines ...'\n"
22438 "\n"
22439 msgstr ""
22440
22441 # type: textblock
22442 #: ../fish/guestfish-actions.pod:3648
22443 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3654
22448 msgid "sfdiskM"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../fish/guestfish-actions.pod:3656
22453 #, no-wrap
22454 msgid ""
22455 " sfdiskM device 'lines ...'\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: textblock
22460 #: ../fish/guestfish-actions.pod:3658
22461 msgid ""
22462 "This is a simplified interface to the L</sfdisk> command, where partition "
22463 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22464 "you don't need to specify the cyls, heads and sectors parameters which were "
22465 "rarely if ever used anyway."
22466 msgstr ""
22467
22468 # type: textblock
22469 #: ../fish/guestfish-actions.pod:3664
22470 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22471 msgstr ""
22472
22473 # type: =head2
22474 #: ../fish/guestfish-actions.pod:3670
22475 msgid "sfdisk-N"
22476 msgstr ""
22477
22478 # type: verbatim
22479 #: ../fish/guestfish-actions.pod:3672
22480 #, no-wrap
22481 msgid ""
22482 " sfdisk-N device partnum cyls heads sectors line\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: textblock
22487 #: ../fish/guestfish-actions.pod:3677
22488 msgid ""
22489 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22490 "cyls/heads/sectors parameters."
22491 msgstr ""
22492
22493 # type: textblock
22494 #: ../fish/guestfish-actions.pod:3680
22495 msgid "See also: L</part-add>"
22496 msgstr ""
22497
22498 # type: =head2
22499 #: ../fish/guestfish-actions.pod:3685
22500 msgid "sfdisk-disk-geometry"
22501 msgstr ""
22502
22503 # type: verbatim
22504 #: ../fish/guestfish-actions.pod:3687
22505 #, no-wrap
22506 msgid ""
22507 " sfdisk-disk-geometry device\n"
22508 "\n"
22509 msgstr ""
22510
22511 # type: textblock
22512 #: ../fish/guestfish-actions.pod:3689
22513 msgid ""
22514 "This displays the disk geometry of C<device> read from the partition table.  "
22515 "Especially in the case where the underlying block device has been resized, "
22516 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22517 "kernel-geometry>)."
22518 msgstr ""
22519
22520 # type: =head2
22521 #: ../fish/guestfish-actions.pod:3697
22522 msgid "sfdisk-kernel-geometry"
22523 msgstr ""
22524
22525 # type: verbatim
22526 #: ../fish/guestfish-actions.pod:3699
22527 #, no-wrap
22528 msgid ""
22529 " sfdisk-kernel-geometry device\n"
22530 "\n"
22531 msgstr ""
22532
22533 # type: =head2
22534 #: ../fish/guestfish-actions.pod:3706
22535 msgid "sfdisk-l"
22536 msgstr ""
22537
22538 # type: verbatim
22539 #: ../fish/guestfish-actions.pod:3708
22540 #, no-wrap
22541 msgid ""
22542 " sfdisk-l device\n"
22543 "\n"
22544 msgstr ""
22545
22546 # type: textblock
22547 #: ../fish/guestfish-actions.pod:3714
22548 msgid "See also: L</part-list>"
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:3716
22553 msgid "sh"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:3718
22558 #, no-wrap
22559 msgid ""
22560 " sh command\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: textblock
22565 #: ../fish/guestfish-actions.pod:3723
22566 msgid "This is like L</command>, but passes the command to:"
22567 msgstr ""
22568
22569 # type: textblock
22570 #: ../fish/guestfish-actions.pod:3731
22571 msgid "All the provisos about L</command> apply to this call."
22572 msgstr ""
22573
22574 # type: =head2
22575 #: ../fish/guestfish-actions.pod:3733
22576 msgid "sh-lines"
22577 msgstr ""
22578
22579 # type: verbatim
22580 #: ../fish/guestfish-actions.pod:3735
22581 #, no-wrap
22582 msgid ""
22583 " sh-lines command\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: textblock
22588 #: ../fish/guestfish-actions.pod:3737
22589 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../fish/guestfish-actions.pod:3740
22594 msgid "See also: L</command-lines>"
22595 msgstr ""
22596
22597 # type: =head2
22598 #: ../fish/guestfish-actions.pod:3742
22599 msgid "sleep"
22600 msgstr ""
22601
22602 # type: verbatim
22603 #: ../fish/guestfish-actions.pod:3744
22604 #, no-wrap
22605 msgid ""
22606 " sleep secs\n"
22607 "\n"
22608 msgstr ""
22609
22610 # type: =head2
22611 #: ../fish/guestfish-actions.pod:3748
22612 msgid "stat"
22613 msgstr ""
22614
22615 # type: verbatim
22616 #: ../fish/guestfish-actions.pod:3750
22617 #, no-wrap
22618 msgid ""
22619 " stat path\n"
22620 "\n"
22621 msgstr ""
22622
22623 # type: =head2
22624 #: ../fish/guestfish-actions.pod:3756
22625 msgid "statvfs"
22626 msgstr ""
22627
22628 # type: verbatim
22629 #: ../fish/guestfish-actions.pod:3758
22630 #, no-wrap
22631 msgid ""
22632 " statvfs path\n"
22633 "\n"
22634 msgstr ""
22635
22636 # type: =head2
22637 #: ../fish/guestfish-actions.pod:3766
22638 msgid "strings"
22639 msgstr ""
22640
22641 # type: verbatim
22642 #: ../fish/guestfish-actions.pod:3768
22643 #, no-wrap
22644 msgid ""
22645 " strings path\n"
22646 "\n"
22647 msgstr ""
22648
22649 # type: =head2
22650 #: ../fish/guestfish-actions.pod:3776
22651 msgid "strings-e"
22652 msgstr ""
22653
22654 # type: verbatim
22655 #: ../fish/guestfish-actions.pod:3778
22656 #, no-wrap
22657 msgid ""
22658 " strings-e encoding path\n"
22659 "\n"
22660 msgstr ""
22661
22662 # type: textblock
22663 #: ../fish/guestfish-actions.pod:3780
22664 msgid ""
22665 "This is like the L</strings> command, but allows you to specify the encoding "
22666 "of strings that are looked for in the source file C<path>."
22667 msgstr ""
22668
22669 # type: textblock
22670 #: ../fish/guestfish-actions.pod:3790
22671 msgid ""
22672 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22673 "ISO-8859-X (this is what L</strings> uses)."
22674 msgstr ""
22675
22676 # type: =head2
22677 #: ../fish/guestfish-actions.pod:3822
22678 msgid "swapoff-device"
22679 msgstr ""
22680
22681 # type: verbatim
22682 #: ../fish/guestfish-actions.pod:3824
22683 #, no-wrap
22684 msgid ""
22685 " swapoff-device device\n"
22686 "\n"
22687 msgstr ""
22688
22689 # type: textblock
22690 #: ../fish/guestfish-actions.pod:3826
22691 msgid ""
22692 "This command disables the libguestfs appliance swap device or partition "
22693 "named C<device>.  See L</swapon-device>."
22694 msgstr ""
22695
22696 # type: =head2
22697 #: ../fish/guestfish-actions.pod:3830
22698 msgid "swapoff-file"
22699 msgstr ""
22700
22701 # type: verbatim
22702 #: ../fish/guestfish-actions.pod:3832
22703 #, no-wrap
22704 msgid ""
22705 " swapoff-file file\n"
22706 "\n"
22707 msgstr ""
22708
22709 # type: =head2
22710 #: ../fish/guestfish-actions.pod:3836
22711 msgid "swapoff-label"
22712 msgstr ""
22713
22714 # type: verbatim
22715 #: ../fish/guestfish-actions.pod:3838
22716 #, no-wrap
22717 msgid ""
22718 " swapoff-label label\n"
22719 "\n"
22720 msgstr ""
22721
22722 # type: =head2
22723 #: ../fish/guestfish-actions.pod:3843
22724 msgid "swapoff-uuid"
22725 msgstr ""
22726
22727 # type: verbatim
22728 #: ../fish/guestfish-actions.pod:3845
22729 #, no-wrap
22730 msgid ""
22731 " swapoff-uuid uuid\n"
22732 "\n"
22733 msgstr ""
22734
22735 # type: =head2
22736 #: ../fish/guestfish-actions.pod:3850
22737 msgid "swapon-device"
22738 msgstr ""
22739
22740 # type: verbatim
22741 #: ../fish/guestfish-actions.pod:3852
22742 #, no-wrap
22743 msgid ""
22744 " swapon-device device\n"
22745 "\n"
22746 msgstr ""
22747
22748 # type: textblock
22749 #: ../fish/guestfish-actions.pod:3854
22750 msgid ""
22751 "This command enables the libguestfs appliance to use the swap device or "
22752 "partition named C<device>.  The increased memory is made available for all "
22753 "commands, for example those run using L</command> or L</sh>."
22754 msgstr ""
22755
22756 # type: =head2
22757 #: ../fish/guestfish-actions.pod:3866
22758 msgid "swapon-file"
22759 msgstr ""
22760
22761 # type: verbatim
22762 #: ../fish/guestfish-actions.pod:3868
22763 #, no-wrap
22764 msgid ""
22765 " swapon-file file\n"
22766 "\n"
22767 msgstr ""
22768
22769 # type: textblock
22770 #: ../fish/guestfish-actions.pod:3870
22771 msgid ""
22772 "This command enables swap to a file.  See L</swapon-device> for other notes."
22773 msgstr ""
22774
22775 # type: =head2
22776 #: ../fish/guestfish-actions.pod:3873
22777 msgid "swapon-label"
22778 msgstr ""
22779
22780 # type: verbatim
22781 #: ../fish/guestfish-actions.pod:3875
22782 #, no-wrap
22783 msgid ""
22784 " swapon-label label\n"
22785 "\n"
22786 msgstr ""
22787
22788 # type: textblock
22789 #: ../fish/guestfish-actions.pod:3877
22790 msgid ""
22791 "This command enables swap to a labeled swap partition.  See L</swapon-"
22792 "device> for other notes."
22793 msgstr ""
22794
22795 # type: =head2
22796 #: ../fish/guestfish-actions.pod:3880
22797 msgid "swapon-uuid"
22798 msgstr ""
22799
22800 # type: verbatim
22801 #: ../fish/guestfish-actions.pod:3882
22802 #, no-wrap
22803 msgid ""
22804 " swapon-uuid uuid\n"
22805 "\n"
22806 msgstr ""
22807
22808 # type: textblock
22809 #: ../fish/guestfish-actions.pod:3884
22810 msgid ""
22811 "This command enables swap to a swap partition with the given UUID.  See L</"
22812 "swapon-device> for other notes."
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:3887
22817 msgid "sync"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-actions.pod:3889
22822 #, no-wrap
22823 msgid ""
22824 " sync\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: =head2
22829 #: ../fish/guestfish-actions.pod:3897
22830 msgid "tail"
22831 msgstr ""
22832
22833 # type: verbatim
22834 #: ../fish/guestfish-actions.pod:3899
22835 #, no-wrap
22836 msgid ""
22837 " tail path\n"
22838 "\n"
22839 msgstr ""
22840
22841 # type: =head2
22842 #: ../fish/guestfish-actions.pod:3907
22843 msgid "tail-n"
22844 msgstr ""
22845
22846 # type: verbatim
22847 #: ../fish/guestfish-actions.pod:3909
22848 #, no-wrap
22849 msgid ""
22850 " tail-n nrlines path\n"
22851 "\n"
22852 msgstr ""
22853
22854 # type: =head2
22855 #: ../fish/guestfish-actions.pod:3922
22856 msgid "tar-in"
22857 msgstr ""
22858
22859 # type: verbatim
22860 #: ../fish/guestfish-actions.pod:3924
22861 #, no-wrap
22862 msgid ""
22863 " tar-in (tarfile|-) directory\n"
22864 "\n"
22865 msgstr ""
22866
22867 # type: textblock
22868 #: ../fish/guestfish-actions.pod:3929
22869 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22870 msgstr ""
22871
22872 # type: =head2
22873 #: ../fish/guestfish-actions.pod:3934
22874 msgid "tar-out"
22875 msgstr ""
22876
22877 # type: verbatim
22878 #: ../fish/guestfish-actions.pod:3936
22879 #, no-wrap
22880 msgid ""
22881 " tar-out directory (tarfile|-)\n"
22882 "\n"
22883 msgstr ""
22884
22885 # type: textblock
22886 #: ../fish/guestfish-actions.pod:3941
22887 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-actions.pod:3946
22892 msgid "tgz-in"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-actions.pod:3948
22897 #, no-wrap
22898 msgid ""
22899 " tgz-in (tarball|-) directory\n"
22900 "\n"
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../fish/guestfish-actions.pod:3953
22905 msgid "To upload an uncompressed tarball, use L</tar-in>."
22906 msgstr ""
22907
22908 # type: =head2
22909 #: ../fish/guestfish-actions.pod:3957
22910 msgid "tgz-out"
22911 msgstr ""
22912
22913 # type: verbatim
22914 #: ../fish/guestfish-actions.pod:3959
22915 #, no-wrap
22916 msgid ""
22917 " tgz-out directory (tarball|-)\n"
22918 "\n"
22919 msgstr ""
22920
22921 # type: textblock
22922 #: ../fish/guestfish-actions.pod:3964
22923 msgid "To download an uncompressed tarball, use L</tar-out>."
22924 msgstr ""
22925
22926 # type: =head2
22927 #: ../fish/guestfish-actions.pod:3968
22928 msgid "touch"
22929 msgstr ""
22930
22931 # type: verbatim
22932 #: ../fish/guestfish-actions.pod:3970
22933 #, no-wrap
22934 msgid ""
22935 " touch path\n"
22936 "\n"
22937 msgstr ""
22938
22939 # type: =head2
22940 #: ../fish/guestfish-actions.pod:3979
22941 msgid "truncate"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../fish/guestfish-actions.pod:3981
22946 #, no-wrap
22947 msgid ""
22948 " truncate path\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: =head2
22953 #: ../fish/guestfish-actions.pod:3986
22954 msgid "truncate-size"
22955 msgstr ""
22956
22957 # type: verbatim
22958 #: ../fish/guestfish-actions.pod:3988
22959 #, no-wrap
22960 msgid ""
22961 " truncate-size path size\n"
22962 "\n"
22963 msgstr ""
22964
22965 # type: textblock
22966 #: ../fish/guestfish-actions.pod:3993
22967 msgid ""
22968 "If the current file size is less than C<size> then the file is extended to "
22969 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22970 "blocks are not allocated for the file until you write to it).  To create a "
22971 "non-sparse file of zeroes, use L</fallocate64> instead."
22972 msgstr ""
22973
22974 # type: =head2
22975 #: ../fish/guestfish-actions.pod:3999
22976 msgid "tune2fs-l"
22977 msgstr ""
22978
22979 # type: verbatim
22980 #: ../fish/guestfish-actions.pod:4001
22981 #, no-wrap
22982 msgid ""
22983 " tune2fs-l device\n"
22984 "\n"
22985 msgstr ""
22986
22987 # type: =head2
22988 #: ../fish/guestfish-actions.pod:4011
22989 msgid "txz-in"
22990 msgstr ""
22991
22992 # type: verbatim
22993 #: ../fish/guestfish-actions.pod:4013
22994 #, no-wrap
22995 msgid ""
22996 " txz-in (tarball|-) directory\n"
22997 "\n"
22998 msgstr ""
22999
23000 # type: =head2
23001 #: ../fish/guestfish-actions.pod:4020
23002 msgid "txz-out"
23003 msgstr ""
23004
23005 # type: verbatim
23006 #: ../fish/guestfish-actions.pod:4022
23007 #, no-wrap
23008 msgid ""
23009 " txz-out directory (tarball|-)\n"
23010 "\n"
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-actions.pod:4029
23015 msgid "umask"
23016 msgstr ""
23017
23018 # type: verbatim
23019 #: ../fish/guestfish-actions.pod:4031
23020 #, no-wrap
23021 msgid ""
23022 " umask mask\n"
23023 "\n"
23024 msgstr ""
23025
23026 # type: textblock
23027 #: ../fish/guestfish-actions.pod:4045
23028 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23029 msgstr ""
23030
23031 # type: =head2
23032 #: ../fish/guestfish-actions.pod:4050
23033 msgid "umount"
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:4052
23038 msgid "unmount"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:4054
23043 #, no-wrap
23044 msgid ""
23045 " umount pathordevice\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:4060
23051 msgid "umount-all"
23052 msgstr ""
23053
23054 # type: =head2
23055 #: ../fish/guestfish-actions.pod:4062
23056 msgid "unmount-all"
23057 msgstr ""
23058
23059 # type: verbatim
23060 #: ../fish/guestfish-actions.pod:4064
23061 #, no-wrap
23062 msgid ""
23063 " umount-all\n"
23064 "\n"
23065 msgstr ""
23066
23067 # type: =head2
23068 #: ../fish/guestfish-actions.pod:4070
23069 msgid "upload"
23070 msgstr ""
23071
23072 # type: verbatim
23073 #: ../fish/guestfish-actions.pod:4072
23074 #, no-wrap
23075 msgid ""
23076 " upload (filename|-) remotefilename\n"
23077 "\n"
23078 msgstr ""
23079
23080 # type: textblock
23081 #: ../fish/guestfish-actions.pod:4079
23082 msgid "See also L</download>."
23083 msgstr ""
23084
23085 # type: =head2
23086 #: ../fish/guestfish-actions.pod:4083
23087 msgid "upload-offset"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #: ../fish/guestfish-actions.pod:4085
23092 #, no-wrap
23093 msgid ""
23094 " upload-offset (filename|-) remotefilename offset\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: textblock
23099 #: ../fish/guestfish-actions.pod:4097
23100 msgid ""
23101 "Note that there is no limit on the amount of data that can be uploaded with "
23102 "this call, unlike with L</pwrite>, and this call always writes the full "
23103 "amount unless an error occurs."
23104 msgstr ""
23105
23106 # type: textblock
23107 #: ../fish/guestfish-actions.pod:4102
23108 msgid "See also L</upload>, L</pwrite>."
23109 msgstr ""
23110
23111 # type: =head2
23112 #: ../fish/guestfish-actions.pod:4106
23113 msgid "utimens"
23114 msgstr ""
23115
23116 # type: verbatim
23117 #: ../fish/guestfish-actions.pod:4108
23118 #, no-wrap
23119 msgid ""
23120 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23121 "\n"
23122 msgstr ""
23123
23124 # type: =head2
23125 #: ../fish/guestfish-actions.pod:4127
23126 msgid "version"
23127 msgstr ""
23128
23129 # type: verbatim
23130 #: ../fish/guestfish-actions.pod:4129
23131 #, no-wrap
23132 msgid ""
23133 " version\n"
23134 "\n"
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../fish/guestfish-actions.pod:4156
23139 msgid ""
23140 "I<Note:> Don't use this call to test for availability of features.  In "
23141 "enterprise distributions we backport features from later versions into "
23142 "earlier versions, making this an unreliable way to test for features.  Use "
23143 "L</available> instead."
23144 msgstr ""
23145
23146 # type: =head2
23147 #: ../fish/guestfish-actions.pod:4162
23148 msgid "vfs-label"
23149 msgstr ""
23150
23151 # type: verbatim
23152 #: ../fish/guestfish-actions.pod:4164
23153 #, no-wrap
23154 msgid ""
23155 " vfs-label device\n"
23156 "\n"
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../fish/guestfish-actions.pod:4171
23161 msgid "To find a filesystem from the label, use L</findfs-label>."
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:4173
23166 msgid "vfs-type"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:4175
23171 #, no-wrap
23172 msgid ""
23173 " vfs-type device\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: =head2
23178 #: ../fish/guestfish-actions.pod:4185
23179 msgid "vfs-uuid"
23180 msgstr ""
23181
23182 # type: verbatim
23183 #: ../fish/guestfish-actions.pod:4187
23184 #, no-wrap
23185 msgid ""
23186 " vfs-uuid device\n"
23187 "\n"
23188 msgstr ""
23189
23190 # type: textblock
23191 #: ../fish/guestfish-actions.pod:4194
23192 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23193 msgstr ""
23194
23195 # type: =head2
23196 #: ../fish/guestfish-actions.pod:4196
23197 msgid "vg-activate"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #: ../fish/guestfish-actions.pod:4198
23202 #, no-wrap
23203 msgid ""
23204 " vg-activate true|false 'volgroups ...'\n"
23205 "\n"
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:4211
23210 msgid "vg-activate-all"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:4213
23215 #, no-wrap
23216 msgid ""
23217 " vg-activate-all true|false\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: =head2
23222 #: ../fish/guestfish-actions.pod:4223
23223 msgid "vgcreate"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../fish/guestfish-actions.pod:4225
23228 #, no-wrap
23229 msgid ""
23230 " vgcreate volgroup 'physvols ...'\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: =head2
23235 #: ../fish/guestfish-actions.pod:4230
23236 msgid "vglvuuids"
23237 msgstr ""
23238
23239 # type: verbatim
23240 #: ../fish/guestfish-actions.pod:4232
23241 #, no-wrap
23242 msgid ""
23243 " vglvuuids vgname\n"
23244 "\n"
23245 msgstr ""
23246
23247 # type: textblock
23248 #: ../fish/guestfish-actions.pod:4237
23249 msgid ""
23250 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23251 "logical volumes and volume groups."
23252 msgstr ""
23253
23254 # type: textblock
23255 #: ../fish/guestfish-actions.pod:4240
23256 msgid "See also L</vgpvuuids>."
23257 msgstr ""
23258
23259 # type: =head2
23260 #: ../fish/guestfish-actions.pod:4242
23261 msgid "vgpvuuids"
23262 msgstr ""
23263
23264 # type: verbatim
23265 #: ../fish/guestfish-actions.pod:4244
23266 #, no-wrap
23267 msgid ""
23268 " vgpvuuids vgname\n"
23269 "\n"
23270 msgstr ""
23271
23272 # type: textblock
23273 #: ../fish/guestfish-actions.pod:4249
23274 msgid ""
23275 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23276 "physical volumes and volume groups."
23277 msgstr ""
23278
23279 # type: textblock
23280 #: ../fish/guestfish-actions.pod:4252
23281 msgid "See also L</vglvuuids>."
23282 msgstr ""
23283
23284 # type: =head2
23285 #: ../fish/guestfish-actions.pod:4254
23286 msgid "vgremove"
23287 msgstr ""
23288
23289 # type: verbatim
23290 #: ../fish/guestfish-actions.pod:4256
23291 #, no-wrap
23292 msgid ""
23293 " vgremove vgname\n"
23294 "\n"
23295 msgstr ""
23296
23297 # type: =head2
23298 #: ../fish/guestfish-actions.pod:4263
23299 msgid "vgrename"
23300 msgstr ""
23301
23302 # type: verbatim
23303 #: ../fish/guestfish-actions.pod:4265
23304 #, no-wrap
23305 msgid ""
23306 " vgrename volgroup newvolgroup\n"
23307 "\n"
23308 msgstr ""
23309
23310 # type: =head2
23311 #: ../fish/guestfish-actions.pod:4269
23312 msgid "vgs"
23313 msgstr ""
23314
23315 # type: verbatim
23316 #: ../fish/guestfish-actions.pod:4271
23317 #, no-wrap
23318 msgid ""
23319 " vgs\n"
23320 "\n"
23321 msgstr ""
23322
23323 # type: textblock
23324 #: ../fish/guestfish-actions.pod:4279
23325 msgid "See also L</vgs-full>."
23326 msgstr ""
23327
23328 # type: =head2
23329 #: ../fish/guestfish-actions.pod:4281
23330 msgid "vgs-full"
23331 msgstr ""
23332
23333 # type: verbatim
23334 #: ../fish/guestfish-actions.pod:4283
23335 #, no-wrap
23336 msgid ""
23337 " vgs-full\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: =head2
23342 #: ../fish/guestfish-actions.pod:4288
23343 msgid "vgscan"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../fish/guestfish-actions.pod:4290
23348 #, no-wrap
23349 msgid ""
23350 " vgscan\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: =head2
23355 #: ../fish/guestfish-actions.pod:4295
23356 msgid "vguuid"
23357 msgstr ""
23358
23359 # type: verbatim
23360 #: ../fish/guestfish-actions.pod:4297
23361 #, no-wrap
23362 msgid ""
23363 " vguuid vgname\n"
23364 "\n"
23365 msgstr ""
23366
23367 # type: =head2
23368 #: ../fish/guestfish-actions.pod:4301
23369 msgid "wc-c"
23370 msgstr ""
23371
23372 # type: verbatim
23373 #: ../fish/guestfish-actions.pod:4303
23374 #, no-wrap
23375 msgid ""
23376 " wc-c path\n"
23377 "\n"
23378 msgstr ""
23379
23380 # type: =head2
23381 #: ../fish/guestfish-actions.pod:4308
23382 msgid "wc-l"
23383 msgstr ""
23384
23385 # type: verbatim
23386 #: ../fish/guestfish-actions.pod:4310
23387 #, no-wrap
23388 msgid ""
23389 " wc-l path\n"
23390 "\n"
23391 msgstr ""
23392
23393 # type: =head2
23394 #: ../fish/guestfish-actions.pod:4315
23395 msgid "wc-w"
23396 msgstr ""
23397
23398 # type: verbatim
23399 #: ../fish/guestfish-actions.pod:4317
23400 #, no-wrap
23401 msgid ""
23402 " wc-w path\n"
23403 "\n"
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:4322
23408 msgid "write"
23409 msgstr ""
23410
23411 # type: verbatim
23412 #: ../fish/guestfish-actions.pod:4324
23413 #, no-wrap
23414 msgid ""
23415 " write path content\n"
23416 "\n"
23417 msgstr ""
23418
23419 # type: =head2
23420 #: ../fish/guestfish-actions.pod:4332
23421 msgid "write-file"
23422 msgstr ""
23423
23424 # type: verbatim
23425 #: ../fish/guestfish-actions.pod:4334
23426 #, no-wrap
23427 msgid ""
23428 " write-file path content size\n"
23429 "\n"
23430 msgstr ""
23431
23432 # type: =head2
23433 #: ../fish/guestfish-actions.pod:4357
23434 msgid "zegrep"
23435 msgstr ""
23436
23437 # type: verbatim
23438 #: ../fish/guestfish-actions.pod:4359
23439 #, no-wrap
23440 msgid ""
23441 " zegrep regex path\n"
23442 "\n"
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:4367
23447 msgid "zegrepi"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:4369
23452 #, no-wrap
23453 msgid ""
23454 " zegrepi regex path\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: =head2
23459 #: ../fish/guestfish-actions.pod:4377
23460 msgid "zero"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #: ../fish/guestfish-actions.pod:4379
23465 #, no-wrap
23466 msgid ""
23467 " zero device\n"
23468 "\n"
23469 msgstr ""
23470
23471 # type: textblock
23472 #: ../fish/guestfish-actions.pod:4387
23473 msgid "See also: L</zero-device>, L</scrub-device>."
23474 msgstr ""
23475
23476 # type: =head2
23477 #: ../fish/guestfish-actions.pod:4389
23478 msgid "zero-device"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #: ../fish/guestfish-actions.pod:4391
23483 #, no-wrap
23484 msgid ""
23485 " zero-device device\n"
23486 "\n"
23487 msgstr ""
23488
23489 # type: textblock
23490 #: ../fish/guestfish-actions.pod:4393
23491 msgid ""
23492 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23493 "which just zeroes the first few blocks of a device."
23494 msgstr ""
23495
23496 # type: =head2
23497 #: ../fish/guestfish-actions.pod:4400
23498 msgid "zerofree"
23499 msgstr ""
23500
23501 # type: verbatim
23502 #: ../fish/guestfish-actions.pod:4402
23503 #, no-wrap
23504 msgid ""
23505 " zerofree device\n"
23506 "\n"
23507 msgstr ""
23508
23509 # type: =head2
23510 #: ../fish/guestfish-actions.pod:4415
23511 msgid "zfgrep"
23512 msgstr ""
23513
23514 # type: verbatim
23515 #: ../fish/guestfish-actions.pod:4417
23516 #, no-wrap
23517 msgid ""
23518 " zfgrep pattern path\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: =head2
23523 #: ../fish/guestfish-actions.pod:4425
23524 msgid "zfgrepi"
23525 msgstr ""
23526
23527 # type: verbatim
23528 #: ../fish/guestfish-actions.pod:4427
23529 #, no-wrap
23530 msgid ""
23531 " zfgrepi pattern path\n"
23532 "\n"
23533 msgstr ""
23534
23535 # type: =head2
23536 #: ../fish/guestfish-actions.pod:4435
23537 msgid "zfile"
23538 msgstr ""
23539
23540 # type: verbatim
23541 #: ../fish/guestfish-actions.pod:4437
23542 #, no-wrap
23543 msgid ""
23544 " zfile meth path\n"
23545 "\n"
23546 msgstr ""
23547
23548 # type: textblock
23549 #: ../fish/guestfish-actions.pod:4444
23550 msgid ""
23551 "Since 1.0.63, use L</file> instead which can now process compressed files."
23552 msgstr ""
23553
23554 # type: =head2
23555 #: ../fish/guestfish-actions.pod:4454
23556 msgid "zgrep"
23557 msgstr ""
23558
23559 # type: verbatim
23560 #: ../fish/guestfish-actions.pod:4456
23561 #, no-wrap
23562 msgid ""
23563 " zgrep regex path\n"
23564 "\n"
23565 msgstr ""
23566
23567 # type: =head2
23568 #: ../fish/guestfish-actions.pod:4464
23569 msgid "zgrepi"
23570 msgstr ""
23571
23572 # type: verbatim
23573 #: ../fish/guestfish-actions.pod:4466
23574 #, no-wrap
23575 msgid ""
23576 " zgrepi regex path\n"
23577 "\n"
23578 msgstr ""
23579
23580 # type: =head2
23581 #: ../fish/guestfish-commands.pod:1
23582 msgid "alloc"
23583 msgstr ""
23584
23585 # type: =head2
23586 #: ../fish/guestfish-commands.pod:3
23587 msgid "allocate"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #: ../fish/guestfish-commands.pod:5
23592 #, no-wrap
23593 msgid ""
23594 " alloc filename size\n"
23595 "\n"
23596 msgstr ""
23597
23598 # type: textblock
23599 #: ../fish/guestfish-commands.pod:7
23600 msgid ""
23601 "This creates an empty (zeroed) file of the given size, and then adds so it "
23602 "can be further examined."
23603 msgstr ""
23604
23605 # type: textblock
23606 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23607 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23608 msgstr ""
23609
23610 # type: textblock
23611 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23612 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23613 msgstr ""
23614
23615 # type: textblock
23616 #: ../fish/guestfish-commands.pod:14
23617 msgid ""
23618 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23619 "image, see L</PREPARED DISK IMAGES>."
23620 msgstr ""
23621
23622 # type: =head2
23623 #: ../fish/guestfish-commands.pod:17
23624 msgid "copy-in"
23625 msgstr ""
23626
23627 # type: verbatim
23628 #: ../fish/guestfish-commands.pod:19
23629 #, no-wrap
23630 msgid ""
23631 " copy-in local [local ...] /remotedir\n"
23632 "\n"
23633 msgstr ""
23634
23635 # type: textblock
23636 #: ../fish/guestfish-commands.pod:21
23637 msgid ""
23638 "C<copy-in> copies local files or directories recursively into the disk "
23639 "image, placing them in the directory called C</remotedir> (which must "
23640 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23641 "other commands as necessary."
23642 msgstr ""
23643
23644 # type: textblock
23645 #: ../fish/guestfish-commands.pod:26
23646 msgid ""
23647 "Multiple local files and directories can be specified, but the last "
23648 "parameter must always be a remote directory.  Wildcards cannot be used."
23649 msgstr ""
23650
23651 # type: =head2
23652 #: ../fish/guestfish-commands.pod:30
23653 msgid "copy-out"
23654 msgstr ""
23655
23656 # type: verbatim
23657 #: ../fish/guestfish-commands.pod:32
23658 #, no-wrap
23659 msgid ""
23660 " copy-out remote [remote ...] localdir\n"
23661 "\n"
23662 msgstr ""
23663
23664 # type: textblock
23665 #: ../fish/guestfish-commands.pod:34
23666 msgid ""
23667 "C<copy-out> copies remote files or directories recursively out of the disk "
23668 "image, placing them on the host disk in a local directory called C<localdir> "
23669 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23670 "download>, L</tar-out> and other commands as necessary."
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../fish/guestfish-commands.pod:40
23675 msgid ""
23676 "Multiple remote files and directories can be specified, but the last "
23677 "parameter must always be a local directory.  To download to the current "
23678 "directory, use C<.> as in:"
23679 msgstr ""
23680
23681 # type: verbatim
23682 #: ../fish/guestfish-commands.pod:44
23683 #, no-wrap
23684 msgid ""
23685 " copy-out /home .\n"
23686 "\n"
23687 msgstr ""
23688
23689 # type: textblock
23690 #: ../fish/guestfish-commands.pod:46
23691 msgid ""
23692 "Wildcards cannot be used in the ordinary command, but you can use them with "
23693 "the help of L</glob> like this:"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #: ../fish/guestfish-commands.pod:49
23698 #, no-wrap
23699 msgid ""
23700 " glob copy-out /home/* .\n"
23701 "\n"
23702 msgstr ""
23703
23704 # type: =head2
23705 #: ../fish/guestfish-commands.pod:51
23706 msgid "echo"
23707 msgstr ""
23708
23709 # type: verbatim
23710 #: ../fish/guestfish-commands.pod:53
23711 #, no-wrap
23712 msgid ""
23713 " echo [params ...]\n"
23714 "\n"
23715 msgstr ""
23716
23717 # type: textblock
23718 #: ../fish/guestfish-commands.pod:55
23719 msgid "This echos the parameters to the terminal."
23720 msgstr ""
23721
23722 # type: =head2
23723 #: ../fish/guestfish-commands.pod:57
23724 msgid "edit"
23725 msgstr ""
23726
23727 # type: =head2
23728 #: ../fish/guestfish-commands.pod:59
23729 msgid "vi"
23730 msgstr ""
23731
23732 # type: =head2
23733 #: ../fish/guestfish-commands.pod:61
23734 msgid "emacs"
23735 msgstr ""
23736
23737 # type: verbatim
23738 #: ../fish/guestfish-commands.pod:63
23739 #, no-wrap
23740 msgid ""
23741 " edit filename\n"
23742 "\n"
23743 msgstr ""
23744
23745 # type: textblock
23746 #: ../fish/guestfish-commands.pod:65
23747 msgid ""
23748 "This is used to edit a file.  It downloads the file, edits it locally using "
23749 "your editor, then uploads the result."
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../fish/guestfish-commands.pod:68
23754 msgid ""
23755 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23756 "or C<emacs> you will get those corresponding editors."
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-commands.pod:72
23761 msgid "glob"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-commands.pod:74
23766 #, no-wrap
23767 msgid ""
23768 " glob command args...\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../fish/guestfish-commands.pod:76
23774 msgid ""
23775 "Expand wildcards in any paths in the args list, and run C<command> "
23776 "repeatedly on each matching path."
23777 msgstr ""
23778
23779 # type: textblock
23780 #: ../fish/guestfish-commands.pod:79
23781 msgid "See L</WILDCARDS AND GLOBBING>."
23782 msgstr ""
23783
23784 # type: =head2
23785 #: ../fish/guestfish-commands.pod:81
23786 msgid "hexedit"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #: ../fish/guestfish-commands.pod:83
23791 #, no-wrap
23792 msgid ""
23793 " hexedit <filename|device>\n"
23794 " hexedit <filename|device> <max>\n"
23795 " hexedit <filename|device> <start> <max>\n"
23796 "\n"
23797 msgstr ""
23798
23799 # type: textblock
23800 #: ../fish/guestfish-commands.pod:87
23801 msgid ""
23802 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23803 "device."
23804 msgstr ""
23805
23806 # type: textblock
23807 #: ../fish/guestfish-commands.pod:90
23808 msgid ""
23809 "This command works by downloading potentially the whole file or device, "
23810 "editing it locally, then uploading it.  If the file or device is large, you "
23811 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23812 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23813 "usual modifiers allowed such as C<1M> (1 megabyte)."
23814 msgstr ""
23815
23816 # type: textblock
23817 #: ../fish/guestfish-commands.pod:97
23818 msgid "For example to edit the first few sectors of a disk you might do:"
23819 msgstr ""
23820
23821 # type: verbatim
23822 #: ../fish/guestfish-commands.pod:100
23823 #, no-wrap
23824 msgid ""
23825 " hexedit /dev/sda 1M\n"
23826 "\n"
23827 msgstr ""
23828
23829 # type: textblock
23830 #: ../fish/guestfish-commands.pod:102
23831 msgid ""
23832 "which would allow you to edit anywhere within the first megabyte of the disk."
23833 msgstr ""
23834
23835 # type: textblock
23836 #: ../fish/guestfish-commands.pod:105
23837 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23838 msgstr ""
23839
23840 # type: verbatim
23841 #: ../fish/guestfish-commands.pod:107
23842 #, no-wrap
23843 msgid ""
23844 " hexedit /dev/sda1 0x400 0x400\n"
23845 "\n"
23846 msgstr ""
23847
23848 # type: textblock
23849 #: ../fish/guestfish-commands.pod:109
23850 msgid "(assuming the superblock is in the standard location)."
23851 msgstr ""
23852
23853 # type: textblock
23854 #: ../fish/guestfish-commands.pod:111
23855 msgid ""
23856 "This command requires the external L<hexedit(1)> program.  You can specify "
23857 "another program to use by setting the C<HEXEDITOR> environment variable."
23858 msgstr ""
23859
23860 # type: textblock
23861 #: ../fish/guestfish-commands.pod:115
23862 msgid "See also L</hexdump>."
23863 msgstr ""
23864
23865 # type: =head2
23866 #: ../fish/guestfish-commands.pod:117
23867 msgid "lcd"
23868 msgstr ""
23869
23870 # type: verbatim
23871 #: ../fish/guestfish-commands.pod:119
23872 #, no-wrap
23873 msgid ""
23874 " lcd directory\n"
23875 "\n"
23876 msgstr ""
23877
23878 # type: textblock
23879 #: ../fish/guestfish-commands.pod:121
23880 msgid ""
23881 "Change the local directory, ie. the current directory of guestfish itself."
23882 msgstr ""
23883
23884 # type: textblock
23885 #: ../fish/guestfish-commands.pod:124
23886 msgid "Note that C<!cd> won't do what you might expect."
23887 msgstr ""
23888
23889 # type: =head2
23890 #: ../fish/guestfish-commands.pod:126
23891 msgid "man"
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-commands.pod:128
23896 msgid "manual"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-commands.pod:130
23901 #, no-wrap
23902 msgid ""
23903 "  man\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: textblock
23908 #: ../fish/guestfish-commands.pod:132
23909 msgid "Opens the manual page for guestfish."
23910 msgstr ""
23911
23912 # type: =head2
23913 #: ../fish/guestfish-commands.pod:134
23914 msgid "more"
23915 msgstr ""
23916
23917 # type: =head2
23918 #: ../fish/guestfish-commands.pod:136
23919 msgid "less"
23920 msgstr ""
23921
23922 # type: verbatim
23923 #: ../fish/guestfish-commands.pod:138
23924 #, no-wrap
23925 msgid ""
23926 " more filename\n"
23927 "\n"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #: ../fish/guestfish-commands.pod:140
23932 #, no-wrap
23933 msgid ""
23934 " less filename\n"
23935 "\n"
23936 msgstr ""
23937
23938 # type: textblock
23939 #: ../fish/guestfish-commands.pod:142
23940 msgid "This is used to view a file."
23941 msgstr ""
23942
23943 # type: textblock
23944 #: ../fish/guestfish-commands.pod:144
23945 msgid ""
23946 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23947 "C<less> you will get the C<less> command specifically."
23948 msgstr ""
23949
23950 # type: =head2
23951 #: ../fish/guestfish-commands.pod:147
23952 msgid "reopen"
23953 msgstr ""
23954
23955 # type: verbatim
23956 #: ../fish/guestfish-commands.pod:149
23957 #, no-wrap
23958 msgid ""
23959 "  reopen\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: textblock
23964 #: ../fish/guestfish-commands.pod:151
23965 msgid ""
23966 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23967 "normally, because the handle is closed properly when guestfish exits.  "
23968 "However this is occasionally useful for testing."
23969 msgstr ""
23970
23971 # type: =head2
23972 #: ../fish/guestfish-commands.pod:155
23973 msgid "sparse"
23974 msgstr ""
23975
23976 # type: verbatim
23977 #: ../fish/guestfish-commands.pod:157
23978 #, no-wrap
23979 msgid ""
23980 " sparse filename size\n"
23981 "\n"
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../fish/guestfish-commands.pod:159
23986 msgid ""
23987 "This creates an empty sparse file of the given size, and then adds so it can "
23988 "be further examined."
23989 msgstr ""
23990
23991 # type: textblock
23992 #: ../fish/guestfish-commands.pod:162
23993 msgid ""
23994 "In all respects it works the same as the L</alloc> command, except that the "
23995 "image file is allocated sparsely, which means that disk blocks are not "
23996 "assigned to the file until they are needed.  Sparse disk files only use "
23997 "space when written to, but they are slower and there is a danger you could "
23998 "run out of real disk space during a write operation."
23999 msgstr ""
24000
24001 # type: =head2
24002 #: ../fish/guestfish-commands.pod:172
24003 msgid "supported"
24004 msgstr ""
24005
24006 # type: verbatim
24007 #: ../fish/guestfish-commands.pod:174
24008 #, no-wrap
24009 msgid ""
24010 " supported\n"
24011 "\n"
24012 msgstr ""
24013
24014 # type: textblock
24015 #: ../fish/guestfish-commands.pod:176
24016 msgid ""
24017 "This command returns a list of the optional groups known to the daemon, and "
24018 "indicates which ones are supported by this build of the libguestfs appliance."
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../fish/guestfish-commands.pod:180
24023 msgid "See also L<guestfs(3)/AVAILABILITY>."
24024 msgstr ""
24025
24026 # type: =head2
24027 #: ../fish/guestfish-commands.pod:182
24028 msgid "time"
24029 msgstr ""
24030
24031 # type: verbatim
24032 #: ../fish/guestfish-commands.pod:184
24033 #, no-wrap
24034 msgid ""
24035 " time command args...\n"
24036 "\n"
24037 msgstr ""
24038
24039 # type: textblock
24040 #: ../fish/guestfish-commands.pod:186
24041 msgid ""
24042 "Run the command as usual, but print the elapsed time afterwards.  This can "
24043 "be useful for benchmarking operations."
24044 msgstr ""
24045
24046 # type: textblock
24047 #: ../test-tool/libguestfs-test-tool.pod:5
24048 msgid "libguestfs-test-tool - End user tests for libguestfs"
24049 msgstr ""
24050
24051 # type: verbatim
24052 #: ../test-tool/libguestfs-test-tool.pod:9
24053 #, no-wrap
24054 msgid ""
24055 " libguestfs-test-tool [--options]\n"
24056 "\n"
24057 msgstr ""
24058
24059 # type: textblock
24060 #: ../test-tool/libguestfs-test-tool.pod:13
24061 msgid ""
24062 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24063 "and developers, to allow them to check basic libguestfs functionality is "
24064 "working.  This is needed because libguestfs occasionally breaks for reasons "
24065 "beyond our control: usually because of changes in the underlying qemu or "
24066 "kernel packages, or the host environment."
24067 msgstr ""
24068
24069 # type: textblock
24070 #: ../test-tool/libguestfs-test-tool.pod:20
24071 msgid "If you suspect a problem in libguestfs, then just run:"
24072 msgstr ""
24073
24074 # type: verbatim
24075 #: ../test-tool/libguestfs-test-tool.pod:22
24076 #, no-wrap
24077 msgid ""
24078 " libguestfs-test-tool\n"
24079 "\n"
24080 msgstr ""
24081
24082 # type: textblock
24083 #: ../test-tool/libguestfs-test-tool.pod:24
24084 msgid "It will print lots of diagnostic messages."
24085 msgstr ""
24086
24087 # type: textblock
24088 #: ../test-tool/libguestfs-test-tool.pod:26
24089 msgid "If it runs to completion successfully, you will see this near the end:"
24090 msgstr ""
24091
24092 # type: verbatim
24093 #: ../test-tool/libguestfs-test-tool.pod:28
24094 #, no-wrap
24095 msgid ""
24096 " ===== TEST FINISHED OK =====\n"
24097 "\n"
24098 msgstr ""
24099
24100 # type: textblock
24101 #: ../test-tool/libguestfs-test-tool.pod:30
24102 msgid "and the test tool will exit with code 0."
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../test-tool/libguestfs-test-tool.pod:32
24107 msgid ""
24108 "If it fails (and/or exits with non-zero error code), please paste the "
24109 "B<complete, unedited> output of the test tool into a bug report.  More "
24110 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24111 "> website."
24112 msgstr ""
24113
24114 # type: =item
24115 #: ../test-tool/libguestfs-test-tool.pod:41
24116 msgid "I<--help>"
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../test-tool/libguestfs-test-tool.pod:43
24121 msgid "Display short usage information and exit."
24122 msgstr ""
24123
24124 # type: =item
24125 #: ../test-tool/libguestfs-test-tool.pod:45
24126 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24127 msgstr ""
24128
24129 # type: textblock
24130 #: ../test-tool/libguestfs-test-tool.pod:47
24131 msgid ""
24132 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24133 "normally look in the C<$libexec> directory that was configured when the tool "
24134 "was built."
24135 msgstr ""
24136
24137 # type: =item
24138 #: ../test-tool/libguestfs-test-tool.pod:51
24139 msgid "I<--qemu qemu_binary>"
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../test-tool/libguestfs-test-tool.pod:53
24144 msgid ""
24145 "If you have downloaded another qemu binary, point this option at the full "
24146 "path of the binary to try it."
24147 msgstr ""
24148
24149 # type: =item
24150 #: ../test-tool/libguestfs-test-tool.pod:56
24151 msgid "I<--qemudir qemu_source_dir>"
24152 msgstr ""
24153
24154 # type: textblock
24155 #: ../test-tool/libguestfs-test-tool.pod:58
24156 msgid ""
24157 "If you have compiled qemu from source, point this option at the source "
24158 "directory to try it."
24159 msgstr ""
24160
24161 # type: =item
24162 #: ../test-tool/libguestfs-test-tool.pod:61
24163 msgid "I<--timeout N>"
24164 msgstr ""
24165
24166 # type: textblock
24167 #: ../test-tool/libguestfs-test-tool.pod:63
24168 msgid ""
24169 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24170 "does not usually need to be adjusted unless your machine is very slow."
24171 msgstr ""
24172
24173 # type: =head1
24174 #: ../test-tool/libguestfs-test-tool.pod:69
24175 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24176 msgstr ""
24177
24178 # type: textblock
24179 #: ../test-tool/libguestfs-test-tool.pod:71
24180 msgid ""
24181 "If you have compiled another version of qemu from source and would like to "
24182 "try that, then you can use the I<--qemudir> option to point to the qemu "
24183 "source directory."
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../test-tool/libguestfs-test-tool.pod:75
24188 msgid ""
24189 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24190 "option to point to the binary."
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../test-tool/libguestfs-test-tool.pod:78
24195 msgid ""
24196 "When using an alternate qemu with libguestfs, usually you would need to "
24197 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
24198 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
24199 "use either of the I<--qemudir> or I<--qemu> options."
24200 msgstr ""
24201
24202 # type: textblock
24203 #: ../test-tool/libguestfs-test-tool.pod:85
24204 msgid ""
24205 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24206 "I<1> if there was an error."
24207 msgstr ""
24208
24209 # type: =item
24210 #: ../test-tool/libguestfs-test-tool.pod:92
24211 msgid "/usr/libexec/libguestfs-test-tool-helper"
24212 msgstr ""
24213
24214 # type: textblock
24215 #: ../test-tool/libguestfs-test-tool.pod:94
24216 msgid ""
24217 "This helper program is run inside the appliance and provides additional "
24218 "tests."
24219 msgstr ""
24220
24221 # type: =item
24222 #: ../test-tool/libguestfs-test-tool.pod:97
24223 msgid "/usr/bin/mkisofs"
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../test-tool/libguestfs-test-tool.pod:99
24228 msgid ""
24229 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24230 "which is used as part of the tests."
24231 msgstr ""
24232
24233 # type: textblock
24234 #: ../test-tool/libguestfs-test-tool.pod:106
24235 msgid ""
24236 "For the full list of environment variables which may affect libguestfs, "
24237 "please see the L<guestfs(3)> manual page."
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../test-tool/libguestfs-test-tool.pod:111
24242 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24243 msgstr ""
24244
24245 # type: textblock
24246 #: ../test-tool/libguestfs-test-tool.pod:121
24247 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../fuse/guestmount.pod:5
24252 msgid ""
24253 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24254 msgstr ""
24255
24256 # type: verbatim
24257 #: ../fuse/guestmount.pod:9
24258 #, no-wrap
24259 msgid ""
24260 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24261 "\n"
24262 msgstr ""
24263
24264 # type: verbatim
24265 #: ../fuse/guestmount.pod:11
24266 #, no-wrap
24267 msgid ""
24268 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24269 "\n"
24270 msgstr ""
24271
24272 # type: verbatim
24273 #: ../fuse/guestmount.pod:13
24274 #, no-wrap
24275 msgid ""
24276 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24277 "\n"
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../fuse/guestmount.pod:17
24282 msgid ""
24283 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24284 "machines.  If you do this, you risk disk corruption in the VM."
24285 msgstr ""
24286
24287 # type: textblock
24288 #: ../fuse/guestmount.pod:22
24289 msgid ""
24290 "The guestmount program can be used to mount virtual machine filesystems and "
24291 "other disk images on the host.  It uses libguestfs for access to the guest "
24292 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24293 "a mountable device."
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../fuse/guestmount.pod:27
24298 msgid ""
24299 "Along with other options, you have to give at least one device (I<-a> "
24300 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24301 "option) or use the I<-i> inspection option.  How this works is better "
24302 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24303 "below."
24304 msgstr ""
24305
24306 # type: textblock
24307 #: ../fuse/guestmount.pod:33
24308 msgid ""
24309 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24310 "by you, and the filesystem will not be visible to any other users unless you "
24311 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24312 "the filesystem, use the C<fusermount -u> command."
24313 msgstr ""
24314
24315 # type: textblock
24316 #: ../fuse/guestmount.pod:41
24317 msgid ""
24318 "For a typical Windows guest which has its main filesystem on the first "
24319 "partition:"
24320 msgstr ""
24321
24322 # type: verbatim
24323 #: ../fuse/guestmount.pod:44
24324 #, no-wrap
24325 msgid ""
24326 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24327 "\n"
24328 msgstr ""
24329
24330 # type: textblock
24331 #: ../fuse/guestmount.pod:46
24332 msgid ""
24333 "For a typical Linux guest which has a /boot filesystem on the first "
24334 "partition, and the root filesystem on a logical volume:"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #: ../fuse/guestmount.pod:49
24339 #, no-wrap
24340 msgid ""
24341 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24342 "\n"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../fuse/guestmount.pod:51
24347 msgid "To get libguestfs to detect guest mountpoints for you:"
24348 msgstr ""
24349
24350 # type: verbatim
24351 #: ../fuse/guestmount.pod:53
24352 #, no-wrap
24353 msgid ""
24354 " guestmount -a guest.img -i --ro /mnt\n"
24355 "\n"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../fuse/guestmount.pod:55
24360 msgid "For a libvirt guest called \"Guest\" you could do:"
24361 msgstr ""
24362
24363 # type: verbatim
24364 #: ../fuse/guestmount.pod:57
24365 #, no-wrap
24366 msgid ""
24367 " guestmount -d Guest -i --ro /mnt\n"
24368 "\n"
24369 msgstr ""
24370
24371 # type: textblock
24372 #: ../fuse/guestmount.pod:59
24373 msgid ""
24374 "If you don't know what filesystems are contained in a guest or disk image, "
24375 "use L<virt-list-filesystems(1)> first:"
24376 msgstr ""
24377
24378 # type: verbatim
24379 #: ../fuse/guestmount.pod:62
24380 #, no-wrap
24381 msgid ""
24382 " virt-list-filesystems MyGuest\n"
24383 "\n"
24384 msgstr ""
24385
24386 # type: textblock
24387 #: ../fuse/guestmount.pod:64
24388 msgid ""
24389 "If you want to trace the libguestfs calls but without excessive debugging "
24390 "information, we recommend:"
24391 msgstr ""
24392
24393 # type: verbatim
24394 #: ../fuse/guestmount.pod:67
24395 #, no-wrap
24396 msgid ""
24397 " guestmount [...] --trace /mnt\n"
24398 "\n"
24399 msgstr ""
24400
24401 # type: textblock
24402 #: ../fuse/guestmount.pod:69
24403 msgid "If you want to debug the program, we recommend:"
24404 msgstr ""
24405
24406 # type: verbatim
24407 #: ../fuse/guestmount.pod:71
24408 #, no-wrap
24409 msgid ""
24410 " guestmount [...] --trace --verbose /mnt\n"
24411 "\n"
24412 msgstr ""
24413
24414 # type: textblock
24415 #: ../fuse/guestmount.pod:79
24416 msgid "Add a block device or virtual machine image."
24417 msgstr ""
24418
24419 # type: =item
24420 #: ../fuse/guestmount.pod:96
24421 msgid "B<--dir-cache-timeout N>"
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../fuse/guestmount.pod:98
24426 msgid ""
24427 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24428 "seconds.  The readdir cache [actually, there are several semi-independent "
24429 "caches] is populated after a readdir(2) call with the stat and extended "
24430 "attributes of the files in the directory, in anticipation that they will be "
24431 "requested soon after."
24432 msgstr ""
24433
24434 # type: textblock
24435 #: ../fuse/guestmount.pod:104
24436 msgid ""
24437 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24438 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24439 "requests, only cache existing ones."
24440 msgstr ""
24441
24442 # type: textblock
24443 #: ../fuse/guestmount.pod:115
24444 msgid ""
24445 "If you have untrusted raw-format guest disk images, you should use this "
24446 "option to specify the disk format.  This avoids a possible security problem "
24447 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
24448 "guestfs_add_drive_opts>."
24449 msgstr ""
24450
24451 # type: =item
24452 #: ../fuse/guestmount.pod:120
24453 msgid "B<--fuse-help>"
24454 msgstr ""
24455
24456 # type: textblock
24457 #: ../fuse/guestmount.pod:122
24458 msgid "Display help on special FUSE options (see I<-o> below)."
24459 msgstr ""
24460
24461 # type: textblock
24462 #: ../fuse/guestmount.pod:126
24463 msgid "Display brief help and exit."
24464 msgstr ""
24465
24466 # type: =item
24467 #: ../fuse/guestmount.pod:134
24468 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24469 msgstr ""
24470
24471 # type: textblock
24472 #: ../fuse/guestmount.pod:136
24473 msgid ""
24474 "Mount the named partition or logical volume on the given mountpoint B<in the "
24475 "guest> (this has nothing to do with mountpoints in the host)."
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../fuse/guestmount.pod:139
24480 msgid ""
24481 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24482 "something on C</>."
24483 msgstr ""
24484
24485 # type: textblock
24486 #: ../fuse/guestmount.pod:144
24487 msgid ""
24488 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24489 "unmounted.  If you specify this option, then we don't attempt to sync the "
24490 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24491 msgstr ""
24492
24493 # type: =item
24494 #: ../fuse/guestmount.pod:149
24495 msgid "B<-o option> | B<--option option>"
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../fuse/guestmount.pod:151
24500 msgid "Pass extra options to FUSE."
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../fuse/guestmount.pod:153
24505 msgid ""
24506 "To get a list of all the extra options supported by FUSE, use the command "
24507 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24508 "of them are a good idea."
24509 msgstr ""
24510
24511 # type: verbatim
24512 #: ../fuse/guestmount.pod:157
24513 #, no-wrap
24514 msgid ""
24515 " guestmount --fuse-help\n"
24516 "\n"
24517 msgstr ""
24518
24519 # type: textblock
24520 #: ../fuse/guestmount.pod:159
24521 msgid "Some potentially useful FUSE options:"
24522 msgstr ""
24523
24524 # type: =item
24525 #: ../fuse/guestmount.pod:163
24526 msgid "B<-o allow_other>"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fuse/guestmount.pod:165
24531 msgid "Allow other users to see the filesystem."
24532 msgstr ""
24533
24534 # type: =item
24535 #: ../fuse/guestmount.pod:167
24536 msgid "B<-o attr_timeout=N>"
24537 msgstr ""
24538
24539 # type: textblock
24540 #: ../fuse/guestmount.pod:169
24541 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24542 msgstr ""
24543
24544 # type: =item
24545 #: ../fuse/guestmount.pod:171
24546 msgid "B<-o kernel_cache>"
24547 msgstr ""
24548
24549 # type: textblock
24550 #: ../fuse/guestmount.pod:173
24551 msgid ""
24552 "Allow the kernel to cache files (reduces the number of reads that have to go "
24553 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24554 "afford the extra memory usage."
24555 msgstr ""
24556
24557 # type: =item
24558 #: ../fuse/guestmount.pod:177
24559 msgid "B<-o uid=N> B<-o gid=N>"
24560 msgstr ""
24561
24562 # type: textblock
24563 #: ../fuse/guestmount.pod:179
24564 msgid ""
24565 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24566 "the chosen values."
24567 msgstr ""
24568
24569 # type: textblock
24570 #: ../fuse/guestmount.pod:186
24571 msgid ""
24572 "Add devices and mount everything read-only.  Also disallow writes and make "
24573 "the disk appear read-only to FUSE."
24574 msgstr ""
24575
24576 # type: textblock
24577 #: ../fuse/guestmount.pod:189
24578 msgid ""
24579 "This is highly recommended if you are not going to edit the guest disk.  If "
24580 "the guest is running and this option is I<not> supplied, then there is a "
24581 "strong risk of disk corruption in the guest.  We try to prevent this from "
24582 "happening, but it is not always possible."
24583 msgstr ""
24584
24585 # type: textblock
24586 #: ../fuse/guestmount.pod:196
24587 msgid "Enable SELinux support for the guest."
24588 msgstr ""
24589
24590 # type: textblock
24591 #: ../fuse/guestmount.pod:200
24592 msgid "Enable verbose messages from underlying libguestfs."
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../fuse/guestmount.pod:204
24597 msgid "Display the program version and exit."
24598 msgstr ""
24599
24600 # type: =item
24601 #: ../fuse/guestmount.pod:206
24602 msgid "B<-x> | B<--trace>"
24603 msgstr ""
24604
24605 # type: textblock
24606 #: ../fuse/guestmount.pod:208
24607 msgid "Trace libguestfs calls."
24608 msgstr ""
24609
24610 # type: textblock
24611 #: ../fuse/guestmount.pod:210
24612 msgid "This also stops the daemon from forking into the background."
24613 msgstr ""
24614
24615 # type: textblock
24616 #: ../fuse/guestmount.pod:216
24617 msgid ""
24618 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24619 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24620 "net/>."
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../inspector/virt-inspector.pl:35
24625 msgid ""
24626 "virt-inspector - Display operating system version and other information "
24627 "about a virtual machine"
24628 msgstr ""
24629
24630 # type: verbatim
24631 #: ../inspector/virt-inspector.pl:39
24632 #, no-wrap
24633 msgid ""
24634 " virt-inspector [--connect URI] domname\n"
24635 "\n"
24636 msgstr ""
24637
24638 # type: verbatim
24639 #: ../inspector/virt-inspector.pl:41
24640 #, no-wrap
24641 msgid ""
24642 " virt-inspector guest.img [guest.img ...]\n"
24643 "\n"
24644 msgstr ""
24645
24646 # type: textblock
24647 #: ../inspector/virt-inspector.pl:45
24648 msgid ""
24649 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24650 "determine the version of the operating system and other information about "
24651 "the virtual machine."
24652 msgstr ""
24653
24654 # type: textblock
24655 #: ../inspector/virt-inspector.pl:49
24656 msgid "Virt-inspector produces XML output for feeding into other programs."
24657 msgstr ""
24658
24659 # type: textblock
24660 #: ../inspector/virt-inspector.pl:51
24661 msgid ""
24662 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24663 "libvirt domain (see: C<virsh list --all>)."
24664 msgstr ""
24665
24666 # type: textblock
24667 #: ../inspector/virt-inspector.pl:54
24668 msgid ""
24669 "You can also run virt-inspector directly on disk images from a single "
24670 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24671 "has several block devices, in which case you should list them one after "
24672 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24673 "to the guest's C</dev/sdb> and so on."
24674 msgstr ""
24675
24676 # type: textblock
24677 #: ../inspector/virt-inspector.pl:60
24678 msgid ""
24679 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24680 "inspect several virtual machines, you have to run virt-inspector several "
24681 "times (for example, from a shell script for-loop)."
24682 msgstr ""
24683
24684 # type: textblock
24685 #: ../inspector/virt-inspector.pl:65
24686 msgid ""
24687 "Because virt-inspector needs direct access to guest images, it won't "
24688 "normally work over remote libvirt connections."
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
24693 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
24694 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
24695 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
24696 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24697 msgid "Display brief help."
24698 msgstr ""
24699
24700 # type: =item
24701 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
24702 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
24703 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24704 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
24705 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24706 #: ../tools/virt-list-partitions.pl:67
24707 msgid "B<--version>"
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
24712 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
24713 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24714 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
24715 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24716 #: ../tools/virt-list-partitions.pl:69
24717 msgid "Display version number and exit."
24718 msgstr ""
24719
24720 # type: =item
24721 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
24722 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
24723 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
24724 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
24725 #: ../tools/virt-list-partitions.pl:75
24726 msgid "B<--connect URI> | B<-c URI>"
24727 msgstr ""
24728
24729 # type: textblock
24730 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
24731 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
24732 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
24733 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
24734 #: ../tools/virt-list-partitions.pl:77
24735 msgid ""
24736 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24737 "to the default libvirt hypervisor."
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../inspector/virt-inspector.pl:97
24742 msgid ""
24743 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24744 "you specify guest block devices directly, then libvirt is not used at all."
24745 msgstr ""
24746
24747 # type: =item
24748 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
24749 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
24750 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
24751 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
24752 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
24753 #: ../tools/virt-list-partitions.pl:87
24754 msgid "B<--format> raw"
24755 msgstr ""
24756
24757 # type: textblock
24758 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
24759 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
24760 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
24761 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
24762 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24763 msgid ""
24764 "Specify the format of disk images given on the command line.  If this is "
24765 "omitted then the format is autodetected from the content of the disk image."
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
24770 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
24771 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
24772 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
24773 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24774 msgid ""
24775 "If disk images are requested from libvirt, then this program asks libvirt "
24776 "for this information.  In this case, the value of the format parameter is "
24777 "ignored."
24778 msgstr ""
24779
24780 # type: textblock
24781 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
24782 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
24783 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
24784 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24785 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
24786 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24787 msgid ""
24788 "If working with untrusted raw-format guest disk images, you should ensure "
24789 "the format is always specified."
24790 msgstr ""
24791
24792 # type: =head1
24793 #: ../inspector/virt-inspector.pl:149
24794 msgid "XML FORMAT"
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../inspector/virt-inspector.pl:151
24799 msgid ""
24800 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24801 "supplied with libguestfs.  This section is just an overview."
24802 msgstr ""
24803
24804 # type: textblock
24805 #: ../inspector/virt-inspector.pl:154
24806 msgid ""
24807 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24808 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24809 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24810 "which is vanishingly rare in real world VMs."
24811 msgstr ""
24812
24813 # type: =head2
24814 #: ../inspector/virt-inspector.pl:159
24815 msgid "E<lt>operatingsystemE<gt>"
24816 msgstr ""
24817
24818 # type: textblock
24819 #: ../inspector/virt-inspector.pl:161
24820 msgid ""
24821 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24822 "describe the operating system, its architecture, the descriptive \"product "
24823 "name\" string, the type of OS and so on, as in this example:"
24824 msgstr ""
24825
24826 # type: verbatim
24827 #: ../inspector/virt-inspector.pl:165
24828 #, no-wrap
24829 msgid ""
24830 " <operatingsystems>\n"
24831 "   <operatingsystem>\n"
24832 "     <root>/dev/sda2</root>\n"
24833 "     <name>windows</name>\n"
24834 "     <arch>i386</arch>\n"
24835 "     <distro>windows</distro>\n"
24836 "     <product_name>Windows 7 Enterprise</product_name>\n"
24837 "     <major_version>6</major_version>\n"
24838 "     <minor_version>1</minor_version>\n"
24839 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24840 "\n"
24841 msgstr ""
24842
24843 # type: textblock
24844 #: ../inspector/virt-inspector.pl:176
24845 msgid ""
24846 "These fields are derived from the libguestfs inspection API, and you can "
24847 "find more details in L<guestfs(3)/INSPECTION>."
24848 msgstr ""
24849
24850 # type: textblock
24851 #: ../inspector/virt-inspector.pl:179
24852 msgid ""
24853 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24854 "of view of libguestfs (block devices may have completely different names "
24855 "inside the VM itself)."
24856 msgstr ""
24857
24858 # type: =head2
24859 #: ../inspector/virt-inspector.pl:240
24860 msgid "E<lt>mountpointsE<gt>"
24861 msgstr ""
24862
24863 # type: textblock
24864 #: ../inspector/virt-inspector.pl:242
24865 msgid ""
24866 "Un*x-like guests typically have multiple filesystems which are mounted at "
24867 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24868 "element which looks like this:"
24869 msgstr ""
24870
24871 # type: verbatim
24872 #: ../inspector/virt-inspector.pl:246
24873 #, no-wrap
24874 msgid ""
24875 " <operatingsystems>\n"
24876 "   <operatingsystem>\n"
24877 "     ...\n"
24878 "     <mountpoints>\n"
24879 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24880 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24881 "     </mountpoints>\n"
24882 "\n"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../inspector/virt-inspector.pl:254
24887 msgid ""
24888 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24889 "and may have completely different names inside the guest.  Only mountable "
24890 "filesystems appear in this list, not things like swap devices."
24891 msgstr ""
24892
24893 # type: =head2
24894 #: ../inspector/virt-inspector.pl:276
24895 msgid "E<lt>filesystemsE<gt>"
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../inspector/virt-inspector.pl:278
24900 msgid ""
24901 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24902 "filesystems belonging to the guest, including swap and empty partitions.  "
24903 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24904 "this OS or shared by this OS and other OSes)."
24905 msgstr ""
24906
24907 # type: textblock
24908 #: ../inspector/virt-inspector.pl:283
24909 msgid "You might see something like this:"
24910 msgstr ""
24911
24912 # type: verbatim
24913 #: ../inspector/virt-inspector.pl:285
24914 #, no-wrap
24915 msgid ""
24916 " <operatingsystems>\n"
24917 "   <operatingsystem>\n"
24918 "     ...\n"
24919 "     <filesystems>\n"
24920 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24921 "         <type>ext4</type>\n"
24922 "         <label>Fedora-13-x86_64</label>\n"
24923 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24924 "       </filesystem>\n"
24925 "\n"
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../inspector/virt-inspector.pl:295
24930 msgid ""
24931 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24932 "the label, and the UUID."
24933 msgstr ""
24934
24935 # type: =head2
24936 #: ../inspector/virt-inspector.pl:337
24937 msgid "E<lt>applicationsE<gt>"
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../inspector/virt-inspector.pl:339
24942 msgid ""
24943 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24944 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24945 "machine.  At the moment we are only able to list RPMs and Debian packages "
24946 "installed, but in future we will support other Linux distros and Windows."
24947 msgstr ""
24948
24949 # type: textblock
24950 #: ../inspector/virt-inspector.pl:345
24951 msgid ""
24952 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24953 "Typical values would be C<rpm> and C<deb>."
24954 msgstr ""
24955
24956 # type: textblock
24957 #: ../inspector/virt-inspector.pl:348
24958 msgid ""
24959 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24960 "Typical values include C<yum>, C<up2date> and C<apt>"
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../inspector/virt-inspector.pl:351
24965 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24966 msgstr ""
24967
24968 # type: verbatim
24969 #: ../inspector/virt-inspector.pl:354
24970 #, no-wrap
24971 msgid ""
24972 " <operatingsystems>\n"
24973 "   <operatingsystem>\n"
24974 "     ...\n"
24975 "     <applications>\n"
24976 "       <application>\n"
24977 "         <name>coreutils</name>\n"
24978 "         <version>8.5</version>\n"
24979 "         <release>1</release>\n"
24980 "       </application>\n"
24981 "\n"
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../inspector/virt-inspector.pl:364
24986 msgid ""
24987 "(The version and release fields may not be available for some package types)."
24988 msgstr ""
24989
24990 # type: =head1
24991 #: ../inspector/virt-inspector.pl:544
24992 msgid "USING XPATH"
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../inspector/virt-inspector.pl:546
24997 msgid ""
24998 "You can use the XPath query language, and/or the xpath tool, in order to "
24999 "select parts of the XML."
25000 msgstr ""
25001
25002 # type: verbatim
25003 #: ../inspector/virt-inspector.pl:551
25004 #, no-wrap
25005 msgid ""
25006 " $ virt-inspector Guest | xpath //filesystems\n"
25007 " Found 1 nodes:\n"
25008 " -- NODE --\n"
25009 " <filesystems>\n"
25010 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25011 "        <type>ext4</type>\n"
25012 " [etc]\n"
25013 "\n"
25014 msgstr ""
25015
25016 # type: verbatim
25017 #: ../inspector/virt-inspector.pl:559
25018 #, no-wrap
25019 msgid ""
25020 " $ virt-inspector Guest | \\\n"
25021 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25022 " Query didn't return a nodeset. Value: ext4\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: =head2
25027 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
25028 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
25029 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
25030 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
25031 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
25032 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
25033 #: ../tools/virt-list-partitions.pl:247
25034 msgid "SHELL QUOTING"
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
25039 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
25040 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
25041 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
25042 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
25043 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25044 msgid ""
25045 "Libvirt guest names can contain arbitrary characters, some of which have "
25046 "meaning to the shell such as C<#> and space.  You may need to quote or "
25047 "escape these characters on the command line.  See the shell manual page L<sh"
25048 "(1)> for details."
25049 msgstr ""
25050
25051 # type: textblock
25052 #: ../inspector/virt-inspector.pl:572
25053 msgid ""
25054 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25055 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
25060 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25061 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25062 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
25063 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
25064 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25065 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../inspector/virt-inspector.pl:590
25070 msgid "Matthew Booth L<mbooth@redhat.com>"
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
25075 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25076 msgid "Copyright (C) 2010 Red Hat Inc."
25077 msgstr ""
25078
25079 # type: textblock
25080 #: ../tools/virt-edit.pl:34
25081 msgid "virt-edit - Edit a file in a virtual machine"
25082 msgstr ""
25083
25084 # type: verbatim
25085 #: ../tools/virt-edit.pl:38
25086 #, no-wrap
25087 msgid ""
25088 " virt-edit [--options] domname file\n"
25089 "\n"
25090 msgstr ""
25091
25092 # type: verbatim
25093 #: ../tools/virt-edit.pl:40
25094 #, no-wrap
25095 msgid ""
25096 " virt-edit [--options] disk.img [disk.img ...] file\n"
25097 "\n"
25098 msgstr ""
25099
25100 # type: verbatim
25101 #: ../tools/virt-edit.pl:42
25102 #, no-wrap
25103 msgid ""
25104 " virt-edit [domname|disk.img] file -e 'expr'\n"
25105 "\n"
25106 msgstr ""
25107
25108 # type: textblock
25109 #: ../tools/virt-edit.pl:46
25110 msgid ""
25111 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25112 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25113 "doing this, but doesn't catch all cases."
25114 msgstr ""
25115
25116 # type: textblock
25117 #: ../tools/virt-edit.pl:52
25118 msgid ""
25119 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25120 "the named virtual machine (or disk image)."
25121 msgstr ""
25122
25123 # type: textblock
25124 #: ../tools/virt-edit.pl:55
25125 msgid ""
25126 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25127 "you should look at the L<guestfish(1)> tool."
25128 msgstr ""
25129
25130 # type: textblock
25131 #: ../tools/virt-edit.pl:60
25132 msgid "Edit the named files interactively:"
25133 msgstr ""
25134
25135 # type: verbatim
25136 #: ../tools/virt-edit.pl:62
25137 #, no-wrap
25138 msgid ""
25139 " virt-edit mydomain /boot/grub/grub.conf\n"
25140 "\n"
25141 msgstr ""
25142
25143 # type: verbatim
25144 #: ../tools/virt-edit.pl:64
25145 #, no-wrap
25146 msgid ""
25147 " virt-edit mydomain /etc/passwd\n"
25148 "\n"
25149 msgstr ""
25150
25151 # type: textblock
25152 #: ../tools/virt-edit.pl:66
25153 msgid ""
25154 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25155 "below).  To change the init default level to 5:"
25156 msgstr ""
25157
25158 # type: verbatim
25159 #: ../tools/virt-edit.pl:70
25160 #, no-wrap
25161 msgid ""
25162 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25163 "\n"
25164 msgstr ""
25165
25166 # type: =item
25167 #: ../tools/virt-edit.pl:96
25168 msgid "B<--backup extension> | B<-b extension>"
25169 msgstr ""
25170
25171 # type: textblock
25172 #: ../tools/virt-edit.pl:98
25173 msgid ""
25174 "Create a backup of the original file I<in the guest disk image>.  The backup "
25175 "has the original filename with C<extension> added."
25176 msgstr ""
25177
25178 # type: textblock
25179 #: ../tools/virt-edit.pl:101
25180 msgid ""
25181 "Usually the first character of C<extension> would be a dot C<.> so you would "
25182 "write:"
25183 msgstr ""
25184
25185 # type: verbatim
25186 #: ../tools/virt-edit.pl:104
25187 #, no-wrap
25188 msgid ""
25189 " virt-edit -b .orig [etc]\n"
25190 "\n"
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../tools/virt-edit.pl:106
25195 msgid "By default, no backup file is made."
25196 msgstr ""
25197
25198 # type: textblock
25199 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
25200 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
25201 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
25202 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
25203 #: ../tools/virt-list-partitions.pl:80
25204 msgid ""
25205 "If you specify guest block devices directly, then libvirt is not used at all."
25206 msgstr ""
25207
25208 # type: =item
25209 #: ../tools/virt-edit.pl:141
25210 msgid "B<--expr EXPR> | B<-e EXPR>"
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-edit.pl:143
25215 msgid ""
25216 "Instead of launching the external editor, non-interactively apply the Perl "
25217 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25218 "EDITING> below."
25219 msgstr ""
25220
25221 # type: textblock
25222 #: ../tools/virt-edit.pl:147
25223 msgid ""
25224 "Be careful to properly quote the expression to prevent it from being altered "
25225 "by the shell."
25226 msgstr ""
25227
25228 # type: =head1
25229 #: ../tools/virt-edit.pl:268
25230 msgid "NON-INTERACTIVE EDITING"
25231 msgstr ""
25232
25233 # type: textblock
25234 #: ../tools/virt-edit.pl:270
25235 msgid ""
25236 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25237 "administrator can interactively edit the file."
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../tools/virt-edit.pl:273
25242 msgid ""
25243 "There are two ways also to use C<virt-edit> from scripts in order to make "
25244 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25245 "like this, it's less error-prone to write scripts directly using the "
25246 "libguestfs API and Augeas for configuration file editing.)"
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../tools/virt-edit.pl:279
25251 msgid ""
25252 "The first method is to temporarily set C<$EDITOR> to any script or program "
25253 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25254 "update C<tmpfile> in place however it likes."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../tools/virt-edit.pl:283
25259 msgid ""
25260 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25261 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25262 "instances of C<foo> with C<bar> in a file:"
25263 msgstr ""
25264
25265 # type: verbatim
25266 #: ../tools/virt-edit.pl:287
25267 #, no-wrap
25268 msgid ""
25269 " virt-edit domname filename -e 's/foo/bar/'\n"
25270 "\n"
25271 msgstr ""
25272
25273 # type: textblock
25274 #: ../tools/virt-edit.pl:289
25275 msgid ""
25276 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25277 "For example to delete root's password you could do:"
25278 msgstr ""
25279
25280 # type: verbatim
25281 #: ../tools/virt-edit.pl:292
25282 #, no-wrap
25283 msgid ""
25284 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25285 "\n"
25286 msgstr ""
25287
25288 # type: textblock
25289 #: ../tools/virt-edit.pl:294
25290 msgid ""
25291 "What really happens is that the snippet is evaluated as a Perl expression "
25292 "for each line of the file.  The line, including the final C<\\n>, is passed "
25293 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../tools/virt-edit.pl:299
25298 msgid ""
25299 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25300 "C<apache> user account from the password file you can do:"
25301 msgstr ""
25302
25303 # type: verbatim
25304 #: ../tools/virt-edit.pl:302
25305 #, no-wrap
25306 msgid ""
25307 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25308 "\n"
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../tools/virt-edit.pl:304
25313 msgid ""
25314 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25315 "the end of the file is rather difficult this way since there is no concept "
25316 "of \"last line of the file\" - your expression just doesn't get called "
25317 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25318 "want to do this."
25319 msgstr ""
25320
25321 # type: textblock
25322 #: ../tools/virt-edit.pl:310
25323 msgid ""
25324 "The variable C<$lineno> contains the current line number.  As is "
25325 "traditional, the first line in the file is number C<1>."
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../tools/virt-edit.pl:313
25330 msgid ""
25331 "The return value from the expression is ignored, but the expression may call "
25332 "C<die> in order to abort the whole program, leaving the original file "
25333 "untouched."
25334 msgstr ""
25335
25336 # type: textblock
25337 #: ../tools/virt-edit.pl:317
25338 msgid ""
25339 "Remember when matching the end of a line that C<$_> may contain the final C<"
25340 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25341 "newline then neither of these.  Thus to match or substitute some text at the "
25342 "end of a line, use this regular expression:"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #: ../tools/virt-edit.pl:322
25347 #, no-wrap
25348 msgid ""
25349 " /some text(\\r?\\n)?$/\n"
25350 "\n"
25351 msgstr ""
25352
25353 # type: textblock
25354 #: ../tools/virt-edit.pl:324
25355 msgid ""
25356 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
25357 "$_> itself (since that would remove all newlines from the file):"
25358 msgstr ""
25359
25360 # type: verbatim
25361 #: ../tools/virt-edit.pl:328
25362 #, no-wrap
25363 msgid ""
25364 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25365 "\n"
25366 msgstr ""
25367
25368 # type: =item
25369 #: ../tools/virt-edit.pl:334
25370 msgid "C<EDITOR>"
25371 msgstr ""
25372
25373 # type: textblock
25374 #: ../tools/virt-edit.pl:336
25375 msgid ""
25376 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
25377 "\"emacs -nw\">"
25378 msgstr ""
25379
25380 # type: textblock
25381 #: ../tools/virt-edit.pl:339
25382 msgid "If not set, C<vi> is used."
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../tools/virt-edit.pl:352
25387 msgid ""
25388 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
25389 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
25390 "L<perlre(1)>."
25391 msgstr ""
25392
25393 # type: =head1
25394 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
25395 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
25396 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
25397 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
25398 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
25399 #: ../tools/virt-list-partitions.pl:265
25400 msgid "AUTHOR"
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
25405 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25406 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25407 msgstr ""
25408
25409 # type: textblock
25410 #: ../tools/virt-win-reg.pl:37
25411 msgid ""
25412 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
25413 msgstr ""
25414
25415 # type: verbatim
25416 #: ../tools/virt-win-reg.pl:41
25417 #, no-wrap
25418 msgid ""
25419 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25420 "\n"
25421 msgstr ""
25422
25423 # type: verbatim
25424 #: ../tools/virt-win-reg.pl:43
25425 #, no-wrap
25426 msgid ""
25427 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25428 "\n"
25429 msgstr ""
25430
25431 # type: verbatim
25432 #: ../tools/virt-win-reg.pl:45
25433 #, no-wrap
25434 msgid ""
25435 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25436 "\n"
25437 msgstr ""
25438
25439 # type: verbatim
25440 #: ../tools/virt-win-reg.pl:47
25441 #, no-wrap
25442 msgid ""
25443 " virt-win-reg --merge domname [input.reg ...]\n"
25444 "\n"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #: ../tools/virt-win-reg.pl:49
25449 #, no-wrap
25450 msgid ""
25451 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25452 "\n"
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../tools/virt-win-reg.pl:53
25457 msgid ""
25458 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25459 "virtual machines.  If you do this, you I<will> get irreversible disk "
25460 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25461 "but doesn't catch all cases."
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../tools/virt-win-reg.pl:58
25466 msgid ""
25467 "Modifying the Windows Registry is an inherently risky operation.  The format "
25468 "is deliberately obscure and undocumented, and Registry changes can leave the "
25469 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25470 "you have a reliable backup first."
25471 msgstr ""
25472
25473 # type: textblock
25474 #: ../tools/virt-win-reg.pl:65
25475 msgid ""
25476 "This program can export and merge Windows Registry entries from a Windows "
25477 "guest."
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../tools/virt-win-reg.pl:68
25482 msgid ""
25483 "The first parameter is the libvirt guest name or the raw disk image of a "
25484 "Windows guest."
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../tools/virt-win-reg.pl:71
25489 msgid ""
25490 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25491 "exported (recursively).  For example:"
25492 msgstr ""
25493
25494 # type: verbatim
25495 #: ../tools/virt-win-reg.pl:74
25496 #, no-wrap
25497 msgid ""
25498 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25499 "\n"
25500 msgstr ""
25501
25502 # type: textblock
25503 #: ../tools/virt-win-reg.pl:76
25504 msgid ""
25505 "You can also display single values from within registry keys, for example:"
25506 msgstr ""
25507
25508 # type: verbatim
25509 #: ../tools/virt-win-reg.pl:79
25510 #, no-wrap
25511 msgid ""
25512 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25513 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25514 " Windows 7 Enterprise\n"
25515 "\n"
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../tools/virt-win-reg.pl:83
25520 msgid ""
25521 "With C<--merge>, you can merge a textual regedit file into the Windows "
25522 "Registry:"
25523 msgstr ""
25524
25525 # type: verbatim
25526 #: ../tools/virt-win-reg.pl:86
25527 #, no-wrap
25528 msgid ""
25529 " $ virt-win-reg --merge Windows7 changes.reg\n"
25530 "\n"
25531 msgstr ""
25532
25533 # type: =head2
25534 #: ../tools/virt-win-reg.pl:88
25535 msgid "SUPPORTED SYSTEMS"
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../tools/virt-win-reg.pl:90
25540 msgid ""
25541 "The program currently supports Windows NT-derived guests starting with "
25542 "Windows XP through to at least Windows 7."
25543 msgstr ""
25544
25545 # type: textblock
25546 #: ../tools/virt-win-reg.pl:93
25547 msgid ""
25548 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25549 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25550 "and C<HKEY_USERS\\.DEFAULT>."
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../tools/virt-win-reg.pl:97
25555 msgid ""
25556 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25557 "C<HKEY_USERS>."
25558 msgstr ""
25559
25560 # type: textblock
25561 #: ../tools/virt-win-reg.pl:100
25562 msgid ""
25563 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25564 "time."
25565 msgstr ""
25566
25567 # type: =head2
25568 #: ../tools/virt-win-reg.pl:103
25569 msgid "NOTE"
25570 msgstr ""
25571
25572 # type: textblock
25573 #: ../tools/virt-win-reg.pl:105
25574 msgid ""
25575 "This program is only meant for simple access to the registry.  If you want "
25576 "to do complicated things with the registry, we suggest you download the "
25577 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25578 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25579 "L<hivexregedit(1)>."
25580 msgstr ""
25581
25582 # type: =head2
25583 #: ../tools/virt-win-reg.pl:111
25584 msgid "ENCODING"
25585 msgstr ""
25586
25587 # type: textblock
25588 #: ../tools/virt-win-reg.pl:113
25589 msgid ""
25590 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25591 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25592 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25593 "Windows-style line endings, you may need to reencode the whole file before "
25594 "or after processing."
25595 msgstr ""
25596
25597 # type: textblock
25598 #: ../tools/virt-win-reg.pl:119
25599 msgid ""
25600 "To reencode a file from Windows format to Linux (before processing it with "
25601 "the C<--merge> option), you would do something like this:"
25602 msgstr ""
25603
25604 # type: verbatim
25605 #: ../tools/virt-win-reg.pl:122
25606 #, no-wrap
25607 msgid ""
25608 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25609 "\n"
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../tools/virt-win-reg.pl:124
25614 msgid ""
25615 "To go in the opposite direction, after exporting and before sending the file "
25616 "to a Windows user, do something like this:"
25617 msgstr ""
25618
25619 # type: verbatim
25620 #: ../tools/virt-win-reg.pl:127
25621 #, no-wrap
25622 msgid ""
25623 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25624 "\n"
25625 msgstr ""
25626
25627 # type: textblock
25628 #: ../tools/virt-win-reg.pl:129
25629 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../tools/virt-win-reg.pl:131
25634 msgid ""
25635 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25636 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25637 "style (CRLF) line endings, like this:"
25638 msgstr ""
25639
25640 # type: verbatim
25641 #: ../tools/virt-win-reg.pl:135
25642 #, no-wrap
25643 msgid ""
25644 " $ file software.reg\n"
25645 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25646 " with CRLF line terminators\n"
25647 "\n"
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../tools/virt-win-reg.pl:139
25652 msgid "This file would need conversion before you could C<--merge> it."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-win-reg.pl:143
25657 msgid ""
25658 "Be careful when passing parameters containing C<\\> (backslash) in the "
25659 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25660 "(but not both) to protect them from the shell."
25661 msgstr ""
25662
25663 # type: textblock
25664 #: ../tools/virt-win-reg.pl:147
25665 msgid "Paths and value names are case-insensitive."
25666 msgstr ""
25667
25668 # type: =head2
25669 #: ../tools/virt-win-reg.pl:149
25670 msgid "CurrentControlSet etc."
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../tools/virt-win-reg.pl:151
25675 msgid ""
25676 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25677 "Registry at the level of the hive file, and therefore you cannot modify "
25678 "these."
25679 msgstr ""
25680
25681 # type: textblock
25682 #: ../tools/virt-win-reg.pl:155
25683 msgid ""
25684 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25685 "circumstances it might refer to another control set.  The way to find out is "
25686 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25687 msgstr ""
25688
25689 # type: verbatim
25690 #: ../tools/virt-win-reg.pl:159
25691 #, no-wrap
25692 msgid ""
25693 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25694 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25695 " \"Current\"=dword:00000001\n"
25696 " \"Default\"=dword:00000001\n"
25697 " \"Failed\"=dword:00000000\n"
25698 " \"LastKnownGood\"=dword:00000002\n"
25699 "\n"
25700 msgstr ""
25701
25702 # type: textblock
25703 #: ../tools/virt-win-reg.pl:166
25704 msgid "\"Default\" is the one which Windows will choose when it boots."
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../tools/virt-win-reg.pl:168
25709 msgid ""
25710 "Similarly, other C<Current...> keys in the path may need to be replaced."
25711 msgstr ""
25712
25713 # type: =item
25714 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25715 msgid "B<--debug>"
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25720 msgid "Enable debugging messages."
25721 msgstr ""
25722
25723 # type: =item
25724 #: ../tools/virt-win-reg.pl:232
25725 msgid "B<--merge>"
25726 msgstr ""
25727
25728 # type: textblock
25729 #: ../tools/virt-win-reg.pl:234
25730 msgid ""
25731 "In merge mode, this merges a textual regedit file into the Windows Registry "
25732 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25733 "displays or exports Registry entries instead."
25734 msgstr ""
25735
25736 # type: textblock
25737 #: ../tools/virt-win-reg.pl:238
25738 msgid ""
25739 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25740 "result in disk corruption.  However exporting (without this flag)  is always "
25741 "safe."
25742 msgstr ""
25743
25744 # type: =item
25745 #: ../tools/virt-win-reg.pl:246
25746 msgid "B<--encoding> UTF-16LE|ASCII"
25747 msgstr ""
25748
25749 # type: textblock
25750 #: ../tools/virt-win-reg.pl:248
25751 msgid ""
25752 "When merging (only), you may need to specify the encoding for strings to be "
25753 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25754 "(3)/ENCODING STRINGS>."
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../tools/virt-win-reg.pl:252
25759 msgid ""
25760 "The default is to use UTF-16LE, which should work with recent versions of "
25761 "Windows."
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../tools/virt-win-reg.pl:486
25766 msgid ""
25767 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25768 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25769 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25770 msgstr ""
25771
25772 # type: textblock
25773 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25774 msgid ""
25775 "When reporting bugs, please enable debugging and capture the I<complete> "
25776 "output:"
25777 msgstr ""
25778
25779 # type: verbatim
25780 #: ../tools/virt-win-reg.pl:504
25781 #, no-wrap
25782 msgid ""
25783 " export LIBGUESTFS_DEBUG=1\n"
25784 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25785 "\n"
25786 msgstr ""
25787
25788 # type: textblock
25789 #: ../tools/virt-win-reg.pl:507
25790 msgid ""
25791 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25792 "redhat.com/>"
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-df.pl:36
25797 msgid "virt-df - Display free space on virtual filesystems"
25798 msgstr ""
25799
25800 # type: verbatim
25801 #: ../tools/virt-df.pl:40
25802 #, no-wrap
25803 msgid ""
25804 " virt-df [--options]\n"
25805 "\n"
25806 msgstr ""
25807
25808 # type: verbatim
25809 #: ../tools/virt-df.pl:42
25810 #, no-wrap
25811 msgid ""
25812 " virt-df [--options] domname\n"
25813 "\n"
25814 msgstr ""
25815
25816 # type: verbatim
25817 #: ../tools/virt-df.pl:44
25818 #, no-wrap
25819 msgid ""
25820 " virt-df [--options] disk.img [disk.img ...]\n"
25821 "\n"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../tools/virt-df.pl:48
25826 msgid ""
25827 "C<virt-df> is a command line tool to display free space on virtual machine "
25828 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25829 "space allocated to a virtual machine, but can look inside the virtual "
25830 "machine to see how much space is really being used."
25831 msgstr ""
25832
25833 # type: textblock
25834 #: ../tools/virt-df.pl:53
25835 msgid ""
25836 "It is like the L<df(1)> command, but for virtual machines, except that it "
25837 "also works for Windows virtual machines."
25838 msgstr ""
25839
25840 # type: textblock
25841 #: ../tools/virt-df.pl:56
25842 msgid ""
25843 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25844 "of all active and inactive guests, and performs a C<df>-type operation on "
25845 "each one in turn, printing out the results."
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../tools/virt-df.pl:60
25850 msgid ""
25851 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25852 "either the single named libvirt domain, or on the disk image(s) listed on "
25853 "the command line (which must all belong to a single VM).  In this mode (with "
25854 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25855 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../tools/virt-df.pl:67
25860 msgid ""
25861 "Use the C<--csv> option to get a format which can be easily parsed by other "
25862 "programs.  Other options are mostly similar to standard C<df> options.  See "
25863 "below for the complete list."
25864 msgstr ""
25865
25866 # type: =item
25867 #: ../tools/virt-df.pl:107
25868 msgid "B<--csv>"
25869 msgstr ""
25870
25871 # type: textblock
25872 #: ../tools/virt-df.pl:109
25873 msgid ""
25874 "Write out the results in CSV format (comma-separated values).  This format "
25875 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25876 "ABOUT CSV FORMAT> below."
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../tools/virt-df.pl:134
25881 msgid "B<--human-readable> | B<-h>"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../tools/virt-df.pl:136
25886 msgid "Print sizes in human-readable format."
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-df.pl:138
25891 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25892 msgstr ""
25893
25894 # type: =item
25895 #: ../tools/virt-df.pl:144
25896 msgid "B<--inodes> | B<-i>"
25897 msgstr ""
25898
25899 # type: textblock
25900 #: ../tools/virt-df.pl:146
25901 msgid "Print inodes instead of blocks."
25902 msgstr ""
25903
25904 # type: =item
25905 #: ../tools/virt-df.pl:152
25906 msgid "B<--one-per-guest>"
25907 msgstr ""
25908
25909 # type: textblock
25910 #: ../tools/virt-df.pl:154
25911 msgid ""
25912 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25913 "disks from several guests to a single libguestfs appliance."
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../tools/virt-df.pl:157
25918 msgid "You might use this option in the following circumstances:"
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../tools/virt-df.pl:163
25923 msgid ""
25924 "If you think an untrusted guest might actively try to exploit the libguestfs "
25925 "appliance kernel, then this prevents one guest from interfering with the "
25926 "stats printed for another guest."
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../tools/virt-df.pl:169
25931 msgid ""
25932 "If the kernel has a bug which stops it from accessing a filesystem in one "
25933 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25934 "and report stats for further guests."
25935 msgstr ""
25936
25937 # type: =item
25938 #: ../tools/virt-df.pl:180
25939 msgid "B<--uuid>"
25940 msgstr ""
25941
25942 # type: textblock
25943 #: ../tools/virt-df.pl:182
25944 msgid ""
25945 "Print UUIDs instead of names.  This is useful for following a guest even "
25946 "when the guest is migrated or renamed, or when two guests happen to have the "
25947 "same name."
25948 msgstr ""
25949
25950 # type: textblock
25951 #: ../tools/virt-df.pl:186
25952 msgid ""
25953 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25954 "images, we still print the disk image name even when this option is "
25955 "specified."
25956 msgstr ""
25957
25958 # type: =head1
25959 #: ../tools/virt-df.pl:609
25960 msgid "NOTE ABOUT CSV FORMAT"
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-df.pl:611
25965 msgid ""
25966 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25967 "should be easy to parse, but it is definitely not easy to parse."
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../tools/virt-df.pl:614
25972 msgid ""
25973 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25974 "reliably.  This example has two columns:"
25975 msgstr ""
25976
25977 # type: verbatim
25978 #: ../tools/virt-df.pl:617
25979 #, no-wrap
25980 msgid ""
25981 " \"foo,bar\",baz\n"
25982 "\n"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../tools/virt-df.pl:619
25987 msgid ""
25988 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25989 "reliably.  This example has one row:"
25990 msgstr ""
25991
25992 # type: verbatim
25993 #: ../tools/virt-df.pl:622
25994 #, no-wrap
25995 msgid ""
25996 " \"foo\n"
25997 " bar\",baz\n"
25998 "\n"
25999 msgstr ""
26000
26001 # type: textblock
26002 #: ../tools/virt-df.pl:625
26003 msgid ""
26004 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26005 "packaged in major Linux distributions)."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../tools/virt-df.pl:628
26010 msgid ""
26011 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26012 "or Python's built-in csv library)."
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../tools/virt-df.pl:631
26017 msgid "Most spreadsheets and databases can import CSV directly."
26018 msgstr ""
26019
26020 # type: textblock
26021 #: ../tools/virt-df.pl:642
26022 msgid ""
26023 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26024 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-ls.pl:34
26029 msgid "virt-ls - List files in a virtual machine"
26030 msgstr ""
26031
26032 # type: verbatim
26033 #: ../tools/virt-ls.pl:38
26034 #, no-wrap
26035 msgid ""
26036 " virt-ls [--options] domname directory\n"
26037 "\n"
26038 msgstr ""
26039
26040 # type: verbatim
26041 #: ../tools/virt-ls.pl:40
26042 #, no-wrap
26043 msgid ""
26044 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26045 "\n"
26046 msgstr ""
26047
26048 # type: textblock
26049 #: ../tools/virt-ls.pl:44
26050 msgid ""
26051 "C<virt-ls> is a command line tool to list the names of files in a directory "
26052 "inside a virtual machine or disk image."
26053 msgstr ""
26054
26055 # type: textblock
26056 #: ../tools/virt-ls.pl:47
26057 msgid ""
26058 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26059 "For more complex cases you should look at the L<guestfish(1)> tool."
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-ls.pl:51
26064 msgid ""
26065 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26066 "simple listing is like the ordinary L<ls(1)> command:"
26067 msgstr ""
26068
26069 # type: verbatim
26070 #: ../tools/virt-ls.pl:54
26071 #, no-wrap
26072 msgid ""
26073 " $ virt-ls myguest /\n"
26074 " bin\n"
26075 " boot\n"
26076 " [etc.]\n"
26077 "\n"
26078 msgstr ""
26079
26080 # type: textblock
26081 #: ../tools/virt-ls.pl:59
26082 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26083 msgstr ""
26084
26085 # type: verbatim
26086 #: ../tools/virt-ls.pl:61
26087 #, no-wrap
26088 msgid ""
26089 " $ virt-ls -l myguest /\n"
26090 " total 204\n"
26091 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26092 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26093 " [etc.]\n"
26094 "\n"
26095 msgstr ""
26096
26097 # type: textblock
26098 #: ../tools/virt-ls.pl:67
26099 msgid ""
26100 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26101 "and directories recursively:"
26102 msgstr ""
26103
26104 # type: verbatim
26105 #: ../tools/virt-ls.pl:70
26106 #, no-wrap
26107 msgid ""
26108 " $ virt-ls -R myguest /tmp\n"
26109 " foo\n"
26110 " foo/bar\n"
26111 " [etc.]\n"
26112 "\n"
26113 msgstr ""
26114
26115 # type: textblock
26116 #: ../tools/virt-ls.pl:75
26117 msgid ""
26118 "You I<cannot> combine these options.  To do more complicated things, use "
26119 "L<guestfish(1)>."
26120 msgstr ""
26121
26122 # type: =item
26123 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26124 #: ../tools/virt-list-partitions.pl:112
26125 msgid "B<-l> | B<--long>"
26126 msgstr ""
26127
26128 # type: =item
26129 #: ../tools/virt-ls.pl:133
26130 msgid "B<-R> | B<--recursive>"
26131 msgstr ""
26132
26133 # type: textblock
26134 #: ../tools/virt-ls.pl:135
26135 msgid ""
26136 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26137 "simple, flat list of the files in the named directory."
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../tools/virt-ls.pl:138
26142 msgid ""
26143 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26144 "like the plain C<ls -l> command)."
26145 msgstr ""
26146
26147 # type: textblock
26148 #: ../tools/virt-ls.pl:141
26149 msgid ""
26150 "C<virt-ls -R> produces a recursive list of files starting at the named "
26151 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26152 "details."
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../tools/virt-ls.pl:145
26157 msgid "You cannot combine these options."
26158 msgstr ""
26159
26160 # type: textblock
26161 #: ../tools/virt-ls.pl:234
26162 msgid ""
26163 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26164 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26165 "org/>."
26166 msgstr ""
26167
26168 # type: textblock
26169 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26170 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26171 msgid "Copyright (C) 2009 Red Hat Inc."
26172 msgstr ""
26173
26174 # type: textblock
26175 #: ../tools/virt-resize.pl:42
26176 msgid "virt-resize - Resize a virtual machine disk"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #: ../tools/virt-resize.pl:46
26181 #, no-wrap
26182 msgid ""
26183 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26184 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26185 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26186 "\n"
26187 msgstr ""
26188
26189 # type: textblock
26190 #: ../tools/virt-resize.pl:52
26191 msgid ""
26192 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26193 "larger or smaller overall, and resizing or deleting any partitions contained "
26194 "within."
26195 msgstr ""
26196
26197 # type: textblock
26198 #: ../tools/virt-resize.pl:56
26199 msgid ""
26200 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26201 "not> be used on live virtual machines - for consistent results, shut the "
26202 "virtual machine down before resizing it."
26203 msgstr ""
26204
26205 # type: textblock
26206 #: ../tools/virt-resize.pl:60
26207 msgid ""
26208 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
26209 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
26210 "read those manual pages first."
26211 msgstr ""
26212
26213 # type: textblock
26214 #: ../tools/virt-resize.pl:68
26215 msgid ""
26216 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26217 "fill the extra 5GB of space."
26218 msgstr ""
26219
26220 # type: verbatim
26221 #: ../tools/virt-resize.pl:71
26222 #, no-wrap
26223 msgid ""
26224 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26225 " virt-list-partitions -lht olddisk\n"
26226 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26227 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26228 "\n"
26229 msgstr ""
26230
26231 # type: textblock
26232 #: ../tools/virt-resize.pl:76
26233 msgid ""
26234 "As above, but make the /boot partition 200MB bigger, while giving the "
26235 "remaining space to /dev/sda2:"
26236 msgstr ""
26237
26238 # type: verbatim
26239 #: ../tools/virt-resize.pl:79
26240 #, no-wrap
26241 msgid ""
26242 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26243 "\n"
26244 msgstr ""
26245
26246 # type: textblock
26247 #: ../tools/virt-resize.pl:81
26248 msgid "As above, but the output format will be uncompressed qcow2:"
26249 msgstr ""
26250
26251 # type: verbatim
26252 #: ../tools/virt-resize.pl:83
26253 #, no-wrap
26254 msgid ""
26255 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26256 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26257 "\n"
26258 msgstr ""
26259
26260 # type: =head1
26261 #: ../tools/virt-resize.pl:86
26262 msgid "DETAILED USAGE"
26263 msgstr ""
26264
26265 # type: =head2
26266 #: ../tools/virt-resize.pl:88
26267 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26268 msgstr ""
26269
26270 # type: =item
26271 #: ../tools/virt-resize.pl:92
26272 msgid "1. Shut down the virtual machine"
26273 msgstr ""
26274
26275 # type: =item
26276 #: ../tools/virt-resize.pl:94
26277 msgid "2. Locate input disk image"
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-resize.pl:96
26282 msgid ""
26283 "Locate the input disk image (ie. the file or device on the host containing "
26284 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26285 "dumpxml> like this to find the disk image name:"
26286 msgstr ""
26287
26288 # type: verbatim
26289 #: ../tools/virt-resize.pl:100
26290 #, no-wrap
26291 msgid ""
26292 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26293 " Found 1 nodes:\n"
26294 " -- NODE --\n"
26295 " <source dev=\"/dev/vg/lv_guest\" />\n"
26296 "\n"
26297 msgstr ""
26298
26299 # type: =item
26300 #: ../tools/virt-resize.pl:105
26301 msgid "3. Look at current sizing"
26302 msgstr ""
26303
26304 # type: textblock
26305 #: ../tools/virt-resize.pl:107
26306 msgid ""
26307 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26308 msgstr ""
26309
26310 # type: verbatim
26311 #: ../tools/virt-resize.pl:110
26312 #, no-wrap
26313 msgid ""
26314 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26315 " /dev/sda1 ext3 101.9M\n"
26316 " /dev/sda2 pv 7.9G\n"
26317 " /dev/sda device 8.0G\n"
26318 "\n"
26319 msgstr ""
26320
26321 # type: textblock
26322 #: ../tools/virt-resize.pl:115
26323 msgid ""
26324 "(This example is a virtual machine with an 8 GB disk which we would like to "
26325 "expand up to 10 GB)."
26326 msgstr ""
26327
26328 # type: =item
26329 #: ../tools/virt-resize.pl:118
26330 msgid "4. Create output disk"
26331 msgstr ""
26332
26333 # type: textblock
26334 #: ../tools/virt-resize.pl:120
26335 msgid ""
26336 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26337 "to store the resized output disk."
26338 msgstr ""
26339
26340 # type: textblock
26341 #: ../tools/virt-resize.pl:123
26342 msgid ""
26343 "To store the resized disk image in a file, create a file of a suitable size:"
26344 msgstr ""
26345
26346 # type: verbatim
26347 #: ../tools/virt-resize.pl:126
26348 #, no-wrap
26349 msgid ""
26350 " # rm -f outdisk\n"
26351 " # truncate -s 10G outdisk\n"
26352 "\n"
26353 msgstr ""
26354
26355 # type: textblock
26356 #: ../tools/virt-resize.pl:129
26357 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26358 msgstr ""
26359
26360 # type: verbatim
26361 #: ../tools/virt-resize.pl:131
26362 #, no-wrap
26363 msgid ""
26364 " # lvcreate -L 10G -n lv_name vg_name\n"
26365 "\n"
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../tools/virt-resize.pl:133
26370 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26371 msgstr ""
26372
26373 # type: verbatim
26374 #: ../tools/virt-resize.pl:135
26375 #, no-wrap
26376 msgid ""
26377 " # virsh pool-list\n"
26378 " # virsh vol-create-as poolname newvol 10G\n"
26379 "\n"
26380 msgstr ""
26381
26382 # type: =item
26383 #: ../tools/virt-resize.pl:138
26384 msgid "5. Resize"
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../tools/virt-resize.pl:140
26389 msgid ""
26390 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26391 "file) and the output disk.  The output disk is the one created in the "
26392 "previous step."
26393 msgstr ""
26394
26395 # type: verbatim
26396 #: ../tools/virt-resize.pl:144
26397 #, no-wrap
26398 msgid ""
26399 " # virt-resize indisk outdisk\n"
26400 "\n"
26401 msgstr ""
26402
26403 # type: textblock
26404 #: ../tools/virt-resize.pl:146
26405 msgid ""
26406 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26407 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26408 "larger, then an extra, empty partition is created at the end of the disk "
26409 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26410 "error."
26411 msgstr ""
26412
26413 # type: textblock
26414 #: ../tools/virt-resize.pl:152
26415 msgid ""
26416 "More realistically you'd want to expand existing partitions in the disk "
26417 "image by passing extra options (for the full list see the L</OPTIONS> "
26418 "section below)."
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-resize.pl:156
26423 msgid ""
26424 "L</--expand> is the most useful option.  It expands the named partition "
26425 "within the disk to fill any extra space:"
26426 msgstr ""
26427
26428 # type: verbatim
26429 #: ../tools/virt-resize.pl:159
26430 #, no-wrap
26431 msgid ""
26432 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26433 "\n"
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../tools/virt-resize.pl:161
26438 msgid ""
26439 "(In this case, an extra partition is I<not> created at the end of the disk, "
26440 "because there will be no unused space)."
26441 msgstr ""
26442
26443 # type: textblock
26444 #: ../tools/virt-resize.pl:164
26445 msgid ""
26446 "L</--resize> is the other commonly used option.  The following would "
26447 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26448 "rest of the available space:"
26449 msgstr ""
26450
26451 # type: verbatim
26452 #: ../tools/virt-resize.pl:168
26453 #, no-wrap
26454 msgid ""
26455 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26456 "     indisk outdisk\n"
26457 "\n"
26458 msgstr ""
26459
26460 # type: textblock
26461 #: ../tools/virt-resize.pl:171
26462 msgid ""
26463 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26464 "if virt-resize knows how, it will resize the contents, the equivalent of "
26465 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26466 ">.  However virt-resize does not know how to resize some filesystems, so you "
26467 "would have to online resize them after booting the guest.  And virt-resize "
26468 "also does not resize anything inside an LVM PV, it just resizes the PV "
26469 "itself and leaves the user to resize any LVs inside that PV as desired."
26470 msgstr ""
26471
26472 # type: textblock
26473 #: ../tools/virt-resize.pl:180
26474 msgid "Other options are covered below."
26475 msgstr ""
26476
26477 # type: =item
26478 #: ../tools/virt-resize.pl:182
26479 msgid "6. Test"
26480 msgstr ""
26481
26482 # type: textblock
26483 #: ../tools/virt-resize.pl:184
26484 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-resize.pl:186
26489 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26490 msgstr ""
26491
26492 # type: verbatim
26493 #: ../tools/virt-resize.pl:188
26494 #, no-wrap
26495 msgid ""
26496 " # virsh edit guestname\n"
26497 "\n"
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../tools/virt-resize.pl:190
26502 msgid ""
26503 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26504 "html#elementsDisks>"
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-resize.pl:193
26509 msgid "Then start up the domain with the new, resized disk:"
26510 msgstr ""
26511
26512 # type: verbatim
26513 #: ../tools/virt-resize.pl:195
26514 #, no-wrap
26515 msgid ""
26516 " # virsh start guestname\n"
26517 "\n"
26518 msgstr ""
26519
26520 # type: textblock
26521 #: ../tools/virt-resize.pl:197
26522 msgid ""
26523 "and check that it still works.  See also the L</NOTES> section below for "
26524 "additional information."
26525 msgstr ""
26526
26527 # type: =item
26528 #: ../tools/virt-resize.pl:200
26529 msgid "7. Resize LVs etc inside the guest"
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../tools/virt-resize.pl:202
26534 msgid "(This can also be done offline using L<guestfish(1)>)"
26535 msgstr ""
26536
26537 # type: textblock
26538 #: ../tools/virt-resize.pl:204
26539 msgid ""
26540 "Once the guest has booted you should see the new space available, at least "
26541 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26542 "may need to resize LVs inside PVs, and also resize filesystem types that "
26543 "virt-resize does not know how to expand."
26544 msgstr ""
26545
26546 # type: =head2
26547 #: ../tools/virt-resize.pl:211
26548 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26549 msgstr ""
26550
26551 # type: textblock
26552 #: ../tools/virt-resize.pl:213
26553 msgid ""
26554 "Shrinking is somewhat more complex than expanding, and only an overview is "
26555 "given here."
26556 msgstr ""
26557
26558 # type: textblock
26559 #: ../tools/virt-resize.pl:216
26560 msgid ""
26561 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26562 "filesystems).  The user has to shrink content before passing the disk image "
26563 "to virt-resize, and virt-resize will check that the content has been shrunk "
26564 "properly."
26565 msgstr ""
26566
26567 # type: textblock
26568 #: ../tools/virt-resize.pl:221
26569 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26570 msgstr ""
26571
26572 # type: textblock
26573 #: ../tools/virt-resize.pl:223
26574 msgid ""
26575 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26576 "steps 3 and 4 above to allocate a new disk image."
26577 msgstr ""
26578
26579 # type: textblock
26580 #: ../tools/virt-resize.pl:226
26581 msgid ""
26582 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26583 msgstr ""
26584
26585 # type: =head2
26586 #: ../tools/virt-resize.pl:229
26587 msgid "IGNORING OR DELETING PARTITIONS"
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-resize.pl:231
26592 msgid ""
26593 "virt-resize also gives a convenient way to ignore or delete partitions when "
26594 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26595 "up the copy where you don't care about the existing contents of a "
26596 "partition.  Deleting a partition removes it completely, but note that it "
26597 "also renumbers any partitions after the one which is deleted, which can "
26598 "leave some guests unbootable."
26599 msgstr ""
26600
26601 # type: =head2
26602 #: ../tools/virt-resize.pl:238
26603 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-resize.pl:240
26608 msgid ""
26609 "If the input disk is in qcow2 format, then you may prefer that the output is "
26610 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26611 "the fly.  The output format is simply determined by the format of the empty "
26612 "output container that you provide.  Thus to create qcow2 output, use:"
26613 msgstr ""
26614
26615 # type: verbatim
26616 #: ../tools/virt-resize.pl:246
26617 #, no-wrap
26618 msgid ""
26619 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26620 "\n"
26621 msgstr ""
26622
26623 # type: textblock
26624 #: ../tools/virt-resize.pl:248
26625 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26626 msgstr ""
26627
26628 # type: textblock
26629 #: ../tools/virt-resize.pl:250
26630 msgid "Similarly, to get non-sparse raw output use:"
26631 msgstr ""
26632
26633 # type: verbatim
26634 #: ../tools/virt-resize.pl:252
26635 #, no-wrap
26636 msgid ""
26637 " fallocate -l size outdisk\n"
26638 "\n"
26639 msgstr ""
26640
26641 # type: textblock
26642 #: ../tools/virt-resize.pl:254
26643 msgid ""
26644 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26645 "dev/zero of=outdisk bs=1M count=..>)"
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-resize.pl:267
26650 msgid "Display help."
26651 msgstr ""
26652
26653 # type: =item
26654 #: ../tools/virt-resize.pl:281
26655 msgid "B<--resize part=size>"
26656 msgstr ""
26657
26658 # type: textblock
26659 #: ../tools/virt-resize.pl:283
26660 msgid ""
26661 "Resize the named partition (expanding or shrinking it) so that it has the "
26662 "given size."
26663 msgstr ""
26664
26665 # type: textblock
26666 #: ../tools/virt-resize.pl:286
26667 msgid ""
26668 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26669 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26670 "Exabytes; or as a percentage of the current size; or as a relative number or "
26671 "percentage.  For example:"
26672 msgstr ""
26673
26674 # type: verbatim
26675 #: ../tools/virt-resize.pl:291
26676 #, no-wrap
26677 msgid ""
26678 " --resize /dev/sda2=10G\n"
26679 "\n"
26680 msgstr ""
26681
26682 # type: verbatim
26683 #: ../tools/virt-resize.pl:293
26684 #, no-wrap
26685 msgid ""
26686 " --resize /dev/sda4=90%\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: verbatim
26691 #: ../tools/virt-resize.pl:295
26692 #, no-wrap
26693 msgid ""
26694 " --resize /dev/sda2=+1G\n"
26695 "\n"
26696 msgstr ""
26697
26698 # type: verbatim
26699 #: ../tools/virt-resize.pl:297
26700 #, no-wrap
26701 msgid ""
26702 " --resize /dev/sda2=-200M\n"
26703 "\n"
26704 msgstr ""
26705
26706 # type: verbatim
26707 #: ../tools/virt-resize.pl:299
26708 #, no-wrap
26709 msgid ""
26710 " --resize /dev/sda1=+128K\n"
26711 "\n"
26712 msgstr ""
26713
26714 # type: verbatim
26715 #: ../tools/virt-resize.pl:301
26716 #, no-wrap
26717 msgid ""
26718 " --resize /dev/sda1=+10%\n"
26719 "\n"
26720 msgstr ""
26721
26722 # type: verbatim
26723 #: ../tools/virt-resize.pl:303
26724 #, no-wrap
26725 msgid ""
26726 " --resize /dev/sda1=-10%\n"
26727 "\n"
26728 msgstr ""
26729
26730 # type: textblock
26731 #: ../tools/virt-resize.pl:305
26732 msgid ""
26733 "You can increase the size of any partition.  Virt-resize will expand the "
26734 "direct content of the partition if it knows how (see C<--expand> below)."
26735 msgstr ""
26736
26737 # type: textblock
26738 #: ../tools/virt-resize.pl:309
26739 msgid ""
26740 "You can only I<decrease> the size of partitions that contain filesystems or "
26741 "PVs which have already been shrunk.  Virt-resize will check this has been "
26742 "done before proceeding, or else will print an error (see also C<--resize-"
26743 "force>)."
26744 msgstr ""
26745
26746 # type: textblock
26747 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26748 #: ../tools/virt-resize.pl:423
26749 msgid "You can give this option multiple times."
26750 msgstr ""
26751
26752 # type: =item
26753 #: ../tools/virt-resize.pl:320
26754 msgid "B<--resize-force part=size>"
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-resize.pl:322
26759 msgid ""
26760 "This is the same as C<--resize> except that it will let you decrease the "
26761 "size of any partition.  Generally this means you will lose any data which "
26762 "was at the end of the partition you shrink, but you may not care about that "
26763 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26764 "as a swap partition)."
26765 msgstr ""
26766
26767 # type: textblock
26768 #: ../tools/virt-resize.pl:328
26769 msgid "See also the C<--ignore> option."
26770 msgstr ""
26771
26772 # type: =item
26773 #: ../tools/virt-resize.pl:334
26774 msgid "B<--expand part>"
26775 msgstr ""
26776
26777 # type: textblock
26778 #: ../tools/virt-resize.pl:336
26779 msgid ""
26780 "Expand the named partition so it uses up all extra space (space left over "
26781 "after any other resize changes that you request have been done)."
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-resize.pl:339
26786 msgid ""
26787 "If virt-resize knows how, it will expand the direct content of the "
26788 "partition.  For example, if the partition is an LVM PV, it will expand the "
26789 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26790 "content it doesn't know about alone."
26791 msgstr ""
26792
26793 # type: textblock
26794 #: ../tools/virt-resize.pl:344
26795 msgid "Currently virt-resize can resize:"
26796 msgstr ""
26797
26798 # type: textblock
26799 #: ../tools/virt-resize.pl:350
26800 msgid ""
26801 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26802 "partition."
26803 msgstr ""
26804
26805 # type: textblock
26806 #: ../tools/virt-resize.pl:355
26807 msgid ""
26808 "NTFS filesystems contained directly in a partition, if libguestfs was "
26809 "compiled with support for NTFS."
26810 msgstr ""
26811
26812 # type: textblock
26813 #: ../tools/virt-resize.pl:358
26814 msgid ""
26815 "The filesystem must have been shut down consistently last time it was used.  "
26816 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26817 "consistency check, so at the first boot after resizing Windows will check "
26818 "the disk."
26819 msgstr ""
26820
26821 # type: textblock
26822 #: ../tools/virt-resize.pl:365
26823 msgid ""
26824 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26825 "inside the PV.  The user will have to resize LVs as desired."
26826 msgstr ""
26827
26828 # type: textblock
26829 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26830 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26831 msgstr ""
26832
26833 # type: =item
26834 #: ../tools/virt-resize.pl:377
26835 msgid "B<--shrink part>"
26836 msgstr ""
26837
26838 # type: textblock
26839 #: ../tools/virt-resize.pl:379
26840 msgid ""
26841 "Shrink the named partition until the overall disk image fits in the "
26842 "destination.  The named partition B<must> contain a filesystem or PV which "
26843 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26844 "online tools).  Virt-resize will check this and give an error if it has not "
26845 "been done."
26846 msgstr ""
26847
26848 # type: textblock
26849 #: ../tools/virt-resize.pl:385
26850 msgid ""
26851 "The amount by which the overall disk must be shrunk (after carrying out all "
26852 "other operations requested by the user) is called the \"deficit\".  For "
26853 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26854 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26855 "would give an error unless the user specified a partition to shrink and that "
26856 "partition had more than a gigabyte of free space."
26857 msgstr ""
26858
26859 # type: =item
26860 #: ../tools/virt-resize.pl:399
26861 msgid "B<--ignore part>"
26862 msgstr ""
26863
26864 # type: textblock
26865 #: ../tools/virt-resize.pl:401
26866 msgid ""
26867 "Ignore the named partition.  Effectively this means the partition is "
26868 "allocated on the destination disk, but the content is not copied across from "
26869 "the source disk.  The content of the partition will be blank (all zero "
26870 "bytes)."
26871 msgstr ""
26872
26873 # type: =item
26874 #: ../tools/virt-resize.pl:412
26875 msgid "B<--delete part>"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-resize.pl:414
26880 msgid ""
26881 "Delete the named partition.  It would be more accurate to describe this as "
26882 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26883 "the original disk image is left intact."
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-resize.pl:418
26888 msgid ""
26889 "Note that when you delete a partition, then anything contained in the "
26890 "partition is also deleted.  Furthermore, this causes any partitions that "
26891 "come after to be I<renumbered>, which can easily make your guest unbootable."
26892 msgstr ""
26893
26894 # type: =item
26895 #: ../tools/virt-resize.pl:429
26896 msgid "B<--LV-expand logvol>"
26897 msgstr ""
26898
26899 # type: textblock
26900 #: ../tools/virt-resize.pl:431
26901 msgid ""
26902 "This takes the logical volume and, as a final step, expands it to fill all "
26903 "the space available in its volume group.  A typical usage, assuming a Linux "
26904 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26905 "lv_root> would be:"
26906 msgstr ""
26907
26908 # type: verbatim
26909 #: ../tools/virt-resize.pl:436
26910 #, no-wrap
26911 msgid ""
26912 " virt-resize indisk outdisk \\\n"
26913 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26914 "\n"
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-resize.pl:439
26919 msgid ""
26920 "This would first expand the partition (and PV), and then expand the root "
26921 "device to fill the extra space in the PV."
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-resize.pl:442
26926 msgid ""
26927 "The contents of the LV are also resized if virt-resize knows how to do "
26928 "that.  You can stop virt-resize from trying to expand the content by using "
26929 "the option C<--no-expand-content>."
26930 msgstr ""
26931
26932 # type: textblock
26933 #: ../tools/virt-resize.pl:446
26934 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26935 msgstr ""
26936
26937 # type: textblock
26938 #: ../tools/virt-resize.pl:449
26939 msgid ""
26940 "You can give this option multiple times, I<but> it doesn't make sense to do "
26941 "this unless the logical volumes you specify are all in different volume "
26942 "groups."
26943 msgstr ""
26944
26945 # type: =item
26946 #: ../tools/virt-resize.pl:457
26947 msgid "B<--no-copy-boot-loader>"
26948 msgstr ""
26949
26950 # type: textblock
26951 #: ../tools/virt-resize.pl:459
26952 msgid ""
26953 "By default, virt-resize copies over some sectors at the start of the disk "
26954 "(up to the beginning of the first partition).  Commonly these sectors "
26955 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26956 "in order for the guest to boot correctly."
26957 msgstr ""
26958
26959 # type: textblock
26960 #: ../tools/virt-resize.pl:464
26961 msgid ""
26962 "If you specify this flag, then this initial copy is not done.  You may need "
26963 "to reinstall the boot loader in this case."
26964 msgstr ""
26965
26966 # type: =item
26967 #: ../tools/virt-resize.pl:472
26968 msgid "B<--no-extra-partition>"
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-resize.pl:474
26973 msgid ""
26974 "By default, virt-resize creates an extra partition if there is any extra, "
26975 "unused space after all resizing has happened.  Use this option to prevent "
26976 "the extra partition from being created.  If you do this then the extra space "
26977 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26978 "tool in the guest."
26979 msgstr ""
26980
26981 # type: textblock
26982 #: ../tools/virt-resize.pl:480
26983 msgid ""
26984 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26985 "will be created."
26986 msgstr ""
26987
26988 # type: =item
26989 #: ../tools/virt-resize.pl:487
26990 msgid "B<--no-expand-content>"
26991 msgstr ""
26992
26993 # type: textblock
26994 #: ../tools/virt-resize.pl:489
26995 msgid ""
26996 "By default, virt-resize will try to expand the direct contents of "
26997 "partitions, if it knows how (see C<--expand> option above)."
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-resize.pl:492
27002 msgid ""
27003 "If you give the C<--no-expand-content> option then virt-resize will not "
27004 "attempt this."
27005 msgstr ""
27006
27007 # type: =item
27008 #: ../tools/virt-resize.pl:499
27009 msgid "B<-d> | B<--debug>"
27010 msgstr ""
27011
27012 # type: =item
27013 #: ../tools/virt-resize.pl:507
27014 msgid "B<-n> | B<--dryrun>"
27015 msgstr ""
27016
27017 # type: textblock
27018 #: ../tools/virt-resize.pl:509
27019 msgid "Print a summary of what would be done, but don't do anything."
27020 msgstr ""
27021
27022 # type: =item
27023 #: ../tools/virt-resize.pl:515
27024 msgid "B<-q> | B<--quiet>"
27025 msgstr ""
27026
27027 # type: textblock
27028 #: ../tools/virt-resize.pl:517
27029 msgid "Don't print the summary."
27030 msgstr ""
27031
27032 # type: textblock
27033 #: ../tools/virt-resize.pl:525
27034 msgid ""
27035 "Specify the format of the input disk image.  If this flag is not given then "
27036 "it is auto-detected from the image itself."
27037 msgstr ""
27038
27039 # type: textblock
27040 #: ../tools/virt-resize.pl:531
27041 msgid ""
27042 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27043 "AND NON-SPARSE RAW FORMATS>."
27044 msgstr ""
27045
27046 # type: =item
27047 #: ../tools/virt-resize.pl:538
27048 msgid "B<--output-format> raw"
27049 msgstr ""
27050
27051 # type: textblock
27052 #: ../tools/virt-resize.pl:540
27053 msgid ""
27054 "Specify the format of the output disk image.  If this flag is not given then "
27055 "it is auto-detected from the image itself."
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-resize.pl:546
27060 msgid ""
27061 "Note that you still need to create the output disk with the right format.  "
27062 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27063 msgstr ""
27064
27065 # type: =head1
27066 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27067 msgid "NOTES"
27068 msgstr ""
27069
27070 # type: =head2
27071 #: ../tools/virt-resize.pl:1424
27072 msgid "\"Partition 1 does not end on cylinder boundary.\""
27073 msgstr ""
27074
27075 # type: textblock
27076 #: ../tools/virt-resize.pl:1426
27077 msgid ""
27078 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27079 "means the partitions will not be aligned to the ancient CHS geometry.  "
27080 "However CHS geometry is meaningless for disks manufactured since the early "
27081 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27082 "cylinders is not required by any modern operating system."
27083 msgstr ""
27084
27085 # type: =head2
27086 #: ../tools/virt-resize.pl:1433
27087 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-resize.pl:1435
27092 msgid ""
27093 "In Windows Vista and later versions, Microsoft switched to using a separate "
27094 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27095 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27096 "the boot partition.  Doing so seems to break the guest completely.  However "
27097 "expanding the second partition (ie. C: drive) should work."
27098 msgstr ""
27099
27100 # type: textblock
27101 #: ../tools/virt-resize.pl:1442
27102 msgid ""
27103 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27104 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27105 "it find errors) is nothing to worry about."
27106 msgstr ""
27107
27108 # type: =head2
27109 #: ../tools/virt-resize.pl:1446
27110 msgid "GUEST BOOT STUCK AT \"GRUB\""
27111 msgstr ""
27112
27113 # type: textblock
27114 #: ../tools/virt-resize.pl:1448
27115 msgid ""
27116 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27117 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27118 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27119 "although we think is to do with partition alignment."
27120 msgstr ""
27121
27122 # type: verbatim
27123 #: ../tools/virt-resize.pl:1453
27124 #, no-wrap
27125 msgid ""
27126 " guestfish -i -a newdisk\n"
27127 " ><fs> cat /boot/grub/device.map\n"
27128 " # check the contents of this file are sensible or\n"
27129 " # edit the file if necessary\n"
27130 " ><fs> grub-install / /dev/vda\n"
27131 " ><fs> exit\n"
27132 "\n"
27133 msgstr ""
27134
27135 # type: textblock
27136 #: ../tools/virt-resize.pl:1460
27137 msgid ""
27138 "For more flexible guest reconfiguration, including if you need to specify "
27139 "other parameters to grub-install, use L<virt-rescue(1)>."
27140 msgstr ""
27141
27142 # type: =head1
27143 #: ../tools/virt-resize.pl:1463
27144 msgid "ALTERNATIVE TOOLS"
27145 msgstr ""
27146
27147 # type: textblock
27148 #: ../tools/virt-resize.pl:1465
27149 msgid ""
27150 "There are several proprietary tools for resizing partitions.  We won't "
27151 "mention any here."
27152 msgstr ""
27153
27154 # type: textblock
27155 #: ../tools/virt-resize.pl:1468
27156 msgid ""
27157 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27158 "operations on disk images.  They can resize and move partitions, but I don't "
27159 "think they can do anything with the contents, and they certainly don't "
27160 "understand LVM."
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:1473
27165 msgid ""
27166 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27167 "but at a much lower level.  You will probably end up hand-calculating sector "
27168 "offsets, which is something that virt-resize was designed to avoid.  If you "
27169 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27170 "C<--debug> flag."
27171 msgstr ""
27172
27173 # type: textblock
27174 #: ../tools/virt-resize.pl:1488
27175 msgid ""
27176 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27177 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27178 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27179 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27180 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27181 msgstr ""
27182
27183 # type: textblock
27184 #: ../tools/virt-list-filesystems.pl:32
27185 msgid ""
27186 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27187 msgstr ""
27188
27189 # type: verbatim
27190 #: ../tools/virt-list-filesystems.pl:36
27191 #, no-wrap
27192 msgid ""
27193 " virt-list-filesystems [--options] domname\n"
27194 "\n"
27195 msgstr ""
27196
27197 # type: verbatim
27198 #: ../tools/virt-list-filesystems.pl:38
27199 #, no-wrap
27200 msgid ""
27201 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27202 "\n"
27203 msgstr ""
27204
27205 # type: textblock
27206 #: ../tools/virt-list-filesystems.pl:42
27207 msgid ""
27208 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27209 "are contained in a virtual machine or disk image."
27210 msgstr ""
27211
27212 # type: textblock
27213 #: ../tools/virt-list-filesystems.pl:46
27214 msgid ""
27215 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27216 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27217 "> tool."
27218 msgstr ""
27219
27220 # type: textblock
27221 #: ../tools/virt-list-filesystems.pl:105
27222 msgid ""
27223 "With this option, C<virt-list-filesystems> displays the type of each "
27224 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27225 msgstr ""
27226
27227 # type: =item
27228 #: ../tools/virt-list-filesystems.pl:112
27229 msgid "B<-a> | B<--all>"
27230 msgstr ""
27231
27232 # type: textblock
27233 #: ../tools/virt-list-filesystems.pl:114
27234 msgid ""
27235 "Normally we only show mountable filesystems.  If this option is given then "
27236 "swap devices are shown too."
27237 msgstr ""
27238
27239 # type: textblock
27240 #: ../tools/virt-list-filesystems.pl:188
27241 msgid ""
27242 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
27243 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
27244 ">, L<http://libguestfs.org/>."
27245 msgstr ""
27246
27247 # type: textblock
27248 #: ../tools/virt-cat.pl:33
27249 msgid "virt-cat - Display a file in a virtual machine"
27250 msgstr ""
27251
27252 # type: verbatim
27253 #: ../tools/virt-cat.pl:37
27254 #, no-wrap
27255 msgid ""
27256 " virt-cat [--options] domname file\n"
27257 "\n"
27258 msgstr ""
27259
27260 # type: verbatim
27261 #: ../tools/virt-cat.pl:39
27262 #, no-wrap
27263 msgid ""
27264 " virt-cat [--options] disk.img [disk.img ...] file\n"
27265 "\n"
27266 msgstr ""
27267
27268 # type: textblock
27269 #: ../tools/virt-cat.pl:43
27270 msgid ""
27271 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27272 "C<file> exists in the named virtual machine (or disk image)."
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-cat.pl:46
27277 msgid ""
27278 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27279 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27280 "tool."
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-cat.pl:52
27285 msgid ""
27286 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27287 msgstr ""
27288
27289 # type: verbatim
27290 #: ../tools/virt-cat.pl:55
27291 #, no-wrap
27292 msgid ""
27293 " virt-cat mydomain /etc/fstab\n"
27294 "\n"
27295 msgstr ""
27296
27297 # type: textblock
27298 #: ../tools/virt-cat.pl:57
27299 msgid "List syslog messages from a VM:"
27300 msgstr ""
27301
27302 # type: verbatim
27303 #: ../tools/virt-cat.pl:59
27304 #, no-wrap
27305 msgid ""
27306 " virt-cat mydomain /var/log/messages | tail\n"
27307 "\n"
27308 msgstr ""
27309
27310 # type: textblock
27311 #: ../tools/virt-cat.pl:61
27312 msgid "Find out what DHCP IP address a VM acquired:"
27313 msgstr ""
27314
27315 # type: verbatim
27316 #: ../tools/virt-cat.pl:63
27317 #, no-wrap
27318 msgid ""
27319 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27320 "\n"
27321 msgstr ""
27322
27323 # type: textblock
27324 #: ../tools/virt-cat.pl:65
27325 msgid "Find out what packages were recently installed:"
27326 msgstr ""
27327
27328 # type: verbatim
27329 #: ../tools/virt-cat.pl:67
27330 #, no-wrap
27331 msgid ""
27332 " virt-cat mydomain /var/log/yum.log | tail\n"
27333 "\n"
27334 msgstr ""
27335
27336 # type: textblock
27337 #: ../tools/virt-cat.pl:69
27338 msgid "Find out who is logged on inside a virtual machine:"
27339 msgstr ""
27340
27341 # type: verbatim
27342 #: ../tools/virt-cat.pl:71
27343 #, no-wrap
27344 msgid ""
27345 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27346 " who /tmp/utmp\n"
27347 "\n"
27348 msgstr ""
27349
27350 # type: textblock
27351 #: ../tools/virt-cat.pl:74
27352 msgid "or who was logged on:"
27353 msgstr ""
27354
27355 # type: verbatim
27356 #: ../tools/virt-cat.pl:76
27357 #, no-wrap
27358 msgid ""
27359 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
27360 " last -f /tmp/wtmp\n"
27361 "\n"
27362 msgstr ""
27363
27364 # type: textblock
27365 #: ../tools/virt-cat.pl:187
27366 msgid ""
27367 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27368 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-tar.pl:33
27373 msgid "virt-tar - Extract or upload files to a virtual machine"
27374 msgstr ""
27375
27376 # type: verbatim
27377 #: ../tools/virt-tar.pl:37
27378 #, no-wrap
27379 msgid ""
27380 " virt-tar [--options] -x domname directory tarball\n"
27381 "\n"
27382 msgstr ""
27383
27384 # type: verbatim
27385 #: ../tools/virt-tar.pl:39
27386 #, no-wrap
27387 msgid ""
27388 " virt-tar [--options] -u domname tarball directory\n"
27389 "\n"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #: ../tools/virt-tar.pl:41
27394 #, no-wrap
27395 msgid ""
27396 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27397 "\n"
27398 msgstr ""
27399
27400 # type: verbatim
27401 #: ../tools/virt-tar.pl:43
27402 #, no-wrap
27403 msgid ""
27404 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27405 "\n"
27406 msgstr ""
27407
27408 # type: textblock
27409 #: ../tools/virt-tar.pl:47
27410 msgid "Download C</home> from the VM into a local tarball:"
27411 msgstr ""
27412
27413 # type: verbatim
27414 #: ../tools/virt-tar.pl:49
27415 #, no-wrap
27416 msgid ""
27417 " virt-tar -x domname /home home.tar\n"
27418 "\n"
27419 msgstr ""
27420
27421 # type: verbatim
27422 #: ../tools/virt-tar.pl:51
27423 #, no-wrap
27424 msgid ""
27425 " virt-tar -zx domname /home home.tar.gz\n"
27426 "\n"
27427 msgstr ""
27428
27429 # type: textblock
27430 #: ../tools/virt-tar.pl:53
27431 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27432 msgstr ""
27433
27434 # type: verbatim
27435 #: ../tools/virt-tar.pl:55
27436 #, no-wrap
27437 msgid ""
27438 " virt-tar -u domname uploadstuff.tar /tmp\n"
27439 "\n"
27440 msgstr ""
27441
27442 # type: verbatim
27443 #: ../tools/virt-tar.pl:57
27444 #, no-wrap
27445 msgid ""
27446 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27447 "\n"
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-tar.pl:61
27452 msgid ""
27453 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27454 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27455 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27456 msgstr ""
27457
27458 # type: textblock
27459 #: ../tools/virt-tar.pl:66
27460 msgid ""
27461 "You can use C<-x> (extract) on live virtual machines, but you might get "
27462 "inconsistent results or errors if there is filesystem activity inside the "
27463 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27464 "work, but the only way to guarantee consistent results is if the virtual "
27465 "machine is shut down."
27466 msgstr ""
27467
27468 # type: textblock
27469 #: ../tools/virt-tar.pl:74
27470 msgid ""
27471 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27472 "parts of a guest filesystem.  There are many possibilities: making backups, "
27473 "uploading data files, snooping on guest activity, fixing or customizing "
27474 "guests, etc."
27475 msgstr ""
27476
27477 # type: textblock
27478 #: ../tools/virt-tar.pl:79
27479 msgid ""
27480 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27481 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27482 "should look at the L<guestfish(1)> tool."
27483 msgstr ""
27484
27485 # type: textblock
27486 #: ../tools/virt-tar.pl:83
27487 msgid ""
27488 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27489 "its contents (recursively) from the virtual machine into a local tarball.  "
27490 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27491 "virtual machine.  You cannot use these two options together."
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-tar.pl:89
27496 msgid ""
27497 "In addition, you may need to use the C<-z> (gZip) option to enable "
27498 "compression.  When uploading, you have to specify C<-z> if the upload file "
27499 "is compressed because virt-tar won't detect this on its own."
27500 msgstr ""
27501
27502 # type: textblock
27503 #: ../tools/virt-tar.pl:93
27504 msgid ""
27505 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27506 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27507 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27508 "the L<libguestfs(3)> API)."
27509 msgstr ""
27510
27511 # type: =item
27512 #: ../tools/virt-tar.pl:151
27513 msgid "B<-x> | B<--extract> | B<--download>"
27514 msgstr ""
27515
27516 # type: =item
27517 #: ../tools/virt-tar.pl:153
27518 msgid "B<-u> | B<--upload>"
27519 msgstr ""
27520
27521 # type: textblock
27522 #: ../tools/virt-tar.pl:155
27523 msgid ""
27524 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27525 "local tarball."
27526 msgstr ""
27527
27528 # type: textblock
27529 #: ../tools/virt-tar.pl:158
27530 msgid ""
27531 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27532 "Please read the L</WARNING> section above before using this option."
27533 msgstr ""
27534
27535 # type: textblock
27536 #: ../tools/virt-tar.pl:162
27537 msgid "You must specify exactly one of these options."
27538 msgstr ""
27539
27540 # type: =item
27541 #: ../tools/virt-tar.pl:168
27542 msgid "B<-z> | B<--gzip>"
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-tar.pl:170
27547 msgid "Specify that the input or output tarball is gzip-compressed."
27548 msgstr ""
27549
27550 # type: textblock
27551 #: ../tools/virt-tar.pl:283
27552 msgid ""
27553 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
27554 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27555 "org/>."
27556 msgstr ""
27557
27558 # type: textblock
27559 #: ../tools/virt-rescue.pl:33
27560 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27561 msgstr ""
27562
27563 # type: verbatim
27564 #: ../tools/virt-rescue.pl:37
27565 #, no-wrap
27566 msgid ""
27567 " virt-rescue [--options] domname\n"
27568 "\n"
27569 msgstr ""
27570
27571 # type: verbatim
27572 #: ../tools/virt-rescue.pl:39
27573 #, no-wrap
27574 msgid ""
27575 " virt-rescue [--options] disk.img [disk.img ...]\n"
27576 "\n"
27577 msgstr ""
27578
27579 # type: textblock
27580 #: ../tools/virt-rescue.pl:43
27581 msgid ""
27582 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27583 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27584 "you from doing this, but doesn't catch all cases."
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-rescue.pl:47
27589 msgid ""
27590 "However if you use the I<--ro> (read only) option, then you can attach a "
27591 "shell to a live virtual machine.  The results might be strange or "
27592 "inconsistent at times but you won't get disk corruption."
27593 msgstr ""
27594
27595 # type: textblock
27596 #: ../tools/virt-rescue.pl:53
27597 msgid ""
27598 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27599 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27600 "recovery tools which you can use to examine or rescue a virtual machine or "
27601 "disk image."
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-rescue.pl:58
27606 msgid ""
27607 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27608 "on disk image(s):"
27609 msgstr ""
27610
27611 # type: verbatim
27612 #: ../tools/virt-rescue.pl:61
27613 #, no-wrap
27614 msgid ""
27615 " virt-rescue GuestName\n"
27616 "\n"
27617 msgstr ""
27618
27619 # type: verbatim
27620 #: ../tools/virt-rescue.pl:63
27621 #, no-wrap
27622 msgid ""
27623 " virt-rescue --ro /path/to/disk.img\n"
27624 "\n"
27625 msgstr ""
27626
27627 # type: verbatim
27628 #: ../tools/virt-rescue.pl:65
27629 #, no-wrap
27630 msgid ""
27631 " virt-rescue /dev/sdc\n"
27632 "\n"
27633 msgstr ""
27634
27635 # type: textblock
27636 #: ../tools/virt-rescue.pl:67
27637 msgid "For live VMs you I<must> use the --ro option."
27638 msgstr ""
27639
27640 # type: textblock
27641 #: ../tools/virt-rescue.pl:69
27642 msgid ""
27643 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27644 "in an interactive bash shell where you can use many ordinary Linux "
27645 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27646 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27647 "is an empty directory called C</sysroot> where you can mount filesystems."
27648 msgstr ""
27649
27650 # type: textblock
27651 #: ../tools/virt-rescue.pl:76
27652 msgid ""
27653 "In the example below, we list logical volumes, then choose one to mount "
27654 "under C</sysroot>:"
27655 msgstr ""
27656
27657 # type: verbatim
27658 #: ../tools/virt-rescue.pl:79
27659 #, no-wrap
27660 msgid ""
27661 " ><rescue> lvs\n"
27662 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27663 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27664 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27665 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27666 " ><rescue> ls /sysroot\n"
27667 "\n"
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-rescue.pl:86
27672 msgid ""
27673 "If you don't know what filesystems are available on the virtual machine then "
27674 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27675 msgstr ""
27676
27677 # type: textblock
27678 #: ../tools/virt-rescue.pl:92
27679 msgid ""
27680 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27681 "virtual machine.  For example you can use it on a blank file if you want to "
27682 "partition that file (although we would recommend using L<guestfish(1)> "
27683 "instead as it is more suitable for this purpose).  You can even use virt-"
27684 "rescue on things like SD cards."
27685 msgstr ""
27686
27687 # type: textblock
27688 #: ../tools/virt-rescue.pl:98
27689 msgid ""
27690 "This tool is just designed for quick interactive hacking on a virtual "
27691 "machine.  For more structured access to a virtual machine disk image, you "
27692 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27693 "make scripted changes to guests, use L<guestfish(1)>."
27694 msgstr ""
27695
27696 # type: =item
27697 #: ../tools/virt-rescue.pl:127
27698 msgid "B<--append kernelopts>"
27699 msgstr ""
27700
27701 # type: textblock
27702 #: ../tools/virt-rescue.pl:129
27703 msgid "Pass additional options to the rescue kernel."
27704 msgstr ""
27705
27706 # type: =item
27707 #: ../tools/virt-rescue.pl:164
27708 msgid "B<--memsize MB> | B<-m MB>"
27709 msgstr ""
27710
27711 # type: textblock
27712 #: ../tools/virt-rescue.pl:166
27713 msgid ""
27714 "Change the amount of memory allocated to the rescue system.  The default is "
27715 "set by libguestfs and is small but adequate for running system tools.  The "
27716 "occasional program might need more memory.  The parameter is specified in "
27717 "megabytes."
27718 msgstr ""
27719
27720 # type: =item
27721 #: ../tools/virt-rescue.pl:175
27722 msgid "B<--network MB>"
27723 msgstr ""
27724
27725 # type: textblock
27726 #: ../tools/virt-rescue.pl:177
27727 msgid "Enable QEMU user networking in the guest."
27728 msgstr ""
27729
27730 # type: =item
27731 #: ../tools/virt-rescue.pl:183
27732 msgid "B<--ro> | B<-r>"
27733 msgstr ""
27734
27735 # type: textblock
27736 #: ../tools/virt-rescue.pl:185
27737 msgid "Open the image read-only."
27738 msgstr ""
27739
27740 # type: textblock
27741 #: ../tools/virt-rescue.pl:197
27742 msgid ""
27743 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27744 "SELINUX> before using this option."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-rescue.pl:257
27749 msgid ""
27750 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27751 "ENVIRONMENT VARIABLES> for the complete list."
27752 msgstr ""
27753
27754 # type: textblock
27755 #: ../tools/virt-rescue.pl:269
27756 msgid ""
27757 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27758 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-make-fs.pl:37
27763 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27764 msgstr ""
27765
27766 # type: verbatim
27767 #: ../tools/virt-make-fs.pl:41
27768 #, no-wrap
27769 msgid ""
27770 " virt-make-fs [--options] input.tar output.img\n"
27771 "\n"
27772 msgstr ""
27773
27774 # type: verbatim
27775 #: ../tools/virt-make-fs.pl:43
27776 #, no-wrap
27777 msgid ""
27778 " virt-make-fs [--options] input.tar.gz output.img\n"
27779 "\n"
27780 msgstr ""
27781
27782 # type: verbatim
27783 #: ../tools/virt-make-fs.pl:45
27784 #, no-wrap
27785 msgid ""
27786 " virt-make-fs [--options] directory output.img\n"
27787 "\n"
27788 msgstr ""
27789
27790 # type: textblock
27791 #: ../tools/virt-make-fs.pl:49
27792 msgid ""
27793 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27794 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27795 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27796 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27797 "you want to attach these filesystems to existing virtual machines (eg. to "
27798 "import large amounts of read-only data to a VM)."
27799 msgstr ""
27800
27801 # type: textblock
27802 #: ../tools/virt-make-fs.pl:57
27803 msgid "Basic usage is:"
27804 msgstr ""
27805
27806 # type: verbatim
27807 #: ../tools/virt-make-fs.pl:59
27808 #, no-wrap
27809 msgid ""
27810 " virt-make-fs input output\n"
27811 "\n"
27812 msgstr ""
27813
27814 # type: textblock
27815 #: ../tools/virt-make-fs.pl:61
27816 msgid ""
27817 "where C<input> is either a directory containing files that you want to add, "
27818 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27819 "C<output> is a disk image.  The input type is detected automatically.  The "
27820 "output disk image defaults to a raw ext2 image unless you specify extra "
27821 "flags (see L</OPTIONS> below)."
27822 msgstr ""
27823
27824 # type: =head2
27825 #: ../tools/virt-make-fs.pl:67
27826 msgid "EXTRA SPACE"
27827 msgstr ""
27828
27829 # type: textblock
27830 #: ../tools/virt-make-fs.pl:69
27831 msgid ""
27832 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27833 "the files that it contains, but might have extra space.  Depending on how "
27834 "you are going to use the output, you might think this extra space is wasted "
27835 "and want to minimize it, or you might want to leave space so that more files "
27836 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27837 "but you can use the C<--size> flag to leave space in the filesystem if you "
27838 "want it."
27839 msgstr ""
27840
27841 # type: textblock
27842 #: ../tools/virt-make-fs.pl:77
27843 msgid ""
27844 "An alternative way to leave extra space but not make the output image any "
27845 "bigger is to use an alternative disk image format (instead of the default "
27846 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27847 "image format (check your hypervisor supports this before using it).  This "
27848 "allows you to choose a large C<--size> but the extra space won't actually be "
27849 "allocated in the image until you try to store something in it."
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-make-fs.pl:85
27854 msgid ""
27855 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27856 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27857 "resize to build another image from scratch."
27858 msgstr ""
27859
27860 # type: =head3
27861 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27862 #: ../tools/virt-make-fs.pl:142
27863 msgid "EXAMPLE"
27864 msgstr ""
27865
27866 # type: verbatim
27867 #: ../tools/virt-make-fs.pl:91
27868 #, no-wrap
27869 msgid ""
27870 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27871 "\n"
27872 msgstr ""
27873
27874 # type: =head2
27875 #: ../tools/virt-make-fs.pl:93
27876 msgid "FILESYSTEM TYPE"
27877 msgstr ""
27878
27879 # type: textblock
27880 #: ../tools/virt-make-fs.pl:95
27881 msgid ""
27882 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27883 "libguestfs supports can be used (but I<not> read-only formats like "
27884 "ISO9660).  Here are some of the more common choices:"
27885 msgstr ""
27886
27887 # type: =item
27888 #: ../tools/virt-make-fs.pl:101
27889 msgid "I<ext3>"
27890 msgstr ""
27891
27892 # type: textblock
27893 #: ../tools/virt-make-fs.pl:103
27894 msgid ""
27895 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27896 "you are not going to use the filesystem in a way that requires the journal, "
27897 "then this is just wasted overhead."
27898 msgstr ""
27899
27900 # type: =item
27901 #: ../tools/virt-make-fs.pl:107
27902 msgid "I<ntfs> or I<vfat>"
27903 msgstr ""
27904
27905 # type: textblock
27906 #: ../tools/virt-make-fs.pl:109
27907 msgid "Useful if exporting data to a Windows guest."
27908 msgstr ""
27909
27910 # type: textblock
27911 #: ../tools/virt-make-fs.pl:111
27912 msgid ""
27913 "I<Note for vfat>: The tar archive or local directory must only contain files "
27914 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27915 "program running within libguestfs is unable to change the ownership of non-"
27916 "root files, since vfat itself does not support this."
27917 msgstr ""
27918
27919 # type: =item
27920 #: ../tools/virt-make-fs.pl:116
27921 msgid "I<minix>"
27922 msgstr ""
27923
27924 # type: textblock
27925 #: ../tools/virt-make-fs.pl:118
27926 msgid ""
27927 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27928 "total filesystem size."
27929 msgstr ""
27930
27931 # type: verbatim
27932 #: ../tools/virt-make-fs.pl:125
27933 #, no-wrap
27934 msgid ""
27935 " virt-make-fs --type=minix input minixfs.img\n"
27936 "\n"
27937 msgstr ""
27938
27939 # type: =head2
27940 #: ../tools/virt-make-fs.pl:127
27941 msgid "TO PARTITION OR NOT TO PARTITION"
27942 msgstr ""
27943
27944 # type: textblock
27945 #: ../tools/virt-make-fs.pl:129
27946 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27947 msgstr ""
27948
27949 # type: textblock
27950 #: ../tools/virt-make-fs.pl:131
27951 msgid ""
27952 "Adding a partition can make the disk image more compatible with certain "
27953 "virtualized operating systems which don't expect to see a filesystem "
27954 "directly located on a block device (Linux doesn't care and will happily "
27955 "handle both types)."
27956 msgstr ""
27957
27958 # type: textblock
27959 #: ../tools/virt-make-fs.pl:136
27960 msgid ""
27961 "On the other hand, if you have a partition table then the output image is no "
27962 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27963 "directly on a partitioned disk image.  (However libguestfs tools such as "
27964 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27965 msgstr ""
27966
27967 # type: textblock
27968 #: ../tools/virt-make-fs.pl:144
27969 msgid "Add an MBR partition:"
27970 msgstr ""
27971
27972 # type: verbatim
27973 #: ../tools/virt-make-fs.pl:146
27974 #, no-wrap
27975 msgid ""
27976 " virt-make-fs --partition -- input disk.img\n"
27977 "\n"
27978 msgstr ""
27979
27980 # type: textblock
27981 #: ../tools/virt-make-fs.pl:148
27982 msgid ""
27983 "If the output disk image could be terabyte-sized or larger, it's better to "
27984 "use an EFI/GPT-compatible partition table:"
27985 msgstr ""
27986
27987 # type: verbatim
27988 #: ../tools/virt-make-fs.pl:151
27989 #, no-wrap
27990 msgid ""
27991 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27992 "\n"
27993 msgstr ""
27994
27995 # type: textblock
27996 #: ../tools/virt-make-fs.pl:179
27997 msgid "Enable debugging information."
27998 msgstr ""
27999
28000 # type: =item
28001 #: ../tools/virt-make-fs.pl:185
28002 msgid "B<--size=E<lt>NE<gt>>"
28003 msgstr ""
28004
28005 # type: =item
28006 #: ../tools/virt-make-fs.pl:187
28007 msgid "B<--size=+E<lt>NE<gt>>"
28008 msgstr ""
28009
28010 # type: =item
28011 #: ../tools/virt-make-fs.pl:189
28012 msgid "B<-s E<lt>NE<gt>>"
28013 msgstr ""
28014
28015 # type: =item
28016 #: ../tools/virt-make-fs.pl:191
28017 msgid "B<-s +E<lt>NE<gt>>"
28018 msgstr ""
28019
28020 # type: textblock
28021 #: ../tools/virt-make-fs.pl:193
28022 msgid ""
28023 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28024 msgstr ""
28025
28026 # type: textblock
28027 #: ../tools/virt-make-fs.pl:196
28028 msgid ""
28029 "If this option is I<not> given, then the output image will be just large "
28030 "enough to contain all the files, with not much wasted space."
28031 msgstr ""
28032
28033 # type: textblock
28034 #: ../tools/virt-make-fs.pl:199
28035 msgid ""
28036 "To choose a fixed size output disk, specify an absolute number followed by b/"
28037 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28038 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28039 "files, else you will get an error."
28040 msgstr ""
28041
28042 # type: textblock
28043 #: ../tools/virt-make-fs.pl:204
28044 msgid ""
28045 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28046 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28047 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28048 "the input files, and (approximately) an extra 200 MB free space."
28049 msgstr ""
28050
28051 # type: textblock
28052 #: ../tools/virt-make-fs.pl:210
28053 msgid ""
28054 "Note that virt-make-fs estimates free space, and therefore will not produce "
28055 "filesystems containing precisely the free space requested.  (It is much more "
28056 "expensive and time-consuming to produce a filesystem which has precisely the "
28057 "desired free space)."
28058 msgstr ""
28059
28060 # type: =item
28061 #: ../tools/virt-make-fs.pl:219
28062 msgid "B<--format=E<lt>fmtE<gt>>"
28063 msgstr ""
28064
28065 # type: =item
28066 #: ../tools/virt-make-fs.pl:221
28067 msgid "B<-F E<lt>fmtE<gt>>"
28068 msgstr ""
28069
28070 # type: textblock
28071 #: ../tools/virt-make-fs.pl:223
28072 msgid "Choose the output disk image format."
28073 msgstr ""
28074
28075 # type: textblock
28076 #: ../tools/virt-make-fs.pl:225
28077 msgid "The default is C<raw> (raw disk image)."
28078 msgstr ""
28079
28080 # type: textblock
28081 #: ../tools/virt-make-fs.pl:227
28082 msgid ""
28083 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28084 "that would really make sense here is C<qcow2>."
28085 msgstr ""
28086
28087 # type: =item
28088 #: ../tools/virt-make-fs.pl:234
28089 msgid "B<--type=E<lt>fsE<gt>>"
28090 msgstr ""
28091
28092 # type: =item
28093 #: ../tools/virt-make-fs.pl:236
28094 msgid "B<-t E<lt>fsE<gt>>"
28095 msgstr ""
28096
28097 # type: textblock
28098 #: ../tools/virt-make-fs.pl:238
28099 msgid "Choose the output filesystem type."
28100 msgstr ""
28101
28102 # type: textblock
28103 #: ../tools/virt-make-fs.pl:240
28104 msgid "The default is C<ext2>."
28105 msgstr ""
28106
28107 # type: textblock
28108 #: ../tools/virt-make-fs.pl:242
28109 msgid ""
28110 "Any filesystem which is supported read-write by libguestfs can be used here."
28111 msgstr ""
28112
28113 # type: =item
28114 #: ../tools/virt-make-fs.pl:249
28115 msgid "B<--partition>"
28116 msgstr ""
28117
28118 # type: =item
28119 #: ../tools/virt-make-fs.pl:251
28120 msgid "B<--partition=E<lt>parttypeE<gt>>"
28121 msgstr ""
28122
28123 # type: textblock
28124 #: ../tools/virt-make-fs.pl:253
28125 msgid ""
28126 "If specified, this flag adds an MBR partition table to the output disk image."
28127 msgstr ""
28128
28129 # type: textblock
28130 #: ../tools/virt-make-fs.pl:256
28131 msgid ""
28132 "You can change the partition table type, eg. C<--partition=gpt> for large "
28133 "disks."
28134 msgstr ""
28135
28136 # type: textblock
28137 #: ../tools/virt-make-fs.pl:259
28138 msgid ""
28139 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28140 "might consider the next parameter to be the partition type.  For example:"
28141 msgstr ""
28142
28143 # type: verbatim
28144 #: ../tools/virt-make-fs.pl:263
28145 #, no-wrap
28146 msgid ""
28147 " virt-make-fs --partition input.tar ...\n"
28148 "\n"
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-make-fs.pl:265
28153 msgid ""
28154 "would cause virt-make-fs to think you wanted to use a partition type of "
28155 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28156 "dash) between options and the input file argument:"
28157 msgstr ""
28158
28159 # type: verbatim
28160 #: ../tools/virt-make-fs.pl:269
28161 #, no-wrap
28162 msgid ""
28163 " virt-make-fs --partition -- input.tar ...\n"
28164 "\n"
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-make-fs.pl:536
28169 msgid ""
28170 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28171 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28172 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28173 msgstr ""
28174
28175 # type: verbatim
28176 #: ../tools/virt-make-fs.pl:553
28177 #, no-wrap
28178 msgid ""
28179 " export LIBGUESTFS_DEBUG=1\n"
28180 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28181 "\n"
28182 msgstr ""
28183
28184 # type: textblock
28185 #: ../tools/virt-make-fs.pl:556
28186 msgid ""
28187 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28188 "redhat.com/>"
28189 msgstr ""
28190
28191 # type: textblock
28192 #: ../tools/virt-list-partitions.pl:32
28193 msgid ""
28194 "virt-list-partitions - List partitions in a virtual machine or disk image"
28195 msgstr ""
28196
28197 # type: verbatim
28198 #: ../tools/virt-list-partitions.pl:36
28199 #, no-wrap
28200 msgid ""
28201 " virt-list-partitions [--options] domname\n"
28202 "\n"
28203 msgstr ""
28204
28205 # type: verbatim
28206 #: ../tools/virt-list-partitions.pl:38
28207 #, no-wrap
28208 msgid ""
28209 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28210 "\n"
28211 msgstr ""
28212
28213 # type: textblock
28214 #: ../tools/virt-list-partitions.pl:42
28215 msgid ""
28216 "C<virt-list-partitions> is a command line tool to list the partitions that "
28217 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28218 "first step to using L<virt-resize(1)>."
28219 msgstr ""
28220
28221 # type: textblock
28222 #: ../tools/virt-list-partitions.pl:47
28223 msgid ""
28224 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28225 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28226 "> tool."
28227 msgstr ""
28228
28229 # type: =item
28230 #: ../tools/virt-list-partitions.pl:104
28231 msgid "B<-h> | B<--human-readable>"
28232 msgstr ""
28233
28234 # type: textblock
28235 #: ../tools/virt-list-partitions.pl:106
28236 msgid "Show sizes in human-readable form (eg. \"1G\")."
28237 msgstr ""
28238
28239 # type: textblock
28240 #: ../tools/virt-list-partitions.pl:114
28241 msgid ""
28242 "With this option, C<virt-list-partitions> displays the type and size of each "
28243 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28244 msgstr ""
28245
28246 # type: =item
28247 #: ../tools/virt-list-partitions.pl:121
28248 msgid "B<-t> | B<--total>"
28249 msgstr ""
28250
28251 # type: textblock
28252 #: ../tools/virt-list-partitions.pl:123
28253 msgid ""
28254 "Display the total size of each block device (as a separate row or rows)."
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-list-partitions.pl:256
28259 msgid ""
28260 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28261 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28262 "libguestfs.org/>."
28263 msgstr ""