Version 1.7.6.
[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-13 16:19+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-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-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-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-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:955
782 #: ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968
783 #: ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003
784 #: ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033
785 #: ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045
786 #: ../src/guestfs.pod:1519 ../src/guestfs.pod:1524 ../src/guestfs.pod:1528
787 #: ../src/guestfs.pod:1638 ../src/guestfs.pod:1643 ../src/guestfs.pod:1647
788 #: ../src/guestfs.pod:1991 ../src/guestfs.pod:1997 ../src/guestfs.pod:2002
789 #: ../src/guestfs.pod:2008 ../src/guestfs.pod:2115 ../src/guestfs.pod:2119
790 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2127
791 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
792 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
793 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
794 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
795 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
796 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
797 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
798 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
799 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
800 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
801 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
802 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:376
803 #: ../fish/guestfish.pod:380 ../fish/guestfish.pod:384
804 #: ../fish/guestfish.pod:388 ../fish/guestfish-actions.pod:13
805 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
806 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
807 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
808 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
809 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
810 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
811 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
812 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
813 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
814 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
815 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
816 #: ../inspector/virt-inspector.pl:550 ../inspector/virt-inspector.pl:554
817 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
818 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
819 msgid "*"
820 msgstr ""
821
822 # type: textblock
823 #: ../src/guestfs.pod:362
824 msgid ""
825 "The kernel version that the command runs under will be different from what "
826 "it expects."
827 msgstr ""
828
829 # type: textblock
830 #: ../src/guestfs.pod:367
831 msgid ""
832 "If the command needs to communicate with daemons, then most likely they "
833 "won't be running."
834 msgstr ""
835
836 # type: textblock
837 #: ../src/guestfs.pod:372
838 msgid "The command will be running in limited memory."
839 msgstr ""
840
841 # type: textblock
842 #: ../src/guestfs.pod:376
843 msgid ""
844 "The network may not be available unless you enable it (see L</"
845 "guestfs_set_network>)."
846 msgstr ""
847
848 # type: textblock
849 #: ../src/guestfs.pod:381
850 msgid "Only supports Linux guests (not Windows, BSD, etc)."
851 msgstr ""
852
853 # type: textblock
854 #: ../src/guestfs.pod:385
855 msgid ""
856 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
857 msgstr ""
858
859 # type: textblock
860 #: ../src/guestfs.pod:390
861 msgid ""
862 "For SELinux guests, you may need to enable SELinux and load policy first.  "
863 "See L</SELINUX> in this manpage."
864 msgstr ""
865
866 # type: textblock
867 #: ../src/guestfs.pod:395
868 msgid ""
869 "I<Security:> It is not safe to run commands from untrusted, possibly "
870 "malicious guests.  These commands may attempt to exploit your program by "
871 "sending unexpected output.  They could also try to exploit the Linux kernel "
872 "or qemu provided by the libguestfs appliance.  They could use the network "
873 "provided by the libguestfs appliance to bypass ordinary network partitions "
874 "and firewalls.  They could use the elevated privileges or different SELinux "
875 "context of your program to their advantage."
876 msgstr ""
877
878 # type: textblock
879 #: ../src/guestfs.pod:404
880 msgid ""
881 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
882 "(a script which runs when the guest next boots normally), and to have this "
883 "script run the commands you want in the normal context of the running guest, "
884 "network security and so on.  For information about other security issues, "
885 "see L</SECURITY>."
886 msgstr ""
887
888 # type: textblock
889 #: ../src/guestfs.pod:412
890 msgid ""
891 "The two main API calls to run commands are L</guestfs_command> and L</"
892 "guestfs_sh> (there are also variations)."
893 msgstr ""
894
895 # type: textblock
896 #: ../src/guestfs.pod:415
897 msgid ""
898 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
899 "shell globs, redirections, etc will work."
900 msgstr ""
901
902 # type: =head2
903 #: ../src/guestfs.pod:418
904 msgid "CONFIGURATION FILES"
905 msgstr ""
906
907 # type: textblock
908 #: ../src/guestfs.pod:420
909 msgid ""
910 "To read and write configuration files in Linux guest filesystems, we "
911 "strongly recommend using Augeas.  For example, Augeas understands how to "
912 "read and write, say, a Linux shadow password file or X.org configuration "
913 "file, and so avoids you having to write that code."
914 msgstr ""
915
916 # type: textblock
917 #: ../src/guestfs.pod:425
918 msgid ""
919 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
920 "document Augeas itself here because there is excellent documentation on the "
921 "L<http://augeas.net/> website."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:429
926 msgid ""
927 "If you don't want to use Augeas (you fool!) then try calling L</"
928 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
929 "over."
930 msgstr ""
931
932 # type: =head2
933 #: ../src/guestfs.pod:433
934 msgid "SELINUX"
935 msgstr ""
936
937 # type: textblock
938 #: ../src/guestfs.pod:435
939 msgid ""
940 "We support SELinux guests.  To ensure that labeling happens correctly in "
941 "SELinux guests, you need to enable SELinux and load the guest's policy:"
942 msgstr ""
943
944 # type: =item
945 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1140 ../src/guestfs.pod:1271
946 msgid "1."
947 msgstr ""
948
949 # type: textblock
950 #: ../src/guestfs.pod:443
951 msgid "Before launching, do:"
952 msgstr ""
953
954 # type: verbatim
955 #: ../src/guestfs.pod:445
956 #, no-wrap
957 msgid ""
958 " guestfs_set_selinux (g, 1);\n"
959 "\n"
960 msgstr ""
961
962 # type: =item
963 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1144 ../src/guestfs.pod:1275
964 msgid "2."
965 msgstr ""
966
967 # type: textblock
968 #: ../src/guestfs.pod:449
969 msgid ""
970 "After mounting the guest's filesystem(s), load the policy.  This is best "
971 "done by running the L<load_policy(8)> command in the guest itself:"
972 msgstr ""
973
974 # type: verbatim
975 #: ../src/guestfs.pod:453
976 #, no-wrap
977 msgid ""
978 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
979 "\n"
980 msgstr ""
981
982 # type: textblock
983 #: ../src/guestfs.pod:455
984 msgid ""
985 "(Older versions of C<load_policy> require you to specify the name of the "
986 "policy file)."
987 msgstr ""
988
989 # type: =item
990 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1281
991 msgid "3."
992 msgstr ""
993
994 # type: textblock
995 #: ../src/guestfs.pod:460
996 msgid ""
997 "Optionally, set the security context for the API.  The correct security "
998 "context to use can only be known by inspecting the guest.  As an example:"
999 msgstr ""
1000
1001 # type: verbatim
1002 #: ../src/guestfs.pod:464
1003 #, no-wrap
1004 msgid ""
1005 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1006 "\n"
1007 msgstr ""
1008
1009 # type: textblock
1010 #: ../src/guestfs.pod:468
1011 msgid "This will work for running commands and editing existing files."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:470
1016 msgid ""
1017 "When new files are created, you may need to label them explicitly, for "
1018 "example by running the external command C<restorecon pathname>."
1019 msgstr ""
1020
1021 # type: =head2
1022 #: ../src/guestfs.pod:474
1023 msgid "UMASK"
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:476
1028 msgid ""
1029 "Certain calls are affected by the current file mode creation mask (the "
1030 "\"umask\").  In particular ones which create files or directories, such as "
1031 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1032 "either the default mode that the file is created with or modifies the mode "
1033 "that you supply."
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:482
1038 msgid ""
1039 "The default umask is C<022>, so files are created with modes such as C<0644> "
1040 "and directories with C<0755>."
1041 msgstr ""
1042
1043 # type: textblock
1044 #: ../src/guestfs.pod:485
1045 msgid ""
1046 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1047 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1048 "guestfs_chmod> after creating each file or directory."
1049 msgstr ""
1050
1051 # type: textblock
1052 #: ../src/guestfs.pod:489
1053 msgid "For more information about umask, see L<umask(2)>."
1054 msgstr ""
1055
1056 # type: =head1
1057 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:669
1058 msgid "ENCRYPTED DISKS"
1059 msgstr ""
1060
1061 # type: textblock
1062 #: ../src/guestfs.pod:493
1063 msgid ""
1064 "Libguestfs allows you to access Linux guests which have been encrypted using "
1065 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1066 "standard.  This includes nearly all whole disk encryption systems used by "
1067 "modern Linux guests."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:499
1072 msgid ""
1073 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1074 "returns the string C<crypto_LUKS>)."
1075 msgstr ""
1076
1077 # type: textblock
1078 #: ../src/guestfs.pod:502
1079 msgid ""
1080 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1081 "will require the passphrase!"
1082 msgstr ""
1083
1084 # type: textblock
1085 #: ../src/guestfs.pod:505
1086 msgid ""
1087 "Opening a LUKS device creates a new device mapper device called C</dev/"
1088 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1089 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1090 "from and encrypted to the underlying block device respectively."
1091 msgstr ""
1092
1093 # type: textblock
1094 #: ../src/guestfs.pod:511
1095 msgid ""
1096 "LVM volume groups on the device can be made visible by calling L</"
1097 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1098 "(s) can now be mounted in the usual way."
1099 msgstr ""
1100
1101 # type: textblock
1102 #: ../src/guestfs.pod:515
1103 msgid ""
1104 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1105 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1106 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1107 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1108 "underlying encrypted block device)."
1109 msgstr ""
1110
1111 # type: =head2
1112 #: ../src/guestfs.pod:522
1113 msgid "INSPECTION"
1114 msgstr ""
1115
1116 # type: textblock
1117 #: ../src/guestfs.pod:524
1118 msgid ""
1119 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1120 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1121 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1122 "frequently used part of this library has been rewritten in C and moved into "
1123 "the core code)."
1124 msgstr ""
1125
1126 # type: textblock
1127 #: ../src/guestfs.pod:530
1128 msgid ""
1129 "Add all disks belonging to the unknown virtual machine and call L</"
1130 "guestfs_launch> in the usual way."
1131 msgstr ""
1132
1133 # type: textblock
1134 #: ../src/guestfs.pod:533
1135 msgid ""
1136 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1137 "and certain heuristics, and returns a list of operating systems that were "
1138 "found.  An empty list means none were found.  A single element is the root "
1139 "filesystem of the operating system.  For dual- or multi-boot guests, "
1140 "multiple roots can be returned, each one corresponding to a separate "
1141 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1142 "world of virtualization, but since this scenario can happen, we have built "
1143 "libguestfs to deal with it.)"
1144 msgstr ""
1145
1146 # type: textblock
1147 #: ../src/guestfs.pod:542
1148 msgid ""
1149 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1150 "to get additional details about that operating system.  For example, call L</"
1151 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1152 "Windows and Linux-based operating systems respectively."
1153 msgstr ""
1154
1155 # type: textblock
1156 #: ../src/guestfs.pod:548
1157 msgid ""
1158 "Un*x-like and Linux-based operating systems usually consist of several "
1159 "filesystems which are mounted at boot time (for example, a separate boot "
1160 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1161 "filesystems correspond to mount points.  Call "
1162 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1163 "hash table like this example:"
1164 msgstr ""
1165
1166 # type: verbatim
1167 #: ../src/guestfs.pod:555
1168 #, no-wrap
1169 msgid ""
1170 " /boot => /dev/sda1\n"
1171 " /     => /dev/vg_guest/lv_root\n"
1172 " /usr  => /dev/vg_guest/lv_usr\n"
1173 "\n"
1174 msgstr ""
1175
1176 # type: textblock
1177 #: ../src/guestfs.pod:559
1178 msgid ""
1179 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1180 "filesystems as suggested."
1181 msgstr ""
1182
1183 # type: textblock
1184 #: ../src/guestfs.pod:562
1185 msgid ""
1186 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1187 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1188 msgstr ""
1189
1190 # type: textblock
1191 #: ../src/guestfs.pod:566
1192 msgid ""
1193 "Inspection currently only works for some common operating systems.  "
1194 "Contributors are welcome to send patches for other operating systems that we "
1195 "currently cannot detect."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:570
1200 msgid ""
1201 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1202 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1203 "encrypted devices."
1204 msgstr ""
1205
1206 # type: textblock
1207 #: ../src/guestfs.pod:574
1208 msgid ""
1209 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1210 "inspection and caches the results in the guest handle.  Subsequent calls to "
1211 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1212 "read the disks.  If you change the content of the guest disks, you can redo "
1213 "inspection by calling L</guestfs_inspect_os> again."
1214 msgstr ""
1215
1216 # type: =head2
1217 #: ../src/guestfs.pod:581
1218 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1219 msgstr ""
1220
1221 # type: textblock
1222 #: ../src/guestfs.pod:583
1223 msgid ""
1224 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1225 "ntfs-3g.org/> driver."
1226 msgstr ""
1227
1228 # type: textblock
1229 #: ../src/guestfs.pod:586
1230 msgid ""
1231 "DOS and Windows still use drive letters, and the filesystems are always "
1232 "treated as case insensitive by Windows itself, and therefore you might find "
1233 "a Windows configuration file referring to a path like C<c:\\windows"
1234 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1235 "might be referred to as C</WINDOWS/System32>."
1236 msgstr ""
1237
1238 # type: textblock
1239 #: ../src/guestfs.pod:592
1240 msgid ""
1241 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1242 "libguestfs to read the appropriate Windows Registry and configuration files, "
1243 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1244 "inspector(1)>)."
1245 msgstr ""
1246
1247 # type: textblock
1248 #: ../src/guestfs.pod:597
1249 msgid ""
1250 "Replacing backslash characters with forward slash characters is also outside "
1251 "the scope of libguestfs, but something that you can easily do."
1252 msgstr ""
1253
1254 # type: textblock
1255 #: ../src/guestfs.pod:600
1256 msgid ""
1257 "Where we can help is in resolving the case insensitivity of paths.  For "
1258 "this, call L</guestfs_case_sensitive_path>."
1259 msgstr ""
1260
1261 # type: textblock
1262 #: ../src/guestfs.pod:603
1263 msgid ""
1264 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1265 "files, through the library C<hivex> which is part of the libguestfs project "
1266 "although ships as a separate tarball.  You have to locate and download the "
1267 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1268 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1269 "reg(1)> for more help on this issue."
1270 msgstr ""
1271
1272 # type: =head2
1273 #: ../src/guestfs.pod:611
1274 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1275 msgstr ""
1276
1277 # type: textblock
1278 #: ../src/guestfs.pod:613
1279 msgid ""
1280 "Although we don't want to discourage you from using the C API, we will "
1281 "mention here that the same API is also available in other languages."
1282 msgstr ""
1283
1284 # type: textblock
1285 #: ../src/guestfs.pod:616
1286 msgid ""
1287 "The API is broadly identical in all supported languages.  This means that "
1288 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1289 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1290 "words, a straightforward, predictable isomorphism between each language."
1291 msgstr ""
1292
1293 # type: textblock
1294 #: ../src/guestfs.pod:622
1295 msgid ""
1296 "Error messages are automatically transformed into exceptions if the language "
1297 "supports it."
1298 msgstr ""
1299
1300 # type: textblock
1301 #: ../src/guestfs.pod:625
1302 msgid ""
1303 "We don't try to \"object orientify\" parts of the API in OO languages, "
1304 "although contributors are welcome to write higher level APIs above what we "
1305 "provide in their favourite languages if they wish."
1306 msgstr ""
1307
1308 # type: =item
1309 #: ../src/guestfs.pod:631
1310 msgid "B<C++>"
1311 msgstr ""
1312
1313 # type: textblock
1314 #: ../src/guestfs.pod:633
1315 msgid ""
1316 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1317 "identical to the C API.  C++ classes and exceptions are not used."
1318 msgstr ""
1319
1320 # type: =item
1321 #: ../src/guestfs.pod:637
1322 msgid "B<C#>"
1323 msgstr ""
1324
1325 # type: textblock
1326 #: ../src/guestfs.pod:639
1327 msgid ""
1328 "The C# bindings are highly experimental.  Please read the warnings at the "
1329 "top of C<csharp/Libguestfs.cs>."
1330 msgstr ""
1331
1332 # type: =item
1333 #: ../src/guestfs.pod:642
1334 msgid "B<Haskell>"
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:644
1339 msgid ""
1340 "This is the only language binding that is working but incomplete.  Only "
1341 "calls which return simple integers have been bound in Haskell, and we are "
1342 "looking for help to complete this binding."
1343 msgstr ""
1344
1345 # type: =item
1346 #: ../src/guestfs.pod:648
1347 msgid "B<Java>"
1348 msgstr ""
1349
1350 # type: textblock
1351 #: ../src/guestfs.pod:650
1352 msgid ""
1353 "Full documentation is contained in the Javadoc which is distributed with "
1354 "libguestfs."
1355 msgstr ""
1356
1357 # type: =item
1358 #: ../src/guestfs.pod:653
1359 msgid "B<OCaml>"
1360 msgstr ""
1361
1362 # type: textblock
1363 #: ../src/guestfs.pod:655
1364 msgid "For documentation see the file C<guestfs.mli>."
1365 msgstr ""
1366
1367 # type: =item
1368 #: ../src/guestfs.pod:657
1369 msgid "B<Perl>"
1370 msgstr ""
1371
1372 # type: textblock
1373 #: ../src/guestfs.pod:659
1374 msgid "For documentation see L<Sys::Guestfs(3)>."
1375 msgstr ""
1376
1377 # type: =item
1378 #: ../src/guestfs.pod:661
1379 msgid "B<PHP>"
1380 msgstr ""
1381
1382 # type: textblock
1383 #: ../src/guestfs.pod:663
1384 msgid ""
1385 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1386 "the php-libguestfs package for your distribution."
1387 msgstr ""
1388
1389 # type: textblock
1390 #: ../src/guestfs.pod:666
1391 msgid "The PHP binding only works correctly on 64 bit machines."
1392 msgstr ""
1393
1394 # type: =item
1395 #: ../src/guestfs.pod:668
1396 msgid "B<Python>"
1397 msgstr ""
1398
1399 # type: textblock
1400 #: ../src/guestfs.pod:670
1401 msgid "For documentation do:"
1402 msgstr ""
1403
1404 # type: verbatim
1405 #: ../src/guestfs.pod:672
1406 #, no-wrap
1407 msgid ""
1408 " $ python\n"
1409 " >>> import guestfs\n"
1410 " >>> help (guestfs)\n"
1411 "\n"
1412 msgstr ""
1413
1414 # type: =item
1415 #: ../src/guestfs.pod:676
1416 msgid "B<Ruby>"
1417 msgstr ""
1418
1419 # type: textblock
1420 #: ../src/guestfs.pod:678
1421 msgid ""
1422 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1423 "can find examples written in Ruby in the libguestfs source."
1424 msgstr ""
1425
1426 # type: =item
1427 #: ../src/guestfs.pod:681
1428 msgid "B<shell scripts>"
1429 msgstr ""
1430
1431 # type: textblock
1432 #: ../src/guestfs.pod:683
1433 msgid "For documentation see L<guestfish(1)>."
1434 msgstr ""
1435
1436 # type: =head2
1437 #: ../src/guestfs.pod:687
1438 msgid "LIBGUESTFS GOTCHAS"
1439 msgstr ""
1440
1441 # type: textblock
1442 #: ../src/guestfs.pod:689
1443 msgid ""
1444 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1445 "system [...] that works in the way it is documented but is counterintuitive "
1446 "and almost invites mistakes.\""
1447 msgstr ""
1448
1449 # type: textblock
1450 #: ../src/guestfs.pod:693
1451 msgid ""
1452 "Since we developed libguestfs and the associated tools, there are several "
1453 "things we would have designed differently, but are now stuck with for "
1454 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1455 "release, you can expect these to change.  Beware of them."
1456 msgstr ""
1457
1458 # type: =item
1459 #: ../src/guestfs.pod:701
1460 msgid "Autosync / forgetting to sync."
1461 msgstr ""
1462
1463 # type: textblock
1464 #: ../src/guestfs.pod:703
1465 msgid ""
1466 "When modifying a filesystem from C or another language, you B<must> unmount "
1467 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1468 "libguestfs handle.  You can also call:"
1469 msgstr ""
1470
1471 # type: verbatim
1472 #: ../src/guestfs.pod:707
1473 #, no-wrap
1474 msgid ""
1475 " guestfs_set_autosync (g, 1);\n"
1476 "\n"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:709
1481 msgid ""
1482 "to have the unmount/sync done automatically for you when the handle 'g' is "
1483 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1484 msgstr ""
1485
1486 # type: textblock
1487 #: ../src/guestfs.pod:713
1488 msgid ""
1489 "If you forget to do this, then it is entirely possible that your changes "
1490 "won't be written out, or will be partially written, or (very rarely) that "
1491 "you'll get disk corruption."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:717
1496 msgid ""
1497 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1498 "guestfish scripts that forget to sync will work just fine, which can make "
1499 "this very puzzling if you are trying to debug a problem."
1500 msgstr ""
1501
1502 # type: textblock
1503 #: ../src/guestfs.pod:721
1504 msgid ""
1505 "Update: Autosync is enabled by default for all API users starting from "
1506 "libguestfs 1.5.24."
1507 msgstr ""
1508
1509 # type: =item
1510 #: ../src/guestfs.pod:724
1511 msgid "Mount option C<-o sync> should not be the default."
1512 msgstr ""
1513
1514 # type: textblock
1515 #: ../src/guestfs.pod:726
1516 msgid ""
1517 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1518 "However C<-o sync> does not add any reliability benefit, but does have a "
1519 "very large performance impact."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:730
1524 msgid ""
1525 "The work around is to use L</guestfs_mount_options> and set the mount "
1526 "options that you actually want to use."
1527 msgstr ""
1528
1529 # type: =item
1530 #: ../src/guestfs.pod:733
1531 msgid "Read-only should be the default."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:735
1536 msgid ""
1537 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1538 "specify I<--rw> if you want to make changes to the image."
1539 msgstr ""
1540
1541 # type: textblock
1542 #: ../src/guestfs.pod:738
1543 msgid "This would reduce the potential to corrupt live VM images."
1544 msgstr ""
1545
1546 # type: textblock
1547 #: ../src/guestfs.pod:740
1548 msgid ""
1549 "Note that many filesystems change the disk when you just mount and unmount, "
1550 "even if you didn't perform any writes.  You need to use L</"
1551 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1552 msgstr ""
1553
1554 # type: =item
1555 #: ../src/guestfs.pod:744
1556 msgid "guestfish command line is hard to use."
1557 msgstr ""
1558
1559 # type: textblock
1560 #: ../src/guestfs.pod:746
1561 msgid ""
1562 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1563 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1564 "exist, so it fails.  In earlier versions of guestfish the error message was "
1565 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1566 "we should have used C<guestfish -c command> to run commands."
1567 msgstr ""
1568
1569 # type: =item
1570 #: ../src/guestfs.pod:753
1571 msgid "guestfish megabyte modifiers don't work right on all commands"
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:755
1576 msgid ""
1577 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1578 "other modifiers).  What guestfish actually does is to multiply the number "
1579 "part by the modifier part and pass the result to the C API.  However this "
1580 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1581 "expecting some other unit (eg. megabytes)."
1582 msgstr ""
1583
1584 # type: textblock
1585 #: ../src/guestfs.pod:762
1586 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1587 msgstr ""
1588
1589 # type: verbatim
1590 #: ../src/guestfs.pod:764
1591 #, no-wrap
1592 msgid ""
1593 " lvcreate LV VG 100M\n"
1594 "\n"
1595 msgstr ""
1596
1597 # type: textblock
1598 #: ../src/guestfs.pod:766
1599 msgid ""
1600 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1601 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1602 "megabytes * megabytes) logical volume.  The error message you get from this "
1603 "is also a little obscure."
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:771
1608 msgid ""
1609 "This could be fixed in the generator by specially marking parameters and "
1610 "return values which take bytes or other units."
1611 msgstr ""
1612
1613 # type: =item
1614 #: ../src/guestfs.pod:774
1615 msgid "Ambiguity between devices and paths"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:776
1620 msgid ""
1621 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1622 "sdb2>) and a similar pathname.  A file might just happen to be called "
1623 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1624 msgstr ""
1625
1626 # type: textblock
1627 #: ../src/guestfs.pod:781
1628 msgid ""
1629 "In the current API we usually resolve this ambiguity by having two separate "
1630 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1631 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1632 "detecting if the path supplied begins with C</dev/>."
1633 msgstr ""
1634
1635 # type: textblock
1636 #: ../src/guestfs.pod:787
1637 msgid ""
1638 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1639 "make paths/devices into structured names.  One way to do this would be to "
1640 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1641 "aspect of grub.  Another way would be to use a structured type, equivalent "
1642 "to this OCaml type:"
1643 msgstr ""
1644
1645 # type: verbatim
1646 #: ../src/guestfs.pod:793
1647 #, no-wrap
1648 msgid ""
1649 " type path = Path of string | Device of int | Partition of int * int\n"
1650 "\n"
1651 msgstr ""
1652
1653 # type: textblock
1654 #: ../src/guestfs.pod:795
1655 msgid "which would allow you to pass arguments like:"
1656 msgstr ""
1657
1658 # type: verbatim
1659 #: ../src/guestfs.pod:797
1660 #, no-wrap
1661 msgid ""
1662 " Path \"/foo/bar\"\n"
1663 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1664 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1665 " Path \"/dev/sdb2\"    (* not a device *)\n"
1666 "\n"
1667 msgstr ""
1668
1669 # type: textblock
1670 #: ../src/guestfs.pod:802
1671 msgid ""
1672 "As you can see there are still problems to resolve even with this "
1673 "representation.  Also consider how it might work in guestfish."
1674 msgstr ""
1675
1676 # type: =head2
1677 #: ../src/guestfs.pod:807
1678 msgid "PROTOCOL LIMITS"
1679 msgstr ""
1680
1681 # type: textblock
1682 #: ../src/guestfs.pod:809
1683 msgid ""
1684 "Internally libguestfs uses a message-based protocol to pass API calls and "
1685 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1686 "plenty more detail about this).  The maximum message size used by the "
1687 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1688 "aware of this limit.  The API calls which may be affected are individually "
1689 "documented, with a link back to this section of the documentation."
1690 msgstr ""
1691
1692 # type: textblock
1693 #: ../src/guestfs.pod:817
1694 msgid ""
1695 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1696 "a simple string.  Because this string is at some point internally encoded as "
1697 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1698 "the requested file is larger than this then you will get an error."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:823
1703 msgid ""
1704 "In order to transfer large files into and out of the guest filesystem, you "
1705 "need to use particular calls that support this.  The sections L</UPLOADING> "
1706 "and L</DOWNLOADING> document how to do this."
1707 msgstr ""
1708
1709 # type: textblock
1710 #: ../src/guestfs.pod:827
1711 msgid ""
1712 "You might also consider mounting the disk image using our FUSE filesystem "
1713 "support (L<guestmount(1)>)."
1714 msgstr ""
1715
1716 # type: =head2
1717 #: ../src/guestfs.pod:830
1718 msgid "KEYS AND PASSPHRASES"
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:832
1723 msgid ""
1724 "Certain libguestfs calls take a parameter that contains sensitive key "
1725 "material, passed in as a C string."
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:835
1730 msgid ""
1731 "In the future we would hope to change the libguestfs implementation so that "
1732 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1733 "swap.  However this is I<not> done at the moment, because of the complexity "
1734 "of such an implementation."
1735 msgstr ""
1736
1737 # type: textblock
1738 #: ../src/guestfs.pod:840
1739 msgid ""
1740 "Therefore you should be aware that any key parameter you pass to libguestfs "
1741 "might end up being written out to the swap partition.  If this is a concern, "
1742 "scrub the swap partition or don't use libguestfs on encrypted devices."
1743 msgstr ""
1744
1745 # type: =head1
1746 #: ../src/guestfs.pod:845
1747 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:847
1752 msgid ""
1753 "All high-level libguestfs actions are synchronous.  If you want to use "
1754 "libguestfs asynchronously then you must create a thread."
1755 msgstr ""
1756
1757 # type: textblock
1758 #: ../src/guestfs.pod:850
1759 msgid ""
1760 "Only use the handle from a single thread.  Either use the handle exclusively "
1761 "from one thread, or provide your own mutex so that two threads cannot issue "
1762 "calls on the same handle at the same time."
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:854
1767 msgid ""
1768 "See the graphical program guestfs-browser for one possible architecture for "
1769 "multithreaded programs using libvirt and libguestfs."
1770 msgstr ""
1771
1772 # type: =head1
1773 #: ../src/guestfs.pod:857
1774 msgid "PATH"
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:859
1779 msgid ""
1780 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1781 "internal path."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:862
1786 msgid ""
1787 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1788 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1789 msgstr ""
1790
1791 # type: textblock
1792 #: ../src/guestfs.pod:865
1793 msgid ""
1794 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1795 "to change the directories that libguestfs will search in.  The value is a "
1796 "colon-separated list of paths.  The current directory is I<not> searched "
1797 "unless the path contains an empty element or C<.>.  For example "
1798 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1799 "then C</usr/lib/guestfs>."
1800 msgstr ""
1801
1802 # type: =head1
1803 #: ../src/guestfs.pod:872
1804 msgid "QEMU WRAPPERS"
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:874
1809 msgid ""
1810 "If you want to compile your own qemu, run qemu from a non-standard location, "
1811 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1812 "around qemu."
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:878
1817 msgid ""
1818 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1819 "last command in the shell script (so that qemu replaces the shell and "
1820 "becomes the direct child of the libguestfs-using program).  If you don't do "
1821 "this, then the qemu process won't be cleaned up correctly."
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:883
1826 msgid ""
1827 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1828 "source:"
1829 msgstr ""
1830
1831 # type: verbatim
1832 #: ../src/guestfs.pod:886
1833 #, no-wrap
1834 msgid ""
1835 " #!/bin/sh -\n"
1836 " qemudir=/home/rjones/d/qemu\n"
1837 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1838 "\n"
1839 msgstr ""
1840
1841 # type: textblock
1842 #: ../src/guestfs.pod:890
1843 msgid ""
1844 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1845 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1846 "example:"
1847 msgstr ""
1848
1849 # type: verbatim
1850 #: ../src/guestfs.pod:894
1851 #, no-wrap
1852 msgid ""
1853 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1854 "\n"
1855 msgstr ""
1856
1857 # type: textblock
1858 #: ../src/guestfs.pod:896
1859 msgid ""
1860 "Note that libguestfs also calls qemu with the -help and -version options in "
1861 "order to determine features."
1862 msgstr ""
1863
1864 # type: =head2
1865 #: ../src/guestfs.pod:899
1866 msgid "ABI GUARANTEE"
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:901
1871 msgid ""
1872 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1873 "actions as outlined in this section.  Although we will deprecate some "
1874 "actions, for example if they get replaced by newer calls, we will keep the "
1875 "old actions forever.  This allows you the developer to program in confidence "
1876 "against the libguestfs API."
1877 msgstr ""
1878
1879 # type: =head1
1880 #: ../src/guestfs.pod:907
1881 msgid "BLOCK DEVICE NAMING"
1882 msgstr ""
1883
1884 # type: textblock
1885 #: ../src/guestfs.pod:909
1886 msgid ""
1887 "In the kernel there is now quite a profusion of schemata for naming block "
1888 "devices (in this context, by I<block device> I mean a physical or virtual "
1889 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1890 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1891 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1892 "for the old IDE driver (particularly for SATA devices) those devices also "
1893 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1894 "paravirtualized drivers.  This has created several different naming systems, "
1895 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:921
1900 msgid ""
1901 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1902 "Linux kernel to access block devices.  We can run a variety of appliances "
1903 "based on a variety of Linux kernels."
1904 msgstr ""
1905
1906 # type: textblock
1907 #: ../src/guestfs.pod:925
1908 msgid ""
1909 "This causes a problem for libguestfs because many API calls use device or "
1910 "partition names.  Working scripts and the recipe (example) scripts that we "
1911 "make available over the internet could fail if the naming scheme changes."
1912 msgstr ""
1913
1914 # type: textblock
1915 #: ../src/guestfs.pod:930
1916 msgid ""
1917 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1918 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1919 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1920 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1921 msgstr ""
1922
1923 # type: textblock
1924 #: ../src/guestfs.pod:936
1925 msgid ""
1926 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1927 "L</guestfs_list_partitions> and similar calls return the true names of the "
1928 "devices and partitions as known to the appliance."
1929 msgstr ""
1930
1931 # type: =head2
1932 #: ../src/guestfs.pod:941
1933 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1934 msgstr ""
1935
1936 # type: textblock
1937 #: ../src/guestfs.pod:943
1938 msgid ""
1939 "Usually this translation is transparent.  However in some (very rare)  cases "
1940 "you may need to know the exact algorithm.  Such cases include where you use "
1941 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1942 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1943 msgstr ""
1944
1945 # type: textblock
1946 #: ../src/guestfs.pod:949
1947 msgid ""
1948 "The algorithm is applied only to I<parameters> which are known to be either "
1949 "device or partition names.  Return values from functions such as L</"
1950 "guestfs_list_devices> are never changed."
1951 msgstr ""
1952
1953 # type: textblock
1954 #: ../src/guestfs.pod:957
1955 msgid "Is the string a parameter which is a device or partition name?"
1956 msgstr ""
1957
1958 # type: textblock
1959 #: ../src/guestfs.pod:961
1960 msgid "Does the string begin with C</dev/sd>?"
1961 msgstr ""
1962
1963 # type: textblock
1964 #: ../src/guestfs.pod:965
1965 msgid ""
1966 "Does the named device exist? If so, we use that device.  However if I<not> "
1967 "then we continue with this algorithm."
1968 msgstr ""
1969
1970 # type: textblock
1971 #: ../src/guestfs.pod:970
1972 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1973 msgstr ""
1974
1975 # type: textblock
1976 #: ../src/guestfs.pod:972
1977 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1978 msgstr ""
1979
1980 # type: textblock
1981 #: ../src/guestfs.pod:974
1982 msgid "If that named device exists, use it.  If not, continue."
1983 msgstr ""
1984
1985 # type: textblock
1986 #: ../src/guestfs.pod:978
1987 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1988 msgstr ""
1989
1990 # type: textblock
1991 #: ../src/guestfs.pod:980
1992 msgid "If that named device exists, use it.  If not, return an error."
1993 msgstr ""
1994
1995 # type: =head3
1996 #: ../src/guestfs.pod:984
1997 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1998 msgstr ""
1999
2000 # type: textblock
2001 #: ../src/guestfs.pod:986
2002 msgid ""
2003 "Although the standard naming scheme and automatic translation is useful for "
2004 "simple programs and guestfish scripts, for larger programs it is best not to "
2005 "rely on this mechanism."
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:990
2010 msgid ""
2011 "Where possible for maximum future portability programs using libguestfs "
2012 "should use these future-proof techniques:"
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:997
2017 msgid ""
2018 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2019 "device names, and then use those names directly."
2020 msgstr ""
2021
2022 # type: textblock
2023 #: ../src/guestfs.pod:1000
2024 msgid ""
2025 "Since those device names exist by definition, they will never be translated."
2026 msgstr ""
2027
2028 # type: textblock
2029 #: ../src/guestfs.pod:1005
2030 msgid ""
2031 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2032 "filesystem labels."
2033 msgstr ""
2034
2035 # type: =head1
2036 #: ../src/guestfs.pod:1010
2037 msgid "SECURITY"
2038 msgstr ""
2039
2040 # type: textblock
2041 #: ../src/guestfs.pod:1012
2042 msgid ""
2043 "This section discusses security implications of using libguestfs, "
2044 "particularly with untrusted or malicious guests or disk images."
2045 msgstr ""
2046
2047 # type: =head2
2048 #: ../src/guestfs.pod:1015
2049 msgid "GENERAL SECURITY CONSIDERATIONS"
2050 msgstr ""
2051
2052 # type: textblock
2053 #: ../src/guestfs.pod:1017
2054 msgid ""
2055 "Be careful with any files or data that you download from a guest (by "
2056 "\"download\" we mean not just the L</guestfs_download> command but any "
2057 "command that reads files, filenames, directories or anything else from a "
2058 "disk image).  An attacker could manipulate the data to fool your program "
2059 "into doing the wrong thing.  Consider cases such as:"
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1027
2064 msgid "the data (file etc) not being present"
2065 msgstr ""
2066
2067 # type: textblock
2068 #: ../src/guestfs.pod:1031
2069 msgid "being present but empty"
2070 msgstr ""
2071
2072 # type: textblock
2073 #: ../src/guestfs.pod:1035
2074 msgid "being much larger than normal"
2075 msgstr ""
2076
2077 # type: textblock
2078 #: ../src/guestfs.pod:1039
2079 msgid "containing arbitrary 8 bit data"
2080 msgstr ""
2081
2082 # type: textblock
2083 #: ../src/guestfs.pod:1043
2084 msgid "being in an unexpected character encoding"
2085 msgstr ""
2086
2087 # type: textblock
2088 #: ../src/guestfs.pod:1047
2089 msgid "containing homoglyphs."
2090 msgstr ""
2091
2092 # type: =head2
2093 #: ../src/guestfs.pod:1051
2094 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:1053
2099 msgid ""
2100 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2101 "(VFS) module can sometimes be escalated into exploits by deliberately "
2102 "creating a malicious, malformed filesystem.  These exploits are very severe "
2103 "for two reasons.  Firstly there are very many filesystem drivers in the "
2104 "kernel, and many of them are infrequently used and not much developer "
2105 "attention has been paid to the code.  Linux userspace helps potential "
2106 "crackers by detecting the filesystem type and automatically choosing the "
2107 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2108 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2109 "exploit (worse in some ways), giving immediate and total access to the "
2110 "system right down to the hardware level."
2111 msgstr ""
2112
2113 # type: textblock
2114 #: ../src/guestfs.pod:1066
2115 msgid ""
2116 "That explains why you should never mount a filesystem from an untrusted "
2117 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2118 "inside a qemu virtual machine, usually running as a non-root user.  The "
2119 "attacker would need to write a filesystem which first exploited the kernel, "
2120 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2121 "the libguestfs protocol, and finally to be as serious as the host kernel "
2122 "exploit it would need to escalate its privileges to root.  This multi-step "
2123 "escalation, performed by a static piece of data, is thought to be extremely "
2124 "hard to do, although we never say 'never' about security issues."
2125 msgstr ""
2126
2127 # type: textblock
2128 #: ../src/guestfs.pod:1077
2129 msgid ""
2130 "In any case callers can reduce the attack surface by forcing the filesystem "
2131 "type when mounting (use L</guestfs_mount_vfs>)."
2132 msgstr ""
2133
2134 # type: =head2
2135 #: ../src/guestfs.pod:1080
2136 msgid "PROTOCOL SECURITY"
2137 msgstr ""
2138
2139 # type: textblock
2140 #: ../src/guestfs.pod:1082
2141 msgid ""
2142 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2143 "defined upper message size.  However a program that uses libguestfs must "
2144 "also take care - for example you can write a program that downloads a binary "
2145 "from a disk image and executes it locally, and no amount of protocol "
2146 "security will save you from the consequences."
2147 msgstr ""
2148
2149 # type: =head2
2150 #: ../src/guestfs.pod:1088
2151 msgid "INSPECTION SECURITY"
2152 msgstr ""
2153
2154 # type: textblock
2155 #: ../src/guestfs.pod:1090
2156 msgid ""
2157 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2158 "directly from the guest, and these could contain any 8 bit data.  Callers "
2159 "should be careful to escape these before printing them to a structured file "
2160 "(for example, use HTML escaping if creating a web page)."
2161 msgstr ""
2162
2163 # type: textblock
2164 #: ../src/guestfs.pod:1096
2165 msgid ""
2166 "The inspection API parses guest configuration using two external libraries: "
2167 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2168 "designed to be robust in the face of malicious data, although denial of "
2169 "service attacks are still possible, for example with oversized configuration "
2170 "files."
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1102
2175 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1104
2180 msgid ""
2181 "Be very cautious about running commands from the guest.  By running a "
2182 "command in the guest, you are giving CPU time to a binary that you do not "
2183 "control, under the same user account as the library, albeit wrapped in qemu "
2184 "virtualization.  More information and alternatives can be found in the "
2185 "section L</RUNNING COMMANDS>."
2186 msgstr ""
2187
2188 # type: =head2
2189 #: ../src/guestfs.pod:1110
2190 msgid "CVE-2010-3851"
2191 msgstr ""
2192
2193 # type: textblock
2194 #: ../src/guestfs.pod:1112
2195 msgid "https://bugzilla.redhat.com/642934"
2196 msgstr ""
2197
2198 # type: textblock
2199 #: ../src/guestfs.pod:1114
2200 msgid ""
2201 "This security bug concerns the automatic disk format detection that qemu "
2202 "does on disk images."
2203 msgstr ""
2204
2205 # type: textblock
2206 #: ../src/guestfs.pod:1117
2207 msgid ""
2208 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2209 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2210 "for one of the known headers, and if none is found then assuming the disk "
2211 "image must be raw."
2212 msgstr ""
2213
2214 # type: textblock
2215 #: ../src/guestfs.pod:1122
2216 msgid ""
2217 "This allows a guest which has been given a raw disk image to write some "
2218 "other header.  At next boot (or when the disk image is accessed by "
2219 "libguestfs) qemu would do autodetection and think the disk image format was, "
2220 "say, qcow2 based on the header written by the guest."
2221 msgstr ""
2222
2223 # type: textblock
2224 #: ../src/guestfs.pod:1127
2225 msgid ""
2226 "This in itself would not be a problem, but qcow2 offers many features, one "
2227 "of which is to allow a disk image to refer to another image (called the "
2228 "\"backing disk\").  It does this by placing the path to the backing disk "
2229 "into the qcow2 header.  This path is not validated and could point to any "
2230 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2231 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2232 "control of the attacker."
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1135
2237 msgid ""
2238 "In libguestfs this is rather hard to exploit except under two circumstances:"
2239 msgstr ""
2240
2241 # type: textblock
2242 #: ../src/guestfs.pod:1142
2243 msgid "You have enabled the network or have opened the disk in write mode."
2244 msgstr ""
2245
2246 # type: textblock
2247 #: ../src/guestfs.pod:1146
2248 msgid ""
2249 "You are also running untrusted code from the guest (see L</RUNNING "
2250 "COMMANDS>)."
2251 msgstr ""
2252
2253 # type: textblock
2254 #: ../src/guestfs.pod:1151
2255 msgid ""
2256 "The way to avoid this is to specify the expected disk format when adding "
2257 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2258 "should always do this if the disk is raw format, and it's a good idea for "
2259 "other cases too."
2260 msgstr ""
2261
2262 # type: textblock
2263 #: ../src/guestfs.pod:1156
2264 msgid ""
2265 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2266 "format is fetched from libvirt and passed through."
2267 msgstr ""
2268
2269 # type: textblock
2270 #: ../src/guestfs.pod:1159
2271 msgid ""
2272 "For libguestfs tools, use the I<--format> command line parameter as "
2273 "appropriate."
2274 msgstr ""
2275
2276 # type: =head1
2277 #: ../src/guestfs.pod:1162
2278 msgid "CONNECTION MANAGEMENT"
2279 msgstr ""
2280
2281 # type: =head2
2282 #: ../src/guestfs.pod:1164
2283 msgid "guestfs_h *"
2284 msgstr ""
2285
2286 # type: textblock
2287 #: ../src/guestfs.pod:1166
2288 msgid ""
2289 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2290 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2291 "handle and release all resources used."
2292 msgstr ""
2293
2294 # type: textblock
2295 #: ../src/guestfs.pod:1170
2296 msgid ""
2297 "For information on using multiple handles and threads, see the section L</"
2298 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2299 msgstr ""
2300
2301 # type: =head2
2302 #: ../src/guestfs.pod:1173
2303 msgid "guestfs_create"
2304 msgstr ""
2305
2306 # type: verbatim
2307 #: ../src/guestfs.pod:1175
2308 #, no-wrap
2309 msgid ""
2310 " guestfs_h *guestfs_create (void);\n"
2311 "\n"
2312 msgstr ""
2313
2314 # type: textblock
2315 #: ../src/guestfs.pod:1177
2316 msgid "Create a connection handle."
2317 msgstr ""
2318
2319 # type: textblock
2320 #: ../src/guestfs.pod:1179
2321 msgid ""
2322 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2323 "on the handle at least once."
2324 msgstr ""
2325
2326 # type: textblock
2327 #: ../src/guestfs.pod:1182
2328 msgid ""
2329 "This function returns a non-NULL pointer to a handle on success or NULL on "
2330 "error."
2331 msgstr ""
2332
2333 # type: textblock
2334 #: ../src/guestfs.pod:1185
2335 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2336 msgstr ""
2337
2338 # type: textblock
2339 #: ../src/guestfs.pod:1187
2340 msgid ""
2341 "You may also want to configure error handling for the handle.  See L</ERROR "
2342 "HANDLING> section below."
2343 msgstr ""
2344
2345 # type: =head2
2346 #: ../src/guestfs.pod:1190
2347 msgid "guestfs_close"
2348 msgstr ""
2349
2350 # type: verbatim
2351 #: ../src/guestfs.pod:1192
2352 #, no-wrap
2353 msgid ""
2354 " void guestfs_close (guestfs_h *g);\n"
2355 "\n"
2356 msgstr ""
2357
2358 # type: textblock
2359 #: ../src/guestfs.pod:1194
2360 msgid "This closes the connection handle and frees up all resources used."
2361 msgstr ""
2362
2363 # type: =head1
2364 #: ../src/guestfs.pod:1196
2365 msgid "ERROR HANDLING"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1198
2370 msgid ""
2371 "API functions can return errors.  For example, almost all functions that "
2372 "return C<int> will return C<-1> to indicate an error."
2373 msgstr ""
2374
2375 # type: textblock
2376 #: ../src/guestfs.pod:1201
2377 msgid ""
2378 "Additional information is available for errors: an error message string and "
2379 "optionally an error number (errno) if the thing that failed was a system "
2380 "call."
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1205
2385 msgid ""
2386 "You can get at the additional information about the last error on the handle "
2387 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2388 "up an error handler with L</guestfs_set_error_handler>."
2389 msgstr ""
2390
2391 # type: textblock
2392 #: ../src/guestfs.pod:1210
2393 msgid ""
2394 "When the handle is created, a default error handler is installed which "
2395 "prints the error message string to C<stderr>.  For small short-running "
2396 "command line programs it is sufficient to do:"
2397 msgstr ""
2398
2399 # type: verbatim
2400 #: ../src/guestfs.pod:1214
2401 #, no-wrap
2402 msgid ""
2403 " if (guestfs_launch (g) == -1)\n"
2404 "   exit (EXIT_FAILURE);\n"
2405 "\n"
2406 msgstr ""
2407
2408 # type: textblock
2409 #: ../src/guestfs.pod:1217
2410 msgid ""
2411 "since the default error handler will ensure that an error message has been "
2412 "printed to C<stderr> before the program exits."
2413 msgstr ""
2414
2415 # type: textblock
2416 #: ../src/guestfs.pod:1220
2417 msgid ""
2418 "For other programs the caller will almost certainly want to install an "
2419 "alternate error handler or do error handling in-line like this:"
2420 msgstr ""
2421
2422 # type: verbatim
2423 #: ../src/guestfs.pod:1223
2424 #, no-wrap
2425 msgid ""
2426 " g = guestfs_create ();\n"
2427 " \n"
2428 msgstr ""
2429
2430 # type: verbatim
2431 #: ../src/guestfs.pod:1225
2432 #, no-wrap
2433 msgid ""
2434 " /* This disables the default behaviour of printing errors\n"
2435 "    on stderr. */\n"
2436 " guestfs_set_error_handler (g, NULL, NULL);\n"
2437 " \n"
2438 msgstr ""
2439
2440 # type: verbatim
2441 #: ../src/guestfs.pod:1229
2442 #, no-wrap
2443 msgid ""
2444 " if (guestfs_launch (g) == -1) {\n"
2445 "   /* Examine the error message and print it etc. */\n"
2446 "   char *msg = guestfs_last_error (g);\n"
2447 "   int errnum = guestfs_last_errno (g);\n"
2448 "   fprintf (stderr, \"%s\\n\", msg);\n"
2449 "   /* ... */\n"
2450 "  }\n"
2451 "\n"
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1237
2456 msgid ""
2457 "Out of memory errors are handled differently.  The default action is to call "
2458 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2459 "guestfs_set_out_of_memory_handler>."
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1241
2464 msgid ""
2465 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2466 "because there is no handle if this happens there is no way to get additional "
2467 "error information.  However L</guestfs_create> is supposed to be a "
2468 "lightweight operation which can only fail because of insufficient memory (it "
2469 "returns NULL in this case)."
2470 msgstr ""
2471
2472 # type: =head2
2473 #: ../src/guestfs.pod:1247
2474 msgid "guestfs_last_error"
2475 msgstr ""
2476
2477 # type: verbatim
2478 #: ../src/guestfs.pod:1249
2479 #, no-wrap
2480 msgid ""
2481 " const char *guestfs_last_error (guestfs_h *g);\n"
2482 "\n"
2483 msgstr ""
2484
2485 # type: textblock
2486 #: ../src/guestfs.pod:1251
2487 msgid ""
2488 "This returns the last error message that happened on C<g>.  If there has not "
2489 "been an error since the handle was created, then this returns C<NULL>."
2490 msgstr ""
2491
2492 # type: textblock
2493 #: ../src/guestfs.pod:1255
2494 msgid ""
2495 "The lifetime of the returned string is until the next error occurs, or L</"
2496 "guestfs_close> is called."
2497 msgstr ""
2498
2499 # type: =head2
2500 #: ../src/guestfs.pod:1258
2501 msgid "guestfs_last_errno"
2502 msgstr ""
2503
2504 # type: verbatim
2505 #: ../src/guestfs.pod:1260
2506 #, no-wrap
2507 msgid ""
2508 " int guestfs_last_errno (guestfs_h *g);\n"
2509 "\n"
2510 msgstr ""
2511
2512 # type: textblock
2513 #: ../src/guestfs.pod:1262
2514 msgid "This returns the last error number (errno) that happened on C<g>."
2515 msgstr ""
2516
2517 # type: textblock
2518 #: ../src/guestfs.pod:1264
2519 msgid "If successful, an errno integer not equal to zero is returned."
2520 msgstr ""
2521
2522 # type: textblock
2523 #: ../src/guestfs.pod:1266
2524 msgid ""
2525 "If no error, this returns 0.  This call can return 0 in three situations:"
2526 msgstr ""
2527
2528 # type: textblock
2529 #: ../src/guestfs.pod:1273
2530 msgid "There has not been any error on the handle."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1277
2535 msgid ""
2536 "There has been an error but the errno was meaningless.  This corresponds to "
2537 "the case where the error did not come from a failed system call, but for "
2538 "some other reason."
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1283
2543 msgid ""
2544 "There was an error from a failed system call, but for some reason the errno "
2545 "was not captured and returned.  This usually indicates a bug in libguestfs."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1289
2550 msgid ""
2551 "Libguestfs tries to convert the errno from inside the applicance into a "
2552 "corresponding errno for the caller (not entirely trivial: the appliance "
2553 "might be running a completely different operating system from the library "
2554 "and error numbers are not standardized across Un*xen).  If this could not be "
2555 "done, then the error is translated to C<EINVAL>.  In practice this should "
2556 "only happen in very rare circumstances."
2557 msgstr ""
2558
2559 # type: =head2
2560 #: ../src/guestfs.pod:1297
2561 msgid "guestfs_set_error_handler"
2562 msgstr ""
2563
2564 # type: verbatim
2565 #: ../src/guestfs.pod:1299
2566 #, no-wrap
2567 msgid ""
2568 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2569 "                                           void *opaque,\n"
2570 "                                           const char *msg);\n"
2571 " void guestfs_set_error_handler (guestfs_h *g,\n"
2572 "                                 guestfs_error_handler_cb cb,\n"
2573 "                                 void *opaque);\n"
2574 "\n"
2575 msgstr ""
2576
2577 # type: textblock
2578 #: ../src/guestfs.pod:1306
2579 msgid ""
2580 "The callback C<cb> will be called if there is an error.  The parameters "
2581 "passed to the callback are an opaque data pointer and the error message "
2582 "string."
2583 msgstr ""
2584
2585 # type: textblock
2586 #: ../src/guestfs.pod:1310
2587 msgid ""
2588 "C<errno> is not passed to the callback.  To get that the callback must call "
2589 "L</guestfs_last_errno>."
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1313
2594 msgid ""
2595 "Note that the message string C<msg> is freed as soon as the callback "
2596 "function returns, so if you want to stash it somewhere you must make your "
2597 "own copy."
2598 msgstr ""
2599
2600 # type: textblock
2601 #: ../src/guestfs.pod:1317
2602 msgid "The default handler prints messages on C<stderr>."
2603 msgstr ""
2604
2605 # type: textblock
2606 #: ../src/guestfs.pod:1319
2607 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2608 msgstr ""
2609
2610 # type: =head2
2611 #: ../src/guestfs.pod:1321
2612 msgid "guestfs_get_error_handler"
2613 msgstr ""
2614
2615 # type: verbatim
2616 #: ../src/guestfs.pod:1323
2617 #, no-wrap
2618 msgid ""
2619 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2620 "                                                     void **opaque_rtn);\n"
2621 "\n"
2622 msgstr ""
2623
2624 # type: textblock
2625 #: ../src/guestfs.pod:1326
2626 msgid "Returns the current error handler callback."
2627 msgstr ""
2628
2629 # type: =head2
2630 #: ../src/guestfs.pod:1328
2631 msgid "guestfs_set_out_of_memory_handler"
2632 msgstr ""
2633
2634 # type: verbatim
2635 #: ../src/guestfs.pod:1330
2636 #, no-wrap
2637 msgid ""
2638 " typedef void (*guestfs_abort_cb) (void);\n"
2639 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2640 "                                        guestfs_abort_cb);\n"
2641 "\n"
2642 msgstr ""
2643
2644 # type: textblock
2645 #: ../src/guestfs.pod:1334
2646 msgid ""
2647 "The callback C<cb> will be called if there is an out of memory situation.  "
2648 "I<Note this callback must not return>."
2649 msgstr ""
2650
2651 # type: textblock
2652 #: ../src/guestfs.pod:1337
2653 msgid "The default is to call L<abort(3)>."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1339
2658 msgid ""
2659 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2660 msgstr ""
2661
2662 # type: =head2
2663 #: ../src/guestfs.pod:1342
2664 msgid "guestfs_get_out_of_memory_handler"
2665 msgstr ""
2666
2667 # type: verbatim
2668 #: ../src/guestfs.pod:1344
2669 #, no-wrap
2670 msgid ""
2671 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2672 "\n"
2673 msgstr ""
2674
2675 # type: textblock
2676 #: ../src/guestfs.pod:1346
2677 msgid "This returns the current out of memory handler."
2678 msgstr ""
2679
2680 # type: =head1
2681 #: ../src/guestfs.pod:1348
2682 msgid "API CALLS"
2683 msgstr ""
2684
2685 # type: textblock
2686 #: ../src/guestfs.pod:1350 ../fish/guestfish.pod:907
2687 msgid "@ACTIONS@"
2688 msgstr ""
2689
2690 # type: =head1
2691 #: ../src/guestfs.pod:1352
2692 msgid "STRUCTURES"
2693 msgstr ""
2694
2695 # type: textblock
2696 #: ../src/guestfs.pod:1354
2697 msgid "@STRUCTS@"
2698 msgstr ""
2699
2700 # type: =head1
2701 #: ../src/guestfs.pod:1356
2702 msgid "AVAILABILITY"
2703 msgstr ""
2704
2705 # type: =head2
2706 #: ../src/guestfs.pod:1358
2707 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2708 msgstr ""
2709
2710 # type: textblock
2711 #: ../src/guestfs.pod:1360
2712 msgid ""
2713 "Using L</guestfs_available> you can test availability of the following "
2714 "groups of functions.  This test queries the appliance to see if the "
2715 "appliance you are currently using supports the functionality."
2716 msgstr ""
2717
2718 # type: textblock
2719 #: ../src/guestfs.pod:1365
2720 msgid "@AVAILABILITY@"
2721 msgstr ""
2722
2723 # type: =head2
2724 #: ../src/guestfs.pod:1367
2725 msgid "GUESTFISH supported COMMAND"
2726 msgstr ""
2727
2728 # type: textblock
2729 #: ../src/guestfs.pod:1369
2730 msgid ""
2731 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2732 "prints out the available groups and whether they are supported by this build "
2733 "of libguestfs.  Note however that you have to do C<run> first."
2734 msgstr ""
2735
2736 # type: =head2
2737 #: ../src/guestfs.pod:1374
2738 msgid "SINGLE CALLS AT COMPILE TIME"
2739 msgstr ""
2740
2741 # type: textblock
2742 #: ../src/guestfs.pod:1376
2743 msgid ""
2744 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2745 "function, such as:"
2746 msgstr ""
2747
2748 # type: verbatim
2749 #: ../src/guestfs.pod:1379
2750 #, no-wrap
2751 msgid ""
2752 " #define LIBGUESTFS_HAVE_DD 1\n"
2753 "\n"
2754 msgstr ""
2755
2756 # type: textblock
2757 #: ../src/guestfs.pod:1381
2758 msgid "if L</guestfs_dd> is available."
2759 msgstr ""
2760
2761 # type: textblock
2762 #: ../src/guestfs.pod:1383
2763 msgid ""
2764 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2765 "function is available at compile time, we recommended using build tools such "
2766 "as autoconf or cmake.  For example in autotools you could use:"
2767 msgstr ""
2768
2769 # type: verbatim
2770 #: ../src/guestfs.pod:1388
2771 #, no-wrap
2772 msgid ""
2773 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2774 " AC_CHECK_FUNCS([guestfs_dd])\n"
2775 "\n"
2776 msgstr ""
2777
2778 # type: textblock
2779 #: ../src/guestfs.pod:1391
2780 msgid ""
2781 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2782 "in your program."
2783 msgstr ""
2784
2785 # type: =head2
2786 #: ../src/guestfs.pod:1394
2787 msgid "SINGLE CALLS AT RUN TIME"
2788 msgstr ""
2789
2790 # type: textblock
2791 #: ../src/guestfs.pod:1396
2792 msgid ""
2793 "Testing at compile time doesn't guarantee that a function really exists in "
2794 "the library.  The reason is that you might be dynamically linked against a "
2795 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2796 "This situation unfortunately results in a segmentation fault, which is a "
2797 "shortcoming of the C dynamic linking system itself."
2798 msgstr ""
2799
2800 # type: textblock
2801 #: ../src/guestfs.pod:1403
2802 msgid ""
2803 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2804 "in this example program (note that you still need the compile time check as "
2805 "well):"
2806 msgstr ""
2807
2808 # type: verbatim
2809 #: ../src/guestfs.pod:1407
2810 #, no-wrap
2811 msgid ""
2812 " #include <stdio.h>\n"
2813 " #include <stdlib.h>\n"
2814 " #include <unistd.h>\n"
2815 " #include <dlfcn.h>\n"
2816 " #include <guestfs.h>\n"
2817 " \n"
2818 msgstr ""
2819
2820 # type: verbatim
2821 #: ../src/guestfs.pod:1413
2822 #, no-wrap
2823 msgid ""
2824 " main ()\n"
2825 " {\n"
2826 " #ifdef LIBGUESTFS_HAVE_DD\n"
2827 "   void *dl;\n"
2828 "   int has_function;\n"
2829 " \n"
2830 msgstr ""
2831
2832 # type: verbatim
2833 #: ../src/guestfs.pod:1419
2834 #, no-wrap
2835 msgid ""
2836 "   /* Test if the function guestfs_dd is really available. */\n"
2837 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2838 "   if (!dl) {\n"
2839 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2840 "     exit (EXIT_FAILURE);\n"
2841 "   }\n"
2842 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2843 "   dlclose (dl);\n"
2844 " \n"
2845 msgstr ""
2846
2847 # type: verbatim
2848 #: ../src/guestfs.pod:1428
2849 #, no-wrap
2850 msgid ""
2851 "   if (!has_function)\n"
2852 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2853 "   else {\n"
2854 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2855 "     /* Now it's safe to call\n"
2856 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2857 "     */\n"
2858 "   }\n"
2859 " #else\n"
2860 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2861 " #endif\n"
2862 "  }\n"
2863 "\n"
2864 msgstr ""
2865
2866 # type: textblock
2867 #: ../src/guestfs.pod:1441
2868 msgid ""
2869 "You may think the above is an awful lot of hassle, and it is.  There are "
2870 "other ways outside of the C linking system to ensure that this kind of "
2871 "incompatibility never arises, such as using package versioning:"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1446
2876 #, no-wrap
2877 msgid ""
2878 " Requires: libguestfs >= 1.0.80\n"
2879 "\n"
2880 msgstr ""
2881
2882 # type: =head1
2883 #: ../src/guestfs.pod:1448
2884 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1450
2889 msgid ""
2890 "A recent feature of the API is the introduction of calls which take optional "
2891 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2892 "takes variable arguments (ie. C<...>), as in this example:"
2893 msgstr ""
2894
2895 # type: verbatim
2896 #: ../src/guestfs.pod:1455
2897 #, no-wrap
2898 msgid ""
2899 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2900 "\n"
2901 msgstr ""
2902
2903 # type: textblock
2904 #: ../src/guestfs.pod:1457
2905 msgid ""
2906 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2907 "call with no optional arguments specified:"
2908 msgstr ""
2909
2910 # type: verbatim
2911 #: ../src/guestfs.pod:1460
2912 #, no-wrap
2913 msgid ""
2914 " guestfs_add_drive_opts (g, filename, -1);\n"
2915 "\n"
2916 msgstr ""
2917
2918 # type: textblock
2919 #: ../src/guestfs.pod:1462
2920 msgid "With a single optional argument:"
2921 msgstr ""
2922
2923 # type: verbatim
2924 #: ../src/guestfs.pod:1464
2925 #, no-wrap
2926 msgid ""
2927 " guestfs_add_drive_opts (g, filename,\n"
2928 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2929 "                         -1);\n"
2930 "\n"
2931 msgstr ""
2932
2933 # type: textblock
2934 #: ../src/guestfs.pod:1468
2935 msgid "With two:"
2936 msgstr ""
2937
2938 # type: verbatim
2939 #: ../src/guestfs.pod:1470
2940 #, no-wrap
2941 msgid ""
2942 " guestfs_add_drive_opts (g, filename,\n"
2943 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2944 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2945 "                         -1);\n"
2946 "\n"
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1475
2951 msgid ""
2952 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2953 "happen!"
2954 msgstr ""
2955
2956 # type: =head2
2957 #: ../src/guestfs.pod:1478
2958 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1480
2963 msgid ""
2964 "The second variant has the same name with the suffix C<_va>, which works the "
2965 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2966 "example function, this is declared:"
2967 msgstr ""
2968
2969 # type: verbatim
2970 #: ../src/guestfs.pod:1484
2971 #, no-wrap
2972 msgid ""
2973 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2974 "                                va_list args);\n"
2975 "\n"
2976 msgstr ""
2977
2978 # type: =head2
2979 #: ../src/guestfs.pod:1487
2980 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2981 msgstr ""
2982
2983 # type: textblock
2984 #: ../src/guestfs.pod:1489
2985 msgid ""
2986 "The third variant is useful where you need to construct these calls.  You "
2987 "pass in a structure where you fill in the optional fields.  The structure "
2988 "has a bitmask as the first element which you must set to indicate which "
2989 "fields you have filled in.  For our example function the structure and call "
2990 "are declared:"
2991 msgstr ""
2992
2993 # type: verbatim
2994 #: ../src/guestfs.pod:1495
2995 #, no-wrap
2996 msgid ""
2997 " struct guestfs_add_drive_opts_argv {\n"
2998 "   uint64_t bitmask;\n"
2999 "   int readonly;\n"
3000 "   const char *format;\n"
3001 "   /* ... */\n"
3002 " };\n"
3003 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3004 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3005 "\n"
3006 msgstr ""
3007
3008 # type: textblock
3009 #: ../src/guestfs.pod:1504
3010 msgid "You could call it like this:"
3011 msgstr ""
3012
3013 # type: verbatim
3014 #: ../src/guestfs.pod:1506
3015 #, no-wrap
3016 msgid ""
3017 " struct guestfs_add_drive_opts_argv optargs = {\n"
3018 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3019 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3020 "   .readonly = 1,\n"
3021 "   .format = \"qcow2\"\n"
3022 " };\n"
3023 " \n"
3024 msgstr ""
3025
3026 # type: verbatim
3027 #: ../src/guestfs.pod:1513
3028 #, no-wrap
3029 msgid ""
3030 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3031 "\n"
3032 msgstr ""
3033
3034 # type: textblock
3035 #: ../src/guestfs.pod:1515 ../src/guestfs-actions.pod:11
3036 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3037 #: ../fish/guestfish-actions.pod:1255
3038 msgid "Notes:"
3039 msgstr ""
3040
3041 # type: textblock
3042 #: ../src/guestfs.pod:1521
3043 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3044 msgstr ""
3045
3046 # type: textblock
3047 #: ../src/guestfs.pod:1526
3048 msgid "You do not need to fill in all fields of the structure."
3049 msgstr ""
3050
3051 # type: textblock
3052 #: ../src/guestfs.pod:1530
3053 msgid ""
3054 "There must be a one-to-one correspondence between fields of the structure "
3055 "that are filled in, and bits set in the bitmask."
3056 msgstr ""
3057
3058 # type: =head2
3059 #: ../src/guestfs.pod:1535
3060 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3061 msgstr ""
3062
3063 # type: textblock
3064 #: ../src/guestfs.pod:1537
3065 msgid ""
3066 "In other languages, optional arguments are expressed in the way that is "
3067 "natural for that language.  We refer you to the language-specific "
3068 "documentation for more details on that."
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1541
3073 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3074 msgstr ""
3075
3076 # type: =head2
3077 #: ../src/guestfs.pod:1543
3078 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3079 msgstr ""
3080
3081 # type: textblock
3082 #: ../src/guestfs.pod:1545
3083 msgid ""
3084 "The child process generates events in some situations.  Current events "
3085 "include: receiving a log message, the child process exits."
3086 msgstr ""
3087
3088 # type: textblock
3089 #: ../src/guestfs.pod:1548
3090 msgid ""
3091 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3092 "types of events."
3093 msgstr ""
3094
3095 # type: textblock
3096 #: ../src/guestfs.pod:1551
3097 msgid ""
3098 "Only I<one callback of each type> can be registered for each handle.  "
3099 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3100 "that type.  Cancel all callbacks of this type by calling this function with "
3101 "C<cb> set to C<NULL>."
3102 msgstr ""
3103
3104 # type: =head2
3105 #: ../src/guestfs.pod:1556
3106 msgid "guestfs_set_log_message_callback"
3107 msgstr ""
3108
3109 # type: verbatim
3110 #: ../src/guestfs.pod:1558
3111 #, no-wrap
3112 msgid ""
3113 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3114 "                                         char *buf, int len);\n"
3115 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3116 "                                        guestfs_log_message_cb cb,\n"
3117 "                                        void *opaque);\n"
3118 "\n"
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1564
3123 msgid ""
3124 "The callback function C<cb> will be called whenever qemu or the guest writes "
3125 "anything to the console."
3126 msgstr ""
3127
3128 # type: textblock
3129 #: ../src/guestfs.pod:1567
3130 msgid "Use this function to capture kernel messages and similar."
3131 msgstr ""
3132
3133 # type: textblock
3134 #: ../src/guestfs.pod:1569
3135 msgid ""
3136 "Normally there is no log message handler, and log messages are just "
3137 "discarded."
3138 msgstr ""
3139
3140 # type: =head2
3141 #: ../src/guestfs.pod:1572
3142 msgid "guestfs_set_subprocess_quit_callback"
3143 msgstr ""
3144
3145 # type: verbatim
3146 #: ../src/guestfs.pod:1574
3147 #, no-wrap
3148 msgid ""
3149 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3150 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3151 "                                            guestfs_subprocess_quit_cb cb,\n"
3152 "                                            void *opaque);\n"
3153 "\n"
3154 msgstr ""
3155
3156 # type: textblock
3157 #: ../src/guestfs.pod:1579
3158 msgid ""
3159 "The callback function C<cb> will be called when the child process quits, "
3160 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3161 "corresponds to a transition from any state to the CONFIG state)."
3162 msgstr ""
3163
3164 # type: =head2
3165 #: ../src/guestfs.pod:1584
3166 msgid "guestfs_set_launch_done_callback"
3167 msgstr ""
3168
3169 # type: verbatim
3170 #: ../src/guestfs.pod:1586
3171 #, no-wrap
3172 msgid ""
3173 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3174 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3175 "                                        guestfs_launch_done_cb cb,\n"
3176 "                                        void *opaque);\n"
3177 "\n"
3178 msgstr ""
3179
3180 # type: textblock
3181 #: ../src/guestfs.pod:1591
3182 msgid ""
3183 "The callback function C<cb> will be called when the child process becomes "
3184 "ready first time after it has been launched.  (This corresponds to a "
3185 "transition from LAUNCHING to the READY state)."
3186 msgstr ""
3187
3188 # type: =head2
3189 #: ../src/guestfs.pod:1595
3190 msgid "guestfs_set_close_callback"
3191 msgstr ""
3192
3193 # type: verbatim
3194 #: ../src/guestfs.pod:1597
3195 #, no-wrap
3196 msgid ""
3197 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3198 " void guestfs_set_close_callback (guestfs_h *g,\n"
3199 "                                  guestfs_close_cb cb,\n"
3200 "                                  void *opaque);\n"
3201 "\n"
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1602
3206 msgid ""
3207 "The callback function C<cb> will be called while the handle is being closed "
3208 "(synchronously from L</guestfs_close>)."
3209 msgstr ""
3210
3211 # type: textblock
3212 #: ../src/guestfs.pod:1605
3213 msgid ""
3214 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3215 "handles that are open when the program exits.  This means that this callback "
3216 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3217 "problems in higher-level languages (eg. if your HLL interpreter has already "
3218 "been cleaned up by the time this is called, and if your callback then jumps "
3219 "into some HLL function)."
3220 msgstr ""
3221
3222 # type: =head2
3223 #: ../src/guestfs.pod:1613
3224 msgid "guestfs_set_progress_callback"
3225 msgstr ""
3226
3227 # type: verbatim
3228 #: ../src/guestfs.pod:1615
3229 #, no-wrap
3230 msgid ""
3231 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3232 "                                      int proc_nr, int serial,\n"
3233 "                                      uint64_t position, uint64_t total);\n"
3234 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3235 "                                     guestfs_progress_cb cb,\n"
3236 "                                     void *opaque);\n"
3237 "\n"
3238 msgstr ""
3239
3240 # type: textblock
3241 #: ../src/guestfs.pod:1622
3242 msgid ""
3243 "Some long-running operations can generate progress messages.  If this "
3244 "callback is registered, then it will be called each time a progress message "
3245 "is generated (usually two seconds after the operation started, and three "
3246 "times per second thereafter until it completes, although the frequency may "
3247 "change in future versions)."
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1628
3252 msgid ""
3253 "The callback receives two numbers: C<position> and C<total>.  The units of "
3254 "C<total> are not defined, although for some operations C<total> may relate "
3255 "in some way to the amount of data to be transferred (eg. in bytes or "
3256 "megabytes), and C<position> may be the portion which has been transferred."
3257 msgstr ""
3258
3259 # type: textblock
3260 #: ../src/guestfs.pod:1634
3261 msgid "The only defined and stable parts of the API are:"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1640
3266 msgid ""
3267 "The callback can display to the user some type of progress bar or indicator "
3268 "which shows the ratio of C<position>:C<total>."
3269 msgstr ""
3270
3271 # type: textblock
3272 #: ../src/guestfs.pod:1645
3273 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3274 msgstr ""
3275
3276 # type: textblock
3277 #: ../src/guestfs.pod:1649
3278 msgid ""
3279 "If any progress notification is sent during a call, then a final progress "
3280 "notification is always sent when C<position> = C<total>."
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1652
3285 msgid ""
3286 "This is to simplify caller code, so callers can easily set the progress "
3287 "indicator to \"100%\" at the end of the operation, without requiring special "
3288 "code to detect this case."
3289 msgstr ""
3290
3291 # type: textblock
3292 #: ../src/guestfs.pod:1658
3293 msgid ""
3294 "The callback also receives the procedure number and serial number of the "
3295 "call.  These are only useful for debugging protocol issues, and the callback "
3296 "can normally ignore them.  The callback may want to print these numbers in "
3297 "error messages or debugging messages."
3298 msgstr ""
3299
3300 # type: =head1
3301 #: ../src/guestfs.pod:1663
3302 msgid "PRIVATE DATA AREA"
3303 msgstr ""
3304
3305 # type: textblock
3306 #: ../src/guestfs.pod:1665
3307 msgid ""
3308 "You can attach named pieces of private data to the libguestfs handle, and "
3309 "fetch them by name for the lifetime of the handle.  This is called the "
3310 "private data area and is only available from the C API."
3311 msgstr ""
3312
3313 # type: textblock
3314 #: ../src/guestfs.pod:1669
3315 msgid "To attach a named piece of data, use the following call:"
3316 msgstr ""
3317
3318 # type: verbatim
3319 #: ../src/guestfs.pod:1671
3320 #, no-wrap
3321 msgid ""
3322 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3323 "\n"
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1673
3328 msgid ""
3329 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3330 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3331 "overwritten."
3332 msgstr ""
3333
3334 # type: textblock
3335 #: ../src/guestfs.pod:1677
3336 msgid ""
3337 "You can use any C<key> you want, but names beginning with an underscore "
3338 "character are reserved for internal libguestfs purposes (for implementing "
3339 "language bindings).  It is recommended to prefix the name with some unique "
3340 "string to avoid collisions with other users."
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1682
3345 msgid "To retrieve the pointer, use:"
3346 msgstr ""
3347
3348 # type: verbatim
3349 #: ../src/guestfs.pod:1684
3350 #, no-wrap
3351 msgid ""
3352 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3353 "\n"
3354 msgstr ""
3355
3356 # type: textblock
3357 #: ../src/guestfs.pod:1686
3358 msgid ""
3359 "This function returns C<NULL> if either no data is found associated with "
3360 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3361 "C<NULL>."
3362 msgstr ""
3363
3364 # type: textblock
3365 #: ../src/guestfs.pod:1690
3366 msgid ""
3367 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3368 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3369 "all.  In particular, libguestfs does I<not> try to free the data when the "
3370 "handle is closed.  If the data must be freed, then the caller must either "
3371 "free it before calling L</guestfs_close> or must set up a close callback to "
3372 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3373 "can be registered for a handle)."
3374 msgstr ""
3375
3376 # type: textblock
3377 #: ../src/guestfs.pod:1698
3378 msgid ""
3379 "The private data area is implemented using a hash table, and should be "
3380 "reasonably efficient for moderate numbers of keys."
3381 msgstr ""
3382
3383 # type: =end
3384 #: ../src/guestfs.pod:1701 ../src/guestfs.pod:1706
3385 msgid "html"
3386 msgstr ""
3387
3388 # type: textblock
3389 #: ../src/guestfs.pod:1703
3390 msgid ""
3391 "<!-- old anchor for the next section --> <a name="
3392 "\"state_machine_and_low_level_event_api\"/>"
3393 msgstr ""
3394
3395 # type: =head1
3396 #: ../src/guestfs.pod:1708
3397 msgid "ARCHITECTURE"
3398 msgstr ""
3399
3400 # type: textblock
3401 #: ../src/guestfs.pod:1710
3402 msgid ""
3403 "Internally, libguestfs is implemented by running an appliance (a special "
3404 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3405 "process of the main program."
3406 msgstr ""
3407
3408 # type: verbatim
3409 #: ../src/guestfs.pod:1714
3410 #, no-wrap
3411 msgid ""
3412 "  ___________________\n"
3413 " /                   \\\n"
3414 " | main program      |\n"
3415 " |                   |\n"
3416 " |                   |           child process / appliance\n"
3417 " |                   |           __________________________\n"
3418 " |                   |          / qemu                     \\\n"
3419 " +-------------------+   RPC    |      +-----------------+ |\n"
3420 " | libguestfs     <--------------------> guestfsd        | |\n"
3421 " |                   |          |      +-----------------+ |\n"
3422 " \\___________________/          |      | Linux kernel    | |\n"
3423 "                                |      +--^--------------+ |\n"
3424 "                                \\_________|________________/\n"
3425 "                                          |\n"
3426 "                                   _______v______\n"
3427 "                                  /              \\\n"
3428 "                                  | Device or    |\n"
3429 "                                  | disk image   |\n"
3430 "                                  \\______________/\n"
3431 "\n"
3432 msgstr ""
3433
3434 # type: textblock
3435 #: ../src/guestfs.pod:1734
3436 msgid ""
3437 "The library, linked to the main program, creates the child process and hence "
3438 "the appliance in the L</guestfs_launch> function."
3439 msgstr ""
3440
3441 # type: textblock
3442 #: ../src/guestfs.pod:1737
3443 msgid ""
3444 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3445 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3446 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3447 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3448 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3449 "attached to the qemu process which translates device access by the "
3450 "appliance's Linux kernel into accesses to the image."
3451 msgstr ""
3452
3453 # type: textblock
3454 #: ../src/guestfs.pod:1746
3455 msgid ""
3456 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3457 "Although the disk image you are attached to might also be used by some "
3458 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3459 "care if both libguestfs's qemu process and your virtual machine are trying "
3460 "to update the disk image at the same time, since these usually results in "
3461 "massive disk corruption)."
3462 msgstr ""
3463
3464 # type: =head1
3465 #: ../src/guestfs.pod:1753
3466 msgid "STATE MACHINE"
3467 msgstr ""
3468
3469 # type: textblock
3470 #: ../src/guestfs.pod:1755
3471 msgid "libguestfs uses a state machine to model the child process:"
3472 msgstr ""
3473
3474 # type: verbatim
3475 #: ../src/guestfs.pod:1757
3476 #, no-wrap
3477 msgid ""
3478 "                         |\n"
3479 "                    guestfs_create\n"
3480 "                         |\n"
3481 "                         |\n"
3482 "                     ____V_____\n"
3483 "                    /          \\\n"
3484 "                    |  CONFIG  |\n"
3485 "                    \\__________/\n"
3486 "                     ^ ^   ^  \\\n"
3487 "                    /  |    \\  \\ guestfs_launch\n"
3488 "                   /   |    _\\__V______\n"
3489 "                  /    |   /           \\\n"
3490 "                 /     |   | LAUNCHING |\n"
3491 "                /      |   \\___________/\n"
3492 "               /       |       /\n"
3493 "              /        |  guestfs_launch\n"
3494 "             /         |     /\n"
3495 "    ______  /        __|____V\n"
3496 "   /      \\ ------> /        \\\n"
3497 "   | BUSY |         | READY  |\n"
3498 "   \\______/ <------ \\________/\n"
3499 "\n"
3500 msgstr ""
3501
3502 # type: textblock
3503 #: ../src/guestfs.pod:1779
3504 msgid ""
3505 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3506 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3507 "(3) alternating between READY and BUSY as commands are issued to, and "
3508 "carried out by, the child process."
3509 msgstr ""
3510
3511 # type: textblock
3512 #: ../src/guestfs.pod:1784
3513 msgid ""
3514 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3515 "asynchronously at any time (eg. due to some internal error), and that causes "
3516 "the state to transition back to CONFIG."
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs.pod:1788
3521 msgid ""
3522 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3523 "issued when in the CONFIG state."
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1791
3528 msgid ""
3529 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3530 "L</guestfs_launch> blocks until the child process is READY to accept "
3531 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3532 "moves the state from CONFIG to LAUNCHING while it is running."
3533 msgstr ""
3534
3535 # type: textblock
3536 #: ../src/guestfs.pod:1797
3537 msgid ""
3538 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3539 "state.  These API calls block waiting for the command to be carried out (ie. "
3540 "the state to transition to BUSY and then back to READY).  There are no non-"
3541 "blocking versions, and no way to issue more than one command per handle at "
3542 "the same time."
3543 msgstr ""
3544
3545 # type: textblock
3546 #: ../src/guestfs.pod:1803
3547 msgid ""
3548 "Finally, the child process sends asynchronous messages back to the main "
3549 "program, such as kernel log messages.  You can register a callback to "
3550 "receive these messages."
3551 msgstr ""
3552
3553 # type: =head1
3554 #: ../src/guestfs.pod:1807
3555 msgid "INTERNALS"
3556 msgstr ""
3557
3558 # type: =head2
3559 #: ../src/guestfs.pod:1809
3560 msgid "COMMUNICATION PROTOCOL"
3561 msgstr ""
3562
3563 # type: textblock
3564 #: ../src/guestfs.pod:1811
3565 msgid ""
3566 "Don't rely on using this protocol directly.  This section documents how it "
3567 "currently works, but it may change at any time."
3568 msgstr ""
3569
3570 # type: textblock
3571 #: ../src/guestfs.pod:1814
3572 msgid ""
3573 "The protocol used to talk between the library and the daemon running inside "
3574 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3575 "1014, RFC 1832, RFC 4506)."
3576 msgstr ""
3577
3578 # type: textblock
3579 #: ../src/guestfs.pod:1818
3580 msgid ""
3581 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3582 "this file is automatically generated)."
3583 msgstr ""
3584
3585 # type: textblock
3586 #: ../src/guestfs.pod:1821
3587 msgid ""
3588 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3589 "and C<FileOut> parameters, which are handled with very simple request/reply "
3590 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3591 "parameters, which use the same request and reply messages, but they may also "
3592 "be followed by files sent using a chunked encoding."
3593 msgstr ""
3594
3595 # type: =head3
3596 #: ../src/guestfs.pod:1828
3597 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1830
3602 msgid "For ordinary functions, the request message is:"
3603 msgstr ""
3604
3605 # type: verbatim
3606 #: ../src/guestfs.pod:1832
3607 #, no-wrap
3608 msgid ""
3609 " total length (header + arguments,\n"
3610 "      but not including the length word itself)\n"
3611 " struct guestfs_message_header (encoded as XDR)\n"
3612 " struct guestfs_<foo>_args (encoded as XDR)\n"
3613 "\n"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1837
3618 msgid ""
3619 "The total length field allows the daemon to allocate a fixed size buffer "
3620 "into which it slurps the rest of the message.  As a result, the total length "
3621 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3622 "effective size of any request is limited to somewhere under this size."
3623 msgstr ""
3624
3625 # type: textblock
3626 #: ../src/guestfs.pod:1843
3627 msgid ""
3628 "Note also that many functions don't take any arguments, in which case the "
3629 "C<guestfs_I<foo>_args> is completely omitted."
3630 msgstr ""
3631
3632 # type: textblock
3633 #: ../src/guestfs.pod:1846
3634 msgid ""
3635 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3636 "receiver knows what type of args structure to expect, or none at all."
3637 msgstr ""
3638
3639 # type: textblock
3640 #: ../src/guestfs.pod:1850
3641 msgid "The reply message for ordinary functions is:"
3642 msgstr ""
3643
3644 # type: verbatim
3645 #: ../src/guestfs.pod:1852
3646 #, no-wrap
3647 msgid ""
3648 " total length (header + ret,\n"
3649 "      but not including the length word itself)\n"
3650 " struct guestfs_message_header (encoded as XDR)\n"
3651 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3652 "\n"
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs.pod:1857
3657 msgid ""
3658 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3659 "functions that return no formal return values."
3660 msgstr ""
3661
3662 # type: textblock
3663 #: ../src/guestfs.pod:1860
3664 msgid ""
3665 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1863
3670 msgid ""
3671 "In the case of an error, a flag is set in the header, and the reply message "
3672 "is slightly changed:"
3673 msgstr ""
3674
3675 # type: verbatim
3676 #: ../src/guestfs.pod:1866
3677 #, no-wrap
3678 msgid ""
3679 " total length (header + error,\n"
3680 "      but not including the length word itself)\n"
3681 " struct guestfs_message_header (encoded as XDR)\n"
3682 " struct guestfs_message_error (encoded as XDR)\n"
3683 "\n"
3684 msgstr ""
3685
3686 # type: textblock
3687 #: ../src/guestfs.pod:1871
3688 msgid ""
3689 "The C<guestfs_message_error> structure contains the error message as a "
3690 "string."
3691 msgstr ""
3692
3693 # type: =head3
3694 #: ../src/guestfs.pod:1874
3695 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3696 msgstr ""
3697
3698 # type: textblock
3699 #: ../src/guestfs.pod:1876
3700 msgid ""
3701 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3702 "The normal request message is sent (see above).  However this is followed by "
3703 "a sequence of file chunks."
3704 msgstr ""
3705
3706 # type: verbatim
3707 #: ../src/guestfs.pod:1880
3708 #, no-wrap
3709 msgid ""
3710 " total length (header + arguments,\n"
3711 "      but not including the length word itself,\n"
3712 "      and not including the chunks)\n"
3713 " struct guestfs_message_header (encoded as XDR)\n"
3714 " struct guestfs_<foo>_args (encoded as XDR)\n"
3715 " sequence of chunks for FileIn param #0\n"
3716 " sequence of chunks for FileIn param #1 etc.\n"
3717 "\n"
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1888
3722 msgid "The \"sequence of chunks\" is:"
3723 msgstr ""
3724
3725 # type: verbatim
3726 #: ../src/guestfs.pod:1890
3727 #, no-wrap
3728 msgid ""
3729 " length of chunk (not including length word itself)\n"
3730 " struct guestfs_chunk (encoded as XDR)\n"
3731 " length of chunk\n"
3732 " struct guestfs_chunk (encoded as XDR)\n"
3733 "   ...\n"
3734 " length of chunk\n"
3735 " struct guestfs_chunk (with data.data_len == 0)\n"
3736 "\n"
3737 msgstr ""
3738
3739 # type: textblock
3740 #: ../src/guestfs.pod:1898
3741 msgid ""
3742 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3743 "is set in the final chunk to indicate either successful completion or early "
3744 "cancellation."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1902
3749 msgid ""
3750 "At time of writing there are no functions that have more than one FileIn "
3751 "parameter.  However this is (theoretically) supported, by sending the "
3752 "sequence of chunks for each FileIn parameter one after another (from left to "
3753 "right)."
3754 msgstr ""
3755
3756 # type: textblock
3757 #: ../src/guestfs.pod:1907
3758 msgid ""
3759 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3760 "transfer.  The library does this by sending a chunk with a special flag set "
3761 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3762 "RPC, does I<not> send any reply, and goes back to reading the next request."
3763 msgstr ""
3764
3765 # type: textblock
3766 #: ../src/guestfs.pod:1913
3767 msgid ""
3768 "The daemon may also cancel.  It does this by writing a special word "
3769 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3770 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3771 "cancel chunk).  The special word is chosen so that even if cancellation "
3772 "happens right at the end of the transfer (after the library has finished "
3773 "writing and has started listening for the reply), the \"spurious\" cancel "
3774 "flag will not be confused with the reply message."
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1922
3779 msgid ""
3780 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3781 "limit), and also files where the size is not known in advance (eg. from "
3782 "pipes or sockets).  However the chunks are rather small "
3783 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3784 "to keep much in memory."
3785 msgstr ""
3786
3787 # type: =head3
3788 #: ../src/guestfs.pod:1928
3789 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs.pod:1930
3794 msgid ""
3795 "The protocol for FileOut parameters is exactly the same as for FileIn "
3796 "parameters, but with the roles of daemon and library reversed."
3797 msgstr ""
3798
3799 # type: verbatim
3800 #: ../src/guestfs.pod:1933
3801 #, no-wrap
3802 msgid ""
3803 " total length (header + ret,\n"
3804 "      but not including the length word itself,\n"
3805 "      and not including the chunks)\n"
3806 " struct guestfs_message_header (encoded as XDR)\n"
3807 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3808 " sequence of chunks for FileOut param #0\n"
3809 " sequence of chunks for FileOut param #1 etc.\n"
3810 "\n"
3811 msgstr ""
3812
3813 # type: =head3
3814 #: ../src/guestfs.pod:1941
3815 msgid "INITIAL MESSAGE"
3816 msgstr ""
3817
3818 # type: textblock
3819 #: ../src/guestfs.pod:1943
3820 msgid ""
3821 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3822 "which indicates that the guest and daemon is alive.  This is what L</"
3823 "guestfs_launch> waits for."
3824 msgstr ""
3825
3826 # type: =head3
3827 #: ../src/guestfs.pod:1947
3828 msgid "PROGRESS NOTIFICATION MESSAGES"
3829 msgstr ""
3830
3831 # type: textblock
3832 #: ../src/guestfs.pod:1949
3833 msgid ""
3834 "The daemon may send progress notification messages at any time.  These are "
3835 "distinguished by the normal length word being replaced by "
3836 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1953
3841 msgid ""
3842 "The library turns them into progress callbacks (see "
3843 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3844 "discards them if not."
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1957
3849 msgid ""
3850 "The daemon self-limits the frequency of progress messages it sends (see "
3851 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3852 "messages."
3853 msgstr ""
3854
3855 # type: =head1
3856 #: ../src/guestfs.pod:1961
3857 msgid "LIBGUESTFS VERSION NUMBERS"
3858 msgstr ""
3859
3860 # type: textblock
3861 #: ../src/guestfs.pod:1963
3862 msgid ""
3863 "Since April 2010, libguestfs has started to make separate development and "
3864 "stable releases, along with corresponding branches in our git repository.  "
3865 "These separate releases can be identified by version number:"
3866 msgstr ""
3867
3868 # type: verbatim
3869 #: ../src/guestfs.pod:1968
3870 #, no-wrap
3871 msgid ""
3872 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3873 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3874 "       |\n"
3875 "       v\n"
3876 " 1  .  3  .  5\n"
3877 " ^           ^\n"
3878 " |           |\n"
3879 " |           `-------- sub-version\n"
3880 " |\n"
3881 " `------ always '1' because we don't change the ABI\n"
3882 "\n"
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs.pod:1979
3887 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs.pod:1981
3892 msgid ""
3893 "As time passes we cherry pick fixes from the development branch and backport "
3894 "those into the stable branch, the effect being that the stable branch should "
3895 "get more stable and less buggy over time.  So the stable releases are ideal "
3896 "for people who don't need new features but would just like the software to "
3897 "work."
3898 msgstr ""
3899
3900 # type: textblock
3901 #: ../src/guestfs.pod:1987
3902 msgid "Our criteria for backporting changes are:"
3903 msgstr ""
3904
3905 # type: textblock
3906 #: ../src/guestfs.pod:1993
3907 msgid ""
3908 "Documentation changes which don't affect any code are backported unless the "
3909 "documentation refers to a future feature which is not in stable."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs.pod:1999
3914 msgid ""
3915 "Bug fixes which are not controversial, fix obvious problems, and have been "
3916 "well tested are backported."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs.pod:2004
3921 msgid ""
3922 "Simple rearrangements of code which shouldn't affect how it works get "
3923 "backported.  This is so that the code in the two branches doesn't get too "
3924 "far out of step, allowing us to backport future fixes more easily."
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:2010
3929 msgid ""
3930 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3931 "exceptional case: the new feature is required in order to implement an "
3932 "important bug fix."
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs.pod:2016
3937 msgid ""
3938 "A new stable branch starts when we think the new features in development are "
3939 "substantial and compelling enough over the current stable branch to warrant "
3940 "it.  When that happens we create new stable and development versions 1.N.0 "
3941 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3942 "stable at this point, but by backporting fixes from development, that branch "
3943 "will stabilize over time."
3944 msgstr ""
3945
3946 # type: =head1
3947 #: ../src/guestfs.pod:2024 ../fish/guestfish.pod:914
3948 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3949 #: ../tools/virt-rescue.pl:255
3950 msgid "ENVIRONMENT VARIABLES"
3951 msgstr ""
3952
3953 # type: =item
3954 #: ../src/guestfs.pod:2028 ../fish/guestfish.pod:940
3955 msgid "LIBGUESTFS_APPEND"
3956 msgstr ""
3957
3958 # type: textblock
3959 #: ../src/guestfs.pod:2030 ../fish/guestfish.pod:942
3960 msgid "Pass additional options to the guest kernel."
3961 msgstr ""
3962
3963 # type: =item
3964 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:944
3965 msgid "LIBGUESTFS_DEBUG"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs.pod:2034
3970 msgid ""
3971 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3972 "effect as calling C<guestfs_set_verbose (g, 1)>."
3973 msgstr ""
3974
3975 # type: =item
3976 #: ../src/guestfs.pod:2037 ../fish/guestfish.pod:949
3977 msgid "LIBGUESTFS_MEMSIZE"
3978 msgstr ""
3979
3980 # type: textblock
3981 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:951
3982 msgid ""
3983 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3984 msgstr ""
3985
3986 # type: verbatim
3987 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:954
3988 #, no-wrap
3989 msgid ""
3990 " LIBGUESTFS_MEMSIZE=700\n"
3991 "\n"
3992 msgstr ""
3993
3994 # type: =item
3995 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:956
3996 msgid "LIBGUESTFS_PATH"
3997 msgstr ""
3998
3999 # type: textblock
4000 #: ../src/guestfs.pod:2046
4001 msgid ""
4002 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4003 "the discussion of paths in section PATH above."
4004 msgstr ""
4005
4006 # type: =item
4007 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:961
4008 msgid "LIBGUESTFS_QEMU"
4009 msgstr ""
4010
4011 # type: textblock
4012 #: ../src/guestfs.pod:2051 ../fish/guestfish.pod:963
4013 msgid ""
4014 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4015 "which was found at compile time by the configure script is used."
4016 msgstr ""
4017
4018 # type: textblock
4019 #: ../src/guestfs.pod:2055
4020 msgid "See also L</QEMU WRAPPERS> above."
4021 msgstr ""
4022
4023 # type: =item
4024 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:967
4025 msgid "LIBGUESTFS_TRACE"
4026 msgstr ""
4027
4028 # type: textblock
4029 #: ../src/guestfs.pod:2059
4030 msgid ""
4031 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4032 "effect as calling C<guestfs_set_trace (g, 1)>."
4033 msgstr ""
4034
4035 # type: =item
4036 #: ../src/guestfs.pod:2062 ../fish/guestfish.pod:976
4037 msgid "TMPDIR"
4038 msgstr ""
4039
4040 # type: textblock
4041 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:978
4042 msgid "Location of temporary directory, defaults to C</tmp>."
4043 msgstr ""
4044
4045 # type: textblock
4046 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:980
4047 msgid ""
4048 "If libguestfs was compiled to use the supermin appliance then the real "
4049 "appliance is cached in this directory, shared between all handles belonging "
4050 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4051 "use in case C</tmp> is not large enough."
4052 msgstr ""
4053
4054 # type: =head1
4055 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:1038
4056 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4057 #: ../inspector/virt-inspector.pl:536 ../tools/virt-edit.pl:350
4058 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
4059 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
4060 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-tar.pl:281
4061 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
4062 #: ../tools/virt-list-partitions.pl:254
4063 msgid "SEE ALSO"
4064 msgstr ""
4065
4066 # type: textblock
4067 #: ../src/guestfs.pod:2076
4068 msgid ""
4069 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
4070 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
4071 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
4072 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
4073 "L<http://libguestfs.org/>."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs.pod:2094
4078 msgid ""
4079 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4080 "(8)>, L<disktype(1)>."
4081 msgstr ""
4082
4083 # type: =head1
4084 #: ../src/guestfs.pod:2101 ../tools/virt-win-reg.pl:499
4085 #: ../tools/virt-make-fs.pl:548
4086 msgid "BUGS"
4087 msgstr ""
4088
4089 # type: textblock
4090 #: ../src/guestfs.pod:2103
4091 msgid "To get a list of bugs against libguestfs use this link:"
4092 msgstr ""
4093
4094 # type: textblock
4095 #: ../src/guestfs.pod:2105
4096 msgid ""
4097 "L<https://bugzilla.redhat.com/buglist.cgi?"
4098 "component=libguestfs&product=Virtualization+Tools>"
4099 msgstr ""
4100
4101 # type: textblock
4102 #: ../src/guestfs.pod:2107
4103 msgid "To report a new bug against libguestfs use this link:"
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs.pod:2109
4108 msgid ""
4109 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4110 "component=libguestfs&product=Virtualization+Tools>"
4111 msgstr ""
4112
4113 # type: textblock
4114 #: ../src/guestfs.pod:2111
4115 msgid "When reporting a bug, please check:"
4116 msgstr ""
4117
4118 # type: textblock
4119 #: ../src/guestfs.pod:2117
4120 msgid "That the bug hasn't been reported already."
4121 msgstr ""
4122
4123 # type: textblock
4124 #: ../src/guestfs.pod:2121
4125 msgid "That you are testing a recent version."
4126 msgstr ""
4127
4128 # type: textblock
4129 #: ../src/guestfs.pod:2125
4130 msgid "Describe the bug accurately, and give a way to reproduce it."
4131 msgstr ""
4132
4133 # type: textblock
4134 #: ../src/guestfs.pod:2129
4135 msgid ""
4136 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4137 "bug report."
4138 msgstr ""
4139
4140 # type: =head1
4141 #: ../src/guestfs.pod:2134 ../fish/guestfish.pod:1055
4142 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4143 #: ../inspector/virt-inspector.pl:546
4144 msgid "AUTHORS"
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs.pod:2136 ../fish/guestfish.pod:1057
4149 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4150 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4151 msgstr ""
4152
4153 # type: =head1
4154 #: ../src/guestfs.pod:2138 ../fish/guestfish.pod:1059
4155 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4156 #: ../inspector/virt-inspector.pl:560 ../tools/virt-edit.pl:366
4157 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
4158 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
4159 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:296
4160 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
4161 #: ../tools/virt-list-partitions.pl:269
4162 msgid "COPYRIGHT"
4163 msgstr ""
4164
4165 # type: textblock
4166 #: ../src/guestfs.pod:2140 ../fish/guestfish.pod:1061
4167 #: ../fuse/guestmount.pod:250
4168 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs.pod:2143
4173 msgid ""
4174 "This library is free software; you can redistribute it and/or modify it "
4175 "under the terms of the GNU Lesser General Public License as published by the "
4176 "Free Software Foundation; either version 2 of the License, or (at your "
4177 "option) any later version."
4178 msgstr ""
4179
4180 # type: textblock
4181 #: ../src/guestfs.pod:2148
4182 msgid ""
4183 "This library is distributed in the hope that it will be useful, but WITHOUT "
4184 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4185 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4186 "for more details."
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs.pod:2153
4191 msgid ""
4192 "You should have received a copy of the GNU Lesser General Public License "
4193 "along with this library; if not, write to the Free Software Foundation, "
4194 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4195 msgstr ""
4196
4197 # type: =head2
4198 #: ../src/guestfs-actions.pod:1
4199 msgid "guestfs_add_cdrom"
4200 msgstr ""
4201
4202 # type: verbatim
4203 #: ../src/guestfs-actions.pod:3
4204 #, no-wrap
4205 msgid ""
4206 " int\n"
4207 " guestfs_add_cdrom (guestfs_h *g,\n"
4208 "                    const char *filename);\n"
4209 "\n"
4210 msgstr ""
4211
4212 # type: textblock
4213 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4214 msgid "This function adds a virtual CD-ROM disk image to the guest."
4215 msgstr ""
4216
4217 # type: textblock
4218 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4219 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:17
4224 msgid ""
4225 "This call checks for the existence of C<filename>.  This stops you from "
4226 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4227 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4228 "instead."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:24
4233 msgid ""
4234 "If you just want to add an ISO file (often you use this as an efficient way "
4235 "to transfer large files into the guest), then you should probably use "
4236 "C<guestfs_add_drive_ro> instead."
4237 msgstr ""
4238
4239 # type: textblock
4240 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4241 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4242 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4243 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4244 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4245 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4246 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4247 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4248 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4249 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4250 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4251 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4252 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4253 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4254 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4255 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4256 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4257 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4258 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4259 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4260 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4261 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3049
4262 #: ../src/guestfs-actions.pod:3064 ../src/guestfs-actions.pod:3084
4263 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3223
4264 #: ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3250
4265 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3301
4266 #: ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3393
4267 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3433
4268 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3488
4269 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3526
4270 #: ../src/guestfs-actions.pod:3561 ../src/guestfs-actions.pod:3573
4271 #: ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3625
4272 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3653
4273 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3763
4274 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3796
4275 #: ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:3865
4276 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3899
4277 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3927
4278 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3959
4279 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:4028
4280 #: ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:4078
4281 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4109
4282 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4139
4283 #: ../src/guestfs-actions.pod:4154 ../src/guestfs-actions.pod:4169
4284 #: ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4219
4285 #: ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4253
4286 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:4319
4287 #: ../src/guestfs-actions.pod:4356 ../src/guestfs-actions.pod:4370
4288 #: ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4415
4289 #: ../src/guestfs-actions.pod:4433 ../src/guestfs-actions.pod:4567
4290 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4646
4291 #: ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:4696
4292 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779
4293 #: ../src/guestfs-actions.pod:4792 ../src/guestfs-actions.pod:4806
4294 #: ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5114
4295 #: ../src/guestfs-actions.pod:5128 ../src/guestfs-actions.pod:5140
4296 #: ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5166
4297 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5196
4298 #: ../src/guestfs-actions.pod:5217 ../src/guestfs-actions.pod:5236
4299 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5273
4300 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5314
4301 #: ../src/guestfs-actions.pod:5333 ../src/guestfs-actions.pod:5354
4302 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5390
4303 #: ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5442
4304 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5485
4305 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5515
4306 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5571
4307 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5620
4308 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5849
4309 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5874
4310 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5909
4311 #: ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5935
4312 #: ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:5963
4313 #: ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6039
4314 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6071
4315 #: ../src/guestfs-actions.pod:6088 ../src/guestfs-actions.pod:6101
4316 #: ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6157
4317 #: ../src/guestfs-actions.pod:6171 ../src/guestfs-actions.pod:6212
4318 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6243
4319 #: ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6303
4320 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6440
4321 #: ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6509
4322 #: ../src/guestfs-actions.pod:6522 ../src/guestfs-actions.pod:6567
4323 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6654
4324 #: ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6746
4325 #: ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6794
4326 msgid "This function returns 0 on success or -1 on error."
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4331 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4332 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4333 msgid ""
4334 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4335 "instead."
4336 msgstr ""
4337
4338 # type: textblock
4339 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4340 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4341 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4342 #: ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6857
4343 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4344 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4345 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4346 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4524
4347 msgid ""
4348 "Deprecated functions will not be removed from the API, but the fact that "
4349 "they are deprecated indicates that there are problems with correct use of "
4350 "these functions."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4355 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4356 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4357 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3066
4358 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:5275
4359 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5502
4360 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6090
4361 #: ../src/guestfs-actions.pod:6602
4362 msgid "(Added in 0.3)"
4363 msgstr ""
4364
4365 # type: =head2
4366 #: ../src/guestfs-actions.pod:41
4367 msgid "guestfs_add_domain"
4368 msgstr ""
4369
4370 # type: verbatim
4371 #: ../src/guestfs-actions.pod:43
4372 #, no-wrap
4373 msgid ""
4374 " int\n"
4375 " guestfs_add_domain (guestfs_h *g,\n"
4376 "                     const char *dom,\n"
4377 "                     ...);\n"
4378 "\n"
4379 msgstr ""
4380
4381 # type: textblock
4382 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4383 msgid ""
4384 "You may supply a list of optional arguments to this call.  Use zero or more "
4385 "of the following pairs of parameters, and terminate the list with C<-1> on "
4386 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4387 msgstr ""
4388
4389 # type: verbatim
4390 #: ../src/guestfs-actions.pod:53
4391 #, no-wrap
4392 msgid ""
4393 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4394 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4395 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4396 "\n"
4397 msgstr ""
4398
4399 # type: textblock
4400 #: ../src/guestfs-actions.pod:57
4401 msgid ""
4402 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4403 "It works by connecting to libvirt, requesting the domain and domain XML from "
4404 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4405 "one."
4406 msgstr ""
4407
4408 # type: textblock
4409 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4410 msgid ""
4411 "The number of disks added is returned.  This operation is atomic: if an "
4412 "error is returned, then no disks are added."
4413 msgstr ""
4414
4415 # type: textblock
4416 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4417 msgid ""
4418 "This function does some minimal checks to make sure the libvirt domain is "
4419 "not running (unless C<readonly> is true).  In a future version we will try "
4420 "to acquire the libvirt lock on each disk."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4425 msgid ""
4426 "Disks must be accessible locally.  This often means that adding disks from a "
4427 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4428 "unless those disks are accessible via the same device path locally too."
4429 msgstr ""
4430
4431 # type: textblock
4432 #: ../src/guestfs-actions.pod:74
4433 msgid ""
4434 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4435 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4436 "libvirt URI (or one set through an environment variable, see the libvirt "
4437 "documentation for full details).  If you are using the C API directly then "
4438 "it is more flexible to create the libvirt connection object yourself, get "
4439 "the domain object, and call C<guestfs_add_libvirt_dom>."
4440 msgstr ""
4441
4442 # type: textblock
4443 #: ../src/guestfs-actions.pod:82
4444 msgid ""
4445 "The other optional parameters are passed directly through to "
4446 "C<guestfs_add_drive_opts>."
4447 msgstr ""
4448
4449 # type: textblock
4450 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4451 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4452 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4453 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4454 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4455 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4456 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4457 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2602
4458 #: ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:4342
4459 #: ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:4876
4460 #: ../src/guestfs-actions.pod:4902 ../src/guestfs-actions.pod:6198
4461 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:6626
4462 #: ../src/guestfs-actions.pod:6639
4463 msgid "On error this function returns -1."
4464 msgstr ""
4465
4466 # type: =head2
4467 #: ../src/guestfs-actions.pod:87
4468 msgid "guestfs_add_domain_va"
4469 msgstr ""
4470
4471 # type: verbatim
4472 #: ../src/guestfs-actions.pod:89
4473 #, no-wrap
4474 msgid ""
4475 " int\n"
4476 " guestfs_add_domain_va (guestfs_h *g,\n"
4477 "                        const char *dom,\n"
4478 "                        va_list args);\n"
4479 "\n"
4480 msgstr ""
4481
4482 # type: textblock
4483 #: ../src/guestfs-actions.pod:94
4484 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4485 msgstr ""
4486
4487 # type: textblock
4488 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4489 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4490 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4491 msgstr ""
4492
4493 # type: =head2
4494 #: ../src/guestfs-actions.pod:98
4495 msgid "guestfs_add_domain_argv"
4496 msgstr ""
4497
4498 # type: verbatim
4499 #: ../src/guestfs-actions.pod:100
4500 #, no-wrap
4501 msgid ""
4502 " int\n"
4503 " guestfs_add_domain_argv (guestfs_h *g,\n"
4504 "                          const char *dom,\n"
4505 "                          const struct guestfs_add_domain_argv *optargs);\n"
4506 "\n"
4507 msgstr ""
4508
4509 # type: textblock
4510 #: ../src/guestfs-actions.pod:105
4511 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4512 msgstr ""
4513
4514 # type: =head2
4515 #: ../src/guestfs-actions.pod:109
4516 msgid "guestfs_add_drive"
4517 msgstr ""
4518
4519 # type: verbatim
4520 #: ../src/guestfs-actions.pod:111
4521 #, no-wrap
4522 msgid ""
4523 " int\n"
4524 " guestfs_add_drive (guestfs_h *g,\n"
4525 "                    const char *filename);\n"
4526 "\n"
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:115
4531 msgid ""
4532 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4533 "optional parameters, so the disk is added writable, with the format being "
4534 "detected automatically."
4535 msgstr ""
4536
4537 # type: textblock
4538 #: ../src/guestfs-actions.pod:119
4539 msgid ""
4540 "Automatic detection of the format opens you up to a potential security hole "
4541 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4542 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4543 "you should think about replacing calls to this function with calls to "
4544 "C<guestfs_add_drive_opts>, and specifying the format."
4545 msgstr ""
4546
4547 # type: =head2
4548 #: ../src/guestfs-actions.pod:130
4549 msgid "guestfs_add_drive_opts"
4550 msgstr ""
4551
4552 # type: verbatim
4553 #: ../src/guestfs-actions.pod:132
4554 #, no-wrap
4555 msgid ""
4556 " int\n"
4557 " guestfs_add_drive_opts (guestfs_h *g,\n"
4558 "                         const char *filename,\n"
4559 "                         ...);\n"
4560 "\n"
4561 msgstr ""
4562
4563 # type: verbatim
4564 #: ../src/guestfs-actions.pod:142
4565 #, no-wrap
4566 msgid ""
4567 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4568 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4569 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4575 msgid ""
4576 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4577 "The first time you call this function, the disk appears as C</dev/sda>, the "
4578 "second time as C</dev/sdb>, and so on."
4579 msgstr ""
4580
4581 # type: textblock
4582 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4583 msgid ""
4584 "You don't necessarily need to be root when using libguestfs.  However you "
4585 "obviously do need sufficient permissions to access the filename for whatever "
4586 "operations you want to perform (ie. read access if you just want to read the "
4587 "image or write access if you want to modify the image)."
4588 msgstr ""
4589
4590 # type: textblock
4591 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4592 msgid "This call checks that C<filename> exists."
4593 msgstr ""
4594
4595 # type: textblock
4596 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4597 msgid "The optional arguments are:"
4598 msgstr ""
4599
4600 # type: =item
4601 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4602 msgid "C<readonly>"
4603 msgstr ""
4604
4605 # type: textblock
4606 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4607 msgid ""
4608 "If true then the image is treated as read-only.  Writes are still allowed, "
4609 "but they are stored in a temporary snapshot overlay which is discarded at "
4610 "the end.  The disk that you add is not modified."
4611 msgstr ""
4612
4613 # type: =item
4614 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4615 msgid "C<format>"
4616 msgstr ""
4617
4618 # type: textblock
4619 #: ../src/guestfs-actions.pod:171
4620 msgid ""
4621 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4622 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4623 "Possible formats include C<raw> and C<qcow2>."
4624 msgstr ""
4625
4626 # type: textblock
4627 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4628 msgid ""
4629 "Automatic detection of the format opens you up to a potential security hole "
4630 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4631 "RHBZ#642934.  Specifying the format closes this security hole."
4632 msgstr ""
4633
4634 # type: =item
4635 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4636 msgid "C<iface>"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:182
4641 msgid ""
4642 "This rarely-used option lets you emulate the behaviour of the deprecated "
4643 "C<guestfs_add_drive_with_if> call (q.v.)"
4644 msgstr ""
4645
4646 # type: textblock
4647 #: ../src/guestfs-actions.pod:189
4648 msgid "(Added in 1.5.23)"
4649 msgstr ""
4650
4651 # type: =head2
4652 #: ../src/guestfs-actions.pod:191
4653 msgid "guestfs_add_drive_opts_va"
4654 msgstr ""
4655
4656 # type: verbatim
4657 #: ../src/guestfs-actions.pod:193
4658 #, no-wrap
4659 msgid ""
4660 " int\n"
4661 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4662 "                            const char *filename,\n"
4663 "                            va_list args);\n"
4664 "\n"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:198
4669 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4670 msgstr ""
4671
4672 # type: =head2
4673 #: ../src/guestfs-actions.pod:202
4674 msgid "guestfs_add_drive_opts_argv"
4675 msgstr ""
4676
4677 # type: verbatim
4678 #: ../src/guestfs-actions.pod:204
4679 #, no-wrap
4680 msgid ""
4681 " int\n"
4682 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4683 "                              const char *filename,\n"
4684 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4685 "\n"
4686 msgstr ""
4687
4688 # type: textblock
4689 #: ../src/guestfs-actions.pod:209
4690 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4691 msgstr ""
4692
4693 # type: =head2
4694 #: ../src/guestfs-actions.pod:213
4695 msgid "guestfs_add_drive_ro"
4696 msgstr ""
4697
4698 # type: verbatim
4699 #: ../src/guestfs-actions.pod:215
4700 #, no-wrap
4701 msgid ""
4702 " int\n"
4703 " guestfs_add_drive_ro (guestfs_h *g,\n"
4704 "                       const char *filename);\n"
4705 "\n"
4706 msgstr ""
4707
4708 # type: textblock
4709 #: ../src/guestfs-actions.pod:219
4710 msgid ""
4711 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4712 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4713 "disk is added read-only, with the format being detected automatically."
4714 msgstr ""
4715
4716 # type: textblock
4717 #: ../src/guestfs-actions.pod:226
4718 msgid "(Added in 1.0.38)"
4719 msgstr ""
4720
4721 # type: =head2
4722 #: ../src/guestfs-actions.pod:228
4723 msgid "guestfs_add_drive_ro_with_if"
4724 msgstr ""
4725
4726 # type: verbatim
4727 #: ../src/guestfs-actions.pod:230
4728 #, no-wrap
4729 msgid ""
4730 " int\n"
4731 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4732 "                               const char *filename,\n"
4733 "                               const char *iface);\n"
4734 "\n"
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:235
4739 msgid ""
4740 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4741 "QEMU interface emulation to use at run time."
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4746 #: ../src/guestfs-actions.pod:2303
4747 msgid "(Added in 1.0.84)"
4748 msgstr ""
4749
4750 # type: =head2
4751 #: ../src/guestfs-actions.pod:249
4752 msgid "guestfs_add_drive_with_if"
4753 msgstr ""
4754
4755 # type: verbatim
4756 #: ../src/guestfs-actions.pod:251
4757 #, no-wrap
4758 msgid ""
4759 " int\n"
4760 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4761 "                            const char *filename,\n"
4762 "                            const char *iface);\n"
4763 "\n"
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:256
4768 msgid ""
4769 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4770 "QEMU interface emulation to use at run time."
4771 msgstr ""
4772
4773 # type: =head2
4774 #: ../src/guestfs-actions.pod:270
4775 msgid "guestfs_aug_clear"
4776 msgstr ""
4777
4778 # type: verbatim
4779 #: ../src/guestfs-actions.pod:272
4780 #, no-wrap
4781 msgid ""
4782 " int\n"
4783 " guestfs_aug_clear (guestfs_h *g,\n"
4784 "                    const char *augpath);\n"
4785 "\n"
4786 msgstr ""
4787
4788 # type: textblock
4789 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4790 msgid ""
4791 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4792 "L<augtool(1)> C<clear> command."
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4797 msgid "(Added in 1.3.4)"
4798 msgstr ""
4799
4800 # type: =head2
4801 #: ../src/guestfs-actions.pod:283
4802 msgid "guestfs_aug_close"
4803 msgstr ""
4804
4805 # type: verbatim
4806 #: ../src/guestfs-actions.pod:285
4807 #, no-wrap
4808 msgid ""
4809 " int\n"
4810 " guestfs_aug_close (guestfs_h *g);\n"
4811 "\n"
4812 msgstr ""
4813
4814 # type: textblock
4815 #: ../src/guestfs-actions.pod:288
4816 msgid ""
4817 "Close the current Augeas handle and free up any resources used by it.  After "
4818 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4819 "any other Augeas functions."
4820 msgstr ""
4821
4822 # type: textblock
4823 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4824 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4825 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4826 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4827 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4828 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4829 #: ../src/guestfs-actions.pod:4953
4830 msgid "(Added in 0.7)"
4831 msgstr ""
4832
4833 # type: =head2
4834 #: ../src/guestfs-actions.pod:297
4835 msgid "guestfs_aug_defnode"
4836 msgstr ""
4837
4838 # type: verbatim
4839 #: ../src/guestfs-actions.pod:299
4840 #, no-wrap
4841 msgid ""
4842 " struct guestfs_int_bool *\n"
4843 " guestfs_aug_defnode (guestfs_h *g,\n"
4844 "                      const char *name,\n"
4845 "                      const char *expr,\n"
4846 "                      const char *val);\n"
4847 "\n"
4848 msgstr ""
4849
4850 # type: textblock
4851 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4852 msgid ""
4853 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:308
4858 msgid ""
4859 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4860 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4861 "containing that single node."
4862 msgstr ""
4863
4864 # type: textblock
4865 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4866 msgid ""
4867 "On success this returns a pair containing the number of nodes in the "
4868 "nodeset, and a boolean flag if a node was created."
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:316
4873 msgid ""
4874 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4875 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4876 msgstr ""
4877
4878 # type: =head2
4879 #: ../src/guestfs-actions.pod:322
4880 msgid "guestfs_aug_defvar"
4881 msgstr ""
4882
4883 # type: verbatim
4884 #: ../src/guestfs-actions.pod:324
4885 #, no-wrap
4886 msgid ""
4887 " int\n"
4888 " guestfs_aug_defvar (guestfs_h *g,\n"
4889 "                     const char *name,\n"
4890 "                     const char *expr);\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4896 msgid ""
4897 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4898 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4903 msgid ""
4904 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4905 "evaluates to something which is not a nodeset."
4906 msgstr ""
4907
4908 # type: =head2
4909 #: ../src/guestfs-actions.pod:340
4910 msgid "guestfs_aug_get"
4911 msgstr ""
4912
4913 # type: verbatim
4914 #: ../src/guestfs-actions.pod:342
4915 #, no-wrap
4916 msgid ""
4917 " char *\n"
4918 " guestfs_aug_get (guestfs_h *g,\n"
4919 "                  const char *augpath);\n"
4920 "\n"
4921 msgstr ""
4922
4923 # type: textblock
4924 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4925 msgid ""
4926 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4927 "node, the C<value> is returned."
4928 msgstr ""
4929
4930 # type: textblock
4931 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4932 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4933 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4934 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4935 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4936 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4937 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4938 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4939 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4940 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2548
4941 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2713
4942 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:2795
4943 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3195
4944 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3715
4945 #: ../src/guestfs-actions.pod:3825 ../src/guestfs-actions.pod:4488
4946 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4851
4947 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5078
4948 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5657
4949 #: ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5698
4950 #: ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6381
4951 #: ../src/guestfs-actions.pod:6399 ../src/guestfs-actions.pod:6579
4952 #: ../src/guestfs-actions.pod:6851
4953 msgid ""
4954 "This function returns a string, or NULL on error.  I<The caller must free "
4955 "the returned string after use>."
4956 msgstr ""
4957
4958 # type: =head2
4959 #: ../src/guestfs-actions.pod:354
4960 msgid "guestfs_aug_init"
4961 msgstr ""
4962
4963 # type: verbatim
4964 #: ../src/guestfs-actions.pod:356
4965 #, no-wrap
4966 msgid ""
4967 " int\n"
4968 " guestfs_aug_init (guestfs_h *g,\n"
4969 "                   const char *root,\n"
4970 "                   int flags);\n"
4971 "\n"
4972 msgstr ""
4973
4974 # type: textblock
4975 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4976 msgid ""
4977 "Create a new Augeas handle for editing configuration files.  If there was "
4978 "any previous Augeas handle associated with this guestfs session, then it is "
4979 "closed."
4980 msgstr ""
4981
4982 # type: textblock
4983 #: ../src/guestfs-actions.pod:365
4984 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4985 msgstr ""
4986
4987 # type: textblock
4988 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4989 msgid ""
4990 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4991 msgstr ""
4992
4993 # type: textblock
4994 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4995 msgid ""
4996 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4997 "logical I<or> of the following integers:"
4998 msgstr ""
4999
5000 # type: =item
5001 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5002 msgid "C<AUG_SAVE_BACKUP> = 1"
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5007 msgid "Keep the original file with a C<.augsave> extension."
5008 msgstr ""
5009
5010 # type: =item
5011 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5012 msgid "C<AUG_SAVE_NEWFILE> = 2"
5013 msgstr ""
5014
5015 # type: textblock
5016 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5017 msgid ""
5018 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5019 "original.  Overrides C<AUG_SAVE_BACKUP>."
5020 msgstr ""
5021
5022 # type: =item
5023 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5024 msgid "C<AUG_TYPE_CHECK> = 4"
5025 msgstr ""
5026
5027 # type: textblock
5028 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5029 msgid "Typecheck lenses (can be expensive)."
5030 msgstr ""
5031
5032 # type: =item
5033 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5034 msgid "C<AUG_NO_STDINC> = 8"
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5039 msgid "Do not use standard load path for modules."
5040 msgstr ""
5041
5042 # type: =item
5043 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5044 msgid "C<AUG_SAVE_NOOP> = 16"
5045 msgstr ""
5046
5047 # type: textblock
5048 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5049 msgid "Make save a no-op, just record what would have been changed."
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5054 msgid "C<AUG_NO_LOAD> = 32"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:400
5059 msgid "Do not load the tree in C<guestfs_aug_init>."
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:404
5064 msgid "To close the handle, you can call C<guestfs_aug_close>."
5065 msgstr ""
5066
5067 # type: textblock
5068 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5069 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5070 msgstr ""
5071
5072 # type: =head2
5073 #: ../src/guestfs-actions.pod:412
5074 msgid "guestfs_aug_insert"
5075 msgstr ""
5076
5077 # type: verbatim
5078 #: ../src/guestfs-actions.pod:414
5079 #, no-wrap
5080 msgid ""
5081 " int\n"
5082 " guestfs_aug_insert (guestfs_h *g,\n"
5083 "                     const char *augpath,\n"
5084 "                     const char *label,\n"
5085 "                     int before);\n"
5086 "\n"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5091 msgid ""
5092 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5093 "or after C<path> (depending on the boolean flag C<before>)."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5098 msgid ""
5099 "C<path> must match exactly one existing node in the tree, and C<label> must "
5100 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5101 msgstr ""
5102
5103 # type: =head2
5104 #: ../src/guestfs-actions.pod:432
5105 msgid "guestfs_aug_load"
5106 msgstr ""
5107
5108 # type: verbatim
5109 #: ../src/guestfs-actions.pod:434
5110 #, no-wrap
5111 msgid ""
5112 " int\n"
5113 " guestfs_aug_load (guestfs_h *g);\n"
5114 "\n"
5115 msgstr ""
5116
5117 # type: textblock
5118 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5119 msgid "Load files into the tree."
5120 msgstr ""
5121
5122 # type: textblock
5123 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5124 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5125 msgstr ""
5126
5127 # type: =head2
5128 #: ../src/guestfs-actions.pod:446
5129 msgid "guestfs_aug_ls"
5130 msgstr ""
5131
5132 # type: verbatim
5133 #: ../src/guestfs-actions.pod:448
5134 #, no-wrap
5135 msgid ""
5136 " char **\n"
5137 " guestfs_aug_ls (guestfs_h *g,\n"
5138 "                 const char *augpath);\n"
5139 "\n"
5140 msgstr ""
5141
5142 # type: textblock
5143 #: ../src/guestfs-actions.pod:452
5144 msgid ""
5145 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5146 "sorting the resulting nodes into alphabetical order."
5147 msgstr ""
5148
5149 # type: textblock
5150 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5151 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5152 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5153 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5154 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5155 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5156 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5157 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5158 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2754
5159 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:3115
5160 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3282
5161 #: ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:4303
5162 #: ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4949
5163 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5714
5164 #: ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5830
5165 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6000
5166 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6492
5167 #: ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6704
5168 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6808
5169 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6873
5170 #: ../src/guestfs-actions.pod:6892
5171 msgid ""
5172 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5173 ">), or NULL if there was an error.  I<The caller must free the strings and "
5174 "the array after use>."
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5179 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5180 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2969
5181 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3578
5182 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:3798
5183 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4307
5184 #: ../src/guestfs-actions.pod:4764 ../src/guestfs-actions.pod:5142
5185 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5168
5186 #: ../src/guestfs-actions.pod:5576 ../src/guestfs-actions.pod:6214
5187 #: ../src/guestfs-actions.pod:6227 ../src/guestfs-actions.pod:6456
5188 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6692
5189 msgid "(Added in 0.8)"
5190 msgstr ""
5191
5192 # type: =head2
5193 #: ../src/guestfs-actions.pod:461
5194 msgid "guestfs_aug_match"
5195 msgstr ""
5196
5197 # type: verbatim
5198 #: ../src/guestfs-actions.pod:463
5199 #, no-wrap
5200 msgid ""
5201 " char **\n"
5202 " guestfs_aug_match (guestfs_h *g,\n"
5203 "                    const char *augpath);\n"
5204 "\n"
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5209 msgid ""
5210 "Returns a list of paths which match the path expression C<path>.  The "
5211 "returned paths are sufficiently qualified so that they match exactly one "
5212 "node in the current tree."
5213 msgstr ""
5214
5215 # type: =head2
5216 #: ../src/guestfs-actions.pod:477
5217 msgid "guestfs_aug_mv"
5218 msgstr ""
5219
5220 # type: verbatim
5221 #: ../src/guestfs-actions.pod:479
5222 #, no-wrap
5223 msgid ""
5224 " int\n"
5225 " guestfs_aug_mv (guestfs_h *g,\n"
5226 "                 const char *src,\n"
5227 "                 const char *dest);\n"
5228 "\n"
5229 msgstr ""
5230
5231 # type: textblock
5232 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5233 msgid ""
5234 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5235 "C<dest> is overwritten if it exists."
5236 msgstr ""
5237
5238 # type: =head2
5239 #: ../src/guestfs-actions.pod:491
5240 msgid "guestfs_aug_rm"
5241 msgstr ""
5242
5243 # type: verbatim
5244 #: ../src/guestfs-actions.pod:493
5245 #, no-wrap
5246 msgid ""
5247 " int\n"
5248 " guestfs_aug_rm (guestfs_h *g,\n"
5249 "                 const char *augpath);\n"
5250 "\n"
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5255 msgid "Remove C<path> and all of its children."
5256 msgstr ""
5257
5258 # type: textblock
5259 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5260 msgid "On success this returns the number of entries which were removed."
5261 msgstr ""
5262
5263 # type: =head2
5264 #: ../src/guestfs-actions.pod:505
5265 msgid "guestfs_aug_save"
5266 msgstr ""
5267
5268 # type: verbatim
5269 #: ../src/guestfs-actions.pod:507
5270 #, no-wrap
5271 msgid ""
5272 " int\n"
5273 " guestfs_aug_save (guestfs_h *g);\n"
5274 "\n"
5275 msgstr ""
5276
5277 # type: textblock
5278 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5279 msgid "This writes all pending changes to disk."
5280 msgstr ""
5281
5282 # type: textblock
5283 #: ../src/guestfs-actions.pod:512
5284 msgid ""
5285 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5286 "are saved."
5287 msgstr ""
5288
5289 # type: =head2
5290 #: ../src/guestfs-actions.pod:519
5291 msgid "guestfs_aug_set"
5292 msgstr ""
5293
5294 # type: verbatim
5295 #: ../src/guestfs-actions.pod:521
5296 #, no-wrap
5297 msgid ""
5298 " int\n"
5299 " guestfs_aug_set (guestfs_h *g,\n"
5300 "                  const char *augpath,\n"
5301 "                  const char *val);\n"
5302 "\n"
5303 msgstr ""
5304
5305 # type: textblock
5306 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5307 msgid "Set the value associated with C<path> to C<val>."
5308 msgstr ""
5309
5310 # type: textblock
5311 #: ../src/guestfs-actions.pod:528
5312 msgid ""
5313 "In the Augeas API, it is possible to clear a node by setting the value to "
5314 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5315 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5316 msgstr ""
5317
5318 # type: =head2
5319 #: ../src/guestfs-actions.pod:537
5320 msgid "guestfs_available"
5321 msgstr ""
5322
5323 # type: verbatim
5324 #: ../src/guestfs-actions.pod:539
5325 #, no-wrap
5326 msgid ""
5327 " int\n"
5328 " guestfs_available (guestfs_h *g,\n"
5329 "                    char *const *groups);\n"
5330 "\n"
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5335 msgid ""
5336 "This command is used to check the availability of some groups of "
5337 "functionality in the appliance, which not all builds of the libguestfs "
5338 "appliance will be able to provide."
5339 msgstr ""
5340
5341 # type: textblock
5342 #: ../src/guestfs-actions.pod:547
5343 msgid ""
5344 "The libguestfs groups, and the functions that those groups correspond to, "
5345 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5346 "runtime by calling C<guestfs_available_all_groups>."
5347 msgstr ""
5348
5349 # type: textblock
5350 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5351 msgid ""
5352 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5353 "\"]> would check for the availability of the Linux inotify functions and "
5354 "Augeas (configuration file editing) functions."
5355 msgstr ""
5356
5357 # type: textblock
5358 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5359 msgid "The command returns no error if I<all> requested groups are available."
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5364 msgid ""
5365 "It fails with an error if one or more of the requested groups is unavailable "
5366 "in the appliance."
5367 msgstr ""
5368
5369 # type: textblock
5370 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5371 msgid ""
5372 "If an unknown group name is included in the list of groups then an error is "
5373 "always returned."
5374 msgstr ""
5375
5376 # type: textblock
5377 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5378 msgid "I<Notes:>"
5379 msgstr ""
5380
5381 # type: textblock
5382 #: ../src/guestfs-actions.pod:571
5383 msgid "You must call C<guestfs_launch> before calling this function."
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5388 msgid ""
5389 "The reason is because we don't know what groups are supported by the "
5390 "appliance/daemon until it is running and can be queried."
5391 msgstr ""
5392
5393 # type: textblock
5394 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5395 msgid ""
5396 "If a group of functions is available, this does not necessarily mean that "
5397 "they will work.  You still have to check for errors when calling individual "
5398 "API functions even if they are available."
5399 msgstr ""
5400
5401 # type: textblock
5402 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5403 msgid ""
5404 "It is usually the job of distro packagers to build complete functionality "
5405 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5406 "with all requirements satisfied, will support everything."
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:593
5411 msgid ""
5412 "This call was added in version C<1.0.80>.  In previous versions of "
5413 "libguestfs all you could do would be to speculatively execute a command to "
5414 "find out if the daemon implemented it.  See also C<guestfs_version>."
5415 msgstr ""
5416
5417 # type: textblock
5418 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5419 msgid "(Added in 1.0.80)"
5420 msgstr ""
5421
5422 # type: =head2
5423 #: ../src/guestfs-actions.pod:604
5424 msgid "guestfs_available_all_groups"
5425 msgstr ""
5426
5427 # type: verbatim
5428 #: ../src/guestfs-actions.pod:606
5429 #, no-wrap
5430 msgid ""
5431 " char **\n"
5432 " guestfs_available_all_groups (guestfs_h *g);\n"
5433 "\n"
5434 msgstr ""
5435
5436 # type: textblock
5437 #: ../src/guestfs-actions.pod:609
5438 msgid ""
5439 "This command returns a list of all optional groups that this daemon knows "
5440 "about.  Note this returns both supported and unsupported groups.  To find "
5441 "out which ones the daemon can actually support you have to call "
5442 "C<guestfs_available> on each member of the returned list."
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:615
5447 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:621
5452 msgid "(Added in 1.3.15)"
5453 msgstr ""
5454
5455 # type: =head2
5456 #: ../src/guestfs-actions.pod:623
5457 msgid "guestfs_base64_in"
5458 msgstr ""
5459
5460 # type: verbatim
5461 #: ../src/guestfs-actions.pod:625
5462 #, no-wrap
5463 msgid ""
5464 " int\n"
5465 " guestfs_base64_in (guestfs_h *g,\n"
5466 "                    const char *base64file,\n"
5467 "                    const char *filename);\n"
5468 "\n"
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5473 msgid ""
5474 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5479 msgid "(Added in 1.3.5)"
5480 msgstr ""
5481
5482 # type: =head2
5483 #: ../src/guestfs-actions.pod:637
5484 msgid "guestfs_base64_out"
5485 msgstr ""
5486
5487 # type: verbatim
5488 #: ../src/guestfs-actions.pod:639
5489 #, no-wrap
5490 msgid ""
5491 " int\n"
5492 " guestfs_base64_out (guestfs_h *g,\n"
5493 "                     const char *filename,\n"
5494 "                     const char *base64file);\n"
5495 "\n"
5496 msgstr ""
5497
5498 # type: textblock
5499 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5500 msgid ""
5501 "This command downloads the contents of C<filename>, writing it out to local "
5502 "file C<base64file> encoded as base64."
5503 msgstr ""
5504
5505 # type: =head2
5506 #: ../src/guestfs-actions.pod:651
5507 msgid "guestfs_blockdev_flushbufs"
5508 msgstr ""
5509
5510 # type: verbatim
5511 #: ../src/guestfs-actions.pod:653
5512 #, no-wrap
5513 msgid ""
5514 " int\n"
5515 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5516 "                             const char *device);\n"
5517 "\n"
5518 msgstr ""
5519
5520 # type: textblock
5521 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5522 msgid ""
5523 "This tells the kernel to flush internal buffers associated with C<device>."
5524 msgstr ""
5525
5526 # type: textblock
5527 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5528 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5529 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5530 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5531 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5532 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5533 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5534 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5535 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5536 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5537 msgid "This uses the L<blockdev(8)> command."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5542 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5543 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5544 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5545 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5546 msgid "(Added in 0.9.3)"
5547 msgstr ""
5548
5549 # type: =head2
5550 #: ../src/guestfs-actions.pod:666
5551 msgid "guestfs_blockdev_getbsz"
5552 msgstr ""
5553
5554 # type: verbatim
5555 #: ../src/guestfs-actions.pod:668
5556 #, no-wrap
5557 msgid ""
5558 " int\n"
5559 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5560 "                          const char *device);\n"
5561 "\n"
5562 msgstr ""
5563
5564 # type: textblock
5565 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5566 msgid "This returns the block size of a device."
5567 msgstr ""
5568
5569 # type: textblock
5570 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5571 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5572 msgid ""
5573 "(Note this is different from both I<size in blocks> and I<filesystem block "
5574 "size>)."
5575 msgstr ""
5576
5577 # type: =head2
5578 #: ../src/guestfs-actions.pod:683
5579 msgid "guestfs_blockdev_getro"
5580 msgstr ""
5581
5582 # type: verbatim
5583 #: ../src/guestfs-actions.pod:685
5584 #, no-wrap
5585 msgid ""
5586 " int\n"
5587 " guestfs_blockdev_getro (guestfs_h *g,\n"
5588 "                         const char *device);\n"
5589 "\n"
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5594 msgid ""
5595 "Returns a boolean indicating if the block device is read-only (true if read-"
5596 "only, false if not)."
5597 msgstr ""
5598
5599 # type: textblock
5600 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5601 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5602 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5603 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5604 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5605 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:2891
5606 #: ../src/guestfs-actions.pod:2906 ../src/guestfs-actions.pod:2920
5607 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:2951
5608 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2981
5609 #: ../src/guestfs-actions.pod:2994 ../src/guestfs-actions.pod:3008
5610 #: ../src/guestfs-actions.pod:3023 ../src/guestfs-actions.pod:3038
5611 #: ../src/guestfs-actions.pod:4452
5612 msgid "This function returns a C truth value on success or -1 on error."
5613 msgstr ""
5614
5615 # type: =head2
5616 #: ../src/guestfs-actions.pod:698
5617 msgid "guestfs_blockdev_getsize64"
5618 msgstr ""
5619
5620 # type: verbatim
5621 #: ../src/guestfs-actions.pod:700
5622 #, no-wrap
5623 msgid ""
5624 " int64_t\n"
5625 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5626 "                             const char *device);\n"
5627 "\n"
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5632 msgid "This returns the size of the device in bytes."
5633 msgstr ""
5634
5635 # type: textblock
5636 #: ../src/guestfs-actions.pod:706
5637 msgid "See also C<guestfs_blockdev_getsz>."
5638 msgstr ""
5639
5640 # type: =head2
5641 #: ../src/guestfs-actions.pod:714
5642 msgid "guestfs_blockdev_getss"
5643 msgstr ""
5644
5645 # type: verbatim
5646 #: ../src/guestfs-actions.pod:716
5647 #, no-wrap
5648 msgid ""
5649 " int\n"
5650 " guestfs_blockdev_getss (guestfs_h *g,\n"
5651 "                         const char *device);\n"
5652 "\n"
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5657 msgid ""
5658 "This returns the size of sectors on a block device.  Usually 512, but can be "
5659 "larger for modern devices."
5660 msgstr ""
5661
5662 # type: textblock
5663 #: ../src/guestfs-actions.pod:723
5664 msgid ""
5665 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5666 "that)."
5667 msgstr ""
5668
5669 # type: =head2
5670 #: ../src/guestfs-actions.pod:732
5671 msgid "guestfs_blockdev_getsz"
5672 msgstr ""
5673
5674 # type: verbatim
5675 #: ../src/guestfs-actions.pod:734
5676 #, no-wrap
5677 msgid ""
5678 " int64_t\n"
5679 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5680 "                         const char *device);\n"
5681 "\n"
5682 msgstr ""
5683
5684 # type: textblock
5685 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5686 msgid ""
5687 "This returns the size of the device in units of 512-byte sectors (even if "
5688 "the sectorsize isn't 512 bytes ... weird)."
5689 msgstr ""
5690
5691 # type: textblock
5692 #: ../src/guestfs-actions.pod:741
5693 msgid ""
5694 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5695 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5696 msgstr ""
5697
5698 # type: =head2
5699 #: ../src/guestfs-actions.pod:751
5700 msgid "guestfs_blockdev_rereadpt"
5701 msgstr ""
5702
5703 # type: verbatim
5704 #: ../src/guestfs-actions.pod:753
5705 #, no-wrap
5706 msgid ""
5707 " int\n"
5708 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5709 "                            const char *device);\n"
5710 "\n"
5711 msgstr ""
5712
5713 # type: textblock
5714 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5715 msgid "Reread the partition table on C<device>."
5716 msgstr ""
5717
5718 # type: =head2
5719 #: ../src/guestfs-actions.pod:765
5720 msgid "guestfs_blockdev_setbsz"
5721 msgstr ""
5722
5723 # type: verbatim
5724 #: ../src/guestfs-actions.pod:767
5725 #, no-wrap
5726 msgid ""
5727 " int\n"
5728 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5729 "                          const char *device,\n"
5730 "                          int blocksize);\n"
5731 "\n"
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5736 msgid "This sets the block size of a device."
5737 msgstr ""
5738
5739 # type: =head2
5740 #: ../src/guestfs-actions.pod:783
5741 msgid "guestfs_blockdev_setro"
5742 msgstr ""
5743
5744 # type: verbatim
5745 #: ../src/guestfs-actions.pod:785
5746 #, no-wrap
5747 msgid ""
5748 " int\n"
5749 " guestfs_blockdev_setro (guestfs_h *g,\n"
5750 "                         const char *device);\n"
5751 "\n"
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5756 msgid "Sets the block device named C<device> to read-only."
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:797
5761 msgid "guestfs_blockdev_setrw"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:799
5766 #, no-wrap
5767 msgid ""
5768 " int\n"
5769 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5770 "                         const char *device);\n"
5771 "\n"
5772 msgstr ""
5773
5774 # type: textblock
5775 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5776 msgid "Sets the block device named C<device> to read-write."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:811
5781 msgid "guestfs_case_sensitive_path"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:813
5786 #, no-wrap
5787 msgid ""
5788 " char *\n"
5789 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5790 "                              const char *path);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5796 msgid ""
5797 "This can be used to resolve case insensitive paths on a filesystem which is "
5798 "case sensitive.  The use case is to resolve paths which you have read from "
5799 "Windows configuration files or the Windows Registry, to the true path."
5800 msgstr ""
5801
5802 # type: textblock
5803 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5804 msgid ""
5805 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5806 "(and probably others), which is that although the underlying filesystem is "
5807 "case-insensitive, the driver exports the filesystem to Linux as case-"
5808 "sensitive."
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5813 msgid ""
5814 "One consequence of this is that special directories such as C<c:\\windows> "
5815 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5816 "precise details of how they were created.  In Windows itself this would not "
5817 "be a problem."
5818 msgstr ""
5819
5820 # type: textblock
5821 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5822 msgid ""
5823 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5824 "#posixfilenames1>"
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5829 msgid ""
5830 "This function resolves the true case of each element in the path and returns "
5831 "the case-sensitive path."
5832 msgstr ""
5833
5834 # type: textblock
5835 #: ../src/guestfs-actions.pod:839
5836 msgid ""
5837 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5838 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5839 "how the directories were originally created under Windows)."
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5844 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5845 msgstr ""
5846
5847 # type: textblock
5848 #: ../src/guestfs-actions.pod:847
5849 msgid "See also C<guestfs_realpath>."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6384
5854 msgid "(Added in 1.0.75)"
5855 msgstr ""
5856
5857 # type: =head2
5858 #: ../src/guestfs-actions.pod:854
5859 msgid "guestfs_cat"
5860 msgstr ""
5861
5862 # type: verbatim
5863 #: ../src/guestfs-actions.pod:856
5864 #, no-wrap
5865 msgid ""
5866 " char *\n"
5867 " guestfs_cat (guestfs_h *g,\n"
5868 "              const char *path);\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:4939
5874 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3271
5875 msgid "Return the contents of the file named C<path>."
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:862
5880 msgid ""
5881 "Note that this function cannot correctly handle binary files (specifically, "
5882 "files containing C<\\0> character which is treated as end of string).  For "
5883 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5884 "functions which have a more complex interface."
5885 msgstr ""
5886
5887 # type: textblock
5888 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5889 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5890 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5891 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5892 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5893 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5894 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5895 #: ../src/guestfs-actions.pod:4721 ../src/guestfs-actions.pod:4747
5896 #: ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:4904
5897 #: ../src/guestfs-actions.pod:4928 ../src/guestfs-actions.pod:5779
5898 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5980
5899 #: ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6656
5900 #: ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6708
5901 #: ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:6812
5902 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6877
5903 #: ../src/guestfs-actions.pod:6896 ../fish/guestfish-actions.pod:582
5904 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5905 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5906 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5907 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5908 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5909 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5910 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3141
5911 #: ../fish/guestfish-actions.pod:3156 ../fish/guestfish-actions.pod:3232
5912 #: ../fish/guestfish-actions.pod:3249 ../fish/guestfish-actions.pod:3264
5913 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3893
5914 #: ../fish/guestfish-actions.pod:3978 ../fish/guestfish-actions.pod:3993
5915 #: ../fish/guestfish-actions.pod:4403 ../fish/guestfish-actions.pod:4421
5916 #: ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:4448
5917 #: ../fish/guestfish-actions.pod:4496 ../fish/guestfish-actions.pod:4506
5918 #: ../fish/guestfish-actions.pod:4535 ../fish/guestfish-actions.pod:4545
5919 msgid ""
5920 "Because of the message protocol, there is a transfer limit of somewhere "
5921 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5922 msgstr ""
5923
5924 # type: textblock
5925 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3119
5926 #: ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3198
5927 #: ../src/guestfs-actions.pod:3286 ../src/guestfs-actions.pod:3691
5928 #: ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:4827
5929 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:6543
5930 #: ../src/guestfs-actions.pod:6557
5931 msgid "(Added in 0.4)"
5932 msgstr ""
5933
5934 # type: =head2
5935 #: ../src/guestfs-actions.pod:875
5936 msgid "guestfs_checksum"
5937 msgstr ""
5938
5939 # type: verbatim
5940 #: ../src/guestfs-actions.pod:877
5941 #, no-wrap
5942 msgid ""
5943 " char *\n"
5944 " guestfs_checksum (guestfs_h *g,\n"
5945 "                   const char *csumtype,\n"
5946 "                   const char *path);\n"
5947 "\n"
5948 msgstr ""
5949
5950 # type: textblock
5951 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5952 msgid ""
5953 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5954 msgstr ""
5955
5956 # type: textblock
5957 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5958 msgid ""
5959 "The type of checksum to compute is given by the C<csumtype> parameter which "
5960 "must have one of the following values:"
5961 msgstr ""
5962
5963 # type: =item
5964 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5965 msgid "C<crc>"
5966 msgstr ""
5967
5968 # type: textblock
5969 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5970 msgid ""
5971 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5972 "C<cksum> command."
5973 msgstr ""
5974
5975 # type: =item
5976 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5977 msgid "C<md5>"
5978 msgstr ""
5979
5980 # type: textblock
5981 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5982 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5983 msgstr ""
5984
5985 # type: =item
5986 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5987 msgid "C<sha1>"
5988 msgstr ""
5989
5990 # type: textblock
5991 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5992 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5993 msgstr ""
5994
5995 # type: =item
5996 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5997 msgid "C<sha224>"
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6002 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6003 msgstr ""
6004
6005 # type: =item
6006 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6007 msgid "C<sha256>"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6012 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6013 msgstr ""
6014
6015 # type: =item
6016 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6017 msgid "C<sha384>"
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6022 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6023 msgstr ""
6024
6025 # type: =item
6026 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6027 msgid "C<sha512>"
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6032 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6033 msgstr ""
6034
6035 # type: textblock
6036 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6037 msgid "The checksum is returned as a printable string."
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:923
6042 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6043 msgstr ""
6044
6045 # type: textblock
6046 #: ../src/guestfs-actions.pod:925
6047 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6052 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2893
6053 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:2983
6054 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:6245
6055 msgid "(Added in 1.0.2)"
6056 msgstr ""
6057
6058 # type: =head2
6059 #: ../src/guestfs-actions.pod:932
6060 msgid "guestfs_checksum_device"
6061 msgstr ""
6062
6063 # type: verbatim
6064 #: ../src/guestfs-actions.pod:934
6065 #, no-wrap
6066 msgid ""
6067 " char *\n"
6068 " guestfs_checksum_device (guestfs_h *g,\n"
6069 "                          const char *csumtype,\n"
6070 "                          const char *device);\n"
6071 "\n"
6072 msgstr ""
6073
6074 # type: textblock
6075 #: ../src/guestfs-actions.pod:939
6076 msgid ""
6077 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6078 "device named C<device>.  For the types of checksums supported see the "
6079 "C<guestfs_checksum> command."
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4358
6084 #: ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:4454
6085 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4648
6086 #: ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6173
6087 #: ../src/guestfs-actions.pod:6569
6088 msgid "(Added in 1.3.2)"
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:948
6093 msgid "guestfs_checksums_out"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:950
6098 #, no-wrap
6099 msgid ""
6100 " int\n"
6101 " guestfs_checksums_out (guestfs_h *g,\n"
6102 "                        const char *csumtype,\n"
6103 "                        const char *directory,\n"
6104 "                        const char *sumsfile);\n"
6105 "\n"
6106 msgstr ""
6107
6108 # type: textblock
6109 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6110 msgid ""
6111 "This command computes the checksums of all regular files in C<directory> and "
6112 "then emits a list of those checksums to the local output file C<sumsfile>."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6117 msgid ""
6118 "This can be used for verifying the integrity of a virtual machine.  However "
6119 "to be properly secure you should pay attention to the output of the checksum "
6120 "command (it uses the ones from GNU coreutils).  In particular when the "
6121 "filename is not printable, coreutils uses a special backslash syntax.  For "
6122 "more information, see the GNU coreutils info file."
6123 msgstr ""
6124
6125 # type: textblock
6126 #: ../src/guestfs-actions.pod:970
6127 msgid "(Added in 1.3.7)"
6128 msgstr ""
6129
6130 # type: =head2
6131 #: ../src/guestfs-actions.pod:972
6132 msgid "guestfs_chmod"
6133 msgstr ""
6134
6135 # type: verbatim
6136 #: ../src/guestfs-actions.pod:974
6137 #, no-wrap
6138 msgid ""
6139 " int\n"
6140 " guestfs_chmod (guestfs_h *g,\n"
6141 "                int mode,\n"
6142 "                const char *path);\n"
6143 "\n"
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6148 msgid ""
6149 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6150 "supported."
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6155 msgid ""
6156 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6157 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6158 "C<700>."
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:3942
6163 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4076
6164 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:671
6165 #: ../fish/guestfish-actions.pod:2631 ../fish/guestfish-actions.pod:2716
6166 #: ../fish/guestfish-actions.pod:2726 ../fish/guestfish-actions.pod:2736
6167 msgid "The mode actually set is affected by the umask."
6168 msgstr ""
6169
6170 # type: =head2
6171 #: ../src/guestfs-actions.pod:992
6172 msgid "guestfs_chown"
6173 msgstr ""
6174
6175 # type: verbatim
6176 #: ../src/guestfs-actions.pod:994
6177 #, no-wrap
6178 msgid ""
6179 " int\n"
6180 " guestfs_chown (guestfs_h *g,\n"
6181 "                int owner,\n"
6182 "                int group,\n"
6183 "                const char *path);\n"
6184 "\n"
6185 msgstr ""
6186
6187 # type: textblock
6188 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6189 msgid "Change the file owner to C<owner> and group to C<group>."
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3080
6194 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2109
6195 msgid ""
6196 "Only numeric uid and gid are supported.  If you want to use names, you will "
6197 "need to locate and parse the password file yourself (Augeas support makes "
6198 "this relatively easy)."
6199 msgstr ""
6200
6201 # type: =head2
6202 #: ../src/guestfs-actions.pod:1010
6203 msgid "guestfs_command"
6204 msgstr ""
6205
6206 # type: verbatim
6207 #: ../src/guestfs-actions.pod:1012
6208 #, no-wrap
6209 msgid ""
6210 " char *\n"
6211 " guestfs_command (guestfs_h *g,\n"
6212 "                  char *const *arguments);\n"
6213 "\n"
6214 msgstr ""
6215
6216 # type: textblock
6217 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6218 msgid ""
6219 "This call runs a command from the guest filesystem.  The filesystem must be "
6220 "mounted, and must contain a compatible operating system (ie. something "
6221 "Linux, with the same or compatible processor architecture)."
6222 msgstr ""
6223
6224 # type: textblock
6225 #: ../src/guestfs-actions.pod:1021
6226 msgid ""
6227 "The single parameter is an argv-style list of arguments.  The first element "
6228 "is the name of the program to run.  Subsequent elements are parameters.  The "
6229 "list must be non-empty (ie. must contain a program name).  Note that the "
6230 "command runs directly, and is I<not> invoked via the shell (see "
6231 "C<guestfs_sh>)."
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6236 msgid "The return value is anything printed to I<stdout> by the command."
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6241 msgid ""
6242 "If the command returns a non-zero exit status, then this function returns an "
6243 "error message.  The error message string is the content of I<stderr> from "
6244 "the command."
6245 msgstr ""
6246
6247 # type: textblock
6248 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6249 msgid ""
6250 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6251 "bin>.  If you require a program from another location, you should provide "
6252 "the full path in the first parameter."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6257 msgid ""
6258 "Shared libraries and data files required by the program must be available on "
6259 "filesystems which are mounted in the correct places.  It is the caller's "
6260 "responsibility to ensure all filesystems that are needed are mounted at the "
6261 "right locations."
6262 msgstr ""
6263
6264 # type: textblock
6265 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6266 #: ../src/guestfs-actions.pod:1535
6267 msgid "(Added in 0.9.1)"
6268 msgstr ""
6269
6270 # type: =head2
6271 #: ../src/guestfs-actions.pod:1054
6272 msgid "guestfs_command_lines"
6273 msgstr ""
6274
6275 # type: verbatim
6276 #: ../src/guestfs-actions.pod:1056
6277 #, no-wrap
6278 msgid ""
6279 " char **\n"
6280 " guestfs_command_lines (guestfs_h *g,\n"
6281 "                        char *const *arguments);\n"
6282 "\n"
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1060
6287 msgid ""
6288 "This is the same as C<guestfs_command>, but splits the result into a list of "
6289 "lines."
6290 msgstr ""
6291
6292 # type: textblock
6293 #: ../src/guestfs-actions.pod:1063
6294 msgid "See also: C<guestfs_sh_lines>"
6295 msgstr ""
6296
6297 # type: =head2
6298 #: ../src/guestfs-actions.pod:1074
6299 msgid "guestfs_config"
6300 msgstr ""
6301
6302 # type: verbatim
6303 #: ../src/guestfs-actions.pod:1076
6304 #, no-wrap
6305 msgid ""
6306 " int\n"
6307 " guestfs_config (guestfs_h *g,\n"
6308 "                 const char *qemuparam,\n"
6309 "                 const char *qemuvalue);\n"
6310 "\n"
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6315 msgid ""
6316 "This can be used to add arbitrary qemu command line parameters of the form "
6317 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6318 "setting some parameters which would interfere with parameters that we use."
6319 msgstr ""
6320
6321 # type: textblock
6322 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6323 msgid "The first character of C<param> string must be a C<-> (dash)."
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6328 msgid "C<value> can be NULL."
6329 msgstr ""
6330
6331 # type: =head2
6332 #: ../src/guestfs-actions.pod:1094
6333 msgid "guestfs_copy_size"
6334 msgstr ""
6335
6336 # type: verbatim
6337 #: ../src/guestfs-actions.pod:1096
6338 #, no-wrap
6339 msgid ""
6340 " int\n"
6341 " guestfs_copy_size (guestfs_h *g,\n"
6342 "                    const char *src,\n"
6343 "                    const char *dest,\n"
6344 "                    int64_t size);\n"
6345 "\n"
6346 msgstr ""
6347
6348 # type: textblock
6349 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6350 msgid ""
6351 "This command copies exactly C<size> bytes from one source device or file "
6352 "C<src> to another destination device or file C<dest>."
6353 msgstr ""
6354
6355 # type: textblock
6356 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6357 msgid ""
6358 "Note this will fail if the source is too short or if the destination is not "
6359 "large enough."
6360 msgstr ""
6361
6362 # type: textblock
6363 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6364 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6365 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6748
6366 #: ../src/guestfs-actions.pod:6767
6367 msgid ""
6368 "This long-running command can generate progress notification messages so "
6369 "that the caller can display a progress bar or indicator.  To receive these "
6370 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6371 "guestfs_set_progress_callback>."
6372 msgstr ""
6373
6374 # type: textblock
6375 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3718
6376 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:6476
6377 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6582
6378 msgid "(Added in 1.0.87)"
6379 msgstr ""
6380
6381 # type: =head2
6382 #: ../src/guestfs-actions.pod:1117
6383 msgid "guestfs_cp"
6384 msgstr ""
6385
6386 # type: verbatim
6387 #: ../src/guestfs-actions.pod:1119
6388 #, no-wrap
6389 msgid ""
6390 " int\n"
6391 " guestfs_cp (guestfs_h *g,\n"
6392 "             const char *src,\n"
6393 "             const char *dest);\n"
6394 "\n"
6395 msgstr ""
6396
6397 # type: textblock
6398 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6399 msgid ""
6400 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6401 "destination filename or destination directory."
6402 msgstr ""
6403
6404 # type: textblock
6405 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6406 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6407 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4321
6408 #: ../src/guestfs-actions.pod:4698
6409 msgid "(Added in 1.0.18)"
6410 msgstr ""
6411
6412 # type: =head2
6413 #: ../src/guestfs-actions.pod:1131
6414 msgid "guestfs_cp_a"
6415 msgstr ""
6416
6417 # type: verbatim
6418 #: ../src/guestfs-actions.pod:1133
6419 #, no-wrap
6420 msgid ""
6421 " int\n"
6422 " guestfs_cp_a (guestfs_h *g,\n"
6423 "               const char *src,\n"
6424 "               const char *dest);\n"
6425 "\n"
6426 msgstr ""
6427
6428 # type: textblock
6429 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6430 msgid ""
6431 "This copies a file or directory from C<src> to C<dest> recursively using the "
6432 "C<cp -a> command."
6433 msgstr ""
6434
6435 # type: =head2
6436 #: ../src/guestfs-actions.pod:1145
6437 msgid "guestfs_dd"
6438 msgstr ""
6439
6440 # type: verbatim
6441 #: ../src/guestfs-actions.pod:1147
6442 #, no-wrap
6443 msgid ""
6444 " int\n"
6445 " guestfs_dd (guestfs_h *g,\n"
6446 "             const char *src,\n"
6447 "             const char *dest);\n"
6448 "\n"
6449 msgstr ""
6450
6451 # type: textblock
6452 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6453 msgid ""
6454 "This command copies from one source device or file C<src> to another "
6455 "destination device or file C<dest>.  Normally you would use this to copy to "
6456 "or from a device or partition, for example to duplicate a filesystem."
6457 msgstr ""
6458
6459 # type: textblock
6460 #: ../src/guestfs-actions.pod:1157
6461 msgid ""
6462 "If the destination is a device, it must be as large or larger than the "
6463 "source file or device, otherwise the copy will fail.  This command cannot do "
6464 "partial copies (see C<guestfs_copy_size>)."
6465 msgstr ""
6466
6467 # type: =head2
6468 #: ../src/guestfs-actions.pod:1165
6469 msgid "guestfs_df"
6470 msgstr ""
6471
6472 # type: verbatim
6473 #: ../src/guestfs-actions.pod:1167
6474 #, no-wrap
6475 msgid ""
6476 " char *\n"
6477 " guestfs_df (guestfs_h *g);\n"
6478 "\n"
6479 msgstr ""
6480
6481 # type: textblock
6482 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6483 msgid "This command runs the C<df> command to report disk space used."
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6488 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6489 msgid ""
6490 "This command is mostly useful for interactive sessions.  It is I<not> "
6491 "intended that you try to parse the output string.  Use C<statvfs> from "
6492 "programs."
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6497 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6498 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6499 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:4221
6500 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6007
6501 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6628
6502 #: ../src/guestfs-actions.pod:6641
6503 msgid "(Added in 1.0.54)"
6504 msgstr ""
6505
6506 # type: =head2
6507 #: ../src/guestfs-actions.pod:1181
6508 msgid "guestfs_df_h"
6509 msgstr ""
6510
6511 # type: verbatim
6512 #: ../src/guestfs-actions.pod:1183
6513 #, no-wrap
6514 msgid ""
6515 " char *\n"
6516 " guestfs_df_h (guestfs_h *g);\n"
6517 "\n"
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6522 msgid ""
6523 "This command runs the C<df -h> command to report disk space used in human-"
6524 "readable format."
6525 msgstr ""
6526
6527 # type: =head2
6528 #: ../src/guestfs-actions.pod:1198
6529 msgid "guestfs_dmesg"
6530 msgstr ""
6531
6532 # type: verbatim
6533 #: ../src/guestfs-actions.pod:1200
6534 #, no-wrap
6535 msgid ""
6536 " char *\n"
6537 " guestfs_dmesg (guestfs_h *g);\n"
6538 "\n"
6539 msgstr ""
6540
6541 # type: textblock
6542 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6543 msgid ""
6544 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6545 "This is sometimes useful for extended debugging of problems."
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1207
6550 msgid ""
6551 "Another way to get the same information is to enable verbose messages with "
6552 "C<guestfs_set_verbose> or by setting the environment variable "
6553 "C<LIBGUESTFS_DEBUG=1> before running the program."
6554 msgstr ""
6555
6556 # type: =head2
6557 #: ../src/guestfs-actions.pod:1217
6558 msgid "guestfs_download"
6559 msgstr ""
6560
6561 # type: verbatim
6562 #: ../src/guestfs-actions.pod:1219
6563 #, no-wrap
6564 msgid ""
6565 " int\n"
6566 " guestfs_download (guestfs_h *g,\n"
6567 "                   const char *remotefilename,\n"
6568 "                   const char *filename);\n"
6569 "\n"
6570 msgstr ""
6571
6572 # type: textblock
6573 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6574 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6575 msgid ""
6576 "Download file C<remotefilename> and save it as C<filename> on the local "
6577 "machine."
6578 msgstr ""
6579
6580 # type: textblock
6581 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6239
6582 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4151
6583 msgid "C<filename> can also be a named pipe."
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1229
6588 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6589 msgstr ""
6590
6591 # type: =head2
6592 #: ../src/guestfs-actions.pod:1240
6593 msgid "guestfs_download_offset"
6594 msgstr ""
6595
6596 # type: verbatim
6597 #: ../src/guestfs-actions.pod:1242
6598 #, no-wrap
6599 msgid ""
6600 " int\n"
6601 " guestfs_download_offset (guestfs_h *g,\n"
6602 "                          const char *remotefilename,\n"
6603 "                          const char *filename,\n"
6604 "                          int64_t offset,\n"
6605 "                          int64_t size);\n"
6606 "\n"
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6611 msgid ""
6612 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6613 "region must be within the file or device)."
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1255
6618 msgid ""
6619 "Note that there is no limit on the amount of data that can be downloaded "
6620 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6621 "full amount unless an error occurs."
6622 msgstr ""
6623
6624 # type: textblock
6625 #: ../src/guestfs-actions.pod:1260
6626 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6627 msgstr ""
6628
6629 # type: textblock
6630 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6274
6631 msgid "(Added in 1.5.17)"
6632 msgstr ""
6633
6634 # type: =head2
6635 #: ../src/guestfs-actions.pod:1271
6636 msgid "guestfs_drop_caches"
6637 msgstr ""
6638
6639 # type: verbatim
6640 #: ../src/guestfs-actions.pod:1273
6641 #, no-wrap
6642 msgid ""
6643 " int\n"
6644 " guestfs_drop_caches (guestfs_h *g,\n"
6645 "                      int whattodrop);\n"
6646 "\n"
6647 msgstr ""
6648
6649 # type: textblock
6650 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6651 msgid ""
6652 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6653 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6654 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6655 msgstr ""
6656
6657 # type: textblock
6658 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6659 msgid "Setting C<whattodrop> to 3 should drop everything."
6660 msgstr ""
6661
6662 # type: textblock
6663 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6664 msgid ""
6665 "This automatically calls L<sync(2)> before the operation, so that the "
6666 "maximum guest memory is freed."
6667 msgstr ""
6668
6669 # type: =head2
6670 #: ../src/guestfs-actions.pod:1291
6671 msgid "guestfs_du"
6672 msgstr ""
6673
6674 # type: verbatim
6675 #: ../src/guestfs-actions.pod:1293
6676 #, no-wrap
6677 msgid ""
6678 " int64_t\n"
6679 " guestfs_du (guestfs_h *g,\n"
6680 "             const char *path);\n"
6681 "\n"
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6686 msgid ""
6687 "This command runs the C<du -s> command to estimate file space usage for "
6688 "C<path>."
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6693 msgid ""
6694 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6695 "estimate includes the contents of the directory and all subdirectories "
6696 "(recursively)."
6697 msgstr ""
6698
6699 # type: textblock
6700 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6701 msgid ""
6702 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6703 msgstr ""
6704
6705 # type: =head2
6706 #: ../src/guestfs-actions.pod:1311
6707 msgid "guestfs_e2fsck_f"
6708 msgstr ""
6709
6710 # type: verbatim
6711 #: ../src/guestfs-actions.pod:1313
6712 #, no-wrap
6713 msgid ""
6714 " int\n"
6715 " guestfs_e2fsck_f (guestfs_h *g,\n"
6716 "                   const char *device);\n"
6717 "\n"
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6722 msgid ""
6723 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6724 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6725 "clean (C<-f>)."
6726 msgstr ""
6727
6728 # type: textblock
6729 #: ../src/guestfs-actions.pod:1321
6730 msgid ""
6731 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6732 "Normally you should use C<guestfs_fsck>."
6733 msgstr ""
6734
6735 # type: textblock
6736 #: ../src/guestfs-actions.pod:1326
6737 msgid "(Added in 1.0.29)"
6738 msgstr ""
6739
6740 # type: =head2
6741 #: ../src/guestfs-actions.pod:1328
6742 msgid "guestfs_echo_daemon"
6743 msgstr ""
6744
6745 # type: verbatim
6746 #: ../src/guestfs-actions.pod:1330
6747 #, no-wrap
6748 msgid ""
6749 " char *\n"
6750 " guestfs_echo_daemon (guestfs_h *g,\n"
6751 "                      char *const *words);\n"
6752 "\n"
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6757 msgid ""
6758 "This command concatenates the list of C<words> passed with single spaces "
6759 "between them and returns the resulting string."
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6764 msgid "You can use this command to test the connection through to the daemon."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1339
6769 msgid "See also C<guestfs_ping_daemon>."
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6774 #: ../src/guestfs-actions.pod:5487
6775 msgid "(Added in 1.0.69)"
6776 msgstr ""
6777
6778 # type: =head2
6779 #: ../src/guestfs-actions.pod:1346
6780 msgid "guestfs_egrep"
6781 msgstr ""
6782
6783 # type: verbatim
6784 #: ../src/guestfs-actions.pod:1348
6785 #, no-wrap
6786 msgid ""
6787 " char **\n"
6788 " guestfs_egrep (guestfs_h *g,\n"
6789 "                const char *regex,\n"
6790 "                const char *path);\n"
6791 "\n"
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6796 msgid ""
6797 "This calls the external C<egrep> program and returns the matching lines."
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6802 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6803 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6804 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6805 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6806 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6807 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3211
6808 #: ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:3238
6809 #: ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:4156
6810 #: ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5081
6811 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:5863
6812 #: ../src/guestfs-actions.pod:5876 ../src/guestfs-actions.pod:5889
6813 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5924
6814 #: ../src/guestfs-actions.pod:5937 ../src/guestfs-actions.pod:5950
6815 #: ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6730
6816 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
6817 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6899
6818 msgid "(Added in 1.0.66)"
6819 msgstr ""
6820
6821 # type: =head2
6822 #: ../src/guestfs-actions.pod:1365
6823 msgid "guestfs_egrepi"
6824 msgstr ""
6825
6826 # type: verbatim
6827 #: ../src/guestfs-actions.pod:1367
6828 #, no-wrap
6829 msgid ""
6830 " char **\n"
6831 " guestfs_egrepi (guestfs_h *g,\n"
6832 "                 const char *regex,\n"
6833 "                 const char *path);\n"
6834 "\n"
6835 msgstr ""
6836
6837 # type: textblock
6838 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6839 msgid ""
6840 "This calls the external C<egrep -i> program and returns the matching lines."
6841 msgstr ""
6842
6843 # type: =head2
6844 #: ../src/guestfs-actions.pod:1384
6845 msgid "guestfs_equal"
6846 msgstr ""
6847
6848 # type: verbatim
6849 #: ../src/guestfs-actions.pod:1386
6850 #, no-wrap
6851 msgid ""
6852 " int\n"
6853 " guestfs_equal (guestfs_h *g,\n"
6854 "                const char *file1,\n"
6855 "                const char *file2);\n"
6856 "\n"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6861 msgid ""
6862 "This compares the two files C<file1> and C<file2> and returns true if their "
6863 "content is exactly equal, or false otherwise."
6864 msgstr ""
6865
6866 # type: textblock
6867 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6868 msgid "The external L<cmp(1)> program is used for the comparison."
6869 msgstr ""
6870
6871 # type: =head2
6872 #: ../src/guestfs-actions.pod:1400
6873 msgid "guestfs_exists"
6874 msgstr ""
6875
6876 # type: verbatim
6877 #: ../src/guestfs-actions.pod:1402
6878 #, no-wrap
6879 msgid ""
6880 " int\n"
6881 " guestfs_exists (guestfs_h *g,\n"
6882 "                 const char *path);\n"
6883 "\n"
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6888 msgid ""
6889 "This returns C<true> if and only if there is a file, directory (or anything) "
6890 "with the given C<path> name."
6891 msgstr ""
6892
6893 # type: textblock
6894 #: ../src/guestfs-actions.pod:1409
6895 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6896 msgstr ""
6897
6898 # type: =head2
6899 #: ../src/guestfs-actions.pod:1415
6900 msgid "guestfs_fallocate"
6901 msgstr ""
6902
6903 # type: verbatim
6904 #: ../src/guestfs-actions.pod:1417
6905 #, no-wrap
6906 msgid ""
6907 " int\n"
6908 " guestfs_fallocate (guestfs_h *g,\n"
6909 "                    const char *path,\n"
6910 "                    int len);\n"
6911 "\n"
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6916 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6917 msgid ""
6918 "This command preallocates a file (containing zero bytes) named C<path> of "
6919 "size C<len> bytes.  If the file exists already, it is overwritten."
6920 msgstr ""
6921
6922 # type: textblock
6923 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6924 msgid ""
6925 "Do not confuse this with the guestfish-specific C<alloc> command which "
6926 "allocates a file in the host and attaches it as a device."
6927 msgstr ""
6928
6929 # type: textblock
6930 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6931 msgid ""
6932 "This function is deprecated.  In new code, use the C<fallocate64> call "
6933 "instead."
6934 msgstr ""
6935
6936 # type: =head2
6937 #: ../src/guestfs-actions.pod:1441
6938 msgid "guestfs_fallocate64"
6939 msgstr ""
6940
6941 # type: verbatim
6942 #: ../src/guestfs-actions.pod:1443
6943 #, no-wrap
6944 msgid ""
6945 " int\n"
6946 " guestfs_fallocate64 (guestfs_h *g,\n"
6947 "                      const char *path,\n"
6948 "                      int64_t len);\n"
6949 "\n"
6950 msgstr ""
6951
6952 # type: textblock
6953 #: ../src/guestfs-actions.pod:1452
6954 msgid ""
6955 "Note that this call allocates disk blocks for the file.  To create a sparse "
6956 "file use C<guestfs_truncate_size> instead."
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1455
6961 msgid ""
6962 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6963 "oversight it only allowed 30 bit lengths to be specified, effectively "
6964 "limiting the maximum size of files created through that call to 1GB."
6965 msgstr ""
6966
6967 # type: textblock
6968 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6969 msgid ""
6970 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6971 "commands which create a file in the host and attach it as a device."
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1466
6976 msgid "(Added in 1.3.17)"
6977 msgstr ""
6978
6979 # type: =head2
6980 #: ../src/guestfs-actions.pod:1468
6981 msgid "guestfs_fgrep"
6982 msgstr ""
6983
6984 # type: verbatim
6985 #: ../src/guestfs-actions.pod:1470
6986 #, no-wrap
6987 msgid ""
6988 " char **\n"
6989 " guestfs_fgrep (guestfs_h *g,\n"
6990 "                const char *pattern,\n"
6991 "                const char *path);\n"
6992 "\n"
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6997 msgid ""
6998 "This calls the external C<fgrep> program and returns the matching lines."
6999 msgstr ""
7000
7001 # type: =head2
7002 #: ../src/guestfs-actions.pod:1487
7003 msgid "guestfs_fgrepi"
7004 msgstr ""
7005
7006 # type: verbatim
7007 #: ../src/guestfs-actions.pod:1489
7008 #, no-wrap
7009 msgid ""
7010 " char **\n"
7011 " guestfs_fgrepi (guestfs_h *g,\n"
7012 "                 const char *pattern,\n"
7013 "                 const char *path);\n"
7014 "\n"
7015 msgstr ""
7016
7017 # type: textblock
7018 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7019 msgid ""
7020 "This calls the external C<fgrep -i> program and returns the matching lines."
7021 msgstr ""
7022
7023 # type: =head2
7024 #: ../src/guestfs-actions.pod:1506
7025 msgid "guestfs_file"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #: ../src/guestfs-actions.pod:1508
7030 #, no-wrap
7031 msgid ""
7032 " char *\n"
7033 " guestfs_file (guestfs_h *g,\n"
7034 "               const char *path);\n"
7035 "\n"
7036 msgstr ""
7037
7038 # type: textblock
7039 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7040 msgid ""
7041 "This call uses the standard L<file(1)> command to determine the type or "
7042 "contents of the file."
7043 msgstr ""
7044
7045 # type: textblock
7046 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7047 msgid ""
7048 "This call will also transparently look inside various types of compressed "
7049 "file."
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7054 msgid ""
7055 "The exact command which runs is C<file -zb path>.  Note in particular that "
7056 "the filename is not prepended to the output (the C<-b> option)."
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1522
7061 msgid ""
7062 "This command can also be used on C</dev/> devices (and partitions, LV "
7063 "names).  You can for example use this to determine if a device contains a "
7064 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7069 msgid ""
7070 "If the C<path> does not begin with C</dev/> then this command only works for "
7071 "the content of regular files.  For other file types (directory, symbolic "
7072 "link etc) it will just return the string C<directory> etc."
7073 msgstr ""
7074
7075 # type: =head2
7076 #: ../src/guestfs-actions.pod:1537
7077 msgid "guestfs_file_architecture"
7078 msgstr ""
7079
7080 # type: verbatim
7081 #: ../src/guestfs-actions.pod:1539
7082 #, no-wrap
7083 msgid ""
7084 " char *\n"
7085 " guestfs_file_architecture (guestfs_h *g,\n"
7086 "                            const char *filename);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7092 msgid ""
7093 "This detects the architecture of the binary C<filename>, and returns it if "
7094 "known."
7095 msgstr ""
7096
7097 # type: textblock
7098 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7099 msgid "Currently defined architectures are:"
7100 msgstr ""
7101
7102 # type: =item
7103 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7104 msgid "\"i386\""
7105 msgstr ""
7106
7107 # type: textblock
7108 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7109 msgid ""
7110 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7111 "irrespective of the precise processor requirements of the binary."
7112 msgstr ""
7113
7114 # type: =item
7115 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7116 msgid "\"x86_64\""
7117 msgstr ""
7118
7119 # type: textblock
7120 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7121 msgid "64 bit x86-64."
7122 msgstr ""
7123
7124 # type: =item
7125 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7126 msgid "\"sparc\""
7127 msgstr ""
7128
7129 # type: textblock
7130 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7131 msgid "32 bit SPARC."
7132 msgstr ""
7133
7134 # type: =item
7135 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7136 msgid "\"sparc64\""
7137 msgstr ""
7138
7139 # type: textblock
7140 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7141 msgid "64 bit SPARC V9 and above."
7142 msgstr ""
7143
7144 # type: =item
7145 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7146 msgid "\"ia64\""
7147 msgstr ""
7148
7149 # type: textblock
7150 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7151 msgid "Intel Itanium."
7152 msgstr ""
7153
7154 # type: =item
7155 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7156 msgid "\"ppc\""
7157 msgstr ""
7158
7159 # type: textblock
7160 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7161 msgid "32 bit Power PC."
7162 msgstr ""
7163
7164 # type: =item
7165 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7166 msgid "\"ppc64\""
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7171 msgid "64 bit Power PC."
7172 msgstr ""
7173
7174 # type: textblock
7175 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7176 msgid "Libguestfs may return other architecture strings in future."
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7181 msgid "The function works on at least the following types of files:"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7186 msgid "many types of Un*x and Linux binary"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7191 msgid "many types of Un*x and Linux shared library"
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7196 msgid "Windows Win32 and Win64 binaries"
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7201 msgid "Windows Win32 and Win64 DLLs"
7202 msgstr ""
7203
7204 # type: textblock
7205 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7206 msgid "Win32 binaries and DLLs return C<i386>."
7207 msgstr ""
7208
7209 # type: textblock
7210 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7211 msgid "Win64 binaries and DLLs return C<x86_64>."
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7216 msgid "Linux kernel modules"
7217 msgstr ""
7218
7219 # type: textblock
7220 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7221 msgid "Linux new-style initrd images"
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7226 msgid "some non-x86 Linux vmlinuz kernels"
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7231 msgid "What it can't do currently:"
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7236 msgid "static libraries (libfoo.a)"
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7241 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7242 msgstr ""
7243
7244 # type: textblock
7245 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7246 msgid "x86 Linux vmlinuz kernels"
7247 msgstr ""
7248
7249 # type: textblock
7250 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7251 msgid ""
7252 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7253 "compressed code, and are horribly hard to unpack.  If you want to find the "
7254 "architecture of a kernel, use the architecture of the associated initrd or "
7255 "kernel module(s) instead."
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7260 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7261 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2577
7262 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2625
7263 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2738
7264 #: ../src/guestfs-actions.pod:2798 ../src/guestfs-actions.pod:2864
7265 #: ../src/guestfs-actions.pod:2996
7266 msgid "(Added in 1.5.3)"
7267 msgstr ""
7268
7269 # type: =head2
7270 #: ../src/guestfs-actions.pod:1649
7271 msgid "guestfs_filesize"
7272 msgstr ""
7273
7274 # type: verbatim
7275 #: ../src/guestfs-actions.pod:1651
7276 #, no-wrap
7277 msgid ""
7278 " int64_t\n"
7279 " guestfs_filesize (guestfs_h *g,\n"
7280 "                   const char *file);\n"
7281 "\n"
7282 msgstr ""
7283
7284 # type: textblock
7285 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7286 msgid "This command returns the size of C<file> in bytes."
7287 msgstr ""
7288
7289 # type: textblock
7290 #: ../src/guestfs-actions.pod:1657
7291 msgid ""
7292 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7293 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7294 "devices, use C<guestfs_blockdev_getsize64>."
7295 msgstr ""
7296
7297 # type: textblock
7298 #: ../src/guestfs-actions.pod:1663
7299 msgid "(Added in 1.0.82)"
7300 msgstr ""
7301
7302 # type: =head2
7303 #: ../src/guestfs-actions.pod:1665
7304 msgid "guestfs_fill"
7305 msgstr ""
7306
7307 # type: verbatim
7308 #: ../src/guestfs-actions.pod:1667
7309 #, no-wrap
7310 msgid ""
7311 " int\n"
7312 " guestfs_fill (guestfs_h *g,\n"
7313 "               int c,\n"
7314 "               int len,\n"
7315 "               const char *path);\n"
7316 "\n"
7317 msgstr ""
7318
7319 # type: textblock
7320 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7321 msgid ""
7322 "This command creates a new file called C<path>.  The initial content of the "
7323 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7324 "[0..255]>."
7325 msgstr ""
7326
7327 # type: textblock
7328 #: ../src/guestfs-actions.pod:1677
7329 msgid ""
7330 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7331 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7332 "bytes use C<guestfs_fill_pattern>."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1689
7337 msgid "(Added in 1.0.79)"
7338 msgstr ""
7339
7340 # type: =head2
7341 #: ../src/guestfs-actions.pod:1691
7342 msgid "guestfs_fill_pattern"
7343 msgstr ""
7344
7345 # type: verbatim
7346 #: ../src/guestfs-actions.pod:1693
7347 #, no-wrap
7348 msgid ""
7349 " int\n"
7350 " guestfs_fill_pattern (guestfs_h *g,\n"
7351 "                       const char *pattern,\n"
7352 "                       int len,\n"
7353 "                       const char *path);\n"
7354 "\n"
7355 msgstr ""
7356
7357 # type: textblock
7358 #: ../src/guestfs-actions.pod:1699
7359 msgid ""
7360 "This function is like C<guestfs_fill> except that it creates a new file of "
7361 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7362 "pattern is truncated if necessary to ensure the length of the file is "
7363 "exactly C<len> bytes."
7364 msgstr ""
7365
7366 # type: textblock
7367 #: ../src/guestfs-actions.pod:1711
7368 msgid "(Added in 1.3.12)"
7369 msgstr ""
7370
7371 # type: =head2
7372 #: ../src/guestfs-actions.pod:1713
7373 msgid "guestfs_find"
7374 msgstr ""
7375
7376 # type: verbatim
7377 #: ../src/guestfs-actions.pod:1715
7378 #, no-wrap
7379 msgid ""
7380 " char **\n"
7381 " guestfs_find (guestfs_h *g,\n"
7382 "               const char *directory);\n"
7383 "\n"
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7388 msgid ""
7389 "This command lists out all files and directories, recursively, starting at "
7390 "C<directory>.  It is essentially equivalent to running the shell command "
7391 "C<find directory -print> but some post-processing happens on the output, "
7392 "described below."
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7397 msgid ""
7398 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7399 "structure was:"
7400 msgstr ""
7401
7402 # type: verbatim
7403 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7404 #, no-wrap
7405 msgid ""
7406 " /tmp/a\n"
7407 " /tmp/b\n"
7408 " /tmp/c/d\n"
7409 "\n"
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:1731
7414 msgid ""
7415 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7416 msgstr ""
7417
7418 # type: verbatim
7419 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7420 #, no-wrap
7421 msgid ""
7422 " a\n"
7423 " b\n"
7424 " c\n"
7425 " c/d\n"
7426 "\n"
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7431 msgid "If C<directory> is not a directory, then this command returns an error."
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7436 msgid "The returned list is sorted."
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:1744
7441 msgid "See also C<guestfs_find0>."
7442 msgstr ""
7443
7444 # type: textblock
7445 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3655
7446 #: ../src/guestfs-actions.pod:5116
7447 msgid "(Added in 1.0.27)"
7448 msgstr ""
7449
7450 # type: =head2
7451 #: ../src/guestfs-actions.pod:1755
7452 msgid "guestfs_find0"
7453 msgstr ""
7454
7455 # type: verbatim
7456 #: ../src/guestfs-actions.pod:1757
7457 #, no-wrap
7458 msgid ""
7459 " int\n"
7460 " guestfs_find0 (guestfs_h *g,\n"
7461 "                const char *directory,\n"
7462 "                const char *files);\n"
7463 "\n"
7464 msgstr ""
7465
7466 # type: textblock
7467 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7468 msgid ""
7469 "This command lists out all files and directories, recursively, starting at "
7470 "C<directory>, placing the resulting list in the external file called "
7471 "C<files>."
7472 msgstr ""
7473
7474 # type: textblock
7475 #: ../src/guestfs-actions.pod:1766
7476 msgid ""
7477 "This command works the same way as C<guestfs_find> with the following "
7478 "exceptions:"
7479 msgstr ""
7480
7481 # type: textblock
7482 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7483 msgid "The resulting list is written to an external file."
7484 msgstr ""
7485
7486 # type: textblock
7487 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7488 msgid ""
7489 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7490 "L<find(1)> option I<-print0>."
7491 msgstr ""
7492
7493 # type: textblock
7494 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7495 msgid "This command is not limited in the number of names that it can return."
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7500 msgid "The result list is not sorted."
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:1793
7505 msgid "(Added in 1.0.74)"
7506 msgstr ""
7507
7508 # type: =head2
7509 #: ../src/guestfs-actions.pod:1795
7510 msgid "guestfs_findfs_label"
7511 msgstr ""
7512
7513 # type: verbatim
7514 #: ../src/guestfs-actions.pod:1797
7515 #, no-wrap
7516 msgid ""
7517 " char *\n"
7518 " guestfs_findfs_label (guestfs_h *g,\n"
7519 "                       const char *label);\n"
7520 "\n"
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7525 msgid ""
7526 "This command searches the filesystems and returns the one which has the "
7527 "given label.  An error is returned if no such filesystem can be found."
7528 msgstr ""
7529
7530 # type: textblock
7531 #: ../src/guestfs-actions.pod:1805
7532 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7533 msgstr ""
7534
7535 # type: =head2
7536 #: ../src/guestfs-actions.pod:1812
7537 msgid "guestfs_findfs_uuid"
7538 msgstr ""
7539
7540 # type: verbatim
7541 #: ../src/guestfs-actions.pod:1814
7542 #, no-wrap
7543 msgid ""
7544 " char *\n"
7545 " guestfs_findfs_uuid (guestfs_h *g,\n"
7546 "                      const char *uuid);\n"
7547 "\n"
7548 msgstr ""
7549
7550 # type: textblock
7551 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7552 msgid ""
7553 "This command searches the filesystems and returns the one which has the "
7554 "given UUID.  An error is returned if no such filesystem can be found."
7555 msgstr ""
7556
7557 # type: textblock
7558 #: ../src/guestfs-actions.pod:1822
7559 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7560 msgstr ""
7561
7562 # type: =head2
7563 #: ../src/guestfs-actions.pod:1829
7564 msgid "guestfs_fsck"
7565 msgstr ""
7566
7567 # type: verbatim
7568 #: ../src/guestfs-actions.pod:1831
7569 #, no-wrap
7570 msgid ""
7571 " int\n"
7572 " guestfs_fsck (guestfs_h *g,\n"
7573 "               const char *fstype,\n"
7574 "               const char *device);\n"
7575 "\n"
7576 msgstr ""
7577
7578 # type: textblock
7579 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7580 msgid ""
7581 "This runs the filesystem checker (fsck) on C<device> which should have "
7582 "filesystem type C<fstype>."
7583 msgstr ""
7584
7585 # type: textblock
7586 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7587 msgid ""
7588 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7589 "codes from C<fsck>."
7590 msgstr ""
7591
7592 # type: textblock
7593 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7594 msgid "Multiple status codes can be summed together."
7595 msgstr ""
7596
7597 # type: textblock
7598 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7599 msgid ""
7600 "A non-zero return code can mean \"success\", for example if errors have been "
7601 "corrected on the filesystem."
7602 msgstr ""
7603
7604 # type: textblock
7605 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7606 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7611 msgid ""
7612 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7613 msgstr ""
7614
7615 # type: textblock
7616 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6753
7617 msgid "(Added in 1.0.16)"
7618 msgstr ""
7619
7620 # type: =head2
7621 #: ../src/guestfs-actions.pod:1868
7622 msgid "guestfs_get_append"
7623 msgstr ""
7624
7625 # type: verbatim
7626 #: ../src/guestfs-actions.pod:1870
7627 #, no-wrap
7628 msgid ""
7629 " const char *\n"
7630 " guestfs_get_append (guestfs_h *g);\n"
7631 "\n"
7632 msgstr ""
7633
7634 # type: textblock
7635 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7636 msgid ""
7637 "Return the additional kernel options which are added to the guest kernel "
7638 "command line."
7639 msgstr ""
7640
7641 # type: textblock
7642 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7643 msgid "If C<NULL> then no options are added."
7644 msgstr ""
7645
7646 # type: textblock
7647 #: ../src/guestfs-actions.pod:1878
7648 msgid ""
7649 "This function returns a string which may be NULL.  There is no way to return "
7650 "an error from this function.  The string is owned by the guest handle and "
7651 "must I<not> be freed."
7652 msgstr ""
7653
7654 # type: textblock
7655 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4794
7656 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5625
7657 #: ../src/guestfs-actions.pod:5644 ../src/guestfs-actions.pod:5660
7658 #: ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:6424
7659 #: ../src/guestfs-actions.pod:6442 ../src/guestfs-actions.pod:6796
7660 msgid "(Added in 1.0.26)"
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:1884
7665 msgid "guestfs_get_autosync"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:1886
7670 #, no-wrap
7671 msgid ""
7672 " int\n"
7673 " guestfs_get_autosync (guestfs_h *g);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7679 msgid "Get the autosync flag."
7680 msgstr ""
7681
7682 # type: =head2
7683 #: ../src/guestfs-actions.pod:1895
7684 msgid "guestfs_get_direct"
7685 msgstr ""
7686
7687 # type: verbatim
7688 #: ../src/guestfs-actions.pod:1897
7689 #, no-wrap
7690 msgid ""
7691 " int\n"
7692 " guestfs_get_direct (guestfs_h *g);\n"
7693 "\n"
7694 msgstr ""
7695
7696 # type: textblock
7697 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7698 msgid "Return the direct appliance mode flag."
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5298
7703 msgid "(Added in 1.0.72)"
7704 msgstr ""
7705
7706 # type: =head2
7707 #: ../src/guestfs-actions.pod:1906
7708 msgid "guestfs_get_e2label"
7709 msgstr ""
7710
7711 # type: verbatim
7712 #: ../src/guestfs-actions.pod:1908
7713 #, no-wrap
7714 msgid ""
7715 " char *\n"
7716 " guestfs_get_e2label (guestfs_h *g,\n"
7717 "                      const char *device);\n"
7718 "\n"
7719 msgstr ""
7720
7721 # type: textblock
7722 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7723 msgid ""
7724 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7729 msgid ""
7730 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7731 msgstr ""
7732
7733 # type: textblock
7734 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7735 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5335
7736 msgid "(Added in 1.0.15)"
7737 msgstr ""
7738
7739 # type: =head2
7740 #: ../src/guestfs-actions.pod:1927
7741 msgid "guestfs_get_e2uuid"
7742 msgstr ""
7743
7744 # type: verbatim
7745 #: ../src/guestfs-actions.pod:1929
7746 #, no-wrap
7747 msgid ""
7748 " char *\n"
7749 " guestfs_get_e2uuid (guestfs_h *g,\n"
7750 "                     const char *device);\n"
7751 "\n"
7752 msgstr ""
7753
7754 # type: textblock
7755 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7756 msgid ""
7757 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7758 msgstr ""
7759
7760 # type: textblock
7761 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7762 msgid ""
7763 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7764 msgstr ""
7765
7766 # type: =head2
7767 #: ../src/guestfs-actions.pod:1948
7768 msgid "guestfs_get_memsize"
7769 msgstr ""
7770
7771 # type: verbatim
7772 #: ../src/guestfs-actions.pod:1950
7773 #, no-wrap
7774 msgid ""
7775 " int\n"
7776 " guestfs_get_memsize (guestfs_h *g);\n"
7777 "\n"
7778 msgstr ""
7779
7780 # type: textblock
7781 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7782 msgid ""
7783 "This gets the memory size in megabytes allocated to the qemu subprocess."
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:1956
7788 msgid ""
7789 "If C<guestfs_set_memsize> was not called on this handle, and if "
7790 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7791 "value for memsize."
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7796 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5458
7797 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7798 #: ../fish/guestfish-actions.pod:3558 ../fish/guestfish-actions.pod:3645
7799 msgid ""
7800 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:3946
7805 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4080
7806 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4111
7807 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4141
7808 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5356
7809 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:6200
7810 msgid "(Added in 1.0.55)"
7811 msgstr ""
7812
7813 # type: =head2
7814 #: ../src/guestfs-actions.pod:1967
7815 msgid "guestfs_get_network"
7816 msgstr ""
7817
7818 # type: verbatim
7819 #: ../src/guestfs-actions.pod:1969
7820 #, no-wrap
7821 msgid ""
7822 " int\n"
7823 " guestfs_get_network (guestfs_h *g);\n"
7824 "\n"
7825 msgstr ""
7826
7827 # type: textblock
7828 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7829 msgid "This returns the enable network flag."
7830 msgstr ""
7831
7832 # type: textblock
7833 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5375
7834 msgid "(Added in 1.5.4)"
7835 msgstr ""
7836
7837 # type: =head2
7838 #: ../src/guestfs-actions.pod:1978
7839 msgid "guestfs_get_path"
7840 msgstr ""
7841
7842 # type: verbatim
7843 #: ../src/guestfs-actions.pod:1980
7844 #, no-wrap
7845 msgid ""
7846 " const char *\n"
7847 " guestfs_get_path (guestfs_h *g);\n"
7848 "\n"
7849 msgstr ""
7850
7851 # type: textblock
7852 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7853 msgid "Return the current search path."
7854 msgstr ""
7855
7856 # type: textblock
7857 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7858 msgid ""
7859 "This is always non-NULL.  If it wasn't set already, then this will return "
7860 "the default path."
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7865 msgid ""
7866 "This function returns a string, or NULL on error.  The string is owned by "
7867 "the guest handle and must I<not> be freed."
7868 msgstr ""
7869
7870 # type: =head2
7871 #: ../src/guestfs-actions.pod:1993
7872 msgid "guestfs_get_pid"
7873 msgstr ""
7874
7875 # type: verbatim
7876 #: ../src/guestfs-actions.pod:1995
7877 #, no-wrap
7878 msgid ""
7879 " int\n"
7880 " guestfs_get_pid (guestfs_h *g);\n"
7881 "\n"
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7886 msgid ""
7887 "Return the process ID of the qemu subprocess.  If there is no qemu "
7888 "subprocess, then this will return an error."
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7893 msgid "This is an internal call used for debugging and testing."
7894 msgstr ""
7895
7896 # type: textblock
7897 #: ../src/guestfs-actions.pod:2005
7898 msgid "(Added in 1.0.56)"
7899 msgstr ""
7900
7901 # type: =head2
7902 #: ../src/guestfs-actions.pod:2007
7903 msgid "guestfs_get_qemu"
7904 msgstr ""
7905
7906 # type: verbatim
7907 #: ../src/guestfs-actions.pod:2009
7908 #, no-wrap
7909 msgid ""
7910 " const char *\n"
7911 " guestfs_get_qemu (guestfs_h *g);\n"
7912 "\n"
7913 msgstr ""
7914
7915 # type: textblock
7916 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7917 msgid "Return the current qemu binary."
7918 msgstr ""
7919
7920 # type: textblock
7921 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7922 msgid ""
7923 "This is always non-NULL.  If it wasn't set already, then this will return "
7924 "the default qemu binary name."
7925 msgstr ""
7926
7927 # type: textblock
7928 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5420
7929 msgid "(Added in 1.0.6)"
7930 msgstr ""
7931
7932 # type: =head2
7933 #: ../src/guestfs-actions.pod:2022
7934 msgid "guestfs_get_recovery_proc"
7935 msgstr ""
7936
7937 # type: verbatim
7938 #: ../src/guestfs-actions.pod:2024
7939 #, no-wrap
7940 msgid ""
7941 " int\n"
7942 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7943 "\n"
7944 msgstr ""
7945
7946 # type: textblock
7947 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7948 msgid "Return the recovery process enabled flag."
7949 msgstr ""
7950
7951 # type: textblock
7952 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3086
7953 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3753
7954 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:4724
7955 #: ../src/guestfs-actions.pod:5067 ../src/guestfs-actions.pod:5444
7956 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6123
7957 #: ../src/guestfs-actions.pod:6305
7958 msgid "(Added in 1.0.77)"
7959 msgstr ""
7960
7961 # type: =head2
7962 #: ../src/guestfs-actions.pod:2033
7963 msgid "guestfs_get_selinux"
7964 msgstr ""
7965
7966 # type: verbatim
7967 #: ../src/guestfs-actions.pod:2035
7968 #, no-wrap
7969 msgid ""
7970 " int\n"
7971 " guestfs_get_selinux (guestfs_h *g);\n"
7972 "\n"
7973 msgstr ""
7974
7975 # type: textblock
7976 #: ../src/guestfs-actions.pod:2038
7977 msgid ""
7978 "This returns the current setting of the selinux flag which is passed to the "
7979 "appliance at boot time.  See C<guestfs_set_selinux>."
7980 msgstr ""
7981
7982 # type: textblock
7983 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7984 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5517
7985 msgid "(Added in 1.0.67)"
7986 msgstr ""
7987
7988 # type: =head2
7989 #: ../src/guestfs-actions.pod:2048
7990 msgid "guestfs_get_state"
7991 msgstr ""
7992
7993 # type: verbatim
7994 #: ../src/guestfs-actions.pod:2050
7995 #, no-wrap
7996 msgid ""
7997 " int\n"
7998 " guestfs_get_state (guestfs_h *g);\n"
7999 "\n"
8000 msgstr ""
8001
8002 # type: textblock
8003 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8004 msgid ""
8005 "This returns the current state as an opaque integer.  This is only useful "
8006 "for printing debug and internal error messages."
8007 msgstr ""
8008
8009 # type: textblock
8010 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2889
8011 #: ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2979
8012 #: ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:1398
8013 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2009
8014 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2063
8015 msgid "For more information on states, see L<guestfs(3)>."
8016 msgstr ""
8017
8018 # type: =head2
8019 #: ../src/guestfs-actions.pod:2062
8020 msgid "guestfs_get_trace"
8021 msgstr ""
8022
8023 # type: verbatim
8024 #: ../src/guestfs-actions.pod:2064
8025 #, no-wrap
8026 msgid ""
8027 " int\n"
8028 " guestfs_get_trace (guestfs_h *g);\n"
8029 "\n"
8030 msgstr ""
8031
8032 # type: textblock
8033 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8034 msgid "Return the command trace flag."
8035 msgstr ""
8036
8037 # type: =head2
8038 #: ../src/guestfs-actions.pod:2073
8039 msgid "guestfs_get_umask"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #: ../src/guestfs-actions.pod:2075
8044 #, no-wrap
8045 msgid ""
8046 " int\n"
8047 " guestfs_get_umask (guestfs_h *g);\n"
8048 "\n"
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2078
8053 msgid ""
8054 "Return the current umask.  By default the umask is C<022> unless it has been "
8055 "set by calling C<guestfs_umask>."
8056 msgstr ""
8057
8058 # type: =head2
8059 #: ../src/guestfs-actions.pod:2085
8060 msgid "guestfs_get_verbose"
8061 msgstr ""
8062
8063 # type: verbatim
8064 #: ../src/guestfs-actions.pod:2087
8065 #, no-wrap
8066 msgid ""
8067 " int\n"
8068 " guestfs_get_verbose (guestfs_h *g);\n"
8069 "\n"
8070 msgstr ""
8071
8072 # type: textblock
8073 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8074 msgid "This returns the verbose messages flag."
8075 msgstr ""
8076
8077 # type: =head2
8078 #: ../src/guestfs-actions.pod:2096
8079 msgid "guestfs_getcon"
8080 msgstr ""
8081
8082 # type: verbatim
8083 #: ../src/guestfs-actions.pod:2098
8084 #, no-wrap
8085 msgid ""
8086 " char *\n"
8087 " guestfs_getcon (guestfs_h *g);\n"
8088 "\n"
8089 msgstr ""
8090
8091 # type: textblock
8092 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8093 msgid "This gets the SELinux security context of the daemon."
8094 msgstr ""
8095
8096 # type: textblock
8097 #: ../src/guestfs-actions.pod:2103
8098 msgid ""
8099 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8100 msgstr ""
8101
8102 # type: =head2
8103 #: ../src/guestfs-actions.pod:2111
8104 msgid "guestfs_getxattrs"
8105 msgstr ""
8106
8107 # type: verbatim
8108 #: ../src/guestfs-actions.pod:2113
8109 #, no-wrap
8110 msgid ""
8111 " struct guestfs_xattr_list *\n"
8112 " guestfs_getxattrs (guestfs_h *g,\n"
8113 "                    const char *path);\n"
8114 "\n"
8115 msgstr ""
8116
8117 # type: textblock
8118 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8119 msgid ""
8120 "This call lists the extended attributes of the file or directory C<path>."
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8125 msgid ""
8126 "At the system call level, this is a combination of the L<listxattr(2)> and "
8127 "L<getxattr(2)> calls."
8128 msgstr ""
8129
8130 # type: textblock
8131 #: ../src/guestfs-actions.pod:2123
8132 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8133 msgstr ""
8134
8135 # type: textblock
8136 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3098
8137 #: ../src/guestfs-actions.pod:3749
8138 msgid ""
8139 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8140 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8141 msgstr ""
8142
8143 # type: textblock
8144 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3102
8145 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3303
8146 #: ../src/guestfs-actions.pod:5097 ../src/guestfs-actions.pod:5536
8147 #: ../src/guestfs-actions.pod:6861
8148 msgid "(Added in 1.0.59)"
8149 msgstr ""
8150
8151 # type: =head2
8152 #: ../src/guestfs-actions.pod:2131
8153 msgid "guestfs_glob_expand"
8154 msgstr ""
8155
8156 # type: verbatim
8157 #: ../src/guestfs-actions.pod:2133
8158 #, no-wrap
8159 msgid ""
8160 " char **\n"
8161 " guestfs_glob_expand (guestfs_h *g,\n"
8162 "                      const char *pattern);\n"
8163 "\n"
8164 msgstr ""
8165
8166 # type: textblock
8167 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8168 msgid ""
8169 "This command searches for all the pathnames matching C<pattern> according to "
8170 "the wildcard expansion rules used by the shell."
8171 msgstr ""
8172
8173 # type: textblock
8174 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8175 msgid ""
8176 "If no paths match, then this returns an empty list (note: not an error)."
8177 msgstr ""
8178
8179 # type: textblock
8180 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8181 msgid ""
8182 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8183 "GLOB_BRACE>.  See that manual page for more details."
8184 msgstr ""
8185
8186 # type: textblock
8187 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5701
8188 #: ../src/guestfs-actions.pod:5718
8189 msgid "(Added in 1.0.50)"
8190 msgstr ""
8191
8192 # type: =head2
8193 #: ../src/guestfs-actions.pod:2154
8194 msgid "guestfs_grep"
8195 msgstr ""
8196
8197 # type: verbatim
8198 #: ../src/guestfs-actions.pod:2156
8199 #, no-wrap
8200 msgid ""
8201 " char **\n"
8202 " guestfs_grep (guestfs_h *g,\n"
8203 "               const char *regex,\n"
8204 "               const char *path);\n"
8205 "\n"
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8210 msgid "This calls the external C<grep> program and returns the matching lines."
8211 msgstr ""
8212
8213 # type: =head2
8214 #: ../src/guestfs-actions.pod:2173
8215 msgid "guestfs_grepi"
8216 msgstr ""
8217
8218 # type: verbatim
8219 #: ../src/guestfs-actions.pod:2175
8220 #, no-wrap
8221 msgid ""
8222 " char **\n"
8223 " guestfs_grepi (guestfs_h *g,\n"
8224 "                const char *regex,\n"
8225 "                const char *path);\n"
8226 "\n"
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8231 msgid ""
8232 "This calls the external C<grep -i> program and returns the matching lines."
8233 msgstr ""
8234
8235 # type: =head2
8236 #: ../src/guestfs-actions.pod:2192
8237 msgid "guestfs_grub_install"
8238 msgstr ""
8239
8240 # type: verbatim
8241 #: ../src/guestfs-actions.pod:2194
8242 #, no-wrap
8243 msgid ""
8244 " int\n"
8245 " guestfs_grub_install (guestfs_h *g,\n"
8246 "                       const char *root,\n"
8247 "                       const char *device);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8253 msgid ""
8254 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8255 "the root directory being C<root>."
8256 msgstr ""
8257
8258 # type: textblock
8259 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8260 msgid ""
8261 "Note: If grub-install reports the error \"No suitable drive was found in the "
8262 "generated device map.\" it may be that you need to create a C</boot/grub/"
8263 "device.map> file first that contains the mapping between grub device names "
8264 "and Linux device names.  It is usually sufficient to create a file "
8265 "containing:"
8266 msgstr ""
8267
8268 # type: verbatim
8269 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8270 #, no-wrap
8271 msgid ""
8272 " (hd0) /dev/vda\n"
8273 "\n"
8274 msgstr ""
8275
8276 # type: textblock
8277 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8278 msgid "replacing C</dev/vda> with the name of the installation device."
8279 msgstr ""
8280
8281 # type: textblock
8282 #: ../src/guestfs-actions.pod:2215
8283 msgid "(Added in 1.0.17)"
8284 msgstr ""
8285
8286 # type: =head2
8287 #: ../src/guestfs-actions.pod:2217
8288 msgid "guestfs_head"
8289 msgstr ""
8290
8291 # type: verbatim
8292 #: ../src/guestfs-actions.pod:2219
8293 #, no-wrap
8294 msgid ""
8295 " char **\n"
8296 " guestfs_head (guestfs_h *g,\n"
8297 "               const char *path);\n"
8298 "\n"
8299 msgstr ""
8300
8301 # type: textblock
8302 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8303 msgid ""
8304 "This command returns up to the first 10 lines of a file as a list of strings."
8305 msgstr ""
8306
8307 # type: =head2
8308 #: ../src/guestfs-actions.pod:2235
8309 msgid "guestfs_head_n"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #: ../src/guestfs-actions.pod:2237
8314 #, no-wrap
8315 msgid ""
8316 " char **\n"
8317 " guestfs_head_n (guestfs_h *g,\n"
8318 "                 int nrlines,\n"
8319 "                 const char *path);\n"
8320 "\n"
8321 msgstr ""
8322
8323 # type: textblock
8324 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8325 msgid ""
8326 "If the parameter C<nrlines> is a positive number, this returns the first "
8327 "C<nrlines> lines of the file C<path>."
8328 msgstr ""
8329
8330 # type: textblock
8331 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8332 msgid ""
8333 "If the parameter C<nrlines> is a negative number, this returns lines from "
8334 "the file C<path>, excluding the last C<nrlines> lines."
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:5998
8339 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:3991
8340 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8341 msgstr ""
8342
8343 # type: =head2
8344 #: ../src/guestfs-actions.pod:2259
8345 msgid "guestfs_hexdump"
8346 msgstr ""
8347
8348 # type: verbatim
8349 #: ../src/guestfs-actions.pod:2261
8350 #, no-wrap
8351 msgid ""
8352 " char *\n"
8353 " guestfs_hexdump (guestfs_h *g,\n"
8354 "                  const char *path);\n"
8355 "\n"
8356 msgstr ""
8357
8358 # type: textblock
8359 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8360 msgid ""
8361 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8362 "readable, canonical hex dump of the file."
8363 msgstr ""
8364
8365 # type: textblock
8366 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5782
8367 #: ../src/guestfs-actions.pod:5837
8368 msgid "(Added in 1.0.22)"
8369 msgstr ""
8370
8371 # type: =head2
8372 #: ../src/guestfs-actions.pod:2276
8373 msgid "guestfs_initrd_cat"
8374 msgstr ""
8375
8376 # type: verbatim
8377 #: ../src/guestfs-actions.pod:2278
8378 #, no-wrap
8379 msgid ""
8380 " char *\n"
8381 " guestfs_initrd_cat (guestfs_h *g,\n"
8382 "                     const char *initrdpath,\n"
8383 "                     const char *filename,\n"
8384 "                     size_t *size_r);\n"
8385 "\n"
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8390 msgid ""
8391 "This command unpacks the file C<filename> from the initrd file called "
8392 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8393 "character."
8394 msgstr ""
8395
8396 # type: textblock
8397 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8398 msgid ""
8399 "For example, in guestfish you could use the following command to examine the "
8400 "boot script (usually called C</init>)  contained in a Linux initrd or "
8401 "initramfs image:"
8402 msgstr ""
8403
8404 # type: verbatim
8405 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8406 #, no-wrap
8407 msgid ""
8408 " initrd-cat /boot/initrd-<version>.img init\n"
8409 "\n"
8410 msgstr ""
8411
8412 # type: textblock
8413 #: ../src/guestfs-actions.pod:2294
8414 msgid "See also C<guestfs_initrd_list>."
8415 msgstr ""
8416
8417 # type: textblock
8418 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4717
8419 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4924
8420 msgid ""
8421 "This function returns a buffer, or NULL on error.  The size of the returned "
8422 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8423 "after use>."
8424 msgstr ""
8425
8426 # type: =head2
8427 #: ../src/guestfs-actions.pod:2305
8428 msgid "guestfs_initrd_list"
8429 msgstr ""
8430
8431 # type: verbatim
8432 #: ../src/guestfs-actions.pod:2307
8433 #, no-wrap
8434 msgid ""
8435 " char **\n"
8436 " guestfs_initrd_list (guestfs_h *g,\n"
8437 "                      const char *path);\n"
8438 "\n"
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8443 msgid "This command lists out files contained in an initrd."
8444 msgstr ""
8445
8446 # type: textblock
8447 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8448 msgid ""
8449 "The files are listed without any initial C</> character.  The files are "
8450 "listed in the order they appear (not necessarily alphabetical).  Directory "
8451 "names are listed as separate items."
8452 msgstr ""
8453
8454 # type: textblock
8455 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8456 msgid ""
8457 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8458 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8459 "files)."
8460 msgstr ""
8461
8462 # type: =head2
8463 #: ../src/guestfs-actions.pod:2327
8464 msgid "guestfs_inotify_add_watch"
8465 msgstr ""
8466
8467 # type: verbatim
8468 #: ../src/guestfs-actions.pod:2329
8469 #, no-wrap
8470 msgid ""
8471 " int64_t\n"
8472 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8473 "                            const char *path,\n"
8474 "                            int mask);\n"
8475 "\n"
8476 msgstr ""
8477
8478 # type: textblock
8479 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8480 msgid "Watch C<path> for the events listed in C<mask>."
8481 msgstr ""
8482
8483 # type: textblock
8484 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8485 msgid ""
8486 "Note that if C<path> is a directory then events within that directory are "
8487 "watched, but this does I<not> happen recursively (in subdirectories)."
8488 msgstr ""
8489
8490 # type: textblock
8491 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8492 msgid ""
8493 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8494 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8495 msgstr ""
8496
8497 # type: =head2
8498 #: ../src/guestfs-actions.pod:2348
8499 msgid "guestfs_inotify_close"
8500 msgstr ""
8501
8502 # type: verbatim
8503 #: ../src/guestfs-actions.pod:2350
8504 #, no-wrap
8505 msgid ""
8506 " int\n"
8507 " guestfs_inotify_close (guestfs_h *g);\n"
8508 "\n"
8509 msgstr ""
8510
8511 # type: textblock
8512 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8513 msgid ""
8514 "This closes the inotify handle which was previously opened by inotify_init.  "
8515 "It removes all watches, throws away any pending events, and deallocates all "
8516 "resources."
8517 msgstr ""
8518
8519 # type: =head2
8520 #: ../src/guestfs-actions.pod:2361
8521 msgid "guestfs_inotify_files"
8522 msgstr ""
8523
8524 # type: verbatim
8525 #: ../src/guestfs-actions.pod:2363
8526 #, no-wrap
8527 msgid ""
8528 " char **\n"
8529 " guestfs_inotify_files (guestfs_h *g);\n"
8530 "\n"
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2366
8535 msgid ""
8536 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8537 "returns a list of pathnames of objects that were touched.  The returned "
8538 "pathnames are sorted and deduplicated."
8539 msgstr ""
8540
8541 # type: =head2
8542 #: ../src/guestfs-actions.pod:2376
8543 msgid "guestfs_inotify_init"
8544 msgstr ""
8545
8546 # type: verbatim
8547 #: ../src/guestfs-actions.pod:2378
8548 #, no-wrap
8549 msgid ""
8550 " int\n"
8551 " guestfs_inotify_init (guestfs_h *g,\n"
8552 "                       int maxevents);\n"
8553 "\n"
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8558 msgid ""
8559 "This command creates a new inotify handle.  The inotify subsystem can be "
8560 "used to notify events which happen to objects in the guest filesystem."
8561 msgstr ""
8562
8563 # type: textblock
8564 #: ../src/guestfs-actions.pod:2386
8565 msgid ""
8566 "C<maxevents> is the maximum number of events which will be queued up between "
8567 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8568 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8569 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8570 "throws away events, but records the fact that it threw them away by setting "
8571 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8572 "C<guestfs_inotify_read>)."
8573 msgstr ""
8574
8575 # type: textblock
8576 #: ../src/guestfs-actions.pod:2396
8577 msgid ""
8578 "Before any events are generated, you have to add some watches to the "
8579 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8580 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8581 msgstr ""
8582
8583 # type: textblock
8584 #: ../src/guestfs-actions.pod:2402
8585 msgid ""
8586 "Queued up events should be read periodically by calling "
8587 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8588 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8589 "often enough then you risk the internal queue overflowing."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2409
8594 msgid ""
8595 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8596 "This also removes any watches automatically."
8597 msgstr ""
8598
8599 # type: textblock
8600 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8601 msgid ""
8602 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8603 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8604 "that there is one global inotify handle per libguestfs instance."
8605 msgstr ""
8606
8607 # type: =head2
8608 #: ../src/guestfs-actions.pod:2422
8609 msgid "guestfs_inotify_read"
8610 msgstr ""
8611
8612 # type: verbatim
8613 #: ../src/guestfs-actions.pod:2424
8614 #, no-wrap
8615 msgid ""
8616 " struct guestfs_inotify_event_list *\n"
8617 " guestfs_inotify_read (guestfs_h *g);\n"
8618 "\n"
8619 msgstr ""
8620
8621 # type: textblock
8622 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8623 msgid ""
8624 "Return the complete queue of events that have happened since the previous "
8625 "read call."
8626 msgstr ""
8627
8628 # type: textblock
8629 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8630 msgid "If no events have happened, this returns an empty list."
8631 msgstr ""
8632
8633 # type: textblock
8634 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8635 msgid ""
8636 "I<Note>: In order to make sure that all events have been read, you must call "
8637 "this function repeatedly until it returns an empty list.  The reason is that "
8638 "the call will read events up to the maximum appliance-to-host message size "
8639 "and leave remaining events in the queue."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2438
8644 msgid ""
8645 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8646 "there was an error.  I<The caller must call "
8647 "C<guestfs_free_inotify_event_list> after use>."
8648 msgstr ""
8649
8650 # type: =head2
8651 #: ../src/guestfs-actions.pod:2444
8652 msgid "guestfs_inotify_rm_watch"
8653 msgstr ""
8654
8655 # type: verbatim
8656 #: ../src/guestfs-actions.pod:2446
8657 #, no-wrap
8658 msgid ""
8659 " int\n"
8660 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8661 "                           int wd);\n"
8662 "\n"
8663 msgstr ""
8664
8665 # type: textblock
8666 #: ../src/guestfs-actions.pod:2450
8667 msgid ""
8668 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8669 msgstr ""
8670
8671 # type: =head2
8672 #: ../src/guestfs-actions.pod:2457
8673 msgid "guestfs_inspect_get_arch"
8674 msgstr ""
8675
8676 # type: verbatim
8677 #: ../src/guestfs-actions.pod:2459
8678 #, no-wrap
8679 msgid ""
8680 " char *\n"
8681 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8682 "                           const char *root);\n"
8683 "\n"
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8688 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
8689 #: ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:2633
8690 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2693
8691 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2764
8692 #: ../src/guestfs-actions.pod:2806
8693 msgid ""
8694 "This function should only be called with a root device string as returned by "
8695 "C<guestfs_inspect_os>."
8696 msgstr ""
8697
8698 # type: textblock
8699 #: ../src/guestfs-actions.pod:2466
8700 msgid ""
8701 "This returns the architecture of the inspected operating system.  The "
8702 "possible return values are listed under C<guestfs_file_architecture>."
8703 msgstr ""
8704
8705 # type: textblock
8706 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8707 msgid ""
8708 "If the architecture could not be determined, then the string C<unknown> is "
8709 "returned."
8710 msgstr ""
8711
8712 # type: textblock
8713 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2546
8714 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2682
8715 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2733
8716 #: ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2793
8717 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2856
8718 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1733
8719 #: ../fish/guestfish-actions.pod:1772 ../fish/guestfish-actions.pod:1832
8720 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:1873
8721 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:1921
8722 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1971
8723 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8724 msgstr ""
8725
8726 # type: =head2
8727 #: ../src/guestfs-actions.pod:2480
8728 msgid "guestfs_inspect_get_distro"
8729 msgstr ""
8730
8731 # type: verbatim
8732 #: ../src/guestfs-actions.pod:2482
8733 #, no-wrap
8734 msgid ""
8735 " char *\n"
8736 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8737 "                             const char *root);\n"
8738 "\n"
8739 msgstr ""
8740
8741 # type: textblock
8742 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8743 msgid ""
8744 "This returns the distro (distribution) of the inspected operating system."
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8749 msgid "Currently defined distros are:"
8750 msgstr ""
8751
8752 # type: =item
8753 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8754 msgid "\"archlinux\""
8755 msgstr ""
8756
8757 # type: textblock
8758 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8759 msgid "Arch Linux."
8760 msgstr ""
8761
8762 # type: =item
8763 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8764 msgid "\"debian\""
8765 msgstr ""
8766
8767 # type: textblock
8768 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8769 msgid "Debian or a Debian-derived distro such as Ubuntu."
8770 msgstr ""
8771
8772 # type: =item
8773 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8774 msgid "\"fedora\""
8775 msgstr ""
8776
8777 # type: textblock
8778 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8779 msgid "Fedora."
8780 msgstr ""
8781
8782 # type: =item
8783 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8784 msgid "\"gentoo\""
8785 msgstr ""
8786
8787 # type: textblock
8788 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8789 msgid "Gentoo."
8790 msgstr ""
8791
8792 # type: =item
8793 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8794 msgid "\"meego\""
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8799 msgid "MeeGo."
8800 msgstr ""
8801
8802 # type: =item
8803 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8804 msgid "\"pardus\""
8805 msgstr ""
8806
8807 # type: textblock
8808 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8809 msgid "Pardus."
8810 msgstr ""
8811
8812 # type: =item
8813 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8814 msgid "\"redhat-based\""
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8819 msgid "Some Red Hat-derived distro."
8820 msgstr ""
8821
8822 # type: =item
8823 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8824 msgid "\"rhel\""
8825 msgstr ""
8826
8827 # type: textblock
8828 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8829 msgid "Red Hat Enterprise Linux and some derivatives."
8830 msgstr ""
8831
8832 # type: =item
8833 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2776
8834 #: ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1904
8835 msgid "\"windows\""
8836 msgstr ""
8837
8838 # type: textblock
8839 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8840 msgid ""
8841 "Windows does not have distributions.  This string is returned if the OS type "
8842 "is Windows."
8843 msgstr ""
8844
8845 # type: =item
8846 #: ../src/guestfs-actions.pod:2533 ../fish/guestfish-actions.pod:1720
8847 msgid "\"ubuntu\""
8848 msgstr ""
8849
8850 # type: textblock
8851 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1722
8852 msgid "Ubuntu."
8853 msgstr ""
8854
8855 # type: =item
8856 #: ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2784
8857 #: ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1912
8858 msgid "\"unknown\""
8859 msgstr ""
8860
8861 # type: textblock
8862 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1726
8863 msgid "The distro could not be determined."
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2790
8868 #: ../fish/guestfish-actions.pod:1730 ../fish/guestfish-actions.pod:1918
8869 msgid ""
8870 "Future versions of libguestfs may return other strings here.  The caller "
8871 "should be prepared to handle any string."
8872 msgstr ""
8873
8874 # type: =head2
8875 #: ../src/guestfs-actions.pod:2553
8876 msgid "guestfs_inspect_get_filesystems"
8877 msgstr ""
8878
8879 # type: verbatim
8880 #: ../src/guestfs-actions.pod:2555
8881 #, no-wrap
8882 msgid ""
8883 " char **\n"
8884 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8885 "                                  const char *root);\n"
8886 "\n"
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1742
8891 msgid ""
8892 "This returns a list of all the filesystems that we think are associated with "
8893 "this operating system.  This includes the root filesystem, other ordinary "
8894 "filesystems, and non-mounted devices like swap partitions."
8895 msgstr ""
8896
8897 # type: textblock
8898 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1747
8899 msgid ""
8900 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8901 "to be shared between operating systems."
8902 msgstr ""
8903
8904 # type: textblock
8905 #: ../src/guestfs-actions.pod:2570
8906 msgid ""
8907 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8908 "C<guestfs_inspect_get_mountpoints>."
8909 msgstr ""
8910
8911 # type: =head2
8912 #: ../src/guestfs-actions.pod:2579
8913 msgid "guestfs_inspect_get_major_version"
8914 msgstr ""
8915
8916 # type: verbatim
8917 #: ../src/guestfs-actions.pod:2581
8918 #, no-wrap
8919 msgid ""
8920 " int\n"
8921 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8922 "                                    const char *root);\n"
8923 "\n"
8924 msgstr ""
8925
8926 # type: textblock
8927 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1760
8928 msgid ""
8929 "This returns the major version number of the inspected operating system."
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1763
8934 msgid ""
8935 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8936 "popular public names used by the operating system.  Notably the operating "
8937 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8938 "1).  You can find out the real versions corresponding to releases of Windows "
8939 "by consulting Wikipedia or MSDN."
8940 msgstr ""
8941
8942 # type: textblock
8943 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2618
8944 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1784
8945 msgid "If the version could not be determined, then C<0> is returned."
8946 msgstr ""
8947
8948 # type: =head2
8949 #: ../src/guestfs-actions.pod:2606
8950 msgid "guestfs_inspect_get_minor_version"
8951 msgstr ""
8952
8953 # type: verbatim
8954 #: ../src/guestfs-actions.pod:2608
8955 #, no-wrap
8956 msgid ""
8957 " int\n"
8958 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8959 "                                    const char *root);\n"
8960 "\n"
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1781
8965 msgid ""
8966 "This returns the minor version number of the inspected operating system."
8967 msgstr ""
8968
8969 # type: textblock
8970 #: ../src/guestfs-actions.pod:2620
8971 msgid ""
8972 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8973 "C<guestfs_inspect_get_major_version>."
8974 msgstr ""
8975
8976 # type: =head2
8977 #: ../src/guestfs-actions.pod:2627
8978 msgid "guestfs_inspect_get_mountpoints"
8979 msgstr ""
8980
8981 # type: verbatim
8982 #: ../src/guestfs-actions.pod:2629
8983 #, no-wrap
8984 msgid ""
8985 " char **\n"
8986 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8987 "                                  const char *root);\n"
8988 "\n"
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1796
8993 msgid ""
8994 "This returns a hash of where we think the filesystems associated with this "
8995 "operating system should be mounted.  Callers should note that this is at "
8996 "best an educated guess made by reading configuration files such as C</etc/"
8997 "fstab>."
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1801
9002 msgid ""
9003 "Each element in the returned hashtable has a key which is the path of the "
9004 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9005 "mounted there (eg. C</dev/sda1>)."
9006 msgstr ""
9007
9008 # type: textblock
9009 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1806
9010 msgid ""
9011 "Non-mounted devices such as swap devices are I<not> returned in this list."
9012 msgstr ""
9013
9014 # type: textblock
9015 #: ../src/guestfs-actions.pod:2649
9016 msgid ""
9017 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9018 "C<guestfs_inspect_get_filesystems>."
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:3155
9023 #: ../src/guestfs-actions.pod:4283 ../src/guestfs-actions.pod:6139
9024 msgid ""
9025 "This function returns a NULL-terminated array of strings, or NULL if there "
9026 "was an error.  The array of strings will always have length C<2n+1>, where "
9027 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9028 "caller must free the strings and the array after use>."
9029 msgstr ""
9030
9031 # type: =head2
9032 #: ../src/guestfs-actions.pod:2660
9033 msgid "guestfs_inspect_get_package_format"
9034 msgstr ""
9035
9036 # type: verbatim
9037 #: ../src/guestfs-actions.pod:2662
9038 #, no-wrap
9039 msgid ""
9040 " char *\n"
9041 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9042 "                                     const char *root);\n"
9043 "\n"
9044 msgstr ""
9045
9046 # type: textblock
9047 #: ../src/guestfs-actions.pod:2669
9048 msgid ""
9049 "This function and C<guestfs_inspect_get_package_management> return the "
9050 "package format and package management tool used by the inspected operating "
9051 "system.  For example for Fedora these functions would return C<rpm> (package "
9052 "format) and C<yum> (package management)."
9053 msgstr ""
9054
9055 # type: textblock
9056 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1825
9057 msgid ""
9058 "This returns the string C<unknown> if we could not determine the package "
9059 "format I<or> if the operating system does not have a real packaging system "
9060 "(eg. Windows)."
9061 msgstr ""
9062
9063 # type: textblock
9064 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
9065 msgid ""
9066 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9067 "Future versions of libguestfs may return other strings."
9068 msgstr ""
9069
9070 # type: =head2
9071 #: ../src/guestfs-actions.pod:2687
9072 msgid "guestfs_inspect_get_package_management"
9073 msgstr ""
9074
9075 # type: verbatim
9076 #: ../src/guestfs-actions.pod:2689
9077 #, no-wrap
9078 msgid ""
9079 " char *\n"
9080 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9081 "                                         const char *root);\n"
9082 "\n"
9083 msgstr ""
9084
9085 # type: textblock
9086 #: ../src/guestfs-actions.pod:2696
9087 msgid ""
9088 "C<guestfs_inspect_get_package_format> and this function return the package "
9089 "format and package management tool used by the inspected operating system.  "
9090 "For example for Fedora these functions would return C<rpm> (package format) "
9091 "and C<yum> (package management)."
9092 msgstr ""
9093
9094 # type: textblock
9095 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1847
9096 msgid ""
9097 "This returns the string C<unknown> if we could not determine the package "
9098 "management tool I<or> if the operating system does not have a real packaging "
9099 "system (eg. Windows)."
9100 msgstr ""
9101
9102 # type: textblock
9103 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1851
9104 msgid ""
9105 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9106 "derivatives), C<portage>, C<pisi>, C<pacman>.  Future versions of libguestfs "
9107 "may return other strings."
9108 msgstr ""
9109
9110 # type: =head2
9111 #: ../src/guestfs-actions.pod:2716
9112 msgid "guestfs_inspect_get_product_name"
9113 msgstr ""
9114
9115 # type: verbatim
9116 #: ../src/guestfs-actions.pod:2718
9117 #, no-wrap
9118 msgid ""
9119 " char *\n"
9120 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9121 "                                   const char *root);\n"
9122 "\n"
9123 msgstr ""
9124
9125 # type: textblock
9126 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1865
9127 msgid ""
9128 "This returns the product name of the inspected operating system.  The "
9129 "product name is generally some freeform string which can be displayed to the "
9130 "user, but should not be parsed by programs."
9131 msgstr ""
9132
9133 # type: textblock
9134 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9135 msgid ""
9136 "If the product name could not be determined, then the string C<unknown> is "
9137 "returned."
9138 msgstr ""
9139
9140 # type: =head2
9141 #: ../src/guestfs-actions.pod:2740
9142 msgid "guestfs_inspect_get_roots"
9143 msgstr ""
9144
9145 # type: verbatim
9146 #: ../src/guestfs-actions.pod:2742
9147 #, no-wrap
9148 msgid ""
9149 " char **\n"
9150 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9151 "\n"
9152 msgstr ""
9153
9154 # type: textblock
9155 #: ../src/guestfs-actions.pod:2745
9156 msgid ""
9157 "This function is a convenient way to get the list of root devices, as "
9158 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9159 "the whole inspection process."
9160 msgstr ""
9161
9162 # type: textblock
9163 #: ../src/guestfs-actions.pod:2749
9164 msgid ""
9165 "This returns an empty list if either no root devices were found or the "
9166 "caller has not called C<guestfs_inspect_os>."
9167 msgstr ""
9168
9169 # type: =head2
9170 #: ../src/guestfs-actions.pod:2758
9171 msgid "guestfs_inspect_get_type"
9172 msgstr ""
9173
9174 # type: verbatim
9175 #: ../src/guestfs-actions.pod:2760
9176 #, no-wrap
9177 msgid ""
9178 " char *\n"
9179 " guestfs_inspect_get_type (guestfs_h *g,\n"
9180 "                           const char *root);\n"
9181 "\n"
9182 msgstr ""
9183
9184 # type: textblock
9185 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1895
9186 msgid ""
9187 "This returns the type of the inspected operating system.  Currently defined "
9188 "types are:"
9189 msgstr ""
9190
9191 # type: =item
9192 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1900
9193 msgid "\"linux\""
9194 msgstr ""
9195
9196 # type: textblock
9197 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1902
9198 msgid "Any Linux-based operating system."
9199 msgstr ""
9200
9201 # type: textblock
9202 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1906
9203 msgid "Any Microsoft Windows operating system."
9204 msgstr ""
9205
9206 # type: =item
9207 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1908
9208 msgid "\"freebsd\""
9209 msgstr ""
9210
9211 # type: textblock
9212 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
9213 msgid "FreeBSD."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2786 ../fish/guestfish-actions.pod:1914
9218 msgid "The operating system type could not be determined."
9219 msgstr ""
9220
9221 # type: =head2
9222 #: ../src/guestfs-actions.pod:2800
9223 msgid "guestfs_inspect_get_windows_systemroot"
9224 msgstr ""
9225
9226 # type: verbatim
9227 #: ../src/guestfs-actions.pod:2802
9228 #, no-wrap
9229 msgid ""
9230 " char *\n"
9231 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9232 "                                         const char *root);\n"
9233 "\n"
9234 msgstr ""
9235
9236 # type: textblock
9237 #: ../src/guestfs-actions.pod:2809 ../fish/guestfish-actions.pod:1930
9238 msgid ""
9239 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9240 "is a directory path such as C</WINDOWS>."
9241 msgstr ""
9242
9243 # type: textblock
9244 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1933
9245 msgid ""
9246 "This call assumes that the guest is Windows and that the systemroot could be "
9247 "determined by inspection.  If this is not the case then an error is returned."
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:2821
9252 msgid "(Added in 1.5.25)"
9253 msgstr ""
9254
9255 # type: =head2
9256 #: ../src/guestfs-actions.pod:2823
9257 msgid "guestfs_inspect_os"
9258 msgstr ""
9259
9260 # type: verbatim
9261 #: ../src/guestfs-actions.pod:2825
9262 #, no-wrap
9263 msgid ""
9264 " char **\n"
9265 " guestfs_inspect_os (guestfs_h *g);\n"
9266 "\n"
9267 msgstr ""
9268
9269 # type: textblock
9270 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1943
9271 msgid ""
9272 "This function uses other libguestfs functions and certain heuristics to "
9273 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9274 "for operating systems."
9275 msgstr ""
9276
9277 # type: textblock
9278 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1947
9279 msgid "The list returned is empty if no operating systems were found."
9280 msgstr ""
9281
9282 # type: textblock
9283 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1949
9284 msgid ""
9285 "If one operating system was found, then this returns a list with a single "
9286 "element, which is the name of the root filesystem of this operating system.  "
9287 "It is also possible for this function to return a list containing more than "
9288 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9289 "element being the root filesystem of one of the operating systems."
9290 msgstr ""
9291
9292 # type: textblock
9293 #: ../src/guestfs-actions.pod:2841
9294 msgid ""
9295 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9296 "functions in order to query further information about each operating system, "
9297 "such as the name and version."
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:2846
9302 msgid ""
9303 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9304 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9305 "the contents.  This should be called with no disks currently mounted.  The "
9306 "function may also use Augeas, so any existing Augeas handle will be closed."
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1967
9311 msgid ""
9312 "This function cannot decrypt encrypted disks.  The caller must do that first "
9313 "(supplying the necessary keys) if the disk is encrypted."
9314 msgstr ""
9315
9316 # type: textblock
9317 #: ../src/guestfs-actions.pod:2858 ../src/guestfs-actions.pod:3113
9318 #: ../src/guestfs-actions.pod:3175
9319 msgid "See also C<guestfs_list_filesystems>."
9320 msgstr ""
9321
9322 # type: =head2
9323 #: ../src/guestfs-actions.pod:2866
9324 msgid "guestfs_is_blockdev"
9325 msgstr ""
9326
9327 # type: verbatim
9328 #: ../src/guestfs-actions.pod:2868
9329 #, no-wrap
9330 msgid ""
9331 " int\n"
9332 " guestfs_is_blockdev (guestfs_h *g,\n"
9333 "                      const char *path);\n"
9334 "\n"
9335 msgstr ""
9336
9337 # type: textblock
9338 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1979
9339 msgid ""
9340 "This returns C<true> if and only if there is a block device with the given "
9341 "C<path> name."
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2904
9346 #: ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2949
9347 #: ../src/guestfs-actions.pod:2965 ../src/guestfs-actions.pod:3021
9348 #: ../src/guestfs-actions.pod:3036
9349 msgid "See also C<guestfs_stat>."
9350 msgstr ""
9351
9352 # type: textblock
9353 #: ../src/guestfs-actions.pod:2879 ../src/guestfs-actions.pod:2908
9354 #: ../src/guestfs-actions.pod:2953 ../src/guestfs-actions.pod:3025
9355 #: ../src/guestfs-actions.pod:3040
9356 msgid "(Added in 1.5.10)"
9357 msgstr ""
9358
9359 # type: =head2
9360 #: ../src/guestfs-actions.pod:2881
9361 msgid "guestfs_is_busy"
9362 msgstr ""
9363
9364 # type: verbatim
9365 #: ../src/guestfs-actions.pod:2883
9366 #, no-wrap
9367 msgid ""
9368 " int\n"
9369 " guestfs_is_busy (guestfs_h *g);\n"
9370 "\n"
9371 msgstr ""
9372
9373 # type: textblock
9374 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1988
9375 msgid ""
9376 "This returns true iff this handle is busy processing a command (in the "
9377 "C<BUSY> state)."
9378 msgstr ""
9379
9380 # type: =head2
9381 #: ../src/guestfs-actions.pod:2895
9382 msgid "guestfs_is_chardev"
9383 msgstr ""
9384
9385 # type: verbatim
9386 #: ../src/guestfs-actions.pod:2897
9387 #, no-wrap
9388 msgid ""
9389 " int\n"
9390 " guestfs_is_chardev (guestfs_h *g,\n"
9391 "                     const char *path);\n"
9392 "\n"
9393 msgstr ""
9394
9395 # type: textblock
9396 #: ../src/guestfs-actions.pod:2901 ../fish/guestfish-actions.pod:1997
9397 msgid ""
9398 "This returns C<true> if and only if there is a character device with the "
9399 "given C<path> name."
9400 msgstr ""
9401
9402 # type: =head2
9403 #: ../src/guestfs-actions.pod:2910
9404 msgid "guestfs_is_config"
9405 msgstr ""
9406
9407 # type: verbatim
9408 #: ../src/guestfs-actions.pod:2912
9409 #, no-wrap
9410 msgid ""
9411 " int\n"
9412 " guestfs_is_config (guestfs_h *g);\n"
9413 "\n"
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2006
9418 msgid ""
9419 "This returns true iff this handle is being configured (in the C<CONFIG> "
9420 "state)."
9421 msgstr ""
9422
9423 # type: =head2
9424 #: ../src/guestfs-actions.pod:2924
9425 msgid "guestfs_is_dir"
9426 msgstr ""
9427
9428 # type: verbatim
9429 #: ../src/guestfs-actions.pod:2926
9430 #, no-wrap
9431 msgid ""
9432 " int\n"
9433 " guestfs_is_dir (guestfs_h *g,\n"
9434 "                 const char *path);\n"
9435 "\n"
9436 msgstr ""
9437
9438 # type: textblock
9439 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2015
9440 msgid ""
9441 "This returns C<true> if and only if there is a directory with the given "
9442 "C<path> name.  Note that it returns false for other objects like files."
9443 msgstr ""
9444
9445 # type: =head2
9446 #: ../src/guestfs-actions.pod:2940
9447 msgid "guestfs_is_fifo"
9448 msgstr ""
9449
9450 # type: verbatim
9451 #: ../src/guestfs-actions.pod:2942
9452 #, no-wrap
9453 msgid ""
9454 " int\n"
9455 " guestfs_is_fifo (guestfs_h *g,\n"
9456 "                  const char *path);\n"
9457 "\n"
9458 msgstr ""
9459
9460 # type: textblock
9461 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2025
9462 msgid ""
9463 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9464 "given C<path> name."
9465 msgstr ""
9466
9467 # type: =head2
9468 #: ../src/guestfs-actions.pod:2955
9469 msgid "guestfs_is_file"
9470 msgstr ""
9471
9472 # type: verbatim
9473 #: ../src/guestfs-actions.pod:2957
9474 #, no-wrap
9475 msgid ""
9476 " int\n"
9477 " guestfs_is_file (guestfs_h *g,\n"
9478 "                  const char *path);\n"
9479 "\n"
9480 msgstr ""
9481
9482 # type: textblock
9483 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2034
9484 msgid ""
9485 "This returns C<true> if and only if there is a regular file with the given "
9486 "C<path> name.  Note that it returns false for other objects like directories."
9487 msgstr ""
9488
9489 # type: =head2
9490 #: ../src/guestfs-actions.pod:2971
9491 msgid "guestfs_is_launching"
9492 msgstr ""
9493
9494 # type: verbatim
9495 #: ../src/guestfs-actions.pod:2973
9496 #, no-wrap
9497 msgid ""
9498 " int\n"
9499 " guestfs_is_launching (guestfs_h *g);\n"
9500 "\n"
9501 msgstr ""
9502
9503 # type: textblock
9504 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2044
9505 msgid ""
9506 "This returns true iff this handle is launching the subprocess (in the "
9507 "C<LAUNCHING> state)."
9508 msgstr ""
9509
9510 # type: =head2
9511 #: ../src/guestfs-actions.pod:2985
9512 msgid "guestfs_is_lv"
9513 msgstr ""
9514
9515 # type: verbatim
9516 #: ../src/guestfs-actions.pod:2987
9517 #, no-wrap
9518 msgid ""
9519 " int\n"
9520 " guestfs_is_lv (guestfs_h *g,\n"
9521 "                const char *device);\n"
9522 "\n"
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:2991 ../fish/guestfish-actions.pod:2053
9527 msgid ""
9528 "This command tests whether C<device> is a logical volume, and returns true "
9529 "iff this is the case."
9530 msgstr ""
9531
9532 # type: =head2
9533 #: ../src/guestfs-actions.pod:2998
9534 msgid "guestfs_is_ready"
9535 msgstr ""
9536
9537 # type: verbatim
9538 #: ../src/guestfs-actions.pod:3000
9539 #, no-wrap
9540 msgid ""
9541 " int\n"
9542 " guestfs_is_ready (guestfs_h *g);\n"
9543 "\n"
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2060
9548 msgid ""
9549 "This returns true iff this handle is ready to accept commands (in the "
9550 "C<READY> state)."
9551 msgstr ""
9552
9553 # type: =head2
9554 #: ../src/guestfs-actions.pod:3012
9555 msgid "guestfs_is_socket"
9556 msgstr ""
9557
9558 # type: verbatim
9559 #: ../src/guestfs-actions.pod:3014
9560 #, no-wrap
9561 msgid ""
9562 " int\n"
9563 " guestfs_is_socket (guestfs_h *g,\n"
9564 "                    const char *path);\n"
9565 "\n"
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2069
9570 msgid ""
9571 "This returns C<true> if and only if there is a Unix domain socket with the "
9572 "given C<path> name."
9573 msgstr ""
9574
9575 # type: =head2
9576 #: ../src/guestfs-actions.pod:3027
9577 msgid "guestfs_is_symlink"
9578 msgstr ""
9579
9580 # type: verbatim
9581 #: ../src/guestfs-actions.pod:3029
9582 #, no-wrap
9583 msgid ""
9584 " int\n"
9585 " guestfs_is_symlink (guestfs_h *g,\n"
9586 "                     const char *path);\n"
9587 "\n"
9588 msgstr ""
9589
9590 # type: textblock
9591 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2078
9592 msgid ""
9593 "This returns C<true> if and only if there is a symbolic link with the given "
9594 "C<path> name."
9595 msgstr ""
9596
9597 # type: =head2
9598 #: ../src/guestfs-actions.pod:3042
9599 msgid "guestfs_kill_subprocess"
9600 msgstr ""
9601
9602 # type: verbatim
9603 #: ../src/guestfs-actions.pod:3044
9604 #, no-wrap
9605 msgid ""
9606 " int\n"
9607 " guestfs_kill_subprocess (guestfs_h *g);\n"
9608 "\n"
9609 msgstr ""
9610
9611 # type: textblock
9612 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2087
9613 msgid "This kills the qemu subprocess.  You should never need to call this."
9614 msgstr ""
9615
9616 # type: =head2
9617 #: ../src/guestfs-actions.pod:3053
9618 msgid "guestfs_launch"
9619 msgstr ""
9620
9621 # type: verbatim
9622 #: ../src/guestfs-actions.pod:3055
9623 #, no-wrap
9624 msgid ""
9625 " int\n"
9626 " guestfs_launch (guestfs_h *g);\n"
9627 "\n"
9628 msgstr ""
9629
9630 # type: textblock
9631 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2095
9632 msgid ""
9633 "Internally libguestfs is implemented by running a virtual machine using "
9634 "L<qemu(1)>."
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2098
9639 msgid ""
9640 "You should call this after configuring the handle (eg. adding drives) but "
9641 "before performing any actions."
9642 msgstr ""
9643
9644 # type: =head2
9645 #: ../src/guestfs-actions.pod:3068
9646 msgid "guestfs_lchown"
9647 msgstr ""
9648
9649 # type: verbatim
9650 #: ../src/guestfs-actions.pod:3070
9651 #, no-wrap
9652 msgid ""
9653 " int\n"
9654 " guestfs_lchown (guestfs_h *g,\n"
9655 "                 int owner,\n"
9656 "                 int group,\n"
9657 "                 const char *path);\n"
9658 "\n"
9659 msgstr ""
9660
9661 # type: textblock
9662 #: ../src/guestfs-actions.pod:3076
9663 msgid ""
9664 "Change the file owner to C<owner> and group to C<group>.  This is like "
9665 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9666 "changed, not the target."
9667 msgstr ""
9668
9669 # type: =head2
9670 #: ../src/guestfs-actions.pod:3088
9671 msgid "guestfs_lgetxattrs"
9672 msgstr ""
9673
9674 # type: verbatim
9675 #: ../src/guestfs-actions.pod:3090
9676 #, no-wrap
9677 msgid ""
9678 " struct guestfs_xattr_list *\n"
9679 " guestfs_lgetxattrs (guestfs_h *g,\n"
9680 "                     const char *path);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3094
9686 msgid ""
9687 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9688 "then it returns the extended attributes of the link itself."
9689 msgstr ""
9690
9691 # type: =head2
9692 #: ../src/guestfs-actions.pod:3104
9693 msgid "guestfs_list_devices"
9694 msgstr ""
9695
9696 # type: verbatim
9697 #: ../src/guestfs-actions.pod:3106
9698 #, no-wrap
9699 msgid ""
9700 " char **\n"
9701 " guestfs_list_devices (guestfs_h *g);\n"
9702 "\n"
9703 msgstr ""
9704
9705 # type: textblock
9706 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2125
9707 msgid "List all the block devices."
9708 msgstr ""
9709
9710 # type: textblock
9711 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2127
9712 msgid "The full block device names are returned, eg. C</dev/sda>."
9713 msgstr ""
9714
9715 # type: =head2
9716 #: ../src/guestfs-actions.pod:3121
9717 msgid "guestfs_list_filesystems"
9718 msgstr ""
9719
9720 # type: verbatim
9721 #: ../src/guestfs-actions.pod:3123
9722 #, no-wrap
9723 msgid ""
9724 " char **\n"
9725 " guestfs_list_filesystems (guestfs_h *g);\n"
9726 "\n"
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2135
9731 msgid ""
9732 "This inspection command looks for filesystems on partitions, block devices "
9733 "and logical volumes, returning a list of devices containing filesystems and "
9734 "their type."
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2139
9739 msgid ""
9740 "The return value is a hash, where the keys are the devices containing "
9741 "filesystems, and the values are the filesystem types.  For example:"
9742 msgstr ""
9743
9744 # type: verbatim
9745 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2143
9746 #, no-wrap
9747 msgid ""
9748 " \"/dev/sda1\" => \"ntfs\"\n"
9749 " \"/dev/sda2\" => \"ext2\"\n"
9750 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9751 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9752 "\n"
9753 msgstr ""
9754
9755 # type: textblock
9756 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2148
9757 msgid ""
9758 "The value can have the special value \"unknown\", meaning the content of the "
9759 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9760 msgstr ""
9761
9762 # type: textblock
9763 #: ../src/guestfs-actions.pod:3143
9764 msgid ""
9765 "This command runs other libguestfs commands, which might include "
9766 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9767 "soon after launch and only when nothing is mounted."
9768 msgstr ""
9769
9770 # type: textblock
9771 #: ../src/guestfs-actions.pod:3147
9772 msgid ""
9773 "Not all of the filesystems returned will be mountable.  In particular, swap "
9774 "partitions are returned in the list.  Also this command does not check that "
9775 "each filesystem found is valid and mountable, and some filesystems might be "
9776 "mountable but require special options.  Filesystems may not all belong to a "
9777 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9778 msgstr ""
9779
9780 # type: textblock
9781 #: ../src/guestfs-actions.pod:3161 ../src/guestfs-actions.pod:4684
9782 msgid "(Added in 1.5.15)"
9783 msgstr ""
9784
9785 # type: =head2
9786 #: ../src/guestfs-actions.pod:3163
9787 msgid "guestfs_list_partitions"
9788 msgstr ""
9789
9790 # type: verbatim
9791 #: ../src/guestfs-actions.pod:3165
9792 #, no-wrap
9793 msgid ""
9794 " char **\n"
9795 " guestfs_list_partitions (guestfs_h *g);\n"
9796 "\n"
9797 msgstr ""
9798
9799 # type: textblock
9800 #: ../src/guestfs-actions.pod:3168 ../fish/guestfish-actions.pod:2168
9801 msgid "List all the partitions detected on all block devices."
9802 msgstr ""
9803
9804 # type: textblock
9805 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2170
9806 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9807 msgstr ""
9808
9809 # type: textblock
9810 #: ../src/guestfs-actions.pod:3172
9811 msgid ""
9812 "This does not return logical volumes.  For that you will need to call "
9813 "C<guestfs_lvs>."
9814 msgstr ""
9815
9816 # type: =head2
9817 #: ../src/guestfs-actions.pod:3183
9818 msgid "guestfs_ll"
9819 msgstr ""
9820
9821 # type: verbatim
9822 #: ../src/guestfs-actions.pod:3185
9823 #, no-wrap
9824 msgid ""
9825 " char *\n"
9826 " guestfs_ll (guestfs_h *g,\n"
9827 "             const char *directory);\n"
9828 "\n"
9829 msgstr ""
9830
9831 # type: textblock
9832 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2181
9833 msgid ""
9834 "List the files in C<directory> (relative to the root directory, there is no "
9835 "cwd) in the format of 'ls -la'."
9836 msgstr ""
9837
9838 # type: textblock
9839 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2184
9840 msgid ""
9841 "This command is mostly useful for interactive sessions.  It is I<not> "
9842 "intended that you try to parse the output string."
9843 msgstr ""
9844
9845 # type: =head2
9846 #: ../src/guestfs-actions.pod:3200
9847 msgid "guestfs_ln"
9848 msgstr ""
9849
9850 # type: verbatim
9851 #: ../src/guestfs-actions.pod:3202
9852 #, no-wrap
9853 msgid ""
9854 " int\n"
9855 " guestfs_ln (guestfs_h *g,\n"
9856 "             const char *target,\n"
9857 "             const char *linkname);\n"
9858 "\n"
9859 msgstr ""
9860
9861 # type: textblock
9862 #: ../src/guestfs-actions.pod:3207 ../fish/guestfish-actions.pod:2191
9863 msgid "This command creates a hard link using the C<ln> command."
9864 msgstr ""
9865
9866 # type: =head2
9867 #: ../src/guestfs-actions.pod:3213
9868 msgid "guestfs_ln_f"
9869 msgstr ""
9870
9871 # type: verbatim
9872 #: ../src/guestfs-actions.pod:3215
9873 #, no-wrap
9874 msgid ""
9875 " int\n"
9876 " guestfs_ln_f (guestfs_h *g,\n"
9877 "               const char *target,\n"
9878 "               const char *linkname);\n"
9879 "\n"
9880 msgstr ""
9881
9882 # type: textblock
9883 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2197
9884 msgid ""
9885 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9886 "option removes the link (C<linkname>) if it exists already."
9887 msgstr ""
9888
9889 # type: =head2
9890 #: ../src/guestfs-actions.pod:3227
9891 msgid "guestfs_ln_s"
9892 msgstr ""
9893
9894 # type: verbatim
9895 #: ../src/guestfs-actions.pod:3229
9896 #, no-wrap
9897 msgid ""
9898 " int\n"
9899 " guestfs_ln_s (guestfs_h *g,\n"
9900 "               const char *target,\n"
9901 "               const char *linkname);\n"
9902 "\n"
9903 msgstr ""
9904
9905 # type: textblock
9906 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2204
9907 msgid "This command creates a symbolic link using the C<ln -s> command."
9908 msgstr ""
9909
9910 # type: =head2
9911 #: ../src/guestfs-actions.pod:3240
9912 msgid "guestfs_ln_sf"
9913 msgstr ""
9914
9915 # type: verbatim
9916 #: ../src/guestfs-actions.pod:3242
9917 #, no-wrap
9918 msgid ""
9919 " int\n"
9920 " guestfs_ln_sf (guestfs_h *g,\n"
9921 "                const char *target,\n"
9922 "                const char *linkname);\n"
9923 "\n"
9924 msgstr ""
9925
9926 # type: textblock
9927 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2210
9928 msgid ""
9929 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9930 "option removes the link (C<linkname>) if it exists already."
9931 msgstr ""
9932
9933 # type: =head2
9934 #: ../src/guestfs-actions.pod:3254
9935 msgid "guestfs_lremovexattr"
9936 msgstr ""
9937
9938 # type: verbatim
9939 #: ../src/guestfs-actions.pod:3256
9940 #, no-wrap
9941 msgid ""
9942 " int\n"
9943 " guestfs_lremovexattr (guestfs_h *g,\n"
9944 "                       const char *xattr,\n"
9945 "                       const char *path);\n"
9946 "\n"
9947 msgstr ""
9948
9949 # type: textblock
9950 #: ../src/guestfs-actions.pod:3261
9951 msgid ""
9952 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9953 "link, then it removes an extended attribute of the link itself."
9954 msgstr ""
9955
9956 # type: =head2
9957 #: ../src/guestfs-actions.pod:3269
9958 msgid "guestfs_ls"
9959 msgstr ""
9960
9961 # type: verbatim
9962 #: ../src/guestfs-actions.pod:3271
9963 #, no-wrap
9964 msgid ""
9965 " char **\n"
9966 " guestfs_ls (guestfs_h *g,\n"
9967 "             const char *directory);\n"
9968 "\n"
9969 msgstr ""
9970
9971 # type: textblock
9972 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2225
9973 msgid ""
9974 "List the files in C<directory> (relative to the root directory, there is no "
9975 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9976 msgstr ""
9977
9978 # type: textblock
9979 #: ../src/guestfs-actions.pod:3279
9980 msgid ""
9981 "This command is mostly useful for interactive sessions.  Programs should "
9982 "probably use C<guestfs_readdir> instead."
9983 msgstr ""
9984
9985 # type: =head2
9986 #: ../src/guestfs-actions.pod:3288
9987 msgid "guestfs_lsetxattr"
9988 msgstr ""
9989
9990 # type: verbatim
9991 #: ../src/guestfs-actions.pod:3290
9992 #, no-wrap
9993 msgid ""
9994 " int\n"
9995 " guestfs_lsetxattr (guestfs_h *g,\n"
9996 "                    const char *xattr,\n"
9997 "                    const char *val,\n"
9998 "                    int vallen,\n"
9999 "                    const char *path);\n"
10000 "\n"
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3297
10005 msgid ""
10006 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10007 "then it sets an extended attribute of the link itself."
10008 msgstr ""
10009
10010 # type: =head2
10011 #: ../src/guestfs-actions.pod:3305
10012 msgid "guestfs_lstat"
10013 msgstr ""
10014
10015 # type: verbatim
10016 #: ../src/guestfs-actions.pod:3307
10017 #, no-wrap
10018 msgid ""
10019 " struct guestfs_stat *\n"
10020 " guestfs_lstat (guestfs_h *g,\n"
10021 "                const char *path);\n"
10022 "\n"
10023 msgstr ""
10024
10025 # type: textblock
10026 #: ../src/guestfs-actions.pod:3311 ../src/guestfs-actions.pod:5738
10027 #: ../fish/guestfish-actions.pod:2244 ../fish/guestfish-actions.pod:3826
10028 msgid "Returns file information for the given C<path>."
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3313
10033 msgid ""
10034 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10035 "link, then the link is stat-ed, not the file it refers to."
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2250
10040 msgid "This is the same as the C<lstat(2)> system call."
10041 msgstr ""
10042
10043 # type: textblock
10044 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:5742
10045 msgid ""
10046 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10047 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3323 ../src/guestfs-actions.pod:5746
10052 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:6145
10053 msgid "(Added in 0.9.2)"
10054 msgstr ""
10055
10056 # type: =head2
10057 #: ../src/guestfs-actions.pod:3325
10058 msgid "guestfs_lstatlist"
10059 msgstr ""
10060
10061 # type: verbatim
10062 #: ../src/guestfs-actions.pod:3327
10063 #, no-wrap
10064 msgid ""
10065 " struct guestfs_stat_list *\n"
10066 " guestfs_lstatlist (guestfs_h *g,\n"
10067 "                    const char *path,\n"
10068 "                    char *const *names);\n"
10069 "\n"
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3332
10074 msgid ""
10075 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10076 "files, where all files are in the directory C<path>.  C<names> is the list "
10077 "of files from this directory."
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2260
10082 msgid ""
10083 "On return you get a list of stat structs, with a one-to-one correspondence "
10084 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10085 "then the C<ino> field of that structure is set to C<-1>."
10086 msgstr ""
10087
10088 # type: textblock
10089 #: ../src/guestfs-actions.pod:3341
10090 msgid ""
10091 "This call is intended for programs that want to efficiently list a directory "
10092 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10093 "for a similarly efficient call for getting extended attributes.  Very long "
10094 "directory listings might cause the protocol message size to be exceeded, "
10095 "causing this call to fail.  The caller must split up such requests into "
10096 "smaller groups of names."
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3349
10101 msgid ""
10102 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10103 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10104 msgstr ""
10105
10106 # type: =head2
10107 #: ../src/guestfs-actions.pod:3355
10108 msgid "guestfs_luks_add_key"
10109 msgstr ""
10110
10111 # type: verbatim
10112 #: ../src/guestfs-actions.pod:3357
10113 #, no-wrap
10114 msgid ""
10115 " int\n"
10116 " guestfs_luks_add_key (guestfs_h *g,\n"
10117 "                       const char *device,\n"
10118 "                       const char *key,\n"
10119 "                       const char *newkey,\n"
10120 "                       int keyslot);\n"
10121 "\n"
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:2277
10126 msgid ""
10127 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10128 "existing key, and is used to access the device.  C<newkey> is the new key to "
10129 "add.  C<keyslot> is the key slot that will be replaced."
10130 msgstr ""
10131
10132 # type: textblock
10133 #: ../src/guestfs-actions.pod:3369
10134 msgid ""
10135 "Note that if C<keyslot> already contains a key, then this command will "
10136 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3415
10141 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3458
10142 #: ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3509
10143 msgid ""
10144 "This function takes a key or passphrase parameter which could contain "
10145 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10146 "information."
10147 msgstr ""
10148
10149 # type: textblock
10150 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3419
10151 #: ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:3462
10152 msgid "(Added in 1.5.2)"
10153 msgstr ""
10154
10155 # type: =head2
10156 #: ../src/guestfs-actions.pod:3381
10157 msgid "guestfs_luks_close"
10158 msgstr ""
10159
10160 # type: verbatim
10161 #: ../src/guestfs-actions.pod:3383
10162 #, no-wrap
10163 msgid ""
10164 " int\n"
10165 " guestfs_luks_close (guestfs_h *g,\n"
10166 "                     const char *device);\n"
10167 "\n"
10168 msgstr ""
10169
10170 # type: textblock
10171 #: ../src/guestfs-actions.pod:3387
10172 msgid ""
10173 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10174 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10175 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10176 "underlying block device."
10177 msgstr ""
10178
10179 # type: textblock
10180 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3494
10181 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3563
10182 #: ../src/guestfs-actions.pod:3611
10183 msgid "(Added in 1.5.1)"
10184 msgstr ""
10185
10186 # type: =head2
10187 #: ../src/guestfs-actions.pod:3397
10188 msgid "guestfs_luks_format"
10189 msgstr ""
10190
10191 # type: verbatim
10192 #: ../src/guestfs-actions.pod:3399
10193 #, no-wrap
10194 msgid ""
10195 " int\n"
10196 " guestfs_luks_format (guestfs_h *g,\n"
10197 "                      const char *device,\n"
10198 "                      const char *key,\n"
10199 "                      int keyslot);\n"
10200 "\n"
10201 msgstr ""
10202
10203 # type: textblock
10204 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2303
10205 msgid ""
10206 "This command erases existing data on C<device> and formats the device as a "
10207 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10208 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10209 msgstr ""
10210
10211 # type: textblock
10212 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3435
10213 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:4435
10214 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5573
10215 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5622
10216 #: ../src/guestfs-actions.pod:6772 ../fish/guestfish-actions.pod:2311
10217 #: ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2408
10218 #: ../fish/guestfish-actions.pod:2938 ../fish/guestfish-actions.pod:3445
10219 #: ../fish/guestfish-actions.pod:3725 ../fish/guestfish-actions.pod:3741
10220 #: ../fish/guestfish-actions.pod:3756 ../fish/guestfish-actions.pod:4471
10221 msgid ""
10222 "B<This command is dangerous.  Without careful use you can easily destroy all "
10223 "your data>."
10224 msgstr ""
10225
10226 # type: =head2
10227 #: ../src/guestfs-actions.pod:3421
10228 msgid "guestfs_luks_format_cipher"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #: ../src/guestfs-actions.pod:3423
10233 #, no-wrap
10234 msgid ""
10235 " int\n"
10236 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10237 "                             const char *device,\n"
10238 "                             const char *key,\n"
10239 "                             int keyslot,\n"
10240 "                             const char *cipher);\n"
10241 "\n"
10242 msgstr ""
10243
10244 # type: textblock
10245 #: ../src/guestfs-actions.pod:3430
10246 msgid ""
10247 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10248 "set the C<cipher> used."
10249 msgstr ""
10250
10251 # type: =head2
10252 #: ../src/guestfs-actions.pod:3444
10253 msgid "guestfs_luks_kill_slot"
10254 msgstr ""
10255
10256 # type: verbatim
10257 #: ../src/guestfs-actions.pod:3446
10258 #, no-wrap
10259 msgid ""
10260 " int\n"
10261 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10262 "                         const char *device,\n"
10263 "                         const char *key,\n"
10264 "                         int keyslot);\n"
10265 "\n"
10266 msgstr ""
10267
10268 # type: textblock
10269 #: ../src/guestfs-actions.pod:3452 ../fish/guestfish-actions.pod:2331
10270 msgid ""
10271 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10272 "device C<device>.  C<key> must be one of the I<other> keys."
10273 msgstr ""
10274
10275 # type: =head2
10276 #: ../src/guestfs-actions.pod:3464
10277 msgid "guestfs_luks_open"
10278 msgstr ""
10279
10280 # type: verbatim
10281 #: ../src/guestfs-actions.pod:3466
10282 #, no-wrap
10283 msgid ""
10284 " int\n"
10285 " guestfs_luks_open (guestfs_h *g,\n"
10286 "                    const char *device,\n"
10287 "                    const char *key,\n"
10288 "                    const char *mapname);\n"
10289 "\n"
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3472 ../fish/guestfish-actions.pod:2342
10294 msgid ""
10295 "This command opens a block device which has been encrypted according to the "
10296 "Linux Unified Key Setup (LUKS) standard."
10297 msgstr ""
10298
10299 # type: textblock
10300 #: ../src/guestfs-actions.pod:3475 ../fish/guestfish-actions.pod:2345
10301 msgid "C<device> is the encrypted block device or partition."
10302 msgstr ""
10303
10304 # type: textblock
10305 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2347
10306 msgid ""
10307 "The caller must supply one of the keys associated with the LUKS block "
10308 "device, in the C<key> parameter."
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2350
10313 msgid ""
10314 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10315 "writes to this block device are decrypted from and encrypted to the "
10316 "underlying C<device> respectively."
10317 msgstr ""
10318
10319 # type: textblock
10320 #: ../src/guestfs-actions.pod:3484
10321 msgid ""
10322 "If this block device contains LVM volume groups, then calling "
10323 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10324 "visible."
10325 msgstr ""
10326
10327 # type: =head2
10328 #: ../src/guestfs-actions.pod:3496
10329 msgid "guestfs_luks_open_ro"
10330 msgstr ""
10331
10332 # type: verbatim
10333 #: ../src/guestfs-actions.pod:3498
10334 #, no-wrap
10335 msgid ""
10336 " int\n"
10337 " guestfs_luks_open_ro (guestfs_h *g,\n"
10338 "                       const char *device,\n"
10339 "                       const char *key,\n"
10340 "                       const char *mapname);\n"
10341 "\n"
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3504
10346 msgid ""
10347 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10348 "created."
10349 msgstr ""
10350
10351 # type: =head2
10352 #: ../src/guestfs-actions.pod:3515
10353 msgid "guestfs_lvcreate"
10354 msgstr ""
10355
10356 # type: verbatim
10357 #: ../src/guestfs-actions.pod:3517
10358 #, no-wrap
10359 msgid ""
10360 " int\n"
10361 " guestfs_lvcreate (guestfs_h *g,\n"
10362 "                   const char *logvol,\n"
10363 "                   const char *volgroup,\n"
10364 "                   int mbytes);\n"
10365 "\n"
10366 msgstr ""
10367
10368 # type: textblock
10369 #: ../src/guestfs-actions.pod:3523 ../fish/guestfish-actions.pod:2375
10370 msgid ""
10371 "This creates an LVM logical volume called C<logvol> on the volume group "
10372 "C<volgroup>, with C<size> megabytes."
10373 msgstr ""
10374
10375 # type: =head2
10376 #: ../src/guestfs-actions.pod:3530
10377 msgid "guestfs_lvm_canonical_lv_name"
10378 msgstr ""
10379
10380 # type: verbatim
10381 #: ../src/guestfs-actions.pod:3532
10382 #, no-wrap
10383 msgid ""
10384 " char *\n"
10385 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10386 "                                const char *lvname);\n"
10387 "\n"
10388 msgstr ""
10389
10390 # type: textblock
10391 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2382
10392 msgid ""
10393 "This converts alternative naming schemes for LVs that you might find to the "
10394 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10395 "LV>."
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3540 ../fish/guestfish-actions.pod:2386
10400 msgid ""
10401 "This command returns an error if the C<lvname> parameter does not refer to a "
10402 "logical volume."
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3543
10407 msgid "See also C<guestfs_is_lv>."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3548
10412 msgid "(Added in 1.5.24)"
10413 msgstr ""
10414
10415 # type: =head2
10416 #: ../src/guestfs-actions.pod:3550
10417 msgid "guestfs_lvm_clear_filter"
10418 msgstr ""
10419
10420 # type: verbatim
10421 #: ../src/guestfs-actions.pod:3552
10422 #, no-wrap
10423 msgid ""
10424 " int\n"
10425 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10426 "\n"
10427 msgstr ""
10428
10429 # type: textblock
10430 #: ../src/guestfs-actions.pod:3555
10431 msgid ""
10432 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10433 "see every block device."
10434 msgstr ""
10435
10436 # type: textblock
10437 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3600
10438 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2429
10439 msgid ""
10440 "This command also clears the LVM cache and performs a volume group scan."
10441 msgstr ""
10442
10443 # type: =head2
10444 #: ../src/guestfs-actions.pod:3565
10445 msgid "guestfs_lvm_remove_all"
10446 msgstr ""
10447
10448 # type: verbatim
10449 #: ../src/guestfs-actions.pod:3567
10450 #, no-wrap
10451 msgid ""
10452 " int\n"
10453 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10454 "\n"
10455 msgstr ""
10456
10457 # type: textblock
10458 #: ../src/guestfs-actions.pod:3570 ../fish/guestfish-actions.pod:2405
10459 msgid ""
10460 "This command removes all LVM logical volumes, volume groups and physical "
10461 "volumes."
10462 msgstr ""
10463
10464 # type: =head2
10465 #: ../src/guestfs-actions.pod:3580
10466 msgid "guestfs_lvm_set_filter"
10467 msgstr ""
10468
10469 # type: verbatim
10470 #: ../src/guestfs-actions.pod:3582
10471 #, no-wrap
10472 msgid ""
10473 " int\n"
10474 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10475 "                         char *const *devices);\n"
10476 "\n"
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2415
10481 msgid ""
10482 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10483 "block devices in the list C<devices>, and will ignore all other attached "
10484 "block devices."
10485 msgstr ""
10486
10487 # type: textblock
10488 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2419
10489 msgid ""
10490 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10491 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10492 "there are two types of duplication possible: either cloned PVs/VGs which "
10493 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10494 "same name.  In normal operation you cannot create this situation, but you "
10495 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10496 "inside the LVM metadata."
10497 msgstr ""
10498
10499 # type: textblock
10500 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2432
10501 msgid "You can filter whole block devices or individual partitions."
10502 msgstr ""
10503
10504 # type: textblock
10505 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2434
10506 msgid ""
10507 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10508 "filesystem), even if you are not filtering out that VG."
10509 msgstr ""
10510
10511 # type: =head2
10512 #: ../src/guestfs-actions.pod:3613
10513 msgid "guestfs_lvremove"
10514 msgstr ""
10515
10516 # type: verbatim
10517 #: ../src/guestfs-actions.pod:3615
10518 #, no-wrap
10519 msgid ""
10520 " int\n"
10521 " guestfs_lvremove (guestfs_h *g,\n"
10522 "                   const char *device);\n"
10523 "\n"
10524 msgstr ""
10525
10526 # type: textblock
10527 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2442
10528 msgid ""
10529 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10530 "LV, such as C</dev/VG/LV>."
10531 msgstr ""
10532
10533 # type: textblock
10534 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2445
10535 msgid ""
10536 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10537 "dev/VG>."
10538 msgstr ""
10539
10540 # type: textblock
10541 #: ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:4781
10542 #: ../src/guestfs-actions.pod:6511
10543 msgid "(Added in 1.0.13)"
10544 msgstr ""
10545
10546 # type: =head2
10547 #: ../src/guestfs-actions.pod:3629
10548 msgid "guestfs_lvrename"
10549 msgstr ""
10550
10551 # type: verbatim
10552 #: ../src/guestfs-actions.pod:3631
10553 #, no-wrap
10554 msgid ""
10555 " int\n"
10556 " guestfs_lvrename (guestfs_h *g,\n"
10557 "                   const char *logvol,\n"
10558 "                   const char *newlogvol);\n"
10559 "\n"
10560 msgstr ""
10561
10562 # type: textblock
10563 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2452
10564 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:6524
10569 msgid "(Added in 1.0.83)"
10570 msgstr ""
10571
10572 # type: =head2
10573 #: ../src/guestfs-actions.pod:3642
10574 msgid "guestfs_lvresize"
10575 msgstr ""
10576
10577 # type: verbatim
10578 #: ../src/guestfs-actions.pod:3644
10579 #, no-wrap
10580 msgid ""
10581 " int\n"
10582 " guestfs_lvresize (guestfs_h *g,\n"
10583 "                   const char *device,\n"
10584 "                   int mbytes);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2458
10590 msgid ""
10591 "This resizes (expands or shrinks) an existing LVM logical volume to "
10592 "C<mbytes>.  When reducing, data in the reduced part is lost."
10593 msgstr ""
10594
10595 # type: =head2
10596 #: ../src/guestfs-actions.pod:3657
10597 msgid "guestfs_lvresize_free"
10598 msgstr ""
10599
10600 # type: verbatim
10601 #: ../src/guestfs-actions.pod:3659
10602 #, no-wrap
10603 msgid ""
10604 " int\n"
10605 " guestfs_lvresize_free (guestfs_h *g,\n"
10606 "                        const char *lv,\n"
10607 "                        int percent);\n"
10608 "\n"
10609 msgstr ""
10610
10611 # type: textblock
10612 #: ../src/guestfs-actions.pod:3664 ../fish/guestfish-actions.pod:2466
10613 msgid ""
10614 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10615 "remaining free space in the volume group.  Commonly you would call this with "
10616 "pc = 100 which expands the logical volume as much as possible, using all "
10617 "remaining free space in the volume group."
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3672
10622 msgid "(Added in 1.3.3)"
10623 msgstr ""
10624
10625 # type: =head2
10626 #: ../src/guestfs-actions.pod:3674
10627 msgid "guestfs_lvs"
10628 msgstr ""
10629
10630 # type: verbatim
10631 #: ../src/guestfs-actions.pod:3676
10632 #, no-wrap
10633 msgid ""
10634 " char **\n"
10635 " guestfs_lvs (guestfs_h *g);\n"
10636 "\n"
10637 msgstr ""
10638
10639 # type: textblock
10640 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2476
10641 msgid ""
10642 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10643 "(8)> command."
10644 msgstr ""
10645
10646 # type: textblock
10647 #: ../src/guestfs-actions.pod:3682 ../fish/guestfish-actions.pod:2479
10648 msgid ""
10649 "This returns a list of the logical volume device names (eg. C</dev/"
10650 "VolGroup00/LogVol00>)."
10651 msgstr ""
10652
10653 # type: textblock
10654 #: ../src/guestfs-actions.pod:3685
10655 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10656 msgstr ""
10657
10658 # type: =head2
10659 #: ../src/guestfs-actions.pod:3693
10660 msgid "guestfs_lvs_full"
10661 msgstr ""
10662
10663 # type: verbatim
10664 #: ../src/guestfs-actions.pod:3695
10665 #, no-wrap
10666 msgid ""
10667 " struct guestfs_lvm_lv_list *\n"
10668 " guestfs_lvs_full (guestfs_h *g);\n"
10669 "\n"
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2488
10674 msgid ""
10675 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10676 "(8)> command.  The \"full\" version includes all fields."
10677 msgstr ""
10678
10679 # type: textblock
10680 #: ../src/guestfs-actions.pod:3701
10681 msgid ""
10682 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10683 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10684 msgstr ""
10685
10686 # type: =head2
10687 #: ../src/guestfs-actions.pod:3707
10688 msgid "guestfs_lvuuid"
10689 msgstr ""
10690
10691 # type: verbatim
10692 #: ../src/guestfs-actions.pod:3709
10693 #, no-wrap
10694 msgid ""
10695 " char *\n"
10696 " guestfs_lvuuid (guestfs_h *g,\n"
10697 "                 const char *device);\n"
10698 "\n"
10699 msgstr ""
10700
10701 # type: textblock
10702 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2495
10703 msgid "This command returns the UUID of the LVM LV C<device>."
10704 msgstr ""
10705
10706 # type: =head2
10707 #: ../src/guestfs-actions.pod:3720
10708 msgid "guestfs_lxattrlist"
10709 msgstr ""
10710
10711 # type: verbatim
10712 #: ../src/guestfs-actions.pod:3722
10713 #, no-wrap
10714 msgid ""
10715 " struct guestfs_xattr_list *\n"
10716 " guestfs_lxattrlist (guestfs_h *g,\n"
10717 "                     const char *path,\n"
10718 "                     char *const *names);\n"
10719 "\n"
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:3727 ../fish/guestfish-actions.pod:2501
10724 msgid ""
10725 "This call allows you to get the extended attributes of multiple files, where "
10726 "all files are in the directory C<path>.  C<names> is the list of files from "
10727 "this directory."
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2505
10732 msgid ""
10733 "On return you get a flat list of xattr structs which must be interpreted "
10734 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10735 "C<attrval> in this struct is zero-length to indicate there was an error "
10736 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10737 "number (the number of following attributes for this file, which could be C<"
10738 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10739 "for the first named file.  This repeats for the second and subsequent files."
10740 msgstr ""
10741
10742 # type: textblock
10743 #: ../src/guestfs-actions.pod:3741
10744 msgid ""
10745 "This call is intended for programs that want to efficiently list a directory "
10746 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10747 "a similarly efficient call for getting standard stats.  Very long directory "
10748 "listings might cause the protocol message size to be exceeded, causing this "
10749 "call to fail.  The caller must split up such requests into smaller groups of "
10750 "names."
10751 msgstr ""
10752
10753 # type: =head2
10754 #: ../src/guestfs-actions.pod:3755
10755 msgid "guestfs_mkdir"
10756 msgstr ""
10757
10758 # type: verbatim
10759 #: ../src/guestfs-actions.pod:3757
10760 #, no-wrap
10761 msgid ""
10762 " int\n"
10763 " guestfs_mkdir (guestfs_h *g,\n"
10764 "                const char *path);\n"
10765 "\n"
10766 msgstr ""
10767
10768 # type: textblock
10769 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2527
10770 msgid "Create a directory named C<path>."
10771 msgstr ""
10772
10773 # type: =head2
10774 #: ../src/guestfs-actions.pod:3767
10775 msgid "guestfs_mkdir_mode"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #: ../src/guestfs-actions.pod:3769
10780 #, no-wrap
10781 msgid ""
10782 " int\n"
10783 " guestfs_mkdir_mode (guestfs_h *g,\n"
10784 "                     const char *path,\n"
10785 "                     int mode);\n"
10786 "\n"
10787 msgstr ""
10788
10789 # type: textblock
10790 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2533
10791 msgid ""
10792 "This command creates a directory, setting the initial permissions of the "
10793 "directory to C<mode>."
10794 msgstr ""
10795
10796 # type: textblock
10797 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2536
10798 msgid ""
10799 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10800 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10801 "other ways."
10802 msgstr ""
10803
10804 # type: textblock
10805 #: ../src/guestfs-actions.pod:3781
10806 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10807 msgstr ""
10808
10809 # type: =head2
10810 #: ../src/guestfs-actions.pod:3787
10811 msgid "guestfs_mkdir_p"
10812 msgstr ""
10813
10814 # type: verbatim
10815 #: ../src/guestfs-actions.pod:3789
10816 #, no-wrap
10817 msgid ""
10818 " int\n"
10819 " guestfs_mkdir_p (guestfs_h *g,\n"
10820 "                  const char *path);\n"
10821 "\n"
10822 msgstr ""
10823
10824 # type: textblock
10825 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2546
10826 msgid ""
10827 "Create a directory named C<path>, creating any parent directories as "
10828 "necessary.  This is like the C<mkdir -p> shell command."
10829 msgstr ""
10830
10831 # type: =head2
10832 #: ../src/guestfs-actions.pod:3800
10833 msgid "guestfs_mkdtemp"
10834 msgstr ""
10835
10836 # type: verbatim
10837 #: ../src/guestfs-actions.pod:3802
10838 #, no-wrap
10839 msgid ""
10840 " char *\n"
10841 " guestfs_mkdtemp (guestfs_h *g,\n"
10842 "                  const char *template);\n"
10843 "\n"
10844 msgstr ""
10845
10846 # type: textblock
10847 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2553
10848 msgid ""
10849 "This command creates a temporary directory.  The C<template> parameter "
10850 "should be a full pathname for the temporary directory name with the final "
10851 "six characters being \"XXXXXX\"."
10852 msgstr ""
10853
10854 # type: textblock
10855 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2558
10856 msgid ""
10857 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10858 "being suitable for Windows filesystems."
10859 msgstr ""
10860
10861 # type: textblock
10862 #: ../src/guestfs-actions.pod:3814 ../fish/guestfish-actions.pod:2561
10863 msgid "The name of the temporary directory that was created is returned."
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2564
10868 msgid "The temporary directory is created with mode 0700 and is owned by root."
10869 msgstr ""
10870
10871 # type: textblock
10872 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2567
10873 msgid ""
10874 "The caller is responsible for deleting the temporary directory and its "
10875 "contents after use."
10876 msgstr ""
10877
10878 # type: textblock
10879 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2570
10880 msgid "See also: L<mkdtemp(3)>"
10881 msgstr ""
10882
10883 # type: =head2
10884 #: ../src/guestfs-actions.pod:3830
10885 msgid "guestfs_mke2fs_J"
10886 msgstr ""
10887
10888 # type: verbatim
10889 #: ../src/guestfs-actions.pod:3832
10890 #, no-wrap
10891 msgid ""
10892 " int\n"
10893 " guestfs_mke2fs_J (guestfs_h *g,\n"
10894 "                   const char *fstype,\n"
10895 "                   int blocksize,\n"
10896 "                   const char *device,\n"
10897 "                   const char *journal);\n"
10898 "\n"
10899 msgstr ""
10900
10901 # type: textblock
10902 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2576
10903 msgid ""
10904 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10905 "C<journal>.  It is equivalent to the command:"
10906 msgstr ""
10907
10908 # type: verbatim
10909 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2580
10910 #, no-wrap
10911 msgid ""
10912 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10913 "\n"
10914 msgstr ""
10915
10916 # type: textblock
10917 #: ../src/guestfs-actions.pod:3845
10918 msgid "See also C<guestfs_mke2journal>."
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3867
10923 #: ../src/guestfs-actions.pod:3885 ../src/guestfs-actions.pod:3901
10924 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:3929
10925 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4171
10926 msgid "(Added in 1.0.68)"
10927 msgstr ""
10928
10929 # type: =head2
10930 #: ../src/guestfs-actions.pod:3851
10931 msgid "guestfs_mke2fs_JL"
10932 msgstr ""
10933
10934 # type: verbatim
10935 #: ../src/guestfs-actions.pod:3853
10936 #, no-wrap
10937 msgid ""
10938 " int\n"
10939 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10940 "                    const char *fstype,\n"
10941 "                    int blocksize,\n"
10942 "                    const char *device,\n"
10943 "                    const char *label);\n"
10944 "\n"
10945 msgstr ""
10946
10947 # type: textblock
10948 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2588
10949 msgid ""
10950 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10951 "the journal labeled C<label>."
10952 msgstr ""
10953
10954 # type: textblock
10955 #: ../src/guestfs-actions.pod:3863
10956 msgid "See also C<guestfs_mke2journal_L>."
10957 msgstr ""
10958
10959 # type: =head2
10960 #: ../src/guestfs-actions.pod:3869
10961 msgid "guestfs_mke2fs_JU"
10962 msgstr ""
10963
10964 # type: verbatim
10965 #: ../src/guestfs-actions.pod:3871
10966 #, no-wrap
10967 msgid ""
10968 " int\n"
10969 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10970 "                    const char *fstype,\n"
10971 "                    int blocksize,\n"
10972 "                    const char *device,\n"
10973 "                    const char *uuid);\n"
10974 "\n"
10975 msgstr ""
10976
10977 # type: textblock
10978 #: ../src/guestfs-actions.pod:3878 ../fish/guestfish-actions.pod:2597
10979 msgid ""
10980 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10981 "the journal with UUID C<uuid>."
10982 msgstr ""
10983
10984 # type: textblock
10985 #: ../src/guestfs-actions.pod:3881
10986 msgid "See also C<guestfs_mke2journal_U>."
10987 msgstr ""
10988
10989 # type: =head2
10990 #: ../src/guestfs-actions.pod:3887
10991 msgid "guestfs_mke2journal"
10992 msgstr ""
10993
10994 # type: verbatim
10995 #: ../src/guestfs-actions.pod:3889
10996 #, no-wrap
10997 msgid ""
10998 " int\n"
10999 " guestfs_mke2journal (guestfs_h *g,\n"
11000 "                      int blocksize,\n"
11001 "                      const char *device);\n"
11002 "\n"
11003 msgstr ""
11004
11005 # type: textblock
11006 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2606
11007 msgid ""
11008 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11009 "command:"
11010 msgstr ""
11011
11012 # type: verbatim
11013 #: ../src/guestfs-actions.pod:3897 ../fish/guestfish-actions.pod:2609
11014 #, no-wrap
11015 msgid ""
11016 " mke2fs -O journal_dev -b blocksize device\n"
11017 "\n"
11018 msgstr ""
11019
11020 # type: =head2
11021 #: ../src/guestfs-actions.pod:3903
11022 msgid "guestfs_mke2journal_L"
11023 msgstr ""
11024
11025 # type: verbatim
11026 #: ../src/guestfs-actions.pod:3905
11027 #, no-wrap
11028 msgid ""
11029 " int\n"
11030 " guestfs_mke2journal_L (guestfs_h *g,\n"
11031 "                        int blocksize,\n"
11032 "                        const char *label,\n"
11033 "                        const char *device);\n"
11034 "\n"
11035 msgstr ""
11036
11037 # type: textblock
11038 #: ../src/guestfs-actions.pod:3911 ../fish/guestfish-actions.pod:2615
11039 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11040 msgstr ""
11041
11042 # type: =head2
11043 #: ../src/guestfs-actions.pod:3917
11044 msgid "guestfs_mke2journal_U"
11045 msgstr ""
11046
11047 # type: verbatim
11048 #: ../src/guestfs-actions.pod:3919
11049 #, no-wrap
11050 msgid ""
11051 " int\n"
11052 " guestfs_mke2journal_U (guestfs_h *g,\n"
11053 "                        int blocksize,\n"
11054 "                        const char *uuid,\n"
11055 "                        const char *device);\n"
11056 "\n"
11057 msgstr ""
11058
11059 # type: textblock
11060 #: ../src/guestfs-actions.pod:3925 ../fish/guestfish-actions.pod:2621
11061 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11062 msgstr ""
11063
11064 # type: =head2
11065 #: ../src/guestfs-actions.pod:3931
11066 msgid "guestfs_mkfifo"
11067 msgstr ""
11068
11069 # type: verbatim
11070 #: ../src/guestfs-actions.pod:3933
11071 #, no-wrap
11072 msgid ""
11073 " int\n"
11074 " guestfs_mkfifo (guestfs_h *g,\n"
11075 "                 int mode,\n"
11076 "                 const char *path);\n"
11077 "\n"
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3938
11082 msgid ""
11083 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11084 "is just a convenient wrapper around C<guestfs_mknod>."
11085 msgstr ""
11086
11087 # type: =head2
11088 #: ../src/guestfs-actions.pod:3948
11089 msgid "guestfs_mkfs"
11090 msgstr ""
11091
11092 # type: verbatim
11093 #: ../src/guestfs-actions.pod:3950
11094 #, no-wrap
11095 msgid ""
11096 " int\n"
11097 " guestfs_mkfs (guestfs_h *g,\n"
11098 "               const char *fstype,\n"
11099 "               const char *device);\n"
11100 "\n"
11101 msgstr ""
11102
11103 # type: textblock
11104 #: ../src/guestfs-actions.pod:3955 ../fish/guestfish-actions.pod:2637
11105 msgid ""
11106 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11107 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11108 msgstr ""
11109
11110 # type: =head2
11111 #: ../src/guestfs-actions.pod:3963
11112 msgid "guestfs_mkfs_b"
11113 msgstr ""
11114
11115 # type: verbatim
11116 #: ../src/guestfs-actions.pod:3965
11117 #, no-wrap
11118 msgid ""
11119 " int\n"
11120 " guestfs_mkfs_b (guestfs_h *g,\n"
11121 "                 const char *fstype,\n"
11122 "                 int blocksize,\n"
11123 "                 const char *device);\n"
11124 "\n"
11125 msgstr ""
11126
11127 # type: textblock
11128 #: ../src/guestfs-actions.pod:3971
11129 msgid ""
11130 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11131 "block size of the resulting filesystem.  Supported block sizes depend on the "
11132 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11133 msgstr ""
11134
11135 # type: textblock
11136 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2650
11137 msgid ""
11138 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11139 "cluster size."
11140 msgstr ""
11141
11142 # type: =head2
11143 #: ../src/guestfs-actions.pod:3983
11144 msgid "guestfs_mkmountpoint"
11145 msgstr ""
11146
11147 # type: verbatim
11148 #: ../src/guestfs-actions.pod:3985
11149 #, no-wrap
11150 msgid ""
11151 " int\n"
11152 " guestfs_mkmountpoint (guestfs_h *g,\n"
11153 "                       const char *exemptpath);\n"
11154 "\n"
11155 msgstr ""
11156
11157 # type: textblock
11158 #: ../src/guestfs-actions.pod:3989
11159 msgid ""
11160 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11161 "that can be used to create extra mountpoints before mounting the first "
11162 "filesystem."
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2661
11167 msgid ""
11168 "These calls are I<only> necessary in some very limited circumstances, mainly "
11169 "the case where you want to mount a mix of unrelated and/or read-only "
11170 "filesystems together."
11171 msgstr ""
11172
11173 # type: textblock
11174 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:2665
11175 msgid ""
11176 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11177 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11178 "inside that.  You can unpack this as follows in guestfish:"
11179 msgstr ""
11180
11181 # type: verbatim
11182 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2670
11183 #, no-wrap
11184 msgid ""
11185 " add-ro Fedora-11-i686-Live.iso\n"
11186 " run\n"
11187 " mkmountpoint /cd\n"
11188 " mkmountpoint /sqsh\n"
11189 " mkmountpoint /ext3fs\n"
11190 " mount /dev/sda /cd\n"
11191 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11192 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11193 "\n"
11194 msgstr ""
11195
11196 # type: textblock
11197 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2679
11198 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11199 msgstr ""
11200
11201 # type: textblock
11202 #: ../src/guestfs-actions.pod:4013
11203 msgid ""
11204 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11205 "may get unexpected errors if you try to mix these calls.  It is safest to "
11206 "manually unmount filesystems and remove mountpoints after use."
11207 msgstr ""
11208
11209 # type: textblock
11210 #: ../src/guestfs-actions.pod:4017
11211 msgid ""
11212 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11213 "first, so for this to work for manual mountpoints, you must ensure that the "
11214 "innermost mountpoints have the longest pathnames, as in the example code "
11215 "above."
11216 msgstr ""
11217
11218 # type: textblock
11219 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2690
11220 msgid ""
11221 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11222 msgstr ""
11223
11224 # type: textblock
11225 #: ../src/guestfs-actions.pod:4024
11226 msgid ""
11227 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11228 "means that C<guestfs_umount_all> is called when the handle is closed which "
11229 "can also trigger these issues."
11230 msgstr ""
11231
11232 # type: textblock
11233 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4289
11234 #: ../src/guestfs-actions.pod:5182
11235 msgid "(Added in 1.0.62)"
11236 msgstr ""
11237
11238 # type: =head2
11239 #: ../src/guestfs-actions.pod:4032
11240 msgid "guestfs_mknod"
11241 msgstr ""
11242
11243 # type: verbatim
11244 #: ../src/guestfs-actions.pod:4034
11245 #, no-wrap
11246 msgid ""
11247 " int\n"
11248 " guestfs_mknod (guestfs_h *g,\n"
11249 "                int mode,\n"
11250 "                int devmajor,\n"
11251 "                int devminor,\n"
11252 "                const char *path);\n"
11253 "\n"
11254 msgstr ""
11255
11256 # type: textblock
11257 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2700
11258 msgid ""
11259 "This call creates block or character special devices, or named pipes (FIFOs)."
11260 msgstr ""
11261
11262 # type: textblock
11263 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2703
11264 msgid ""
11265 "The C<mode> parameter should be the mode, using the standard constants.  "
11266 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11267 "used when creating block and character special devices."
11268 msgstr ""
11269
11270 # type: textblock
11271 #: ../src/guestfs-actions.pod:4049
11272 msgid ""
11273 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11274 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11275 "regular file).  These constants are available in the standard Linux header "
11276 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11277 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11278 "the appropriate constant for you."
11279 msgstr ""
11280
11281 # type: =head2
11282 #: ../src/guestfs-actions.pod:4063
11283 msgid "guestfs_mknod_b"
11284 msgstr ""
11285
11286 # type: verbatim
11287 #: ../src/guestfs-actions.pod:4065
11288 #, no-wrap
11289 msgid ""
11290 " int\n"
11291 " guestfs_mknod_b (guestfs_h *g,\n"
11292 "                  int mode,\n"
11293 "                  int devmajor,\n"
11294 "                  int devminor,\n"
11295 "                  const char *path);\n"
11296 "\n"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4072
11301 msgid ""
11302 "This call creates a block device node called C<path> with mode C<mode> and "
11303 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11304 "wrapper around C<guestfs_mknod>."
11305 msgstr ""
11306
11307 # type: =head2
11308 #: ../src/guestfs-actions.pod:4082
11309 msgid "guestfs_mknod_c"
11310 msgstr ""
11311
11312 # type: verbatim
11313 #: ../src/guestfs-actions.pod:4084
11314 #, no-wrap
11315 msgid ""
11316 " int\n"
11317 " guestfs_mknod_c (guestfs_h *g,\n"
11318 "                  int mode,\n"
11319 "                  int devmajor,\n"
11320 "                  int devminor,\n"
11321 "                  const char *path);\n"
11322 "\n"
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4091
11327 msgid ""
11328 "This call creates a char device node called C<path> with mode C<mode> and "
11329 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11330 "wrapper around C<guestfs_mknod>."
11331 msgstr ""
11332
11333 # type: =head2
11334 #: ../src/guestfs-actions.pod:4101
11335 msgid "guestfs_mkswap"
11336 msgstr ""
11337
11338 # type: verbatim
11339 #: ../src/guestfs-actions.pod:4103
11340 #, no-wrap
11341 msgid ""
11342 " int\n"
11343 " guestfs_mkswap (guestfs_h *g,\n"
11344 "                 const char *device);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4107 ../fish/guestfish-actions.pod:2742
11350 msgid "Create a swap partition on C<device>."
11351 msgstr ""
11352
11353 # type: =head2
11354 #: ../src/guestfs-actions.pod:4113
11355 msgid "guestfs_mkswap_L"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #: ../src/guestfs-actions.pod:4115
11360 #, no-wrap
11361 msgid ""
11362 " int\n"
11363 " guestfs_mkswap_L (guestfs_h *g,\n"
11364 "                   const char *label,\n"
11365 "                   const char *device);\n"
11366 "\n"
11367 msgstr ""
11368
11369 # type: textblock
11370 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:2748
11371 msgid "Create a swap partition on C<device> with label C<label>."
11372 msgstr ""
11373
11374 # type: textblock
11375 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:2750
11376 msgid ""
11377 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11378 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11379 "or swap tools."
11380 msgstr ""
11381
11382 # type: =head2
11383 #: ../src/guestfs-actions.pod:4130
11384 msgid "guestfs_mkswap_U"
11385 msgstr ""
11386
11387 # type: verbatim
11388 #: ../src/guestfs-actions.pod:4132
11389 #, no-wrap
11390 msgid ""
11391 " int\n"
11392 " guestfs_mkswap_U (guestfs_h *g,\n"
11393 "                   const char *uuid,\n"
11394 "                   const char *device);\n"
11395 "\n"
11396 msgstr ""
11397
11398 # type: textblock
11399 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:2758
11400 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11401 msgstr ""
11402
11403 # type: =head2
11404 #: ../src/guestfs-actions.pod:4143
11405 msgid "guestfs_mkswap_file"
11406 msgstr ""
11407
11408 # type: verbatim
11409 #: ../src/guestfs-actions.pod:4145
11410 #, no-wrap
11411 msgid ""
11412 " int\n"
11413 " guestfs_mkswap_file (guestfs_h *g,\n"
11414 "                      const char *path);\n"
11415 "\n"
11416 msgstr ""
11417
11418 # type: textblock
11419 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2764
11420 msgid "Create a swap file."
11421 msgstr ""
11422
11423 # type: textblock
11424 #: ../src/guestfs-actions.pod:4151
11425 msgid ""
11426 "This command just writes a swap file signature to an existing file.  To "
11427 "create the file itself, use something like C<guestfs_fallocate>."
11428 msgstr ""
11429
11430 # type: =head2
11431 #: ../src/guestfs-actions.pod:4158
11432 msgid "guestfs_modprobe"
11433 msgstr ""
11434
11435 # type: verbatim
11436 #: ../src/guestfs-actions.pod:4160
11437 #, no-wrap
11438 msgid ""
11439 " int\n"
11440 " guestfs_modprobe (guestfs_h *g,\n"
11441 "                   const char *modulename);\n"
11442 "\n"
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2773
11447 msgid "This loads a kernel module in the appliance."
11448 msgstr ""
11449
11450 # type: textblock
11451 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:2775
11452 msgid ""
11453 "The kernel module must have been whitelisted when libguestfs was built (see "
11454 "C<appliance/kmod.whitelist.in> in the source)."
11455 msgstr ""
11456
11457 # type: =head2
11458 #: ../src/guestfs-actions.pod:4173
11459 msgid "guestfs_mount"
11460 msgstr ""
11461
11462 # type: verbatim
11463 #: ../src/guestfs-actions.pod:4175
11464 #, no-wrap
11465 msgid ""
11466 " int\n"
11467 " guestfs_mount (guestfs_h *g,\n"
11468 "                const char *device,\n"
11469 "                const char *mountpoint);\n"
11470 "\n"
11471 msgstr ""
11472
11473 # type: textblock
11474 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:2782
11475 msgid ""
11476 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11477 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11478 "those block devices contain partitions, they will have the usual names (eg. "
11479 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11480 msgstr ""
11481
11482 # type: textblock
11483 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2788
11484 msgid ""
11485 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11486 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11487 "mounted on directories which already exist."
11488 msgstr ""
11489
11490 # type: textblock
11491 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:2793
11492 msgid ""
11493 "The mounted filesystem is writable, if we have sufficient permissions on the "
11494 "underlying device."
11495 msgstr ""
11496
11497 # type: textblock
11498 #: ../src/guestfs-actions.pod:4194
11499 msgid ""
11500 "B<Important note:> When you use this call, the filesystem options C<sync> "
11501 "and C<noatime> are set implicitly.  This was originally done because we "
11502 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11503 "very large negative performance impact and negligible effect on "
11504 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11505 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11506 "(use an empty string for the first parameter if you don't want any options)."
11507 msgstr ""
11508
11509 # type: =head2
11510 #: ../src/guestfs-actions.pod:4208
11511 msgid "guestfs_mount_loop"
11512 msgstr ""
11513
11514 # type: verbatim
11515 #: ../src/guestfs-actions.pod:4210
11516 #, no-wrap
11517 msgid ""
11518 " int\n"
11519 " guestfs_mount_loop (guestfs_h *g,\n"
11520 "                     const char *file,\n"
11521 "                     const char *mountpoint);\n"
11522 "\n"
11523 msgstr ""
11524
11525 # type: textblock
11526 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2810
11527 msgid ""
11528 "This command lets you mount C<file> (a filesystem image in a file) on a "
11529 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11530 "mountpoint>."
11531 msgstr ""
11532
11533 # type: =head2
11534 #: ../src/guestfs-actions.pod:4223
11535 msgid "guestfs_mount_options"
11536 msgstr ""
11537
11538 # type: verbatim
11539 #: ../src/guestfs-actions.pod:4225
11540 #, no-wrap
11541 msgid ""
11542 " int\n"
11543 " guestfs_mount_options (guestfs_h *g,\n"
11544 "                        const char *options,\n"
11545 "                        const char *device,\n"
11546 "                        const char *mountpoint);\n"
11547 "\n"
11548 msgstr ""
11549
11550 # type: textblock
11551 #: ../src/guestfs-actions.pod:4231
11552 msgid ""
11553 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11554 "the mount options as for the L<mount(8)> I<-o> flag."
11555 msgstr ""
11556
11557 # type: textblock
11558 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:2822
11559 msgid ""
11560 "If the C<options> parameter is an empty string, then no options are passed "
11561 "(all options default to whatever the filesystem uses)."
11562 msgstr ""
11563
11564 # type: textblock
11565 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4255
11566 #: ../src/guestfs-actions.pod:4272
11567 msgid "(Added in 1.0.10)"
11568 msgstr ""
11569
11570 # type: =head2
11571 #: ../src/guestfs-actions.pod:4243
11572 msgid "guestfs_mount_ro"
11573 msgstr ""
11574
11575 # type: verbatim
11576 #: ../src/guestfs-actions.pod:4245
11577 #, no-wrap
11578 msgid ""
11579 " int\n"
11580 " guestfs_mount_ro (guestfs_h *g,\n"
11581 "                   const char *device,\n"
11582 "                   const char *mountpoint);\n"
11583 "\n"
11584 msgstr ""
11585
11586 # type: textblock
11587 #: ../src/guestfs-actions.pod:4250
11588 msgid ""
11589 "This is the same as the C<guestfs_mount> command, but it mounts the "
11590 "filesystem with the read-only (I<-o ro>) flag."
11591 msgstr ""
11592
11593 # type: =head2
11594 #: ../src/guestfs-actions.pod:4257
11595 msgid "guestfs_mount_vfs"
11596 msgstr ""
11597
11598 # type: verbatim
11599 #: ../src/guestfs-actions.pod:4259
11600 #, no-wrap
11601 msgid ""
11602 " int\n"
11603 " guestfs_mount_vfs (guestfs_h *g,\n"
11604 "                    const char *options,\n"
11605 "                    const char *vfstype,\n"
11606 "                    const char *device,\n"
11607 "                    const char *mountpoint);\n"
11608 "\n"
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4266
11613 msgid ""
11614 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11615 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11616 "t> flags."
11617 msgstr ""
11618
11619 # type: =head2
11620 #: ../src/guestfs-actions.pod:4274
11621 msgid "guestfs_mountpoints"
11622 msgstr ""
11623
11624 # type: verbatim
11625 #: ../src/guestfs-actions.pod:4276
11626 #, no-wrap
11627 msgid ""
11628 " char **\n"
11629 " guestfs_mountpoints (guestfs_h *g);\n"
11630 "\n"
11631 msgstr ""
11632
11633 # type: textblock
11634 #: ../src/guestfs-actions.pod:4279
11635 msgid ""
11636 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11637 "devices.  This one returns a hash table (map) of device name to directory "
11638 "where the device is mounted."
11639 msgstr ""
11640
11641 # type: =head2
11642 #: ../src/guestfs-actions.pod:4291
11643 msgid "guestfs_mounts"
11644 msgstr ""
11645
11646 # type: verbatim
11647 #: ../src/guestfs-actions.pod:4293
11648 #, no-wrap
11649 msgid ""
11650 " char **\n"
11651 " guestfs_mounts (guestfs_h *g);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4296 ../fish/guestfish-actions.pod:2853
11657 msgid ""
11658 "This returns the list of currently mounted filesystems.  It returns the list "
11659 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11660 msgstr ""
11661
11662 # type: textblock
11663 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2856
11664 msgid "Some internal mounts are not shown."
11665 msgstr ""
11666
11667 # type: textblock
11668 #: ../src/guestfs-actions.pod:4301
11669 msgid "See also: C<guestfs_mountpoints>"
11670 msgstr ""
11671
11672 # type: =head2
11673 #: ../src/guestfs-actions.pod:4309
11674 msgid "guestfs_mv"
11675 msgstr ""
11676
11677 # type: verbatim
11678 #: ../src/guestfs-actions.pod:4311
11679 #, no-wrap
11680 msgid ""
11681 " int\n"
11682 " guestfs_mv (guestfs_h *g,\n"
11683 "             const char *src,\n"
11684 "             const char *dest);\n"
11685 "\n"
11686 msgstr ""
11687
11688 # type: textblock
11689 #: ../src/guestfs-actions.pod:4316 ../fish/guestfish-actions.pod:2864
11690 msgid ""
11691 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11692 "destination filename or destination directory."
11693 msgstr ""
11694
11695 # type: =head2
11696 #: ../src/guestfs-actions.pod:4323
11697 msgid "guestfs_ntfs_3g_probe"
11698 msgstr ""
11699
11700 # type: verbatim
11701 #: ../src/guestfs-actions.pod:4325
11702 #, no-wrap
11703 msgid ""
11704 " int\n"
11705 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11706 "                        int rw,\n"
11707 "                        const char *device);\n"
11708 "\n"
11709 msgstr ""
11710
11711 # type: textblock
11712 #: ../src/guestfs-actions.pod:4330 ../fish/guestfish-actions.pod:2871
11713 msgid ""
11714 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11715 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11716 "write, and some cannot be mounted at all)."
11717 msgstr ""
11718
11719 # type: textblock
11720 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2875
11721 msgid ""
11722 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11723 "can be mounted read-write.  Set it to false if you want to test if the "
11724 "volume can be mounted read-only."
11725 msgstr ""
11726
11727 # type: textblock
11728 #: ../src/guestfs-actions.pod:4338 ../fish/guestfish-actions.pod:2879
11729 msgid ""
11730 "The return value is an integer which C<0> if the operation would succeed, or "
11731 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11732 msgstr ""
11733
11734 # type: textblock
11735 #: ../src/guestfs-actions.pod:4344
11736 msgid "(Added in 1.0.43)"
11737 msgstr ""
11738
11739 # type: =head2
11740 #: ../src/guestfs-actions.pod:4346
11741 msgid "guestfs_ntfsresize"
11742 msgstr ""
11743
11744 # type: verbatim
11745 #: ../src/guestfs-actions.pod:4348
11746 #, no-wrap
11747 msgid ""
11748 " int\n"
11749 " guestfs_ntfsresize (guestfs_h *g,\n"
11750 "                     const char *device);\n"
11751 "\n"
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4352 ../fish/guestfish-actions.pod:2887
11756 msgid ""
11757 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11758 "size of the underlying device.  See also L<ntfsresize(8)>."
11759 msgstr ""
11760
11761 # type: =head2
11762 #: ../src/guestfs-actions.pod:4360
11763 msgid "guestfs_ntfsresize_size"
11764 msgstr ""
11765
11766 # type: verbatim
11767 #: ../src/guestfs-actions.pod:4362
11768 #, no-wrap
11769 msgid ""
11770 " int\n"
11771 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11772 "                          const char *device,\n"
11773 "                          int64_t size);\n"
11774 "\n"
11775 msgstr ""
11776
11777 # type: textblock
11778 #: ../src/guestfs-actions.pod:4367
11779 msgid ""
11780 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11781 "to specify the new size (in bytes) explicitly."
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4808
11786 #: ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:5130
11787 msgid "(Added in 1.3.14)"
11788 msgstr ""
11789
11790 # type: =head2
11791 #: ../src/guestfs-actions.pod:4374
11792 msgid "guestfs_part_add"
11793 msgstr ""
11794
11795 # type: verbatim
11796 #: ../src/guestfs-actions.pod:4376
11797 #, no-wrap
11798 msgid ""
11799 " int\n"
11800 " guestfs_part_add (guestfs_h *g,\n"
11801 "                   const char *device,\n"
11802 "                   const char *prlogex,\n"
11803 "                   int64_t startsect,\n"
11804 "                   int64_t endsect);\n"
11805 "\n"
11806 msgstr ""
11807
11808 # type: textblock
11809 #: ../src/guestfs-actions.pod:4383
11810 msgid ""
11811 "This command adds a partition to C<device>.  If there is no partition table "
11812 "on the device, call C<guestfs_part_init> first."
11813 msgstr ""
11814
11815 # type: textblock
11816 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:2905
11817 msgid ""
11818 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11819 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11820 "C<logical>) and C<e> (or C<extended>) partition types."
11821 msgstr ""
11822
11823 # type: textblock
11824 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2910
11825 msgid ""
11826 "C<startsect> and C<endsect> are the start and end of the partition in "
11827 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11828 "from the end of the disk (C<-1> is the last sector)."
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4395
11833 msgid ""
11834 "Creating a partition which covers the whole disk is not so easy.  Use "
11835 "C<guestfs_part_disk> to do that."
11836 msgstr ""
11837
11838 # type: textblock
11839 #: ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4438
11840 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4569
11841 #: ../src/guestfs-actions.pod:4607 ../src/guestfs-actions.pod:4626
11842 #: ../src/guestfs-actions.pod:4666
11843 msgid "(Added in 1.0.78)"
11844 msgstr ""
11845
11846 # type: =head2
11847 #: ../src/guestfs-actions.pod:4402
11848 msgid "guestfs_part_del"
11849 msgstr ""
11850
11851 # type: verbatim
11852 #: ../src/guestfs-actions.pod:4404
11853 #, no-wrap
11854 msgid ""
11855 " int\n"
11856 " guestfs_part_del (guestfs_h *g,\n"
11857 "                   const char *device,\n"
11858 "                   int partnum);\n"
11859 "\n"
11860 msgstr ""
11861
11862 # type: textblock
11863 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:2921
11864 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2923
11869 msgid ""
11870 "Note that in the case of MBR partitioning, deleting an extended partition "
11871 "also deletes any logical partitions it contains."
11872 msgstr ""
11873
11874 # type: =head2
11875 #: ../src/guestfs-actions.pod:4419
11876 msgid "guestfs_part_disk"
11877 msgstr ""
11878
11879 # type: verbatim
11880 #: ../src/guestfs-actions.pod:4421
11881 #, no-wrap
11882 msgid ""
11883 " int\n"
11884 " guestfs_part_disk (guestfs_h *g,\n"
11885 "                    const char *device,\n"
11886 "                    const char *parttype);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4426
11892 msgid ""
11893 "This command is simply a combination of C<guestfs_part_init> followed by "
11894 "C<guestfs_part_add> to create a single primary partition covering the whole "
11895 "disk."
11896 msgstr ""
11897
11898 # type: textblock
11899 #: ../src/guestfs-actions.pod:4430
11900 msgid ""
11901 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11902 "possible values are described in C<guestfs_part_init>."
11903 msgstr ""
11904
11905 # type: =head2
11906 #: ../src/guestfs-actions.pod:4440
11907 msgid "guestfs_part_get_bootable"
11908 msgstr ""
11909
11910 # type: verbatim
11911 #: ../src/guestfs-actions.pod:4442
11912 #, no-wrap
11913 msgid ""
11914 " int\n"
11915 " guestfs_part_get_bootable (guestfs_h *g,\n"
11916 "                            const char *device,\n"
11917 "                            int partnum);\n"
11918 "\n"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2945
11923 msgid ""
11924 "This command returns true if the partition C<partnum> on C<device> has the "
11925 "bootable flag set."
11926 msgstr ""
11927
11928 # type: textblock
11929 #: ../src/guestfs-actions.pod:4450
11930 msgid "See also C<guestfs_part_set_bootable>."
11931 msgstr ""
11932
11933 # type: =head2
11934 #: ../src/guestfs-actions.pod:4456
11935 msgid "guestfs_part_get_mbr_id"
11936 msgstr ""
11937
11938 # type: verbatim
11939 #: ../src/guestfs-actions.pod:4458
11940 #, no-wrap
11941 msgid ""
11942 " int\n"
11943 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11944 "                          const char *device,\n"
11945 "                          int partnum);\n"
11946 "\n"
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2954
11951 msgid ""
11952 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11953 "partition C<partnum>."
11954 msgstr ""
11955
11956 # type: textblock
11957 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4642
11958 msgid ""
11959 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11960 "undefined results for other partition table types (see "
11961 "C<guestfs_part_get_parttype>)."
11962 msgstr ""
11963
11964 # type: =head2
11965 #: ../src/guestfs-actions.pod:4474
11966 msgid "guestfs_part_get_parttype"
11967 msgstr ""
11968
11969 # type: verbatim
11970 #: ../src/guestfs-actions.pod:4476
11971 #, no-wrap
11972 msgid ""
11973 " char *\n"
11974 " guestfs_part_get_parttype (guestfs_h *g,\n"
11975 "                            const char *device);\n"
11976 "\n"
11977 msgstr ""
11978
11979 # type: textblock
11980 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:2965
11981 msgid ""
11982 "This command examines the partition table on C<device> and returns the "
11983 "partition table type (format) being used."
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4483
11988 msgid ""
11989 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11990 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11991 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11992 msgstr ""
11993
11994 # type: =head2
11995 #: ../src/guestfs-actions.pod:4493
11996 msgid "guestfs_part_init"
11997 msgstr ""
11998
11999 # type: verbatim
12000 #: ../src/guestfs-actions.pod:4495
12001 #, no-wrap
12002 msgid ""
12003 " int\n"
12004 " guestfs_part_init (guestfs_h *g,\n"
12005 "                    const char *device,\n"
12006 "                    const char *parttype);\n"
12007 "\n"
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4500 ../fish/guestfish-actions.pod:2977
12012 msgid ""
12013 "This creates an empty partition table on C<device> of one of the partition "
12014 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12015 "(for large disks)."
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4504
12020 msgid ""
12021 "Initially there are no partitions.  Following this, you should call "
12022 "C<guestfs_part_add> for each partition required."
12023 msgstr ""
12024
12025 # type: textblock
12026 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:2984
12027 msgid "Possible values for C<parttype> are:"
12028 msgstr ""
12029
12030 # type: =item
12031 #: ../src/guestfs-actions.pod:4511 ../fish/guestfish-actions.pod:2988
12032 msgid "B<efi> | B<gpt>"
12033 msgstr ""
12034
12035 # type: textblock
12036 #: ../src/guestfs-actions.pod:4513 ../fish/guestfish-actions.pod:2990
12037 msgid "Intel EFI / GPT partition table."
12038 msgstr ""
12039
12040 # type: textblock
12041 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:2992
12042 msgid ""
12043 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12044 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12045 "the C<mbr> format."
12046 msgstr ""
12047
12048 # type: =item
12049 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:2996
12050 msgid "B<mbr> | B<msdos>"
12051 msgstr ""
12052
12053 # type: textblock
12054 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:2998
12055 msgid ""
12056 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12057 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12058 "TB.  For large disks we recommend using C<gpt>."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3005
12063 msgid ""
12064 "Other partition table types that may work but are not supported include:"
12065 msgstr ""
12066
12067 # type: =item
12068 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3010
12069 msgid "B<aix>"
12070 msgstr ""
12071
12072 # type: textblock
12073 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3012
12074 msgid "AIX disk labels."
12075 msgstr ""
12076
12077 # type: =item
12078 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3014
12079 msgid "B<amiga> | B<rdb>"
12080 msgstr ""
12081
12082 # type: textblock
12083 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3016
12084 msgid "Amiga \"Rigid Disk Block\" format."
12085 msgstr ""
12086
12087 # type: =item
12088 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3018
12089 msgid "B<bsd>"
12090 msgstr ""
12091
12092 # type: textblock
12093 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:3020
12094 msgid "BSD disk labels."
12095 msgstr ""
12096
12097 # type: =item
12098 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3022
12099 msgid "B<dasd>"
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3024
12104 msgid "DASD, used on IBM mainframes."
12105 msgstr ""
12106
12107 # type: =item
12108 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3026
12109 msgid "B<dvh>"
12110 msgstr ""
12111
12112 # type: textblock
12113 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3028
12114 msgid "MIPS/SGI volumes."
12115 msgstr ""
12116
12117 # type: =item
12118 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3030
12119 msgid "B<mac>"
12120 msgstr ""
12121
12122 # type: textblock
12123 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3032
12124 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12125 msgstr ""
12126
12127 # type: =item
12128 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3034
12129 msgid "B<pc98>"
12130 msgstr ""
12131
12132 # type: textblock
12133 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3036
12134 msgid "NEC PC-98 format, common in Japan apparently."
12135 msgstr ""
12136
12137 # type: =item
12138 #: ../src/guestfs-actions.pod:4561 ../fish/guestfish-actions.pod:3038
12139 msgid "B<sun>"
12140 msgstr ""
12141
12142 # type: textblock
12143 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
12144 msgid "Sun disk labels."
12145 msgstr ""
12146
12147 # type: =head2
12148 #: ../src/guestfs-actions.pod:4571
12149 msgid "guestfs_part_list"
12150 msgstr ""
12151
12152 # type: verbatim
12153 #: ../src/guestfs-actions.pod:4573
12154 #, no-wrap
12155 msgid ""
12156 " struct guestfs_partition_list *\n"
12157 " guestfs_part_list (guestfs_h *g,\n"
12158 "                    const char *device);\n"
12159 "\n"
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3048
12164 msgid ""
12165 "This command parses the partition table on C<device> and returns the list of "
12166 "partitions found."
12167 msgstr ""
12168
12169 # type: textblock
12170 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3051
12171 msgid "The fields in the returned structure are:"
12172 msgstr ""
12173
12174 # type: =item
12175 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3055
12176 msgid "B<part_num>"
12177 msgstr ""
12178
12179 # type: textblock
12180 #: ../src/guestfs-actions.pod:4586 ../fish/guestfish-actions.pod:3057
12181 msgid "Partition number, counting from 1."
12182 msgstr ""
12183
12184 # type: =item
12185 #: ../src/guestfs-actions.pod:4588 ../fish/guestfish-actions.pod:3059
12186 msgid "B<part_start>"
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4590
12191 msgid ""
12192 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12193 "the device's sector size, see C<guestfs_blockdev_getss>."
12194 msgstr ""
12195
12196 # type: =item
12197 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3064
12198 msgid "B<part_end>"
12199 msgstr ""
12200
12201 # type: textblock
12202 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3066
12203 msgid "End of the partition in bytes."
12204 msgstr ""
12205
12206 # type: =item
12207 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3068
12208 msgid "B<part_size>"
12209 msgstr ""
12210
12211 # type: textblock
12212 #: ../src/guestfs-actions.pod:4599 ../fish/guestfish-actions.pod:3070
12213 msgid "Size of the partition in bytes."
12214 msgstr ""
12215
12216 # type: textblock
12217 #: ../src/guestfs-actions.pod:4603
12218 msgid ""
12219 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12220 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12221 "use>."
12222 msgstr ""
12223
12224 # type: =head2
12225 #: ../src/guestfs-actions.pod:4609
12226 msgid "guestfs_part_set_bootable"
12227 msgstr ""
12228
12229 # type: verbatim
12230 #: ../src/guestfs-actions.pod:4611
12231 #, no-wrap
12232 msgid ""
12233 " int\n"
12234 " guestfs_part_set_bootable (guestfs_h *g,\n"
12235 "                            const char *device,\n"
12236 "                            int partnum,\n"
12237 "                            int bootable);\n"
12238 "\n"
12239 msgstr ""
12240
12241 # type: textblock
12242 #: ../src/guestfs-actions.pod:4617 ../fish/guestfish-actions.pod:3078
12243 msgid ""
12244 "This sets the bootable flag on partition numbered C<partnum> on device "
12245 "C<device>.  Note that partitions are numbered from 1."
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3081
12250 msgid ""
12251 "The bootable flag is used by some operating systems (notably Windows) to "
12252 "determine which partition to boot from.  It is by no means universally "
12253 "recognized."
12254 msgstr ""
12255
12256 # type: =head2
12257 #: ../src/guestfs-actions.pod:4628
12258 msgid "guestfs_part_set_mbr_id"
12259 msgstr ""
12260
12261 # type: verbatim
12262 #: ../src/guestfs-actions.pod:4630
12263 #, no-wrap
12264 msgid ""
12265 " int\n"
12266 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12267 "                          const char *device,\n"
12268 "                          int partnum,\n"
12269 "                          int idbyte);\n"
12270 "\n"
12271 msgstr ""
12272
12273 # type: textblock
12274 #: ../src/guestfs-actions.pod:4636 ../fish/guestfish-actions.pod:3089
12275 msgid ""
12276 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12277 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12278 "documentation are in fact hexadecimal numbers, but usually documented "
12279 "without any leading \"0x\" which might be confusing."
12280 msgstr ""
12281
12282 # type: =head2
12283 #: ../src/guestfs-actions.pod:4650
12284 msgid "guestfs_part_set_name"
12285 msgstr ""
12286
12287 # type: verbatim
12288 #: ../src/guestfs-actions.pod:4652
12289 #, no-wrap
12290 msgid ""
12291 " int\n"
12292 " guestfs_part_set_name (guestfs_h *g,\n"
12293 "                        const char *device,\n"
12294 "                        int partnum,\n"
12295 "                        const char *name);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
12301 msgid ""
12302 "This sets the partition name on partition numbered C<partnum> on device "
12303 "C<device>.  Note that partitions are numbered from 1."
12304 msgstr ""
12305
12306 # type: textblock
12307 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3106
12308 msgid ""
12309 "The partition name can only be set on certain types of partition table.  "
12310 "This works on C<gpt> but not on C<mbr> partitions."
12311 msgstr ""
12312
12313 # type: =head2
12314 #: ../src/guestfs-actions.pod:4668
12315 msgid "guestfs_part_to_dev"
12316 msgstr ""
12317
12318 # type: verbatim
12319 #: ../src/guestfs-actions.pod:4670
12320 #, no-wrap
12321 msgid ""
12322 " char *\n"
12323 " guestfs_part_to_dev (guestfs_h *g,\n"
12324 "                      const char *partition);\n"
12325 "\n"
12326 msgstr ""
12327
12328 # type: textblock
12329 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3113
12330 msgid ""
12331 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12332 "partition number, returning the device name (eg. \"/dev/sdb\")."
12333 msgstr ""
12334
12335 # type: textblock
12336 #: ../src/guestfs-actions.pod:4678
12337 msgid ""
12338 "The named partition must exist, for example as a string returned from "
12339 "C<guestfs_list_partitions>."
12340 msgstr ""
12341
12342 # type: =head2
12343 #: ../src/guestfs-actions.pod:4686
12344 msgid "guestfs_ping_daemon"
12345 msgstr ""
12346
12347 # type: verbatim
12348 #: ../src/guestfs-actions.pod:4688
12349 #, no-wrap
12350 msgid ""
12351 " int\n"
12352 " guestfs_ping_daemon (guestfs_h *g);\n"
12353 "\n"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3124
12358 msgid ""
12359 "This is a test probe into the guestfs daemon running inside the qemu "
12360 "subprocess.  Calling this function checks that the daemon responds to the "
12361 "ping message, without affecting the daemon or attached block device(s) in "
12362 "any other way."
12363 msgstr ""
12364
12365 # type: =head2
12366 #: ../src/guestfs-actions.pod:4700
12367 msgid "guestfs_pread"
12368 msgstr ""
12369
12370 # type: verbatim
12371 #: ../src/guestfs-actions.pod:4702
12372 #, no-wrap
12373 msgid ""
12374 " char *\n"
12375 " guestfs_pread (guestfs_h *g,\n"
12376 "                const char *path,\n"
12377 "                int count,\n"
12378 "                int64_t offset,\n"
12379 "                size_t *size_r);\n"
12380 "\n"
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4709 ../fish/guestfish-actions.pod:3133
12385 msgid ""
12386 "This command lets you read part of a file.  It reads C<count> bytes of the "
12387 "file, starting at C<offset>, from file C<path>."
12388 msgstr ""
12389
12390 # type: textblock
12391 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4738
12392 #: ../fish/guestfish-actions.pod:3136 ../fish/guestfish-actions.pod:3151
12393 msgid ""
12394 "This may read fewer bytes than requested.  For further details see the "
12395 "L<pread(2)> system call."
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4715
12400 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12401 msgstr ""
12402
12403 # type: =head2
12404 #: ../src/guestfs-actions.pod:4726
12405 msgid "guestfs_pread_device"
12406 msgstr ""
12407
12408 # type: verbatim
12409 #: ../src/guestfs-actions.pod:4728
12410 #, no-wrap
12411 msgid ""
12412 " char *\n"
12413 " guestfs_pread_device (guestfs_h *g,\n"
12414 "                       const char *device,\n"
12415 "                       int count,\n"
12416 "                       int64_t offset,\n"
12417 "                       size_t *size_r);\n"
12418 "\n"
12419 msgstr ""
12420
12421 # type: textblock
12422 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3148
12423 msgid ""
12424 "This command lets you read part of a file.  It reads C<count> bytes of "
12425 "C<device>, starting at C<offset>."
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:4741
12430 msgid "See also C<guestfs_pread>."
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:4750
12435 msgid "(Added in 1.5.21)"
12436 msgstr ""
12437
12438 # type: =head2
12439 #: ../src/guestfs-actions.pod:4752
12440 msgid "guestfs_pvcreate"
12441 msgstr ""
12442
12443 # type: verbatim
12444 #: ../src/guestfs-actions.pod:4754
12445 #, no-wrap
12446 msgid ""
12447 " int\n"
12448 " guestfs_pvcreate (guestfs_h *g,\n"
12449 "                   const char *device);\n"
12450 "\n"
12451 msgstr ""
12452
12453 # type: textblock
12454 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3163
12455 msgid ""
12456 "This creates an LVM physical volume on the named C<device>, where C<device> "
12457 "should usually be a partition name such as C</dev/sda1>."
12458 msgstr ""
12459
12460 # type: =head2
12461 #: ../src/guestfs-actions.pod:4766
12462 msgid "guestfs_pvremove"
12463 msgstr ""
12464
12465 # type: verbatim
12466 #: ../src/guestfs-actions.pod:4768
12467 #, no-wrap
12468 msgid ""
12469 " int\n"
12470 " guestfs_pvremove (guestfs_h *g,\n"
12471 "                   const char *device);\n"
12472 "\n"
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3171
12477 msgid ""
12478 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12479 "it."
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3174
12484 msgid ""
12485 "The implementation uses the C<pvremove> command which refuses to wipe "
12486 "physical volumes that contain any volume groups, so you have to remove those "
12487 "first."
12488 msgstr ""
12489
12490 # type: =head2
12491 #: ../src/guestfs-actions.pod:4783
12492 msgid "guestfs_pvresize"
12493 msgstr ""
12494
12495 # type: verbatim
12496 #: ../src/guestfs-actions.pod:4785
12497 #, no-wrap
12498 msgid ""
12499 " int\n"
12500 " guestfs_pvresize (guestfs_h *g,\n"
12501 "                   const char *device);\n"
12502 "\n"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3182
12507 msgid ""
12508 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12509 "the new size of the underlying device."
12510 msgstr ""
12511
12512 # type: =head2
12513 #: ../src/guestfs-actions.pod:4796
12514 msgid "guestfs_pvresize_size"
12515 msgstr ""
12516
12517 # type: verbatim
12518 #: ../src/guestfs-actions.pod:4798
12519 #, no-wrap
12520 msgid ""
12521 " int\n"
12522 " guestfs_pvresize_size (guestfs_h *g,\n"
12523 "                        const char *device,\n"
12524 "                        int64_t size);\n"
12525 "\n"
12526 msgstr ""
12527
12528 # type: textblock
12529 #: ../src/guestfs-actions.pod:4803
12530 msgid ""
12531 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12532 "specify the new size (in bytes) explicitly."
12533 msgstr ""
12534
12535 # type: =head2
12536 #: ../src/guestfs-actions.pod:4810
12537 msgid "guestfs_pvs"
12538 msgstr ""
12539
12540 # type: verbatim
12541 #: ../src/guestfs-actions.pod:4812
12542 #, no-wrap
12543 msgid ""
12544 " char **\n"
12545 " guestfs_pvs (guestfs_h *g);\n"
12546 "\n"
12547 msgstr ""
12548
12549 # type: textblock
12550 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3196
12551 msgid ""
12552 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12553 "(8)> command."
12554 msgstr ""
12555
12556 # type: textblock
12557 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3199
12558 msgid ""
12559 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12560 "sda2>)."
12561 msgstr ""
12562
12563 # type: textblock
12564 #: ../src/guestfs-actions.pod:4821
12565 msgid "See also C<guestfs_pvs_full>."
12566 msgstr ""
12567
12568 # type: =head2
12569 #: ../src/guestfs-actions.pod:4829
12570 msgid "guestfs_pvs_full"
12571 msgstr ""
12572
12573 # type: verbatim
12574 #: ../src/guestfs-actions.pod:4831
12575 #, no-wrap
12576 msgid ""
12577 " struct guestfs_lvm_pv_list *\n"
12578 " guestfs_pvs_full (guestfs_h *g);\n"
12579 "\n"
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3208
12584 msgid ""
12585 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12586 "(8)> command.  The \"full\" version includes all fields."
12587 msgstr ""
12588
12589 # type: textblock
12590 #: ../src/guestfs-actions.pod:4837
12591 msgid ""
12592 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12593 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12594 msgstr ""
12595
12596 # type: =head2
12597 #: ../src/guestfs-actions.pod:4843
12598 msgid "guestfs_pvuuid"
12599 msgstr ""
12600
12601 # type: verbatim
12602 #: ../src/guestfs-actions.pod:4845
12603 #, no-wrap
12604 msgid ""
12605 " char *\n"
12606 " guestfs_pvuuid (guestfs_h *g,\n"
12607 "                 const char *device);\n"
12608 "\n"
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3215
12613 msgid "This command returns the UUID of the LVM PV C<device>."
12614 msgstr ""
12615
12616 # type: =head2
12617 #: ../src/guestfs-actions.pod:4856
12618 msgid "guestfs_pwrite"
12619 msgstr ""
12620
12621 # type: verbatim
12622 #: ../src/guestfs-actions.pod:4858
12623 #, no-wrap
12624 msgid ""
12625 " int\n"
12626 " guestfs_pwrite (guestfs_h *g,\n"
12627 "                 const char *path,\n"
12628 "                 const char *content,\n"
12629 "                 size_t content_size,\n"
12630 "                 int64_t offset);\n"
12631 "\n"
12632 msgstr ""
12633
12634 # type: textblock
12635 #: ../src/guestfs-actions.pod:4865 ../fish/guestfish-actions.pod:3221
12636 msgid ""
12637 "This command writes to part of a file.  It writes the data buffer C<content> "
12638 "to the file C<path> starting at offset C<offset>."
12639 msgstr ""
12640
12641 # type: textblock
12642 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3224
12643 msgid ""
12644 "This command implements the L<pwrite(2)> system call, and like that system "
12645 "call it may not write the full data requested.  The return value is the "
12646 "number of bytes that were actually written to the file.  This could even be "
12647 "0, although short writes are unlikely for regular files in ordinary "
12648 "circumstances."
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:4874
12653 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12654 msgstr ""
12655
12656 # type: =head2
12657 #: ../src/guestfs-actions.pod:4883
12658 msgid "guestfs_pwrite_device"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #: ../src/guestfs-actions.pod:4885
12663 #, no-wrap
12664 msgid ""
12665 " int\n"
12666 " guestfs_pwrite_device (guestfs_h *g,\n"
12667 "                        const char *device,\n"
12668 "                        const char *content,\n"
12669 "                        size_t content_size,\n"
12670 "                        int64_t offset);\n"
12671 "\n"
12672 msgstr ""
12673
12674 # type: textblock
12675 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3239
12676 msgid ""
12677 "This command writes to part of a device.  It writes the data buffer "
12678 "C<content> to C<device> starting at offset C<offset>."
12679 msgstr ""
12680
12681 # type: textblock
12682 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3242
12683 msgid ""
12684 "This command implements the L<pwrite(2)> system call, and like that system "
12685 "call it may not write the full data requested (although short writes to disk "
12686 "devices and partitions are probably impossible with standard Linux kernels)."
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:4900
12691 msgid "See also C<guestfs_pwrite>."
12692 msgstr ""
12693
12694 # type: textblock
12695 #: ../src/guestfs-actions.pod:4907
12696 msgid "(Added in 1.5.20)"
12697 msgstr ""
12698
12699 # type: =head2
12700 #: ../src/guestfs-actions.pod:4909
12701 msgid "guestfs_read_file"
12702 msgstr ""
12703
12704 # type: verbatim
12705 #: ../src/guestfs-actions.pod:4911
12706 #, no-wrap
12707 msgid ""
12708 " char *\n"
12709 " guestfs_read_file (guestfs_h *g,\n"
12710 "                    const char *path,\n"
12711 "                    size_t *size_r);\n"
12712 "\n"
12713 msgstr ""
12714
12715 # type: textblock
12716 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3256
12717 msgid "This calls returns the contents of the file C<path> as a buffer."
12718 msgstr ""
12719
12720 # type: textblock
12721 #: ../src/guestfs-actions.pod:4919
12722 msgid ""
12723 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12724 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12725 "function is limited in the total size of file that can be handled."
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:4931
12730 msgid "(Added in 1.0.63)"
12731 msgstr ""
12732
12733 # type: =head2
12734 #: ../src/guestfs-actions.pod:4933
12735 msgid "guestfs_read_lines"
12736 msgstr ""
12737
12738 # type: verbatim
12739 #: ../src/guestfs-actions.pod:4935
12740 #, no-wrap
12741 msgid ""
12742 " char **\n"
12743 " guestfs_read_lines (guestfs_h *g,\n"
12744 "                     const char *path);\n"
12745 "\n"
12746 msgstr ""
12747
12748 # type: textblock
12749 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3273
12750 msgid ""
12751 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12752 "C<CRLF> character sequences are I<not> returned."
12753 msgstr ""
12754
12755 # type: textblock
12756 #: ../src/guestfs-actions.pod:4944
12757 msgid ""
12758 "Note that this function cannot correctly handle binary files (specifically, "
12759 "files containing C<\\0> character which is treated as end of line).  For "
12760 "those you need to use the C<guestfs_read_file> function which has a more "
12761 "complex interface."
12762 msgstr ""
12763
12764 # type: =head2
12765 #: ../src/guestfs-actions.pod:4955
12766 msgid "guestfs_readdir"
12767 msgstr ""
12768
12769 # type: verbatim
12770 #: ../src/guestfs-actions.pod:4957
12771 #, no-wrap
12772 msgid ""
12773 " struct guestfs_dirent_list *\n"
12774 " guestfs_readdir (guestfs_h *g,\n"
12775 "                  const char *dir);\n"
12776 "\n"
12777 msgstr ""
12778
12779 # type: textblock
12780 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3285
12781 msgid "This returns the list of directory entries in directory C<dir>."
12782 msgstr ""
12783
12784 # type: textblock
12785 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3287
12786 msgid ""
12787 "All entries in the directory are returned, including C<.> and C<..>.  The "
12788 "entries are I<not> sorted, but returned in the same order as the underlying "
12789 "filesystem."
12790 msgstr ""
12791
12792 # type: textblock
12793 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3291
12794 msgid ""
12795 "Also this call returns basic file type information about each file.  The "
12796 "C<ftyp> field will contain one of the following characters:"
12797 msgstr ""
12798
12799 # type: =item
12800 #: ../src/guestfs-actions.pod:4972 ../fish/guestfish-actions.pod:3296
12801 msgid "'b'"
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3298
12806 msgid "Block special"
12807 msgstr ""
12808
12809 # type: =item
12810 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3300
12811 msgid "'c'"
12812 msgstr ""
12813
12814 # type: textblock
12815 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3302
12816 msgid "Char special"
12817 msgstr ""
12818
12819 # type: =item
12820 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3304
12821 msgid "'d'"
12822 msgstr ""
12823
12824 # type: textblock
12825 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3306
12826 msgid "Directory"
12827 msgstr ""
12828
12829 # type: =item
12830 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3308
12831 msgid "'f'"
12832 msgstr ""
12833
12834 # type: textblock
12835 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3310
12836 msgid "FIFO (named pipe)"
12837 msgstr ""
12838
12839 # type: =item
12840 #: ../src/guestfs-actions.pod:4988 ../fish/guestfish-actions.pod:3312
12841 msgid "'l'"
12842 msgstr ""
12843
12844 # type: textblock
12845 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3314
12846 msgid "Symbolic link"
12847 msgstr ""
12848
12849 # type: =item
12850 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3316
12851 msgid "'r'"
12852 msgstr ""
12853
12854 # type: textblock
12855 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3318
12856 msgid "Regular file"
12857 msgstr ""
12858
12859 # type: =item
12860 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3320
12861 msgid "'s'"
12862 msgstr ""
12863
12864 # type: textblock
12865 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3322
12866 msgid "Socket"
12867 msgstr ""
12868
12869 # type: =item
12870 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3324
12871 msgid "'u'"
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3326
12876 msgid "Unknown file type"
12877 msgstr ""
12878
12879 # type: =item
12880 #: ../src/guestfs-actions.pod:5004 ../fish/guestfish-actions.pod:3328
12881 msgid "'?'"
12882 msgstr ""
12883
12884 # type: textblock
12885 #: ../src/guestfs-actions.pod:5006 ../fish/guestfish-actions.pod:3330
12886 msgid ""
12887 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12888 msgstr ""
12889
12890 # type: textblock
12891 #: ../src/guestfs-actions.pod:5011
12892 msgid ""
12893 "This function is primarily intended for use by programs.  To get a simple "
12894 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12895 "consumption, use C<guestfs_ll>."
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:5015
12900 msgid ""
12901 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12902 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
12903 msgstr ""
12904
12905 # type: =head2
12906 #: ../src/guestfs-actions.pod:5021
12907 msgid "guestfs_readlink"
12908 msgstr ""
12909
12910 # type: verbatim
12911 #: ../src/guestfs-actions.pod:5023
12912 #, no-wrap
12913 msgid ""
12914 " char *\n"
12915 " guestfs_readlink (guestfs_h *g,\n"
12916 "                   const char *path);\n"
12917 "\n"
12918 msgstr ""
12919
12920 # type: textblock
12921 #: ../src/guestfs-actions.pod:5027 ../fish/guestfish-actions.pod:3343
12922 msgid "This command reads the target of a symbolic link."
12923 msgstr ""
12924
12925 # type: =head2
12926 #: ../src/guestfs-actions.pod:5034
12927 msgid "guestfs_readlinklist"
12928 msgstr ""
12929
12930 # type: verbatim
12931 #: ../src/guestfs-actions.pod:5036
12932 #, no-wrap
12933 msgid ""
12934 " char **\n"
12935 " guestfs_readlinklist (guestfs_h *g,\n"
12936 "                       const char *path,\n"
12937 "                       char *const *names);\n"
12938 "\n"
12939 msgstr ""
12940
12941 # type: textblock
12942 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3349
12943 msgid ""
12944 "This call allows you to do a C<readlink> operation on multiple files, where "
12945 "all files are in the directory C<path>.  C<names> is the list of files from "
12946 "this directory."
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3353
12951 msgid ""
12952 "On return you get a list of strings, with a one-to-one correspondence to the "
12953 "C<names> list.  Each string is the value of the symbolic link."
12954 msgstr ""
12955
12956 # type: textblock
12957 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3357
12958 msgid ""
12959 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12960 "result string is the empty string C<\"\">.  However the whole operation is "
12961 "completed even if there were C<readlink(2)> errors, and so you can call this "
12962 "function with names where you don't know if they are symbolic links already "
12963 "(albeit slightly less efficient)."
12964 msgstr ""
12965
12966 # type: textblock
12967 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3364
12968 msgid ""
12969 "This call is intended for programs that want to efficiently list a directory "
12970 "contents without making many round-trips.  Very long directory listings "
12971 "might cause the protocol message size to be exceeded, causing this call to "
12972 "fail.  The caller must split up such requests into smaller groups of names."
12973 msgstr ""
12974
12975 # type: =head2
12976 #: ../src/guestfs-actions.pod:5069
12977 msgid "guestfs_realpath"
12978 msgstr ""
12979
12980 # type: verbatim
12981 #: ../src/guestfs-actions.pod:5071
12982 #, no-wrap
12983 msgid ""
12984 " char *\n"
12985 " guestfs_realpath (guestfs_h *g,\n"
12986 "                   const char *path);\n"
12987 "\n"
12988 msgstr ""
12989
12990 # type: textblock
12991 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3375
12992 msgid ""
12993 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12994 "has no C<.>, C<..> or symbolic link path elements."
12995 msgstr ""
12996
12997 # type: =head2
12998 #: ../src/guestfs-actions.pod:5083
12999 msgid "guestfs_removexattr"
13000 msgstr ""
13001
13002 # type: verbatim
13003 #: ../src/guestfs-actions.pod:5085
13004 #, no-wrap
13005 msgid ""
13006 " int\n"
13007 " guestfs_removexattr (guestfs_h *g,\n"
13008 "                      const char *xattr,\n"
13009 "                      const char *path);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3382
13015 msgid ""
13016 "This call removes the extended attribute named C<xattr> of the file C<path>."
13017 msgstr ""
13018
13019 # type: textblock
13020 #: ../src/guestfs-actions.pod:5093
13021 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13022 msgstr ""
13023
13024 # type: =head2
13025 #: ../src/guestfs-actions.pod:5099
13026 msgid "guestfs_resize2fs"
13027 msgstr ""
13028
13029 # type: verbatim
13030 #: ../src/guestfs-actions.pod:5101
13031 #, no-wrap
13032 msgid ""
13033 " int\n"
13034 " guestfs_resize2fs (guestfs_h *g,\n"
13035 "                    const char *device);\n"
13036 "\n"
13037 msgstr ""
13038
13039 # type: textblock
13040 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3391
13041 msgid ""
13042 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13043 "underlying device."
13044 msgstr ""
13045
13046 # type: textblock
13047 #: ../src/guestfs-actions.pod:5108
13048 msgid ""
13049 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13050 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13051 "sometimes gives an error about this and sometimes not.  In any case, it is "
13052 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13053 msgstr ""
13054
13055 # type: =head2
13056 #: ../src/guestfs-actions.pod:5118
13057 msgid "guestfs_resize2fs_size"
13058 msgstr ""
13059
13060 # type: verbatim
13061 #: ../src/guestfs-actions.pod:5120
13062 #, no-wrap
13063 msgid ""
13064 " int\n"
13065 " guestfs_resize2fs_size (guestfs_h *g,\n"
13066 "                         const char *device,\n"
13067 "                         int64_t size);\n"
13068 "\n"
13069 msgstr ""
13070
13071 # type: textblock
13072 #: ../src/guestfs-actions.pod:5125
13073 msgid ""
13074 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13075 "to specify the new size (in bytes) explicitly."
13076 msgstr ""
13077
13078 # type: =head2
13079 #: ../src/guestfs-actions.pod:5132
13080 msgid "guestfs_rm"
13081 msgstr ""
13082
13083 # type: verbatim
13084 #: ../src/guestfs-actions.pod:5134
13085 #, no-wrap
13086 msgid ""
13087 " int\n"
13088 " guestfs_rm (guestfs_h *g,\n"
13089 "             const char *path);\n"
13090 "\n"
13091 msgstr ""
13092
13093 # type: textblock
13094 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3411
13095 msgid "Remove the single file C<path>."
13096 msgstr ""
13097
13098 # type: =head2
13099 #: ../src/guestfs-actions.pod:5144
13100 msgid "guestfs_rm_rf"
13101 msgstr ""
13102
13103 # type: verbatim
13104 #: ../src/guestfs-actions.pod:5146
13105 #, no-wrap
13106 msgid ""
13107 " int\n"
13108 " guestfs_rm_rf (guestfs_h *g,\n"
13109 "                const char *path);\n"
13110 "\n"
13111 msgstr ""
13112
13113 # type: textblock
13114 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3417
13115 msgid ""
13116 "Remove the file or directory C<path>, recursively removing the contents if "
13117 "its a directory.  This is like the C<rm -rf> shell command."
13118 msgstr ""
13119
13120 # type: =head2
13121 #: ../src/guestfs-actions.pod:5158
13122 msgid "guestfs_rmdir"
13123 msgstr ""
13124
13125 # type: verbatim
13126 #: ../src/guestfs-actions.pod:5160
13127 #, no-wrap
13128 msgid ""
13129 " int\n"
13130 " guestfs_rmdir (guestfs_h *g,\n"
13131 "                const char *path);\n"
13132 "\n"
13133 msgstr ""
13134
13135 # type: textblock
13136 #: ../src/guestfs-actions.pod:5164 ../fish/guestfish-actions.pod:3425
13137 msgid "Remove the single directory C<path>."
13138 msgstr ""
13139
13140 # type: =head2
13141 #: ../src/guestfs-actions.pod:5170
13142 msgid "guestfs_rmmountpoint"
13143 msgstr ""
13144
13145 # type: verbatim
13146 #: ../src/guestfs-actions.pod:5172
13147 #, no-wrap
13148 msgid ""
13149 " int\n"
13150 " guestfs_rmmountpoint (guestfs_h *g,\n"
13151 "                       const char *exemptpath);\n"
13152 "\n"
13153 msgstr ""
13154
13155 # type: textblock
13156 #: ../src/guestfs-actions.pod:5176
13157 msgid ""
13158 "This calls removes a mountpoint that was previously created with "
13159 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13160 msgstr ""
13161
13162 # type: =head2
13163 #: ../src/guestfs-actions.pod:5184
13164 msgid "guestfs_scrub_device"
13165 msgstr ""
13166
13167 # type: verbatim
13168 #: ../src/guestfs-actions.pod:5186
13169 #, no-wrap
13170 msgid ""
13171 " int\n"
13172 " guestfs_scrub_device (guestfs_h *g,\n"
13173 "                       const char *device);\n"
13174 "\n"
13175 msgstr ""
13176
13177 # type: textblock
13178 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3439
13179 msgid ""
13180 "This command writes patterns over C<device> to make data retrieval more "
13181 "difficult."
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5214
13186 #: ../src/guestfs-actions.pod:5233 ../fish/guestfish-actions.pod:3442
13187 #: ../fish/guestfish-actions.pod:3457 ../fish/guestfish-actions.pod:3470
13188 msgid ""
13189 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13190 "more details."
13191 msgstr ""
13192
13193 # type: textblock
13194 #: ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5219
13195 #: ../src/guestfs-actions.pod:5238
13196 msgid "(Added in 1.0.52)"
13197 msgstr ""
13198
13199 # type: =head2
13200 #: ../src/guestfs-actions.pod:5203
13201 msgid "guestfs_scrub_file"
13202 msgstr ""
13203
13204 # type: verbatim
13205 #: ../src/guestfs-actions.pod:5205
13206 #, no-wrap
13207 msgid ""
13208 " int\n"
13209 " guestfs_scrub_file (guestfs_h *g,\n"
13210 "                     const char *file);\n"
13211 "\n"
13212 msgstr ""
13213
13214 # type: textblock
13215 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3452
13216 msgid ""
13217 "This command writes patterns over a file to make data retrieval more "
13218 "difficult."
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5212 ../fish/guestfish-actions.pod:3455
13223 msgid "The file is I<removed> after scrubbing."
13224 msgstr ""
13225
13226 # type: =head2
13227 #: ../src/guestfs-actions.pod:5221
13228 msgid "guestfs_scrub_freespace"
13229 msgstr ""
13230
13231 # type: verbatim
13232 #: ../src/guestfs-actions.pod:5223
13233 #, no-wrap
13234 msgid ""
13235 " int\n"
13236 " guestfs_scrub_freespace (guestfs_h *g,\n"
13237 "                          const char *dir);\n"
13238 "\n"
13239 msgstr ""
13240
13241 # type: textblock
13242 #: ../src/guestfs-actions.pod:5227
13243 msgid ""
13244 "This command creates the directory C<dir> and then fills it with files until "
13245 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13246 "and deletes them.  The intention is to scrub any free space on the partition "
13247 "containing C<dir>."
13248 msgstr ""
13249
13250 # type: =head2
13251 #: ../src/guestfs-actions.pod:5240
13252 msgid "guestfs_set_append"
13253 msgstr ""
13254
13255 # type: verbatim
13256 #: ../src/guestfs-actions.pod:5242
13257 #, no-wrap
13258 msgid ""
13259 " int\n"
13260 " guestfs_set_append (guestfs_h *g,\n"
13261 "                     const char *append);\n"
13262 "\n"
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5246 ../fish/guestfish-actions.pod:3479
13267 msgid ""
13268 "This function is used to add additional options to the guest kernel command "
13269 "line."
13270 msgstr ""
13271
13272 # type: textblock
13273 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3482
13274 msgid ""
13275 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13276 "environment variable."
13277 msgstr ""
13278
13279 # type: textblock
13280 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3485
13281 msgid ""
13282 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13283 "(libguestfs always adds a few of its own)."
13284 msgstr ""
13285
13286 # type: =head2
13287 #: ../src/guestfs-actions.pod:5259
13288 msgid "guestfs_set_autosync"
13289 msgstr ""
13290
13291 # type: verbatim
13292 #: ../src/guestfs-actions.pod:5261
13293 #, no-wrap
13294 msgid ""
13295 " int\n"
13296 " guestfs_set_autosync (guestfs_h *g,\n"
13297 "                       int autosync);\n"
13298 "\n"
13299 msgstr ""
13300
13301 # type: textblock
13302 #: ../src/guestfs-actions.pod:5265
13303 msgid ""
13304 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13305 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13306 "the handle is closed (also if the program exits without closing handles)."
13307 msgstr ""
13308
13309 # type: textblock
13310 #: ../src/guestfs-actions.pod:5270 ../fish/guestfish-actions.pod:3499
13311 msgid ""
13312 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13313 "disabled by default)."
13314 msgstr ""
13315
13316 # type: =head2
13317 #: ../src/guestfs-actions.pod:5277
13318 msgid "guestfs_set_direct"
13319 msgstr ""
13320
13321 # type: verbatim
13322 #: ../src/guestfs-actions.pod:5279
13323 #, no-wrap
13324 msgid ""
13325 " int\n"
13326 " guestfs_set_direct (guestfs_h *g,\n"
13327 "                     int direct);\n"
13328 "\n"
13329 msgstr ""
13330
13331 # type: textblock
13332 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3508
13333 msgid ""
13334 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13335 "passed directly through to the appliance once it is launched."
13336 msgstr ""
13337
13338 # type: textblock
13339 #: ../src/guestfs-actions.pod:5287
13340 msgid ""
13341 "One consequence of this is that log messages aren't caught by the library "
13342 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13343 "stdout."
13344 msgstr ""
13345
13346 # type: textblock
13347 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3516
13348 msgid "You probably don't want to use this unless you know what you are doing."
13349 msgstr ""
13350
13351 # type: textblock
13352 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3519
13353 msgid "The default is disabled."
13354 msgstr ""
13355
13356 # type: =head2
13357 #: ../src/guestfs-actions.pod:5300
13358 msgid "guestfs_set_e2label"
13359 msgstr ""
13360
13361 # type: verbatim
13362 #: ../src/guestfs-actions.pod:5302
13363 #, no-wrap
13364 msgid ""
13365 " int\n"
13366 " guestfs_set_e2label (guestfs_h *g,\n"
13367 "                      const char *device,\n"
13368 "                      const char *label);\n"
13369 "\n"
13370 msgstr ""
13371
13372 # type: textblock
13373 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:3525
13374 msgid ""
13375 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13376 "C<label>.  Filesystem labels are limited to 16 characters."
13377 msgstr ""
13378
13379 # type: textblock
13380 #: ../src/guestfs-actions.pod:5311
13381 msgid ""
13382 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13383 "the existing label on a filesystem."
13384 msgstr ""
13385
13386 # type: =head2
13387 #: ../src/guestfs-actions.pod:5318
13388 msgid "guestfs_set_e2uuid"
13389 msgstr ""
13390
13391 # type: verbatim
13392 #: ../src/guestfs-actions.pod:5320
13393 #, no-wrap
13394 msgid ""
13395 " int\n"
13396 " guestfs_set_e2uuid (guestfs_h *g,\n"
13397 "                     const char *device,\n"
13398 "                     const char *uuid);\n"
13399 "\n"
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3536
13404 msgid ""
13405 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13406 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13407 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13408 msgstr ""
13409
13410 # type: textblock
13411 #: ../src/guestfs-actions.pod:5330
13412 msgid ""
13413 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13414 "the existing UUID of a filesystem."
13415 msgstr ""
13416
13417 # type: =head2
13418 #: ../src/guestfs-actions.pod:5337
13419 msgid "guestfs_set_memsize"
13420 msgstr ""
13421
13422 # type: verbatim
13423 #: ../src/guestfs-actions.pod:5339
13424 #, no-wrap
13425 msgid ""
13426 " int\n"
13427 " guestfs_set_memsize (guestfs_h *g,\n"
13428 "                      int memsize);\n"
13429 "\n"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5343
13434 msgid ""
13435 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13436 "This only has any effect if called before C<guestfs_launch>."
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:3554
13441 msgid ""
13442 "You can also change this by setting the environment variable "
13443 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13444 msgstr ""
13445
13446 # type: =head2
13447 #: ../src/guestfs-actions.pod:5358
13448 msgid "guestfs_set_network"
13449 msgstr ""
13450
13451 # type: verbatim
13452 #: ../src/guestfs-actions.pod:5360
13453 #, no-wrap
13454 msgid ""
13455 " int\n"
13456 " guestfs_set_network (guestfs_h *g,\n"
13457 "                      int network);\n"
13458 "\n"
13459 msgstr ""
13460
13461 # type: textblock
13462 #: ../src/guestfs-actions.pod:5364 ../fish/guestfish-actions.pod:3567
13463 msgid ""
13464 "If C<network> is true, then the network is enabled in the libguestfs "
13465 "appliance.  The default is false."
13466 msgstr ""
13467
13468 # type: textblock
13469 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3570
13470 msgid ""
13471 "This affects whether commands are able to access the network (see L<guestfs"
13472 "(3)/RUNNING COMMANDS>)."
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5370
13477 msgid ""
13478 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13479 "effect."
13480 msgstr ""
13481
13482 # type: =head2
13483 #: ../src/guestfs-actions.pod:5377
13484 msgid "guestfs_set_path"
13485 msgstr ""
13486
13487 # type: verbatim
13488 #: ../src/guestfs-actions.pod:5379
13489 #, no-wrap
13490 msgid ""
13491 " int\n"
13492 " guestfs_set_path (guestfs_h *g,\n"
13493 "                   const char *searchpath);\n"
13494 "\n"
13495 msgstr ""
13496
13497 # type: textblock
13498 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3582
13499 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13500 msgstr ""
13501
13502 # type: textblock
13503 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3584
13504 msgid ""
13505 "The default is C<$libdir/guestfs> unless overridden by setting "
13506 "C<LIBGUESTFS_PATH> environment variable."
13507 msgstr ""
13508
13509 # type: textblock
13510 #: ../src/guestfs-actions.pod:5388 ../fish/guestfish-actions.pod:3587
13511 msgid "Setting C<path> to C<NULL> restores the default path."
13512 msgstr ""
13513
13514 # type: =head2
13515 #: ../src/guestfs-actions.pod:5394
13516 msgid "guestfs_set_qemu"
13517 msgstr ""
13518
13519 # type: verbatim
13520 #: ../src/guestfs-actions.pod:5396
13521 #, no-wrap
13522 msgid ""
13523 " int\n"
13524 " guestfs_set_qemu (guestfs_h *g,\n"
13525 "                   const char *qemu);\n"
13526 "\n"
13527 msgstr ""
13528
13529 # type: textblock
13530 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3595
13531 msgid "Set the qemu binary that we will use."
13532 msgstr ""
13533
13534 # type: textblock
13535 #: ../src/guestfs-actions.pod:5402 ../fish/guestfish-actions.pod:3597
13536 msgid ""
13537 "The default is chosen when the library was compiled by the configure script."
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3600
13542 msgid ""
13543 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13544 "variable."
13545 msgstr ""
13546
13547 # type: textblock
13548 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3603
13549 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13550 msgstr ""
13551
13552 # type: textblock
13553 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:3605
13554 msgid ""
13555 "Note that you should call this function as early as possible after creating "
13556 "the handle.  This is because some pre-launch operations depend on testing "
13557 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13558 "don't retest features, and so you might see inconsistent results.  Using the "
13559 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13560 "the qemu binary at the same time as the handle is created."
13561 msgstr ""
13562
13563 # type: =head2
13564 #: ../src/guestfs-actions.pod:5422
13565 msgid "guestfs_set_recovery_proc"
13566 msgstr ""
13567
13568 # type: verbatim
13569 #: ../src/guestfs-actions.pod:5424
13570 #, no-wrap
13571 msgid ""
13572 " int\n"
13573 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13574 "                            int recoveryproc);\n"
13575 "\n"
13576 msgstr ""
13577
13578 # type: textblock
13579 #: ../src/guestfs-actions.pod:5428
13580 msgid ""
13581 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13582 "not create a recovery process.  The purpose of the recovery process is to "
13583 "stop runaway qemu processes in the case where the main program aborts "
13584 "abruptly."
13585 msgstr ""
13586
13587 # type: textblock
13588 #: ../src/guestfs-actions.pod:5433
13589 msgid ""
13590 "This only has any effect if called before C<guestfs_launch>, and the default "
13591 "is true."
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3627
13596 msgid ""
13597 "About the only time when you would want to disable this is if the main "
13598 "process will fork itself into the background (\"daemonize\" itself).  In "
13599 "this case the recovery process thinks that the main program has disappeared "
13600 "and so kills qemu, which is not very helpful."
13601 msgstr ""
13602
13603 # type: =head2
13604 #: ../src/guestfs-actions.pod:5446
13605 msgid "guestfs_set_selinux"
13606 msgstr ""
13607
13608 # type: verbatim
13609 #: ../src/guestfs-actions.pod:5448
13610 #, no-wrap
13611 msgid ""
13612 " int\n"
13613 " guestfs_set_selinux (guestfs_h *g,\n"
13614 "                      int selinux);\n"
13615 "\n"
13616 msgstr ""
13617
13618 # type: textblock
13619 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3639
13620 msgid ""
13621 "This sets the selinux flag that is passed to the appliance at boot time.  "
13622 "The default is C<selinux=0> (disabled)."
13623 msgstr ""
13624
13625 # type: textblock
13626 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3642
13627 msgid ""
13628 "Note that if SELinux is enabled, it is always in Permissive mode "
13629 "(C<enforcing=0>)."
13630 msgstr ""
13631
13632 # type: =head2
13633 #: ../src/guestfs-actions.pod:5465
13634 msgid "guestfs_set_trace"
13635 msgstr ""
13636
13637 # type: verbatim
13638 #: ../src/guestfs-actions.pod:5467
13639 #, no-wrap
13640 msgid ""
13641 " int\n"
13642 " guestfs_set_trace (guestfs_h *g,\n"
13643 "                    int trace);\n"
13644 "\n"
13645 msgstr ""
13646
13647 # type: textblock
13648 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3654
13649 msgid ""
13650 "If the command trace flag is set to 1, then commands are printed on stderr "
13651 "before they are executed in a format which is very similar to the one used "
13652 "by guestfish.  In other words, you can run a program with this enabled, and "
13653 "you will get out a script which you can feed to guestfish to perform the "
13654 "same set of actions."
13655 msgstr ""
13656
13657 # type: textblock
13658 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3661
13659 msgid ""
13660 "If you want to trace C API calls into libguestfs (and other libraries) then "
13661 "possibly a better way is to use the external ltrace(1) command."
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3665
13666 msgid ""
13667 "Command traces are disabled unless the environment variable "
13668 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13669 msgstr ""
13670
13671 # type: =head2
13672 #: ../src/guestfs-actions.pod:5489
13673 msgid "guestfs_set_verbose"
13674 msgstr ""
13675
13676 # type: verbatim
13677 #: ../src/guestfs-actions.pod:5491
13678 #, no-wrap
13679 msgid ""
13680 " int\n"
13681 " guestfs_set_verbose (guestfs_h *g,\n"
13682 "                      int verbose);\n"
13683 "\n"
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5495 ../fish/guestfish-actions.pod:3674
13688 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13689 msgstr ""
13690
13691 # type: textblock
13692 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3676
13693 msgid ""
13694 "Verbose messages are disabled unless the environment variable "
13695 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13696 msgstr ""
13697
13698 # type: =head2
13699 #: ../src/guestfs-actions.pod:5504
13700 msgid "guestfs_setcon"
13701 msgstr ""
13702
13703 # type: verbatim
13704 #: ../src/guestfs-actions.pod:5506
13705 #, no-wrap
13706 msgid ""
13707 " int\n"
13708 " guestfs_setcon (guestfs_h *g,\n"
13709 "                 const char *context);\n"
13710 "\n"
13711 msgstr ""
13712
13713 # type: textblock
13714 #: ../src/guestfs-actions.pod:5510 ../fish/guestfish-actions.pod:3683
13715 msgid ""
13716 "This sets the SELinux security context of the daemon to the string "
13717 "C<context>."
13718 msgstr ""
13719
13720 # type: textblock
13721 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3686
13722 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13723 msgstr ""
13724
13725 # type: =head2
13726 #: ../src/guestfs-actions.pod:5519
13727 msgid "guestfs_setxattr"
13728 msgstr ""
13729
13730 # type: verbatim
13731 #: ../src/guestfs-actions.pod:5521
13732 #, no-wrap
13733 msgid ""
13734 " int\n"
13735 " guestfs_setxattr (guestfs_h *g,\n"
13736 "                   const char *xattr,\n"
13737 "                   const char *val,\n"
13738 "                   int vallen,\n"
13739 "                   const char *path);\n"
13740 "\n"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3692
13745 msgid ""
13746 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13747 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5532
13752 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13753 msgstr ""
13754
13755 # type: =head2
13756 #: ../src/guestfs-actions.pod:5538
13757 msgid "guestfs_sfdisk"
13758 msgstr ""
13759
13760 # type: verbatim
13761 #: ../src/guestfs-actions.pod:5540
13762 #, no-wrap
13763 msgid ""
13764 " int\n"
13765 " guestfs_sfdisk (guestfs_h *g,\n"
13766 "                 const char *device,\n"
13767 "                 int cyls,\n"
13768 "                 int heads,\n"
13769 "                 int sectors,\n"
13770 "                 char *const *lines);\n"
13771 "\n"
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3702
13776 msgid ""
13777 "This is a direct interface to the L<sfdisk(8)> program for creating "
13778 "partitions on block devices."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:3705
13783 msgid "C<device> should be a block device, for example C</dev/sda>."
13784 msgstr ""
13785
13786 # type: textblock
13787 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3707
13788 msgid ""
13789 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13790 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13791 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13792 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13793 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13794 "the kernel) cannot work out the right geometry and you will need to tell it."
13795 msgstr ""
13796
13797 # type: textblock
13798 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3715
13799 msgid ""
13800 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13801 "refer to the L<sfdisk(8)> manpage."
13802 msgstr ""
13803
13804 # type: textblock
13805 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:3718
13806 msgid ""
13807 "To create a single partition occupying the whole disk, you would pass "
13808 "C<lines> as a single element list, when the single element being the string "
13809 "C<,> (comma)."
13810 msgstr ""
13811
13812 # type: textblock
13813 #: ../src/guestfs-actions.pod:5568
13814 msgid ""
13815 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13816 msgstr ""
13817
13818 # type: =head2
13819 #: ../src/guestfs-actions.pod:5578
13820 msgid "guestfs_sfdiskM"
13821 msgstr ""
13822
13823 # type: verbatim
13824 #: ../src/guestfs-actions.pod:5580
13825 #, no-wrap
13826 msgid ""
13827 " int\n"
13828 " guestfs_sfdiskM (guestfs_h *g,\n"
13829 "                  const char *device,\n"
13830 "                  char *const *lines);\n"
13831 "\n"
13832 msgstr ""
13833
13834 # type: textblock
13835 #: ../src/guestfs-actions.pod:5585
13836 msgid ""
13837 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13838 "partition sizes are specified in megabytes only (rounded to the nearest "
13839 "cylinder) and you don't need to specify the cyls, heads and sectors "
13840 "parameters which were rarely if ever used anyway."
13841 msgstr ""
13842
13843 # type: textblock
13844 #: ../src/guestfs-actions.pod:5591
13845 msgid ""
13846 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13847 "C<guestfs_part_disk>"
13848 msgstr ""
13849
13850 # type: =head2
13851 #: ../src/guestfs-actions.pod:5601
13852 msgid "guestfs_sfdisk_N"
13853 msgstr ""
13854
13855 # type: verbatim
13856 #: ../src/guestfs-actions.pod:5603
13857 #, no-wrap
13858 msgid ""
13859 " int\n"
13860 " guestfs_sfdisk_N (guestfs_h *g,\n"
13861 "                   const char *device,\n"
13862 "                   int partnum,\n"
13863 "                   int cyls,\n"
13864 "                   int heads,\n"
13865 "                   int sectors,\n"
13866 "                   const char *line);\n"
13867 "\n"
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5612 ../fish/guestfish-actions.pod:3748
13872 msgid ""
13873 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13874 "(note: C<n> counts from 1)."
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5615
13879 msgid ""
13880 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13881 "for the cyls/heads/sectors parameters."
13882 msgstr ""
13883
13884 # type: textblock
13885 #: ../src/guestfs-actions.pod:5618
13886 msgid "See also: C<guestfs_part_add>"
13887 msgstr ""
13888
13889 # type: =head2
13890 #: ../src/guestfs-actions.pod:5627
13891 msgid "guestfs_sfdisk_disk_geometry"
13892 msgstr ""
13893
13894 # type: verbatim
13895 #: ../src/guestfs-actions.pod:5629
13896 #, no-wrap
13897 msgid ""
13898 " char *\n"
13899 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13900 "                               const char *device);\n"
13901 "\n"
13902 msgstr ""
13903
13904 # type: textblock
13905 #: ../src/guestfs-actions.pod:5633
13906 msgid ""
13907 "This displays the disk geometry of C<device> read from the partition table.  "
13908 "Especially in the case where the underlying block device has been resized, "
13909 "this can be different from the kernel's idea of the geometry (see "
13910 "C<guestfs_sfdisk_kernel_geometry>)."
13911 msgstr ""
13912
13913 # type: textblock
13914 #: ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:5654
13915 #: ../fish/guestfish-actions.pod:3768 ../fish/guestfish-actions.pod:3777
13916 msgid "The result is in human-readable format, and not designed to be parsed."
13917 msgstr ""
13918
13919 # type: =head2
13920 #: ../src/guestfs-actions.pod:5646
13921 msgid "guestfs_sfdisk_kernel_geometry"
13922 msgstr ""
13923
13924 # type: verbatim
13925 #: ../src/guestfs-actions.pod:5648
13926 #, no-wrap
13927 msgid ""
13928 " char *\n"
13929 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13930 "                                 const char *device);\n"
13931 "\n"
13932 msgstr ""
13933
13934 # type: textblock
13935 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3775
13936 msgid "This displays the kernel's idea of the geometry of C<device>."
13937 msgstr ""
13938
13939 # type: =head2
13940 #: ../src/guestfs-actions.pod:5662
13941 msgid "guestfs_sfdisk_l"
13942 msgstr ""
13943
13944 # type: verbatim
13945 #: ../src/guestfs-actions.pod:5664
13946 #, no-wrap
13947 msgid ""
13948 " char *\n"
13949 " guestfs_sfdisk_l (guestfs_h *g,\n"
13950 "                   const char *device);\n"
13951 "\n"
13952 msgstr ""
13953
13954 # type: textblock
13955 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3784
13956 msgid ""
13957 "This displays the partition table on C<device>, in the human-readable output "
13958 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13959 msgstr ""
13960
13961 # type: textblock
13962 #: ../src/guestfs-actions.pod:5672
13963 msgid "See also: C<guestfs_part_list>"
13964 msgstr ""
13965
13966 # type: =head2
13967 #: ../src/guestfs-actions.pod:5679
13968 msgid "guestfs_sh"
13969 msgstr ""
13970
13971 # type: verbatim
13972 #: ../src/guestfs-actions.pod:5681
13973 #, no-wrap
13974 msgid ""
13975 " char *\n"
13976 " guestfs_sh (guestfs_h *g,\n"
13977 "             const char *command);\n"
13978 "\n"
13979 msgstr ""
13980
13981 # type: textblock
13982 #: ../src/guestfs-actions.pod:5685 ../fish/guestfish-actions.pod:3794
13983 msgid ""
13984 "This call runs a command from the guest filesystem via the guest's C</bin/"
13985 "sh>."
13986 msgstr ""
13987
13988 # type: textblock
13989 #: ../src/guestfs-actions.pod:5688
13990 msgid "This is like C<guestfs_command>, but passes the command to:"
13991 msgstr ""
13992
13993 # type: verbatim
13994 #: ../src/guestfs-actions.pod:5690 ../fish/guestfish-actions.pod:3799
13995 #, no-wrap
13996 msgid ""
13997 " /bin/sh -c \"command\"\n"
13998 "\n"
13999 msgstr ""
14000
14001 # type: textblock
14002 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3801
14003 msgid ""
14004 "Depending on the guest's shell, this usually results in wildcards being "
14005 "expanded, shell expressions being interpolated and so on."
14006 msgstr ""
14007
14008 # type: textblock
14009 #: ../src/guestfs-actions.pod:5696
14010 msgid "All the provisos about C<guestfs_command> apply to this call."
14011 msgstr ""
14012
14013 # type: =head2
14014 #: ../src/guestfs-actions.pod:5703
14015 msgid "guestfs_sh_lines"
14016 msgstr ""
14017
14018 # type: verbatim
14019 #: ../src/guestfs-actions.pod:5705
14020 #, no-wrap
14021 msgid ""
14022 " char **\n"
14023 " guestfs_sh_lines (guestfs_h *g,\n"
14024 "                   const char *command);\n"
14025 "\n"
14026 msgstr ""
14027
14028 # type: textblock
14029 #: ../src/guestfs-actions.pod:5709
14030 msgid ""
14031 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14032 "lines."
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5712
14037 msgid "See also: C<guestfs_command_lines>"
14038 msgstr ""
14039
14040 # type: =head2
14041 #: ../src/guestfs-actions.pod:5720
14042 msgid "guestfs_sleep"
14043 msgstr ""
14044
14045 # type: verbatim
14046 #: ../src/guestfs-actions.pod:5722
14047 #, no-wrap
14048 msgid ""
14049 " int\n"
14050 " guestfs_sleep (guestfs_h *g,\n"
14051 "                int secs);\n"
14052 "\n"
14053 msgstr ""
14054
14055 # type: textblock
14056 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3820
14057 msgid "Sleep for C<secs> seconds."
14058 msgstr ""
14059
14060 # type: textblock
14061 #: ../src/guestfs-actions.pod:5730
14062 msgid "(Added in 1.0.41)"
14063 msgstr ""
14064
14065 # type: =head2
14066 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-structs.pod:109
14067 msgid "guestfs_stat"
14068 msgstr ""
14069
14070 # type: verbatim
14071 #: ../src/guestfs-actions.pod:5734
14072 #, no-wrap
14073 msgid ""
14074 " struct guestfs_stat *\n"
14075 " guestfs_stat (guestfs_h *g,\n"
14076 "               const char *path);\n"
14077 "\n"
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3828
14082 msgid "This is the same as the C<stat(2)> system call."
14083 msgstr ""
14084
14085 # type: =head2
14086 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-structs.pod:135
14087 msgid "guestfs_statvfs"
14088 msgstr ""
14089
14090 # type: verbatim
14091 #: ../src/guestfs-actions.pod:5750
14092 #, no-wrap
14093 msgid ""
14094 " struct guestfs_statvfs *\n"
14095 " guestfs_statvfs (guestfs_h *g,\n"
14096 "                  const char *path);\n"
14097 "\n"
14098 msgstr ""
14099
14100 # type: textblock
14101 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3834
14102 msgid ""
14103 "Returns file system statistics for any mounted file system.  C<path> should "
14104 "be a file or directory in the mounted file system (typically it is the mount "
14105 "point itself, but it doesn't need to be)."
14106 msgstr ""
14107
14108 # type: textblock
14109 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3838
14110 msgid "This is the same as the C<statvfs(2)> system call."
14111 msgstr ""
14112
14113 # type: textblock
14114 #: ../src/guestfs-actions.pod:5760
14115 msgid ""
14116 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14117 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14118 msgstr ""
14119
14120 # type: =head2
14121 #: ../src/guestfs-actions.pod:5766
14122 msgid "guestfs_strings"
14123 msgstr ""
14124
14125 # type: verbatim
14126 #: ../src/guestfs-actions.pod:5768
14127 #, no-wrap
14128 msgid ""
14129 " char **\n"
14130 " guestfs_strings (guestfs_h *g,\n"
14131 "                  const char *path);\n"
14132 "\n"
14133 msgstr ""
14134
14135 # type: textblock
14136 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3844
14137 msgid ""
14138 "This runs the L<strings(1)> command on a file and returns the list of "
14139 "printable strings found."
14140 msgstr ""
14141
14142 # type: =head2
14143 #: ../src/guestfs-actions.pod:5784
14144 msgid "guestfs_strings_e"
14145 msgstr ""
14146
14147 # type: verbatim
14148 #: ../src/guestfs-actions.pod:5786
14149 #, no-wrap
14150 msgid ""
14151 " char **\n"
14152 " guestfs_strings_e (guestfs_h *g,\n"
14153 "                    const char *encoding,\n"
14154 "                    const char *path);\n"
14155 "\n"
14156 msgstr ""
14157
14158 # type: textblock
14159 #: ../src/guestfs-actions.pod:5791
14160 msgid ""
14161 "This is like the C<guestfs_strings> command, but allows you to specify the "
14162 "encoding of strings that are looked for in the source file C<path>."
14163 msgstr ""
14164
14165 # type: textblock
14166 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3858
14167 msgid "Allowed encodings are:"
14168 msgstr ""
14169
14170 # type: =item
14171 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3862
14172 msgid "s"
14173 msgstr ""
14174
14175 # type: textblock
14176 #: ../src/guestfs-actions.pod:5801
14177 msgid ""
14178 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14179 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14180 msgstr ""
14181
14182 # type: =item
14183 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3867
14184 msgid "S"
14185 msgstr ""
14186
14187 # type: textblock
14188 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3869
14189 msgid "Single 8-bit-byte characters."
14190 msgstr ""
14191
14192 # type: =item
14193 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3871
14194 msgid "b"
14195 msgstr ""
14196
14197 # type: textblock
14198 #: ../src/guestfs-actions.pod:5810 ../fish/guestfish-actions.pod:3873
14199 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14200 msgstr ""
14201
14202 # type: =item
14203 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3876
14204 msgid "l (lower case letter L)"
14205 msgstr ""
14206
14207 # type: textblock
14208 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3878
14209 msgid ""
14210 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14211 "examining binaries in Windows guests."
14212 msgstr ""
14213
14214 # type: =item
14215 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3881
14216 msgid "B"
14217 msgstr ""
14218
14219 # type: textblock
14220 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3883
14221 msgid "32-bit big endian such as UCS-4BE."
14222 msgstr ""
14223
14224 # type: =item
14225 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3885
14226 msgid "L"
14227 msgstr ""
14228
14229 # type: textblock
14230 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3887
14231 msgid "32-bit little endian such as UCS-4LE."
14232 msgstr ""
14233
14234 # type: textblock
14235 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3891
14236 msgid "The returned strings are transcoded to UTF-8."
14237 msgstr ""
14238
14239 # type: =head2
14240 #: ../src/guestfs-actions.pod:5839
14241 msgid "guestfs_swapoff_device"
14242 msgstr ""
14243
14244 # type: verbatim
14245 #: ../src/guestfs-actions.pod:5841
14246 #, no-wrap
14247 msgid ""
14248 " int\n"
14249 " guestfs_swapoff_device (guestfs_h *g,\n"
14250 "                         const char *device);\n"
14251 "\n"
14252 msgstr ""
14253
14254 # type: textblock
14255 #: ../src/guestfs-actions.pod:5845
14256 msgid ""
14257 "This command disables the libguestfs appliance swap device or partition "
14258 "named C<device>.  See C<guestfs_swapon_device>."
14259 msgstr ""
14260
14261 # type: =head2
14262 #: ../src/guestfs-actions.pod:5853
14263 msgid "guestfs_swapoff_file"
14264 msgstr ""
14265
14266 # type: verbatim
14267 #: ../src/guestfs-actions.pod:5855
14268 #, no-wrap
14269 msgid ""
14270 " int\n"
14271 " guestfs_swapoff_file (guestfs_h *g,\n"
14272 "                       const char *file);\n"
14273 "\n"
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3908
14278 msgid "This command disables the libguestfs appliance swap on file."
14279 msgstr ""
14280
14281 # type: =head2
14282 #: ../src/guestfs-actions.pod:5865
14283 msgid "guestfs_swapoff_label"
14284 msgstr ""
14285
14286 # type: verbatim
14287 #: ../src/guestfs-actions.pod:5867
14288 #, no-wrap
14289 msgid ""
14290 " int\n"
14291 " guestfs_swapoff_label (guestfs_h *g,\n"
14292 "                        const char *label);\n"
14293 "\n"
14294 msgstr ""
14295
14296 # type: textblock
14297 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3914
14298 msgid ""
14299 "This command disables the libguestfs appliance swap on labeled swap "
14300 "partition."
14301 msgstr ""
14302
14303 # type: =head2
14304 #: ../src/guestfs-actions.pod:5878
14305 msgid "guestfs_swapoff_uuid"
14306 msgstr ""
14307
14308 # type: verbatim
14309 #: ../src/guestfs-actions.pod:5880
14310 #, no-wrap
14311 msgid ""
14312 " int\n"
14313 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14314 "                       const char *uuid);\n"
14315 "\n"
14316 msgstr ""
14317
14318 # type: textblock
14319 #: ../src/guestfs-actions.pod:5884 ../fish/guestfish-actions.pod:3921
14320 msgid ""
14321 "This command disables the libguestfs appliance swap partition with the given "
14322 "UUID."
14323 msgstr ""
14324
14325 # type: =head2
14326 #: ../src/guestfs-actions.pod:5891
14327 msgid "guestfs_swapon_device"
14328 msgstr ""
14329
14330 # type: verbatim
14331 #: ../src/guestfs-actions.pod:5893
14332 #, no-wrap
14333 msgid ""
14334 " int\n"
14335 " guestfs_swapon_device (guestfs_h *g,\n"
14336 "                        const char *device);\n"
14337 "\n"
14338 msgstr ""
14339
14340 # type: textblock
14341 #: ../src/guestfs-actions.pod:5897
14342 msgid ""
14343 "This command enables the libguestfs appliance to use the swap device or "
14344 "partition named C<device>.  The increased memory is made available for all "
14345 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14346 msgstr ""
14347
14348 # type: textblock
14349 #: ../src/guestfs-actions.pod:5902 ../fish/guestfish-actions.pod:3933
14350 msgid ""
14351 "Note that you should not swap to existing guest swap partitions unless you "
14352 "know what you are doing.  They may contain hibernation information, or other "
14353 "information that the guest doesn't want you to trash.  You also risk leaking "
14354 "information about the host to the guest this way.  Instead, attach a new "
14355 "host device to the guest and swap on that."
14356 msgstr ""
14357
14358 # type: =head2
14359 #: ../src/guestfs-actions.pod:5913
14360 msgid "guestfs_swapon_file"
14361 msgstr ""
14362
14363 # type: verbatim
14364 #: ../src/guestfs-actions.pod:5915
14365 #, no-wrap
14366 msgid ""
14367 " int\n"
14368 " guestfs_swapon_file (guestfs_h *g,\n"
14369 "                      const char *file);\n"
14370 "\n"
14371 msgstr ""
14372
14373 # type: textblock
14374 #: ../src/guestfs-actions.pod:5919
14375 msgid ""
14376 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14377 "notes."
14378 msgstr ""
14379
14380 # type: =head2
14381 #: ../src/guestfs-actions.pod:5926
14382 msgid "guestfs_swapon_label"
14383 msgstr ""
14384
14385 # type: verbatim
14386 #: ../src/guestfs-actions.pod:5928
14387 #, no-wrap
14388 msgid ""
14389 " int\n"
14390 " guestfs_swapon_label (guestfs_h *g,\n"
14391 "                       const char *label);\n"
14392 "\n"
14393 msgstr ""
14394
14395 # type: textblock
14396 #: ../src/guestfs-actions.pod:5932
14397 msgid ""
14398 "This command enables swap to a labeled swap partition.  See "
14399 "C<guestfs_swapon_device> for other notes."
14400 msgstr ""
14401
14402 # type: =head2
14403 #: ../src/guestfs-actions.pod:5939
14404 msgid "guestfs_swapon_uuid"
14405 msgstr ""
14406
14407 # type: verbatim
14408 #: ../src/guestfs-actions.pod:5941
14409 #, no-wrap
14410 msgid ""
14411 " int\n"
14412 " guestfs_swapon_uuid (guestfs_h *g,\n"
14413 "                      const char *uuid);\n"
14414 "\n"
14415 msgstr ""
14416
14417 # type: textblock
14418 #: ../src/guestfs-actions.pod:5945
14419 msgid ""
14420 "This command enables swap to a swap partition with the given UUID.  See "
14421 "C<guestfs_swapon_device> for other notes."
14422 msgstr ""
14423
14424 # type: =head2
14425 #: ../src/guestfs-actions.pod:5952
14426 msgid "guestfs_sync"
14427 msgstr ""
14428
14429 # type: verbatim
14430 #: ../src/guestfs-actions.pod:5954
14431 #, no-wrap
14432 msgid ""
14433 " int\n"
14434 " guestfs_sync (guestfs_h *g);\n"
14435 "\n"
14436 msgstr ""
14437
14438 # type: textblock
14439 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3965
14440 msgid ""
14441 "This syncs the disk, so that any writes are flushed through to the "
14442 "underlying disk image."
14443 msgstr ""
14444
14445 # type: textblock
14446 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3968
14447 msgid ""
14448 "You should always call this if you have modified a disk image, before "
14449 "closing the handle."
14450 msgstr ""
14451
14452 # type: =head2
14453 #: ../src/guestfs-actions.pod:5967
14454 msgid "guestfs_tail"
14455 msgstr ""
14456
14457 # type: verbatim
14458 #: ../src/guestfs-actions.pod:5969
14459 #, no-wrap
14460 msgid ""
14461 " char **\n"
14462 " guestfs_tail (guestfs_h *g,\n"
14463 "               const char *path);\n"
14464 "\n"
14465 msgstr ""
14466
14467 # type: textblock
14468 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:3975
14469 msgid ""
14470 "This command returns up to the last 10 lines of a file as a list of strings."
14471 msgstr ""
14472
14473 # type: =head2
14474 #: ../src/guestfs-actions.pod:5985
14475 msgid "guestfs_tail_n"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../src/guestfs-actions.pod:5987
14480 #, no-wrap
14481 msgid ""
14482 " char **\n"
14483 " guestfs_tail_n (guestfs_h *g,\n"
14484 "                 int nrlines,\n"
14485 "                 const char *path);\n"
14486 "\n"
14487 msgstr ""
14488
14489 # type: textblock
14490 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:3985
14491 msgid ""
14492 "If the parameter C<nrlines> is a positive number, this returns the last "
14493 "C<nrlines> lines of the file C<path>."
14494 msgstr ""
14495
14496 # type: textblock
14497 #: ../src/guestfs-actions.pod:5995 ../fish/guestfish-actions.pod:3988
14498 msgid ""
14499 "If the parameter C<nrlines> is a negative number, this returns lines from "
14500 "the file C<path>, starting with the C<-nrlines>th line."
14501 msgstr ""
14502
14503 # type: =head2
14504 #: ../src/guestfs-actions.pod:6009
14505 msgid "guestfs_tar_in"
14506 msgstr ""
14507
14508 # type: verbatim
14509 #: ../src/guestfs-actions.pod:6011
14510 #, no-wrap
14511 msgid ""
14512 " int\n"
14513 " guestfs_tar_in (guestfs_h *g,\n"
14514 "                 const char *tarfile,\n"
14515 "                 const char *directory);\n"
14516 "\n"
14517 msgstr ""
14518
14519 # type: textblock
14520 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4000
14521 msgid ""
14522 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14523 "tar file) into C<directory>."
14524 msgstr ""
14525
14526 # type: textblock
14527 #: ../src/guestfs-actions.pod:6019
14528 msgid ""
14529 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14530 msgstr ""
14531
14532 # type: textblock
14533 #: ../src/guestfs-actions.pod:6024 ../src/guestfs-actions.pod:6041
14534 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6073
14535 msgid "(Added in 1.0.3)"
14536 msgstr ""
14537
14538 # type: =head2
14539 #: ../src/guestfs-actions.pod:6026
14540 msgid "guestfs_tar_out"
14541 msgstr ""
14542
14543 # type: verbatim
14544 #: ../src/guestfs-actions.pod:6028
14545 #, no-wrap
14546 msgid ""
14547 " int\n"
14548 " guestfs_tar_out (guestfs_h *g,\n"
14549 "                  const char *directory,\n"
14550 "                  const char *tarfile);\n"
14551 "\n"
14552 msgstr ""
14553
14554 # type: textblock
14555 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4012
14556 msgid ""
14557 "This command packs the contents of C<directory> and downloads it to local "
14558 "file C<tarfile>."
14559 msgstr ""
14560
14561 # type: textblock
14562 #: ../src/guestfs-actions.pod:6036
14563 msgid ""
14564 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14565 "C<guestfs_txz_out>."
14566 msgstr ""
14567
14568 # type: =head2
14569 #: ../src/guestfs-actions.pod:6043
14570 msgid "guestfs_tgz_in"
14571 msgstr ""
14572
14573 # type: verbatim
14574 #: ../src/guestfs-actions.pod:6045
14575 #, no-wrap
14576 msgid ""
14577 " int\n"
14578 " guestfs_tgz_in (guestfs_h *g,\n"
14579 "                 const char *tarball,\n"
14580 "                 const char *directory);\n"
14581 "\n"
14582 msgstr ""
14583
14584 # type: textblock
14585 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4024
14586 msgid ""
14587 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14588 "tar file) into C<directory>."
14589 msgstr ""
14590
14591 # type: textblock
14592 #: ../src/guestfs-actions.pod:6053
14593 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14594 msgstr ""
14595
14596 # type: =head2
14597 #: ../src/guestfs-actions.pod:6059
14598 msgid "guestfs_tgz_out"
14599 msgstr ""
14600
14601 # type: verbatim
14602 #: ../src/guestfs-actions.pod:6061
14603 #, no-wrap
14604 msgid ""
14605 " int\n"
14606 " guestfs_tgz_out (guestfs_h *g,\n"
14607 "                  const char *directory,\n"
14608 "                  const char *tarball);\n"
14609 "\n"
14610 msgstr ""
14611
14612 # type: textblock
14613 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4035
14614 msgid ""
14615 "This command packs the contents of C<directory> and downloads it to local "
14616 "file C<tarball>."
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../src/guestfs-actions.pod:6069
14621 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14622 msgstr ""
14623
14624 # type: =head2
14625 #: ../src/guestfs-actions.pod:6075
14626 msgid "guestfs_touch"
14627 msgstr ""
14628
14629 # type: verbatim
14630 #: ../src/guestfs-actions.pod:6077
14631 #, no-wrap
14632 msgid ""
14633 " int\n"
14634 " guestfs_touch (guestfs_h *g,\n"
14635 "                const char *path);\n"
14636 "\n"
14637 msgstr ""
14638
14639 # type: textblock
14640 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4046
14641 msgid ""
14642 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14643 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14644 "length file."
14645 msgstr ""
14646
14647 # type: textblock
14648 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4050
14649 msgid ""
14650 "This command only works on regular files, and will fail on other file types "
14651 "such as directories, symbolic links, block special etc."
14652 msgstr ""
14653
14654 # type: =head2
14655 #: ../src/guestfs-actions.pod:6092
14656 msgid "guestfs_truncate"
14657 msgstr ""
14658
14659 # type: verbatim
14660 #: ../src/guestfs-actions.pod:6094
14661 #, no-wrap
14662 msgid ""
14663 " int\n"
14664 " guestfs_truncate (guestfs_h *g,\n"
14665 "                   const char *path);\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: textblock
14670 #: ../src/guestfs-actions.pod:6098 ../fish/guestfish-actions.pod:4057
14671 msgid ""
14672 "This command truncates C<path> to a zero-length file.  The file must exist "
14673 "already."
14674 msgstr ""
14675
14676 # type: =head2
14677 #: ../src/guestfs-actions.pod:6105
14678 msgid "guestfs_truncate_size"
14679 msgstr ""
14680
14681 # type: verbatim
14682 #: ../src/guestfs-actions.pod:6107
14683 #, no-wrap
14684 msgid ""
14685 " int\n"
14686 " guestfs_truncate_size (guestfs_h *g,\n"
14687 "                        const char *path,\n"
14688 "                        int64_t size);\n"
14689 "\n"
14690 msgstr ""
14691
14692 # type: textblock
14693 #: ../src/guestfs-actions.pod:6112 ../fish/guestfish-actions.pod:4064
14694 msgid ""
14695 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14696 "already."
14697 msgstr ""
14698
14699 # type: textblock
14700 #: ../src/guestfs-actions.pod:6115
14701 msgid ""
14702 "If the current file size is less than C<size> then the file is extended to "
14703 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14704 "blocks are not allocated for the file until you write to it).  To create a "
14705 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14706 msgstr ""
14707
14708 # type: =head2
14709 #: ../src/guestfs-actions.pod:6125
14710 msgid "guestfs_tune2fs_l"
14711 msgstr ""
14712
14713 # type: verbatim
14714 #: ../src/guestfs-actions.pod:6127
14715 #, no-wrap
14716 msgid ""
14717 " char **\n"
14718 " guestfs_tune2fs_l (guestfs_h *g,\n"
14719 "                    const char *device);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6131 ../fish/guestfish-actions.pod:4077
14725 msgid ""
14726 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14727 "C<device>."
14728 msgstr ""
14729
14730 # type: textblock
14731 #: ../src/guestfs-actions.pod:6134 ../fish/guestfish-actions.pod:4080
14732 msgid ""
14733 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14734 "for more details.  The list of fields returned isn't clearly defined, and "
14735 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14736 "and the filesystem itself."
14737 msgstr ""
14738
14739 # type: =head2
14740 #: ../src/guestfs-actions.pod:6147
14741 msgid "guestfs_txz_in"
14742 msgstr ""
14743
14744 # type: verbatim
14745 #: ../src/guestfs-actions.pod:6149
14746 #, no-wrap
14747 msgid ""
14748 " int\n"
14749 " guestfs_txz_in (guestfs_h *g,\n"
14750 "                 const char *tarball,\n"
14751 "                 const char *directory);\n"
14752 "\n"
14753 msgstr ""
14754
14755 # type: textblock
14756 #: ../src/guestfs-actions.pod:6154 ../fish/guestfish-actions.pod:4089
14757 msgid ""
14758 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14759 "tar file) into C<directory>."
14760 msgstr ""
14761
14762 # type: =head2
14763 #: ../src/guestfs-actions.pod:6161
14764 msgid "guestfs_txz_out"
14765 msgstr ""
14766
14767 # type: verbatim
14768 #: ../src/guestfs-actions.pod:6163
14769 #, no-wrap
14770 msgid ""
14771 " int\n"
14772 " guestfs_txz_out (guestfs_h *g,\n"
14773 "                  const char *directory,\n"
14774 "                  const char *tarball);\n"
14775 "\n"
14776 msgstr ""
14777
14778 # type: textblock
14779 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4098
14780 msgid ""
14781 "This command packs the contents of C<directory> and downloads it to local "
14782 "file C<tarball> (as an xz compressed tar archive)."
14783 msgstr ""
14784
14785 # type: =head2
14786 #: ../src/guestfs-actions.pod:6175
14787 msgid "guestfs_umask"
14788 msgstr ""
14789
14790 # type: verbatim
14791 #: ../src/guestfs-actions.pod:6177
14792 #, no-wrap
14793 msgid ""
14794 " int\n"
14795 " guestfs_umask (guestfs_h *g,\n"
14796 "                int mask);\n"
14797 "\n"
14798 msgstr ""
14799
14800 # type: textblock
14801 #: ../src/guestfs-actions.pod:6181 ../fish/guestfish-actions.pod:4107
14802 msgid ""
14803 "This function sets the mask used for creating new files and device nodes to "
14804 "C<mask & 0777>."
14805 msgstr ""
14806
14807 # type: textblock
14808 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4110
14809 msgid ""
14810 "Typical umask values would be C<022> which creates new files with "
14811 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14812 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14813 msgstr ""
14814
14815 # type: textblock
14816 #: ../src/guestfs-actions.pod:6189 ../fish/guestfish-actions.pod:4115
14817 msgid ""
14818 "The default umask is C<022>.  This is important because it means that "
14819 "directories and device nodes will be created with C<0644> or C<0755> mode "
14820 "even if you specify C<0777>."
14821 msgstr ""
14822
14823 # type: textblock
14824 #: ../src/guestfs-actions.pod:6193
14825 msgid ""
14826 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14827 "C<guestfs_mkdir>."
14828 msgstr ""
14829
14830 # type: textblock
14831 #: ../src/guestfs-actions.pod:6196 ../fish/guestfish-actions.pod:4122
14832 msgid "This call returns the previous umask."
14833 msgstr ""
14834
14835 # type: =head2
14836 #: ../src/guestfs-actions.pod:6202
14837 msgid "guestfs_umount"
14838 msgstr ""
14839
14840 # type: verbatim
14841 #: ../src/guestfs-actions.pod:6204
14842 #, no-wrap
14843 msgid ""
14844 " int\n"
14845 " guestfs_umount (guestfs_h *g,\n"
14846 "                 const char *pathordevice);\n"
14847 "\n"
14848 msgstr ""
14849
14850 # type: textblock
14851 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4130
14852 msgid ""
14853 "This unmounts the given filesystem.  The filesystem may be specified either "
14854 "by its mountpoint (path) or the device which contains the filesystem."
14855 msgstr ""
14856
14857 # type: =head2
14858 #: ../src/guestfs-actions.pod:6216
14859 msgid "guestfs_umount_all"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #: ../src/guestfs-actions.pod:6218
14864 #, no-wrap
14865 msgid ""
14866 " int\n"
14867 " guestfs_umount_all (guestfs_h *g);\n"
14868 "\n"
14869 msgstr ""
14870
14871 # type: textblock
14872 #: ../src/guestfs-actions.pod:6221 ../fish/guestfish-actions.pod:4140
14873 msgid "This unmounts all mounted filesystems."
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4142
14878 msgid "Some internal mounts are not unmounted by this call."
14879 msgstr ""
14880
14881 # type: =head2
14882 #: ../src/guestfs-actions.pod:6229
14883 msgid "guestfs_upload"
14884 msgstr ""
14885
14886 # type: verbatim
14887 #: ../src/guestfs-actions.pod:6231
14888 #, no-wrap
14889 msgid ""
14890 " int\n"
14891 " guestfs_upload (guestfs_h *g,\n"
14892 "                 const char *filename,\n"
14893 "                 const char *remotefilename);\n"
14894 "\n"
14895 msgstr ""
14896
14897 # type: textblock
14898 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6255
14899 #: ../fish/guestfish-actions.pod:4148 ../fish/guestfish-actions.pod:4161
14900 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6241
14905 msgid "See also C<guestfs_download>."
14906 msgstr ""
14907
14908 # type: =head2
14909 #: ../src/guestfs-actions.pod:6247
14910 msgid "guestfs_upload_offset"
14911 msgstr ""
14912
14913 # type: verbatim
14914 #: ../src/guestfs-actions.pod:6249
14915 #, no-wrap
14916 msgid ""
14917 " int\n"
14918 " guestfs_upload_offset (guestfs_h *g,\n"
14919 "                        const char *filename,\n"
14920 "                        const char *remotefilename,\n"
14921 "                        int64_t offset);\n"
14922 "\n"
14923 msgstr ""
14924
14925 # type: textblock
14926 #: ../src/guestfs-actions.pod:6258 ../fish/guestfish-actions.pod:4164
14927 msgid ""
14928 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14929 "The intention is to overwrite parts of existing files or devices, although "
14930 "if a non-existant file is specified then it is created with a \"hole\" "
14931 "before C<offset>.  The size of the data written is implicit in the size of "
14932 "the source C<filename>."
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../src/guestfs-actions.pod:6265
14937 msgid ""
14938 "Note that there is no limit on the amount of data that can be uploaded with "
14939 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14940 "full amount unless an error occurs."
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../src/guestfs-actions.pod:6270
14945 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14946 msgstr ""
14947
14948 # type: =head2
14949 #: ../src/guestfs-actions.pod:6276
14950 msgid "guestfs_utimens"
14951 msgstr ""
14952
14953 # type: verbatim
14954 #: ../src/guestfs-actions.pod:6278
14955 #, no-wrap
14956 msgid ""
14957 " int\n"
14958 " guestfs_utimens (guestfs_h *g,\n"
14959 "                  const char *path,\n"
14960 "                  int64_t atsecs,\n"
14961 "                  int64_t atnsecs,\n"
14962 "                  int64_t mtsecs,\n"
14963 "                  int64_t mtnsecs);\n"
14964 "\n"
14965 msgstr ""
14966
14967 # type: textblock
14968 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4184
14969 msgid "This command sets the timestamps of a file with nanosecond precision."
14970 msgstr ""
14971
14972 # type: textblock
14973 #: ../src/guestfs-actions.pod:6289 ../fish/guestfish-actions.pod:4187
14974 msgid ""
14975 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14976 "from the epoch."
14977 msgstr ""
14978
14979 # type: textblock
14980 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4190
14981 msgid ""
14982 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14983 "nanoseconds from the epoch."
14984 msgstr ""
14985
14986 # type: textblock
14987 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4193
14988 msgid ""
14989 "If the C<*nsecs> field contains the special value C<-1> then the "
14990 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14991 "ignored in this case)."
14992 msgstr ""
14993
14994 # type: textblock
14995 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4197
14996 msgid ""
14997 "If the C<*nsecs> field contains the special value C<-2> then the "
14998 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14999 "in this case)."
15000 msgstr ""
15001
15002 # type: =head2
15003 #: ../src/guestfs-actions.pod:6307 ../src/guestfs-structs.pod:175
15004 msgid "guestfs_version"
15005 msgstr ""
15006
15007 # type: verbatim
15008 #: ../src/guestfs-actions.pod:6309
15009 #, no-wrap
15010 msgid ""
15011 " struct guestfs_version *\n"
15012 " guestfs_version (guestfs_h *g);\n"
15013 "\n"
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../src/guestfs-actions.pod:6312 ../fish/guestfish-actions.pod:4205
15018 msgid ""
15019 "Return the libguestfs version number that the program is linked against."
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4208
15024 msgid ""
15025 "Note that because of dynamic linking this is not necessarily the version of "
15026 "libguestfs that you compiled against.  You can compile the program, and then "
15027 "at runtime dynamically link against a completely different C<libguestfs.so> "
15028 "library."
15029 msgstr ""
15030
15031 # type: textblock
15032 #: ../src/guestfs-actions.pod:6320 ../fish/guestfish-actions.pod:4213
15033 msgid ""
15034 "This call was added in version C<1.0.58>.  In previous versions of "
15035 "libguestfs there was no way to get the version number.  From C code you can "
15036 "use dynamic linker functions to find out if this symbol exists (if it "
15037 "doesn't, then it's an earlier version)."
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4219
15042 msgid ""
15043 "The call returns a structure with four elements.  The first three (C<major>, "
15044 "C<minor> and C<release>) are numbers and correspond to the usual version "
15045 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15046 "but may be used for distro-specific information."
15047 msgstr ""
15048
15049 # type: textblock
15050 #: ../src/guestfs-actions.pod:6332 ../fish/guestfish-actions.pod:4225
15051 msgid ""
15052 "To construct the original version string: C<$major.$minor.$release$extra>"
15053 msgstr ""
15054
15055 # type: textblock
15056 #: ../src/guestfs-actions.pod:6335 ../fish/guestfish-actions.pod:4228
15057 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15058 msgstr ""
15059
15060 # type: textblock
15061 #: ../src/guestfs-actions.pod:6337
15062 msgid ""
15063 "I<Note:> Don't use this call to test for availability of features.  In "
15064 "enterprise distributions we backport features from later versions into "
15065 "earlier versions, making this an unreliable way to test for features.  Use "
15066 "C<guestfs_available> instead."
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6343
15071 msgid ""
15072 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15073 "error.  I<The caller must call C<guestfs_free_version> after use>."
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-actions.pod:6347
15078 msgid "(Added in 1.0.58)"
15079 msgstr ""
15080
15081 # type: =head2
15082 #: ../src/guestfs-actions.pod:6349
15083 msgid "guestfs_vfs_label"
15084 msgstr ""
15085
15086 # type: verbatim
15087 #: ../src/guestfs-actions.pod:6351
15088 #, no-wrap
15089 msgid ""
15090 " char *\n"
15091 " guestfs_vfs_label (guestfs_h *g,\n"
15092 "                    const char *device);\n"
15093 "\n"
15094 msgstr ""
15095
15096 # type: textblock
15097 #: ../src/guestfs-actions.pod:6355 ../fish/guestfish-actions.pod:4240
15098 msgid "This returns the filesystem label of the filesystem on C<device>."
15099 msgstr ""
15100
15101 # type: textblock
15102 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4243
15103 msgid "If the filesystem is unlabeled, this returns the empty string."
15104 msgstr ""
15105
15106 # type: textblock
15107 #: ../src/guestfs-actions.pod:6360
15108 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15109 msgstr ""
15110
15111 # type: textblock
15112 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:6402
15113 msgid "(Added in 1.3.18)"
15114 msgstr ""
15115
15116 # type: =head2
15117 #: ../src/guestfs-actions.pod:6367
15118 msgid "guestfs_vfs_type"
15119 msgstr ""
15120
15121 # type: verbatim
15122 #: ../src/guestfs-actions.pod:6369
15123 #, no-wrap
15124 msgid ""
15125 " char *\n"
15126 " guestfs_vfs_type (guestfs_h *g,\n"
15127 "                   const char *device);\n"
15128 "\n"
15129 msgstr ""
15130
15131 # type: textblock
15132 #: ../src/guestfs-actions.pod:6373 ../fish/guestfish-actions.pod:4251
15133 msgid ""
15134 "This command gets the filesystem type corresponding to the filesystem on "
15135 "C<device>."
15136 msgstr ""
15137
15138 # type: textblock
15139 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4254
15140 msgid ""
15141 "For most filesystems, the result is the name of the Linux VFS module which "
15142 "would be used to mount this filesystem if you mounted it without specifying "
15143 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15144 msgstr ""
15145
15146 # type: =head2
15147 #: ../src/guestfs-actions.pod:6386
15148 msgid "guestfs_vfs_uuid"
15149 msgstr ""
15150
15151 # type: verbatim
15152 #: ../src/guestfs-actions.pod:6388
15153 #, no-wrap
15154 msgid ""
15155 " char *\n"
15156 " guestfs_vfs_uuid (guestfs_h *g,\n"
15157 "                   const char *device);\n"
15158 "\n"
15159 msgstr ""
15160
15161 # type: textblock
15162 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4263
15163 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15164 msgstr ""
15165
15166 # type: textblock
15167 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4266
15168 msgid "If the filesystem does not have a UUID, this returns the empty string."
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-actions.pod:6397
15173 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15174 msgstr ""
15175
15176 # type: =head2
15177 #: ../src/guestfs-actions.pod:6404
15178 msgid "guestfs_vg_activate"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../src/guestfs-actions.pod:6406
15183 #, no-wrap
15184 msgid ""
15185 " int\n"
15186 " guestfs_vg_activate (guestfs_h *g,\n"
15187 "                      int activate,\n"
15188 "                      char *const *volgroups);\n"
15189 "\n"
15190 msgstr ""
15191
15192 # type: textblock
15193 #: ../src/guestfs-actions.pod:6411 ../fish/guestfish-actions.pod:4274
15194 msgid ""
15195 "This command activates or (if C<activate> is false) deactivates all logical "
15196 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15197 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15198 "deactivated, then those devices disappear."
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../src/guestfs-actions.pod:6417 ../fish/guestfish-actions.pod:4280
15203 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4282
15208 msgid ""
15209 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15210 "activated or deactivated."
15211 msgstr ""
15212
15213 # type: =head2
15214 #: ../src/guestfs-actions.pod:6426
15215 msgid "guestfs_vg_activate_all"
15216 msgstr ""
15217
15218 # type: verbatim
15219 #: ../src/guestfs-actions.pod:6428
15220 #, no-wrap
15221 msgid ""
15222 " int\n"
15223 " guestfs_vg_activate_all (guestfs_h *g,\n"
15224 "                          int activate);\n"
15225 "\n"
15226 msgstr ""
15227
15228 # type: textblock
15229 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4289
15230 msgid ""
15231 "This command activates or (if C<activate> is false) deactivates all logical "
15232 "volumes in all volume groups.  If activated, then they are made known to the "
15233 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15234 "those devices disappear."
15235 msgstr ""
15236
15237 # type: textblock
15238 #: ../src/guestfs-actions.pod:6438 ../fish/guestfish-actions.pod:4295
15239 msgid "This command is the same as running C<vgchange -a y|n>"
15240 msgstr ""
15241
15242 # type: =head2
15243 #: ../src/guestfs-actions.pod:6444
15244 msgid "guestfs_vgcreate"
15245 msgstr ""
15246
15247 # type: verbatim
15248 #: ../src/guestfs-actions.pod:6446
15249 #, no-wrap
15250 msgid ""
15251 " int\n"
15252 " guestfs_vgcreate (guestfs_h *g,\n"
15253 "                   const char *volgroup,\n"
15254 "                   char *const *physvols);\n"
15255 "\n"
15256 msgstr ""
15257
15258 # type: textblock
15259 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4301
15260 msgid ""
15261 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15262 "of physical volumes C<physvols>."
15263 msgstr ""
15264
15265 # type: =head2
15266 #: ../src/guestfs-actions.pod:6458
15267 msgid "guestfs_vglvuuids"
15268 msgstr ""
15269
15270 # type: verbatim
15271 #: ../src/guestfs-actions.pod:6460
15272 #, no-wrap
15273 msgid ""
15274 " char **\n"
15275 " guestfs_vglvuuids (guestfs_h *g,\n"
15276 "                    const char *vgname);\n"
15277 "\n"
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../src/guestfs-actions.pod:6464 ../fish/guestfish-actions.pod:4308
15282 msgid ""
15283 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15284 "volumes created in this volume group."
15285 msgstr ""
15286
15287 # type: textblock
15288 #: ../src/guestfs-actions.pod:6467
15289 msgid ""
15290 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15291 "associate logical volumes and volume groups."
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../src/guestfs-actions.pod:6470
15296 msgid "See also C<guestfs_vgpvuuids>."
15297 msgstr ""
15298
15299 # type: =head2
15300 #: ../src/guestfs-actions.pod:6478
15301 msgid "guestfs_vgpvuuids"
15302 msgstr ""
15303
15304 # type: verbatim
15305 #: ../src/guestfs-actions.pod:6480
15306 #, no-wrap
15307 msgid ""
15308 " char **\n"
15309 " guestfs_vgpvuuids (guestfs_h *g,\n"
15310 "                    const char *vgname);\n"
15311 "\n"
15312 msgstr ""
15313
15314 # type: textblock
15315 #: ../src/guestfs-actions.pod:6484 ../fish/guestfish-actions.pod:4320
15316 msgid ""
15317 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15318 "volumes that this volume group resides on."
15319 msgstr ""
15320
15321 # type: textblock
15322 #: ../src/guestfs-actions.pod:6487
15323 msgid ""
15324 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15325 "associate physical volumes and volume groups."
15326 msgstr ""
15327
15328 # type: textblock
15329 #: ../src/guestfs-actions.pod:6490
15330 msgid "See also C<guestfs_vglvuuids>."
15331 msgstr ""
15332
15333 # type: =head2
15334 #: ../src/guestfs-actions.pod:6498
15335 msgid "guestfs_vgremove"
15336 msgstr ""
15337
15338 # type: verbatim
15339 #: ../src/guestfs-actions.pod:6500
15340 #, no-wrap
15341 msgid ""
15342 " int\n"
15343 " guestfs_vgremove (guestfs_h *g,\n"
15344 "                   const char *vgname);\n"
15345 "\n"
15346 msgstr ""
15347
15348 # type: textblock
15349 #: ../src/guestfs-actions.pod:6504 ../fish/guestfish-actions.pod:4332
15350 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4334
15355 msgid ""
15356 "This also forcibly removes all logical volumes in the volume group (if any)."
15357 msgstr ""
15358
15359 # type: =head2
15360 #: ../src/guestfs-actions.pod:6513
15361 msgid "guestfs_vgrename"
15362 msgstr ""
15363
15364 # type: verbatim
15365 #: ../src/guestfs-actions.pod:6515
15366 #, no-wrap
15367 msgid ""
15368 " int\n"
15369 " guestfs_vgrename (guestfs_h *g,\n"
15370 "                   const char *volgroup,\n"
15371 "                   const char *newvolgroup);\n"
15372 "\n"
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4341
15377 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-actions.pod:6526
15382 msgid "guestfs_vgs"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-actions.pod:6528
15387 #, no-wrap
15388 msgid ""
15389 " char **\n"
15390 " guestfs_vgs (guestfs_h *g);\n"
15391 "\n"
15392 msgstr ""
15393
15394 # type: textblock
15395 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4347
15396 msgid ""
15397 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15398 "> command."
15399 msgstr ""
15400
15401 # type: textblock
15402 #: ../src/guestfs-actions.pod:6534 ../fish/guestfish-actions.pod:4350
15403 msgid ""
15404 "This returns a list of just the volume group names that were detected (eg. "
15405 "C<VolGroup00>)."
15406 msgstr ""
15407
15408 # type: textblock
15409 #: ../src/guestfs-actions.pod:6537
15410 msgid "See also C<guestfs_vgs_full>."
15411 msgstr ""
15412
15413 # type: =head2
15414 #: ../src/guestfs-actions.pod:6545
15415 msgid "guestfs_vgs_full"
15416 msgstr ""
15417
15418 # type: verbatim
15419 #: ../src/guestfs-actions.pod:6547
15420 #, no-wrap
15421 msgid ""
15422 " struct guestfs_lvm_vg_list *\n"
15423 " guestfs_vgs_full (guestfs_h *g);\n"
15424 "\n"
15425 msgstr ""
15426
15427 # type: textblock
15428 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4359
15429 msgid ""
15430 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15431 "> command.  The \"full\" version includes all fields."
15432 msgstr ""
15433
15434 # type: textblock
15435 #: ../src/guestfs-actions.pod:6553
15436 msgid ""
15437 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15438 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15439 msgstr ""
15440
15441 # type: =head2
15442 #: ../src/guestfs-actions.pod:6559
15443 msgid "guestfs_vgscan"
15444 msgstr ""
15445
15446 # type: verbatim
15447 #: ../src/guestfs-actions.pod:6561
15448 #, no-wrap
15449 msgid ""
15450 " int\n"
15451 " guestfs_vgscan (guestfs_h *g);\n"
15452 "\n"
15453 msgstr ""
15454
15455 # type: textblock
15456 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4366
15457 msgid ""
15458 "This rescans all block devices and rebuilds the list of LVM physical "
15459 "volumes, volume groups and logical volumes."
15460 msgstr ""
15461
15462 # type: =head2
15463 #: ../src/guestfs-actions.pod:6571
15464 msgid "guestfs_vguuid"
15465 msgstr ""
15466
15467 # type: verbatim
15468 #: ../src/guestfs-actions.pod:6573
15469 #, no-wrap
15470 msgid ""
15471 " char *\n"
15472 " guestfs_vguuid (guestfs_h *g,\n"
15473 "                 const char *vgname);\n"
15474 "\n"
15475 msgstr ""
15476
15477 # type: textblock
15478 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4373
15479 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15480 msgstr ""
15481
15482 # type: =head2
15483 #: ../src/guestfs-actions.pod:6584
15484 msgid "guestfs_wait_ready"
15485 msgstr ""
15486
15487 # type: verbatim
15488 #: ../src/guestfs-actions.pod:6586
15489 #, no-wrap
15490 msgid ""
15491 " int\n"
15492 " guestfs_wait_ready (guestfs_h *g);\n"
15493 "\n"
15494 msgstr ""
15495
15496 # type: textblock
15497 #: ../src/guestfs-actions.pod:6589
15498 msgid "This function is a no op."
15499 msgstr ""
15500
15501 # type: textblock
15502 #: ../src/guestfs-actions.pod:6591
15503 msgid ""
15504 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15505 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15506 "is no longer necessary because C<guestfs_launch> now does the waiting."
15507 msgstr ""
15508
15509 # type: textblock
15510 #: ../src/guestfs-actions.pod:6596
15511 msgid ""
15512 "If you see any calls to this function in code then you can just remove them, "
15513 "unless you want to retain compatibility with older versions of the API."
15514 msgstr ""
15515
15516 # type: =head2
15517 #: ../src/guestfs-actions.pod:6604
15518 msgid "guestfs_wc_c"
15519 msgstr ""
15520
15521 # type: verbatim
15522 #: ../src/guestfs-actions.pod:6606
15523 #, no-wrap
15524 msgid ""
15525 " int\n"
15526 " guestfs_wc_c (guestfs_h *g,\n"
15527 "               const char *path);\n"
15528 "\n"
15529 msgstr ""
15530
15531 # type: textblock
15532 #: ../src/guestfs-actions.pod:6610 ../fish/guestfish-actions.pod:4379
15533 msgid ""
15534 "This command counts the characters in a file, using the C<wc -c> external "
15535 "command."
15536 msgstr ""
15537
15538 # type: =head2
15539 #: ../src/guestfs-actions.pod:6617
15540 msgid "guestfs_wc_l"
15541 msgstr ""
15542
15543 # type: verbatim
15544 #: ../src/guestfs-actions.pod:6619
15545 #, no-wrap
15546 msgid ""
15547 " int\n"
15548 " guestfs_wc_l (guestfs_h *g,\n"
15549 "               const char *path);\n"
15550 "\n"
15551 msgstr ""
15552
15553 # type: textblock
15554 #: ../src/guestfs-actions.pod:6623 ../fish/guestfish-actions.pod:4386
15555 msgid ""
15556 "This command counts the lines in a file, using the C<wc -l> external command."
15557 msgstr ""
15558
15559 # type: =head2
15560 #: ../src/guestfs-actions.pod:6630
15561 msgid "guestfs_wc_w"
15562 msgstr ""
15563
15564 # type: verbatim
15565 #: ../src/guestfs-actions.pod:6632
15566 #, no-wrap
15567 msgid ""
15568 " int\n"
15569 " guestfs_wc_w (guestfs_h *g,\n"
15570 "               const char *path);\n"
15571 "\n"
15572 msgstr ""
15573
15574 # type: textblock
15575 #: ../src/guestfs-actions.pod:6636 ../fish/guestfish-actions.pod:4393
15576 msgid ""
15577 "This command counts the words in a file, using the C<wc -w> external command."
15578 msgstr ""
15579
15580 # type: =head2
15581 #: ../src/guestfs-actions.pod:6643
15582 msgid "guestfs_write"
15583 msgstr ""
15584
15585 # type: verbatim
15586 #: ../src/guestfs-actions.pod:6645
15587 #, no-wrap
15588 msgid ""
15589 " int\n"
15590 " guestfs_write (guestfs_h *g,\n"
15591 "                const char *path,\n"
15592 "                const char *content,\n"
15593 "                size_t content_size);\n"
15594 "\n"
15595 msgstr ""
15596
15597 # type: textblock
15598 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4400
15599 msgid ""
15600 "This call creates a file called C<path>.  The content of the file is the "
15601 "string C<content> (which can contain any 8 bit data)."
15602 msgstr ""
15603
15604 # type: =head2
15605 #: ../src/guestfs-actions.pod:6661
15606 msgid "guestfs_write_file"
15607 msgstr ""
15608
15609 # type: verbatim
15610 #: ../src/guestfs-actions.pod:6663
15611 #, no-wrap
15612 msgid ""
15613 " int\n"
15614 " guestfs_write_file (guestfs_h *g,\n"
15615 "                     const char *path,\n"
15616 "                     const char *content,\n"
15617 "                     int size);\n"
15618 "\n"
15619 msgstr ""
15620
15621 # type: textblock
15622 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4410
15623 msgid ""
15624 "This call creates a file called C<path>.  The contents of the file is the "
15625 "string C<content> (which can contain any 8 bit data), with length C<size>."
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4414
15630 msgid ""
15631 "As a special case, if C<size> is C<0> then the length is calculated using "
15632 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15633 msgstr ""
15634
15635 # type: textblock
15636 #: ../src/guestfs-actions.pod:6677 ../fish/guestfish-actions.pod:4418
15637 msgid ""
15638 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15639 "I<not> work, even if the length is specified."
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4424
15644 msgid ""
15645 "This function is deprecated.  In new code, use the C<write> call instead."
15646 msgstr ""
15647
15648 # type: =head2
15649 #: ../src/guestfs-actions.pod:6694
15650 msgid "guestfs_zegrep"
15651 msgstr ""
15652
15653 # type: verbatim
15654 #: ../src/guestfs-actions.pod:6696
15655 #, no-wrap
15656 msgid ""
15657 " char **\n"
15658 " guestfs_zegrep (guestfs_h *g,\n"
15659 "                 const char *regex,\n"
15660 "                 const char *path);\n"
15661 "\n"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../src/guestfs-actions.pod:6701 ../fish/guestfish-actions.pod:4435
15666 msgid ""
15667 "This calls the external C<zegrep> program and returns the matching lines."
15668 msgstr ""
15669
15670 # type: =head2
15671 #: ../src/guestfs-actions.pod:6713
15672 msgid "guestfs_zegrepi"
15673 msgstr ""
15674
15675 # type: verbatim
15676 #: ../src/guestfs-actions.pod:6715
15677 #, no-wrap
15678 msgid ""
15679 " char **\n"
15680 " guestfs_zegrepi (guestfs_h *g,\n"
15681 "                  const char *regex,\n"
15682 "                  const char *path);\n"
15683 "\n"
15684 msgstr ""
15685
15686 # type: textblock
15687 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4445
15688 msgid ""
15689 "This calls the external C<zegrep -i> program and returns the matching lines."
15690 msgstr ""
15691
15692 # type: =head2
15693 #: ../src/guestfs-actions.pod:6732
15694 msgid "guestfs_zero"
15695 msgstr ""
15696
15697 # type: verbatim
15698 #: ../src/guestfs-actions.pod:6734
15699 #, no-wrap
15700 msgid ""
15701 " int\n"
15702 " guestfs_zero (guestfs_h *g,\n"
15703 "               const char *device);\n"
15704 "\n"
15705 msgstr ""
15706
15707 # type: textblock
15708 #: ../src/guestfs-actions.pod:6738 ../fish/guestfish-actions.pod:4455
15709 msgid "This command writes zeroes over the first few blocks of C<device>."
15710 msgstr ""
15711
15712 # type: textblock
15713 #: ../src/guestfs-actions.pod:6740 ../fish/guestfish-actions.pod:4457
15714 msgid ""
15715 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15716 "securely wipe the device).  It should be sufficient to remove any partition "
15717 "tables, filesystem superblocks and so on."
15718 msgstr ""
15719
15720 # type: textblock
15721 #: ../src/guestfs-actions.pod:6744
15722 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15723 msgstr ""
15724
15725 # type: =head2
15726 #: ../src/guestfs-actions.pod:6755
15727 msgid "guestfs_zero_device"
15728 msgstr ""
15729
15730 # type: verbatim
15731 #: ../src/guestfs-actions.pod:6757
15732 #, no-wrap
15733 msgid ""
15734 " int\n"
15735 " guestfs_zero_device (guestfs_h *g,\n"
15736 "                      const char *device);\n"
15737 "\n"
15738 msgstr ""
15739
15740 # type: textblock
15741 #: ../src/guestfs-actions.pod:6761
15742 msgid ""
15743 "This command writes zeroes over the entire C<device>.  Compare with "
15744 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15745 msgstr ""
15746
15747 # type: textblock
15748 #: ../src/guestfs-actions.pod:6775
15749 msgid "(Added in 1.3.1)"
15750 msgstr ""
15751
15752 # type: =head2
15753 #: ../src/guestfs-actions.pod:6777
15754 msgid "guestfs_zerofree"
15755 msgstr ""
15756
15757 # type: verbatim
15758 #: ../src/guestfs-actions.pod:6779
15759 #, no-wrap
15760 msgid ""
15761 " int\n"
15762 " guestfs_zerofree (guestfs_h *g,\n"
15763 "                   const char *device);\n"
15764 "\n"
15765 msgstr ""
15766
15767 # type: textblock
15768 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4478
15769 msgid ""
15770 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15771 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15772 "possible to compress the filesystem more effectively."
15773 msgstr ""
15774
15775 # type: textblock
15776 #: ../src/guestfs-actions.pod:6788 ../fish/guestfish-actions.pod:4483
15777 msgid "You should B<not> run this program if the filesystem is mounted."
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4486
15782 msgid ""
15783 "It is possible that using this program can damage the filesystem or data on "
15784 "the filesystem."
15785 msgstr ""
15786
15787 # type: =head2
15788 #: ../src/guestfs-actions.pod:6798
15789 msgid "guestfs_zfgrep"
15790 msgstr ""
15791
15792 # type: verbatim
15793 #: ../src/guestfs-actions.pod:6800
15794 #, no-wrap
15795 msgid ""
15796 " char **\n"
15797 " guestfs_zfgrep (guestfs_h *g,\n"
15798 "                 const char *pattern,\n"
15799 "                 const char *path);\n"
15800 "\n"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4493
15805 msgid ""
15806 "This calls the external C<zfgrep> program and returns the matching lines."
15807 msgstr ""
15808
15809 # type: =head2
15810 #: ../src/guestfs-actions.pod:6817
15811 msgid "guestfs_zfgrepi"
15812 msgstr ""
15813
15814 # type: verbatim
15815 #: ../src/guestfs-actions.pod:6819
15816 #, no-wrap
15817 msgid ""
15818 " char **\n"
15819 " guestfs_zfgrepi (guestfs_h *g,\n"
15820 "                  const char *pattern,\n"
15821 "                  const char *path);\n"
15822 "\n"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-actions.pod:6824 ../fish/guestfish-actions.pod:4503
15827 msgid ""
15828 "This calls the external C<zfgrep -i> program and returns the matching lines."
15829 msgstr ""
15830
15831 # type: =head2
15832 #: ../src/guestfs-actions.pod:6836
15833 msgid "guestfs_zfile"
15834 msgstr ""
15835
15836 # type: verbatim
15837 #: ../src/guestfs-actions.pod:6838
15838 #, no-wrap
15839 msgid ""
15840 " char *\n"
15841 " guestfs_zfile (guestfs_h *g,\n"
15842 "                const char *meth,\n"
15843 "                const char *path);\n"
15844 "\n"
15845 msgstr ""
15846
15847 # type: textblock
15848 #: ../src/guestfs-actions.pod:6843 ../fish/guestfish-actions.pod:4513
15849 msgid ""
15850 "This command runs C<file> after first decompressing C<path> using C<method>."
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../src/guestfs-actions.pod:6846 ../fish/guestfish-actions.pod:4516
15855 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15856 msgstr ""
15857
15858 # type: textblock
15859 #: ../src/guestfs-actions.pod:6848
15860 msgid ""
15861 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15862 "files."
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4521
15867 msgid ""
15868 "This function is deprecated.  In new code, use the C<file> call instead."
15869 msgstr ""
15870
15871 # type: =head2
15872 #: ../src/guestfs-actions.pod:6863
15873 msgid "guestfs_zgrep"
15874 msgstr ""
15875
15876 # type: verbatim
15877 #: ../src/guestfs-actions.pod:6865
15878 #, no-wrap
15879 msgid ""
15880 " char **\n"
15881 " guestfs_zgrep (guestfs_h *g,\n"
15882 "                const char *regex,\n"
15883 "                const char *path);\n"
15884 "\n"
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../src/guestfs-actions.pod:6870 ../fish/guestfish-actions.pod:4532
15889 msgid ""
15890 "This calls the external C<zgrep> program and returns the matching lines."
15891 msgstr ""
15892
15893 # type: =head2
15894 #: ../src/guestfs-actions.pod:6882
15895 msgid "guestfs_zgrepi"
15896 msgstr ""
15897
15898 # type: verbatim
15899 #: ../src/guestfs-actions.pod:6884
15900 #, no-wrap
15901 msgid ""
15902 " char **\n"
15903 " guestfs_zgrepi (guestfs_h *g,\n"
15904 "                 const char *regex,\n"
15905 "                 const char *path);\n"
15906 "\n"
15907 msgstr ""
15908
15909 # type: textblock
15910 #: ../src/guestfs-actions.pod:6889 ../fish/guestfish-actions.pod:4542
15911 msgid ""
15912 "This calls the external C<zgrep -i> program and returns the matching lines."
15913 msgstr ""
15914
15915 # type: =item
15916 #: ../src/guestfs-availability.pod:3
15917 msgid "B<augeas>"
15918 msgstr ""
15919
15920 # type: textblock
15921 #: ../src/guestfs-availability.pod:5
15922 msgid ""
15923 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15924 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15925 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15926 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15927 "L</guestfs_aug_save> L</guestfs_aug_set>"
15928 msgstr ""
15929
15930 # type: =item
15931 #: ../src/guestfs-availability.pod:21
15932 msgid "B<inotify>"
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../src/guestfs-availability.pod:23
15937 msgid ""
15938 "The following functions: L</guestfs_inotify_add_watch> L</"
15939 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15940 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15941 msgstr ""
15942
15943 # type: =item
15944 #: ../src/guestfs-availability.pod:31
15945 msgid "B<linuxfsuuid>"
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../src/guestfs-availability.pod:33
15950 msgid ""
15951 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15952 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15953 msgstr ""
15954
15955 # type: =item
15956 #: ../src/guestfs-availability.pod:40
15957 msgid "B<linuxmodules>"
15958 msgstr ""
15959
15960 # type: textblock
15961 #: ../src/guestfs-availability.pod:42
15962 msgid "The following functions: L</guestfs_modprobe>"
15963 msgstr ""
15964
15965 # type: =item
15966 #: ../src/guestfs-availability.pod:45
15967 msgid "B<linuxxattrs>"
15968 msgstr ""
15969
15970 # type: textblock
15971 #: ../src/guestfs-availability.pod:47
15972 msgid ""
15973 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15974 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15975 "guestfs_removexattr> L</guestfs_setxattr>"
15976 msgstr ""
15977
15978 # type: =item
15979 #: ../src/guestfs-availability.pod:56
15980 msgid "B<luks>"
15981 msgstr ""
15982
15983 # type: textblock
15984 #: ../src/guestfs-availability.pod:58
15985 msgid ""
15986 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15987 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15988 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15989 msgstr ""
15990
15991 # type: =item
15992 #: ../src/guestfs-availability.pod:67
15993 msgid "B<lvm2>"
15994 msgstr ""
15995
15996 # type: textblock
15997 #: ../src/guestfs-availability.pod:69
15998 msgid ""
15999 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16000 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16001 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16002 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16003 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16004 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16005 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16006 msgstr ""
16007
16008 # type: =item
16009 #: ../src/guestfs-availability.pod:92
16010 msgid "B<mknod>"
16011 msgstr ""
16012
16013 # type: textblock
16014 #: ../src/guestfs-availability.pod:94
16015 msgid ""
16016 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16017 "guestfs_mknod_b> L</guestfs_mknod_c>"
16018 msgstr ""
16019
16020 # type: =item
16021 #: ../src/guestfs-availability.pod:100
16022 msgid "B<ntfs3g>"
16023 msgstr ""
16024
16025 # type: textblock
16026 #: ../src/guestfs-availability.pod:102
16027 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16028 msgstr ""
16029
16030 # type: =item
16031 #: ../src/guestfs-availability.pod:105
16032 msgid "B<ntfsprogs>"
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../src/guestfs-availability.pod:107
16037 msgid ""
16038 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16039 msgstr ""
16040
16041 # type: =item
16042 #: ../src/guestfs-availability.pod:111
16043 msgid "B<realpath>"
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../src/guestfs-availability.pod:113
16048 msgid "The following functions: L</guestfs_realpath>"
16049 msgstr ""
16050
16051 # type: =item
16052 #: ../src/guestfs-availability.pod:116
16053 msgid "B<scrub>"
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../src/guestfs-availability.pod:118
16058 msgid ""
16059 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16060 "guestfs_scrub_freespace>"
16061 msgstr ""
16062
16063 # type: =item
16064 #: ../src/guestfs-availability.pod:123
16065 msgid "B<selinux>"
16066 msgstr ""
16067
16068 # type: textblock
16069 #: ../src/guestfs-availability.pod:125
16070 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16071 msgstr ""
16072
16073 # type: =item
16074 #: ../src/guestfs-availability.pod:129
16075 msgid "B<xz>"
16076 msgstr ""
16077
16078 # type: textblock
16079 #: ../src/guestfs-availability.pod:131
16080 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16081 msgstr ""
16082
16083 # type: =item
16084 #: ../src/guestfs-availability.pod:135
16085 msgid "B<zerofree>"
16086 msgstr ""
16087
16088 # type: textblock
16089 #: ../src/guestfs-availability.pod:137
16090 msgid "The following functions: L</guestfs_zerofree>"
16091 msgstr ""
16092
16093 # type: =head2
16094 #: ../src/guestfs-structs.pod:1
16095 msgid "guestfs_int_bool"
16096 msgstr ""
16097
16098 # type: verbatim
16099 #: ../src/guestfs-structs.pod:3
16100 #, no-wrap
16101 msgid ""
16102 " struct guestfs_int_bool {\n"
16103 "   int32_t i;\n"
16104 "   int32_t b;\n"
16105 " };\n"
16106 " \n"
16107 msgstr ""
16108
16109 # type: verbatim
16110 #: ../src/guestfs-structs.pod:8
16111 #, no-wrap
16112 msgid ""
16113 " struct guestfs_int_bool_list {\n"
16114 "   uint32_t len; /* Number of elements in list. */\n"
16115 "   struct guestfs_int_bool *val; /* Elements. */\n"
16116 " };\n"
16117 " \n"
16118 msgstr ""
16119
16120 # type: verbatim
16121 #: ../src/guestfs-structs.pod:13
16122 #, no-wrap
16123 msgid ""
16124 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16125 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16126 "\n"
16127 msgstr ""
16128
16129 # type: =head2
16130 #: ../src/guestfs-structs.pod:16
16131 msgid "guestfs_lvm_pv"
16132 msgstr ""
16133
16134 # type: verbatim
16135 #: ../src/guestfs-structs.pod:18
16136 #, no-wrap
16137 msgid ""
16138 " struct guestfs_lvm_pv {\n"
16139 "   char *pv_name;\n"
16140 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16141 "   char pv_uuid[32];\n"
16142 "   char *pv_fmt;\n"
16143 "   uint64_t pv_size;\n"
16144 "   uint64_t dev_size;\n"
16145 "   uint64_t pv_free;\n"
16146 "   uint64_t pv_used;\n"
16147 "   char *pv_attr;\n"
16148 "   int64_t pv_pe_count;\n"
16149 "   int64_t pv_pe_alloc_count;\n"
16150 "   char *pv_tags;\n"
16151 "   uint64_t pe_start;\n"
16152 "   int64_t pv_mda_count;\n"
16153 "   uint64_t pv_mda_free;\n"
16154 " };\n"
16155 " \n"
16156 msgstr ""
16157
16158 # type: verbatim
16159 #: ../src/guestfs-structs.pod:36
16160 #, no-wrap
16161 msgid ""
16162 " struct guestfs_lvm_pv_list {\n"
16163 "   uint32_t len; /* Number of elements in list. */\n"
16164 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16165 " };\n"
16166 " \n"
16167 msgstr ""
16168
16169 # type: verbatim
16170 #: ../src/guestfs-structs.pod:41
16171 #, no-wrap
16172 msgid ""
16173 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16174 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16175 "\n"
16176 msgstr ""
16177
16178 # type: =head2
16179 #: ../src/guestfs-structs.pod:44
16180 msgid "guestfs_lvm_vg"
16181 msgstr ""
16182
16183 # type: verbatim
16184 #: ../src/guestfs-structs.pod:46
16185 #, no-wrap
16186 msgid ""
16187 " struct guestfs_lvm_vg {\n"
16188 "   char *vg_name;\n"
16189 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16190 "   char vg_uuid[32];\n"
16191 "   char *vg_fmt;\n"
16192 "   char *vg_attr;\n"
16193 "   uint64_t vg_size;\n"
16194 "   uint64_t vg_free;\n"
16195 "   char *vg_sysid;\n"
16196 "   uint64_t vg_extent_size;\n"
16197 "   int64_t vg_extent_count;\n"
16198 "   int64_t vg_free_count;\n"
16199 "   int64_t max_lv;\n"
16200 "   int64_t max_pv;\n"
16201 "   int64_t pv_count;\n"
16202 "   int64_t lv_count;\n"
16203 "   int64_t snap_count;\n"
16204 "   int64_t vg_seqno;\n"
16205 "   char *vg_tags;\n"
16206 "   int64_t vg_mda_count;\n"
16207 "   uint64_t vg_mda_free;\n"
16208 " };\n"
16209 " \n"
16210 msgstr ""
16211
16212 # type: verbatim
16213 #: ../src/guestfs-structs.pod:69
16214 #, no-wrap
16215 msgid ""
16216 " struct guestfs_lvm_vg_list {\n"
16217 "   uint32_t len; /* Number of elements in list. */\n"
16218 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16219 " };\n"
16220 " \n"
16221 msgstr ""
16222
16223 # type: verbatim
16224 #: ../src/guestfs-structs.pod:74
16225 #, no-wrap
16226 msgid ""
16227 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16228 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16229 "\n"
16230 msgstr ""
16231
16232 # type: =head2
16233 #: ../src/guestfs-structs.pod:77
16234 msgid "guestfs_lvm_lv"
16235 msgstr ""
16236
16237 # type: verbatim
16238 #: ../src/guestfs-structs.pod:79
16239 #, no-wrap
16240 msgid ""
16241 " struct guestfs_lvm_lv {\n"
16242 "   char *lv_name;\n"
16243 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16244 "   char lv_uuid[32];\n"
16245 "   char *lv_attr;\n"
16246 "   int64_t lv_major;\n"
16247 "   int64_t lv_minor;\n"
16248 "   int64_t lv_kernel_major;\n"
16249 "   int64_t lv_kernel_minor;\n"
16250 "   uint64_t lv_size;\n"
16251 "   int64_t seg_count;\n"
16252 "   char *origin;\n"
16253 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16254 "   float snap_percent;\n"
16255 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16256 "   float copy_percent;\n"
16257 "   char *move_pv;\n"
16258 "   char *lv_tags;\n"
16259 "   char *mirror_log;\n"
16260 "   char *modules;\n"
16261 " };\n"
16262 " \n"
16263 msgstr ""
16264
16265 # type: verbatim
16266 #: ../src/guestfs-structs.pod:101
16267 #, no-wrap
16268 msgid ""
16269 " struct guestfs_lvm_lv_list {\n"
16270 "   uint32_t len; /* Number of elements in list. */\n"
16271 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16272 " };\n"
16273 " \n"
16274 msgstr ""
16275
16276 # type: verbatim
16277 #: ../src/guestfs-structs.pod:106
16278 #, no-wrap
16279 msgid ""
16280 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16281 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16282 "\n"
16283 msgstr ""
16284
16285 # type: verbatim
16286 #: ../src/guestfs-structs.pod:111
16287 #, no-wrap
16288 msgid ""
16289 " struct guestfs_stat {\n"
16290 "   int64_t dev;\n"
16291 "   int64_t ino;\n"
16292 "   int64_t mode;\n"
16293 "   int64_t nlink;\n"
16294 "   int64_t uid;\n"
16295 "   int64_t gid;\n"
16296 "   int64_t rdev;\n"
16297 "   int64_t size;\n"
16298 "   int64_t blksize;\n"
16299 "   int64_t blocks;\n"
16300 "   int64_t atime;\n"
16301 "   int64_t mtime;\n"
16302 "   int64_t ctime;\n"
16303 " };\n"
16304 " \n"
16305 msgstr ""
16306
16307 # type: verbatim
16308 #: ../src/guestfs-structs.pod:127
16309 #, no-wrap
16310 msgid ""
16311 " struct guestfs_stat_list {\n"
16312 "   uint32_t len; /* Number of elements in list. */\n"
16313 "   struct guestfs_stat *val; /* Elements. */\n"
16314 " };\n"
16315 " \n"
16316 msgstr ""
16317
16318 # type: verbatim
16319 #: ../src/guestfs-structs.pod:132
16320 #, no-wrap
16321 msgid ""
16322 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16323 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16324 "\n"
16325 msgstr ""
16326
16327 # type: verbatim
16328 #: ../src/guestfs-structs.pod:137
16329 #, no-wrap
16330 msgid ""
16331 " struct guestfs_statvfs {\n"
16332 "   int64_t bsize;\n"
16333 "   int64_t frsize;\n"
16334 "   int64_t blocks;\n"
16335 "   int64_t bfree;\n"
16336 "   int64_t bavail;\n"
16337 "   int64_t files;\n"
16338 "   int64_t ffree;\n"
16339 "   int64_t favail;\n"
16340 "   int64_t fsid;\n"
16341 "   int64_t flag;\n"
16342 "   int64_t namemax;\n"
16343 " };\n"
16344 " \n"
16345 msgstr ""
16346
16347 # type: verbatim
16348 #: ../src/guestfs-structs.pod:151
16349 #, no-wrap
16350 msgid ""
16351 " struct guestfs_statvfs_list {\n"
16352 "   uint32_t len; /* Number of elements in list. */\n"
16353 "   struct guestfs_statvfs *val; /* Elements. */\n"
16354 " };\n"
16355 " \n"
16356 msgstr ""
16357
16358 # type: verbatim
16359 #: ../src/guestfs-structs.pod:156
16360 #, no-wrap
16361 msgid ""
16362 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16363 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16364 "\n"
16365 msgstr ""
16366
16367 # type: =head2
16368 #: ../src/guestfs-structs.pod:159
16369 msgid "guestfs_dirent"
16370 msgstr ""
16371
16372 # type: verbatim
16373 #: ../src/guestfs-structs.pod:161
16374 #, no-wrap
16375 msgid ""
16376 " struct guestfs_dirent {\n"
16377 "   int64_t ino;\n"
16378 "   char ftyp;\n"
16379 "   char *name;\n"
16380 " };\n"
16381 " \n"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #: ../src/guestfs-structs.pod:167
16386 #, no-wrap
16387 msgid ""
16388 " struct guestfs_dirent_list {\n"
16389 "   uint32_t len; /* Number of elements in list. */\n"
16390 "   struct guestfs_dirent *val; /* Elements. */\n"
16391 " };\n"
16392 " \n"
16393 msgstr ""
16394
16395 # type: verbatim
16396 #: ../src/guestfs-structs.pod:172
16397 #, no-wrap
16398 msgid ""
16399 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16400 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16401 "\n"
16402 msgstr ""
16403
16404 # type: verbatim
16405 #: ../src/guestfs-structs.pod:177
16406 #, no-wrap
16407 msgid ""
16408 " struct guestfs_version {\n"
16409 "   int64_t major;\n"
16410 "   int64_t minor;\n"
16411 "   int64_t release;\n"
16412 "   char *extra;\n"
16413 " };\n"
16414 " \n"
16415 msgstr ""
16416
16417 # type: verbatim
16418 #: ../src/guestfs-structs.pod:184
16419 #, no-wrap
16420 msgid ""
16421 " struct guestfs_version_list {\n"
16422 "   uint32_t len; /* Number of elements in list. */\n"
16423 "   struct guestfs_version *val; /* Elements. */\n"
16424 " };\n"
16425 " \n"
16426 msgstr ""
16427
16428 # type: verbatim
16429 #: ../src/guestfs-structs.pod:189
16430 #, no-wrap
16431 msgid ""
16432 " void guestfs_free_version (struct guestfs_free_version *);\n"
16433 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16434 "\n"
16435 msgstr ""
16436
16437 # type: =head2
16438 #: ../src/guestfs-structs.pod:192
16439 msgid "guestfs_xattr"
16440 msgstr ""
16441
16442 # type: verbatim
16443 #: ../src/guestfs-structs.pod:194
16444 #, no-wrap
16445 msgid ""
16446 " struct guestfs_xattr {\n"
16447 "   char *attrname;\n"
16448 "   /* The next two fields describe a byte array. */\n"
16449 "   uint32_t attrval_len;\n"
16450 "   char *attrval;\n"
16451 " };\n"
16452 " \n"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #: ../src/guestfs-structs.pod:201
16457 #, no-wrap
16458 msgid ""
16459 " struct guestfs_xattr_list {\n"
16460 "   uint32_t len; /* Number of elements in list. */\n"
16461 "   struct guestfs_xattr *val; /* Elements. */\n"
16462 " };\n"
16463 " \n"
16464 msgstr ""
16465
16466 # type: verbatim
16467 #: ../src/guestfs-structs.pod:206
16468 #, no-wrap
16469 msgid ""
16470 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16471 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16472 "\n"
16473 msgstr ""
16474
16475 # type: =head2
16476 #: ../src/guestfs-structs.pod:209
16477 msgid "guestfs_inotify_event"
16478 msgstr ""
16479
16480 # type: verbatim
16481 #: ../src/guestfs-structs.pod:211
16482 #, no-wrap
16483 msgid ""
16484 " struct guestfs_inotify_event {\n"
16485 "   int64_t in_wd;\n"
16486 "   uint32_t in_mask;\n"
16487 "   uint32_t in_cookie;\n"
16488 "   char *in_name;\n"
16489 " };\n"
16490 " \n"
16491 msgstr ""
16492
16493 # type: verbatim
16494 #: ../src/guestfs-structs.pod:218
16495 #, no-wrap
16496 msgid ""
16497 " struct guestfs_inotify_event_list {\n"
16498 "   uint32_t len; /* Number of elements in list. */\n"
16499 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16500 " };\n"
16501 " \n"
16502 msgstr ""
16503
16504 # type: verbatim
16505 #: ../src/guestfs-structs.pod:223
16506 #, no-wrap
16507 msgid ""
16508 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16509 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16510 "\n"
16511 msgstr ""
16512
16513 # type: =head2
16514 #: ../src/guestfs-structs.pod:226
16515 msgid "guestfs_partition"
16516 msgstr ""
16517
16518 # type: verbatim
16519 #: ../src/guestfs-structs.pod:228
16520 #, no-wrap
16521 msgid ""
16522 " struct guestfs_partition {\n"
16523 "   int32_t part_num;\n"
16524 "   uint64_t part_start;\n"
16525 "   uint64_t part_end;\n"
16526 "   uint64_t part_size;\n"
16527 " };\n"
16528 " \n"
16529 msgstr ""
16530
16531 # type: verbatim
16532 #: ../src/guestfs-structs.pod:235
16533 #, no-wrap
16534 msgid ""
16535 " struct guestfs_partition_list {\n"
16536 "   uint32_t len; /* Number of elements in list. */\n"
16537 "   struct guestfs_partition *val; /* Elements. */\n"
16538 " };\n"
16539 " \n"
16540 msgstr ""
16541
16542 # type: verbatim
16543 #: ../src/guestfs-structs.pod:240
16544 #, no-wrap
16545 msgid ""
16546 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16547 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16548 "\n"
16549 msgstr ""
16550
16551 # type: textblock
16552 #: ../fish/guestfish.pod:5
16553 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16554 msgstr ""
16555
16556 # type: verbatim
16557 #: ../fish/guestfish.pod:9
16558 #, no-wrap
16559 msgid ""
16560 " guestfish [--options] [commands]\n"
16561 "\n"
16562 msgstr ""
16563
16564 # type: verbatim
16565 #: ../fish/guestfish.pod:11
16566 #, no-wrap
16567 msgid ""
16568 " guestfish\n"
16569 "\n"
16570 msgstr ""
16571
16572 # type: verbatim
16573 #: ../fish/guestfish.pod:13
16574 #, no-wrap
16575 msgid ""
16576 " guestfish [--ro|--rw] -a disk.img\n"
16577 "\n"
16578 msgstr ""
16579
16580 # type: verbatim
16581 #: ../fish/guestfish.pod:15
16582 #, no-wrap
16583 msgid ""
16584 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16585 "\n"
16586 msgstr ""
16587
16588 # type: verbatim
16589 #: ../fish/guestfish.pod:17
16590 #, no-wrap
16591 msgid ""
16592 " guestfish -d libvirt-domain\n"
16593 "\n"
16594 msgstr ""
16595
16596 # type: verbatim
16597 #: ../fish/guestfish.pod:19
16598 #, no-wrap
16599 msgid ""
16600 " guestfish [--ro|--rw] -a disk.img -i\n"
16601 "\n"
16602 msgstr ""
16603
16604 # type: verbatim
16605 #: ../fish/guestfish.pod:21
16606 #, no-wrap
16607 msgid ""
16608 " guestfish -d libvirt-domain -i\n"
16609 "\n"
16610 msgstr ""
16611
16612 # type: =head1
16613 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16614 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16615 #: ../tools/virt-rescue.pl:41
16616 msgid "WARNING"
16617 msgstr ""
16618
16619 # type: textblock
16620 #: ../fish/guestfish.pod:25
16621 msgid ""
16622 "Using guestfish in read/write mode on live virtual machines can be "
16623 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16624 "option to use guestfish safely if the disk image or virtual machine might be "
16625 "live."
16626 msgstr ""
16627
16628 # type: textblock
16629 #: ../fish/guestfish.pod:32
16630 msgid ""
16631 "Guestfish is a shell and command-line tool for examining and modifying "
16632 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16633 "functionality of the guestfs API, see L<guestfs(3)>."
16634 msgstr ""
16635
16636 # type: textblock
16637 #: ../fish/guestfish.pod:36
16638 msgid ""
16639 "Guestfish gives you structured access to the libguestfs API, from shell "
16640 "scripts or the command line or interactively.  If you want to rescue a "
16641 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16642 "command."
16643 msgstr ""
16644
16645 # type: =head1
16646 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16647 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16648 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16649 msgid "EXAMPLES"
16650 msgstr ""
16651
16652 # type: =head2
16653 #: ../fish/guestfish.pod:43
16654 msgid "As an interactive shell"
16655 msgstr ""
16656
16657 # type: verbatim
16658 #: ../fish/guestfish.pod:45
16659 #, no-wrap
16660 msgid ""
16661 " $ guestfish\n"
16662 " \n"
16663 msgstr ""
16664
16665 # type: verbatim
16666 #: ../fish/guestfish.pod:47
16667 #, no-wrap
16668 msgid ""
16669 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16670 " editing virtual machine filesystems.\n"
16671 " \n"
16672 msgstr ""
16673
16674 # type: verbatim
16675 #: ../fish/guestfish.pod:50
16676 #, no-wrap
16677 msgid ""
16678 " Type: 'help' for a list of commands\n"
16679 "       'man' to read the manual\n"
16680 "       'quit' to quit the shell\n"
16681 " \n"
16682 msgstr ""
16683
16684 # type: verbatim
16685 #: ../fish/guestfish.pod:54
16686 #, no-wrap
16687 msgid ""
16688 " ><fs> add-ro disk.img\n"
16689 " ><fs> run\n"
16690 " ><fs> list-filesystems\n"
16691 " /dev/sda1: ext4\n"
16692 " /dev/vg_guest/lv_root: ext4\n"
16693 " /dev/vg_guest/lv_swap: swap\n"
16694 " ><fs> mount /dev/vg_guest/lv_root /\n"
16695 " ><fs> cat /etc/fstab\n"
16696 " # /etc/fstab\n"
16697 " # Created by anaconda\n"
16698 " [...]\n"
16699 " ><fs> exit\n"
16700 "\n"
16701 msgstr ""
16702
16703 # type: =head2
16704 #: ../fish/guestfish.pod:67
16705 msgid "From shell scripts"
16706 msgstr ""
16707
16708 # type: textblock
16709 #: ../fish/guestfish.pod:69
16710 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16711 msgstr ""
16712
16713 # type: verbatim
16714 #: ../fish/guestfish.pod:71
16715 #, no-wrap
16716 msgid ""
16717 " guestfish <<_EOF_\n"
16718 " add disk.img\n"
16719 " run\n"
16720 " mount /dev/vg_guest/lv_root /\n"
16721 " write /etc/motd \"Welcome, new users\"\n"
16722 " _EOF_\n"
16723 "\n"
16724 msgstr ""
16725
16726 # type: textblock
16727 #: ../fish/guestfish.pod:78
16728 msgid "List the LVM logical volumes in a disk image:"
16729 msgstr ""
16730
16731 # type: verbatim
16732 #: ../fish/guestfish.pod:80
16733 #, no-wrap
16734 msgid ""
16735 " guestfish -a disk.img --ro <<_EOF_\n"
16736 " run\n"
16737 " lvs\n"
16738 " _EOF_\n"
16739 "\n"
16740 msgstr ""
16741
16742 # type: textblock
16743 #: ../fish/guestfish.pod:85
16744 msgid "List all the filesystems in a disk image:"
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../fish/guestfish.pod:87
16749 #, no-wrap
16750 msgid ""
16751 " guestfish -a disk.img --ro <<_EOF_\n"
16752 " run\n"
16753 " list-filesystems\n"
16754 " _EOF_\n"
16755 "\n"
16756 msgstr ""
16757
16758 # type: =head2
16759 #: ../fish/guestfish.pod:92
16760 msgid "On one command line"
16761 msgstr ""
16762
16763 # type: textblock
16764 #: ../fish/guestfish.pod:94
16765 msgid "Update C</etc/resolv.conf> in a guest:"
16766 msgstr ""
16767
16768 # type: verbatim
16769 #: ../fish/guestfish.pod:96
16770 #, no-wrap
16771 msgid ""
16772 " guestfish \\\n"
16773 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16774 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16775 "\n"
16776 msgstr ""
16777
16778 # type: textblock
16779 #: ../fish/guestfish.pod:100
16780 msgid "Edit C</boot/grub/grub.conf> interactively:"
16781 msgstr ""
16782
16783 # type: verbatim
16784 #: ../fish/guestfish.pod:102
16785 #, no-wrap
16786 msgid ""
16787 " guestfish --rw --add disk.img \\\n"
16788 "   --mount /dev/vg_guest/lv_root \\\n"
16789 "   --mount /dev/sda1:/boot \\\n"
16790 "   edit /boot/grub/grub.conf\n"
16791 "\n"
16792 msgstr ""
16793
16794 # type: =head2
16795 #: ../fish/guestfish.pod:107
16796 msgid "Mount disks automatically"
16797 msgstr ""
16798
16799 # type: textblock
16800 #: ../fish/guestfish.pod:109
16801 msgid ""
16802 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16803 msgstr ""
16804
16805 # type: verbatim
16806 #: ../fish/guestfish.pod:112
16807 #, no-wrap
16808 msgid ""
16809 " guestfish --ro -a disk.img -i cat /etc/group\n"
16810 "\n"
16811 msgstr ""
16812
16813 # type: verbatim
16814 #: ../fish/guestfish.pod:114
16815 #, no-wrap
16816 msgid ""
16817 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16818 "\n"
16819 msgstr ""
16820
16821 # type: textblock
16822 #: ../fish/guestfish.pod:116
16823 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16824 msgstr ""
16825
16826 # type: verbatim
16827 #: ../fish/guestfish.pod:118
16828 #, no-wrap
16829 msgid ""
16830 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16831 "\n"
16832 msgstr ""
16833
16834 # type: =head2
16835 #: ../fish/guestfish.pod:120
16836 msgid "As a script interpreter"
16837 msgstr ""
16838
16839 # type: textblock
16840 #: ../fish/guestfish.pod:122
16841 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16842 msgstr ""
16843
16844 # type: verbatim
16845 #: ../fish/guestfish.pod:124
16846 #, no-wrap
16847 msgid ""
16848 " #!/usr/bin/guestfish -f\n"
16849 " sparse test1.img 100M\n"
16850 " run\n"
16851 " part-disk /dev/sda mbr\n"
16852 " mkfs ext2 /dev/sda1\n"
16853 "\n"
16854 msgstr ""
16855
16856 # type: =head2
16857 #: ../fish/guestfish.pod:130
16858 msgid "Start with a prepared disk"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:132
16863 msgid ""
16864 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16865 "single ext2-formatted partition:"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #: ../fish/guestfish.pod:135
16870 #, no-wrap
16871 msgid ""
16872 " guestfish -N fs\n"
16873 "\n"
16874 msgstr ""
16875
16876 # type: textblock
16877 #: ../fish/guestfish.pod:137
16878 msgid "To list what is available do:"
16879 msgstr ""
16880
16881 # type: verbatim
16882 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16883 #, no-wrap
16884 msgid ""
16885 " guestfish -N help | less\n"
16886 "\n"
16887 msgstr ""
16888
16889 # type: =head2
16890 #: ../fish/guestfish.pod:141
16891 msgid "Remote control"
16892 msgstr ""
16893
16894 # type: verbatim
16895 #: ../fish/guestfish.pod:143
16896 #, no-wrap
16897 msgid ""
16898 " eval \"`guestfish --listen`\"\n"
16899 " guestfish --remote add-ro disk.img\n"
16900 " guestfish --remote run\n"
16901 " guestfish --remote lvs\n"
16902 "\n"
16903 msgstr ""
16904
16905 # type: =head1
16906 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16907 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16908 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16909 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16910 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98
16911 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
16912 #: ../tools/virt-list-partitions.pl:51
16913 msgid "OPTIONS"
16914 msgstr ""
16915
16916 # type: =item
16917 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
16918 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16919 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16920 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16921 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
16922 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16923 msgid "B<--help>"
16924 msgstr ""
16925
16926 # type: textblock
16927 #: ../fish/guestfish.pod:154
16928 msgid "Displays general help on options."
16929 msgstr ""
16930
16931 # type: =item
16932 #: ../fish/guestfish.pod:156
16933 msgid "B<-h> | B<--cmd-help>"
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish.pod:158
16938 msgid "Lists all available guestfish commands."
16939 msgstr ""
16940
16941 # type: =item
16942 #: ../fish/guestfish.pod:160
16943 msgid "B<-h cmd> | B<--cmd-help cmd>"
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish.pod:162
16948 msgid "Displays detailed help on a single command C<cmd>."
16949 msgstr ""
16950
16951 # type: =item
16952 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16953 msgid "B<-a image> | B<--add image>"
16954 msgstr ""
16955
16956 # type: textblock
16957 #: ../fish/guestfish.pod:166
16958 msgid "Add a block device or virtual machine image to the shell."
16959 msgstr ""
16960
16961 # type: textblock
16962 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16963 msgid ""
16964 "The format of the disk image is auto-detected.  To override this and force a "
16965 "particular format use the I<--format=..> option."
16966 msgstr ""
16967
16968 # type: =item
16969 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16970 msgid "B<-c URI> | B<--connect URI>"
16971 msgstr ""
16972
16973 # type: textblock
16974 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16975 msgid ""
16976 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16977 "URI to use.  The default is to use the default libvirt connection."
16978 msgstr ""
16979
16980 # type: =item
16981 #: ../fish/guestfish.pod:177
16982 msgid "B<--csh>"
16983 msgstr ""
16984
16985 # type: textblock
16986 #: ../fish/guestfish.pod:179
16987 msgid ""
16988 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16989 "section L</REMOTE CONTROL AND CSH> below."
16990 msgstr ""
16991
16992 # type: =item
16993 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16994 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16999 msgid ""
17000 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17001 "used, then any libvirt domain can be used.  However in write mode, only "
17002 "libvirt domains which are shut down can be named here."
17003 msgstr ""
17004
17005 # type: =item
17006 #: ../fish/guestfish.pod:188
17007 msgid "B<-D> | B<--no-dest-paths>"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:190
17012 msgid ""
17013 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17014 "to hit the tab key to complete paths on the guest filesystem, but this "
17015 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17016 "allow this feature to be disabled."
17017 msgstr ""
17018
17019 # type: =item
17020 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17021 msgid "B<--echo-keys>"
17022 msgstr ""
17023
17024 # type: textblock
17025 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17026 msgid ""
17027 "When prompting for keys and passphrases, guestfish normally turns echoing "
17028 "off so you cannot see what you are typing.  If you are not worried about "
17029 "Tempest attacks and there is no one else in the room you can specify this "
17030 "flag to see what you are typing."
17031 msgstr ""
17032
17033 # type: =item
17034 #: ../fish/guestfish.pod:202
17035 msgid "B<-f file> | B<--file file>"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:204
17040 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17041 msgstr ""
17042
17043 # type: verbatim
17044 #: ../fish/guestfish.pod:207
17045 #, no-wrap
17046 msgid ""
17047 " #!/usr/bin/guestfish -f\n"
17048 "\n"
17049 msgstr ""
17050
17051 # type: =item
17052 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17053 msgid "B<--format=raw|qcow2|..> | B<--format>"
17054 msgstr ""
17055
17056 # type: textblock
17057 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17058 msgid ""
17059 "The default for the I<-a> option is to auto-detect the format of the disk "
17060 "image.  Using this forces the disk format for I<-a> options which follow on "
17061 "the command line.  Using I<--format> with no argument switches back to auto-"
17062 "detection for subsequent I<-a> options."
17063 msgstr ""
17064
17065 # type: textblock
17066 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
17067 #: ../inspector/virt-inspector.pl:515
17068 msgid "For example:"
17069 msgstr ""
17070
17071 # type: verbatim
17072 #: ../fish/guestfish.pod:218
17073 #, no-wrap
17074 msgid ""
17075 " guestfish --format=raw -a disk.img\n"
17076 "\n"
17077 msgstr ""
17078
17079 # type: textblock
17080 #: ../fish/guestfish.pod:220
17081 msgid "forces raw format (no auto-detection) for C<disk.img>."
17082 msgstr ""
17083
17084 # type: verbatim
17085 #: ../fish/guestfish.pod:222
17086 #, no-wrap
17087 msgid ""
17088 " guestfish --format=raw -a disk.img --format -a another.img\n"
17089 "\n"
17090 msgstr ""
17091
17092 # type: textblock
17093 #: ../fish/guestfish.pod:224
17094 msgid ""
17095 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17096 "detection for C<another.img>."
17097 msgstr ""
17098
17099 # type: textblock
17100 #: ../fish/guestfish.pod:227
17101 msgid ""
17102 "If you have untrusted raw-format guest disk images, you should use this "
17103 "option to specify the disk format.  This avoids a possible security problem "
17104 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17105 msgstr ""
17106
17107 # type: =item
17108 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17109 msgid "B<-i> | B<--inspector>"
17110 msgstr ""
17111
17112 # type: textblock
17113 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17114 msgid ""
17115 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17116 "system and mount filesystems as they would be mounted on the real virtual "
17117 "machine."
17118 msgstr ""
17119
17120 # type: textblock
17121 #: ../fish/guestfish.pod:238
17122 msgid "Typical usage is either:"
17123 msgstr ""
17124
17125 # type: verbatim
17126 #: ../fish/guestfish.pod:240
17127 #, no-wrap
17128 msgid ""
17129 " guestfish -d myguest -i\n"
17130 "\n"
17131 msgstr ""
17132
17133 # type: textblock
17134 #: ../fish/guestfish.pod:242
17135 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17136 msgstr ""
17137
17138 # type: verbatim
17139 #: ../fish/guestfish.pod:244
17140 #, no-wrap
17141 msgid ""
17142 " guestfish --ro -d myguest -i\n"
17143 "\n"
17144 msgstr ""
17145
17146 # type: textblock
17147 #: ../fish/guestfish.pod:246
17148 msgid "(for active domains, readonly), or specify the block device directly:"
17149 msgstr ""
17150
17151 # type: verbatim
17152 #: ../fish/guestfish.pod:248
17153 #, no-wrap
17154 msgid ""
17155 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17156 "\n"
17157 msgstr ""
17158
17159 # type: textblock
17160 #: ../fish/guestfish.pod:250
17161 msgid ""
17162 "Note that the command line syntax changed slightly over older versions of "
17163 "guestfish.  You can still use the old syntax:"
17164 msgstr ""
17165
17166 # type: verbatim
17167 #: ../fish/guestfish.pod:253
17168 #, no-wrap
17169 msgid ""
17170 " guestfish [--ro] -i disk.img\n"
17171 "\n"
17172 msgstr ""
17173
17174 # type: verbatim
17175 #: ../fish/guestfish.pod:255
17176 #, no-wrap
17177 msgid ""
17178 " guestfish [--ro] -i libvirt-domain\n"
17179 "\n"
17180 msgstr ""
17181
17182 # type: =item
17183 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17184 msgid "B<--keys-from-stdin>"
17185 msgstr ""
17186
17187 # type: textblock
17188 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17189 msgid ""
17190 "Read key or passphrase parameters from stdin.  The default is to try to read "
17191 "passphrases from the user by opening C</dev/tty>."
17192 msgstr ""
17193
17194 # type: =item
17195 #: ../fish/guestfish.pod:262
17196 msgid "B<--listen>"
17197 msgstr ""
17198
17199 # type: textblock
17200 #: ../fish/guestfish.pod:264
17201 msgid ""
17202 "Fork into the background and listen for remote commands.  See section L</"
17203 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17204 msgstr ""
17205
17206 # type: =item
17207 #: ../fish/guestfish.pod:267
17208 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:269
17213 msgid "Mount the named partition or logical volume on the given mountpoint."
17214 msgstr ""
17215
17216 # type: textblock
17217 #: ../fish/guestfish.pod:271
17218 msgid "If the mountpoint is omitted, it defaults to C</>."
17219 msgstr ""
17220
17221 # type: textblock
17222 #: ../fish/guestfish.pod:273
17223 msgid "You have to mount something on C</> before most commands will work."
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish.pod:275
17228 msgid ""
17229 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17230 "launched."
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:278
17235 msgid ""
17236 "If you don't know what filesystems a disk image contains, you can either run "
17237 "guestfish without this option, then list the partitions and LVs available "
17238 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
17239 "list-filesystems(1)> program."
17240 msgstr ""
17241
17242 # type: =item
17243 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17244 msgid "B<-n> | B<--no-sync>"
17245 msgstr ""
17246
17247 # type: textblock
17248 #: ../fish/guestfish.pod:285
17249 msgid ""
17250 "Disable autosync.  This is enabled by default.  See the discussion of "
17251 "autosync in the L<guestfs(3)> manpage."
17252 msgstr ""
17253
17254 # type: =item
17255 #: ../fish/guestfish.pod:288
17256 msgid "B<-N type> | B<--new type> | B<-N help>"
17257 msgstr ""
17258
17259 # type: textblock
17260 #: ../fish/guestfish.pod:290
17261 msgid ""
17262 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17263 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17264 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17265 "IMAGES> below."
17266 msgstr ""
17267
17268 # type: =item
17269 #: ../fish/guestfish.pod:295
17270 msgid "B<--progress-bars>"
17271 msgstr ""
17272
17273 # type: textblock
17274 #: ../fish/guestfish.pod:297
17275 msgid "Enable progress bars, even when guestfish is used non-interactively."
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:299
17280 msgid ""
17281 "Progress bars are enabled by default when guestfish is used as an "
17282 "interactive shell."
17283 msgstr ""
17284
17285 # type: =item
17286 #: ../fish/guestfish.pod:302
17287 msgid "B<--no-progress-bars>"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:304
17292 msgid "Disable progress bars."
17293 msgstr ""
17294
17295 # type: =item
17296 #: ../fish/guestfish.pod:306
17297 msgid "B<--remote[=pid]>"
17298 msgstr ""
17299
17300 # type: textblock
17301 #: ../fish/guestfish.pod:308
17302 msgid ""
17303 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17304 "CONTROL GUESTFISH OVER A SOCKET> below."
17305 msgstr ""
17306
17307 # type: =item
17308 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17309 msgid "B<-r> | B<--ro>"
17310 msgstr ""
17311
17312 # type: textblock
17313 #: ../fish/guestfish.pod:313
17314 msgid ""
17315 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17316 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17321 msgid ""
17322 "The option must always be used if the disk image or virtual machine might be "
17323 "running, and is generally recommended in cases where you don't need write "
17324 "access to the disk."
17325 msgstr ""
17326
17327 # type: textblock
17328 #: ../fish/guestfish.pod:320
17329 msgid ""
17330 "Note that prepared disk images created with I<-N> are not affected by the "
17331 "I<--ro> option."
17332 msgstr ""
17333
17334 # type: textblock
17335 #: ../fish/guestfish.pod:323
17336 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17337 msgstr ""
17338
17339 # type: =item
17340 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17341 #: ../tools/virt-rescue.pl:195
17342 msgid "B<--selinux>"
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:327
17347 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17348 msgstr ""
17349
17350 # type: =item
17351 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17352 msgid "B<-v> | B<--verbose>"
17353 msgstr ""
17354
17355 # type: textblock
17356 #: ../fish/guestfish.pod:331
17357 msgid ""
17358 "Enable very verbose messages.  This is particularly useful if you find a bug."
17359 msgstr ""
17360
17361 # type: =item
17362 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17363 msgid "B<-V> | B<--version>"
17364 msgstr ""
17365
17366 # type: textblock
17367 #: ../fish/guestfish.pod:336
17368 msgid "Display the guestfish / libguestfs version number and exit."
17369 msgstr ""
17370
17371 # type: =item
17372 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17373 msgid "B<-w> | B<--rw>"
17374 msgstr ""
17375
17376 # type: textblock
17377 #: ../fish/guestfish.pod:340
17378 msgid ""
17379 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17380 "WRITE> below."
17381 msgstr ""
17382
17383 # type: =item
17384 #: ../fish/guestfish.pod:343
17385 msgid "B<-x>"
17386 msgstr ""
17387
17388 # type: textblock
17389 #: ../fish/guestfish.pod:345
17390 msgid "Echo each command before executing it."
17391 msgstr ""
17392
17393 # type: =head1
17394 #: ../fish/guestfish.pod:349
17395 msgid "COMMANDS ON COMMAND LINE"
17396 msgstr ""
17397
17398 # type: textblock
17399 #: ../fish/guestfish.pod:351
17400 msgid ""
17401 "Any additional (non-option) arguments are treated as commands to execute."
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish.pod:354
17406 msgid ""
17407 "Commands to execute should be separated by a colon (C<:>), where the colon "
17408 "is a separate parameter.  Thus:"
17409 msgstr ""
17410
17411 # type: verbatim
17412 #: ../fish/guestfish.pod:357
17413 #, no-wrap
17414 msgid ""
17415 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17416 "\n"
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:359
17421 msgid ""
17422 "If there are no additional arguments, then we enter a shell, either an "
17423 "interactive shell with a prompt (if the input is a terminal) or a non-"
17424 "interactive shell."
17425 msgstr ""
17426
17427 # type: textblock
17428 #: ../fish/guestfish.pod:363
17429 msgid ""
17430 "In either command line mode or non-interactive shell, the first command that "
17431 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17432 "prompt) if a command fails, you can continue to enter commands."
17433 msgstr ""
17434
17435 # type: =head1
17436 #: ../fish/guestfish.pod:368
17437 msgid "USING launch (OR run)"
17438 msgstr ""
17439
17440 # type: textblock
17441 #: ../fish/guestfish.pod:370
17442 msgid ""
17443 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17444 "then launch it, then mount any disks you need, and finally issue actions/"
17445 "commands.  So the general order of the day is:"
17446 msgstr ""
17447
17448 # type: textblock
17449 #: ../fish/guestfish.pod:378
17450 msgid "add or -a/--add"
17451 msgstr ""
17452
17453 # type: textblock
17454 #: ../fish/guestfish.pod:382
17455 msgid "launch (aka run)"
17456 msgstr ""
17457
17458 # type: textblock
17459 #: ../fish/guestfish.pod:386
17460 msgid "mount or -m/--mount"
17461 msgstr ""
17462
17463 # type: textblock
17464 #: ../fish/guestfish.pod:390
17465 msgid "any other commands"
17466 msgstr ""
17467
17468 # type: textblock
17469 #: ../fish/guestfish.pod:394
17470 msgid ""
17471 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17472 "guest before mounting or performing any other commands."
17473 msgstr ""
17474
17475 # type: textblock
17476 #: ../fish/guestfish.pod:397
17477 msgid ""
17478 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17479 "I<--new> options were given then C<run> is done automatically, simply "
17480 "because guestfish can't perform the action you asked for without doing this."
17481 msgstr ""
17482
17483 # type: =head1
17484 #: ../fish/guestfish.pod:402
17485 msgid "OPENING DISKS FOR READ AND WRITE"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish.pod:404
17490 msgid ""
17491 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17492 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17493 "open disk images read-only or for writing."
17494 msgstr ""
17495
17496 # type: textblock
17497 #: ../fish/guestfish.pod:408
17498 msgid ""
17499 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17500 "disk images supplied on the command line for write.  To open a disk image "
17501 "read-only you have to do I<-a image --ro>."
17502 msgstr ""
17503
17504 # type: textblock
17505 #: ../fish/guestfish.pod:412
17506 msgid ""
17507 "This matters: If you accidentally open a live VM disk image writable then "
17508 "you will cause irreversible disk corruption."
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish.pod:415
17513 msgid ""
17514 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17515 "images will be opened read-only.  You will have to either specify "
17516 "I<guestfish --rw> or change a configuration file in order to get write "
17517 "access for disk images specified by those other command line options."
17518 msgstr ""
17519
17520 # type: textblock
17521 #: ../fish/guestfish.pod:420
17522 msgid ""
17523 "This version of guestfish has a I<--rw> option which does nothing (it is "
17524 "already the default).  However it is highly recommended that you use this "
17525 "option to indicate that guestfish needs write access, and to prepare your "
17526 "scripts for the day when this option will be required for write access."
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish.pod:426
17531 msgid ""
17532 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17533 "other libguestfs program apart from guestfish and guestmount."
17534 msgstr ""
17535
17536 # type: =head1
17537 #: ../fish/guestfish.pod:429
17538 msgid "QUOTING"
17539 msgstr ""
17540
17541 # type: textblock
17542 #: ../fish/guestfish.pod:431
17543 msgid ""
17544 "You can quote ordinary parameters using either single or double quotes.  For "
17545 "example:"
17546 msgstr ""
17547
17548 # type: verbatim
17549 #: ../fish/guestfish.pod:434
17550 #, no-wrap
17551 msgid ""
17552 " add \"file with a space.img\"\n"
17553 "\n"
17554 msgstr ""
17555
17556 # type: verbatim
17557 #: ../fish/guestfish.pod:436
17558 #, no-wrap
17559 msgid ""
17560 " rm '/file name'\n"
17561 "\n"
17562 msgstr ""
17563
17564 # type: verbatim
17565 #: ../fish/guestfish.pod:438
17566 #, no-wrap
17567 msgid ""
17568 " rm '/\"'\n"
17569 "\n"
17570 msgstr ""
17571
17572 # type: textblock
17573 #: ../fish/guestfish.pod:440
17574 msgid ""
17575 "A few commands require a list of strings to be passed.  For these, use a "
17576 "whitespace-separated list, enclosed in quotes.  Strings containing "
17577 "whitespace to be passed through must be enclosed in single quotes.  A "
17578 "literal single quote must be escaped with a backslash."
17579 msgstr ""
17580
17581 # type: verbatim
17582 #: ../fish/guestfish.pod:445
17583 #, no-wrap
17584 msgid ""
17585 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17586 " command \"/bin/echo 'foo      bar'\"\n"
17587 " command \"/bin/echo \\'foo\\'\"\n"
17588 "\n"
17589 msgstr ""
17590
17591 # type: =head1
17592 #: ../fish/guestfish.pod:449
17593 msgid "OPTIONAL ARGUMENTS"
17594 msgstr ""
17595
17596 # type: textblock
17597 #: ../fish/guestfish.pod:451
17598 msgid ""
17599 "Some commands take optional arguments.  These arguments appear in this "
17600 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17601 msgstr ""
17602
17603 # type: verbatim
17604 #: ../fish/guestfish.pod:455
17605 #, no-wrap
17606 msgid ""
17607 " add-drive-opts filename\n"
17608 "\n"
17609 msgstr ""
17610
17611 # type: verbatim
17612 #: ../fish/guestfish.pod:457
17613 #, no-wrap
17614 msgid ""
17615 " add-drive-opts filename readonly:true\n"
17616 "\n"
17617 msgstr ""
17618
17619 # type: verbatim
17620 #: ../fish/guestfish.pod:459
17621 #, no-wrap
17622 msgid ""
17623 " add-drive-opts filename format:qcow2 readonly:false\n"
17624 "\n"
17625 msgstr ""
17626
17627 # type: textblock
17628 #: ../fish/guestfish.pod:461
17629 msgid ""
17630 "Each optional argument can appear at most once.  All optional arguments must "
17631 "appear after the required ones."
17632 msgstr ""
17633
17634 # type: =head1
17635 #: ../fish/guestfish.pod:464
17636 msgid "NUMBERS"
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:466
17641 msgid ""
17642 "This section applies to all commands which can take integers as parameters."
17643 msgstr ""
17644
17645 # type: =head2
17646 #: ../fish/guestfish.pod:469
17647 msgid "SIZE SUFFIX"
17648 msgstr ""
17649
17650 # type: textblock
17651 #: ../fish/guestfish.pod:471
17652 msgid ""
17653 "When the command takes a parameter measured in bytes, you can use one of the "
17654 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17655 msgstr ""
17656
17657 # type: =item
17658 #: ../fish/guestfish.pod:477
17659 msgid "B<k> or B<K> or B<KiB>"
17660 msgstr ""
17661
17662 # type: textblock
17663 #: ../fish/guestfish.pod:479
17664 msgid "The size in kilobytes (multiplied by 1024)."
17665 msgstr ""
17666
17667 # type: =item
17668 #: ../fish/guestfish.pod:481
17669 msgid "B<KB>"
17670 msgstr ""
17671
17672 # type: textblock
17673 #: ../fish/guestfish.pod:483
17674 msgid "The size in SI 1000 byte units."
17675 msgstr ""
17676
17677 # type: =item
17678 #: ../fish/guestfish.pod:485
17679 msgid "B<M> or B<MiB>"
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:487
17684 msgid "The size in megabytes (multiplied by 1048576)."
17685 msgstr ""
17686
17687 # type: =item
17688 #: ../fish/guestfish.pod:489
17689 msgid "B<MB>"
17690 msgstr ""
17691
17692 # type: textblock
17693 #: ../fish/guestfish.pod:491
17694 msgid "The size in SI 1000000 byte units."
17695 msgstr ""
17696
17697 # type: =item
17698 #: ../fish/guestfish.pod:493
17699 msgid "B<G> or B<GiB>"
17700 msgstr ""
17701
17702 # type: textblock
17703 #: ../fish/guestfish.pod:495
17704 msgid "The size in gigabytes (multiplied by 2**30)."
17705 msgstr ""
17706
17707 # type: =item
17708 #: ../fish/guestfish.pod:497
17709 msgid "B<GB>"
17710 msgstr ""
17711
17712 # type: textblock
17713 #: ../fish/guestfish.pod:499
17714 msgid "The size in SI 10**9 byte units."
17715 msgstr ""
17716
17717 # type: =item
17718 #: ../fish/guestfish.pod:501
17719 msgid "B<T> or B<TiB>"
17720 msgstr ""
17721
17722 # type: textblock
17723 #: ../fish/guestfish.pod:503
17724 msgid "The size in terabytes (multiplied by 2**40)."
17725 msgstr ""
17726
17727 # type: =item
17728 #: ../fish/guestfish.pod:505
17729 msgid "B<TB>"
17730 msgstr ""
17731
17732 # type: textblock
17733 #: ../fish/guestfish.pod:507
17734 msgid "The size in SI 10**12 byte units."
17735 msgstr ""
17736
17737 # type: =item
17738 #: ../fish/guestfish.pod:509
17739 msgid "B<P> or B<PiB>"
17740 msgstr ""
17741
17742 # type: textblock
17743 #: ../fish/guestfish.pod:511
17744 msgid "The size in petabytes (multiplied by 2**50)."
17745 msgstr ""
17746
17747 # type: =item
17748 #: ../fish/guestfish.pod:513
17749 msgid "B<PB>"
17750 msgstr ""
17751
17752 # type: textblock
17753 #: ../fish/guestfish.pod:515
17754 msgid "The size in SI 10**15 byte units."
17755 msgstr ""
17756
17757 # type: =item
17758 #: ../fish/guestfish.pod:517
17759 msgid "B<E> or B<EiB>"
17760 msgstr ""
17761
17762 # type: textblock
17763 #: ../fish/guestfish.pod:519
17764 msgid "The size in exabytes (multiplied by 2**60)."
17765 msgstr ""
17766
17767 # type: =item
17768 #: ../fish/guestfish.pod:521
17769 msgid "B<EB>"
17770 msgstr ""
17771
17772 # type: textblock
17773 #: ../fish/guestfish.pod:523
17774 msgid "The size in SI 10**18 byte units."
17775 msgstr ""
17776
17777 # type: =item
17778 #: ../fish/guestfish.pod:525
17779 msgid "B<Z> or B<ZiB>"
17780 msgstr ""
17781
17782 # type: textblock
17783 #: ../fish/guestfish.pod:527
17784 msgid "The size in zettabytes (multiplied by 2**70)."
17785 msgstr ""
17786
17787 # type: =item
17788 #: ../fish/guestfish.pod:529
17789 msgid "B<ZB>"
17790 msgstr ""
17791
17792 # type: textblock
17793 #: ../fish/guestfish.pod:531
17794 msgid "The size in SI 10**21 byte units."
17795 msgstr ""
17796
17797 # type: =item
17798 #: ../fish/guestfish.pod:533
17799 msgid "B<Y> or B<YiB>"
17800 msgstr ""
17801
17802 # type: textblock
17803 #: ../fish/guestfish.pod:535
17804 msgid "The size in yottabytes (multiplied by 2**80)."
17805 msgstr ""
17806
17807 # type: =item
17808 #: ../fish/guestfish.pod:537
17809 msgid "B<YB>"
17810 msgstr ""
17811
17812 # type: textblock
17813 #: ../fish/guestfish.pod:539
17814 msgid "The size in SI 10**24 byte units."
17815 msgstr ""
17816
17817 # type: verbatim
17818 #: ../fish/guestfish.pod:545
17819 #, no-wrap
17820 msgid ""
17821 " truncate-size /file 1G\n"
17822 "\n"
17823 msgstr ""
17824
17825 # type: textblock
17826 #: ../fish/guestfish.pod:547
17827 msgid "would truncate the file to 1 gigabyte."
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:549
17832 msgid ""
17833 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17834 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17835 "suffix will probably not do what you expect."
17836 msgstr ""
17837
17838 # type: =head2
17839 #: ../fish/guestfish.pod:553
17840 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17841 msgstr ""
17842
17843 # type: textblock
17844 #: ../fish/guestfish.pod:555
17845 msgid ""
17846 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17847 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17848 msgstr ""
17849
17850 # type: verbatim
17851 #: ../fish/guestfish.pod:558
17852 #, no-wrap
17853 msgid ""
17854 " 1234      decimal number 1234\n"
17855 " 02322     octal number, equivalent to decimal 1234\n"
17856 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17857 "\n"
17858 msgstr ""
17859
17860 # type: textblock
17861 #: ../fish/guestfish.pod:562
17862 msgid ""
17863 "When using the C<chmod> command, you almost always want to specify an octal "
17864 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17865 "L<chmod(1)> program):"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #: ../fish/guestfish.pod:566
17870 #, no-wrap
17871 msgid ""
17872 " chmod 0777 /public  # OK\n"
17873 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17874 "\n"
17875 msgstr ""
17876
17877 # type: textblock
17878 #: ../fish/guestfish.pod:569
17879 msgid ""
17880 "Commands that return numbers usually print them in decimal, but some "
17881 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17882 "octal, preceeded by C<0>)."
17883 msgstr ""
17884
17885 # type: =head1
17886 #: ../fish/guestfish.pod:573
17887 msgid "WILDCARDS AND GLOBBING"
17888 msgstr ""
17889
17890 # type: textblock
17891 #: ../fish/guestfish.pod:575
17892 msgid ""
17893 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17894 "(globbing) by default.  So for example the following will not do what you "
17895 "expect:"
17896 msgstr ""
17897
17898 # type: verbatim
17899 #: ../fish/guestfish.pod:579
17900 #, no-wrap
17901 msgid ""
17902 " rm-rf /home/*\n"
17903 "\n"
17904 msgstr ""
17905
17906 # type: textblock
17907 #: ../fish/guestfish.pod:581
17908 msgid ""
17909 "Assuming you don't have a directory called literally C</home/*> then the "
17910 "above command will return an error."
17911 msgstr ""
17912
17913 # type: textblock
17914 #: ../fish/guestfish.pod:584
17915 msgid "To perform wildcard expansion, use the C<glob> command."
17916 msgstr ""
17917
17918 # type: verbatim
17919 #: ../fish/guestfish.pod:586
17920 #, no-wrap
17921 msgid ""
17922 " glob rm-rf /home/*\n"
17923 "\n"
17924 msgstr ""
17925
17926 # type: textblock
17927 #: ../fish/guestfish.pod:588
17928 msgid ""
17929 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17930 "many times), equivalent to:"
17931 msgstr ""
17932
17933 # type: verbatim
17934 #: ../fish/guestfish.pod:591
17935 #, no-wrap
17936 msgid ""
17937 " rm-rf /home/jim\n"
17938 " rm-rf /home/joe\n"
17939 " rm-rf /home/mary\n"
17940 "\n"
17941 msgstr ""
17942
17943 # type: textblock
17944 #: ../fish/guestfish.pod:595
17945 msgid "C<glob> only works on simple guest paths and not on device names."
17946 msgstr ""
17947
17948 # type: textblock
17949 #: ../fish/guestfish.pod:597
17950 msgid ""
17951 "If you have several parameters, each containing a wildcard, then glob will "
17952 "perform a Cartesian product."
17953 msgstr ""
17954
17955 # type: =head1
17956 #: ../fish/guestfish.pod:600
17957 msgid "COMMENTS"
17958 msgstr ""
17959
17960 # type: textblock
17961 #: ../fish/guestfish.pod:602
17962 msgid ""
17963 "Any line which starts with a I<#> character is treated as a comment and "
17964 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17965 "a command.  For example:"
17966 msgstr ""
17967
17968 # type: verbatim
17969 #: ../fish/guestfish.pod:606
17970 #, no-wrap
17971 msgid ""
17972 " # this is a comment\n"
17973 "         # this is a comment\n"
17974 " foo # NOT a comment\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:610
17980 msgid "Blank lines are also ignored."
17981 msgstr ""
17982
17983 # type: =head1
17984 #: ../fish/guestfish.pod:612
17985 msgid "RUNNING COMMANDS LOCALLY"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../fish/guestfish.pod:614
17990 msgid ""
17991 "Any line which starts with a I<!> character is treated as a command sent to "
17992 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17993 msgstr ""
17994
17995 # type: verbatim
17996 #: ../fish/guestfish.pod:618
17997 #, no-wrap
17998 msgid ""
17999 " !mkdir local\n"
18000 " tgz-out /remote local/remote-data.tar.gz\n"
18001 "\n"
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish.pod:621
18006 msgid ""
18007 "will create a directory C<local> on the host, and then export the contents "
18008 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18009 "(See C<tgz-out>)."
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish.pod:625
18014 msgid ""
18015 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18016 "effect, due to the way that subprocesses work in Unix."
18017 msgstr ""
18018
18019 # type: =head1
18020 #: ../fish/guestfish.pod:628
18021 msgid "PIPES"
18022 msgstr ""
18023
18024 # type: textblock
18025 #: ../fish/guestfish.pod:630
18026 msgid ""
18027 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18028 "command (a guestfish command) to the second command (any host command).  For "
18029 "example:"
18030 msgstr ""
18031
18032 # type: verbatim
18033 #: ../fish/guestfish.pod:634
18034 #, no-wrap
18035 msgid ""
18036 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18037 "\n"
18038 msgstr ""
18039
18040 # type: textblock
18041 #: ../fish/guestfish.pod:636
18042 msgid ""
18043 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18044 "program).  The above command would list all accounts in the guest filesystem "
18045 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18046 msgstr ""
18047
18048 # type: verbatim
18049 #: ../fish/guestfish.pod:641
18050 #, no-wrap
18051 msgid ""
18052 " hexdump /bin/ls | head\n"
18053 " list-devices | tail -1\n"
18054 " tgz-out / - | tar ztf -\n"
18055 "\n"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish.pod:645
18060 msgid ""
18061 "The space before the pipe symbol is required, any space after the pipe "
18062 "symbol is optional.  Everything after the pipe symbol is just passed "
18063 "straight to the host shell, so it can contain redirections, globs and "
18064 "anything else that makes sense on the host side."
18065 msgstr ""
18066
18067 # type: textblock
18068 #: ../fish/guestfish.pod:650
18069 msgid ""
18070 "To use a literal argument which begins with a pipe symbol, you have to quote "
18071 "it, eg:"
18072 msgstr ""
18073
18074 # type: verbatim
18075 #: ../fish/guestfish.pod:653
18076 #, no-wrap
18077 msgid ""
18078 " echo \"|\"\n"
18079 "\n"
18080 msgstr ""
18081
18082 # type: =head1
18083 #: ../fish/guestfish.pod:655
18084 msgid "HOME DIRECTORIES"
18085 msgstr ""
18086
18087 # type: textblock
18088 #: ../fish/guestfish.pod:657
18089 msgid ""
18090 "If a parameter starts with the character C<~> then the tilde may be expanded "
18091 "as a home directory path (either C<~> for the current user's home directory, "
18092 "or C<~user> for another user)."
18093 msgstr ""
18094
18095 # type: textblock
18096 #: ../fish/guestfish.pod:661
18097 msgid ""
18098 "Note that home directory expansion happens for users known I<on the host>, "
18099 "not in the guest filesystem."
18100 msgstr ""
18101
18102 # type: textblock
18103 #: ../fish/guestfish.pod:664
18104 msgid ""
18105 "To use a literal argument which begins with a tilde, you have to quote it, "
18106 "eg:"
18107 msgstr ""
18108
18109 # type: verbatim
18110 #: ../fish/guestfish.pod:667
18111 #, no-wrap
18112 msgid ""
18113 " echo \"~\"\n"
18114 "\n"
18115 msgstr ""
18116
18117 # type: textblock
18118 #: ../fish/guestfish.pod:671
18119 msgid ""
18120 "Libguestfs has some support for Linux guests encrypted according to the "
18121 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18122 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18123 "LUKS is supported."
18124 msgstr ""
18125
18126 # type: textblock
18127 #: ../fish/guestfish.pod:676
18128 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18129 msgstr ""
18130
18131 # type: verbatim
18132 #: ../fish/guestfish.pod:678
18133 #, no-wrap
18134 msgid ""
18135 " ><fs> vfs-type /dev/sda2\n"
18136 " crypto_LUKS\n"
18137 "\n"
18138 msgstr ""
18139
18140 # type: textblock
18141 #: ../fish/guestfish.pod:681
18142 msgid ""
18143 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18144 "device called C</dev/mapper/luksdev>."
18145 msgstr ""
18146
18147 # type: verbatim
18148 #: ../fish/guestfish.pod:684
18149 #, no-wrap
18150 msgid ""
18151 " ><fs> luks-open /dev/sda2 luksdev\n"
18152 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18153 "\n"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:687
18158 msgid ""
18159 "Finally you have to tell LVM to scan for volume groups on the newly created "
18160 "mapper device:"
18161 msgstr ""
18162
18163 # type: verbatim
18164 #: ../fish/guestfish.pod:690
18165 #, no-wrap
18166 msgid ""
18167 " vgscan\n"
18168 " vg-activate-all true\n"
18169 "\n"
18170 msgstr ""
18171
18172 # type: textblock
18173 #: ../fish/guestfish.pod:693
18174 msgid "The logical volume(s) can now be mounted in the usual way."
18175 msgstr ""
18176
18177 # type: textblock
18178 #: ../fish/guestfish.pod:695
18179 msgid ""
18180 "Before closing a LUKS device you must unmount any logical volumes on it and "
18181 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18182 "one.  Then you can close the mapper device:"
18183 msgstr ""
18184
18185 # type: verbatim
18186 #: ../fish/guestfish.pod:699
18187 #, no-wrap
18188 msgid ""
18189 " vg-activate false /dev/VG\n"
18190 " luks-close /dev/mapper/luksdev\n"
18191 "\n"
18192 msgstr ""
18193
18194 # type: =head1
18195 #: ../fish/guestfish.pod:702
18196 msgid "WINDOWS PATHS"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:704
18201 msgid ""
18202 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18203 "(with some limitations).  The following commands are equivalent:"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #: ../fish/guestfish.pod:707
18208 #, no-wrap
18209 msgid ""
18210 " file /WINDOWS/system32/config/system.LOG\n"
18211 "\n"
18212 msgstr ""
18213
18214 # type: verbatim
18215 #: ../fish/guestfish.pod:709
18216 #, no-wrap
18217 msgid ""
18218 " file win:/windows/system32/config/system.log\n"
18219 "\n"
18220 msgstr ""
18221
18222 # type: verbatim
18223 #: ../fish/guestfish.pod:711
18224 #, no-wrap
18225 msgid ""
18226 " file win:\\windows\\system32\\config\\system.log\n"
18227 "\n"
18228 msgstr ""
18229
18230 # type: verbatim
18231 #: ../fish/guestfish.pod:713
18232 #, no-wrap
18233 msgid ""
18234 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18235 "\n"
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish.pod:715
18240 msgid ""
18241 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18242 "handles case insensitivity like Windows would.  This only works in argument "
18243 "positions that expect a path."
18244 msgstr ""
18245
18246 # type: =head1
18247 #: ../fish/guestfish.pod:719
18248 msgid "UPLOADING AND DOWNLOADING FILES"
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:721
18253 msgid ""
18254 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18255 "others which upload from or download to a local file, you can use the "
18256 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18257 msgstr ""
18258
18259 # type: verbatim
18260 #: ../fish/guestfish.pod:725
18261 #, no-wrap
18262 msgid ""
18263 " upload - /foo\n"
18264 "\n"
18265 msgstr ""
18266
18267 # type: textblock
18268 #: ../fish/guestfish.pod:727
18269 msgid ""
18270 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18271 msgstr ""
18272
18273 # type: verbatim
18274 #: ../fish/guestfish.pod:730
18275 #, no-wrap
18276 msgid ""
18277 " tar-out /etc - | tar tf -\n"
18278 "\n"
18279 msgstr ""
18280
18281 # type: textblock
18282 #: ../fish/guestfish.pod:732
18283 msgid ""
18284 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18285 "command (see L</PIPES>)."
18286 msgstr ""
18287
18288 # type: textblock
18289 #: ../fish/guestfish.pod:735
18290 msgid ""
18291 "When using C<-> to read from stdin, the input is read up to the end of "
18292 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18293 "some arbitrary end marker:"
18294 msgstr ""
18295
18296 # type: verbatim
18297 #: ../fish/guestfish.pod:739
18298 #, no-wrap
18299 msgid ""
18300 " upload -<<END /foo\n"
18301 " input line 1\n"
18302 " input line 2\n"
18303 " input line 3\n"
18304 " END\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: textblock
18309 #: ../fish/guestfish.pod:745
18310 msgid ""
18311 "Any string of characters can be used instead of C<END>.  The end marker must "
18312 "appear on a line of its own, without any preceeding or following characters "
18313 "(not even spaces)."
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish.pod:749
18318 msgid ""
18319 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18320 "upload local files (so-called \"FileIn\" parameters in the generator)."
18321 msgstr ""
18322
18323 # type: =head1
18324 #: ../fish/guestfish.pod:752
18325 msgid "EXIT ON ERROR BEHAVIOUR"
18326 msgstr ""
18327
18328 # type: textblock
18329 #: ../fish/guestfish.pod:754
18330 msgid ""
18331 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18332 "taking commands from a human over a tty), and will exit on the first error "
18333 "in non-interactive mode (scripts, commands given on the command line)."
18334 msgstr ""
18335
18336 # type: textblock
18337 #: ../fish/guestfish.pod:759
18338 msgid ""
18339 "If you prefix a command with a I<-> character, then that command will not "
18340 "cause guestfish to exit, even if that (one) command returns an error."
18341 msgstr ""
18342
18343 # type: =head1
18344 #: ../fish/guestfish.pod:763
18345 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish.pod:765
18350 msgid ""
18351 "Guestfish can be remote-controlled over a socket.  This is useful "
18352 "particularly in shell scripts where you want to make several different "
18353 "changes to a filesystem, but you don't want the overhead of starting up a "
18354 "guestfish process each time."
18355 msgstr ""
18356
18357 # type: textblock
18358 #: ../fish/guestfish.pod:770
18359 msgid "Start a guestfish server process using:"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #: ../fish/guestfish.pod:772
18364 #, no-wrap
18365 msgid ""
18366 " eval \"`guestfish --listen`\"\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish.pod:774
18372 msgid "and then send it commands by doing:"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #: ../fish/guestfish.pod:776
18377 #, no-wrap
18378 msgid ""
18379 " guestfish --remote cmd [...]\n"
18380 "\n"
18381 msgstr ""
18382
18383 # type: textblock
18384 #: ../fish/guestfish.pod:778
18385 msgid "To cause the server to exit, send it the exit command:"
18386 msgstr ""
18387
18388 # type: verbatim
18389 #: ../fish/guestfish.pod:780
18390 #, no-wrap
18391 msgid ""
18392 " guestfish --remote exit\n"
18393 "\n"
18394 msgstr ""
18395
18396 # type: textblock
18397 #: ../fish/guestfish.pod:782
18398 msgid ""
18399 "Note that the server will normally exit if there is an error in a command.  "
18400 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18401 "BEHAVIOUR>."
18402 msgstr ""
18403
18404 # type: =head2
18405 #: ../fish/guestfish.pod:786
18406 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18407 msgstr ""
18408
18409 # type: textblock
18410 #: ../fish/guestfish.pod:788
18411 msgid ""
18412 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18413 "is how the I<--remote> option knows where to send the commands.  You can "
18414 "have several guestfish listener processes running using:"
18415 msgstr ""
18416
18417 # type: verbatim
18418 #: ../fish/guestfish.pod:792
18419 #, no-wrap
18420 msgid ""
18421 " eval \"`guestfish --listen`\"\n"
18422 " pid1=$GUESTFISH_PID\n"
18423 " eval \"`guestfish --listen`\"\n"
18424 " pid2=$GUESTFISH_PID\n"
18425 " ...\n"
18426 " guestfish --remote=$pid1 cmd\n"
18427 " guestfish --remote=$pid2 cmd\n"
18428 "\n"
18429 msgstr ""
18430
18431 # type: =head2
18432 #: ../fish/guestfish.pod:800
18433 msgid "REMOTE CONTROL AND CSH"
18434 msgstr ""
18435
18436 # type: textblock
18437 #: ../fish/guestfish.pod:802
18438 msgid ""
18439 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18440 "option:"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #: ../fish/guestfish.pod:805
18445 #, no-wrap
18446 msgid ""
18447 " eval \"`guestfish --listen --csh`\"\n"
18448 "\n"
18449 msgstr ""
18450
18451 # type: =head2
18452 #: ../fish/guestfish.pod:807
18453 msgid "REMOTE CONTROL DETAILS"
18454 msgstr ""
18455
18456 # type: textblock
18457 #: ../fish/guestfish.pod:809
18458 msgid ""
18459 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18460 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18461 "and C<$PID> is the process ID of the server."
18462 msgstr ""
18463
18464 # type: textblock
18465 #: ../fish/guestfish.pod:813
18466 msgid "Guestfish client and server versions must match exactly."
18467 msgstr ""
18468
18469 # type: =head1
18470 #: ../fish/guestfish.pod:815
18471 msgid "PREPARED DISK IMAGES"
18472 msgstr ""
18473
18474 # type: textblock
18475 #: ../fish/guestfish.pod:817
18476 msgid ""
18477 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18478 "preformatted disk images that guestfish can make for you to save typing.  "
18479 "This is particularly useful for testing purposes.  This option is used "
18480 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18481 "can be mixed with I<-a>)."
18482 msgstr ""
18483
18484 # type: textblock
18485 #: ../fish/guestfish.pod:823
18486 msgid ""
18487 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18488 "the second and so on.  Existing files in the current directory are "
18489 "I<overwritten>."
18490 msgstr ""
18491
18492 # type: textblock
18493 #: ../fish/guestfish.pod:827
18494 msgid ""
18495 "The type briefly describes how the disk should be sized, partitioned, how "
18496 "filesystem(s) should be created, and how content should be added.  "
18497 "Optionally the type can be followed by extra parameters, separated by C<:> "
18498 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18499 "allocated disk, containing a single partition, with the partition formatted "
18500 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18501 "disk instead."
18502 msgstr ""
18503
18504 # type: textblock
18505 #: ../fish/guestfish.pod:835
18506 msgid "To list the available types and any extra parameters they take, run:"
18507 msgstr ""
18508
18509 # type: textblock
18510 #: ../fish/guestfish.pod:839
18511 msgid ""
18512 "Note that the prepared filesystem is not mounted.  You would usually have to "
18513 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18514 msgstr ""
18515
18516 # type: textblock
18517 #: ../fish/guestfish.pod:843
18518 msgid ""
18519 "If any I<-N> or I<--new> options are given, the guest is automatically "
18520 "launched."
18521 msgstr ""
18522
18523 # type: textblock
18524 #: ../fish/guestfish.pod:848
18525 msgid "Create a 100MB disk with an ext4-formatted partition:"
18526 msgstr ""
18527
18528 # type: verbatim
18529 #: ../fish/guestfish.pod:850
18530 #, no-wrap
18531 msgid ""
18532 " guestfish -N fs:ext4\n"
18533 "\n"
18534 msgstr ""
18535
18536 # type: textblock
18537 #: ../fish/guestfish.pod:852
18538 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18539 msgstr ""
18540
18541 # type: verbatim
18542 #: ../fish/guestfish.pod:854
18543 #, no-wrap
18544 msgid ""
18545 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18546 "\n"
18547 msgstr ""
18548
18549 # type: textblock
18550 #: ../fish/guestfish.pod:856
18551 msgid "Create a blank 200MB disk:"
18552 msgstr ""
18553
18554 # type: verbatim
18555 #: ../fish/guestfish.pod:858
18556 #, no-wrap
18557 msgid ""
18558 " guestfish -N disk:200M\n"
18559 "\n"
18560 msgstr ""
18561
18562 # type: =head1
18563 #: ../fish/guestfish.pod:860
18564 msgid "PROGRESS BARS"
18565 msgstr ""
18566
18567 # type: textblock
18568 #: ../fish/guestfish.pod:862
18569 msgid ""
18570 "Some (not all) long-running commands send progress notification messages as "
18571 "they are running.  Guestfish turns these messages into progress bars."
18572 msgstr ""
18573
18574 # type: textblock
18575 #: ../fish/guestfish.pod:866
18576 msgid ""
18577 "When a command that supports progress bars takes longer than two seconds to "
18578 "run, and if progress bars are enabled, then you will see one appearing below "
18579 "the command:"
18580 msgstr ""
18581
18582 # type: verbatim
18583 #: ../fish/guestfish.pod:870
18584 #, no-wrap
18585 msgid ""
18586 " ><fs> copy-size /large-file /another-file 2048M\n"
18587 " / 10% [#####-----------------------------------------] 00:30\n"
18588 "\n"
18589 msgstr ""
18590
18591 # type: textblock
18592 #: ../fish/guestfish.pod:873
18593 msgid ""
18594 "The spinner on the left hand side moves round once for every progress "
18595 "notification received from the backend.  This is a (reasonably) golden "
18596 "assurance that the command is \"doing something\" even if the progress bar "
18597 "is not moving, because the command is able to send the progress "
18598 "notifications.  When the bar reaches 100% and the command finishes, the "
18599 "spinner disappears."
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish.pod:880
18604 msgid ""
18605 "Progress bars are enabled by default when guestfish is used interactively.  "
18606 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18607 "and you can disable them completely using I<--no-progress-bars>."
18608 msgstr ""
18609
18610 # type: =head1
18611 #: ../fish/guestfish.pod:885
18612 msgid "GUESTFISH COMMANDS"
18613 msgstr ""
18614
18615 # type: textblock
18616 #: ../fish/guestfish.pod:887
18617 msgid ""
18618 "The commands in this section are guestfish convenience commands, in other "
18619 "words, they are not part of the L<guestfs(3)> API."
18620 msgstr ""
18621
18622 # type: =head2
18623 #: ../fish/guestfish.pod:890
18624 msgid "help"
18625 msgstr ""
18626
18627 # type: verbatim
18628 #: ../fish/guestfish.pod:892
18629 #, no-wrap
18630 msgid ""
18631 " help\n"
18632 " help cmd\n"
18633 "\n"
18634 msgstr ""
18635
18636 # type: textblock
18637 #: ../fish/guestfish.pod:895
18638 msgid "Without any parameter, this provides general help."
18639 msgstr ""
18640
18641 # type: textblock
18642 #: ../fish/guestfish.pod:897
18643 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18644 msgstr ""
18645
18646 # type: =head2
18647 #: ../fish/guestfish.pod:899
18648 msgid "quit | exit"
18649 msgstr ""
18650
18651 # type: textblock
18652 #: ../fish/guestfish.pod:901
18653 msgid "This exits guestfish.  You can also use C<^D> key."
18654 msgstr ""
18655
18656 # type: textblock
18657 #: ../fish/guestfish.pod:903
18658 msgid "@FISH_COMMANDS@"
18659 msgstr ""
18660
18661 # type: =head1
18662 #: ../fish/guestfish.pod:905
18663 msgid "COMMANDS"
18664 msgstr ""
18665
18666 # type: =head1
18667 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18668 msgid "EXIT CODE"
18669 msgstr ""
18670
18671 # type: textblock
18672 #: ../fish/guestfish.pod:911
18673 msgid ""
18674 "guestfish returns 0 if the commands completed without error, or 1 if there "
18675 "was an error."
18676 msgstr ""
18677
18678 # type: =item
18679 #: ../fish/guestfish.pod:918
18680 msgid "EDITOR"
18681 msgstr ""
18682
18683 # type: textblock
18684 #: ../fish/guestfish.pod:920
18685 msgid ""
18686 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18687 "C<vi>."
18688 msgstr ""
18689
18690 # type: =item
18691 #: ../fish/guestfish.pod:923
18692 msgid "GUESTFISH_PID"
18693 msgstr ""
18694
18695 # type: textblock
18696 #: ../fish/guestfish.pod:925
18697 msgid ""
18698 "Used with the I<--remote> option to specify the remote guestfish process to "
18699 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18700 msgstr ""
18701
18702 # type: =item
18703 #: ../fish/guestfish.pod:929
18704 msgid "HEXEDITOR"
18705 msgstr ""
18706
18707 # type: textblock
18708 #: ../fish/guestfish.pod:931
18709 msgid ""
18710 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18711 "not specified, the external L<hexedit(1)> program is used."
18712 msgstr ""
18713
18714 # type: =item
18715 #: ../fish/guestfish.pod:935
18716 msgid "HOME"
18717 msgstr ""
18718
18719 # type: textblock
18720 #: ../fish/guestfish.pod:937
18721 msgid ""
18722 "If compiled with GNU readline support, various files in the home directory "
18723 "can be used.  See L</FILES>."
18724 msgstr ""
18725
18726 # type: textblock
18727 #: ../fish/guestfish.pod:946
18728 msgid ""
18729 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18730 "effect as using the B<-v> option."
18731 msgstr ""
18732
18733 # type: textblock
18734 #: ../fish/guestfish.pod:958
18735 msgid ""
18736 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18737 "the discussion of paths in L<guestfs(3)>."
18738 msgstr ""
18739
18740 # type: textblock
18741 #: ../fish/guestfish.pod:969
18742 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18743 msgstr ""
18744
18745 # type: =item
18746 #: ../fish/guestfish.pod:971
18747 msgid "PAGER"
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish.pod:973
18752 msgid ""
18753 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18754 "C<more>."
18755 msgstr ""
18756
18757 # type: =head1
18758 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18759 msgid "FILES"
18760 msgstr ""
18761
18762 # type: =item
18763 #: ../fish/guestfish.pod:992
18764 msgid "$HOME/.guestfish"
18765 msgstr ""
18766
18767 # type: textblock
18768 #: ../fish/guestfish.pod:994
18769 msgid ""
18770 "If compiled with GNU readline support, then the command history is saved in "
18771 "this file."
18772 msgstr ""
18773
18774 # type: =item
18775 #: ../fish/guestfish.pod:997
18776 msgid "$HOME/.inputrc"
18777 msgstr ""
18778
18779 # type: =item
18780 #: ../fish/guestfish.pod:999
18781 msgid "/etc/inputrc"
18782 msgstr ""
18783
18784 # type: textblock
18785 #: ../fish/guestfish.pod:1001
18786 msgid ""
18787 "If compiled with GNU readline support, then these files can be used to "
18788 "configure readline.  For further information, please see L<readline(3)/"
18789 "INITIALIZATION FILE>."
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish.pod:1005
18794 msgid "To write rules which only apply to guestfish, use:"
18795 msgstr ""
18796
18797 # type: verbatim
18798 #: ../fish/guestfish.pod:1007
18799 #, no-wrap
18800 msgid ""
18801 " $if guestfish\n"
18802 " ...\n"
18803 " $endif\n"
18804 "\n"
18805 msgstr ""
18806
18807 # type: textblock
18808 #: ../fish/guestfish.pod:1011
18809 msgid ""
18810 "Variables that you can set in inputrc that change the behaviour of guestfish "
18811 "in useful ways include:"
18812 msgstr ""
18813
18814 # type: =item
18815 #: ../fish/guestfish.pod:1016
18816 msgid "completion-ignore-case (default: on)"
18817 msgstr ""
18818
18819 # type: textblock
18820 #: ../fish/guestfish.pod:1018
18821 msgid ""
18822 "By default, guestfish will ignore case when tab-completing paths on the "
18823 "disk.  Use:"
18824 msgstr ""
18825
18826 # type: verbatim
18827 #: ../fish/guestfish.pod:1021
18828 #, no-wrap
18829 msgid ""
18830 " set completion-ignore-case off\n"
18831 "\n"
18832 msgstr ""
18833
18834 # type: textblock
18835 #: ../fish/guestfish.pod:1023
18836 msgid "to make guestfish case sensitive."
18837 msgstr ""
18838
18839 # type: =item
18840 #: ../fish/guestfish.pod:1027
18841 msgid "test1.img"
18842 msgstr ""
18843
18844 # type: =item
18845 #: ../fish/guestfish.pod:1029
18846 msgid "test2.img (etc)"
18847 msgstr ""
18848
18849 # type: textblock
18850 #: ../fish/guestfish.pod:1031
18851 msgid ""
18852 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18853 "will be created in the file C<test1.img> in the current directory.  The "
18854 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18855 "the same name will be overwritten."
18856 msgstr ""
18857
18858 # type: textblock
18859 #: ../fish/guestfish.pod:1040
18860 msgid ""
18861 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18862 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18863 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18864 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18865 msgstr ""
18866
18867 # type: textblock
18868 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
18869 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:564
18870 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
18871 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
18872 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
18873 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
18874 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
18875 msgid ""
18876 "This program is free software; you can redistribute it and/or modify it "
18877 "under the terms of the GNU General Public License as published by the Free "
18878 "Software Foundation; either version 2 of the License, or (at your option) "
18879 "any later version."
18880 msgstr ""
18881
18882 # type: textblock
18883 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
18884 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:569
18885 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
18886 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
18887 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
18888 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
18889 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
18890 msgid ""
18891 "This program is distributed in the hope that it will be useful, but WITHOUT "
18892 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18893 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18894 "more details."
18895 msgstr ""
18896
18897 # type: textblock
18898 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
18899 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:574
18900 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
18901 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
18902 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
18903 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
18904 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
18905 msgid ""
18906 "You should have received a copy of the GNU General Public License along with "
18907 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18908 "Ave, Cambridge, MA 02139, USA."
18909 msgstr ""
18910
18911 # type: =head2
18912 #: ../fish/guestfish-actions.pod:1
18913 msgid "add-cdrom"
18914 msgstr ""
18915
18916 # type: verbatim
18917 #: ../fish/guestfish-actions.pod:3
18918 #, no-wrap
18919 msgid ""
18920 " add-cdrom filename\n"
18921 "\n"
18922 msgstr ""
18923
18924 # type: textblock
18925 #: ../fish/guestfish-actions.pod:15
18926 msgid ""
18927 "This call checks for the existence of C<filename>.  This stops you from "
18928 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18929 "and C<http:> URLs.  To specify those, use the general L</config> call "
18930 "instead."
18931 msgstr ""
18932
18933 # type: textblock
18934 #: ../fish/guestfish-actions.pod:22
18935 msgid ""
18936 "If you just want to add an ISO file (often you use this as an efficient way "
18937 "to transfer large files into the guest), then you should probably use L</add-"
18938 "drive-ro> instead."
18939 msgstr ""
18940
18941 # type: =head2
18942 #: ../fish/guestfish-actions.pod:35
18943 msgid "add-domain"
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:37
18948 msgid "domain"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:39
18953 #, no-wrap
18954 msgid ""
18955 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish-actions.pod:41
18961 msgid ""
18962 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18963 "It works by connecting to libvirt, requesting the domain and domain XML from "
18964 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18965 msgstr ""
18966
18967 # type: textblock
18968 #: ../fish/guestfish-actions.pod:58
18969 msgid ""
18970 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
18971 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
18972 "libvirt URI (or one set through an environment variable, see the libvirt "
18973 "documentation for full details).  If you are using the C API directly then "
18974 "it is more flexible to create the libvirt connection object yourself, get "
18975 "the domain object, and call L</add-libvirt-dom>."
18976 msgstr ""
18977
18978 # type: textblock
18979 #: ../fish/guestfish-actions.pod:66
18980 msgid ""
18981 "The other optional parameters are passed directly through to L</add-drive-"
18982 "opts>."
18983 msgstr ""
18984
18985 # type: textblock
18986 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18987 msgid ""
18988 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18989 msgstr ""
18990
18991 # type: =head2
18992 #: ../fish/guestfish-actions.pod:71
18993 msgid "add-drive"
18994 msgstr ""
18995
18996 # type: verbatim
18997 #: ../fish/guestfish-actions.pod:73
18998 #, no-wrap
18999 msgid ""
19000 " add-drive filename\n"
19001 "\n"
19002 msgstr ""
19003
19004 # type: textblock
19005 #: ../fish/guestfish-actions.pod:75
19006 msgid ""
19007 "This function is the equivalent of calling L</add-drive-opts> with no "
19008 "optional parameters, so the disk is added writable, with the format being "
19009 "detected automatically."
19010 msgstr ""
19011
19012 # type: textblock
19013 #: ../fish/guestfish-actions.pod:79
19014 msgid ""
19015 "Automatic detection of the format opens you up to a potential security hole "
19016 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19017 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19018 "you should think about replacing calls to this function with calls to L</add-"
19019 "drive-opts>, and specifying the format."
19020 msgstr ""
19021
19022 # type: =head2
19023 #: ../fish/guestfish-actions.pod:86
19024 msgid "add-drive-opts"
19025 msgstr ""
19026
19027 # type: =head2
19028 #: ../fish/guestfish-actions.pod:88
19029 msgid "add"
19030 msgstr ""
19031
19032 # type: verbatim
19033 #: ../fish/guestfish-actions.pod:90
19034 #, no-wrap
19035 msgid ""
19036 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19037 "\n"
19038 msgstr ""
19039
19040 # type: textblock
19041 #: ../fish/guestfish-actions.pod:117
19042 msgid ""
19043 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19044 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19045 "include C<raw> and C<qcow2>."
19046 msgstr ""
19047
19048 # type: textblock
19049 #: ../fish/guestfish-actions.pod:128
19050 msgid ""
19051 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19052 "add-drive-with-if> call (q.v.)"
19053 msgstr ""
19054
19055 # type: =head2
19056 #: ../fish/guestfish-actions.pod:135
19057 msgid "add-drive-ro"
19058 msgstr ""
19059
19060 # type: =head2
19061 #: ../fish/guestfish-actions.pod:137
19062 msgid "add-ro"
19063 msgstr ""
19064
19065 # type: verbatim
19066 #: ../fish/guestfish-actions.pod:139
19067 #, no-wrap
19068 msgid ""
19069 " add-drive-ro filename\n"
19070 "\n"
19071 msgstr ""
19072
19073 # type: textblock
19074 #: ../fish/guestfish-actions.pod:141
19075 msgid ""
19076 "This function is the equivalent of calling L</add-drive-opts> with the "
19077 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19078 "is added read-only, with the format being detected automatically."
19079 msgstr ""
19080
19081 # type: =head2
19082 #: ../fish/guestfish-actions.pod:146
19083 msgid "add-drive-ro-with-if"
19084 msgstr ""
19085
19086 # type: verbatim
19087 #: ../fish/guestfish-actions.pod:148
19088 #, no-wrap
19089 msgid ""
19090 " add-drive-ro-with-if filename iface\n"
19091 "\n"
19092 msgstr ""
19093
19094 # type: textblock
19095 #: ../fish/guestfish-actions.pod:150
19096 msgid ""
19097 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19098 "interface emulation to use at run time."
19099 msgstr ""
19100
19101 # type: =head2
19102 #: ../fish/guestfish-actions.pod:160
19103 msgid "add-drive-with-if"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish-actions.pod:162
19108 #, no-wrap
19109 msgid ""
19110 " add-drive-with-if filename iface\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: textblock
19115 #: ../fish/guestfish-actions.pod:164
19116 msgid ""
19117 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19118 "interface emulation to use at run time."
19119 msgstr ""
19120
19121 # type: =head2
19122 #: ../fish/guestfish-actions.pod:174
19123 msgid "aug-clear"
19124 msgstr ""
19125
19126 # type: verbatim
19127 #: ../fish/guestfish-actions.pod:176
19128 #, no-wrap
19129 msgid ""
19130 " aug-clear augpath\n"
19131 "\n"
19132 msgstr ""
19133
19134 # type: =head2
19135 #: ../fish/guestfish-actions.pod:181
19136 msgid "aug-close"
19137 msgstr ""
19138
19139 # type: verbatim
19140 #: ../fish/guestfish-actions.pod:183
19141 #, no-wrap
19142 msgid ""
19143 " aug-close\n"
19144 "\n"
19145 msgstr ""
19146
19147 # type: textblock
19148 #: ../fish/guestfish-actions.pod:185
19149 msgid ""
19150 "Close the current Augeas handle and free up any resources used by it.  After "
19151 "calling this, you have to call L</aug-init> again before you can use any "
19152 "other Augeas functions."
19153 msgstr ""
19154
19155 # type: =head2
19156 #: ../fish/guestfish-actions.pod:190
19157 msgid "aug-defnode"
19158 msgstr ""
19159
19160 # type: verbatim
19161 #: ../fish/guestfish-actions.pod:192
19162 #, no-wrap
19163 msgid ""
19164 " aug-defnode name expr val\n"
19165 "\n"
19166 msgstr ""
19167
19168 # type: textblock
19169 #: ../fish/guestfish-actions.pod:197
19170 msgid ""
19171 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19172 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19173 "containing that single node."
19174 msgstr ""
19175
19176 # type: =head2
19177 #: ../fish/guestfish-actions.pod:205
19178 msgid "aug-defvar"
19179 msgstr ""
19180
19181 # type: verbatim
19182 #: ../fish/guestfish-actions.pod:207
19183 #, no-wrap
19184 msgid ""
19185 " aug-defvar name expr\n"
19186 "\n"
19187 msgstr ""
19188
19189 # type: =head2
19190 #: ../fish/guestfish-actions.pod:216
19191 msgid "aug-get"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #: ../fish/guestfish-actions.pod:218
19196 #, no-wrap
19197 msgid ""
19198 " aug-get augpath\n"
19199 "\n"
19200 msgstr ""
19201
19202 # type: =head2
19203 #: ../fish/guestfish-actions.pod:223
19204 msgid "aug-init"
19205 msgstr ""
19206
19207 # type: verbatim
19208 #: ../fish/guestfish-actions.pod:225
19209 #, no-wrap
19210 msgid ""
19211 " aug-init root flags\n"
19212 "\n"
19213 msgstr ""
19214
19215 # type: textblock
19216 #: ../fish/guestfish-actions.pod:231
19217 msgid "You must call this before using any other L</aug-*> commands."
19218 msgstr ""
19219
19220 # type: textblock
19221 #: ../fish/guestfish-actions.pod:266
19222 msgid "Do not load the tree in L</aug-init>."
19223 msgstr ""
19224
19225 # type: textblock
19226 #: ../fish/guestfish-actions.pod:270
19227 msgid "To close the handle, you can call L</aug-close>."
19228 msgstr ""
19229
19230 # type: =head2
19231 #: ../fish/guestfish-actions.pod:274
19232 msgid "aug-insert"
19233 msgstr ""
19234
19235 # type: verbatim
19236 #: ../fish/guestfish-actions.pod:276
19237 #, no-wrap
19238 msgid ""
19239 " aug-insert augpath label true|false\n"
19240 "\n"
19241 msgstr ""
19242
19243 # type: =head2
19244 #: ../fish/guestfish-actions.pod:286
19245 msgid "aug-load"
19246 msgstr ""
19247
19248 # type: verbatim
19249 #: ../fish/guestfish-actions.pod:288
19250 #, no-wrap
19251 msgid ""
19252 " aug-load\n"
19253 "\n"
19254 msgstr ""
19255
19256 # type: =head2
19257 #: ../fish/guestfish-actions.pod:295
19258 msgid "aug-ls"
19259 msgstr ""
19260
19261 # type: verbatim
19262 #: ../fish/guestfish-actions.pod:297
19263 #, no-wrap
19264 msgid ""
19265 " aug-ls augpath\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: textblock
19270 #: ../fish/guestfish-actions.pod:299
19271 msgid ""
19272 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19273 "resulting nodes into alphabetical order."
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:302
19278 msgid "aug-match"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:304
19283 #, no-wrap
19284 msgid ""
19285 " aug-match augpath\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: =head2
19290 #: ../fish/guestfish-actions.pod:310
19291 msgid "aug-mv"
19292 msgstr ""
19293
19294 # type: verbatim
19295 #: ../fish/guestfish-actions.pod:312
19296 #, no-wrap
19297 msgid ""
19298 " aug-mv src dest\n"
19299 "\n"
19300 msgstr ""
19301
19302 # type: =head2
19303 #: ../fish/guestfish-actions.pod:317
19304 msgid "aug-rm"
19305 msgstr ""
19306
19307 # type: verbatim
19308 #: ../fish/guestfish-actions.pod:319
19309 #, no-wrap
19310 msgid ""
19311 " aug-rm augpath\n"
19312 "\n"
19313 msgstr ""
19314
19315 # type: =head2
19316 #: ../fish/guestfish-actions.pod:325
19317 msgid "aug-save"
19318 msgstr ""
19319
19320 # type: verbatim
19321 #: ../fish/guestfish-actions.pod:327
19322 #, no-wrap
19323 msgid ""
19324 " aug-save\n"
19325 "\n"
19326 msgstr ""
19327
19328 # type: textblock
19329 #: ../fish/guestfish-actions.pod:331
19330 msgid ""
19331 "The flags which were passed to L</aug-init> affect exactly how files are "
19332 "saved."
19333 msgstr ""
19334
19335 # type: =head2
19336 #: ../fish/guestfish-actions.pod:334
19337 msgid "aug-set"
19338 msgstr ""
19339
19340 # type: verbatim
19341 #: ../fish/guestfish-actions.pod:336
19342 #, no-wrap
19343 msgid ""
19344 " aug-set augpath val\n"
19345 "\n"
19346 msgstr ""
19347
19348 # type: textblock
19349 #: ../fish/guestfish-actions.pod:340
19350 msgid ""
19351 "In the Augeas API, it is possible to clear a node by setting the value to "
19352 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19353 "this call.  Instead you must use the L</aug-clear> call."
19354 msgstr ""
19355
19356 # type: =head2
19357 #: ../fish/guestfish-actions.pod:345
19358 msgid "available"
19359 msgstr ""
19360
19361 # type: verbatim
19362 #: ../fish/guestfish-actions.pod:347
19363 #, no-wrap
19364 msgid ""
19365 " available 'groups ...'\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:353
19371 msgid ""
19372 "The libguestfs groups, and the functions that those groups correspond to, "
19373 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19374 "runtime by calling L</available-all-groups>."
19375 msgstr ""
19376
19377 # type: textblock
19378 #: ../fish/guestfish-actions.pod:377
19379 msgid "You must call L</launch> before calling this function."
19380 msgstr ""
19381
19382 # type: textblock
19383 #: ../fish/guestfish-actions.pod:399
19384 msgid ""
19385 "This call was added in version C<1.0.80>.  In previous versions of "
19386 "libguestfs all you could do would be to speculatively execute a command to "
19387 "find out if the daemon implemented it.  See also L</version>."
19388 msgstr ""
19389
19390 # type: =head2
19391 #: ../fish/guestfish-actions.pod:406
19392 msgid "available-all-groups"
19393 msgstr ""
19394
19395 # type: verbatim
19396 #: ../fish/guestfish-actions.pod:408
19397 #, no-wrap
19398 msgid ""
19399 " available-all-groups\n"
19400 "\n"
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish-actions.pod:410
19405 msgid ""
19406 "This command returns a list of all optional groups that this daemon knows "
19407 "about.  Note this returns both supported and unsupported groups.  To find "
19408 "out which ones the daemon can actually support you have to call L</"
19409 "available> on each member of the returned list."
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:416
19414 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19415 msgstr ""
19416
19417 # type: =head2
19418 #: ../fish/guestfish-actions.pod:418
19419 msgid "base64-in"
19420 msgstr ""
19421
19422 # type: verbatim
19423 #: ../fish/guestfish-actions.pod:420
19424 #, no-wrap
19425 msgid ""
19426 " base64-in (base64file|-) filename\n"
19427 "\n"
19428 msgstr ""
19429
19430 # type: textblock
19431 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19432 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19433 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19434 #: ../fish/guestfish-actions.pod:4006 ../fish/guestfish-actions.pod:4018
19435 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4040
19436 #: ../fish/guestfish-actions.pod:4092 ../fish/guestfish-actions.pod:4101
19437 #: ../fish/guestfish-actions.pod:4155 ../fish/guestfish-actions.pod:4178
19438 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19439 msgstr ""
19440
19441 # type: =head2
19442 #: ../fish/guestfish-actions.pod:427
19443 msgid "base64-out"
19444 msgstr ""
19445
19446 # type: verbatim
19447 #: ../fish/guestfish-actions.pod:429
19448 #, no-wrap
19449 msgid ""
19450 " base64-out filename (base64file|-)\n"
19451 "\n"
19452 msgstr ""
19453
19454 # type: =head2
19455 #: ../fish/guestfish-actions.pod:436
19456 msgid "blockdev-flushbufs"
19457 msgstr ""
19458
19459 # type: verbatim
19460 #: ../fish/guestfish-actions.pod:438
19461 #, no-wrap
19462 msgid ""
19463 " blockdev-flushbufs device\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: =head2
19468 #: ../fish/guestfish-actions.pod:445
19469 msgid "blockdev-getbsz"
19470 msgstr ""
19471
19472 # type: verbatim
19473 #: ../fish/guestfish-actions.pod:447
19474 #, no-wrap
19475 msgid ""
19476 " blockdev-getbsz device\n"
19477 "\n"
19478 msgstr ""
19479
19480 # type: =head2
19481 #: ../fish/guestfish-actions.pod:456
19482 msgid "blockdev-getro"
19483 msgstr ""
19484
19485 # type: verbatim
19486 #: ../fish/guestfish-actions.pod:458
19487 #, no-wrap
19488 msgid ""
19489 " blockdev-getro device\n"
19490 "\n"
19491 msgstr ""
19492
19493 # type: =head2
19494 #: ../fish/guestfish-actions.pod:465
19495 msgid "blockdev-getsize64"
19496 msgstr ""
19497
19498 # type: verbatim
19499 #: ../fish/guestfish-actions.pod:467
19500 #, no-wrap
19501 msgid ""
19502 " blockdev-getsize64 device\n"
19503 "\n"
19504 msgstr ""
19505
19506 # type: textblock
19507 #: ../fish/guestfish-actions.pod:471
19508 msgid "See also L</blockdev-getsz>."
19509 msgstr ""
19510
19511 # type: =head2
19512 #: ../fish/guestfish-actions.pod:475
19513 msgid "blockdev-getss"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #: ../fish/guestfish-actions.pod:477
19518 #, no-wrap
19519 msgid ""
19520 " blockdev-getss device\n"
19521 "\n"
19522 msgstr ""
19523
19524 # type: textblock
19525 #: ../fish/guestfish-actions.pod:482
19526 msgid ""
19527 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19528 msgstr ""
19529
19530 # type: =head2
19531 #: ../fish/guestfish-actions.pod:487
19532 msgid "blockdev-getsz"
19533 msgstr ""
19534
19535 # type: verbatim
19536 #: ../fish/guestfish-actions.pod:489
19537 #, no-wrap
19538 msgid ""
19539 " blockdev-getsz device\n"
19540 "\n"
19541 msgstr ""
19542
19543 # type: textblock
19544 #: ../fish/guestfish-actions.pod:494
19545 msgid ""
19546 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19547 "blockdev-getsize64> for the more useful I<size in bytes>."
19548 msgstr ""
19549
19550 # type: =head2
19551 #: ../fish/guestfish-actions.pod:500
19552 msgid "blockdev-rereadpt"
19553 msgstr ""
19554
19555 # type: verbatim
19556 #: ../fish/guestfish-actions.pod:502
19557 #, no-wrap
19558 msgid ""
19559 " blockdev-rereadpt device\n"
19560 "\n"
19561 msgstr ""
19562
19563 # type: =head2
19564 #: ../fish/guestfish-actions.pod:508
19565 msgid "blockdev-setbsz"
19566 msgstr ""
19567
19568 # type: verbatim
19569 #: ../fish/guestfish-actions.pod:510
19570 #, no-wrap
19571 msgid ""
19572 " blockdev-setbsz device blocksize\n"
19573 "\n"
19574 msgstr ""
19575
19576 # type: =head2
19577 #: ../fish/guestfish-actions.pod:519
19578 msgid "blockdev-setro"
19579 msgstr ""
19580
19581 # type: verbatim
19582 #: ../fish/guestfish-actions.pod:521
19583 #, no-wrap
19584 msgid ""
19585 " blockdev-setro device\n"
19586 "\n"
19587 msgstr ""
19588
19589 # type: =head2
19590 #: ../fish/guestfish-actions.pod:527
19591 msgid "blockdev-setrw"
19592 msgstr ""
19593
19594 # type: verbatim
19595 #: ../fish/guestfish-actions.pod:529
19596 #, no-wrap
19597 msgid ""
19598 " blockdev-setrw device\n"
19599 "\n"
19600 msgstr ""
19601
19602 # type: =head2
19603 #: ../fish/guestfish-actions.pod:535
19604 msgid "case-sensitive-path"
19605 msgstr ""
19606
19607 # type: verbatim
19608 #: ../fish/guestfish-actions.pod:537
19609 #, no-wrap
19610 msgid ""
19611 " case-sensitive-path path\n"
19612 "\n"
19613 msgstr ""
19614
19615 # type: textblock
19616 #: ../fish/guestfish-actions.pod:561
19617 msgid ""
19618 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19619 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19620 "the directories were originally created under Windows)."
19621 msgstr ""
19622
19623 # type: textblock
19624 #: ../fish/guestfish-actions.pod:569
19625 msgid "See also L</realpath>."
19626 msgstr ""
19627
19628 # type: =head2
19629 #: ../fish/guestfish-actions.pod:571
19630 msgid "cat"
19631 msgstr ""
19632
19633 # type: verbatim
19634 #: ../fish/guestfish-actions.pod:573
19635 #, no-wrap
19636 msgid ""
19637 " cat path\n"
19638 "\n"
19639 msgstr ""
19640
19641 # type: textblock
19642 #: ../fish/guestfish-actions.pod:577
19643 msgid ""
19644 "Note that this function cannot correctly handle binary files (specifically, "
19645 "files containing C<\\0> character which is treated as end of string).  For "
19646 "those you need to use the L</read-file> or L</download> functions which have "
19647 "a more complex interface."
19648 msgstr ""
19649
19650 # type: =head2
19651 #: ../fish/guestfish-actions.pod:585
19652 msgid "checksum"
19653 msgstr ""
19654
19655 # type: verbatim
19656 #: ../fish/guestfish-actions.pod:587
19657 #, no-wrap
19658 msgid ""
19659 " checksum csumtype path\n"
19660 "\n"
19661 msgstr ""
19662
19663 # type: textblock
19664 #: ../fish/guestfish-actions.pod:630
19665 msgid "To get the checksum for a device, use L</checksum-device>."
19666 msgstr ""
19667
19668 # type: textblock
19669 #: ../fish/guestfish-actions.pod:632
19670 msgid "To get the checksums for many files, use L</checksums-out>."
19671 msgstr ""
19672
19673 # type: =head2
19674 #: ../fish/guestfish-actions.pod:634
19675 msgid "checksum-device"
19676 msgstr ""
19677
19678 # type: verbatim
19679 #: ../fish/guestfish-actions.pod:636
19680 #, no-wrap
19681 msgid ""
19682 " checksum-device csumtype device\n"
19683 "\n"
19684 msgstr ""
19685
19686 # type: textblock
19687 #: ../fish/guestfish-actions.pod:638
19688 msgid ""
19689 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19690 "device named C<device>.  For the types of checksums supported see the L</"
19691 "checksum> command."
19692 msgstr ""
19693
19694 # type: =head2
19695 #: ../fish/guestfish-actions.pod:642
19696 msgid "checksums-out"
19697 msgstr ""
19698
19699 # type: verbatim
19700 #: ../fish/guestfish-actions.pod:644
19701 #, no-wrap
19702 msgid ""
19703 " checksums-out csumtype directory (sumsfile|-)\n"
19704 "\n"
19705 msgstr ""
19706
19707 # type: =head2
19708 #: ../fish/guestfish-actions.pod:660
19709 msgid "chmod"
19710 msgstr ""
19711
19712 # type: verbatim
19713 #: ../fish/guestfish-actions.pod:662
19714 #, no-wrap
19715 msgid ""
19716 " chmod mode path\n"
19717 "\n"
19718 msgstr ""
19719
19720 # type: =head2
19721 #: ../fish/guestfish-actions.pod:673
19722 msgid "chown"
19723 msgstr ""
19724
19725 # type: verbatim
19726 #: ../fish/guestfish-actions.pod:675
19727 #, no-wrap
19728 msgid ""
19729 " chown owner group path\n"
19730 "\n"
19731 msgstr ""
19732
19733 # type: =head2
19734 #: ../fish/guestfish-actions.pod:683
19735 msgid "command"
19736 msgstr ""
19737
19738 # type: verbatim
19739 #: ../fish/guestfish-actions.pod:685
19740 #, no-wrap
19741 msgid ""
19742 " command 'arguments ...'\n"
19743 "\n"
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:692
19748 msgid ""
19749 "The single parameter is an argv-style list of arguments.  The first element "
19750 "is the name of the program to run.  Subsequent elements are parameters.  The "
19751 "list must be non-empty (ie. must contain a program name).  Note that the "
19752 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19753 msgstr ""
19754
19755 # type: =head2
19756 #: ../fish/guestfish-actions.pod:720
19757 msgid "command-lines"
19758 msgstr ""
19759
19760 # type: verbatim
19761 #: ../fish/guestfish-actions.pod:722
19762 #, no-wrap
19763 msgid ""
19764 " command-lines 'arguments ...'\n"
19765 "\n"
19766 msgstr ""
19767
19768 # type: textblock
19769 #: ../fish/guestfish-actions.pod:724
19770 msgid ""
19771 "This is the same as L</command>, but splits the result into a list of lines."
19772 msgstr ""
19773
19774 # type: textblock
19775 #: ../fish/guestfish-actions.pod:727
19776 msgid "See also: L</sh-lines>"
19777 msgstr ""
19778
19779 # type: =head2
19780 #: ../fish/guestfish-actions.pod:732
19781 msgid "config"
19782 msgstr ""
19783
19784 # type: verbatim
19785 #: ../fish/guestfish-actions.pod:734
19786 #, no-wrap
19787 msgid ""
19788 " config qemuparam qemuvalue\n"
19789 "\n"
19790 msgstr ""
19791
19792 # type: =head2
19793 #: ../fish/guestfish-actions.pod:745
19794 msgid "copy-size"
19795 msgstr ""
19796
19797 # type: verbatim
19798 #: ../fish/guestfish-actions.pod:747
19799 #, no-wrap
19800 msgid ""
19801 " copy-size src dest size\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: =head2
19806 #: ../fish/guestfish-actions.pod:755
19807 msgid "cp"
19808 msgstr ""
19809
19810 # type: verbatim
19811 #: ../fish/guestfish-actions.pod:757
19812 #, no-wrap
19813 msgid ""
19814 " cp src dest\n"
19815 "\n"
19816 msgstr ""
19817
19818 # type: =head2
19819 #: ../fish/guestfish-actions.pod:762
19820 msgid "cp-a"
19821 msgstr ""
19822
19823 # type: verbatim
19824 #: ../fish/guestfish-actions.pod:764
19825 #, no-wrap
19826 msgid ""
19827 " cp-a src dest\n"
19828 "\n"
19829 msgstr ""
19830
19831 # type: =head2
19832 #: ../fish/guestfish-actions.pod:769
19833 msgid "dd"
19834 msgstr ""
19835
19836 # type: verbatim
19837 #: ../fish/guestfish-actions.pod:771
19838 #, no-wrap
19839 msgid ""
19840 " dd src dest\n"
19841 "\n"
19842 msgstr ""
19843
19844 # type: textblock
19845 #: ../fish/guestfish-actions.pod:778
19846 msgid ""
19847 "If the destination is a device, it must be as large or larger than the "
19848 "source file or device, otherwise the copy will fail.  This command cannot do "
19849 "partial copies (see L</copy-size>)."
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:782
19854 msgid "df"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:784
19859 #, no-wrap
19860 msgid ""
19861 " df\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:792
19867 msgid "df-h"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:794
19872 #, no-wrap
19873 msgid ""
19874 " df-h\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:803
19880 msgid "dmesg"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:805
19885 #, no-wrap
19886 msgid ""
19887 " dmesg\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: textblock
19892 #: ../fish/guestfish-actions.pod:811
19893 msgid ""
19894 "Another way to get the same information is to enable verbose messages with "
19895 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19896 "before running the program."
19897 msgstr ""
19898
19899 # type: =head2
19900 #: ../fish/guestfish-actions.pod:816
19901 msgid "download"
19902 msgstr ""
19903
19904 # type: verbatim
19905 #: ../fish/guestfish-actions.pod:818
19906 #, no-wrap
19907 msgid ""
19908 " download remotefilename (filename|-)\n"
19909 "\n"
19910 msgstr ""
19911
19912 # type: textblock
19913 #: ../fish/guestfish-actions.pod:825
19914 msgid "See also L</upload>, L</cat>."
19915 msgstr ""
19916
19917 # type: =head2
19918 #: ../fish/guestfish-actions.pod:829
19919 msgid "download-offset"
19920 msgstr ""
19921
19922 # type: verbatim
19923 #: ../fish/guestfish-actions.pod:831
19924 #, no-wrap
19925 msgid ""
19926 " download-offset remotefilename (filename|-) offset size\n"
19927 "\n"
19928 msgstr ""
19929
19930 # type: textblock
19931 #: ../fish/guestfish-actions.pod:839
19932 msgid ""
19933 "Note that there is no limit on the amount of data that can be downloaded "
19934 "with this call, unlike with L</pread>, and this call always reads the full "
19935 "amount unless an error occurs."
19936 msgstr ""
19937
19938 # type: textblock
19939 #: ../fish/guestfish-actions.pod:844
19940 msgid "See also L</download>, L</pread>."
19941 msgstr ""
19942
19943 # type: =head2
19944 #: ../fish/guestfish-actions.pod:848
19945 msgid "drop-caches"
19946 msgstr ""
19947
19948 # type: verbatim
19949 #: ../fish/guestfish-actions.pod:850
19950 #, no-wrap
19951 msgid ""
19952 " drop-caches whattodrop\n"
19953 "\n"
19954 msgstr ""
19955
19956 # type: =head2
19957 #: ../fish/guestfish-actions.pod:862
19958 msgid "du"
19959 msgstr ""
19960
19961 # type: verbatim
19962 #: ../fish/guestfish-actions.pod:864
19963 #, no-wrap
19964 msgid ""
19965 " du path\n"
19966 "\n"
19967 msgstr ""
19968
19969 # type: =head2
19970 #: ../fish/guestfish-actions.pod:876
19971 msgid "e2fsck-f"
19972 msgstr ""
19973
19974 # type: verbatim
19975 #: ../fish/guestfish-actions.pod:878
19976 #, no-wrap
19977 msgid ""
19978 " e2fsck-f device\n"
19979 "\n"
19980 msgstr ""
19981
19982 # type: textblock
19983 #: ../fish/guestfish-actions.pod:884
19984 msgid ""
19985 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19986 "should use L</fsck>."
19987 msgstr ""
19988
19989 # type: =head2
19990 #: ../fish/guestfish-actions.pod:887
19991 msgid "echo-daemon"
19992 msgstr ""
19993
19994 # type: verbatim
19995 #: ../fish/guestfish-actions.pod:889
19996 #, no-wrap
19997 msgid ""
19998 " echo-daemon 'words ...'\n"
19999 "\n"
20000 msgstr ""
20001
20002 # type: textblock
20003 #: ../fish/guestfish-actions.pod:896
20004 msgid "See also L</ping-daemon>."
20005 msgstr ""
20006
20007 # type: =head2
20008 #: ../fish/guestfish-actions.pod:898
20009 msgid "egrep"
20010 msgstr ""
20011
20012 # type: verbatim
20013 #: ../fish/guestfish-actions.pod:900
20014 #, no-wrap
20015 msgid ""
20016 " egrep regex path\n"
20017 "\n"
20018 msgstr ""
20019
20020 # type: =head2
20021 #: ../fish/guestfish-actions.pod:908
20022 msgid "egrepi"
20023 msgstr ""
20024
20025 # type: verbatim
20026 #: ../fish/guestfish-actions.pod:910
20027 #, no-wrap
20028 msgid ""
20029 " egrepi regex path\n"
20030 "\n"
20031 msgstr ""
20032
20033 # type: =head2
20034 #: ../fish/guestfish-actions.pod:918
20035 msgid "equal"
20036 msgstr ""
20037
20038 # type: verbatim
20039 #: ../fish/guestfish-actions.pod:920
20040 #, no-wrap
20041 msgid ""
20042 " equal file1 file2\n"
20043 "\n"
20044 msgstr ""
20045
20046 # type: =head2
20047 #: ../fish/guestfish-actions.pod:927
20048 msgid "exists"
20049 msgstr ""
20050
20051 # type: verbatim
20052 #: ../fish/guestfish-actions.pod:929
20053 #, no-wrap
20054 msgid ""
20055 " exists path\n"
20056 "\n"
20057 msgstr ""
20058
20059 # type: textblock
20060 #: ../fish/guestfish-actions.pod:934
20061 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20062 msgstr ""
20063
20064 # type: =head2
20065 #: ../fish/guestfish-actions.pod:936
20066 msgid "fallocate"
20067 msgstr ""
20068
20069 # type: verbatim
20070 #: ../fish/guestfish-actions.pod:938
20071 #, no-wrap
20072 msgid ""
20073 " fallocate path len\n"
20074 "\n"
20075 msgstr ""
20076
20077 # type: =head2
20078 #: ../fish/guestfish-actions.pod:955
20079 msgid "fallocate64"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #: ../fish/guestfish-actions.pod:957
20084 #, no-wrap
20085 msgid ""
20086 " fallocate64 path len\n"
20087 "\n"
20088 msgstr ""
20089
20090 # type: textblock
20091 #: ../fish/guestfish-actions.pod:963
20092 msgid ""
20093 "Note that this call allocates disk blocks for the file.  To create a sparse "
20094 "file use L</truncate-size> instead."
20095 msgstr ""
20096
20097 # type: textblock
20098 #: ../fish/guestfish-actions.pod:966
20099 msgid ""
20100 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20101 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20102 "maximum size of files created through that call to 1GB."
20103 msgstr ""
20104
20105 # type: =head2
20106 #: ../fish/guestfish-actions.pod:975
20107 msgid "fgrep"
20108 msgstr ""
20109
20110 # type: verbatim
20111 #: ../fish/guestfish-actions.pod:977
20112 #, no-wrap
20113 msgid ""
20114 " fgrep pattern path\n"
20115 "\n"
20116 msgstr ""
20117
20118 # type: =head2
20119 #: ../fish/guestfish-actions.pod:985
20120 msgid "fgrepi"
20121 msgstr ""
20122
20123 # type: verbatim
20124 #: ../fish/guestfish-actions.pod:987
20125 #, no-wrap
20126 msgid ""
20127 " fgrepi pattern path\n"
20128 "\n"
20129 msgstr ""
20130
20131 # type: =head2
20132 #: ../fish/guestfish-actions.pod:995
20133 msgid "file"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #: ../fish/guestfish-actions.pod:997
20138 #, no-wrap
20139 msgid ""
20140 " file path\n"
20141 "\n"
20142 msgstr ""
20143
20144 # type: textblock
20145 #: ../fish/guestfish-actions.pod:1009
20146 msgid ""
20147 "This command can also be used on C</dev/> devices (and partitions, LV "
20148 "names).  You can for example use this to determine if a device contains a "
20149 "filesystem, although it's usually better to use L</vfs-type>."
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:1019
20154 msgid "file-architecture"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:1021
20159 #, no-wrap
20160 msgid ""
20161 " file-architecture filename\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:1124
20167 msgid "filesize"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:1126
20172 #, no-wrap
20173 msgid ""
20174 " filesize file\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:1130
20180 msgid ""
20181 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20182 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20183 msgstr ""
20184
20185 # type: =head2
20186 #: ../fish/guestfish-actions.pod:1134
20187 msgid "fill"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #: ../fish/guestfish-actions.pod:1136
20192 #, no-wrap
20193 msgid ""
20194 " fill c len path\n"
20195 "\n"
20196 msgstr ""
20197
20198 # type: textblock
20199 #: ../fish/guestfish-actions.pod:1142
20200 msgid ""
20201 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20202 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20203 "L</fill-pattern>."
20204 msgstr ""
20205
20206 # type: =head2
20207 #: ../fish/guestfish-actions.pod:1147
20208 msgid "fill-pattern"
20209 msgstr ""
20210
20211 # type: verbatim
20212 #: ../fish/guestfish-actions.pod:1149
20213 #, no-wrap
20214 msgid ""
20215 " fill-pattern pattern len path\n"
20216 "\n"
20217 msgstr ""
20218
20219 # type: textblock
20220 #: ../fish/guestfish-actions.pod:1151
20221 msgid ""
20222 "This function is like L</fill> except that it creates a new file of length "
20223 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20224 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20225 "bytes."
20226 msgstr ""
20227
20228 # type: =head2
20229 #: ../fish/guestfish-actions.pod:1156
20230 msgid "find"
20231 msgstr ""
20232
20233 # type: verbatim
20234 #: ../fish/guestfish-actions.pod:1158
20235 #, no-wrap
20236 msgid ""
20237 " find directory\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:1172
20243 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20244 msgstr ""
20245
20246 # type: textblock
20247 #: ../fish/guestfish-actions.pod:1185
20248 msgid "See also L</find0>."
20249 msgstr ""
20250
20251 # type: =head2
20252 #: ../fish/guestfish-actions.pod:1190
20253 msgid "find0"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #: ../fish/guestfish-actions.pod:1192
20258 #, no-wrap
20259 msgid ""
20260 " find0 directory (files|-)\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: textblock
20265 #: ../fish/guestfish-actions.pod:1198
20266 msgid ""
20267 "This command works the same way as L</find> with the following exceptions:"
20268 msgstr ""
20269
20270 # type: =head2
20271 #: ../fish/guestfish-actions.pod:1225
20272 msgid "findfs-label"
20273 msgstr ""
20274
20275 # type: verbatim
20276 #: ../fish/guestfish-actions.pod:1227
20277 #, no-wrap
20278 msgid ""
20279 " findfs-label label\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: textblock
20284 #: ../fish/guestfish-actions.pod:1233
20285 msgid "To find the label of a filesystem, use L</vfs-label>."
20286 msgstr ""
20287
20288 # type: =head2
20289 #: ../fish/guestfish-actions.pod:1235
20290 msgid "findfs-uuid"
20291 msgstr ""
20292
20293 # type: verbatim
20294 #: ../fish/guestfish-actions.pod:1237
20295 #, no-wrap
20296 msgid ""
20297 " findfs-uuid uuid\n"
20298 "\n"
20299 msgstr ""
20300
20301 # type: textblock
20302 #: ../fish/guestfish-actions.pod:1243
20303 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20304 msgstr ""
20305
20306 # type: =head2
20307 #: ../fish/guestfish-actions.pod:1245
20308 msgid "fsck"
20309 msgstr ""
20310
20311 # type: verbatim
20312 #: ../fish/guestfish-actions.pod:1247
20313 #, no-wrap
20314 msgid ""
20315 " fsck fstype device\n"
20316 "\n"
20317 msgstr ""
20318
20319 # type: =head2
20320 #: ../fish/guestfish-actions.pod:1277
20321 msgid "get-append"
20322 msgstr ""
20323
20324 # type: verbatim
20325 #: ../fish/guestfish-actions.pod:1279
20326 #, no-wrap
20327 msgid ""
20328 " get-append\n"
20329 "\n"
20330 msgstr ""
20331
20332 # type: =head2
20333 #: ../fish/guestfish-actions.pod:1286
20334 msgid "get-autosync"
20335 msgstr ""
20336
20337 # type: verbatim
20338 #: ../fish/guestfish-actions.pod:1288
20339 #, no-wrap
20340 msgid ""
20341 " get-autosync\n"
20342 "\n"
20343 msgstr ""
20344
20345 # type: =head2
20346 #: ../fish/guestfish-actions.pod:1292
20347 msgid "get-direct"
20348 msgstr ""
20349
20350 # type: verbatim
20351 #: ../fish/guestfish-actions.pod:1294
20352 #, no-wrap
20353 msgid ""
20354 " get-direct\n"
20355 "\n"
20356 msgstr ""
20357
20358 # type: =head2
20359 #: ../fish/guestfish-actions.pod:1298
20360 msgid "get-e2label"
20361 msgstr ""
20362
20363 # type: verbatim
20364 #: ../fish/guestfish-actions.pod:1300
20365 #, no-wrap
20366 msgid ""
20367 " get-e2label device\n"
20368 "\n"
20369 msgstr ""
20370
20371 # type: =head2
20372 #: ../fish/guestfish-actions.pod:1312
20373 msgid "get-e2uuid"
20374 msgstr ""
20375
20376 # type: verbatim
20377 #: ../fish/guestfish-actions.pod:1314
20378 #, no-wrap
20379 msgid ""
20380 " get-e2uuid device\n"
20381 "\n"
20382 msgstr ""
20383
20384 # type: =head2
20385 #: ../fish/guestfish-actions.pod:1326
20386 msgid "get-memsize"
20387 msgstr ""
20388
20389 # type: verbatim
20390 #: ../fish/guestfish-actions.pod:1328
20391 #, no-wrap
20392 msgid ""
20393 " get-memsize\n"
20394 "\n"
20395 msgstr ""
20396
20397 # type: textblock
20398 #: ../fish/guestfish-actions.pod:1333
20399 msgid ""
20400 "If L</set-memsize> was not called on this handle, and if "
20401 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20402 "value for memsize."
20403 msgstr ""
20404
20405 # type: =head2
20406 #: ../fish/guestfish-actions.pod:1340
20407 msgid "get-network"
20408 msgstr ""
20409
20410 # type: verbatim
20411 #: ../fish/guestfish-actions.pod:1342
20412 #, no-wrap
20413 msgid ""
20414 " get-network\n"
20415 "\n"
20416 msgstr ""
20417
20418 # type: =head2
20419 #: ../fish/guestfish-actions.pod:1346
20420 msgid "get-path"
20421 msgstr ""
20422
20423 # type: verbatim
20424 #: ../fish/guestfish-actions.pod:1348
20425 #, no-wrap
20426 msgid ""
20427 " get-path\n"
20428 "\n"
20429 msgstr ""
20430
20431 # type: =head2
20432 #: ../fish/guestfish-actions.pod:1355
20433 msgid "get-pid"
20434 msgstr ""
20435
20436 # type: =head2
20437 #: ../fish/guestfish-actions.pod:1357
20438 msgid "pid"
20439 msgstr ""
20440
20441 # type: verbatim
20442 #: ../fish/guestfish-actions.pod:1359
20443 #, no-wrap
20444 msgid ""
20445 " get-pid\n"
20446 "\n"
20447 msgstr ""
20448
20449 # type: =head2
20450 #: ../fish/guestfish-actions.pod:1366
20451 msgid "get-qemu"
20452 msgstr ""
20453
20454 # type: verbatim
20455 #: ../fish/guestfish-actions.pod:1368
20456 #, no-wrap
20457 msgid ""
20458 " get-qemu\n"
20459 "\n"
20460 msgstr ""
20461
20462 # type: =head2
20463 #: ../fish/guestfish-actions.pod:1375
20464 msgid "get-recovery-proc"
20465 msgstr ""
20466
20467 # type: verbatim
20468 #: ../fish/guestfish-actions.pod:1377
20469 #, no-wrap
20470 msgid ""
20471 " get-recovery-proc\n"
20472 "\n"
20473 msgstr ""
20474
20475 # type: =head2
20476 #: ../fish/guestfish-actions.pod:1381
20477 msgid "get-selinux"
20478 msgstr ""
20479
20480 # type: verbatim
20481 #: ../fish/guestfish-actions.pod:1383
20482 #, no-wrap
20483 msgid ""
20484 " get-selinux\n"
20485 "\n"
20486 msgstr ""
20487
20488 # type: textblock
20489 #: ../fish/guestfish-actions.pod:1385
20490 msgid ""
20491 "This returns the current setting of the selinux flag which is passed to the "
20492 "appliance at boot time.  See L</set-selinux>."
20493 msgstr ""
20494
20495 # type: =head2
20496 #: ../fish/guestfish-actions.pod:1391
20497 msgid "get-state"
20498 msgstr ""
20499
20500 # type: verbatim
20501 #: ../fish/guestfish-actions.pod:1393
20502 #, no-wrap
20503 msgid ""
20504 " get-state\n"
20505 "\n"
20506 msgstr ""
20507
20508 # type: =head2
20509 #: ../fish/guestfish-actions.pod:1400
20510 msgid "get-trace"
20511 msgstr ""
20512
20513 # type: verbatim
20514 #: ../fish/guestfish-actions.pod:1402
20515 #, no-wrap
20516 msgid ""
20517 " get-trace\n"
20518 "\n"
20519 msgstr ""
20520
20521 # type: =head2
20522 #: ../fish/guestfish-actions.pod:1406
20523 msgid "get-umask"
20524 msgstr ""
20525
20526 # type: verbatim
20527 #: ../fish/guestfish-actions.pod:1408
20528 #, no-wrap
20529 msgid ""
20530 " get-umask\n"
20531 "\n"
20532 msgstr ""
20533
20534 # type: textblock
20535 #: ../fish/guestfish-actions.pod:1410
20536 msgid ""
20537 "Return the current umask.  By default the umask is C<022> unless it has been "
20538 "set by calling L</umask>."
20539 msgstr ""
20540
20541 # type: =head2
20542 #: ../fish/guestfish-actions.pod:1413
20543 msgid "get-verbose"
20544 msgstr ""
20545
20546 # type: verbatim
20547 #: ../fish/guestfish-actions.pod:1415
20548 #, no-wrap
20549 msgid ""
20550 " get-verbose\n"
20551 "\n"
20552 msgstr ""
20553
20554 # type: =head2
20555 #: ../fish/guestfish-actions.pod:1419
20556 msgid "getcon"
20557 msgstr ""
20558
20559 # type: verbatim
20560 #: ../fish/guestfish-actions.pod:1421
20561 #, no-wrap
20562 msgid ""
20563 " getcon\n"
20564 "\n"
20565 msgstr ""
20566
20567 # type: textblock
20568 #: ../fish/guestfish-actions.pod:1425
20569 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20570 msgstr ""
20571
20572 # type: =head2
20573 #: ../fish/guestfish-actions.pod:1428
20574 msgid "getxattrs"
20575 msgstr ""
20576
20577 # type: verbatim
20578 #: ../fish/guestfish-actions.pod:1430
20579 #, no-wrap
20580 msgid ""
20581 " getxattrs path\n"
20582 "\n"
20583 msgstr ""
20584
20585 # type: textblock
20586 #: ../fish/guestfish-actions.pod:1438
20587 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20588 msgstr ""
20589
20590 # type: =head2
20591 #: ../fish/guestfish-actions.pod:1440
20592 msgid "glob-expand"
20593 msgstr ""
20594
20595 # type: verbatim
20596 #: ../fish/guestfish-actions.pod:1442
20597 #, no-wrap
20598 msgid ""
20599 " glob-expand pattern\n"
20600 "\n"
20601 msgstr ""
20602
20603 # type: =head2
20604 #: ../fish/guestfish-actions.pod:1455
20605 msgid "grep"
20606 msgstr ""
20607
20608 # type: verbatim
20609 #: ../fish/guestfish-actions.pod:1457
20610 #, no-wrap
20611 msgid ""
20612 " grep regex path\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: =head2
20617 #: ../fish/guestfish-actions.pod:1465
20618 msgid "grepi"
20619 msgstr ""
20620
20621 # type: verbatim
20622 #: ../fish/guestfish-actions.pod:1467
20623 #, no-wrap
20624 msgid ""
20625 " grepi regex path\n"
20626 "\n"
20627 msgstr ""
20628
20629 # type: =head2
20630 #: ../fish/guestfish-actions.pod:1475
20631 msgid "grub-install"
20632 msgstr ""
20633
20634 # type: verbatim
20635 #: ../fish/guestfish-actions.pod:1477
20636 #, no-wrap
20637 msgid ""
20638 " grub-install root device\n"
20639 "\n"
20640 msgstr ""
20641
20642 # type: =head2
20643 #: ../fish/guestfish-actions.pod:1493
20644 msgid "head"
20645 msgstr ""
20646
20647 # type: verbatim
20648 #: ../fish/guestfish-actions.pod:1495
20649 #, no-wrap
20650 msgid ""
20651 " head path\n"
20652 "\n"
20653 msgstr ""
20654
20655 # type: =head2
20656 #: ../fish/guestfish-actions.pod:1503
20657 msgid "head-n"
20658 msgstr ""
20659
20660 # type: verbatim
20661 #: ../fish/guestfish-actions.pod:1505
20662 #, no-wrap
20663 msgid ""
20664 " head-n nrlines path\n"
20665 "\n"
20666 msgstr ""
20667
20668 # type: =head2
20669 #: ../fish/guestfish-actions.pod:1518
20670 msgid "hexdump"
20671 msgstr ""
20672
20673 # type: verbatim
20674 #: ../fish/guestfish-actions.pod:1520
20675 #, no-wrap
20676 msgid ""
20677 " hexdump path\n"
20678 "\n"
20679 msgstr ""
20680
20681 # type: =head2
20682 #: ../fish/guestfish-actions.pod:1528
20683 msgid "initrd-cat"
20684 msgstr ""
20685
20686 # type: verbatim
20687 #: ../fish/guestfish-actions.pod:1530
20688 #, no-wrap
20689 msgid ""
20690 " initrd-cat initrdpath filename\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: textblock
20695 #: ../fish/guestfish-actions.pod:1542
20696 msgid "See also L</initrd-list>."
20697 msgstr ""
20698
20699 # type: =head2
20700 #: ../fish/guestfish-actions.pod:1547
20701 msgid "initrd-list"
20702 msgstr ""
20703
20704 # type: verbatim
20705 #: ../fish/guestfish-actions.pod:1549
20706 #, no-wrap
20707 msgid ""
20708 " initrd-list path\n"
20709 "\n"
20710 msgstr ""
20711
20712 # type: =head2
20713 #: ../fish/guestfish-actions.pod:1561
20714 msgid "inotify-add-watch"
20715 msgstr ""
20716
20717 # type: verbatim
20718 #: ../fish/guestfish-actions.pod:1563
20719 #, no-wrap
20720 msgid ""
20721 " inotify-add-watch path mask\n"
20722 "\n"
20723 msgstr ""
20724
20725 # type: =head2
20726 #: ../fish/guestfish-actions.pod:1575
20727 msgid "inotify-close"
20728 msgstr ""
20729
20730 # type: verbatim
20731 #: ../fish/guestfish-actions.pod:1577
20732 #, no-wrap
20733 msgid ""
20734 " inotify-close\n"
20735 "\n"
20736 msgstr ""
20737
20738 # type: =head2
20739 #: ../fish/guestfish-actions.pod:1583
20740 msgid "inotify-files"
20741 msgstr ""
20742
20743 # type: verbatim
20744 #: ../fish/guestfish-actions.pod:1585
20745 #, no-wrap
20746 msgid ""
20747 " inotify-files\n"
20748 "\n"
20749 msgstr ""
20750
20751 # type: textblock
20752 #: ../fish/guestfish-actions.pod:1587
20753 msgid ""
20754 "This function is a helpful wrapper around L</inotify-read> which just "
20755 "returns a list of pathnames of objects that were touched.  The returned "
20756 "pathnames are sorted and deduplicated."
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:1591
20761 msgid "inotify-init"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:1593
20766 #, no-wrap
20767 msgid ""
20768 " inotify-init maxevents\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:1599
20774 msgid ""
20775 "C<maxevents> is the maximum number of events which will be queued up between "
20776 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20777 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20778 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20779 "but records the fact that it threw them away by setting a flag "
20780 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20781 msgstr ""
20782
20783 # type: textblock
20784 #: ../fish/guestfish-actions.pod:1609
20785 msgid ""
20786 "Before any events are generated, you have to add some watches to the "
20787 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20788 "L</inotify-watch-all>."
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:1615
20793 msgid ""
20794 "Queued up events should be read periodically by calling L</inotify-read> (or "
20795 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20796 "If you don't read the events out often enough then you risk the internal "
20797 "queue overflowing."
20798 msgstr ""
20799
20800 # type: textblock
20801 #: ../fish/guestfish-actions.pod:1622
20802 msgid ""
20803 "The handle should be closed after use by calling L</inotify-close>.  This "
20804 "also removes any watches automatically."
20805 msgstr ""
20806
20807 # type: =head2
20808 #: ../fish/guestfish-actions.pod:1631
20809 msgid "inotify-read"
20810 msgstr ""
20811
20812 # type: verbatim
20813 #: ../fish/guestfish-actions.pod:1633
20814 #, no-wrap
20815 msgid ""
20816 " inotify-read\n"
20817 "\n"
20818 msgstr ""
20819
20820 # type: =head2
20821 #: ../fish/guestfish-actions.pod:1646
20822 msgid "inotify-rm-watch"
20823 msgstr ""
20824
20825 # type: verbatim
20826 #: ../fish/guestfish-actions.pod:1648
20827 #, no-wrap
20828 msgid ""
20829 " inotify-rm-watch wd\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: textblock
20834 #: ../fish/guestfish-actions.pod:1650
20835 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20836 msgstr ""
20837
20838 # type: =head2
20839 #: ../fish/guestfish-actions.pod:1653
20840 msgid "inspect-get-arch"
20841 msgstr ""
20842
20843 # type: verbatim
20844 #: ../fish/guestfish-actions.pod:1655
20845 #, no-wrap
20846 msgid ""
20847 " inspect-get-arch root\n"
20848 "\n"
20849 msgstr ""
20850
20851 # type: textblock
20852 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
20853 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1757
20854 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1793
20855 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1838
20856 #: ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1892
20857 #: ../fish/guestfish-actions.pod:1927
20858 msgid ""
20859 "This function should only be called with a root device string as returned by "
20860 "L</inspect-os>."
20861 msgstr ""
20862
20863 # type: textblock
20864 #: ../fish/guestfish-actions.pod:1660
20865 msgid ""
20866 "This returns the architecture of the inspected operating system.  The "
20867 "possible return values are listed under L</file-architecture>."
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:1669
20872 msgid "inspect-get-distro"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:1671
20877 #, no-wrap
20878 msgid ""
20879 " inspect-get-distro root\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:1735
20885 msgid "inspect-get-filesystems"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:1737
20890 #, no-wrap
20891 msgid ""
20892 " inspect-get-filesystems root\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: textblock
20897 #: ../fish/guestfish-actions.pod:1750
20898 msgid ""
20899 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20900 "get-mountpoints>."
20901 msgstr ""
20902
20903 # type: =head2
20904 #: ../fish/guestfish-actions.pod:1753
20905 msgid "inspect-get-major-version"
20906 msgstr ""
20907
20908 # type: verbatim
20909 #: ../fish/guestfish-actions.pod:1755
20910 #, no-wrap
20911 msgid ""
20912 " inspect-get-major-version root\n"
20913 "\n"
20914 msgstr ""
20915
20916 # type: =head2
20917 #: ../fish/guestfish-actions.pod:1774
20918 msgid "inspect-get-minor-version"
20919 msgstr ""
20920
20921 # type: verbatim
20922 #: ../fish/guestfish-actions.pod:1776
20923 #, no-wrap
20924 msgid ""
20925 " inspect-get-minor-version root\n"
20926 "\n"
20927 msgstr ""
20928
20929 # type: textblock
20930 #: ../fish/guestfish-actions.pod:1786
20931 msgid ""
20932 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20933 "get-major-version>."
20934 msgstr ""
20935
20936 # type: =head2
20937 #: ../fish/guestfish-actions.pod:1789
20938 msgid "inspect-get-mountpoints"
20939 msgstr ""
20940
20941 # type: verbatim
20942 #: ../fish/guestfish-actions.pod:1791
20943 #, no-wrap
20944 msgid ""
20945 " inspect-get-mountpoints root\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: textblock
20950 #: ../fish/guestfish-actions.pod:1809
20951 msgid ""
20952 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20953 "get-filesystems>."
20954 msgstr ""
20955
20956 # type: =head2
20957 #: ../fish/guestfish-actions.pod:1812
20958 msgid "inspect-get-package-format"
20959 msgstr ""
20960
20961 # type: verbatim
20962 #: ../fish/guestfish-actions.pod:1814
20963 #, no-wrap
20964 msgid ""
20965 " inspect-get-package-format root\n"
20966 "\n"
20967 msgstr ""
20968
20969 # type: textblock
20970 #: ../fish/guestfish-actions.pod:1819
20971 msgid ""
20972 "This function and L</inspect-get-package-management> return the package "
20973 "format and package management tool used by the inspected operating system.  "
20974 "For example for Fedora these functions would return C<rpm> (package format) "
20975 "and C<yum> (package management)."
20976 msgstr ""
20977
20978 # type: =head2
20979 #: ../fish/guestfish-actions.pod:1834
20980 msgid "inspect-get-package-management"
20981 msgstr ""
20982
20983 # type: verbatim
20984 #: ../fish/guestfish-actions.pod:1836
20985 #, no-wrap
20986 msgid ""
20987 " inspect-get-package-management root\n"
20988 "\n"
20989 msgstr ""
20990
20991 # type: textblock
20992 #: ../fish/guestfish-actions.pod:1841
20993 msgid ""
20994 "L</inspect-get-package-format> and this function return the package format "
20995 "and package management tool used by the inspected operating system.  For "
20996 "example for Fedora these functions would return C<rpm> (package format) and "
20997 "C<yum> (package management)."
20998 msgstr ""
20999
21000 # type: =head2
21001 #: ../fish/guestfish-actions.pod:1858
21002 msgid "inspect-get-product-name"
21003 msgstr ""
21004
21005 # type: verbatim
21006 #: ../fish/guestfish-actions.pod:1860
21007 #, no-wrap
21008 msgid ""
21009 " inspect-get-product-name root\n"
21010 "\n"
21011 msgstr ""
21012
21013 # type: =head2
21014 #: ../fish/guestfish-actions.pod:1875
21015 msgid "inspect-get-roots"
21016 msgstr ""
21017
21018 # type: verbatim
21019 #: ../fish/guestfish-actions.pod:1877
21020 #, no-wrap
21021 msgid ""
21022 " inspect-get-roots\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: textblock
21027 #: ../fish/guestfish-actions.pod:1879
21028 msgid ""
21029 "This function is a convenient way to get the list of root devices, as "
21030 "returned from a previous call to L</inspect-os>, but without redoing the "
21031 "whole inspection process."
21032 msgstr ""
21033
21034 # type: textblock
21035 #: ../fish/guestfish-actions.pod:1883
21036 msgid ""
21037 "This returns an empty list if either no root devices were found or the "
21038 "caller has not called L</inspect-os>."
21039 msgstr ""
21040
21041 # type: =head2
21042 #: ../fish/guestfish-actions.pod:1888
21043 msgid "inspect-get-type"
21044 msgstr ""
21045
21046 # type: verbatim
21047 #: ../fish/guestfish-actions.pod:1890
21048 #, no-wrap
21049 msgid ""
21050 " inspect-get-type root\n"
21051 "\n"
21052 msgstr ""
21053
21054 # type: =head2
21055 #: ../fish/guestfish-actions.pod:1923
21056 msgid "inspect-get-windows-systemroot"
21057 msgstr ""
21058
21059 # type: verbatim
21060 #: ../fish/guestfish-actions.pod:1925
21061 #, no-wrap
21062 msgid ""
21063 " inspect-get-windows-systemroot root\n"
21064 "\n"
21065 msgstr ""
21066
21067 # type: =head2
21068 #: ../fish/guestfish-actions.pod:1939
21069 msgid "inspect-os"
21070 msgstr ""
21071
21072 # type: verbatim
21073 #: ../fish/guestfish-actions.pod:1941
21074 #, no-wrap
21075 msgid ""
21076 " inspect-os\n"
21077 "\n"
21078 msgstr ""
21079
21080 # type: textblock
21081 #: ../fish/guestfish-actions.pod:1956
21082 msgid ""
21083 "You can pass the root string(s) returned to other L</inspect-get-*> "
21084 "functions in order to query further information about each operating system, "
21085 "such as the name and version."
21086 msgstr ""
21087
21088 # type: textblock
21089 #: ../fish/guestfish-actions.pod:1961
21090 msgid ""
21091 "This function uses other libguestfs features such as L</mount-ro> and L</"
21092 "umount-all> in order to mount and unmount filesystems and look at the "
21093 "contents.  This should be called with no disks currently mounted.  The "
21094 "function may also use Augeas, so any existing Augeas handle will be closed."
21095 msgstr ""
21096
21097 # type: textblock
21098 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:2129
21099 #: ../fish/guestfish-actions.pod:2175
21100 msgid "See also L</list-filesystems>."
21101 msgstr ""
21102
21103 # type: =head2
21104 #: ../fish/guestfish-actions.pod:1975
21105 msgid "is-blockdev"
21106 msgstr ""
21107
21108 # type: verbatim
21109 #: ../fish/guestfish-actions.pod:1977
21110 #, no-wrap
21111 msgid ""
21112 " is-blockdev path\n"
21113 "\n"
21114 msgstr ""
21115
21116 # type: textblock
21117 #: ../fish/guestfish-actions.pod:1982 ../fish/guestfish-actions.pod:2000
21118 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2028
21119 #: ../fish/guestfish-actions.pod:2038 ../fish/guestfish-actions.pod:2072
21120 #: ../fish/guestfish-actions.pod:2081
21121 msgid "See also L</stat>."
21122 msgstr ""
21123
21124 # type: =head2
21125 #: ../fish/guestfish-actions.pod:1984
21126 msgid "is-busy"
21127 msgstr ""
21128
21129 # type: verbatim
21130 #: ../fish/guestfish-actions.pod:1986
21131 #, no-wrap
21132 msgid ""
21133 " is-busy\n"
21134 "\n"
21135 msgstr ""
21136
21137 # type: =head2
21138 #: ../fish/guestfish-actions.pod:1993
21139 msgid "is-chardev"
21140 msgstr ""
21141
21142 # type: verbatim
21143 #: ../fish/guestfish-actions.pod:1995
21144 #, no-wrap
21145 msgid ""
21146 " is-chardev path\n"
21147 "\n"
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:2002
21152 msgid "is-config"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:2004
21157 #, no-wrap
21158 msgid ""
21159 " is-config\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:2011
21165 msgid "is-dir"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:2013
21170 #, no-wrap
21171 msgid ""
21172 " is-dir path\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: =head2
21177 #: ../fish/guestfish-actions.pod:2021
21178 msgid "is-fifo"
21179 msgstr ""
21180
21181 # type: verbatim
21182 #: ../fish/guestfish-actions.pod:2023
21183 #, no-wrap
21184 msgid ""
21185 " is-fifo path\n"
21186 "\n"
21187 msgstr ""
21188
21189 # type: =head2
21190 #: ../fish/guestfish-actions.pod:2030
21191 msgid "is-file"
21192 msgstr ""
21193
21194 # type: verbatim
21195 #: ../fish/guestfish-actions.pod:2032
21196 #, no-wrap
21197 msgid ""
21198 " is-file path\n"
21199 "\n"
21200 msgstr ""
21201
21202 # type: =head2
21203 #: ../fish/guestfish-actions.pod:2040
21204 msgid "is-launching"
21205 msgstr ""
21206
21207 # type: verbatim
21208 #: ../fish/guestfish-actions.pod:2042
21209 #, no-wrap
21210 msgid ""
21211 " is-launching\n"
21212 "\n"
21213 msgstr ""
21214
21215 # type: =head2
21216 #: ../fish/guestfish-actions.pod:2049
21217 msgid "is-lv"
21218 msgstr ""
21219
21220 # type: verbatim
21221 #: ../fish/guestfish-actions.pod:2051
21222 #, no-wrap
21223 msgid ""
21224 " is-lv device\n"
21225 "\n"
21226 msgstr ""
21227
21228 # type: =head2
21229 #: ../fish/guestfish-actions.pod:2056
21230 msgid "is-ready"
21231 msgstr ""
21232
21233 # type: verbatim
21234 #: ../fish/guestfish-actions.pod:2058
21235 #, no-wrap
21236 msgid ""
21237 " is-ready\n"
21238 "\n"
21239 msgstr ""
21240
21241 # type: =head2
21242 #: ../fish/guestfish-actions.pod:2065
21243 msgid "is-socket"
21244 msgstr ""
21245
21246 # type: verbatim
21247 #: ../fish/guestfish-actions.pod:2067
21248 #, no-wrap
21249 msgid ""
21250 " is-socket path\n"
21251 "\n"
21252 msgstr ""
21253
21254 # type: =head2
21255 #: ../fish/guestfish-actions.pod:2074
21256 msgid "is-symlink"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #: ../fish/guestfish-actions.pod:2076
21261 #, no-wrap
21262 msgid ""
21263 " is-symlink path\n"
21264 "\n"
21265 msgstr ""
21266
21267 # type: =head2
21268 #: ../fish/guestfish-actions.pod:2083
21269 msgid "kill-subprocess"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #: ../fish/guestfish-actions.pod:2085
21274 #, no-wrap
21275 msgid ""
21276 " kill-subprocess\n"
21277 "\n"
21278 msgstr ""
21279
21280 # type: =head2
21281 #: ../fish/guestfish-actions.pod:2089
21282 msgid "launch"
21283 msgstr ""
21284
21285 # type: =head2
21286 #: ../fish/guestfish-actions.pod:2091
21287 msgid "run"
21288 msgstr ""
21289
21290 # type: verbatim
21291 #: ../fish/guestfish-actions.pod:2093
21292 #, no-wrap
21293 msgid ""
21294 " launch\n"
21295 "\n"
21296 msgstr ""
21297
21298 # type: =head2
21299 #: ../fish/guestfish-actions.pod:2101
21300 msgid "lchown"
21301 msgstr ""
21302
21303 # type: verbatim
21304 #: ../fish/guestfish-actions.pod:2103
21305 #, no-wrap
21306 msgid ""
21307 " lchown owner group path\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #: ../fish/guestfish-actions.pod:2105
21313 msgid ""
21314 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21315 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21316 "target."
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:2113
21321 msgid "lgetxattrs"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #: ../fish/guestfish-actions.pod:2115
21326 #, no-wrap
21327 msgid ""
21328 " lgetxattrs path\n"
21329 "\n"
21330 msgstr ""
21331
21332 # type: textblock
21333 #: ../fish/guestfish-actions.pod:2117
21334 msgid ""
21335 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21336 "it returns the extended attributes of the link itself."
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:2121
21341 msgid "list-devices"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:2123
21346 #, no-wrap
21347 msgid ""
21348 " list-devices\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: =head2
21353 #: ../fish/guestfish-actions.pod:2131
21354 msgid "list-filesystems"
21355 msgstr ""
21356
21357 # type: verbatim
21358 #: ../fish/guestfish-actions.pod:2133
21359 #, no-wrap
21360 msgid ""
21361 " list-filesystems\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: textblock
21366 #: ../fish/guestfish-actions.pod:2152
21367 msgid ""
21368 "This command runs other libguestfs commands, which might include L</mount> "
21369 "and L</umount>, and therefore you should use this soon after launch and only "
21370 "when nothing is mounted."
21371 msgstr ""
21372
21373 # type: textblock
21374 #: ../fish/guestfish-actions.pod:2156
21375 msgid ""
21376 "Not all of the filesystems returned will be mountable.  In particular, swap "
21377 "partitions are returned in the list.  Also this command does not check that "
21378 "each filesystem found is valid and mountable, and some filesystems might be "
21379 "mountable but require special options.  Filesystems may not all belong to a "
21380 "single logical operating system (use L</inspect-os> to look for OSes)."
21381 msgstr ""
21382
21383 # type: =head2
21384 #: ../fish/guestfish-actions.pod:2164
21385 msgid "list-partitions"
21386 msgstr ""
21387
21388 # type: verbatim
21389 #: ../fish/guestfish-actions.pod:2166
21390 #, no-wrap
21391 msgid ""
21392 " list-partitions\n"
21393 "\n"
21394 msgstr ""
21395
21396 # type: textblock
21397 #: ../fish/guestfish-actions.pod:2172
21398 msgid ""
21399 "This does not return logical volumes.  For that you will need to call L</"
21400 "lvs>."
21401 msgstr ""
21402
21403 # type: =head2
21404 #: ../fish/guestfish-actions.pod:2177
21405 msgid "ll"
21406 msgstr ""
21407
21408 # type: verbatim
21409 #: ../fish/guestfish-actions.pod:2179
21410 #, no-wrap
21411 msgid ""
21412 " ll directory\n"
21413 "\n"
21414 msgstr ""
21415
21416 # type: =head2
21417 #: ../fish/guestfish-actions.pod:2187
21418 msgid "ln"
21419 msgstr ""
21420
21421 # type: verbatim
21422 #: ../fish/guestfish-actions.pod:2189
21423 #, no-wrap
21424 msgid ""
21425 " ln target linkname\n"
21426 "\n"
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:2193
21431 msgid "ln-f"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #: ../fish/guestfish-actions.pod:2195
21436 #, no-wrap
21437 msgid ""
21438 " ln-f target linkname\n"
21439 "\n"
21440 msgstr ""
21441
21442 # type: =head2
21443 #: ../fish/guestfish-actions.pod:2200
21444 msgid "ln-s"
21445 msgstr ""
21446
21447 # type: verbatim
21448 #: ../fish/guestfish-actions.pod:2202
21449 #, no-wrap
21450 msgid ""
21451 " ln-s target linkname\n"
21452 "\n"
21453 msgstr ""
21454
21455 # type: =head2
21456 #: ../fish/guestfish-actions.pod:2206
21457 msgid "ln-sf"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #: ../fish/guestfish-actions.pod:2208
21462 #, no-wrap
21463 msgid ""
21464 " ln-sf target linkname\n"
21465 "\n"
21466 msgstr ""
21467
21468 # type: =head2
21469 #: ../fish/guestfish-actions.pod:2213
21470 msgid "lremovexattr"
21471 msgstr ""
21472
21473 # type: verbatim
21474 #: ../fish/guestfish-actions.pod:2215
21475 #, no-wrap
21476 msgid ""
21477 " lremovexattr xattr path\n"
21478 "\n"
21479 msgstr ""
21480
21481 # type: textblock
21482 #: ../fish/guestfish-actions.pod:2217
21483 msgid ""
21484 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21485 "it removes an extended attribute of the link itself."
21486 msgstr ""
21487
21488 # type: =head2
21489 #: ../fish/guestfish-actions.pod:2221
21490 msgid "ls"
21491 msgstr ""
21492
21493 # type: verbatim
21494 #: ../fish/guestfish-actions.pod:2223
21495 #, no-wrap
21496 msgid ""
21497 " ls directory\n"
21498 "\n"
21499 msgstr ""
21500
21501 # type: textblock
21502 #: ../fish/guestfish-actions.pod:2229
21503 msgid ""
21504 "This command is mostly useful for interactive sessions.  Programs should "
21505 "probably use L</readdir> instead."
21506 msgstr ""
21507
21508 # type: =head2
21509 #: ../fish/guestfish-actions.pod:2232
21510 msgid "lsetxattr"
21511 msgstr ""
21512
21513 # type: verbatim
21514 #: ../fish/guestfish-actions.pod:2234
21515 #, no-wrap
21516 msgid ""
21517 " lsetxattr xattr val vallen path\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: textblock
21522 #: ../fish/guestfish-actions.pod:2236
21523 msgid ""
21524 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21525 "sets an extended attribute of the link itself."
21526 msgstr ""
21527
21528 # type: =head2
21529 #: ../fish/guestfish-actions.pod:2240
21530 msgid "lstat"
21531 msgstr ""
21532
21533 # type: verbatim
21534 #: ../fish/guestfish-actions.pod:2242
21535 #, no-wrap
21536 msgid ""
21537 " lstat path\n"
21538 "\n"
21539 msgstr ""
21540
21541 # type: textblock
21542 #: ../fish/guestfish-actions.pod:2246
21543 msgid ""
21544 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21545 "the link is stat-ed, not the file it refers to."
21546 msgstr ""
21547
21548 # type: =head2
21549 #: ../fish/guestfish-actions.pod:2252
21550 msgid "lstatlist"
21551 msgstr ""
21552
21553 # type: verbatim
21554 #: ../fish/guestfish-actions.pod:2254
21555 #, no-wrap
21556 msgid ""
21557 " lstatlist path 'names ...'\n"
21558 "\n"
21559 msgstr ""
21560
21561 # type: textblock
21562 #: ../fish/guestfish-actions.pod:2256
21563 msgid ""
21564 "This call allows you to perform the L</lstat> operation on multiple files, "
21565 "where all files are in the directory C<path>.  C<names> is the list of files "
21566 "from this directory."
21567 msgstr ""
21568
21569 # type: textblock
21570 #: ../fish/guestfish-actions.pod:2265
21571 msgid ""
21572 "This call is intended for programs that want to efficiently list a directory "
21573 "contents without making many round-trips.  See also L</lxattrlist> for a "
21574 "similarly efficient call for getting extended attributes.  Very long "
21575 "directory listings might cause the protocol message size to be exceeded, "
21576 "causing this call to fail.  The caller must split up such requests into "
21577 "smaller groups of names."
21578 msgstr ""
21579
21580 # type: =head2
21581 #: ../fish/guestfish-actions.pod:2273
21582 msgid "luks-add-key"
21583 msgstr ""
21584
21585 # type: verbatim
21586 #: ../fish/guestfish-actions.pod:2275
21587 #, no-wrap
21588 msgid ""
21589 " luks-add-key device keyslot\n"
21590 "\n"
21591 msgstr ""
21592
21593 # type: textblock
21594 #: ../fish/guestfish-actions.pod:2282
21595 msgid ""
21596 "Note that if C<keyslot> already contains a key, then this command will "
21597 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21598 msgstr ""
21599
21600 # type: textblock
21601 #: ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2308
21602 #: ../fish/guestfish-actions.pod:2321 ../fish/guestfish-actions.pod:2335
21603 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2368
21604 msgid ""
21605 "This command has one or more key or passphrase parameters.  Guestfish will "
21606 "prompt for these separately."
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:2289
21611 msgid "luks-close"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:2291
21616 #, no-wrap
21617 msgid ""
21618 " luks-close device\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: textblock
21623 #: ../fish/guestfish-actions.pod:2293
21624 msgid ""
21625 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21626 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21627 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21628 "block device."
21629 msgstr ""
21630
21631 # type: =head2
21632 #: ../fish/guestfish-actions.pod:2299
21633 msgid "luks-format"
21634 msgstr ""
21635
21636 # type: verbatim
21637 #: ../fish/guestfish-actions.pod:2301
21638 #, no-wrap
21639 msgid ""
21640 " luks-format device keyslot\n"
21641 "\n"
21642 msgstr ""
21643
21644 # type: =head2
21645 #: ../fish/guestfish-actions.pod:2314
21646 msgid "luks-format-cipher"
21647 msgstr ""
21648
21649 # type: verbatim
21650 #: ../fish/guestfish-actions.pod:2316
21651 #, no-wrap
21652 msgid ""
21653 " luks-format-cipher device keyslot cipher\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: textblock
21658 #: ../fish/guestfish-actions.pod:2318
21659 msgid ""
21660 "This command is the same as L</luks-format> but it also allows you to set "
21661 "the C<cipher> used."
21662 msgstr ""
21663
21664 # type: =head2
21665 #: ../fish/guestfish-actions.pod:2327
21666 msgid "luks-kill-slot"
21667 msgstr ""
21668
21669 # type: verbatim
21670 #: ../fish/guestfish-actions.pod:2329
21671 #, no-wrap
21672 msgid ""
21673 " luks-kill-slot device keyslot\n"
21674 "\n"
21675 msgstr ""
21676
21677 # type: =head2
21678 #: ../fish/guestfish-actions.pod:2338
21679 msgid "luks-open"
21680 msgstr ""
21681
21682 # type: verbatim
21683 #: ../fish/guestfish-actions.pod:2340
21684 #, no-wrap
21685 msgid ""
21686 " luks-open device mapname\n"
21687 "\n"
21688 msgstr ""
21689
21690 # type: textblock
21691 #: ../fish/guestfish-actions.pod:2354
21692 msgid ""
21693 "If this block device contains LVM volume groups, then calling L</vgscan> "
21694 "followed by L</vg-activate-all> will make them visible."
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2361
21699 msgid "luks-open-ro"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2363
21704 #, no-wrap
21705 msgid ""
21706 " luks-open-ro device mapname\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: textblock
21711 #: ../fish/guestfish-actions.pod:2365
21712 msgid ""
21713 "This is the same as L</luks-open> except that a read-only mapping is created."
21714 msgstr ""
21715
21716 # type: =head2
21717 #: ../fish/guestfish-actions.pod:2371
21718 msgid "lvcreate"
21719 msgstr ""
21720
21721 # type: verbatim
21722 #: ../fish/guestfish-actions.pod:2373
21723 #, no-wrap
21724 msgid ""
21725 " lvcreate logvol volgroup mbytes\n"
21726 "\n"
21727 msgstr ""
21728
21729 # type: =head2
21730 #: ../fish/guestfish-actions.pod:2378
21731 msgid "lvm-canonical-lv-name"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #: ../fish/guestfish-actions.pod:2380
21736 #, no-wrap
21737 msgid ""
21738 " lvm-canonical-lv-name lvname\n"
21739 "\n"
21740 msgstr ""
21741
21742 # type: textblock
21743 #: ../fish/guestfish-actions.pod:2389
21744 msgid "See also L</is-lv>."
21745 msgstr ""
21746
21747 # type: =head2
21748 #: ../fish/guestfish-actions.pod:2391
21749 msgid "lvm-clear-filter"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #: ../fish/guestfish-actions.pod:2393
21754 #, no-wrap
21755 msgid ""
21756 " lvm-clear-filter\n"
21757 "\n"
21758 msgstr ""
21759
21760 # type: textblock
21761 #: ../fish/guestfish-actions.pod:2395
21762 msgid ""
21763 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21764 "block device."
21765 msgstr ""
21766
21767 # type: =head2
21768 #: ../fish/guestfish-actions.pod:2401
21769 msgid "lvm-remove-all"
21770 msgstr ""
21771
21772 # type: verbatim
21773 #: ../fish/guestfish-actions.pod:2403
21774 #, no-wrap
21775 msgid ""
21776 " lvm-remove-all\n"
21777 "\n"
21778 msgstr ""
21779
21780 # type: =head2
21781 #: ../fish/guestfish-actions.pod:2411
21782 msgid "lvm-set-filter"
21783 msgstr ""
21784
21785 # type: verbatim
21786 #: ../fish/guestfish-actions.pod:2413
21787 #, no-wrap
21788 msgid ""
21789 " lvm-set-filter 'devices ...'\n"
21790 "\n"
21791 msgstr ""
21792
21793 # type: =head2
21794 #: ../fish/guestfish-actions.pod:2438
21795 msgid "lvremove"
21796 msgstr ""
21797
21798 # type: verbatim
21799 #: ../fish/guestfish-actions.pod:2440
21800 #, no-wrap
21801 msgid ""
21802 " lvremove device\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: =head2
21807 #: ../fish/guestfish-actions.pod:2448
21808 msgid "lvrename"
21809 msgstr ""
21810
21811 # type: verbatim
21812 #: ../fish/guestfish-actions.pod:2450
21813 #, no-wrap
21814 msgid ""
21815 " lvrename logvol newlogvol\n"
21816 "\n"
21817 msgstr ""
21818
21819 # type: =head2
21820 #: ../fish/guestfish-actions.pod:2454
21821 msgid "lvresize"
21822 msgstr ""
21823
21824 # type: verbatim
21825 #: ../fish/guestfish-actions.pod:2456
21826 #, no-wrap
21827 msgid ""
21828 " lvresize device mbytes\n"
21829 "\n"
21830 msgstr ""
21831
21832 # type: =head2
21833 #: ../fish/guestfish-actions.pod:2462
21834 msgid "lvresize-free"
21835 msgstr ""
21836
21837 # type: verbatim
21838 #: ../fish/guestfish-actions.pod:2464
21839 #, no-wrap
21840 msgid ""
21841 " lvresize-free lv percent\n"
21842 "\n"
21843 msgstr ""
21844
21845 # type: =head2
21846 #: ../fish/guestfish-actions.pod:2472
21847 msgid "lvs"
21848 msgstr ""
21849
21850 # type: verbatim
21851 #: ../fish/guestfish-actions.pod:2474
21852 #, no-wrap
21853 msgid ""
21854 " lvs\n"
21855 "\n"
21856 msgstr ""
21857
21858 # type: textblock
21859 #: ../fish/guestfish-actions.pod:2482
21860 msgid "See also L</lvs-full>, L</list-filesystems>."
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:2484
21865 msgid "lvs-full"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:2486
21870 #, no-wrap
21871 msgid ""
21872 " lvs-full\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: =head2
21877 #: ../fish/guestfish-actions.pod:2491
21878 msgid "lvuuid"
21879 msgstr ""
21880
21881 # type: verbatim
21882 #: ../fish/guestfish-actions.pod:2493
21883 #, no-wrap
21884 msgid ""
21885 " lvuuid device\n"
21886 "\n"
21887 msgstr ""
21888
21889 # type: =head2
21890 #: ../fish/guestfish-actions.pod:2497
21891 msgid "lxattrlist"
21892 msgstr ""
21893
21894 # type: verbatim
21895 #: ../fish/guestfish-actions.pod:2499
21896 #, no-wrap
21897 msgid ""
21898 " lxattrlist path 'names ...'\n"
21899 "\n"
21900 msgstr ""
21901
21902 # type: textblock
21903 #: ../fish/guestfish-actions.pod:2515
21904 msgid ""
21905 "This call is intended for programs that want to efficiently list a directory "
21906 "contents without making many round-trips.  See also L</lstatlist> for a "
21907 "similarly efficient call for getting standard stats.  Very long directory "
21908 "listings might cause the protocol message size to be exceeded, causing this "
21909 "call to fail.  The caller must split up such requests into smaller groups of "
21910 "names."
21911 msgstr ""
21912
21913 # type: =head2
21914 #: ../fish/guestfish-actions.pod:2523
21915 msgid "mkdir"
21916 msgstr ""
21917
21918 # type: verbatim
21919 #: ../fish/guestfish-actions.pod:2525
21920 #, no-wrap
21921 msgid ""
21922 " mkdir path\n"
21923 "\n"
21924 msgstr ""
21925
21926 # type: =head2
21927 #: ../fish/guestfish-actions.pod:2529
21928 msgid "mkdir-mode"
21929 msgstr ""
21930
21931 # type: verbatim
21932 #: ../fish/guestfish-actions.pod:2531
21933 #, no-wrap
21934 msgid ""
21935 " mkdir-mode path mode\n"
21936 "\n"
21937 msgstr ""
21938
21939 # type: textblock
21940 #: ../fish/guestfish-actions.pod:2540
21941 msgid "See also L</mkdir>, L</umask>"
21942 msgstr ""
21943
21944 # type: =head2
21945 #: ../fish/guestfish-actions.pod:2542
21946 msgid "mkdir-p"
21947 msgstr ""
21948
21949 # type: verbatim
21950 #: ../fish/guestfish-actions.pod:2544
21951 #, no-wrap
21952 msgid ""
21953 " mkdir-p path\n"
21954 "\n"
21955 msgstr ""
21956
21957 # type: =head2
21958 #: ../fish/guestfish-actions.pod:2549
21959 msgid "mkdtemp"
21960 msgstr ""
21961
21962 # type: verbatim
21963 #: ../fish/guestfish-actions.pod:2551
21964 #, no-wrap
21965 msgid ""
21966 " mkdtemp template\n"
21967 "\n"
21968 msgstr ""
21969
21970 # type: =head2
21971 #: ../fish/guestfish-actions.pod:2572
21972 msgid "mke2fs-J"
21973 msgstr ""
21974
21975 # type: verbatim
21976 #: ../fish/guestfish-actions.pod:2574
21977 #, no-wrap
21978 msgid ""
21979 " mke2fs-J fstype blocksize device journal\n"
21980 "\n"
21981 msgstr ""
21982
21983 # type: textblock
21984 #: ../fish/guestfish-actions.pod:2582
21985 msgid "See also L</mke2journal>."
21986 msgstr ""
21987
21988 # type: =head2
21989 #: ../fish/guestfish-actions.pod:2584
21990 msgid "mke2fs-JL"
21991 msgstr ""
21992
21993 # type: verbatim
21994 #: ../fish/guestfish-actions.pod:2586
21995 #, no-wrap
21996 msgid ""
21997 " mke2fs-JL fstype blocksize device label\n"
21998 "\n"
21999 msgstr ""
22000
22001 # type: textblock
22002 #: ../fish/guestfish-actions.pod:2591
22003 msgid "See also L</mke2journal-L>."
22004 msgstr ""
22005
22006 # type: =head2
22007 #: ../fish/guestfish-actions.pod:2593
22008 msgid "mke2fs-JU"
22009 msgstr ""
22010
22011 # type: verbatim
22012 #: ../fish/guestfish-actions.pod:2595
22013 #, no-wrap
22014 msgid ""
22015 " mke2fs-JU fstype blocksize device uuid\n"
22016 "\n"
22017 msgstr ""
22018
22019 # type: textblock
22020 #: ../fish/guestfish-actions.pod:2600
22021 msgid "See also L</mke2journal-U>."
22022 msgstr ""
22023
22024 # type: =head2
22025 #: ../fish/guestfish-actions.pod:2602
22026 msgid "mke2journal"
22027 msgstr ""
22028
22029 # type: verbatim
22030 #: ../fish/guestfish-actions.pod:2604
22031 #, no-wrap
22032 msgid ""
22033 " mke2journal blocksize device\n"
22034 "\n"
22035 msgstr ""
22036
22037 # type: =head2
22038 #: ../fish/guestfish-actions.pod:2611
22039 msgid "mke2journal-L"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #: ../fish/guestfish-actions.pod:2613
22044 #, no-wrap
22045 msgid ""
22046 " mke2journal-L blocksize label device\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: =head2
22051 #: ../fish/guestfish-actions.pod:2617
22052 msgid "mke2journal-U"
22053 msgstr ""
22054
22055 # type: verbatim
22056 #: ../fish/guestfish-actions.pod:2619
22057 #, no-wrap
22058 msgid ""
22059 " mke2journal-U blocksize uuid device\n"
22060 "\n"
22061 msgstr ""
22062
22063 # type: =head2
22064 #: ../fish/guestfish-actions.pod:2623
22065 msgid "mkfifo"
22066 msgstr ""
22067
22068 # type: verbatim
22069 #: ../fish/guestfish-actions.pod:2625
22070 #, no-wrap
22071 msgid ""
22072 " mkfifo mode path\n"
22073 "\n"
22074 msgstr ""
22075
22076 # type: textblock
22077 #: ../fish/guestfish-actions.pod:2627
22078 msgid ""
22079 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22080 "is just a convenient wrapper around L</mknod>."
22081 msgstr ""
22082
22083 # type: =head2
22084 #: ../fish/guestfish-actions.pod:2633
22085 msgid "mkfs"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #: ../fish/guestfish-actions.pod:2635
22090 #, no-wrap
22091 msgid ""
22092 " mkfs fstype device\n"
22093 "\n"
22094 msgstr ""
22095
22096 # type: =head2
22097 #: ../fish/guestfish-actions.pod:2641
22098 msgid "mkfs-b"
22099 msgstr ""
22100
22101 # type: verbatim
22102 #: ../fish/guestfish-actions.pod:2643
22103 #, no-wrap
22104 msgid ""
22105 " mkfs-b fstype blocksize device\n"
22106 "\n"
22107 msgstr ""
22108
22109 # type: textblock
22110 #: ../fish/guestfish-actions.pod:2645
22111 msgid ""
22112 "This call is similar to L</mkfs>, but it allows you to control the block "
22113 "size of the resulting filesystem.  Supported block sizes depend on the "
22114 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22115 msgstr ""
22116
22117 # type: =head2
22118 #: ../fish/guestfish-actions.pod:2653
22119 msgid "mkmountpoint"
22120 msgstr ""
22121
22122 # type: verbatim
22123 #: ../fish/guestfish-actions.pod:2655
22124 #, no-wrap
22125 msgid ""
22126 " mkmountpoint exemptpath\n"
22127 "\n"
22128 msgstr ""
22129
22130 # type: textblock
22131 #: ../fish/guestfish-actions.pod:2657
22132 msgid ""
22133 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22134 "to create extra mountpoints before mounting the first filesystem."
22135 msgstr ""
22136
22137 # type: textblock
22138 #: ../fish/guestfish-actions.pod:2681
22139 msgid ""
22140 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22141 "unexpected errors if you try to mix these calls.  It is safest to manually "
22142 "unmount filesystems and remove mountpoints after use."
22143 msgstr ""
22144
22145 # type: textblock
22146 #: ../fish/guestfish-actions.pod:2685
22147 msgid ""
22148 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22149 "for this to work for manual mountpoints, you must ensure that the innermost "
22150 "mountpoints have the longest pathnames, as in the example code above."
22151 msgstr ""
22152
22153 # type: textblock
22154 #: ../fish/guestfish-actions.pod:2692
22155 msgid ""
22156 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22157 "that L</umount-all> is called when the handle is closed which can also "
22158 "trigger these issues."
22159 msgstr ""
22160
22161 # type: =head2
22162 #: ../fish/guestfish-actions.pod:2696
22163 msgid "mknod"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #: ../fish/guestfish-actions.pod:2698
22168 #, no-wrap
22169 msgid ""
22170 " mknod mode devmajor devminor path\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: textblock
22175 #: ../fish/guestfish-actions.pod:2708
22176 msgid ""
22177 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22178 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22179 "regular file).  These constants are available in the standard Linux header "
22180 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22181 "wrappers around this command which bitwise OR in the appropriate constant "
22182 "for you."
22183 msgstr ""
22184
22185 # type: =head2
22186 #: ../fish/guestfish-actions.pod:2718
22187 msgid "mknod-b"
22188 msgstr ""
22189
22190 # type: verbatim
22191 #: ../fish/guestfish-actions.pod:2720
22192 #, no-wrap
22193 msgid ""
22194 " mknod-b mode devmajor devminor path\n"
22195 "\n"
22196 msgstr ""
22197
22198 # type: textblock
22199 #: ../fish/guestfish-actions.pod:2722
22200 msgid ""
22201 "This call creates a block device node called C<path> with mode C<mode> and "
22202 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22203 "wrapper around L</mknod>."
22204 msgstr ""
22205
22206 # type: =head2
22207 #: ../fish/guestfish-actions.pod:2728
22208 msgid "mknod-c"
22209 msgstr ""
22210
22211 # type: verbatim
22212 #: ../fish/guestfish-actions.pod:2730
22213 #, no-wrap
22214 msgid ""
22215 " mknod-c mode devmajor devminor path\n"
22216 "\n"
22217 msgstr ""
22218
22219 # type: textblock
22220 #: ../fish/guestfish-actions.pod:2732
22221 msgid ""
22222 "This call creates a char device node called C<path> with mode C<mode> and "
22223 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22224 "wrapper around L</mknod>."
22225 msgstr ""
22226
22227 # type: =head2
22228 #: ../fish/guestfish-actions.pod:2738
22229 msgid "mkswap"
22230 msgstr ""
22231
22232 # type: verbatim
22233 #: ../fish/guestfish-actions.pod:2740
22234 #, no-wrap
22235 msgid ""
22236 " mkswap device\n"
22237 "\n"
22238 msgstr ""
22239
22240 # type: =head2
22241 #: ../fish/guestfish-actions.pod:2744
22242 msgid "mkswap-L"
22243 msgstr ""
22244
22245 # type: verbatim
22246 #: ../fish/guestfish-actions.pod:2746
22247 #, no-wrap
22248 msgid ""
22249 " mkswap-L label device\n"
22250 "\n"
22251 msgstr ""
22252
22253 # type: =head2
22254 #: ../fish/guestfish-actions.pod:2754
22255 msgid "mkswap-U"
22256 msgstr ""
22257
22258 # type: verbatim
22259 #: ../fish/guestfish-actions.pod:2756
22260 #, no-wrap
22261 msgid ""
22262 " mkswap-U uuid device\n"
22263 "\n"
22264 msgstr ""
22265
22266 # type: =head2
22267 #: ../fish/guestfish-actions.pod:2760
22268 msgid "mkswap-file"
22269 msgstr ""
22270
22271 # type: verbatim
22272 #: ../fish/guestfish-actions.pod:2762
22273 #, no-wrap
22274 msgid ""
22275 " mkswap-file path\n"
22276 "\n"
22277 msgstr ""
22278
22279 # type: textblock
22280 #: ../fish/guestfish-actions.pod:2766
22281 msgid ""
22282 "This command just writes a swap file signature to an existing file.  To "
22283 "create the file itself, use something like L</fallocate>."
22284 msgstr ""
22285
22286 # type: =head2
22287 #: ../fish/guestfish-actions.pod:2769
22288 msgid "modprobe"
22289 msgstr ""
22290
22291 # type: verbatim
22292 #: ../fish/guestfish-actions.pod:2771
22293 #, no-wrap
22294 msgid ""
22295 " modprobe modulename\n"
22296 "\n"
22297 msgstr ""
22298
22299 # type: =head2
22300 #: ../fish/guestfish-actions.pod:2778
22301 msgid "mount"
22302 msgstr ""
22303
22304 # type: verbatim
22305 #: ../fish/guestfish-actions.pod:2780
22306 #, no-wrap
22307 msgid ""
22308 " mount device mountpoint\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: textblock
22313 #: ../fish/guestfish-actions.pod:2796
22314 msgid ""
22315 "B<Important note:> When you use this call, the filesystem options C<sync> "
22316 "and C<noatime> are set implicitly.  This was originally done because we "
22317 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22318 "very large negative performance impact and negligible effect on "
22319 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22320 "code that needs performance, and instead use L</mount-options> (use an empty "
22321 "string for the first parameter if you don't want any options)."
22322 msgstr ""
22323
22324 # type: =head2
22325 #: ../fish/guestfish-actions.pod:2806
22326 msgid "mount-loop"
22327 msgstr ""
22328
22329 # type: verbatim
22330 #: ../fish/guestfish-actions.pod:2808
22331 #, no-wrap
22332 msgid ""
22333 " mount-loop file mountpoint\n"
22334 "\n"
22335 msgstr ""
22336
22337 # type: =head2
22338 #: ../fish/guestfish-actions.pod:2814
22339 msgid "mount-options"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #: ../fish/guestfish-actions.pod:2816
22344 #, no-wrap
22345 msgid ""
22346 " mount-options options device mountpoint\n"
22347 "\n"
22348 msgstr ""
22349
22350 # type: textblock
22351 #: ../fish/guestfish-actions.pod:2818
22352 msgid ""
22353 "This is the same as the L</mount> command, but it allows you to set the "
22354 "mount options as for the L<mount(8)> I<-o> flag."
22355 msgstr ""
22356
22357 # type: =head2
22358 #: ../fish/guestfish-actions.pod:2826
22359 msgid "mount-ro"
22360 msgstr ""
22361
22362 # type: verbatim
22363 #: ../fish/guestfish-actions.pod:2828
22364 #, no-wrap
22365 msgid ""
22366 " mount-ro device mountpoint\n"
22367 "\n"
22368 msgstr ""
22369
22370 # type: textblock
22371 #: ../fish/guestfish-actions.pod:2830
22372 msgid ""
22373 "This is the same as the L</mount> command, but it mounts the filesystem with "
22374 "the read-only (I<-o ro>) flag."
22375 msgstr ""
22376
22377 # type: =head2
22378 #: ../fish/guestfish-actions.pod:2833
22379 msgid "mount-vfs"
22380 msgstr ""
22381
22382 # type: verbatim
22383 #: ../fish/guestfish-actions.pod:2835
22384 #, no-wrap
22385 msgid ""
22386 " mount-vfs options vfstype device mountpoint\n"
22387 "\n"
22388 msgstr ""
22389
22390 # type: textblock
22391 #: ../fish/guestfish-actions.pod:2837
22392 msgid ""
22393 "This is the same as the L</mount> command, but it allows you to set both the "
22394 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22395 msgstr ""
22396
22397 # type: =head2
22398 #: ../fish/guestfish-actions.pod:2841
22399 msgid "mountpoints"
22400 msgstr ""
22401
22402 # type: verbatim
22403 #: ../fish/guestfish-actions.pod:2843
22404 #, no-wrap
22405 msgid ""
22406 " mountpoints\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: textblock
22411 #: ../fish/guestfish-actions.pod:2845
22412 msgid ""
22413 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22414 "This one returns a hash table (map) of device name to directory where the "
22415 "device is mounted."
22416 msgstr ""
22417
22418 # type: =head2
22419 #: ../fish/guestfish-actions.pod:2849
22420 msgid "mounts"
22421 msgstr ""
22422
22423 # type: verbatim
22424 #: ../fish/guestfish-actions.pod:2851
22425 #, no-wrap
22426 msgid ""
22427 " mounts\n"
22428 "\n"
22429 msgstr ""
22430
22431 # type: textblock
22432 #: ../fish/guestfish-actions.pod:2858
22433 msgid "See also: L</mountpoints>"
22434 msgstr ""
22435
22436 # type: =head2
22437 #: ../fish/guestfish-actions.pod:2860
22438 msgid "mv"
22439 msgstr ""
22440
22441 # type: verbatim
22442 #: ../fish/guestfish-actions.pod:2862
22443 #, no-wrap
22444 msgid ""
22445 " mv src dest\n"
22446 "\n"
22447 msgstr ""
22448
22449 # type: =head2
22450 #: ../fish/guestfish-actions.pod:2867
22451 msgid "ntfs-3g-probe"
22452 msgstr ""
22453
22454 # type: verbatim
22455 #: ../fish/guestfish-actions.pod:2869
22456 #, no-wrap
22457 msgid ""
22458 " ntfs-3g-probe true|false device\n"
22459 "\n"
22460 msgstr ""
22461
22462 # type: =head2
22463 #: ../fish/guestfish-actions.pod:2883
22464 msgid "ntfsresize"
22465 msgstr ""
22466
22467 # type: verbatim
22468 #: ../fish/guestfish-actions.pod:2885
22469 #, no-wrap
22470 msgid ""
22471 " ntfsresize device\n"
22472 "\n"
22473 msgstr ""
22474
22475 # type: =head2
22476 #: ../fish/guestfish-actions.pod:2891
22477 msgid "ntfsresize-size"
22478 msgstr ""
22479
22480 # type: verbatim
22481 #: ../fish/guestfish-actions.pod:2893
22482 #, no-wrap
22483 msgid ""
22484 " ntfsresize-size device size\n"
22485 "\n"
22486 msgstr ""
22487
22488 # type: textblock
22489 #: ../fish/guestfish-actions.pod:2895
22490 msgid ""
22491 "This command is the same as L</ntfsresize> except that it allows you to "
22492 "specify the new size (in bytes) explicitly."
22493 msgstr ""
22494
22495 # type: =head2
22496 #: ../fish/guestfish-actions.pod:2898
22497 msgid "part-add"
22498 msgstr ""
22499
22500 # type: verbatim
22501 #: ../fish/guestfish-actions.pod:2900
22502 #, no-wrap
22503 msgid ""
22504 " part-add device prlogex startsect endsect\n"
22505 "\n"
22506 msgstr ""
22507
22508 # type: textblock
22509 #: ../fish/guestfish-actions.pod:2902
22510 msgid ""
22511 "This command adds a partition to C<device>.  If there is no partition table "
22512 "on the device, call L</part-init> first."
22513 msgstr ""
22514
22515 # type: textblock
22516 #: ../fish/guestfish-actions.pod:2914
22517 msgid ""
22518 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22519 "part-disk> to do that."
22520 msgstr ""
22521
22522 # type: =head2
22523 #: ../fish/guestfish-actions.pod:2917
22524 msgid "part-del"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #: ../fish/guestfish-actions.pod:2919
22529 #, no-wrap
22530 msgid ""
22531 " part-del device partnum\n"
22532 "\n"
22533 msgstr ""
22534
22535 # type: =head2
22536 #: ../fish/guestfish-actions.pod:2927
22537 msgid "part-disk"
22538 msgstr ""
22539
22540 # type: verbatim
22541 #: ../fish/guestfish-actions.pod:2929
22542 #, no-wrap
22543 msgid ""
22544 " part-disk device parttype\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: textblock
22549 #: ../fish/guestfish-actions.pod:2931
22550 msgid ""
22551 "This command is simply a combination of L</part-init> followed by L</part-"
22552 "add> to create a single primary partition covering the whole disk."
22553 msgstr ""
22554
22555 # type: textblock
22556 #: ../fish/guestfish-actions.pod:2935
22557 msgid ""
22558 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22559 "possible values are described in L</part-init>."
22560 msgstr ""
22561
22562 # type: =head2
22563 #: ../fish/guestfish-actions.pod:2941
22564 msgid "part-get-bootable"
22565 msgstr ""
22566
22567 # type: verbatim
22568 #: ../fish/guestfish-actions.pod:2943
22569 #, no-wrap
22570 msgid ""
22571 " part-get-bootable device partnum\n"
22572 "\n"
22573 msgstr ""
22574
22575 # type: textblock
22576 #: ../fish/guestfish-actions.pod:2948
22577 msgid "See also L</part-set-bootable>."
22578 msgstr ""
22579
22580 # type: =head2
22581 #: ../fish/guestfish-actions.pod:2950
22582 msgid "part-get-mbr-id"
22583 msgstr ""
22584
22585 # type: verbatim
22586 #: ../fish/guestfish-actions.pod:2952
22587 #, no-wrap
22588 msgid ""
22589 " part-get-mbr-id device partnum\n"
22590 "\n"
22591 msgstr ""
22592
22593 # type: textblock
22594 #: ../fish/guestfish-actions.pod:2957 ../fish/guestfish-actions.pod:3095
22595 msgid ""
22596 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22597 "undefined results for other partition table types (see L</part-get-"
22598 "parttype>)."
22599 msgstr ""
22600
22601 # type: =head2
22602 #: ../fish/guestfish-actions.pod:2961
22603 msgid "part-get-parttype"
22604 msgstr ""
22605
22606 # type: verbatim
22607 #: ../fish/guestfish-actions.pod:2963
22608 #, no-wrap
22609 msgid ""
22610 " part-get-parttype device\n"
22611 "\n"
22612 msgstr ""
22613
22614 # type: textblock
22615 #: ../fish/guestfish-actions.pod:2968
22616 msgid ""
22617 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22618 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22619 "possible, although unusual.  See L</part-init> for a full list."
22620 msgstr ""
22621
22622 # type: =head2
22623 #: ../fish/guestfish-actions.pod:2973
22624 msgid "part-init"
22625 msgstr ""
22626
22627 # type: verbatim
22628 #: ../fish/guestfish-actions.pod:2975
22629 #, no-wrap
22630 msgid ""
22631 " part-init device parttype\n"
22632 "\n"
22633 msgstr ""
22634
22635 # type: textblock
22636 #: ../fish/guestfish-actions.pod:2981
22637 msgid ""
22638 "Initially there are no partitions.  Following this, you should call L</part-"
22639 "add> for each partition required."
22640 msgstr ""
22641
22642 # type: =head2
22643 #: ../fish/guestfish-actions.pod:3044
22644 msgid "part-list"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #: ../fish/guestfish-actions.pod:3046
22649 #, no-wrap
22650 msgid ""
22651 " part-list device\n"
22652 "\n"
22653 msgstr ""
22654
22655 # type: textblock
22656 #: ../fish/guestfish-actions.pod:3061
22657 msgid ""
22658 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22659 "the device's sector size, see L</blockdev-getss>."
22660 msgstr ""
22661
22662 # type: =head2
22663 #: ../fish/guestfish-actions.pod:3074
22664 msgid "part-set-bootable"
22665 msgstr ""
22666
22667 # type: verbatim
22668 #: ../fish/guestfish-actions.pod:3076
22669 #, no-wrap
22670 msgid ""
22671 " part-set-bootable device partnum true|false\n"
22672 "\n"
22673 msgstr ""
22674
22675 # type: =head2
22676 #: ../fish/guestfish-actions.pod:3085
22677 msgid "part-set-mbr-id"
22678 msgstr ""
22679
22680 # type: verbatim
22681 #: ../fish/guestfish-actions.pod:3087
22682 #, no-wrap
22683 msgid ""
22684 " part-set-mbr-id device partnum idbyte\n"
22685 "\n"
22686 msgstr ""
22687
22688 # type: =head2
22689 #: ../fish/guestfish-actions.pod:3099
22690 msgid "part-set-name"
22691 msgstr ""
22692
22693 # type: verbatim
22694 #: ../fish/guestfish-actions.pod:3101
22695 #, no-wrap
22696 msgid ""
22697 " part-set-name device partnum name\n"
22698 "\n"
22699 msgstr ""
22700
22701 # type: =head2
22702 #: ../fish/guestfish-actions.pod:3109
22703 msgid "part-to-dev"
22704 msgstr ""
22705
22706 # type: verbatim
22707 #: ../fish/guestfish-actions.pod:3111
22708 #, no-wrap
22709 msgid ""
22710 " part-to-dev partition\n"
22711 "\n"
22712 msgstr ""
22713
22714 # type: textblock
22715 #: ../fish/guestfish-actions.pod:3117
22716 msgid ""
22717 "The named partition must exist, for example as a string returned from L</"
22718 "list-partitions>."
22719 msgstr ""
22720
22721 # type: =head2
22722 #: ../fish/guestfish-actions.pod:3120
22723 msgid "ping-daemon"
22724 msgstr ""
22725
22726 # type: verbatim
22727 #: ../fish/guestfish-actions.pod:3122
22728 #, no-wrap
22729 msgid ""
22730 " ping-daemon\n"
22731 "\n"
22732 msgstr ""
22733
22734 # type: =head2
22735 #: ../fish/guestfish-actions.pod:3129
22736 msgid "pread"
22737 msgstr ""
22738
22739 # type: verbatim
22740 #: ../fish/guestfish-actions.pod:3131
22741 #, no-wrap
22742 msgid ""
22743 " pread path count offset\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: textblock
22748 #: ../fish/guestfish-actions.pod:3139
22749 msgid "See also L</pwrite>, L</pread-device>."
22750 msgstr ""
22751
22752 # type: =head2
22753 #: ../fish/guestfish-actions.pod:3144
22754 msgid "pread-device"
22755 msgstr ""
22756
22757 # type: verbatim
22758 #: ../fish/guestfish-actions.pod:3146
22759 #, no-wrap
22760 msgid ""
22761 " pread-device device count offset\n"
22762 "\n"
22763 msgstr ""
22764
22765 # type: textblock
22766 #: ../fish/guestfish-actions.pod:3154
22767 msgid "See also L</pread>."
22768 msgstr ""
22769
22770 # type: =head2
22771 #: ../fish/guestfish-actions.pod:3159
22772 msgid "pvcreate"
22773 msgstr ""
22774
22775 # type: verbatim
22776 #: ../fish/guestfish-actions.pod:3161
22777 #, no-wrap
22778 msgid ""
22779 " pvcreate device\n"
22780 "\n"
22781 msgstr ""
22782
22783 # type: =head2
22784 #: ../fish/guestfish-actions.pod:3167
22785 msgid "pvremove"
22786 msgstr ""
22787
22788 # type: verbatim
22789 #: ../fish/guestfish-actions.pod:3169
22790 #, no-wrap
22791 msgid ""
22792 " pvremove device\n"
22793 "\n"
22794 msgstr ""
22795
22796 # type: =head2
22797 #: ../fish/guestfish-actions.pod:3178
22798 msgid "pvresize"
22799 msgstr ""
22800
22801 # type: verbatim
22802 #: ../fish/guestfish-actions.pod:3180
22803 #, no-wrap
22804 msgid ""
22805 " pvresize device\n"
22806 "\n"
22807 msgstr ""
22808
22809 # type: =head2
22810 #: ../fish/guestfish-actions.pod:3185
22811 msgid "pvresize-size"
22812 msgstr ""
22813
22814 # type: verbatim
22815 #: ../fish/guestfish-actions.pod:3187
22816 #, no-wrap
22817 msgid ""
22818 " pvresize-size device size\n"
22819 "\n"
22820 msgstr ""
22821
22822 # type: textblock
22823 #: ../fish/guestfish-actions.pod:3189
22824 msgid ""
22825 "This command is the same as L</pvresize> except that it allows you to "
22826 "specify the new size (in bytes) explicitly."
22827 msgstr ""
22828
22829 # type: =head2
22830 #: ../fish/guestfish-actions.pod:3192
22831 msgid "pvs"
22832 msgstr ""
22833
22834 # type: verbatim
22835 #: ../fish/guestfish-actions.pod:3194
22836 #, no-wrap
22837 msgid ""
22838 " pvs\n"
22839 "\n"
22840 msgstr ""
22841
22842 # type: textblock
22843 #: ../fish/guestfish-actions.pod:3202
22844 msgid "See also L</pvs-full>."
22845 msgstr ""
22846
22847 # type: =head2
22848 #: ../fish/guestfish-actions.pod:3204
22849 msgid "pvs-full"
22850 msgstr ""
22851
22852 # type: verbatim
22853 #: ../fish/guestfish-actions.pod:3206
22854 #, no-wrap
22855 msgid ""
22856 " pvs-full\n"
22857 "\n"
22858 msgstr ""
22859
22860 # type: =head2
22861 #: ../fish/guestfish-actions.pod:3211
22862 msgid "pvuuid"
22863 msgstr ""
22864
22865 # type: verbatim
22866 #: ../fish/guestfish-actions.pod:3213
22867 #, no-wrap
22868 msgid ""
22869 " pvuuid device\n"
22870 "\n"
22871 msgstr ""
22872
22873 # type: =head2
22874 #: ../fish/guestfish-actions.pod:3217
22875 msgid "pwrite"
22876 msgstr ""
22877
22878 # type: verbatim
22879 #: ../fish/guestfish-actions.pod:3219
22880 #, no-wrap
22881 msgid ""
22882 " pwrite path content offset\n"
22883 "\n"
22884 msgstr ""
22885
22886 # type: textblock
22887 #: ../fish/guestfish-actions.pod:3230
22888 msgid "See also L</pread>, L</pwrite-device>."
22889 msgstr ""
22890
22891 # type: =head2
22892 #: ../fish/guestfish-actions.pod:3235
22893 msgid "pwrite-device"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #: ../fish/guestfish-actions.pod:3237
22898 #, no-wrap
22899 msgid ""
22900 " pwrite-device device content offset\n"
22901 "\n"
22902 msgstr ""
22903
22904 # type: textblock
22905 #: ../fish/guestfish-actions.pod:3247
22906 msgid "See also L</pwrite>."
22907 msgstr ""
22908
22909 # type: =head2
22910 #: ../fish/guestfish-actions.pod:3252
22911 msgid "read-file"
22912 msgstr ""
22913
22914 # type: verbatim
22915 #: ../fish/guestfish-actions.pod:3254
22916 #, no-wrap
22917 msgid ""
22918 " read-file path\n"
22919 "\n"
22920 msgstr ""
22921
22922 # type: textblock
22923 #: ../fish/guestfish-actions.pod:3259
22924 msgid ""
22925 "Unlike L</cat>, this function can correctly handle files that contain "
22926 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22927 "is limited in the total size of file that can be handled."
22928 msgstr ""
22929
22930 # type: =head2
22931 #: ../fish/guestfish-actions.pod:3267
22932 msgid "read-lines"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #: ../fish/guestfish-actions.pod:3269
22937 #, no-wrap
22938 msgid ""
22939 " read-lines path\n"
22940 "\n"
22941 msgstr ""
22942
22943 # type: textblock
22944 #: ../fish/guestfish-actions.pod:3276
22945 msgid ""
22946 "Note that this function cannot correctly handle binary files (specifically, "
22947 "files containing C<\\0> character which is treated as end of line).  For "
22948 "those you need to use the L</read-file> function which has a more complex "
22949 "interface."
22950 msgstr ""
22951
22952 # type: =head2
22953 #: ../fish/guestfish-actions.pod:3281
22954 msgid "readdir"
22955 msgstr ""
22956
22957 # type: verbatim
22958 #: ../fish/guestfish-actions.pod:3283
22959 #, no-wrap
22960 msgid ""
22961 " readdir dir\n"
22962 "\n"
22963 msgstr ""
22964
22965 # type: textblock
22966 #: ../fish/guestfish-actions.pod:3335
22967 msgid ""
22968 "This function is primarily intended for use by programs.  To get a simple "
22969 "list of names, use L</ls>.  To get a printable directory for human "
22970 "consumption, use L</ll>."
22971 msgstr ""
22972
22973 # type: =head2
22974 #: ../fish/guestfish-actions.pod:3339
22975 msgid "readlink"
22976 msgstr ""
22977
22978 # type: verbatim
22979 #: ../fish/guestfish-actions.pod:3341
22980 #, no-wrap
22981 msgid ""
22982 " readlink path\n"
22983 "\n"
22984 msgstr ""
22985
22986 # type: =head2
22987 #: ../fish/guestfish-actions.pod:3345
22988 msgid "readlinklist"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../fish/guestfish-actions.pod:3347
22993 #, no-wrap
22994 msgid ""
22995 " readlinklist path 'names ...'\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: =head2
23000 #: ../fish/guestfish-actions.pod:3371
23001 msgid "realpath"
23002 msgstr ""
23003
23004 # type: verbatim
23005 #: ../fish/guestfish-actions.pod:3373
23006 #, no-wrap
23007 msgid ""
23008 " realpath path\n"
23009 "\n"
23010 msgstr ""
23011
23012 # type: =head2
23013 #: ../fish/guestfish-actions.pod:3378
23014 msgid "removexattr"
23015 msgstr ""
23016
23017 # type: verbatim
23018 #: ../fish/guestfish-actions.pod:3380
23019 #, no-wrap
23020 msgid ""
23021 " removexattr xattr path\n"
23022 "\n"
23023 msgstr ""
23024
23025 # type: textblock
23026 #: ../fish/guestfish-actions.pod:3385
23027 msgid "See also: L</lremovexattr>, L<attr(5)>."
23028 msgstr ""
23029
23030 # type: =head2
23031 #: ../fish/guestfish-actions.pod:3387
23032 msgid "resize2fs"
23033 msgstr ""
23034
23035 # type: verbatim
23036 #: ../fish/guestfish-actions.pod:3389
23037 #, no-wrap
23038 msgid ""
23039 " resize2fs device\n"
23040 "\n"
23041 msgstr ""
23042
23043 # type: textblock
23044 #: ../fish/guestfish-actions.pod:3394
23045 msgid ""
23046 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23047 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23048 "gives an error about this and sometimes not.  In any case, it is always safe "
23049 "to call L</e2fsck-f> before calling this function."
23050 msgstr ""
23051
23052 # type: =head2
23053 #: ../fish/guestfish-actions.pod:3400
23054 msgid "resize2fs-size"
23055 msgstr ""
23056
23057 # type: verbatim
23058 #: ../fish/guestfish-actions.pod:3402
23059 #, no-wrap
23060 msgid ""
23061 " resize2fs-size device size\n"
23062 "\n"
23063 msgstr ""
23064
23065 # type: textblock
23066 #: ../fish/guestfish-actions.pod:3404
23067 msgid ""
23068 "This command is the same as L</resize2fs> except that it allows you to "
23069 "specify the new size (in bytes) explicitly."
23070 msgstr ""
23071
23072 # type: =head2
23073 #: ../fish/guestfish-actions.pod:3407
23074 msgid "rm"
23075 msgstr ""
23076
23077 # type: verbatim
23078 #: ../fish/guestfish-actions.pod:3409
23079 #, no-wrap
23080 msgid ""
23081 " rm path\n"
23082 "\n"
23083 msgstr ""
23084
23085 # type: =head2
23086 #: ../fish/guestfish-actions.pod:3413
23087 msgid "rm-rf"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #: ../fish/guestfish-actions.pod:3415
23092 #, no-wrap
23093 msgid ""
23094 " rm-rf path\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: =head2
23099 #: ../fish/guestfish-actions.pod:3421
23100 msgid "rmdir"
23101 msgstr ""
23102
23103 # type: verbatim
23104 #: ../fish/guestfish-actions.pod:3423
23105 #, no-wrap
23106 msgid ""
23107 " rmdir path\n"
23108 "\n"
23109 msgstr ""
23110
23111 # type: =head2
23112 #: ../fish/guestfish-actions.pod:3427
23113 msgid "rmmountpoint"
23114 msgstr ""
23115
23116 # type: verbatim
23117 #: ../fish/guestfish-actions.pod:3429
23118 #, no-wrap
23119 msgid ""
23120 " rmmountpoint exemptpath\n"
23121 "\n"
23122 msgstr ""
23123
23124 # type: textblock
23125 #: ../fish/guestfish-actions.pod:3431
23126 msgid ""
23127 "This calls removes a mountpoint that was previously created with L</"
23128 "mkmountpoint>.  See L</mkmountpoint> for full details."
23129 msgstr ""
23130
23131 # type: =head2
23132 #: ../fish/guestfish-actions.pod:3435
23133 msgid "scrub-device"
23134 msgstr ""
23135
23136 # type: verbatim
23137 #: ../fish/guestfish-actions.pod:3437
23138 #, no-wrap
23139 msgid ""
23140 " scrub-device device\n"
23141 "\n"
23142 msgstr ""
23143
23144 # type: =head2
23145 #: ../fish/guestfish-actions.pod:3448
23146 msgid "scrub-file"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #: ../fish/guestfish-actions.pod:3450
23151 #, no-wrap
23152 msgid ""
23153 " scrub-file file\n"
23154 "\n"
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-actions.pod:3460
23159 msgid "scrub-freespace"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-actions.pod:3462
23164 #, no-wrap
23165 msgid ""
23166 " scrub-freespace dir\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fish/guestfish-actions.pod:3464
23172 msgid ""
23173 "This command creates the directory C<dir> and then fills it with files until "
23174 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23175 "deletes them.  The intention is to scrub any free space on the partition "
23176 "containing C<dir>."
23177 msgstr ""
23178
23179 # type: =head2
23180 #: ../fish/guestfish-actions.pod:3473
23181 msgid "set-append"
23182 msgstr ""
23183
23184 # type: =head2
23185 #: ../fish/guestfish-actions.pod:3475
23186 msgid "append"
23187 msgstr ""
23188
23189 # type: verbatim
23190 #: ../fish/guestfish-actions.pod:3477
23191 #, no-wrap
23192 msgid ""
23193 " set-append append\n"
23194 "\n"
23195 msgstr ""
23196
23197 # type: =head2
23198 #: ../fish/guestfish-actions.pod:3488
23199 msgid "set-autosync"
23200 msgstr ""
23201
23202 # type: =head2
23203 #: ../fish/guestfish-actions.pod:3490
23204 msgid "autosync"
23205 msgstr ""
23206
23207 # type: verbatim
23208 #: ../fish/guestfish-actions.pod:3492
23209 #, no-wrap
23210 msgid ""
23211 " set-autosync true|false\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: textblock
23216 #: ../fish/guestfish-actions.pod:3494
23217 msgid ""
23218 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23219 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23220 "closed (also if the program exits without closing handles)."
23221 msgstr ""
23222
23223 # type: =head2
23224 #: ../fish/guestfish-actions.pod:3502
23225 msgid "set-direct"
23226 msgstr ""
23227
23228 # type: =head2
23229 #: ../fish/guestfish-actions.pod:3504
23230 msgid "direct"
23231 msgstr ""
23232
23233 # type: verbatim
23234 #: ../fish/guestfish-actions.pod:3506
23235 #, no-wrap
23236 msgid ""
23237 " set-direct true|false\n"
23238 "\n"
23239 msgstr ""
23240
23241 # type: textblock
23242 #: ../fish/guestfish-actions.pod:3512
23243 msgid ""
23244 "One consequence of this is that log messages aren't caught by the library "
23245 "and handled by L</set-log-message-callback>, but go straight to stdout."
23246 msgstr ""
23247
23248 # type: =head2
23249 #: ../fish/guestfish-actions.pod:3521
23250 msgid "set-e2label"
23251 msgstr ""
23252
23253 # type: verbatim
23254 #: ../fish/guestfish-actions.pod:3523
23255 #, no-wrap
23256 msgid ""
23257 " set-e2label device label\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: textblock
23262 #: ../fish/guestfish-actions.pod:3529
23263 msgid ""
23264 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23265 "label on a filesystem."
23266 msgstr ""
23267
23268 # type: =head2
23269 #: ../fish/guestfish-actions.pod:3532
23270 msgid "set-e2uuid"
23271 msgstr ""
23272
23273 # type: verbatim
23274 #: ../fish/guestfish-actions.pod:3534
23275 #, no-wrap
23276 msgid ""
23277 " set-e2uuid device uuid\n"
23278 "\n"
23279 msgstr ""
23280
23281 # type: textblock
23282 #: ../fish/guestfish-actions.pod:3541
23283 msgid ""
23284 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23285 "UUID of a filesystem."
23286 msgstr ""
23287
23288 # type: =head2
23289 #: ../fish/guestfish-actions.pod:3544
23290 msgid "set-memsize"
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-actions.pod:3546
23295 msgid "memsize"
23296 msgstr ""
23297
23298 # type: verbatim
23299 #: ../fish/guestfish-actions.pod:3548
23300 #, no-wrap
23301 msgid ""
23302 " set-memsize memsize\n"
23303 "\n"
23304 msgstr ""
23305
23306 # type: textblock
23307 #: ../fish/guestfish-actions.pod:3550
23308 msgid ""
23309 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23310 "This only has any effect if called before L</launch>."
23311 msgstr ""
23312
23313 # type: =head2
23314 #: ../fish/guestfish-actions.pod:3561
23315 msgid "set-network"
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:3563
23320 msgid "network"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:3565
23325 #, no-wrap
23326 msgid ""
23327 " set-network true|false\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-actions.pod:3573
23333 msgid ""
23334 "You must call this before calling L</launch>, otherwise it has no effect."
23335 msgstr ""
23336
23337 # type: =head2
23338 #: ../fish/guestfish-actions.pod:3576
23339 msgid "set-path"
23340 msgstr ""
23341
23342 # type: =head2
23343 #: ../fish/guestfish-actions.pod:3578
23344 msgid "path"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-actions.pod:3580
23349 #, no-wrap
23350 msgid ""
23351 " set-path searchpath\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: =head2
23356 #: ../fish/guestfish-actions.pod:3589
23357 msgid "set-qemu"
23358 msgstr ""
23359
23360 # type: =head2
23361 #: ../fish/guestfish-actions.pod:3591
23362 msgid "qemu"
23363 msgstr ""
23364
23365 # type: verbatim
23366 #: ../fish/guestfish-actions.pod:3593
23367 #, no-wrap
23368 msgid ""
23369 " set-qemu qemu\n"
23370 "\n"
23371 msgstr ""
23372
23373 # type: =head2
23374 #: ../fish/guestfish-actions.pod:3613
23375 msgid "set-recovery-proc"
23376 msgstr ""
23377
23378 # type: =head2
23379 #: ../fish/guestfish-actions.pod:3615
23380 msgid "recovery-proc"
23381 msgstr ""
23382
23383 # type: verbatim
23384 #: ../fish/guestfish-actions.pod:3617
23385 #, no-wrap
23386 msgid ""
23387 " set-recovery-proc true|false\n"
23388 "\n"
23389 msgstr ""
23390
23391 # type: textblock
23392 #: ../fish/guestfish-actions.pod:3619
23393 msgid ""
23394 "If this is called with the parameter C<false> then L</launch> does not "
23395 "create a recovery process.  The purpose of the recovery process is to stop "
23396 "runaway qemu processes in the case where the main program aborts abruptly."
23397 msgstr ""
23398
23399 # type: textblock
23400 #: ../fish/guestfish-actions.pod:3624
23401 msgid ""
23402 "This only has any effect if called before L</launch>, and the default is "
23403 "true."
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:3633
23408 msgid "set-selinux"
23409 msgstr ""
23410
23411 # type: =head2
23412 #: ../fish/guestfish-actions.pod:3635
23413 msgid "selinux"
23414 msgstr ""
23415
23416 # type: verbatim
23417 #: ../fish/guestfish-actions.pod:3637
23418 #, no-wrap
23419 msgid ""
23420 " set-selinux true|false\n"
23421 "\n"
23422 msgstr ""
23423
23424 # type: =head2
23425 #: ../fish/guestfish-actions.pod:3648
23426 msgid "set-trace"
23427 msgstr ""
23428
23429 # type: =head2
23430 #: ../fish/guestfish-actions.pod:3650
23431 msgid "trace"
23432 msgstr ""
23433
23434 # type: verbatim
23435 #: ../fish/guestfish-actions.pod:3652
23436 #, no-wrap
23437 msgid ""
23438 " set-trace true|false\n"
23439 "\n"
23440 msgstr ""
23441
23442 # type: =head2
23443 #: ../fish/guestfish-actions.pod:3668
23444 msgid "set-verbose"
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:3670
23449 msgid "verbose"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:3672
23454 #, no-wrap
23455 msgid ""
23456 " set-verbose true|false\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: =head2
23461 #: ../fish/guestfish-actions.pod:3679
23462 msgid "setcon"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #: ../fish/guestfish-actions.pod:3681
23467 #, no-wrap
23468 msgid ""
23469 " setcon context\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: =head2
23474 #: ../fish/guestfish-actions.pod:3688
23475 msgid "setxattr"
23476 msgstr ""
23477
23478 # type: verbatim
23479 #: ../fish/guestfish-actions.pod:3690
23480 #, no-wrap
23481 msgid ""
23482 " setxattr xattr val vallen path\n"
23483 "\n"
23484 msgstr ""
23485
23486 # type: textblock
23487 #: ../fish/guestfish-actions.pod:3696
23488 msgid "See also: L</lsetxattr>, L<attr(5)>."
23489 msgstr ""
23490
23491 # type: =head2
23492 #: ../fish/guestfish-actions.pod:3698
23493 msgid "sfdisk"
23494 msgstr ""
23495
23496 # type: verbatim
23497 #: ../fish/guestfish-actions.pod:3700
23498 #, no-wrap
23499 msgid ""
23500 " sfdisk device cyls heads sectors 'lines ...'\n"
23501 "\n"
23502 msgstr ""
23503
23504 # type: textblock
23505 #: ../fish/guestfish-actions.pod:3722
23506 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23507 msgstr ""
23508
23509 # type: =head2
23510 #: ../fish/guestfish-actions.pod:3728
23511 msgid "sfdiskM"
23512 msgstr ""
23513
23514 # type: verbatim
23515 #: ../fish/guestfish-actions.pod:3730
23516 #, no-wrap
23517 msgid ""
23518 " sfdiskM device 'lines ...'\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: textblock
23523 #: ../fish/guestfish-actions.pod:3732
23524 msgid ""
23525 "This is a simplified interface to the L</sfdisk> command, where partition "
23526 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23527 "you don't need to specify the cyls, heads and sectors parameters which were "
23528 "rarely if ever used anyway."
23529 msgstr ""
23530
23531 # type: textblock
23532 #: ../fish/guestfish-actions.pod:3738
23533 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23534 msgstr ""
23535
23536 # type: =head2
23537 #: ../fish/guestfish-actions.pod:3744
23538 msgid "sfdisk-N"
23539 msgstr ""
23540
23541 # type: verbatim
23542 #: ../fish/guestfish-actions.pod:3746
23543 #, no-wrap
23544 msgid ""
23545 " sfdisk-N device partnum cyls heads sectors line\n"
23546 "\n"
23547 msgstr ""
23548
23549 # type: textblock
23550 #: ../fish/guestfish-actions.pod:3751
23551 msgid ""
23552 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23553 "cyls/heads/sectors parameters."
23554 msgstr ""
23555
23556 # type: textblock
23557 #: ../fish/guestfish-actions.pod:3754
23558 msgid "See also: L</part-add>"
23559 msgstr ""
23560
23561 # type: =head2
23562 #: ../fish/guestfish-actions.pod:3759
23563 msgid "sfdisk-disk-geometry"
23564 msgstr ""
23565
23566 # type: verbatim
23567 #: ../fish/guestfish-actions.pod:3761
23568 #, no-wrap
23569 msgid ""
23570 " sfdisk-disk-geometry device\n"
23571 "\n"
23572 msgstr ""
23573
23574 # type: textblock
23575 #: ../fish/guestfish-actions.pod:3763
23576 msgid ""
23577 "This displays the disk geometry of C<device> read from the partition table.  "
23578 "Especially in the case where the underlying block device has been resized, "
23579 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23580 "kernel-geometry>)."
23581 msgstr ""
23582
23583 # type: =head2
23584 #: ../fish/guestfish-actions.pod:3771
23585 msgid "sfdisk-kernel-geometry"
23586 msgstr ""
23587
23588 # type: verbatim
23589 #: ../fish/guestfish-actions.pod:3773
23590 #, no-wrap
23591 msgid ""
23592 " sfdisk-kernel-geometry device\n"
23593 "\n"
23594 msgstr ""
23595
23596 # type: =head2
23597 #: ../fish/guestfish-actions.pod:3780
23598 msgid "sfdisk-l"
23599 msgstr ""
23600
23601 # type: verbatim
23602 #: ../fish/guestfish-actions.pod:3782
23603 #, no-wrap
23604 msgid ""
23605 " sfdisk-l device\n"
23606 "\n"
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../fish/guestfish-actions.pod:3788
23611 msgid "See also: L</part-list>"
23612 msgstr ""
23613
23614 # type: =head2
23615 #: ../fish/guestfish-actions.pod:3790
23616 msgid "sh"
23617 msgstr ""
23618
23619 # type: verbatim
23620 #: ../fish/guestfish-actions.pod:3792
23621 #, no-wrap
23622 msgid ""
23623 " sh command\n"
23624 "\n"
23625 msgstr ""
23626
23627 # type: textblock
23628 #: ../fish/guestfish-actions.pod:3797
23629 msgid "This is like L</command>, but passes the command to:"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../fish/guestfish-actions.pod:3805
23634 msgid "All the provisos about L</command> apply to this call."
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:3807
23639 msgid "sh-lines"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #: ../fish/guestfish-actions.pod:3809
23644 #, no-wrap
23645 msgid ""
23646 " sh-lines command\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: textblock
23651 #: ../fish/guestfish-actions.pod:3811
23652 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../fish/guestfish-actions.pod:3814
23657 msgid "See also: L</command-lines>"
23658 msgstr ""
23659
23660 # type: =head2
23661 #: ../fish/guestfish-actions.pod:3816
23662 msgid "sleep"
23663 msgstr ""
23664
23665 # type: verbatim
23666 #: ../fish/guestfish-actions.pod:3818
23667 #, no-wrap
23668 msgid ""
23669 " sleep secs\n"
23670 "\n"
23671 msgstr ""
23672
23673 # type: =head2
23674 #: ../fish/guestfish-actions.pod:3822
23675 msgid "stat"
23676 msgstr ""
23677
23678 # type: verbatim
23679 #: ../fish/guestfish-actions.pod:3824
23680 #, no-wrap
23681 msgid ""
23682 " stat path\n"
23683 "\n"
23684 msgstr ""
23685
23686 # type: =head2
23687 #: ../fish/guestfish-actions.pod:3830
23688 msgid "statvfs"
23689 msgstr ""
23690
23691 # type: verbatim
23692 #: ../fish/guestfish-actions.pod:3832
23693 #, no-wrap
23694 msgid ""
23695 " statvfs path\n"
23696 "\n"
23697 msgstr ""
23698
23699 # type: =head2
23700 #: ../fish/guestfish-actions.pod:3840
23701 msgid "strings"
23702 msgstr ""
23703
23704 # type: verbatim
23705 #: ../fish/guestfish-actions.pod:3842
23706 #, no-wrap
23707 msgid ""
23708 " strings path\n"
23709 "\n"
23710 msgstr ""
23711
23712 # type: =head2
23713 #: ../fish/guestfish-actions.pod:3850
23714 msgid "strings-e"
23715 msgstr ""
23716
23717 # type: verbatim
23718 #: ../fish/guestfish-actions.pod:3852
23719 #, no-wrap
23720 msgid ""
23721 " strings-e encoding path\n"
23722 "\n"
23723 msgstr ""
23724
23725 # type: textblock
23726 #: ../fish/guestfish-actions.pod:3854
23727 msgid ""
23728 "This is like the L</strings> command, but allows you to specify the encoding "
23729 "of strings that are looked for in the source file C<path>."
23730 msgstr ""
23731
23732 # type: textblock
23733 #: ../fish/guestfish-actions.pod:3864
23734 msgid ""
23735 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23736 "ISO-8859-X (this is what L</strings> uses)."
23737 msgstr ""
23738
23739 # type: =head2
23740 #: ../fish/guestfish-actions.pod:3896
23741 msgid "swapoff-device"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../fish/guestfish-actions.pod:3898
23746 #, no-wrap
23747 msgid ""
23748 " swapoff-device device\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../fish/guestfish-actions.pod:3900
23754 msgid ""
23755 "This command disables the libguestfs appliance swap device or partition "
23756 "named C<device>.  See L</swapon-device>."
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-actions.pod:3904
23761 msgid "swapoff-file"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-actions.pod:3906
23766 #, no-wrap
23767 msgid ""
23768 " swapoff-file file\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: =head2
23773 #: ../fish/guestfish-actions.pod:3910
23774 msgid "swapoff-label"
23775 msgstr ""
23776
23777 # type: verbatim
23778 #: ../fish/guestfish-actions.pod:3912
23779 #, no-wrap
23780 msgid ""
23781 " swapoff-label label\n"
23782 "\n"
23783 msgstr ""
23784
23785 # type: =head2
23786 #: ../fish/guestfish-actions.pod:3917
23787 msgid "swapoff-uuid"
23788 msgstr ""
23789
23790 # type: verbatim
23791 #: ../fish/guestfish-actions.pod:3919
23792 #, no-wrap
23793 msgid ""
23794 " swapoff-uuid uuid\n"
23795 "\n"
23796 msgstr ""
23797
23798 # type: =head2
23799 #: ../fish/guestfish-actions.pod:3924
23800 msgid "swapon-device"
23801 msgstr ""
23802
23803 # type: verbatim
23804 #: ../fish/guestfish-actions.pod:3926
23805 #, no-wrap
23806 msgid ""
23807 " swapon-device device\n"
23808 "\n"
23809 msgstr ""
23810
23811 # type: textblock
23812 #: ../fish/guestfish-actions.pod:3928
23813 msgid ""
23814 "This command enables the libguestfs appliance to use the swap device or "
23815 "partition named C<device>.  The increased memory is made available for all "
23816 "commands, for example those run using L</command> or L</sh>."
23817 msgstr ""
23818
23819 # type: =head2
23820 #: ../fish/guestfish-actions.pod:3940
23821 msgid "swapon-file"
23822 msgstr ""
23823
23824 # type: verbatim
23825 #: ../fish/guestfish-actions.pod:3942
23826 #, no-wrap
23827 msgid ""
23828 " swapon-file file\n"
23829 "\n"
23830 msgstr ""
23831
23832 # type: textblock
23833 #: ../fish/guestfish-actions.pod:3944
23834 msgid ""
23835 "This command enables swap to a file.  See L</swapon-device> for other notes."
23836 msgstr ""
23837
23838 # type: =head2
23839 #: ../fish/guestfish-actions.pod:3947
23840 msgid "swapon-label"
23841 msgstr ""
23842
23843 # type: verbatim
23844 #: ../fish/guestfish-actions.pod:3949
23845 #, no-wrap
23846 msgid ""
23847 " swapon-label label\n"
23848 "\n"
23849 msgstr ""
23850
23851 # type: textblock
23852 #: ../fish/guestfish-actions.pod:3951
23853 msgid ""
23854 "This command enables swap to a labeled swap partition.  See L</swapon-"
23855 "device> for other notes."
23856 msgstr ""
23857
23858 # type: =head2
23859 #: ../fish/guestfish-actions.pod:3954
23860 msgid "swapon-uuid"
23861 msgstr ""
23862
23863 # type: verbatim
23864 #: ../fish/guestfish-actions.pod:3956
23865 #, no-wrap
23866 msgid ""
23867 " swapon-uuid uuid\n"
23868 "\n"
23869 msgstr ""
23870
23871 # type: textblock
23872 #: ../fish/guestfish-actions.pod:3958
23873 msgid ""
23874 "This command enables swap to a swap partition with the given UUID.  See L</"
23875 "swapon-device> for other notes."
23876 msgstr ""
23877
23878 # type: =head2
23879 #: ../fish/guestfish-actions.pod:3961
23880 msgid "sync"
23881 msgstr ""
23882
23883 # type: verbatim
23884 #: ../fish/guestfish-actions.pod:3963
23885 #, no-wrap
23886 msgid ""
23887 " sync\n"
23888 "\n"
23889 msgstr ""
23890
23891 # type: =head2
23892 #: ../fish/guestfish-actions.pod:3971
23893 msgid "tail"
23894 msgstr ""
23895
23896 # type: verbatim
23897 #: ../fish/guestfish-actions.pod:3973
23898 #, no-wrap
23899 msgid ""
23900 " tail path\n"
23901 "\n"
23902 msgstr ""
23903
23904 # type: =head2
23905 #: ../fish/guestfish-actions.pod:3981
23906 msgid "tail-n"
23907 msgstr ""
23908
23909 # type: verbatim
23910 #: ../fish/guestfish-actions.pod:3983
23911 #, no-wrap
23912 msgid ""
23913 " tail-n nrlines path\n"
23914 "\n"
23915 msgstr ""
23916
23917 # type: =head2
23918 #: ../fish/guestfish-actions.pod:3996
23919 msgid "tar-in"
23920 msgstr ""
23921
23922 # type: verbatim
23923 #: ../fish/guestfish-actions.pod:3998
23924 #, no-wrap
23925 msgid ""
23926 " tar-in (tarfile|-) directory\n"
23927 "\n"
23928 msgstr ""
23929
23930 # type: textblock
23931 #: ../fish/guestfish-actions.pod:4003
23932 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23933 msgstr ""
23934
23935 # type: =head2
23936 #: ../fish/guestfish-actions.pod:4008
23937 msgid "tar-out"
23938 msgstr ""
23939
23940 # type: verbatim
23941 #: ../fish/guestfish-actions.pod:4010
23942 #, no-wrap
23943 msgid ""
23944 " tar-out directory (tarfile|-)\n"
23945 "\n"
23946 msgstr ""
23947
23948 # type: textblock
23949 #: ../fish/guestfish-actions.pod:4015
23950 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23951 msgstr ""
23952
23953 # type: =head2
23954 #: ../fish/guestfish-actions.pod:4020
23955 msgid "tgz-in"
23956 msgstr ""
23957
23958 # type: verbatim
23959 #: ../fish/guestfish-actions.pod:4022
23960 #, no-wrap
23961 msgid ""
23962 " tgz-in (tarball|-) directory\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: textblock
23967 #: ../fish/guestfish-actions.pod:4027
23968 msgid "To upload an uncompressed tarball, use L</tar-in>."
23969 msgstr ""
23970
23971 # type: =head2
23972 #: ../fish/guestfish-actions.pod:4031
23973 msgid "tgz-out"
23974 msgstr ""
23975
23976 # type: verbatim
23977 #: ../fish/guestfish-actions.pod:4033
23978 #, no-wrap
23979 msgid ""
23980 " tgz-out directory (tarball|-)\n"
23981 "\n"
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../fish/guestfish-actions.pod:4038
23986 msgid "To download an uncompressed tarball, use L</tar-out>."
23987 msgstr ""
23988
23989 # type: =head2
23990 #: ../fish/guestfish-actions.pod:4042
23991 msgid "touch"
23992 msgstr ""
23993
23994 # type: verbatim
23995 #: ../fish/guestfish-actions.pod:4044
23996 #, no-wrap
23997 msgid ""
23998 " touch path\n"
23999 "\n"
24000 msgstr ""
24001
24002 # type: =head2
24003 #: ../fish/guestfish-actions.pod:4053
24004 msgid "truncate"
24005 msgstr ""
24006
24007 # type: verbatim
24008 #: ../fish/guestfish-actions.pod:4055
24009 #, no-wrap
24010 msgid ""
24011 " truncate path\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:4060
24017 msgid "truncate-size"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:4062
24022 #, no-wrap
24023 msgid ""
24024 " truncate-size path size\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fish/guestfish-actions.pod:4067
24030 msgid ""
24031 "If the current file size is less than C<size> then the file is extended to "
24032 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24033 "blocks are not allocated for the file until you write to it).  To create a "
24034 "non-sparse file of zeroes, use L</fallocate64> instead."
24035 msgstr ""
24036
24037 # type: =head2
24038 #: ../fish/guestfish-actions.pod:4073
24039 msgid "tune2fs-l"
24040 msgstr ""
24041
24042 # type: verbatim
24043 #: ../fish/guestfish-actions.pod:4075
24044 #, no-wrap
24045 msgid ""
24046 " tune2fs-l device\n"
24047 "\n"
24048 msgstr ""
24049
24050 # type: =head2
24051 #: ../fish/guestfish-actions.pod:4085
24052 msgid "txz-in"
24053 msgstr ""
24054
24055 # type: verbatim
24056 #: ../fish/guestfish-actions.pod:4087
24057 #, no-wrap
24058 msgid ""
24059 " txz-in (tarball|-) directory\n"
24060 "\n"
24061 msgstr ""
24062
24063 # type: =head2
24064 #: ../fish/guestfish-actions.pod:4094
24065 msgid "txz-out"
24066 msgstr ""
24067
24068 # type: verbatim
24069 #: ../fish/guestfish-actions.pod:4096
24070 #, no-wrap
24071 msgid ""
24072 " txz-out directory (tarball|-)\n"
24073 "\n"
24074 msgstr ""
24075
24076 # type: =head2
24077 #: ../fish/guestfish-actions.pod:4103
24078 msgid "umask"
24079 msgstr ""
24080
24081 # type: verbatim
24082 #: ../fish/guestfish-actions.pod:4105
24083 #, no-wrap
24084 msgid ""
24085 " umask mask\n"
24086 "\n"
24087 msgstr ""
24088
24089 # type: textblock
24090 #: ../fish/guestfish-actions.pod:4119
24091 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24092 msgstr ""
24093
24094 # type: =head2
24095 #: ../fish/guestfish-actions.pod:4124
24096 msgid "umount"
24097 msgstr ""
24098
24099 # type: =head2
24100 #: ../fish/guestfish-actions.pod:4126
24101 msgid "unmount"
24102 msgstr ""
24103
24104 # type: verbatim
24105 #: ../fish/guestfish-actions.pod:4128
24106 #, no-wrap
24107 msgid ""
24108 " umount pathordevice\n"
24109 "\n"
24110 msgstr ""
24111
24112 # type: =head2
24113 #: ../fish/guestfish-actions.pod:4134
24114 msgid "umount-all"
24115 msgstr ""
24116
24117 # type: =head2
24118 #: ../fish/guestfish-actions.pod:4136
24119 msgid "unmount-all"
24120 msgstr ""
24121
24122 # type: verbatim
24123 #: ../fish/guestfish-actions.pod:4138
24124 #, no-wrap
24125 msgid ""
24126 " umount-all\n"
24127 "\n"
24128 msgstr ""
24129
24130 # type: =head2
24131 #: ../fish/guestfish-actions.pod:4144
24132 msgid "upload"
24133 msgstr ""
24134
24135 # type: verbatim
24136 #: ../fish/guestfish-actions.pod:4146
24137 #, no-wrap
24138 msgid ""
24139 " upload (filename|-) remotefilename\n"
24140 "\n"
24141 msgstr ""
24142
24143 # type: textblock
24144 #: ../fish/guestfish-actions.pod:4153
24145 msgid "See also L</download>."
24146 msgstr ""
24147
24148 # type: =head2
24149 #: ../fish/guestfish-actions.pod:4157
24150 msgid "upload-offset"
24151 msgstr ""
24152
24153 # type: verbatim
24154 #: ../fish/guestfish-actions.pod:4159
24155 #, no-wrap
24156 msgid ""
24157 " upload-offset (filename|-) remotefilename offset\n"
24158 "\n"
24159 msgstr ""
24160
24161 # type: textblock
24162 #: ../fish/guestfish-actions.pod:4171
24163 msgid ""
24164 "Note that there is no limit on the amount of data that can be uploaded with "
24165 "this call, unlike with L</pwrite>, and this call always writes the full "
24166 "amount unless an error occurs."
24167 msgstr ""
24168
24169 # type: textblock
24170 #: ../fish/guestfish-actions.pod:4176
24171 msgid "See also L</upload>, L</pwrite>."
24172 msgstr ""
24173
24174 # type: =head2
24175 #: ../fish/guestfish-actions.pod:4180
24176 msgid "utimens"
24177 msgstr ""
24178
24179 # type: verbatim
24180 #: ../fish/guestfish-actions.pod:4182
24181 #, no-wrap
24182 msgid ""
24183 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24184 "\n"
24185 msgstr ""
24186
24187 # type: =head2
24188 #: ../fish/guestfish-actions.pod:4201
24189 msgid "version"
24190 msgstr ""
24191
24192 # type: verbatim
24193 #: ../fish/guestfish-actions.pod:4203
24194 #, no-wrap
24195 msgid ""
24196 " version\n"
24197 "\n"
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../fish/guestfish-actions.pod:4230
24202 msgid ""
24203 "I<Note:> Don't use this call to test for availability of features.  In "
24204 "enterprise distributions we backport features from later versions into "
24205 "earlier versions, making this an unreliable way to test for features.  Use "
24206 "L</available> instead."
24207 msgstr ""
24208
24209 # type: =head2
24210 #: ../fish/guestfish-actions.pod:4236
24211 msgid "vfs-label"
24212 msgstr ""
24213
24214 # type: verbatim
24215 #: ../fish/guestfish-actions.pod:4238
24216 #, no-wrap
24217 msgid ""
24218 " vfs-label device\n"
24219 "\n"
24220 msgstr ""
24221
24222 # type: textblock
24223 #: ../fish/guestfish-actions.pod:4245
24224 msgid "To find a filesystem from the label, use L</findfs-label>."
24225 msgstr ""
24226
24227 # type: =head2
24228 #: ../fish/guestfish-actions.pod:4247
24229 msgid "vfs-type"
24230 msgstr ""
24231
24232 # type: verbatim
24233 #: ../fish/guestfish-actions.pod:4249
24234 #, no-wrap
24235 msgid ""
24236 " vfs-type device\n"
24237 "\n"
24238 msgstr ""
24239
24240 # type: =head2
24241 #: ../fish/guestfish-actions.pod:4259
24242 msgid "vfs-uuid"
24243 msgstr ""
24244
24245 # type: verbatim
24246 #: ../fish/guestfish-actions.pod:4261
24247 #, no-wrap
24248 msgid ""
24249 " vfs-uuid device\n"
24250 "\n"
24251 msgstr ""
24252
24253 # type: textblock
24254 #: ../fish/guestfish-actions.pod:4268
24255 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24256 msgstr ""
24257
24258 # type: =head2
24259 #: ../fish/guestfish-actions.pod:4270
24260 msgid "vg-activate"
24261 msgstr ""
24262
24263 # type: verbatim
24264 #: ../fish/guestfish-actions.pod:4272
24265 #, no-wrap
24266 msgid ""
24267 " vg-activate true|false 'volgroups ...'\n"
24268 "\n"
24269 msgstr ""
24270
24271 # type: =head2
24272 #: ../fish/guestfish-actions.pod:4285
24273 msgid "vg-activate-all"
24274 msgstr ""
24275
24276 # type: verbatim
24277 #: ../fish/guestfish-actions.pod:4287
24278 #, no-wrap
24279 msgid ""
24280 " vg-activate-all true|false\n"
24281 "\n"
24282 msgstr ""
24283
24284 # type: =head2
24285 #: ../fish/guestfish-actions.pod:4297
24286 msgid "vgcreate"
24287 msgstr ""
24288
24289 # type: verbatim
24290 #: ../fish/guestfish-actions.pod:4299
24291 #, no-wrap
24292 msgid ""
24293 " vgcreate volgroup 'physvols ...'\n"
24294 "\n"
24295 msgstr ""
24296
24297 # type: =head2
24298 #: ../fish/guestfish-actions.pod:4304
24299 msgid "vglvuuids"
24300 msgstr ""
24301
24302 # type: verbatim
24303 #: ../fish/guestfish-actions.pod:4306
24304 #, no-wrap
24305 msgid ""
24306 " vglvuuids vgname\n"
24307 "\n"
24308 msgstr ""
24309
24310 # type: textblock
24311 #: ../fish/guestfish-actions.pod:4311
24312 msgid ""
24313 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24314 "logical volumes and volume groups."
24315 msgstr ""
24316
24317 # type: textblock
24318 #: ../fish/guestfish-actions.pod:4314
24319 msgid "See also L</vgpvuuids>."
24320 msgstr ""
24321
24322 # type: =head2
24323 #: ../fish/guestfish-actions.pod:4316
24324 msgid "vgpvuuids"
24325 msgstr ""
24326
24327 # type: verbatim
24328 #: ../fish/guestfish-actions.pod:4318
24329 #, no-wrap
24330 msgid ""
24331 " vgpvuuids vgname\n"
24332 "\n"
24333 msgstr ""
24334
24335 # type: textblock
24336 #: ../fish/guestfish-actions.pod:4323
24337 msgid ""
24338 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24339 "physical volumes and volume groups."
24340 msgstr ""
24341
24342 # type: textblock
24343 #: ../fish/guestfish-actions.pod:4326
24344 msgid "See also L</vglvuuids>."
24345 msgstr ""
24346
24347 # type: =head2
24348 #: ../fish/guestfish-actions.pod:4328
24349 msgid "vgremove"
24350 msgstr ""
24351
24352 # type: verbatim
24353 #: ../fish/guestfish-actions.pod:4330
24354 #, no-wrap
24355 msgid ""
24356 " vgremove vgname\n"
24357 "\n"
24358 msgstr ""
24359
24360 # type: =head2
24361 #: ../fish/guestfish-actions.pod:4337
24362 msgid "vgrename"
24363 msgstr ""
24364
24365 # type: verbatim
24366 #: ../fish/guestfish-actions.pod:4339
24367 #, no-wrap
24368 msgid ""
24369 " vgrename volgroup newvolgroup\n"
24370 "\n"
24371 msgstr ""
24372
24373 # type: =head2
24374 #: ../fish/guestfish-actions.pod:4343
24375 msgid "vgs"
24376 msgstr ""
24377
24378 # type: verbatim
24379 #: ../fish/guestfish-actions.pod:4345
24380 #, no-wrap
24381 msgid ""
24382 " vgs\n"
24383 "\n"
24384 msgstr ""
24385
24386 # type: textblock
24387 #: ../fish/guestfish-actions.pod:4353
24388 msgid "See also L</vgs-full>."
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../fish/guestfish-actions.pod:4355
24393 msgid "vgs-full"
24394 msgstr ""
24395
24396 # type: verbatim
24397 #: ../fish/guestfish-actions.pod:4357
24398 #, no-wrap
24399 msgid ""
24400 " vgs-full\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: =head2
24405 #: ../fish/guestfish-actions.pod:4362
24406 msgid "vgscan"
24407 msgstr ""
24408
24409 # type: verbatim
24410 #: ../fish/guestfish-actions.pod:4364
24411 #, no-wrap
24412 msgid ""
24413 " vgscan\n"
24414 "\n"
24415 msgstr ""
24416
24417 # type: =head2
24418 #: ../fish/guestfish-actions.pod:4369
24419 msgid "vguuid"
24420 msgstr ""
24421
24422 # type: verbatim
24423 #: ../fish/guestfish-actions.pod:4371
24424 #, no-wrap
24425 msgid ""
24426 " vguuid vgname\n"
24427 "\n"
24428 msgstr ""
24429
24430 # type: =head2
24431 #: ../fish/guestfish-actions.pod:4375
24432 msgid "wc-c"
24433 msgstr ""
24434
24435 # type: verbatim
24436 #: ../fish/guestfish-actions.pod:4377
24437 #, no-wrap
24438 msgid ""
24439 " wc-c path\n"
24440 "\n"
24441 msgstr ""
24442
24443 # type: =head2
24444 #: ../fish/guestfish-actions.pod:4382
24445 msgid "wc-l"
24446 msgstr ""
24447
24448 # type: verbatim
24449 #: ../fish/guestfish-actions.pod:4384
24450 #, no-wrap
24451 msgid ""
24452 " wc-l path\n"
24453 "\n"
24454 msgstr ""
24455
24456 # type: =head2
24457 #: ../fish/guestfish-actions.pod:4389
24458 msgid "wc-w"
24459 msgstr ""
24460
24461 # type: verbatim
24462 #: ../fish/guestfish-actions.pod:4391
24463 #, no-wrap
24464 msgid ""
24465 " wc-w path\n"
24466 "\n"
24467 msgstr ""
24468
24469 # type: =head2
24470 #: ../fish/guestfish-actions.pod:4396
24471 msgid "write"
24472 msgstr ""
24473
24474 # type: verbatim
24475 #: ../fish/guestfish-actions.pod:4398
24476 #, no-wrap
24477 msgid ""
24478 " write path content\n"
24479 "\n"
24480 msgstr ""
24481
24482 # type: =head2
24483 #: ../fish/guestfish-actions.pod:4406
24484 msgid "write-file"
24485 msgstr ""
24486
24487 # type: verbatim
24488 #: ../fish/guestfish-actions.pod:4408
24489 #, no-wrap
24490 msgid ""
24491 " write-file path content size\n"
24492 "\n"
24493 msgstr ""
24494
24495 # type: =head2
24496 #: ../fish/guestfish-actions.pod:4431
24497 msgid "zegrep"
24498 msgstr ""
24499
24500 # type: verbatim
24501 #: ../fish/guestfish-actions.pod:4433
24502 #, no-wrap
24503 msgid ""
24504 " zegrep regex path\n"
24505 "\n"
24506 msgstr ""
24507
24508 # type: =head2
24509 #: ../fish/guestfish-actions.pod:4441
24510 msgid "zegrepi"
24511 msgstr ""
24512
24513 # type: verbatim
24514 #: ../fish/guestfish-actions.pod:4443
24515 #, no-wrap
24516 msgid ""
24517 " zegrepi regex path\n"
24518 "\n"
24519 msgstr ""
24520
24521 # type: =head2
24522 #: ../fish/guestfish-actions.pod:4451
24523 msgid "zero"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../fish/guestfish-actions.pod:4453
24528 #, no-wrap
24529 msgid ""
24530 " zero device\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fish/guestfish-actions.pod:4461
24536 msgid "See also: L</zero-device>, L</scrub-device>."
24537 msgstr ""
24538
24539 # type: =head2
24540 #: ../fish/guestfish-actions.pod:4463
24541 msgid "zero-device"
24542 msgstr ""
24543
24544 # type: verbatim
24545 #: ../fish/guestfish-actions.pod:4465
24546 #, no-wrap
24547 msgid ""
24548 " zero-device device\n"
24549 "\n"
24550 msgstr ""
24551
24552 # type: textblock
24553 #: ../fish/guestfish-actions.pod:4467
24554 msgid ""
24555 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24556 "which just zeroes the first few blocks of a device."
24557 msgstr ""
24558
24559 # type: =head2
24560 #: ../fish/guestfish-actions.pod:4474
24561 msgid "zerofree"
24562 msgstr ""
24563
24564 # type: verbatim
24565 #: ../fish/guestfish-actions.pod:4476
24566 #, no-wrap
24567 msgid ""
24568 " zerofree device\n"
24569 "\n"
24570 msgstr ""
24571
24572 # type: =head2
24573 #: ../fish/guestfish-actions.pod:4489
24574 msgid "zfgrep"
24575 msgstr ""
24576
24577 # type: verbatim
24578 #: ../fish/guestfish-actions.pod:4491
24579 #, no-wrap
24580 msgid ""
24581 " zfgrep pattern path\n"
24582 "\n"
24583 msgstr ""
24584
24585 # type: =head2
24586 #: ../fish/guestfish-actions.pod:4499
24587 msgid "zfgrepi"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #: ../fish/guestfish-actions.pod:4501
24592 #, no-wrap
24593 msgid ""
24594 " zfgrepi pattern path\n"
24595 "\n"
24596 msgstr ""
24597
24598 # type: =head2
24599 #: ../fish/guestfish-actions.pod:4509
24600 msgid "zfile"
24601 msgstr ""
24602
24603 # type: verbatim
24604 #: ../fish/guestfish-actions.pod:4511
24605 #, no-wrap
24606 msgid ""
24607 " zfile meth path\n"
24608 "\n"
24609 msgstr ""
24610
24611 # type: textblock
24612 #: ../fish/guestfish-actions.pod:4518
24613 msgid ""
24614 "Since 1.0.63, use L</file> instead which can now process compressed files."
24615 msgstr ""
24616
24617 # type: =head2
24618 #: ../fish/guestfish-actions.pod:4528
24619 msgid "zgrep"
24620 msgstr ""
24621
24622 # type: verbatim
24623 #: ../fish/guestfish-actions.pod:4530
24624 #, no-wrap
24625 msgid ""
24626 " zgrep regex path\n"
24627 "\n"
24628 msgstr ""
24629
24630 # type: =head2
24631 #: ../fish/guestfish-actions.pod:4538
24632 msgid "zgrepi"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #: ../fish/guestfish-actions.pod:4540
24637 #, no-wrap
24638 msgid ""
24639 " zgrepi regex path\n"
24640 "\n"
24641 msgstr ""
24642
24643 # type: =head2
24644 #: ../fish/guestfish-commands.pod:1
24645 msgid "alloc"
24646 msgstr ""
24647
24648 # type: =head2
24649 #: ../fish/guestfish-commands.pod:3
24650 msgid "allocate"
24651 msgstr ""
24652
24653 # type: verbatim
24654 #: ../fish/guestfish-commands.pod:5
24655 #, no-wrap
24656 msgid ""
24657 " alloc filename size\n"
24658 "\n"
24659 msgstr ""
24660
24661 # type: textblock
24662 #: ../fish/guestfish-commands.pod:7
24663 msgid ""
24664 "This creates an empty (zeroed) file of the given size, and then adds so it "
24665 "can be further examined."
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24670 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24675 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24676 msgstr ""
24677
24678 # type: textblock
24679 #: ../fish/guestfish-commands.pod:14
24680 msgid ""
24681 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24682 "image, see L</PREPARED DISK IMAGES>."
24683 msgstr ""
24684
24685 # type: =head2
24686 #: ../fish/guestfish-commands.pod:17
24687 msgid "copy-in"
24688 msgstr ""
24689
24690 # type: verbatim
24691 #: ../fish/guestfish-commands.pod:19
24692 #, no-wrap
24693 msgid ""
24694 " copy-in local [local ...] /remotedir\n"
24695 "\n"
24696 msgstr ""
24697
24698 # type: textblock
24699 #: ../fish/guestfish-commands.pod:21
24700 msgid ""
24701 "C<copy-in> copies local files or directories recursively into the disk "
24702 "image, placing them in the directory called C</remotedir> (which must "
24703 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24704 "other commands as necessary."
24705 msgstr ""
24706
24707 # type: textblock
24708 #: ../fish/guestfish-commands.pod:26
24709 msgid ""
24710 "Multiple local files and directories can be specified, but the last "
24711 "parameter must always be a remote directory.  Wildcards cannot be used."
24712 msgstr ""
24713
24714 # type: =head2
24715 #: ../fish/guestfish-commands.pod:30
24716 msgid "copy-out"
24717 msgstr ""
24718
24719 # type: verbatim
24720 #: ../fish/guestfish-commands.pod:32
24721 #, no-wrap
24722 msgid ""
24723 " copy-out remote [remote ...] localdir\n"
24724 "\n"
24725 msgstr ""
24726
24727 # type: textblock
24728 #: ../fish/guestfish-commands.pod:34
24729 msgid ""
24730 "C<copy-out> copies remote files or directories recursively out of the disk "
24731 "image, placing them on the host disk in a local directory called C<localdir> "
24732 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
24733 "download>, L</tar-out> and other commands as necessary."
24734 msgstr ""
24735
24736 # type: textblock
24737 #: ../fish/guestfish-commands.pod:40
24738 msgid ""
24739 "Multiple remote files and directories can be specified, but the last "
24740 "parameter must always be a local directory.  To download to the current "
24741 "directory, use C<.> as in:"
24742 msgstr ""
24743
24744 # type: verbatim
24745 #: ../fish/guestfish-commands.pod:44
24746 #, no-wrap
24747 msgid ""
24748 " copy-out /home .\n"
24749 "\n"
24750 msgstr ""
24751
24752 # type: textblock
24753 #: ../fish/guestfish-commands.pod:46
24754 msgid ""
24755 "Wildcards cannot be used in the ordinary command, but you can use them with "
24756 "the help of L</glob> like this:"
24757 msgstr ""
24758
24759 # type: verbatim
24760 #: ../fish/guestfish-commands.pod:49
24761 #, no-wrap
24762 msgid ""
24763 " glob copy-out /home/* .\n"
24764 "\n"
24765 msgstr ""
24766
24767 # type: =head2
24768 #: ../fish/guestfish-commands.pod:51
24769 msgid "echo"
24770 msgstr ""
24771
24772 # type: verbatim
24773 #: ../fish/guestfish-commands.pod:53
24774 #, no-wrap
24775 msgid ""
24776 " echo [params ...]\n"
24777 "\n"
24778 msgstr ""
24779
24780 # type: textblock
24781 #: ../fish/guestfish-commands.pod:55
24782 msgid "This echos the parameters to the terminal."
24783 msgstr ""
24784
24785 # type: =head2
24786 #: ../fish/guestfish-commands.pod:57
24787 msgid "edit"
24788 msgstr ""
24789
24790 # type: =head2
24791 #: ../fish/guestfish-commands.pod:59
24792 msgid "vi"
24793 msgstr ""
24794
24795 # type: =head2
24796 #: ../fish/guestfish-commands.pod:61
24797 msgid "emacs"
24798 msgstr ""
24799
24800 # type: verbatim
24801 #: ../fish/guestfish-commands.pod:63
24802 #, no-wrap
24803 msgid ""
24804 " edit filename\n"
24805 "\n"
24806 msgstr ""
24807
24808 # type: textblock
24809 #: ../fish/guestfish-commands.pod:65
24810 msgid ""
24811 "This is used to edit a file.  It downloads the file, edits it locally using "
24812 "your editor, then uploads the result."
24813 msgstr ""
24814
24815 # type: textblock
24816 #: ../fish/guestfish-commands.pod:68
24817 msgid ""
24818 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24819 "or C<emacs> you will get those corresponding editors."
24820 msgstr ""
24821
24822 # type: =head2
24823 #: ../fish/guestfish-commands.pod:72
24824 msgid "glob"
24825 msgstr ""
24826
24827 # type: verbatim
24828 #: ../fish/guestfish-commands.pod:74
24829 #, no-wrap
24830 msgid ""
24831 " glob command args...\n"
24832 "\n"
24833 msgstr ""
24834
24835 # type: textblock
24836 #: ../fish/guestfish-commands.pod:76
24837 msgid ""
24838 "Expand wildcards in any paths in the args list, and run C<command> "
24839 "repeatedly on each matching path."
24840 msgstr ""
24841
24842 # type: textblock
24843 #: ../fish/guestfish-commands.pod:79
24844 msgid "See L</WILDCARDS AND GLOBBING>."
24845 msgstr ""
24846
24847 # type: =head2
24848 #: ../fish/guestfish-commands.pod:81
24849 msgid "hexedit"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../fish/guestfish-commands.pod:83
24854 #, no-wrap
24855 msgid ""
24856 " hexedit <filename|device>\n"
24857 " hexedit <filename|device> <max>\n"
24858 " hexedit <filename|device> <start> <max>\n"
24859 "\n"
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../fish/guestfish-commands.pod:87
24864 msgid ""
24865 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24866 "device."
24867 msgstr ""
24868
24869 # type: textblock
24870 #: ../fish/guestfish-commands.pod:90
24871 msgid ""
24872 "This command works by downloading potentially the whole file or device, "
24873 "editing it locally, then uploading it.  If the file or device is large, you "
24874 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24875 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24876 "usual modifiers allowed such as C<1M> (1 megabyte)."
24877 msgstr ""
24878
24879 # type: textblock
24880 #: ../fish/guestfish-commands.pod:97
24881 msgid "For example to edit the first few sectors of a disk you might do:"
24882 msgstr ""
24883
24884 # type: verbatim
24885 #: ../fish/guestfish-commands.pod:100
24886 #, no-wrap
24887 msgid ""
24888 " hexedit /dev/sda 1M\n"
24889 "\n"
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../fish/guestfish-commands.pod:102
24894 msgid ""
24895 "which would allow you to edit anywhere within the first megabyte of the disk."
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../fish/guestfish-commands.pod:105
24900 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24901 msgstr ""
24902
24903 # type: verbatim
24904 #: ../fish/guestfish-commands.pod:107
24905 #, no-wrap
24906 msgid ""
24907 " hexedit /dev/sda1 0x400 0x400\n"
24908 "\n"
24909 msgstr ""
24910
24911 # type: textblock
24912 #: ../fish/guestfish-commands.pod:109
24913 msgid "(assuming the superblock is in the standard location)."
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../fish/guestfish-commands.pod:111
24918 msgid ""
24919 "This command requires the external L<hexedit(1)> program.  You can specify "
24920 "another program to use by setting the C<HEXEDITOR> environment variable."
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../fish/guestfish-commands.pod:115
24925 msgid "See also L</hexdump>."
24926 msgstr ""
24927
24928 # type: =head2
24929 #: ../fish/guestfish-commands.pod:117
24930 msgid "lcd"
24931 msgstr ""
24932
24933 # type: verbatim
24934 #: ../fish/guestfish-commands.pod:119
24935 #, no-wrap
24936 msgid ""
24937 " lcd directory\n"
24938 "\n"
24939 msgstr ""
24940
24941 # type: textblock
24942 #: ../fish/guestfish-commands.pod:121
24943 msgid ""
24944 "Change the local directory, ie. the current directory of guestfish itself."
24945 msgstr ""
24946
24947 # type: textblock
24948 #: ../fish/guestfish-commands.pod:124
24949 msgid "Note that C<!cd> won't do what you might expect."
24950 msgstr ""
24951
24952 # type: =head2
24953 #: ../fish/guestfish-commands.pod:126
24954 msgid "man"
24955 msgstr ""
24956
24957 # type: =head2
24958 #: ../fish/guestfish-commands.pod:128
24959 msgid "manual"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #: ../fish/guestfish-commands.pod:130
24964 #, no-wrap
24965 msgid ""
24966 "  man\n"
24967 "\n"
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../fish/guestfish-commands.pod:132
24972 msgid "Opens the manual page for guestfish."
24973 msgstr ""
24974
24975 # type: =head2
24976 #: ../fish/guestfish-commands.pod:134
24977 msgid "more"
24978 msgstr ""
24979
24980 # type: =head2
24981 #: ../fish/guestfish-commands.pod:136
24982 msgid "less"
24983 msgstr ""
24984
24985 # type: verbatim
24986 #: ../fish/guestfish-commands.pod:138
24987 #, no-wrap
24988 msgid ""
24989 " more filename\n"
24990 "\n"
24991 msgstr ""
24992
24993 # type: verbatim
24994 #: ../fish/guestfish-commands.pod:140
24995 #, no-wrap
24996 msgid ""
24997 " less filename\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../fish/guestfish-commands.pod:142
25003 msgid "This is used to view a file."
25004 msgstr ""
25005
25006 # type: textblock
25007 #: ../fish/guestfish-commands.pod:144
25008 msgid ""
25009 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25010 "C<less> you will get the C<less> command specifically."
25011 msgstr ""
25012
25013 # type: =head2
25014 #: ../fish/guestfish-commands.pod:147
25015 msgid "reopen"
25016 msgstr ""
25017
25018 # type: verbatim
25019 #: ../fish/guestfish-commands.pod:149
25020 #, no-wrap
25021 msgid ""
25022 "  reopen\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: textblock
25027 #: ../fish/guestfish-commands.pod:151
25028 msgid ""
25029 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25030 "normally, because the handle is closed properly when guestfish exits.  "
25031 "However this is occasionally useful for testing."
25032 msgstr ""
25033
25034 # type: =head2
25035 #: ../fish/guestfish-commands.pod:155
25036 msgid "sparse"
25037 msgstr ""
25038
25039 # type: verbatim
25040 #: ../fish/guestfish-commands.pod:157
25041 #, no-wrap
25042 msgid ""
25043 " sparse filename size\n"
25044 "\n"
25045 msgstr ""
25046
25047 # type: textblock
25048 #: ../fish/guestfish-commands.pod:159
25049 msgid ""
25050 "This creates an empty sparse file of the given size, and then adds so it can "
25051 "be further examined."
25052 msgstr ""
25053
25054 # type: textblock
25055 #: ../fish/guestfish-commands.pod:162
25056 msgid ""
25057 "In all respects it works the same as the L</alloc> command, except that the "
25058 "image file is allocated sparsely, which means that disk blocks are not "
25059 "assigned to the file until they are needed.  Sparse disk files only use "
25060 "space when written to, but they are slower and there is a danger you could "
25061 "run out of real disk space during a write operation."
25062 msgstr ""
25063
25064 # type: =head2
25065 #: ../fish/guestfish-commands.pod:172
25066 msgid "supported"
25067 msgstr ""
25068
25069 # type: verbatim
25070 #: ../fish/guestfish-commands.pod:174
25071 #, no-wrap
25072 msgid ""
25073 " supported\n"
25074 "\n"
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../fish/guestfish-commands.pod:176
25079 msgid ""
25080 "This command returns a list of the optional groups known to the daemon, and "
25081 "indicates which ones are supported by this build of the libguestfs appliance."
25082 msgstr ""
25083
25084 # type: textblock
25085 #: ../fish/guestfish-commands.pod:180
25086 msgid "See also L<guestfs(3)/AVAILABILITY>."
25087 msgstr ""
25088
25089 # type: =head2
25090 #: ../fish/guestfish-commands.pod:182
25091 msgid "time"
25092 msgstr ""
25093
25094 # type: verbatim
25095 #: ../fish/guestfish-commands.pod:184
25096 #, no-wrap
25097 msgid ""
25098 " time command args...\n"
25099 "\n"
25100 msgstr ""
25101
25102 # type: textblock
25103 #: ../fish/guestfish-commands.pod:186
25104 msgid ""
25105 "Run the command as usual, but print the elapsed time afterwards.  This can "
25106 "be useful for benchmarking operations."
25107 msgstr ""
25108
25109 # type: textblock
25110 #: ../test-tool/libguestfs-test-tool.pod:5
25111 msgid "libguestfs-test-tool - End user tests for libguestfs"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #: ../test-tool/libguestfs-test-tool.pod:9
25116 #, no-wrap
25117 msgid ""
25118 " libguestfs-test-tool [--options]\n"
25119 "\n"
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../test-tool/libguestfs-test-tool.pod:13
25124 msgid ""
25125 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25126 "and developers, to allow them to check basic libguestfs functionality is "
25127 "working.  This is needed because libguestfs occasionally breaks for reasons "
25128 "beyond our control: usually because of changes in the underlying qemu or "
25129 "kernel packages, or the host environment."
25130 msgstr ""
25131
25132 # type: textblock
25133 #: ../test-tool/libguestfs-test-tool.pod:20
25134 msgid "If you suspect a problem in libguestfs, then just run:"
25135 msgstr ""
25136
25137 # type: verbatim
25138 #: ../test-tool/libguestfs-test-tool.pod:22
25139 #, no-wrap
25140 msgid ""
25141 " libguestfs-test-tool\n"
25142 "\n"
25143 msgstr ""
25144
25145 # type: textblock
25146 #: ../test-tool/libguestfs-test-tool.pod:24
25147 msgid "It will print lots of diagnostic messages."
25148 msgstr ""
25149
25150 # type: textblock
25151 #: ../test-tool/libguestfs-test-tool.pod:26
25152 msgid "If it runs to completion successfully, you will see this near the end:"
25153 msgstr ""
25154
25155 # type: verbatim
25156 #: ../test-tool/libguestfs-test-tool.pod:28
25157 #, no-wrap
25158 msgid ""
25159 " ===== TEST FINISHED OK =====\n"
25160 "\n"
25161 msgstr ""
25162
25163 # type: textblock
25164 #: ../test-tool/libguestfs-test-tool.pod:30
25165 msgid "and the test tool will exit with code 0."
25166 msgstr ""
25167
25168 # type: textblock
25169 #: ../test-tool/libguestfs-test-tool.pod:32
25170 msgid ""
25171 "If it fails (and/or exits with non-zero error code), please paste the "
25172 "B<complete, unedited> output of the test tool into a bug report.  More "
25173 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25174 "> website."
25175 msgstr ""
25176
25177 # type: =item
25178 #: ../test-tool/libguestfs-test-tool.pod:41
25179 msgid "I<--help>"
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../test-tool/libguestfs-test-tool.pod:43
25184 msgid "Display short usage information and exit."
25185 msgstr ""
25186
25187 # type: =item
25188 #: ../test-tool/libguestfs-test-tool.pod:45
25189 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25190 msgstr ""
25191
25192 # type: textblock
25193 #: ../test-tool/libguestfs-test-tool.pod:47
25194 msgid ""
25195 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25196 "normally look in the C<$libexec> directory that was configured when the tool "
25197 "was built."
25198 msgstr ""
25199
25200 # type: =item
25201 #: ../test-tool/libguestfs-test-tool.pod:51
25202 msgid "I<--qemu qemu_binary>"
25203 msgstr ""
25204
25205 # type: textblock
25206 #: ../test-tool/libguestfs-test-tool.pod:53
25207 msgid ""
25208 "If you have downloaded another qemu binary, point this option at the full "
25209 "path of the binary to try it."
25210 msgstr ""
25211
25212 # type: =item
25213 #: ../test-tool/libguestfs-test-tool.pod:56
25214 msgid "I<--qemudir qemu_source_dir>"
25215 msgstr ""
25216
25217 # type: textblock
25218 #: ../test-tool/libguestfs-test-tool.pod:58
25219 msgid ""
25220 "If you have compiled qemu from source, point this option at the source "
25221 "directory to try it."
25222 msgstr ""
25223
25224 # type: =item
25225 #: ../test-tool/libguestfs-test-tool.pod:61
25226 msgid "I<--timeout N>"
25227 msgstr ""
25228
25229 # type: textblock
25230 #: ../test-tool/libguestfs-test-tool.pod:63
25231 msgid ""
25232 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25233 "does not usually need to be adjusted unless your machine is very slow."
25234 msgstr ""
25235
25236 # type: =head1
25237 #: ../test-tool/libguestfs-test-tool.pod:69
25238 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25239 msgstr ""
25240
25241 # type: textblock
25242 #: ../test-tool/libguestfs-test-tool.pod:71
25243 msgid ""
25244 "If you have compiled another version of qemu from source and would like to "
25245 "try that, then you can use the I<--qemudir> option to point to the qemu "
25246 "source directory."
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../test-tool/libguestfs-test-tool.pod:75
25251 msgid ""
25252 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25253 "option to point to the binary."
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../test-tool/libguestfs-test-tool.pod:78
25258 msgid ""
25259 "When using an alternate qemu with libguestfs, usually you would need to "
25260 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25261 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25262 "use either of the I<--qemudir> or I<--qemu> options."
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../test-tool/libguestfs-test-tool.pod:85
25267 msgid ""
25268 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25269 "I<1> if there was an error."
25270 msgstr ""
25271
25272 # type: =item
25273 #: ../test-tool/libguestfs-test-tool.pod:92
25274 msgid "/usr/libexec/libguestfs-test-tool-helper"
25275 msgstr ""
25276
25277 # type: textblock
25278 #: ../test-tool/libguestfs-test-tool.pod:94
25279 msgid ""
25280 "This helper program is run inside the appliance and provides additional "
25281 "tests."
25282 msgstr ""
25283
25284 # type: =item
25285 #: ../test-tool/libguestfs-test-tool.pod:97
25286 msgid "/usr/bin/mkisofs"
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../test-tool/libguestfs-test-tool.pod:99
25291 msgid ""
25292 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25293 "which is used as part of the tests."
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../test-tool/libguestfs-test-tool.pod:106
25298 msgid ""
25299 "For the full list of environment variables which may affect libguestfs, "
25300 "please see the L<guestfs(3)> manual page."
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../test-tool/libguestfs-test-tool.pod:111
25305 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25306 msgstr ""
25307
25308 # type: textblock
25309 #: ../test-tool/libguestfs-test-tool.pod:121
25310 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25311 msgstr ""
25312
25313 # type: textblock
25314 #: ../fuse/guestmount.pod:5
25315 msgid ""
25316 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #: ../fuse/guestmount.pod:9
25321 #, no-wrap
25322 msgid ""
25323 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25324 "\n"
25325 msgstr ""
25326
25327 # type: verbatim
25328 #: ../fuse/guestmount.pod:11
25329 #, no-wrap
25330 msgid ""
25331 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25332 "\n"
25333 msgstr ""
25334
25335 # type: verbatim
25336 #: ../fuse/guestmount.pod:13
25337 #, no-wrap
25338 msgid ""
25339 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25340 "\n"
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../fuse/guestmount.pod:17
25345 msgid ""
25346 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25347 "machines.  If you do this, you risk disk corruption in the VM."
25348 msgstr ""
25349
25350 # type: textblock
25351 #: ../fuse/guestmount.pod:22
25352 msgid ""
25353 "The guestmount program can be used to mount virtual machine filesystems and "
25354 "other disk images on the host.  It uses libguestfs for access to the guest "
25355 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25356 "a mountable device."
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../fuse/guestmount.pod:27
25361 msgid ""
25362 "Along with other options, you have to give at least one device (I<-a> "
25363 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25364 "option) or use the I<-i> inspection option.  How this works is better "
25365 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25366 "below."
25367 msgstr ""
25368
25369 # type: textblock
25370 #: ../fuse/guestmount.pod:33
25371 msgid ""
25372 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25373 "by you, and the filesystem will not be visible to any other users unless you "
25374 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25375 "the filesystem, use the C<fusermount -u> command."
25376 msgstr ""
25377
25378 # type: textblock
25379 #: ../fuse/guestmount.pod:41
25380 msgid ""
25381 "For a typical Windows guest which has its main filesystem on the first "
25382 "partition:"
25383 msgstr ""
25384
25385 # type: verbatim
25386 #: ../fuse/guestmount.pod:44
25387 #, no-wrap
25388 msgid ""
25389 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25390 "\n"
25391 msgstr ""
25392
25393 # type: textblock
25394 #: ../fuse/guestmount.pod:46
25395 msgid ""
25396 "For a typical Linux guest which has a /boot filesystem on the first "
25397 "partition, and the root filesystem on a logical volume:"
25398 msgstr ""
25399
25400 # type: verbatim
25401 #: ../fuse/guestmount.pod:49
25402 #, no-wrap
25403 msgid ""
25404 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25405 "\n"
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../fuse/guestmount.pod:51
25410 msgid "To get libguestfs to detect guest mountpoints for you:"
25411 msgstr ""
25412
25413 # type: verbatim
25414 #: ../fuse/guestmount.pod:53
25415 #, no-wrap
25416 msgid ""
25417 " guestmount -a guest.img -i --ro /mnt\n"
25418 "\n"
25419 msgstr ""
25420
25421 # type: textblock
25422 #: ../fuse/guestmount.pod:55
25423 msgid "For a libvirt guest called \"Guest\" you could do:"
25424 msgstr ""
25425
25426 # type: verbatim
25427 #: ../fuse/guestmount.pod:57
25428 #, no-wrap
25429 msgid ""
25430 " guestmount -d Guest -i --ro /mnt\n"
25431 "\n"
25432 msgstr ""
25433
25434 # type: textblock
25435 #: ../fuse/guestmount.pod:59
25436 msgid ""
25437 "If you don't know what filesystems are contained in a guest or disk image, "
25438 "use L<virt-list-filesystems(1)> first:"
25439 msgstr ""
25440
25441 # type: verbatim
25442 #: ../fuse/guestmount.pod:62
25443 #, no-wrap
25444 msgid ""
25445 " virt-list-filesystems MyGuest\n"
25446 "\n"
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../fuse/guestmount.pod:64
25451 msgid ""
25452 "If you want to trace the libguestfs calls but without excessive debugging "
25453 "information, we recommend:"
25454 msgstr ""
25455
25456 # type: verbatim
25457 #: ../fuse/guestmount.pod:67
25458 #, no-wrap
25459 msgid ""
25460 " guestmount [...] --trace /mnt\n"
25461 "\n"
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../fuse/guestmount.pod:69
25466 msgid "If you want to debug the program, we recommend:"
25467 msgstr ""
25468
25469 # type: verbatim
25470 #: ../fuse/guestmount.pod:71
25471 #, no-wrap
25472 msgid ""
25473 " guestmount [...] --trace --verbose /mnt\n"
25474 "\n"
25475 msgstr ""
25476
25477 # type: textblock
25478 #: ../fuse/guestmount.pod:79
25479 msgid "Add a block device or virtual machine image."
25480 msgstr ""
25481
25482 # type: =item
25483 #: ../fuse/guestmount.pod:96
25484 msgid "B<--dir-cache-timeout N>"
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../fuse/guestmount.pod:98
25489 msgid ""
25490 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25491 "seconds.  The readdir cache [actually, there are several semi-independent "
25492 "caches] is populated after a readdir(2) call with the stat and extended "
25493 "attributes of the files in the directory, in anticipation that they will be "
25494 "requested soon after."
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../fuse/guestmount.pod:104
25499 msgid ""
25500 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25501 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25502 "requests, only cache existing ones."
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../fuse/guestmount.pod:122
25507 msgid ""
25508 "If you have untrusted raw-format guest disk images, you should use this "
25509 "option to specify the disk format.  This avoids a possible security problem "
25510 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25511 "guestfs_add_drive_opts>."
25512 msgstr ""
25513
25514 # type: =item
25515 #: ../fuse/guestmount.pod:127
25516 msgid "B<--fuse-help>"
25517 msgstr ""
25518
25519 # type: textblock
25520 #: ../fuse/guestmount.pod:129
25521 msgid "Display help on special FUSE options (see I<-o> below)."
25522 msgstr ""
25523
25524 # type: textblock
25525 #: ../fuse/guestmount.pod:133
25526 msgid "Display brief help and exit."
25527 msgstr ""
25528
25529 # type: =item
25530 #: ../fuse/guestmount.pod:146
25531 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../fuse/guestmount.pod:148
25536 msgid ""
25537 "Mount the named partition or logical volume on the given mountpoint B<in the "
25538 "guest> (this has nothing to do with mountpoints in the host)."
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../fuse/guestmount.pod:151
25543 msgid ""
25544 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25545 "something on C</>."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../fuse/guestmount.pod:156
25550 msgid ""
25551 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25552 "unmounted.  If you specify this option, then we don't attempt to sync the "
25553 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25554 msgstr ""
25555
25556 # type: =item
25557 #: ../fuse/guestmount.pod:161
25558 msgid "B<-o option> | B<--option option>"
25559 msgstr ""
25560
25561 # type: textblock
25562 #: ../fuse/guestmount.pod:163
25563 msgid "Pass extra options to FUSE."
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../fuse/guestmount.pod:165
25568 msgid ""
25569 "To get a list of all the extra options supported by FUSE, use the command "
25570 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25571 "of them are a good idea."
25572 msgstr ""
25573
25574 # type: verbatim
25575 #: ../fuse/guestmount.pod:169
25576 #, no-wrap
25577 msgid ""
25578 " guestmount --fuse-help\n"
25579 "\n"
25580 msgstr ""
25581
25582 # type: textblock
25583 #: ../fuse/guestmount.pod:171
25584 msgid "Some potentially useful FUSE options:"
25585 msgstr ""
25586
25587 # type: =item
25588 #: ../fuse/guestmount.pod:175
25589 msgid "B<-o allow_other>"
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../fuse/guestmount.pod:177
25594 msgid "Allow other users to see the filesystem."
25595 msgstr ""
25596
25597 # type: =item
25598 #: ../fuse/guestmount.pod:179
25599 msgid "B<-o attr_timeout=N>"
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../fuse/guestmount.pod:181
25604 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25605 msgstr ""
25606
25607 # type: =item
25608 #: ../fuse/guestmount.pod:183
25609 msgid "B<-o kernel_cache>"
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../fuse/guestmount.pod:185
25614 msgid ""
25615 "Allow the kernel to cache files (reduces the number of reads that have to go "
25616 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25617 "afford the extra memory usage."
25618 msgstr ""
25619
25620 # type: =item
25621 #: ../fuse/guestmount.pod:189
25622 msgid "B<-o uid=N> B<-o gid=N>"
25623 msgstr ""
25624
25625 # type: textblock
25626 #: ../fuse/guestmount.pod:191
25627 msgid ""
25628 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25629 "the chosen values."
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../fuse/guestmount.pod:198
25634 msgid ""
25635 "Add devices and mount everything read-only.  Also disallow writes and make "
25636 "the disk appear read-only to FUSE."
25637 msgstr ""
25638
25639 # type: textblock
25640 #: ../fuse/guestmount.pod:201
25641 msgid ""
25642 "This is highly recommended if you are not going to edit the guest disk.  If "
25643 "the guest is running and this option is I<not> supplied, then there is a "
25644 "strong risk of disk corruption in the guest.  We try to prevent this from "
25645 "happening, but it is not always possible."
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../fuse/guestmount.pod:206
25650 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25651 msgstr ""
25652
25653 # type: textblock
25654 #: ../fuse/guestmount.pod:210
25655 msgid "Enable SELinux support for the guest."
25656 msgstr ""
25657
25658 # type: textblock
25659 #: ../fuse/guestmount.pod:214
25660 msgid "Enable verbose messages from underlying libguestfs."
25661 msgstr ""
25662
25663 # type: textblock
25664 #: ../fuse/guestmount.pod:218
25665 msgid "Display the program version and exit."
25666 msgstr ""
25667
25668 # type: textblock
25669 #: ../fuse/guestmount.pod:222
25670 msgid ""
25671 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25672 "FOR READ AND WRITE>."
25673 msgstr ""
25674
25675 # type: =item
25676 #: ../fuse/guestmount.pod:225
25677 msgid "B<-x> | B<--trace>"
25678 msgstr ""
25679
25680 # type: textblock
25681 #: ../fuse/guestmount.pod:227
25682 msgid "Trace libguestfs calls."
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../fuse/guestmount.pod:229
25687 msgid "This also stops the daemon from forking into the background."
25688 msgstr ""
25689
25690 # type: textblock
25691 #: ../fuse/guestmount.pod:235
25692 msgid ""
25693 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25694 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
25695 "net/>."
25696 msgstr ""
25697
25698 # type: textblock
25699 #: ../inspector/virt-inspector.pl:35
25700 msgid ""
25701 "virt-inspector - Display operating system version and other information "
25702 "about a virtual machine"
25703 msgstr ""
25704
25705 # type: verbatim
25706 #: ../inspector/virt-inspector.pl:39
25707 #, no-wrap
25708 msgid ""
25709 " virt-inspector [--connect URI] domname\n"
25710 "\n"
25711 msgstr ""
25712
25713 # type: verbatim
25714 #: ../inspector/virt-inspector.pl:41
25715 #, no-wrap
25716 msgid ""
25717 " virt-inspector guest.img [guest.img ...]\n"
25718 "\n"
25719 msgstr ""
25720
25721 # type: textblock
25722 #: ../inspector/virt-inspector.pl:45
25723 msgid ""
25724 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25725 "determine the version of the operating system and other information about "
25726 "the virtual machine."
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../inspector/virt-inspector.pl:49
25731 msgid "Virt-inspector produces XML output for feeding into other programs."
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../inspector/virt-inspector.pl:51
25736 msgid ""
25737 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25738 "libvirt domain (see: C<virsh list --all>)."
25739 msgstr ""
25740
25741 # type: textblock
25742 #: ../inspector/virt-inspector.pl:54
25743 msgid ""
25744 "You can also run virt-inspector directly on disk images from a single "
25745 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25746 "has several block devices, in which case you should list them one after "
25747 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25748 "to the guest's C</dev/sdb> and so on."
25749 msgstr ""
25750
25751 # type: textblock
25752 #: ../inspector/virt-inspector.pl:60
25753 msgid ""
25754 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25755 "inspect several virtual machines, you have to run virt-inspector several "
25756 "times (for example, from a shell script for-loop)."
25757 msgstr ""
25758
25759 # type: textblock
25760 #: ../inspector/virt-inspector.pl:65
25761 msgid ""
25762 "Because virt-inspector needs direct access to guest images, it won't "
25763 "normally work over remote libvirt connections."
25764 msgstr ""
25765
25766 # type: textblock
25767 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
25768 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
25769 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
25770 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
25771 #: ../tools/virt-list-partitions.pl:61
25772 msgid "Display brief help."
25773 msgstr ""
25774
25775 # type: =item
25776 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
25777 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
25778 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
25779 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
25780 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25781 msgid "B<--version>"
25782 msgstr ""
25783
25784 # type: textblock
25785 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
25786 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
25787 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
25788 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
25789 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25790 msgid "Display version number and exit."
25791 msgstr ""
25792
25793 # type: =item
25794 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
25795 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
25796 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
25797 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25798 msgid "B<--connect URI> | B<-c URI>"
25799 msgstr ""
25800
25801 # type: textblock
25802 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
25803 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
25804 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
25805 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25806 msgid ""
25807 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25808 "to the default libvirt hypervisor."
25809 msgstr ""
25810
25811 # type: textblock
25812 #: ../inspector/virt-inspector.pl:97
25813 msgid ""
25814 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25815 "you specify guest block devices directly, then libvirt is not used at all."
25816 msgstr ""
25817
25818 # type: =item
25819 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
25820 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
25821 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
25822 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
25823 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25824 msgid "B<--format> raw"
25825 msgstr ""
25826
25827 # type: textblock
25828 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
25829 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
25830 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
25831 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
25832 #: ../tools/virt-list-partitions.pl:89
25833 msgid ""
25834 "Specify the format of disk images given on the command line.  If this is "
25835 "omitted then the format is autodetected from the content of the disk image."
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
25840 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
25841 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
25842 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
25843 #: ../tools/virt-list-partitions.pl:93
25844 msgid ""
25845 "If disk images are requested from libvirt, then this program asks libvirt "
25846 "for this information.  In this case, the value of the format parameter is "
25847 "ignored."
25848 msgstr ""
25849
25850 # type: textblock
25851 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
25852 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
25853 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
25854 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
25855 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
25856 #: ../tools/virt-list-partitions.pl:97
25857 msgid ""
25858 "If working with untrusted raw-format guest disk images, you should ensure "
25859 "the format is always specified."
25860 msgstr ""
25861
25862 # type: =head1
25863 #: ../inspector/virt-inspector.pl:149
25864 msgid "XML FORMAT"
25865 msgstr ""
25866
25867 # type: textblock
25868 #: ../inspector/virt-inspector.pl:151
25869 msgid ""
25870 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25871 "supplied with libguestfs.  This section is just an overview."
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../inspector/virt-inspector.pl:154
25876 msgid ""
25877 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25878 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25879 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25880 "which is vanishingly rare in real world VMs."
25881 msgstr ""
25882
25883 # type: =head2
25884 #: ../inspector/virt-inspector.pl:159
25885 msgid "E<lt>operatingsystemE<gt>"
25886 msgstr ""
25887
25888 # type: textblock
25889 #: ../inspector/virt-inspector.pl:161
25890 msgid ""
25891 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25892 "describe the operating system, its architecture, the descriptive \"product "
25893 "name\" string, the type of OS and so on, as in this example:"
25894 msgstr ""
25895
25896 # type: verbatim
25897 #: ../inspector/virt-inspector.pl:165
25898 #, no-wrap
25899 msgid ""
25900 " <operatingsystems>\n"
25901 "   <operatingsystem>\n"
25902 "     <root>/dev/sda2</root>\n"
25903 "     <name>windows</name>\n"
25904 "     <arch>i386</arch>\n"
25905 "     <distro>windows</distro>\n"
25906 "     <product_name>Windows 7 Enterprise</product_name>\n"
25907 "     <major_version>6</major_version>\n"
25908 "     <minor_version>1</minor_version>\n"
25909 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25910 "\n"
25911 msgstr ""
25912
25913 # type: textblock
25914 #: ../inspector/virt-inspector.pl:176
25915 msgid ""
25916 "These fields are derived from the libguestfs inspection API, and you can "
25917 "find more details in L<guestfs(3)/INSPECTION>."
25918 msgstr ""
25919
25920 # type: textblock
25921 #: ../inspector/virt-inspector.pl:179
25922 msgid ""
25923 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25924 "of view of libguestfs (block devices may have completely different names "
25925 "inside the VM itself)."
25926 msgstr ""
25927
25928 # type: =head2
25929 #: ../inspector/virt-inspector.pl:240
25930 msgid "E<lt>mountpointsE<gt>"
25931 msgstr ""
25932
25933 # type: textblock
25934 #: ../inspector/virt-inspector.pl:242
25935 msgid ""
25936 "Un*x-like guests typically have multiple filesystems which are mounted at "
25937 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25938 "element which looks like this:"
25939 msgstr ""
25940
25941 # type: verbatim
25942 #: ../inspector/virt-inspector.pl:246
25943 #, no-wrap
25944 msgid ""
25945 " <operatingsystems>\n"
25946 "   <operatingsystem>\n"
25947 "     ...\n"
25948 "     <mountpoints>\n"
25949 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25950 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25951 "     </mountpoints>\n"
25952 "\n"
25953 msgstr ""
25954
25955 # type: textblock
25956 #: ../inspector/virt-inspector.pl:254
25957 msgid ""
25958 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25959 "and may have completely different names inside the guest.  Only mountable "
25960 "filesystems appear in this list, not things like swap devices."
25961 msgstr ""
25962
25963 # type: =head2
25964 #: ../inspector/virt-inspector.pl:276
25965 msgid "E<lt>filesystemsE<gt>"
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../inspector/virt-inspector.pl:278
25970 msgid ""
25971 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25972 "filesystems belonging to the guest, including swap and empty partitions.  "
25973 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25974 "this OS or shared by this OS and other OSes)."
25975 msgstr ""
25976
25977 # type: textblock
25978 #: ../inspector/virt-inspector.pl:283
25979 msgid "You might see something like this:"
25980 msgstr ""
25981
25982 # type: verbatim
25983 #: ../inspector/virt-inspector.pl:285
25984 #, no-wrap
25985 msgid ""
25986 " <operatingsystems>\n"
25987 "   <operatingsystem>\n"
25988 "     ...\n"
25989 "     <filesystems>\n"
25990 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25991 "         <type>ext4</type>\n"
25992 "         <label>Fedora-13-x86_64</label>\n"
25993 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25994 "       </filesystem>\n"
25995 "\n"
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../inspector/virt-inspector.pl:295
26000 msgid ""
26001 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
26002 "the label, and the UUID."
26003 msgstr ""
26004
26005 # type: =head2
26006 #: ../inspector/virt-inspector.pl:337
26007 msgid "E<lt>applicationsE<gt>"
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../inspector/virt-inspector.pl:339
26012 msgid ""
26013 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
26014 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
26015 "machine.  At the moment we are only able to list RPMs and Debian packages "
26016 "installed, but in future we will support other Linux distros and Windows."
26017 msgstr ""
26018
26019 # type: textblock
26020 #: ../inspector/virt-inspector.pl:345
26021 msgid ""
26022 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
26023 "Typical values would be C<rpm> and C<deb>."
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../inspector/virt-inspector.pl:348
26028 msgid ""
26029 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
26030 "Typical values include C<yum>, C<up2date> and C<apt>"
26031 msgstr ""
26032
26033 # type: textblock
26034 #: ../inspector/virt-inspector.pl:351
26035 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
26036 msgstr ""
26037
26038 # type: verbatim
26039 #: ../inspector/virt-inspector.pl:354
26040 #, no-wrap
26041 msgid ""
26042 " <operatingsystems>\n"
26043 "   <operatingsystem>\n"
26044 "     ...\n"
26045 "     <applications>\n"
26046 "       <application>\n"
26047 "         <name>coreutils</name>\n"
26048 "         <version>8.5</version>\n"
26049 "         <release>1</release>\n"
26050 "       </application>\n"
26051 "\n"
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../inspector/virt-inspector.pl:364
26056 msgid ""
26057 "(The version and release fields may not be available for some package types)."
26058 msgstr ""
26059
26060 # type: =head1
26061 #: ../inspector/virt-inspector.pl:510
26062 msgid "USING XPATH"
26063 msgstr ""
26064
26065 # type: textblock
26066 #: ../inspector/virt-inspector.pl:512
26067 msgid ""
26068 "You can use the XPath query language, and/or the xpath tool, in order to "
26069 "select parts of the XML."
26070 msgstr ""
26071
26072 # type: verbatim
26073 #: ../inspector/virt-inspector.pl:517
26074 #, no-wrap
26075 msgid ""
26076 " $ virt-inspector Guest | xpath //filesystems\n"
26077 " Found 1 nodes:\n"
26078 " -- NODE --\n"
26079 " <filesystems>\n"
26080 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
26081 "        <type>ext4</type>\n"
26082 " [etc]\n"
26083 "\n"
26084 msgstr ""
26085
26086 # type: verbatim
26087 #: ../inspector/virt-inspector.pl:525
26088 #, no-wrap
26089 msgid ""
26090 " $ virt-inspector Guest | \\\n"
26091 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
26092 " Query didn't return a nodeset. Value: ext4\n"
26093 "\n"
26094 msgstr ""
26095
26096 # type: =head2
26097 #: ../inspector/virt-inspector.pl:529 ../tools/virt-edit.pl:343
26098 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
26099 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
26100 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
26101 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
26102 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
26103 msgid "SHELL QUOTING"
26104 msgstr ""
26105
26106 # type: textblock
26107 #: ../inspector/virt-inspector.pl:531 ../tools/virt-edit.pl:345
26108 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
26109 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
26110 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276
26111 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
26112 #: ../tools/virt-list-partitions.pl:249
26113 msgid ""
26114 "Libvirt guest names can contain arbitrary characters, some of which have "
26115 "meaning to the shell such as C<#> and space.  You may need to quote or "
26116 "escape these characters on the command line.  See the shell manual page L<sh"
26117 "(1)> for details."
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../inspector/virt-inspector.pl:538
26122 msgid ""
26123 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26124 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../inspector/virt-inspector.pl:552 ../tools/virt-edit.pl:364
26129 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
26130 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
26131 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294
26132 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
26133 #: ../tools/virt-list-partitions.pl:267
26134 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26135 msgstr ""
26136
26137 # type: textblock
26138 #: ../inspector/virt-inspector.pl:556
26139 msgid "Matthew Booth L<mbooth@redhat.com>"
26140 msgstr ""
26141
26142 # type: textblock
26143 #: ../inspector/virt-inspector.pl:562 ../tools/virt-win-reg.pl:516
26144 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
26145 msgid "Copyright (C) 2010 Red Hat Inc."
26146 msgstr ""
26147
26148 # type: textblock
26149 #: ../tools/virt-edit.pl:34
26150 msgid "virt-edit - Edit a file in a virtual machine"
26151 msgstr ""
26152
26153 # type: verbatim
26154 #: ../tools/virt-edit.pl:38
26155 #, no-wrap
26156 msgid ""
26157 " virt-edit [--options] domname file\n"
26158 "\n"
26159 msgstr ""
26160
26161 # type: verbatim
26162 #: ../tools/virt-edit.pl:40
26163 #, no-wrap
26164 msgid ""
26165 " virt-edit [--options] disk.img [disk.img ...] file\n"
26166 "\n"
26167 msgstr ""
26168
26169 # type: verbatim
26170 #: ../tools/virt-edit.pl:42
26171 #, no-wrap
26172 msgid ""
26173 " virt-edit [domname|disk.img] file -e 'expr'\n"
26174 "\n"
26175 msgstr ""
26176
26177 # type: textblock
26178 #: ../tools/virt-edit.pl:46
26179 msgid ""
26180 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26181 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26182 "doing this, but doesn't catch all cases."
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../tools/virt-edit.pl:52
26187 msgid ""
26188 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26189 "the named virtual machine (or disk image)."
26190 msgstr ""
26191
26192 # type: textblock
26193 #: ../tools/virt-edit.pl:55
26194 msgid ""
26195 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26196 "you should look at the L<guestfish(1)> tool."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-edit.pl:60
26201 msgid "Edit the named files interactively:"
26202 msgstr ""
26203
26204 # type: verbatim
26205 #: ../tools/virt-edit.pl:62
26206 #, no-wrap
26207 msgid ""
26208 " virt-edit mydomain /boot/grub/grub.conf\n"
26209 "\n"
26210 msgstr ""
26211
26212 # type: verbatim
26213 #: ../tools/virt-edit.pl:64
26214 #, no-wrap
26215 msgid ""
26216 " virt-edit mydomain /etc/passwd\n"
26217 "\n"
26218 msgstr ""
26219
26220 # type: textblock
26221 #: ../tools/virt-edit.pl:66
26222 msgid ""
26223 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26224 "below).  To change the init default level to 5:"
26225 msgstr ""
26226
26227 # type: verbatim
26228 #: ../tools/virt-edit.pl:70
26229 #, no-wrap
26230 msgid ""
26231 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26232 "\n"
26233 msgstr ""
26234
26235 # type: =item
26236 #: ../tools/virt-edit.pl:96
26237 msgid "B<--backup extension> | B<-b extension>"
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-edit.pl:98
26242 msgid ""
26243 "Create a backup of the original file I<in the guest disk image>.  The backup "
26244 "has the original filename with C<extension> added."
26245 msgstr ""
26246
26247 # type: textblock
26248 #: ../tools/virt-edit.pl:101
26249 msgid ""
26250 "Usually the first character of C<extension> would be a dot C<.> so you would "
26251 "write:"
26252 msgstr ""
26253
26254 # type: verbatim
26255 #: ../tools/virt-edit.pl:104
26256 #, no-wrap
26257 msgid ""
26258 " virt-edit -b .orig [etc]\n"
26259 "\n"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-edit.pl:106
26264 msgid "By default, no backup file is made."
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26269 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
26270 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
26271 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
26272 msgid ""
26273 "If you specify guest block devices directly, then libvirt is not used at all."
26274 msgstr ""
26275
26276 # type: =item
26277 #: ../tools/virt-edit.pl:141
26278 msgid "B<--expr EXPR> | B<-e EXPR>"
26279 msgstr ""
26280
26281 # type: textblock
26282 #: ../tools/virt-edit.pl:143
26283 msgid ""
26284 "Instead of launching the external editor, non-interactively apply the Perl "
26285 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26286 "EDITING> below."
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-edit.pl:147
26291 msgid ""
26292 "Be careful to properly quote the expression to prevent it from being altered "
26293 "by the shell."
26294 msgstr ""
26295
26296 # type: =head1
26297 #: ../tools/virt-edit.pl:268
26298 msgid "NON-INTERACTIVE EDITING"
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-edit.pl:270
26303 msgid ""
26304 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26305 "administrator can interactively edit the file."
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-edit.pl:273
26310 msgid ""
26311 "There are two ways also to use C<virt-edit> from scripts in order to make "
26312 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26313 "like this, it's less error-prone to write scripts directly using the "
26314 "libguestfs API and Augeas for configuration file editing.)"
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-edit.pl:279
26319 msgid ""
26320 "The first method is to temporarily set C<$EDITOR> to any script or program "
26321 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26322 "update C<tmpfile> in place however it likes."
26323 msgstr ""
26324
26325 # type: textblock
26326 #: ../tools/virt-edit.pl:283
26327 msgid ""
26328 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26329 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26330 "instances of C<foo> with C<bar> in a file:"
26331 msgstr ""
26332
26333 # type: verbatim
26334 #: ../tools/virt-edit.pl:287
26335 #, no-wrap
26336 msgid ""
26337 " virt-edit domname filename -e 's/foo/bar/'\n"
26338 "\n"
26339 msgstr ""
26340
26341 # type: textblock
26342 #: ../tools/virt-edit.pl:289
26343 msgid ""
26344 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26345 "For example to delete root's password you could do:"
26346 msgstr ""
26347
26348 # type: verbatim
26349 #: ../tools/virt-edit.pl:292
26350 #, no-wrap
26351 msgid ""
26352 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26353 "\n"
26354 msgstr ""
26355
26356 # type: textblock
26357 #: ../tools/virt-edit.pl:294
26358 msgid ""
26359 "What really happens is that the snippet is evaluated as a Perl expression "
26360 "for each line of the file.  The line, including the final C<\\n>, is passed "
26361 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26362 msgstr ""
26363
26364 # type: textblock
26365 #: ../tools/virt-edit.pl:299
26366 msgid ""
26367 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26368 "C<apache> user account from the password file you can do:"
26369 msgstr ""
26370
26371 # type: verbatim
26372 #: ../tools/virt-edit.pl:302
26373 #, no-wrap
26374 msgid ""
26375 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26376 "\n"
26377 msgstr ""
26378
26379 # type: textblock
26380 #: ../tools/virt-edit.pl:304
26381 msgid ""
26382 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26383 "the end of the file is rather difficult this way since there is no concept "
26384 "of \"last line of the file\" - your expression just doesn't get called "
26385 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26386 "want to do this."
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../tools/virt-edit.pl:310
26391 msgid ""
26392 "The variable C<$lineno> contains the current line number.  As is "
26393 "traditional, the first line in the file is number C<1>."
26394 msgstr ""
26395
26396 # type: textblock
26397 #: ../tools/virt-edit.pl:313
26398 msgid ""
26399 "The return value from the expression is ignored, but the expression may call "
26400 "C<die> in order to abort the whole program, leaving the original file "
26401 "untouched."
26402 msgstr ""
26403
26404 # type: textblock
26405 #: ../tools/virt-edit.pl:317
26406 msgid ""
26407 "Remember when matching the end of a line that C<$_> may contain the final C<"
26408 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26409 "newline then neither of these.  Thus to match or substitute some text at the "
26410 "end of a line, use this regular expression:"
26411 msgstr ""
26412
26413 # type: verbatim
26414 #: ../tools/virt-edit.pl:322
26415 #, no-wrap
26416 msgid ""
26417 " /some text(\\r?\\n)?$/\n"
26418 "\n"
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-edit.pl:324
26423 msgid ""
26424 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26425 "$_> itself (since that would remove all newlines from the file):"
26426 msgstr ""
26427
26428 # type: verbatim
26429 #: ../tools/virt-edit.pl:328
26430 #, no-wrap
26431 msgid ""
26432 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26433 "\n"
26434 msgstr ""
26435
26436 # type: =item
26437 #: ../tools/virt-edit.pl:334
26438 msgid "C<EDITOR>"
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../tools/virt-edit.pl:336
26443 msgid ""
26444 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26445 "\"emacs -nw\">"
26446 msgstr ""
26447
26448 # type: textblock
26449 #: ../tools/virt-edit.pl:339
26450 msgid "If not set, C<vi> is used."
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-edit.pl:352
26455 msgid ""
26456 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26457 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26458 "L<perlre(1)>."
26459 msgstr ""
26460
26461 # type: =head1
26462 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26463 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26464 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26465 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26466 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26467 msgid "AUTHOR"
26468 msgstr ""
26469
26470 # type: textblock
26471 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26472 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26473 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26474 msgstr ""
26475
26476 # type: textblock
26477 #: ../tools/virt-win-reg.pl:37
26478 msgid ""
26479 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26480 msgstr ""
26481
26482 # type: verbatim
26483 #: ../tools/virt-win-reg.pl:41
26484 #, no-wrap
26485 msgid ""
26486 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26487 "\n"
26488 msgstr ""
26489
26490 # type: verbatim
26491 #: ../tools/virt-win-reg.pl:43
26492 #, no-wrap
26493 msgid ""
26494 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26495 "\n"
26496 msgstr ""
26497
26498 # type: verbatim
26499 #: ../tools/virt-win-reg.pl:45
26500 #, no-wrap
26501 msgid ""
26502 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: verbatim
26507 #: ../tools/virt-win-reg.pl:47
26508 #, no-wrap
26509 msgid ""
26510 " virt-win-reg --merge domname [input.reg ...]\n"
26511 "\n"
26512 msgstr ""
26513
26514 # type: verbatim
26515 #: ../tools/virt-win-reg.pl:49
26516 #, no-wrap
26517 msgid ""
26518 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26519 "\n"
26520 msgstr ""
26521
26522 # type: textblock
26523 #: ../tools/virt-win-reg.pl:53
26524 msgid ""
26525 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26526 "virtual machines.  If you do this, you I<will> get irreversible disk "
26527 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26528 "but doesn't catch all cases."
26529 msgstr ""
26530
26531 # type: textblock
26532 #: ../tools/virt-win-reg.pl:58
26533 msgid ""
26534 "Modifying the Windows Registry is an inherently risky operation.  The format "
26535 "is deliberately obscure and undocumented, and Registry changes can leave the "
26536 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26537 "you have a reliable backup first."
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-win-reg.pl:65
26542 msgid ""
26543 "This program can export and merge Windows Registry entries from a Windows "
26544 "guest."
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../tools/virt-win-reg.pl:68
26549 msgid ""
26550 "The first parameter is the libvirt guest name or the raw disk image of a "
26551 "Windows guest."
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-win-reg.pl:71
26556 msgid ""
26557 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26558 "exported (recursively).  For example:"
26559 msgstr ""
26560
26561 # type: verbatim
26562 #: ../tools/virt-win-reg.pl:74
26563 #, no-wrap
26564 msgid ""
26565 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26566 "\n"
26567 msgstr ""
26568
26569 # type: textblock
26570 #: ../tools/virt-win-reg.pl:76
26571 msgid ""
26572 "You can also display single values from within registry keys, for example:"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #: ../tools/virt-win-reg.pl:79
26577 #, no-wrap
26578 msgid ""
26579 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26580 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26581 " Windows 7 Enterprise\n"
26582 "\n"
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-win-reg.pl:83
26587 msgid ""
26588 "With C<--merge>, you can merge a textual regedit file into the Windows "
26589 "Registry:"
26590 msgstr ""
26591
26592 # type: verbatim
26593 #: ../tools/virt-win-reg.pl:86
26594 #, no-wrap
26595 msgid ""
26596 " $ virt-win-reg --merge Windows7 changes.reg\n"
26597 "\n"
26598 msgstr ""
26599
26600 # type: =head2
26601 #: ../tools/virt-win-reg.pl:88
26602 msgid "SUPPORTED SYSTEMS"
26603 msgstr ""
26604
26605 # type: textblock
26606 #: ../tools/virt-win-reg.pl:90
26607 msgid ""
26608 "The program currently supports Windows NT-derived guests starting with "
26609 "Windows XP through to at least Windows 7."
26610 msgstr ""
26611
26612 # type: textblock
26613 #: ../tools/virt-win-reg.pl:93
26614 msgid ""
26615 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26616 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26617 "and C<HKEY_USERS\\.DEFAULT>."
26618 msgstr ""
26619
26620 # type: textblock
26621 #: ../tools/virt-win-reg.pl:97
26622 msgid ""
26623 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26624 "C<HKEY_USERS>."
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-win-reg.pl:100
26629 msgid ""
26630 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26631 "time."
26632 msgstr ""
26633
26634 # type: =head2
26635 #: ../tools/virt-win-reg.pl:103
26636 msgid "NOTE"
26637 msgstr ""
26638
26639 # type: textblock
26640 #: ../tools/virt-win-reg.pl:105
26641 msgid ""
26642 "This program is only meant for simple access to the registry.  If you want "
26643 "to do complicated things with the registry, we suggest you download the "
26644 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26645 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26646 "L<hivexregedit(1)>."
26647 msgstr ""
26648
26649 # type: =head2
26650 #: ../tools/virt-win-reg.pl:111
26651 msgid "ENCODING"
26652 msgstr ""
26653
26654 # type: textblock
26655 #: ../tools/virt-win-reg.pl:113
26656 msgid ""
26657 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26658 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26659 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26660 "Windows-style line endings, you may need to reencode the whole file before "
26661 "or after processing."
26662 msgstr ""
26663
26664 # type: textblock
26665 #: ../tools/virt-win-reg.pl:119
26666 msgid ""
26667 "To reencode a file from Windows format to Linux (before processing it with "
26668 "the C<--merge> option), you would do something like this:"
26669 msgstr ""
26670
26671 # type: verbatim
26672 #: ../tools/virt-win-reg.pl:122
26673 #, no-wrap
26674 msgid ""
26675 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26676 "\n"
26677 msgstr ""
26678
26679 # type: textblock
26680 #: ../tools/virt-win-reg.pl:124
26681 msgid ""
26682 "To go in the opposite direction, after exporting and before sending the file "
26683 "to a Windows user, do something like this:"
26684 msgstr ""
26685
26686 # type: verbatim
26687 #: ../tools/virt-win-reg.pl:127
26688 #, no-wrap
26689 msgid ""
26690 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26691 "\n"
26692 msgstr ""
26693
26694 # type: textblock
26695 #: ../tools/virt-win-reg.pl:129
26696 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26697 msgstr ""
26698
26699 # type: textblock
26700 #: ../tools/virt-win-reg.pl:131
26701 msgid ""
26702 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26703 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26704 "style (CRLF) line endings, like this:"
26705 msgstr ""
26706
26707 # type: verbatim
26708 #: ../tools/virt-win-reg.pl:135
26709 #, no-wrap
26710 msgid ""
26711 " $ file software.reg\n"
26712 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26713 " with CRLF line terminators\n"
26714 "\n"
26715 msgstr ""
26716
26717 # type: textblock
26718 #: ../tools/virt-win-reg.pl:139
26719 msgid "This file would need conversion before you could C<--merge> it."
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-win-reg.pl:143
26724 msgid ""
26725 "Be careful when passing parameters containing C<\\> (backslash) in the "
26726 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26727 "(but not both) to protect them from the shell."
26728 msgstr ""
26729
26730 # type: textblock
26731 #: ../tools/virt-win-reg.pl:147
26732 msgid "Paths and value names are case-insensitive."
26733 msgstr ""
26734
26735 # type: =head2
26736 #: ../tools/virt-win-reg.pl:149
26737 msgid "CurrentControlSet etc."
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-win-reg.pl:151
26742 msgid ""
26743 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26744 "Registry at the level of the hive file, and therefore you cannot modify "
26745 "these."
26746 msgstr ""
26747
26748 # type: textblock
26749 #: ../tools/virt-win-reg.pl:155
26750 msgid ""
26751 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26752 "circumstances it might refer to another control set.  The way to find out is "
26753 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26754 msgstr ""
26755
26756 # type: verbatim
26757 #: ../tools/virt-win-reg.pl:159
26758 #, no-wrap
26759 msgid ""
26760 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26761 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26762 " \"Current\"=dword:00000001\n"
26763 " \"Default\"=dword:00000001\n"
26764 " \"Failed\"=dword:00000000\n"
26765 " \"LastKnownGood\"=dword:00000002\n"
26766 "\n"
26767 msgstr ""
26768
26769 # type: textblock
26770 #: ../tools/virt-win-reg.pl:166
26771 msgid "\"Current\" is the one which Windows will choose when it boots."
26772 msgstr ""
26773
26774 # type: textblock
26775 #: ../tools/virt-win-reg.pl:168
26776 msgid ""
26777 "Similarly, other C<Current...> keys in the path may need to be replaced."
26778 msgstr ""
26779
26780 # type: =item
26781 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26782 msgid "B<--debug>"
26783 msgstr ""
26784
26785 # type: textblock
26786 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26787 msgid "Enable debugging messages."
26788 msgstr ""
26789
26790 # type: =item
26791 #: ../tools/virt-win-reg.pl:232
26792 msgid "B<--merge>"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-win-reg.pl:234
26797 msgid ""
26798 "In merge mode, this merges a textual regedit file into the Windows Registry "
26799 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26800 "displays or exports Registry entries instead."
26801 msgstr ""
26802
26803 # type: textblock
26804 #: ../tools/virt-win-reg.pl:238
26805 msgid ""
26806 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26807 "result in disk corruption.  However exporting (without this flag)  is always "
26808 "safe."
26809 msgstr ""
26810
26811 # type: =item
26812 #: ../tools/virt-win-reg.pl:246
26813 msgid "B<--encoding> UTF-16LE|ASCII"
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-win-reg.pl:248
26818 msgid ""
26819 "When merging (only), you may need to specify the encoding for strings to be "
26820 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26821 "(3)/ENCODING STRINGS>."
26822 msgstr ""
26823
26824 # type: textblock
26825 #: ../tools/virt-win-reg.pl:252
26826 msgid ""
26827 "The default is to use UTF-16LE, which should work with recent versions of "
26828 "Windows."
26829 msgstr ""
26830
26831 # type: textblock
26832 #: ../tools/virt-win-reg.pl:486
26833 msgid ""
26834 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26835 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26836 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26837 msgstr ""
26838
26839 # type: textblock
26840 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26841 msgid ""
26842 "When reporting bugs, please enable debugging and capture the I<complete> "
26843 "output:"
26844 msgstr ""
26845
26846 # type: verbatim
26847 #: ../tools/virt-win-reg.pl:504
26848 #, no-wrap
26849 msgid ""
26850 " export LIBGUESTFS_DEBUG=1\n"
26851 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26852 "\n"
26853 msgstr ""
26854
26855 # type: textblock
26856 #: ../tools/virt-win-reg.pl:507
26857 msgid ""
26858 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26859 "redhat.com/>"
26860 msgstr ""
26861
26862 # type: textblock
26863 #: ../tools/virt-df.pl:36
26864 msgid "virt-df - Display free space on virtual filesystems"
26865 msgstr ""
26866
26867 # type: verbatim
26868 #: ../tools/virt-df.pl:40
26869 #, no-wrap
26870 msgid ""
26871 " virt-df [--options]\n"
26872 "\n"
26873 msgstr ""
26874
26875 # type: verbatim
26876 #: ../tools/virt-df.pl:42
26877 #, no-wrap
26878 msgid ""
26879 " virt-df [--options] domname\n"
26880 "\n"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #: ../tools/virt-df.pl:44
26885 #, no-wrap
26886 msgid ""
26887 " virt-df [--options] disk.img [disk.img ...]\n"
26888 "\n"
26889 msgstr ""
26890
26891 # type: textblock
26892 #: ../tools/virt-df.pl:48
26893 msgid ""
26894 "C<virt-df> is a command line tool to display free space on virtual machine "
26895 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26896 "space allocated to a virtual machine, but can look inside the virtual "
26897 "machine to see how much space is really being used."
26898 msgstr ""
26899
26900 # type: textblock
26901 #: ../tools/virt-df.pl:53
26902 msgid ""
26903 "It is like the L<df(1)> command, but for virtual machines, except that it "
26904 "also works for Windows virtual machines."
26905 msgstr ""
26906
26907 # type: textblock
26908 #: ../tools/virt-df.pl:56
26909 msgid ""
26910 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26911 "of all active and inactive guests, and performs a C<df>-type operation on "
26912 "each one in turn, printing out the results."
26913 msgstr ""
26914
26915 # type: textblock
26916 #: ../tools/virt-df.pl:60
26917 msgid ""
26918 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26919 "either the single named libvirt domain, or on the disk image(s) listed on "
26920 "the command line (which must all belong to a single VM).  In this mode (with "
26921 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26922 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26923 msgstr ""
26924
26925 # type: textblock
26926 #: ../tools/virt-df.pl:67
26927 msgid ""
26928 "Use the C<--csv> option to get a format which can be easily parsed by other "
26929 "programs.  Other options are mostly similar to standard C<df> options.  See "
26930 "below for the complete list."
26931 msgstr ""
26932
26933 # type: =item
26934 #: ../tools/virt-df.pl:107
26935 msgid "B<--csv>"
26936 msgstr ""
26937
26938 # type: textblock
26939 #: ../tools/virt-df.pl:109
26940 msgid ""
26941 "Write out the results in CSV format (comma-separated values).  This format "
26942 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26943 "ABOUT CSV FORMAT> below."
26944 msgstr ""
26945
26946 # type: =item
26947 #: ../tools/virt-df.pl:134
26948 msgid "B<--human-readable> | B<-h>"
26949 msgstr ""
26950
26951 # type: textblock
26952 #: ../tools/virt-df.pl:136
26953 msgid "Print sizes in human-readable format."
26954 msgstr ""
26955
26956 # type: textblock
26957 #: ../tools/virt-df.pl:138
26958 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26959 msgstr ""
26960
26961 # type: =item
26962 #: ../tools/virt-df.pl:144
26963 msgid "B<--inodes> | B<-i>"
26964 msgstr ""
26965
26966 # type: textblock
26967 #: ../tools/virt-df.pl:146
26968 msgid "Print inodes instead of blocks."
26969 msgstr ""
26970
26971 # type: =item
26972 #: ../tools/virt-df.pl:152
26973 msgid "B<--one-per-guest>"
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-df.pl:154
26978 msgid ""
26979 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26980 "disks from several guests to a single libguestfs appliance."
26981 msgstr ""
26982
26983 # type: textblock
26984 #: ../tools/virt-df.pl:157
26985 msgid "You might use this option in the following circumstances:"
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-df.pl:163
26990 msgid ""
26991 "If you think an untrusted guest might actively try to exploit the libguestfs "
26992 "appliance kernel, then this prevents one guest from interfering with the "
26993 "stats printed for another guest."
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-df.pl:169
26998 msgid ""
26999 "If the kernel has a bug which stops it from accessing a filesystem in one "
27000 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27001 "and report stats for further guests."
27002 msgstr ""
27003
27004 # type: =item
27005 #: ../tools/virt-df.pl:180
27006 msgid "B<--uuid>"
27007 msgstr ""
27008
27009 # type: textblock
27010 #: ../tools/virt-df.pl:182
27011 msgid ""
27012 "Print UUIDs instead of names.  This is useful for following a guest even "
27013 "when the guest is migrated or renamed, or when two guests happen to have the "
27014 "same name."
27015 msgstr ""
27016
27017 # type: textblock
27018 #: ../tools/virt-df.pl:186
27019 msgid ""
27020 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27021 "images, we still print the disk image name even when this option is "
27022 "specified."
27023 msgstr ""
27024
27025 # type: =head1
27026 #: ../tools/virt-df.pl:609
27027 msgid "NOTE ABOUT CSV FORMAT"
27028 msgstr ""
27029
27030 # type: textblock
27031 #: ../tools/virt-df.pl:611
27032 msgid ""
27033 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27034 "should be easy to parse, but it is definitely not easy to parse."
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-df.pl:614
27039 msgid ""
27040 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27041 "reliably.  This example has two columns:"
27042 msgstr ""
27043
27044 # type: verbatim
27045 #: ../tools/virt-df.pl:617
27046 #, no-wrap
27047 msgid ""
27048 " \"foo,bar\",baz\n"
27049 "\n"
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-df.pl:619
27054 msgid ""
27055 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27056 "reliably.  This example has one row:"
27057 msgstr ""
27058
27059 # type: verbatim
27060 #: ../tools/virt-df.pl:622
27061 #, no-wrap
27062 msgid ""
27063 " \"foo\n"
27064 " bar\",baz\n"
27065 "\n"
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-df.pl:625
27070 msgid ""
27071 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27072 "packaged in major Linux distributions)."
27073 msgstr ""
27074
27075 # type: textblock
27076 #: ../tools/virt-df.pl:628
27077 msgid ""
27078 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27079 "or Python's built-in csv library)."
27080 msgstr ""
27081
27082 # type: textblock
27083 #: ../tools/virt-df.pl:631
27084 msgid "Most spreadsheets and databases can import CSV directly."
27085 msgstr ""
27086
27087 # type: textblock
27088 #: ../tools/virt-df.pl:642
27089 msgid ""
27090 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27091 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27092 msgstr ""
27093
27094 # type: textblock
27095 #: ../tools/virt-ls.pl:34
27096 msgid "virt-ls - List files in a virtual machine"
27097 msgstr ""
27098
27099 # type: verbatim
27100 #: ../tools/virt-ls.pl:38
27101 #, no-wrap
27102 msgid ""
27103 " virt-ls [--options] domname directory\n"
27104 "\n"
27105 msgstr ""
27106
27107 # type: verbatim
27108 #: ../tools/virt-ls.pl:40
27109 #, no-wrap
27110 msgid ""
27111 " virt-ls [--options] disk.img [disk.img ...] directory\n"
27112 "\n"
27113 msgstr ""
27114
27115 # type: textblock
27116 #: ../tools/virt-ls.pl:44
27117 msgid ""
27118 "C<virt-ls> is a command line tool to list the names of files in a directory "
27119 "inside a virtual machine or disk image."
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-ls.pl:47
27124 msgid ""
27125 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
27126 "For more complex cases you should look at the L<guestfish(1)> tool."
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-ls.pl:51
27131 msgid ""
27132 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
27133 "simple listing is like the ordinary L<ls(1)> command:"
27134 msgstr ""
27135
27136 # type: verbatim
27137 #: ../tools/virt-ls.pl:54
27138 #, no-wrap
27139 msgid ""
27140 " $ virt-ls myguest /\n"
27141 " bin\n"
27142 " boot\n"
27143 " [etc.]\n"
27144 "\n"
27145 msgstr ""
27146
27147 # type: textblock
27148 #: ../tools/virt-ls.pl:59
27149 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
27150 msgstr ""
27151
27152 # type: verbatim
27153 #: ../tools/virt-ls.pl:61
27154 #, no-wrap
27155 msgid ""
27156 " $ virt-ls -l myguest /\n"
27157 " total 204\n"
27158 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
27159 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
27160 " [etc.]\n"
27161 "\n"
27162 msgstr ""
27163
27164 # type: textblock
27165 #: ../tools/virt-ls.pl:67
27166 msgid ""
27167 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
27168 "and directories recursively:"
27169 msgstr ""
27170
27171 # type: verbatim
27172 #: ../tools/virt-ls.pl:70
27173 #, no-wrap
27174 msgid ""
27175 " $ virt-ls -R myguest /tmp\n"
27176 " foo\n"
27177 " foo/bar\n"
27178 " [etc.]\n"
27179 "\n"
27180 msgstr ""
27181
27182 # type: textblock
27183 #: ../tools/virt-ls.pl:75
27184 msgid ""
27185 "You I<cannot> combine these options.  To do more complicated things, use "
27186 "L<guestfish(1)>."
27187 msgstr ""
27188
27189 # type: =item
27190 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
27191 #: ../tools/virt-list-partitions.pl:112
27192 msgid "B<-l> | B<--long>"
27193 msgstr ""
27194
27195 # type: =item
27196 #: ../tools/virt-ls.pl:133
27197 msgid "B<-R> | B<--recursive>"
27198 msgstr ""
27199
27200 # type: textblock
27201 #: ../tools/virt-ls.pl:135
27202 msgid ""
27203 "Select the mode.  With neither of these options, C<virt-ls> produces a "
27204 "simple, flat list of the files in the named directory."
27205 msgstr ""
27206
27207 # type: textblock
27208 #: ../tools/virt-ls.pl:138
27209 msgid ""
27210 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
27211 "like the plain C<ls -l> command)."
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-ls.pl:141
27216 msgid ""
27217 "C<virt-ls -R> produces a recursive list of files starting at the named "
27218 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
27219 "details."
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-ls.pl:145
27224 msgid "You cannot combine these options."
27225 msgstr ""
27226
27227 # type: textblock
27228 #: ../tools/virt-ls.pl:234
27229 msgid ""
27230 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
27231 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27232 "org/>."
27233 msgstr ""
27234
27235 # type: textblock
27236 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
27237 #: ../tools/virt-tar.pl:298
27238 msgid "Copyright (C) 2009 Red Hat Inc."
27239 msgstr ""
27240
27241 # type: textblock
27242 #: ../tools/virt-resize.pl:42
27243 msgid "virt-resize - Resize a virtual machine disk"
27244 msgstr ""
27245
27246 # type: verbatim
27247 #: ../tools/virt-resize.pl:46
27248 #, no-wrap
27249 msgid ""
27250 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27251 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27252 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27253 "\n"
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-resize.pl:52
27258 msgid ""
27259 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27260 "larger or smaller overall, and resizing or deleting any partitions contained "
27261 "within."
27262 msgstr ""
27263
27264 # type: textblock
27265 #: ../tools/virt-resize.pl:56
27266 msgid ""
27267 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27268 "not> be used on live virtual machines - for consistent results, shut the "
27269 "virtual machine down before resizing it."
27270 msgstr ""
27271
27272 # type: textblock
27273 #: ../tools/virt-resize.pl:60
27274 msgid ""
27275 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
27276 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
27277 "read those manual pages first."
27278 msgstr ""
27279
27280 # type: textblock
27281 #: ../tools/virt-resize.pl:68
27282 msgid ""
27283 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27284 "fill the extra 5GB of space."
27285 msgstr ""
27286
27287 # type: verbatim
27288 #: ../tools/virt-resize.pl:71
27289 #, no-wrap
27290 msgid ""
27291 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27292 " virt-list-partitions -lht olddisk\n"
27293 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27294 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27295 "\n"
27296 msgstr ""
27297
27298 # type: textblock
27299 #: ../tools/virt-resize.pl:76
27300 msgid ""
27301 "As above, but make the /boot partition 200MB bigger, while giving the "
27302 "remaining space to /dev/sda2:"
27303 msgstr ""
27304
27305 # type: verbatim
27306 #: ../tools/virt-resize.pl:79
27307 #, no-wrap
27308 msgid ""
27309 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27310 "\n"
27311 msgstr ""
27312
27313 # type: textblock
27314 #: ../tools/virt-resize.pl:81
27315 msgid "As above, but the output format will be uncompressed qcow2:"
27316 msgstr ""
27317
27318 # type: verbatim
27319 #: ../tools/virt-resize.pl:83
27320 #, no-wrap
27321 msgid ""
27322 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27323 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27324 "\n"
27325 msgstr ""
27326
27327 # type: =head1
27328 #: ../tools/virt-resize.pl:86
27329 msgid "DETAILED USAGE"
27330 msgstr ""
27331
27332 # type: =head2
27333 #: ../tools/virt-resize.pl:88
27334 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27335 msgstr ""
27336
27337 # type: =item
27338 #: ../tools/virt-resize.pl:92
27339 msgid "1. Shut down the virtual machine"
27340 msgstr ""
27341
27342 # type: =item
27343 #: ../tools/virt-resize.pl:94
27344 msgid "2. Locate input disk image"
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-resize.pl:96
27349 msgid ""
27350 "Locate the input disk image (ie. the file or device on the host containing "
27351 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27352 "dumpxml> like this to find the disk image name:"
27353 msgstr ""
27354
27355 # type: verbatim
27356 #: ../tools/virt-resize.pl:100
27357 #, no-wrap
27358 msgid ""
27359 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27360 " Found 1 nodes:\n"
27361 " -- NODE --\n"
27362 " <source dev=\"/dev/vg/lv_guest\" />\n"
27363 "\n"
27364 msgstr ""
27365
27366 # type: =item
27367 #: ../tools/virt-resize.pl:105
27368 msgid "3. Look at current sizing"
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-resize.pl:107
27373 msgid ""
27374 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27375 msgstr ""
27376
27377 # type: verbatim
27378 #: ../tools/virt-resize.pl:110
27379 #, no-wrap
27380 msgid ""
27381 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27382 " /dev/sda1 ext3 101.9M\n"
27383 " /dev/sda2 pv 7.9G\n"
27384 " /dev/sda device 8.0G\n"
27385 "\n"
27386 msgstr ""
27387
27388 # type: textblock
27389 #: ../tools/virt-resize.pl:115
27390 msgid ""
27391 "(This example is a virtual machine with an 8 GB disk which we would like to "
27392 "expand up to 10 GB)."
27393 msgstr ""
27394
27395 # type: =item
27396 #: ../tools/virt-resize.pl:118
27397 msgid "4. Create output disk"
27398 msgstr ""
27399
27400 # type: textblock
27401 #: ../tools/virt-resize.pl:120
27402 msgid ""
27403 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27404 "to store the resized output disk."
27405 msgstr ""
27406
27407 # type: textblock
27408 #: ../tools/virt-resize.pl:123
27409 msgid ""
27410 "To store the resized disk image in a file, create a file of a suitable size:"
27411 msgstr ""
27412
27413 # type: verbatim
27414 #: ../tools/virt-resize.pl:126
27415 #, no-wrap
27416 msgid ""
27417 " # rm -f outdisk\n"
27418 " # truncate -s 10G outdisk\n"
27419 "\n"
27420 msgstr ""
27421
27422 # type: textblock
27423 #: ../tools/virt-resize.pl:129
27424 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27425 msgstr ""
27426
27427 # type: verbatim
27428 #: ../tools/virt-resize.pl:131
27429 #, no-wrap
27430 msgid ""
27431 " # lvcreate -L 10G -n lv_name vg_name\n"
27432 "\n"
27433 msgstr ""
27434
27435 # type: textblock
27436 #: ../tools/virt-resize.pl:133
27437 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27438 msgstr ""
27439
27440 # type: verbatim
27441 #: ../tools/virt-resize.pl:135
27442 #, no-wrap
27443 msgid ""
27444 " # virsh pool-list\n"
27445 " # virsh vol-create-as poolname newvol 10G\n"
27446 "\n"
27447 msgstr ""
27448
27449 # type: =item
27450 #: ../tools/virt-resize.pl:138
27451 msgid "5. Resize"
27452 msgstr ""
27453
27454 # type: textblock
27455 #: ../tools/virt-resize.pl:140
27456 msgid ""
27457 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27458 "file) and the output disk.  The output disk is the one created in the "
27459 "previous step."
27460 msgstr ""
27461
27462 # type: verbatim
27463 #: ../tools/virt-resize.pl:144
27464 #, no-wrap
27465 msgid ""
27466 " # virt-resize indisk outdisk\n"
27467 "\n"
27468 msgstr ""
27469
27470 # type: textblock
27471 #: ../tools/virt-resize.pl:146
27472 msgid ""
27473 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27474 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27475 "larger, then an extra, empty partition is created at the end of the disk "
27476 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27477 "error."
27478 msgstr ""
27479
27480 # type: textblock
27481 #: ../tools/virt-resize.pl:152
27482 msgid ""
27483 "More realistically you'd want to expand existing partitions in the disk "
27484 "image by passing extra options (for the full list see the L</OPTIONS> "
27485 "section below)."
27486 msgstr ""
27487
27488 # type: textblock
27489 #: ../tools/virt-resize.pl:156
27490 msgid ""
27491 "L</--expand> is the most useful option.  It expands the named partition "
27492 "within the disk to fill any extra space:"
27493 msgstr ""
27494
27495 # type: verbatim
27496 #: ../tools/virt-resize.pl:159
27497 #, no-wrap
27498 msgid ""
27499 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27500 "\n"
27501 msgstr ""
27502
27503 # type: textblock
27504 #: ../tools/virt-resize.pl:161
27505 msgid ""
27506 "(In this case, an extra partition is I<not> created at the end of the disk, "
27507 "because there will be no unused space)."
27508 msgstr ""
27509
27510 # type: textblock
27511 #: ../tools/virt-resize.pl:164
27512 msgid ""
27513 "L</--resize> is the other commonly used option.  The following would "
27514 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27515 "rest of the available space:"
27516 msgstr ""
27517
27518 # type: verbatim
27519 #: ../tools/virt-resize.pl:168
27520 #, no-wrap
27521 msgid ""
27522 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27523 "     indisk outdisk\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: textblock
27528 #: ../tools/virt-resize.pl:171
27529 msgid ""
27530 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27531 "if virt-resize knows how, it will resize the contents, the equivalent of "
27532 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27533 ">.  However virt-resize does not know how to resize some filesystems, so you "
27534 "would have to online resize them after booting the guest.  And virt-resize "
27535 "also does not resize anything inside an LVM PV, it just resizes the PV "
27536 "itself and leaves the user to resize any LVs inside that PV as desired."
27537 msgstr ""
27538
27539 # type: textblock
27540 #: ../tools/virt-resize.pl:180
27541 msgid "Other options are covered below."
27542 msgstr ""
27543
27544 # type: =item
27545 #: ../tools/virt-resize.pl:182
27546 msgid "6. Test"
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-resize.pl:184
27551 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27552 msgstr ""
27553
27554 # type: textblock
27555 #: ../tools/virt-resize.pl:186
27556 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27557 msgstr ""
27558
27559 # type: verbatim
27560 #: ../tools/virt-resize.pl:188
27561 #, no-wrap
27562 msgid ""
27563 " # virsh edit guestname\n"
27564 "\n"
27565 msgstr ""
27566
27567 # type: textblock
27568 #: ../tools/virt-resize.pl:190
27569 msgid ""
27570 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27571 "html#elementsDisks>"
27572 msgstr ""
27573
27574 # type: textblock
27575 #: ../tools/virt-resize.pl:193
27576 msgid "Then start up the domain with the new, resized disk:"
27577 msgstr ""
27578
27579 # type: verbatim
27580 #: ../tools/virt-resize.pl:195
27581 #, no-wrap
27582 msgid ""
27583 " # virsh start guestname\n"
27584 "\n"
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-resize.pl:197
27589 msgid ""
27590 "and check that it still works.  See also the L</NOTES> section below for "
27591 "additional information."
27592 msgstr ""
27593
27594 # type: =item
27595 #: ../tools/virt-resize.pl:200
27596 msgid "7. Resize LVs etc inside the guest"
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-resize.pl:202
27601 msgid "(This can also be done offline using L<guestfish(1)>)"
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-resize.pl:204
27606 msgid ""
27607 "Once the guest has booted you should see the new space available, at least "
27608 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27609 "may need to resize LVs inside PVs, and also resize filesystem types that "
27610 "virt-resize does not know how to expand."
27611 msgstr ""
27612
27613 # type: =head2
27614 #: ../tools/virt-resize.pl:211
27615 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-resize.pl:213
27620 msgid ""
27621 "Shrinking is somewhat more complex than expanding, and only an overview is "
27622 "given here."
27623 msgstr ""
27624
27625 # type: textblock
27626 #: ../tools/virt-resize.pl:216
27627 msgid ""
27628 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27629 "filesystems).  The user has to shrink content before passing the disk image "
27630 "to virt-resize, and virt-resize will check that the content has been shrunk "
27631 "properly."
27632 msgstr ""
27633
27634 # type: textblock
27635 #: ../tools/virt-resize.pl:221
27636 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-resize.pl:223
27641 msgid ""
27642 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27643 "steps 3 and 4 above to allocate a new disk image."
27644 msgstr ""
27645
27646 # type: textblock
27647 #: ../tools/virt-resize.pl:226
27648 msgid ""
27649 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27650 msgstr ""
27651
27652 # type: =head2
27653 #: ../tools/virt-resize.pl:229
27654 msgid "IGNORING OR DELETING PARTITIONS"
27655 msgstr ""
27656
27657 # type: textblock
27658 #: ../tools/virt-resize.pl:231
27659 msgid ""
27660 "virt-resize also gives a convenient way to ignore or delete partitions when "
27661 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27662 "up the copy where you don't care about the existing contents of a "
27663 "partition.  Deleting a partition removes it completely, but note that it "
27664 "also renumbers any partitions after the one which is deleted, which can "
27665 "leave some guests unbootable."
27666 msgstr ""
27667
27668 # type: =head2
27669 #: ../tools/virt-resize.pl:238
27670 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27671 msgstr ""
27672
27673 # type: textblock
27674 #: ../tools/virt-resize.pl:240
27675 msgid ""
27676 "If the input disk is in qcow2 format, then you may prefer that the output is "
27677 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27678 "the fly.  The output format is simply determined by the format of the empty "
27679 "output container that you provide.  Thus to create qcow2 output, use:"
27680 msgstr ""
27681
27682 # type: verbatim
27683 #: ../tools/virt-resize.pl:246
27684 #, no-wrap
27685 msgid ""
27686 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27687 "\n"
27688 msgstr ""
27689
27690 # type: textblock
27691 #: ../tools/virt-resize.pl:248
27692 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-resize.pl:250
27697 msgid "Similarly, to get non-sparse raw output use:"
27698 msgstr ""
27699
27700 # type: verbatim
27701 #: ../tools/virt-resize.pl:252
27702 #, no-wrap
27703 msgid ""
27704 " fallocate -l size outdisk\n"
27705 "\n"
27706 msgstr ""
27707
27708 # type: textblock
27709 #: ../tools/virt-resize.pl:254
27710 msgid ""
27711 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27712 "dev/zero of=outdisk bs=1M count=..>)"
27713 msgstr ""
27714
27715 # type: textblock
27716 #: ../tools/virt-resize.pl:267
27717 msgid "Display help."
27718 msgstr ""
27719
27720 # type: =item
27721 #: ../tools/virt-resize.pl:281
27722 msgid "B<--resize part=size>"
27723 msgstr ""
27724
27725 # type: textblock
27726 #: ../tools/virt-resize.pl:283
27727 msgid ""
27728 "Resize the named partition (expanding or shrinking it) so that it has the "
27729 "given size."
27730 msgstr ""
27731
27732 # type: textblock
27733 #: ../tools/virt-resize.pl:286
27734 msgid ""
27735 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27736 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27737 "Exabytes; or as a percentage of the current size; or as a relative number or "
27738 "percentage.  For example:"
27739 msgstr ""
27740
27741 # type: verbatim
27742 #: ../tools/virt-resize.pl:291
27743 #, no-wrap
27744 msgid ""
27745 " --resize /dev/sda2=10G\n"
27746 "\n"
27747 msgstr ""
27748
27749 # type: verbatim
27750 #: ../tools/virt-resize.pl:293
27751 #, no-wrap
27752 msgid ""
27753 " --resize /dev/sda4=90%\n"
27754 "\n"
27755 msgstr ""
27756
27757 # type: verbatim
27758 #: ../tools/virt-resize.pl:295
27759 #, no-wrap
27760 msgid ""
27761 " --resize /dev/sda2=+1G\n"
27762 "\n"
27763 msgstr ""
27764
27765 # type: verbatim
27766 #: ../tools/virt-resize.pl:297
27767 #, no-wrap
27768 msgid ""
27769 " --resize /dev/sda2=-200M\n"
27770 "\n"
27771 msgstr ""
27772
27773 # type: verbatim
27774 #: ../tools/virt-resize.pl:299
27775 #, no-wrap
27776 msgid ""
27777 " --resize /dev/sda1=+128K\n"
27778 "\n"
27779 msgstr ""
27780
27781 # type: verbatim
27782 #: ../tools/virt-resize.pl:301
27783 #, no-wrap
27784 msgid ""
27785 " --resize /dev/sda1=+10%\n"
27786 "\n"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #: ../tools/virt-resize.pl:303
27791 #, no-wrap
27792 msgid ""
27793 " --resize /dev/sda1=-10%\n"
27794 "\n"
27795 msgstr ""
27796
27797 # type: textblock
27798 #: ../tools/virt-resize.pl:305
27799 msgid ""
27800 "You can increase the size of any partition.  Virt-resize will expand the "
27801 "direct content of the partition if it knows how (see C<--expand> below)."
27802 msgstr ""
27803
27804 # type: textblock
27805 #: ../tools/virt-resize.pl:309
27806 msgid ""
27807 "You can only I<decrease> the size of partitions that contain filesystems or "
27808 "PVs which have already been shrunk.  Virt-resize will check this has been "
27809 "done before proceeding, or else will print an error (see also C<--resize-"
27810 "force>)."
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27815 #: ../tools/virt-resize.pl:423
27816 msgid "You can give this option multiple times."
27817 msgstr ""
27818
27819 # type: =item
27820 #: ../tools/virt-resize.pl:320
27821 msgid "B<--resize-force part=size>"
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-resize.pl:322
27826 msgid ""
27827 "This is the same as C<--resize> except that it will let you decrease the "
27828 "size of any partition.  Generally this means you will lose any data which "
27829 "was at the end of the partition you shrink, but you may not care about that "
27830 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27831 "as a swap partition)."
27832 msgstr ""
27833
27834 # type: textblock
27835 #: ../tools/virt-resize.pl:328
27836 msgid "See also the C<--ignore> option."
27837 msgstr ""
27838
27839 # type: =item
27840 #: ../tools/virt-resize.pl:334
27841 msgid "B<--expand part>"
27842 msgstr ""
27843
27844 # type: textblock
27845 #: ../tools/virt-resize.pl:336
27846 msgid ""
27847 "Expand the named partition so it uses up all extra space (space left over "
27848 "after any other resize changes that you request have been done)."
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-resize.pl:339
27853 msgid ""
27854 "If virt-resize knows how, it will expand the direct content of the "
27855 "partition.  For example, if the partition is an LVM PV, it will expand the "
27856 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27857 "content it doesn't know about alone."
27858 msgstr ""
27859
27860 # type: textblock
27861 #: ../tools/virt-resize.pl:344
27862 msgid "Currently virt-resize can resize:"
27863 msgstr ""
27864
27865 # type: textblock
27866 #: ../tools/virt-resize.pl:350
27867 msgid ""
27868 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27869 "partition."
27870 msgstr ""
27871
27872 # type: textblock
27873 #: ../tools/virt-resize.pl:355
27874 msgid ""
27875 "NTFS filesystems contained directly in a partition, if libguestfs was "
27876 "compiled with support for NTFS."
27877 msgstr ""
27878
27879 # type: textblock
27880 #: ../tools/virt-resize.pl:358
27881 msgid ""
27882 "The filesystem must have been shut down consistently last time it was used.  "
27883 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27884 "consistency check, so at the first boot after resizing Windows will check "
27885 "the disk."
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-resize.pl:365
27890 msgid ""
27891 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27892 "inside the PV.  The user will have to resize LVs as desired."
27893 msgstr ""
27894
27895 # type: textblock
27896 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27897 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27898 msgstr ""
27899
27900 # type: =item
27901 #: ../tools/virt-resize.pl:377
27902 msgid "B<--shrink part>"
27903 msgstr ""
27904
27905 # type: textblock
27906 #: ../tools/virt-resize.pl:379
27907 msgid ""
27908 "Shrink the named partition until the overall disk image fits in the "
27909 "destination.  The named partition B<must> contain a filesystem or PV which "
27910 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27911 "online tools).  Virt-resize will check this and give an error if it has not "
27912 "been done."
27913 msgstr ""
27914
27915 # type: textblock
27916 #: ../tools/virt-resize.pl:385
27917 msgid ""
27918 "The amount by which the overall disk must be shrunk (after carrying out all "
27919 "other operations requested by the user) is called the \"deficit\".  For "
27920 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27921 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27922 "would give an error unless the user specified a partition to shrink and that "
27923 "partition had more than a gigabyte of free space."
27924 msgstr ""
27925
27926 # type: =item
27927 #: ../tools/virt-resize.pl:399
27928 msgid "B<--ignore part>"
27929 msgstr ""
27930
27931 # type: textblock
27932 #: ../tools/virt-resize.pl:401
27933 msgid ""
27934 "Ignore the named partition.  Effectively this means the partition is "
27935 "allocated on the destination disk, but the content is not copied across from "
27936 "the source disk.  The content of the partition will be blank (all zero "
27937 "bytes)."
27938 msgstr ""
27939
27940 # type: =item
27941 #: ../tools/virt-resize.pl:412
27942 msgid "B<--delete part>"
27943 msgstr ""
27944
27945 # type: textblock
27946 #: ../tools/virt-resize.pl:414
27947 msgid ""
27948 "Delete the named partition.  It would be more accurate to describe this as "
27949 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27950 "the original disk image is left intact."
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-resize.pl:418
27955 msgid ""
27956 "Note that when you delete a partition, then anything contained in the "
27957 "partition is also deleted.  Furthermore, this causes any partitions that "
27958 "come after to be I<renumbered>, which can easily make your guest unbootable."
27959 msgstr ""
27960
27961 # type: =item
27962 #: ../tools/virt-resize.pl:429
27963 msgid "B<--LV-expand logvol>"
27964 msgstr ""
27965
27966 # type: textblock
27967 #: ../tools/virt-resize.pl:431
27968 msgid ""
27969 "This takes the logical volume and, as a final step, expands it to fill all "
27970 "the space available in its volume group.  A typical usage, assuming a Linux "
27971 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27972 "lv_root> would be:"
27973 msgstr ""
27974
27975 # type: verbatim
27976 #: ../tools/virt-resize.pl:436
27977 #, no-wrap
27978 msgid ""
27979 " virt-resize indisk outdisk \\\n"
27980 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27981 "\n"
27982 msgstr ""
27983
27984 # type: textblock
27985 #: ../tools/virt-resize.pl:439
27986 msgid ""
27987 "This would first expand the partition (and PV), and then expand the root "
27988 "device to fill the extra space in the PV."
27989 msgstr ""
27990
27991 # type: textblock
27992 #: ../tools/virt-resize.pl:442
27993 msgid ""
27994 "The contents of the LV are also resized if virt-resize knows how to do "
27995 "that.  You can stop virt-resize from trying to expand the content by using "
27996 "the option C<--no-expand-content>."
27997 msgstr ""
27998
27999 # type: textblock
28000 #: ../tools/virt-resize.pl:446
28001 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
28002 msgstr ""
28003
28004 # type: textblock
28005 #: ../tools/virt-resize.pl:449
28006 msgid ""
28007 "You can give this option multiple times, I<but> it doesn't make sense to do "
28008 "this unless the logical volumes you specify are all in different volume "
28009 "groups."
28010 msgstr ""
28011
28012 # type: =item
28013 #: ../tools/virt-resize.pl:457
28014 msgid "B<--no-copy-boot-loader>"
28015 msgstr ""
28016
28017 # type: textblock
28018 #: ../tools/virt-resize.pl:459
28019 msgid ""
28020 "By default, virt-resize copies over some sectors at the start of the disk "
28021 "(up to the beginning of the first partition).  Commonly these sectors "
28022 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28023 "in order for the guest to boot correctly."
28024 msgstr ""
28025
28026 # type: textblock
28027 #: ../tools/virt-resize.pl:464
28028 msgid ""
28029 "If you specify this flag, then this initial copy is not done.  You may need "
28030 "to reinstall the boot loader in this case."
28031 msgstr ""
28032
28033 # type: =item
28034 #: ../tools/virt-resize.pl:472
28035 msgid "B<--no-extra-partition>"
28036 msgstr ""
28037
28038 # type: textblock
28039 #: ../tools/virt-resize.pl:474
28040 msgid ""
28041 "By default, virt-resize creates an extra partition if there is any extra, "
28042 "unused space after all resizing has happened.  Use this option to prevent "
28043 "the extra partition from being created.  If you do this then the extra space "
28044 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28045 "tool in the guest."
28046 msgstr ""
28047
28048 # type: textblock
28049 #: ../tools/virt-resize.pl:480
28050 msgid ""
28051 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28052 "will be created."
28053 msgstr ""
28054
28055 # type: =item
28056 #: ../tools/virt-resize.pl:487
28057 msgid "B<--no-expand-content>"
28058 msgstr ""
28059
28060 # type: textblock
28061 #: ../tools/virt-resize.pl:489
28062 msgid ""
28063 "By default, virt-resize will try to expand the direct contents of "
28064 "partitions, if it knows how (see C<--expand> option above)."
28065 msgstr ""
28066
28067 # type: textblock
28068 #: ../tools/virt-resize.pl:492
28069 msgid ""
28070 "If you give the C<--no-expand-content> option then virt-resize will not "
28071 "attempt this."
28072 msgstr ""
28073
28074 # type: =item
28075 #: ../tools/virt-resize.pl:499
28076 msgid "B<-d> | B<--debug>"
28077 msgstr ""
28078
28079 # type: =item
28080 #: ../tools/virt-resize.pl:507
28081 msgid "B<-n> | B<--dryrun>"
28082 msgstr ""
28083
28084 # type: textblock
28085 #: ../tools/virt-resize.pl:509
28086 msgid "Print a summary of what would be done, but don't do anything."
28087 msgstr ""
28088
28089 # type: =item
28090 #: ../tools/virt-resize.pl:515
28091 msgid "B<-q> | B<--quiet>"
28092 msgstr ""
28093
28094 # type: textblock
28095 #: ../tools/virt-resize.pl:517
28096 msgid "Don't print the summary."
28097 msgstr ""
28098
28099 # type: textblock
28100 #: ../tools/virt-resize.pl:525
28101 msgid ""
28102 "Specify the format of the input disk image.  If this flag is not given then "
28103 "it is auto-detected from the image itself."
28104 msgstr ""
28105
28106 # type: textblock
28107 #: ../tools/virt-resize.pl:531
28108 msgid ""
28109 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28110 "AND NON-SPARSE RAW FORMATS>."
28111 msgstr ""
28112
28113 # type: =item
28114 #: ../tools/virt-resize.pl:538
28115 msgid "B<--output-format> raw"
28116 msgstr ""
28117
28118 # type: textblock
28119 #: ../tools/virt-resize.pl:540
28120 msgid ""
28121 "Specify the format of the output disk image.  If this flag is not given then "
28122 "it is auto-detected from the image itself."
28123 msgstr ""
28124
28125 # type: textblock
28126 #: ../tools/virt-resize.pl:546
28127 msgid ""
28128 "Note that you still need to create the output disk with the right format.  "
28129 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28130 msgstr ""
28131
28132 # type: =head1
28133 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
28134 msgid "NOTES"
28135 msgstr ""
28136
28137 # type: =head2
28138 #: ../tools/virt-resize.pl:1424
28139 msgid "\"Partition 1 does not end on cylinder boundary.\""
28140 msgstr ""
28141
28142 # type: textblock
28143 #: ../tools/virt-resize.pl:1426
28144 msgid ""
28145 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28146 "means the partitions will not be aligned to the ancient CHS geometry.  "
28147 "However CHS geometry is meaningless for disks manufactured since the early "
28148 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28149 "cylinders is not required by any modern operating system."
28150 msgstr ""
28151
28152 # type: =head2
28153 #: ../tools/virt-resize.pl:1433
28154 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-resize.pl:1435
28159 msgid ""
28160 "In Windows Vista and later versions, Microsoft switched to using a separate "
28161 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28162 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28163 "the boot partition.  Doing so seems to break the guest completely.  However "
28164 "expanding the second partition (ie. C: drive) should work."
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-resize.pl:1442
28169 msgid ""
28170 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28171 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28172 "it find errors) is nothing to worry about."
28173 msgstr ""
28174
28175 # type: =head2
28176 #: ../tools/virt-resize.pl:1446
28177 msgid "GUEST BOOT STUCK AT \"GRUB\""
28178 msgstr ""
28179
28180 # type: textblock
28181 #: ../tools/virt-resize.pl:1448
28182 msgid ""
28183 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28184 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28185 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28186 "although we think is to do with partition alignment."
28187 msgstr ""
28188
28189 # type: verbatim
28190 #: ../tools/virt-resize.pl:1453
28191 #, no-wrap
28192 msgid ""
28193 " guestfish -i -a newdisk\n"
28194 " ><fs> cat /boot/grub/device.map\n"
28195 " # check the contents of this file are sensible or\n"
28196 " # edit the file if necessary\n"
28197 " ><fs> grub-install / /dev/vda\n"
28198 " ><fs> exit\n"
28199 "\n"
28200 msgstr ""
28201
28202 # type: textblock
28203 #: ../tools/virt-resize.pl:1460
28204 msgid ""
28205 "For more flexible guest reconfiguration, including if you need to specify "
28206 "other parameters to grub-install, use L<virt-rescue(1)>."
28207 msgstr ""
28208
28209 # type: =head1
28210 #: ../tools/virt-resize.pl:1463
28211 msgid "ALTERNATIVE TOOLS"
28212 msgstr ""
28213
28214 # type: textblock
28215 #: ../tools/virt-resize.pl:1465
28216 msgid ""
28217 "There are several proprietary tools for resizing partitions.  We won't "
28218 "mention any here."
28219 msgstr ""
28220
28221 # type: textblock
28222 #: ../tools/virt-resize.pl:1468
28223 msgid ""
28224 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28225 "operations on disk images.  They can resize and move partitions, but I don't "
28226 "think they can do anything with the contents, and they certainly don't "
28227 "understand LVM."
28228 msgstr ""
28229
28230 # type: textblock
28231 #: ../tools/virt-resize.pl:1473
28232 msgid ""
28233 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28234 "but at a much lower level.  You will probably end up hand-calculating sector "
28235 "offsets, which is something that virt-resize was designed to avoid.  If you "
28236 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28237 "C<--debug> flag."
28238 msgstr ""
28239
28240 # type: textblock
28241 #: ../tools/virt-resize.pl:1488
28242 msgid ""
28243 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
28244 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
28245 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
28246 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
28247 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28248 msgstr ""
28249
28250 # type: textblock
28251 #: ../tools/virt-list-filesystems.pl:32
28252 msgid ""
28253 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28254 msgstr ""
28255
28256 # type: verbatim
28257 #: ../tools/virt-list-filesystems.pl:36
28258 #, no-wrap
28259 msgid ""
28260 " virt-list-filesystems [--options] domname\n"
28261 "\n"
28262 msgstr ""
28263
28264 # type: verbatim
28265 #: ../tools/virt-list-filesystems.pl:38
28266 #, no-wrap
28267 msgid ""
28268 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28269 "\n"
28270 msgstr ""
28271
28272 # type: textblock
28273 #: ../tools/virt-list-filesystems.pl:42
28274 msgid ""
28275 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28276 "are contained in a virtual machine or disk image."
28277 msgstr ""
28278
28279 # type: textblock
28280 #: ../tools/virt-list-filesystems.pl:46
28281 msgid ""
28282 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28283 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28284 "> tool."
28285 msgstr ""
28286
28287 # type: textblock
28288 #: ../tools/virt-list-filesystems.pl:105
28289 msgid ""
28290 "With this option, C<virt-list-filesystems> displays the type of each "
28291 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28292 msgstr ""
28293
28294 # type: =item
28295 #: ../tools/virt-list-filesystems.pl:112
28296 msgid "B<-a> | B<--all>"
28297 msgstr ""
28298
28299 # type: textblock
28300 #: ../tools/virt-list-filesystems.pl:114
28301 msgid ""
28302 "Normally we only show mountable filesystems.  If this option is given then "
28303 "swap devices are shown too."
28304 msgstr ""
28305
28306 # type: textblock
28307 #: ../tools/virt-list-filesystems.pl:188
28308 msgid ""
28309 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
28310 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
28311 ">, L<http://libguestfs.org/>."
28312 msgstr ""
28313
28314 # type: textblock
28315 #: ../tools/virt-tar.pl:33
28316 msgid "virt-tar - Extract or upload files to a virtual machine"
28317 msgstr ""
28318
28319 # type: verbatim
28320 #: ../tools/virt-tar.pl:37
28321 #, no-wrap
28322 msgid ""
28323 " virt-tar [--options] -x domname directory tarball\n"
28324 "\n"
28325 msgstr ""
28326
28327 # type: verbatim
28328 #: ../tools/virt-tar.pl:39
28329 #, no-wrap
28330 msgid ""
28331 " virt-tar [--options] -u domname tarball directory\n"
28332 "\n"
28333 msgstr ""
28334
28335 # type: verbatim
28336 #: ../tools/virt-tar.pl:41
28337 #, no-wrap
28338 msgid ""
28339 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28340 "\n"
28341 msgstr ""
28342
28343 # type: verbatim
28344 #: ../tools/virt-tar.pl:43
28345 #, no-wrap
28346 msgid ""
28347 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28348 "\n"
28349 msgstr ""
28350
28351 # type: textblock
28352 #: ../tools/virt-tar.pl:47
28353 msgid "Download C</home> from the VM into a local tarball:"
28354 msgstr ""
28355
28356 # type: verbatim
28357 #: ../tools/virt-tar.pl:49
28358 #, no-wrap
28359 msgid ""
28360 " virt-tar -x domname /home home.tar\n"
28361 "\n"
28362 msgstr ""
28363
28364 # type: verbatim
28365 #: ../tools/virt-tar.pl:51
28366 #, no-wrap
28367 msgid ""
28368 " virt-tar -zx domname /home home.tar.gz\n"
28369 "\n"
28370 msgstr ""
28371
28372 # type: textblock
28373 #: ../tools/virt-tar.pl:53
28374 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28375 msgstr ""
28376
28377 # type: verbatim
28378 #: ../tools/virt-tar.pl:55
28379 #, no-wrap
28380 msgid ""
28381 " virt-tar -u domname uploadstuff.tar /tmp\n"
28382 "\n"
28383 msgstr ""
28384
28385 # type: verbatim
28386 #: ../tools/virt-tar.pl:57
28387 #, no-wrap
28388 msgid ""
28389 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28390 "\n"
28391 msgstr ""
28392
28393 # type: textblock
28394 #: ../tools/virt-tar.pl:61
28395 msgid ""
28396 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28397 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28398 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28399 msgstr ""
28400
28401 # type: textblock
28402 #: ../tools/virt-tar.pl:66
28403 msgid ""
28404 "You can use C<-x> (extract) on live virtual machines, but you might get "
28405 "inconsistent results or errors if there is filesystem activity inside the "
28406 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28407 "work, but the only way to guarantee consistent results is if the virtual "
28408 "machine is shut down."
28409 msgstr ""
28410
28411 # type: textblock
28412 #: ../tools/virt-tar.pl:74
28413 msgid ""
28414 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28415 "parts of a guest filesystem.  There are many possibilities: making backups, "
28416 "uploading data files, snooping on guest activity, fixing or customizing "
28417 "guests, etc."
28418 msgstr ""
28419
28420 # type: textblock
28421 #: ../tools/virt-tar.pl:79
28422 msgid ""
28423 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28424 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28425 "should look at the L<guestfish(1)> tool."
28426 msgstr ""
28427
28428 # type: textblock
28429 #: ../tools/virt-tar.pl:83
28430 msgid ""
28431 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28432 "its contents (recursively) from the virtual machine into a local tarball.  "
28433 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28434 "virtual machine.  You cannot use these two options together."
28435 msgstr ""
28436
28437 # type: textblock
28438 #: ../tools/virt-tar.pl:89
28439 msgid ""
28440 "In addition, you may need to use the C<-z> (gZip) option to enable "
28441 "compression.  When uploading, you have to specify C<-z> if the upload file "
28442 "is compressed because virt-tar won't detect this on its own."
28443 msgstr ""
28444
28445 # type: textblock
28446 #: ../tools/virt-tar.pl:93
28447 msgid ""
28448 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28449 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28450 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28451 "the L<libguestfs(3)> API)."
28452 msgstr ""
28453
28454 # type: =item
28455 #: ../tools/virt-tar.pl:151
28456 msgid "B<-x> | B<--extract> | B<--download>"
28457 msgstr ""
28458
28459 # type: =item
28460 #: ../tools/virt-tar.pl:153
28461 msgid "B<-u> | B<--upload>"
28462 msgstr ""
28463
28464 # type: textblock
28465 #: ../tools/virt-tar.pl:155
28466 msgid ""
28467 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28468 "local tarball."
28469 msgstr ""
28470
28471 # type: textblock
28472 #: ../tools/virt-tar.pl:158
28473 msgid ""
28474 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28475 "Please read the L</WARNING> section above before using this option."
28476 msgstr ""
28477
28478 # type: textblock
28479 #: ../tools/virt-tar.pl:162
28480 msgid "You must specify exactly one of these options."
28481 msgstr ""
28482
28483 # type: =item
28484 #: ../tools/virt-tar.pl:168
28485 msgid "B<-z> | B<--gzip>"
28486 msgstr ""
28487
28488 # type: textblock
28489 #: ../tools/virt-tar.pl:170
28490 msgid "Specify that the input or output tarball is gzip-compressed."
28491 msgstr ""
28492
28493 # type: textblock
28494 #: ../tools/virt-tar.pl:283
28495 msgid ""
28496 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28497 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28498 "org/>."
28499 msgstr ""
28500
28501 # type: textblock
28502 #: ../tools/virt-rescue.pl:33
28503 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28504 msgstr ""
28505
28506 # type: verbatim
28507 #: ../tools/virt-rescue.pl:37
28508 #, no-wrap
28509 msgid ""
28510 " virt-rescue [--options] domname\n"
28511 "\n"
28512 msgstr ""
28513
28514 # type: verbatim
28515 #: ../tools/virt-rescue.pl:39
28516 #, no-wrap
28517 msgid ""
28518 " virt-rescue [--options] disk.img [disk.img ...]\n"
28519 "\n"
28520 msgstr ""
28521
28522 # type: textblock
28523 #: ../tools/virt-rescue.pl:43
28524 msgid ""
28525 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28526 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28527 "you from doing this, but doesn't catch all cases."
28528 msgstr ""
28529
28530 # type: textblock
28531 #: ../tools/virt-rescue.pl:47
28532 msgid ""
28533 "However if you use the I<--ro> (read only) option, then you can attach a "
28534 "shell to a live virtual machine.  The results might be strange or "
28535 "inconsistent at times but you won't get disk corruption."
28536 msgstr ""
28537
28538 # type: textblock
28539 #: ../tools/virt-rescue.pl:53
28540 msgid ""
28541 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28542 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28543 "recovery tools which you can use to examine or rescue a virtual machine or "
28544 "disk image."
28545 msgstr ""
28546
28547 # type: textblock
28548 #: ../tools/virt-rescue.pl:58
28549 msgid ""
28550 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28551 "on disk image(s):"
28552 msgstr ""
28553
28554 # type: verbatim
28555 #: ../tools/virt-rescue.pl:61
28556 #, no-wrap
28557 msgid ""
28558 " virt-rescue GuestName\n"
28559 "\n"
28560 msgstr ""
28561
28562 # type: verbatim
28563 #: ../tools/virt-rescue.pl:63
28564 #, no-wrap
28565 msgid ""
28566 " virt-rescue --ro /path/to/disk.img\n"
28567 "\n"
28568 msgstr ""
28569
28570 # type: verbatim
28571 #: ../tools/virt-rescue.pl:65
28572 #, no-wrap
28573 msgid ""
28574 " virt-rescue /dev/sdc\n"
28575 "\n"
28576 msgstr ""
28577
28578 # type: textblock
28579 #: ../tools/virt-rescue.pl:67
28580 msgid "For live VMs you I<must> use the --ro option."
28581 msgstr ""
28582
28583 # type: textblock
28584 #: ../tools/virt-rescue.pl:69
28585 msgid ""
28586 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28587 "in an interactive bash shell where you can use many ordinary Linux "
28588 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28589 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28590 "is an empty directory called C</sysroot> where you can mount filesystems."
28591 msgstr ""
28592
28593 # type: textblock
28594 #: ../tools/virt-rescue.pl:76
28595 msgid ""
28596 "In the example below, we list logical volumes, then choose one to mount "
28597 "under C</sysroot>:"
28598 msgstr ""
28599
28600 # type: verbatim
28601 #: ../tools/virt-rescue.pl:79
28602 #, no-wrap
28603 msgid ""
28604 " ><rescue> lvs\n"
28605 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28606 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28607 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28608 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28609 " ><rescue> ls /sysroot\n"
28610 "\n"
28611 msgstr ""
28612
28613 # type: textblock
28614 #: ../tools/virt-rescue.pl:86
28615 msgid ""
28616 "If you don't know what filesystems are available on the virtual machine then "
28617 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28618 msgstr ""
28619
28620 # type: textblock
28621 #: ../tools/virt-rescue.pl:92
28622 msgid ""
28623 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28624 "virtual machine.  For example you can use it on a blank file if you want to "
28625 "partition that file (although we would recommend using L<guestfish(1)> "
28626 "instead as it is more suitable for this purpose).  You can even use virt-"
28627 "rescue on things like SD cards."
28628 msgstr ""
28629
28630 # type: textblock
28631 #: ../tools/virt-rescue.pl:98
28632 msgid ""
28633 "This tool is just designed for quick interactive hacking on a virtual "
28634 "machine.  For more structured access to a virtual machine disk image, you "
28635 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28636 "make scripted changes to guests, use L<guestfish(1)>."
28637 msgstr ""
28638
28639 # type: =item
28640 #: ../tools/virt-rescue.pl:127
28641 msgid "B<--append kernelopts>"
28642 msgstr ""
28643
28644 # type: textblock
28645 #: ../tools/virt-rescue.pl:129
28646 msgid "Pass additional options to the rescue kernel."
28647 msgstr ""
28648
28649 # type: =item
28650 #: ../tools/virt-rescue.pl:164
28651 msgid "B<--memsize MB> | B<-m MB>"
28652 msgstr ""
28653
28654 # type: textblock
28655 #: ../tools/virt-rescue.pl:166
28656 msgid ""
28657 "Change the amount of memory allocated to the rescue system.  The default is "
28658 "set by libguestfs and is small but adequate for running system tools.  The "
28659 "occasional program might need more memory.  The parameter is specified in "
28660 "megabytes."
28661 msgstr ""
28662
28663 # type: =item
28664 #: ../tools/virt-rescue.pl:175
28665 msgid "B<--network MB>"
28666 msgstr ""
28667
28668 # type: textblock
28669 #: ../tools/virt-rescue.pl:177
28670 msgid "Enable QEMU user networking in the guest."
28671 msgstr ""
28672
28673 # type: =item
28674 #: ../tools/virt-rescue.pl:183
28675 msgid "B<--ro> | B<-r>"
28676 msgstr ""
28677
28678 # type: textblock
28679 #: ../tools/virt-rescue.pl:185
28680 msgid "Open the image read-only."
28681 msgstr ""
28682
28683 # type: textblock
28684 #: ../tools/virt-rescue.pl:197
28685 msgid ""
28686 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28687 "SELINUX> before using this option."
28688 msgstr ""
28689
28690 # type: textblock
28691 #: ../tools/virt-rescue.pl:257
28692 msgid ""
28693 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28694 "ENVIRONMENT VARIABLES> for the complete list."
28695 msgstr ""
28696
28697 # type: textblock
28698 #: ../tools/virt-rescue.pl:269
28699 msgid ""
28700 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28701 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28702 msgstr ""
28703
28704 # type: textblock
28705 #: ../tools/virt-make-fs.pl:37
28706 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28707 msgstr ""
28708
28709 # type: verbatim
28710 #: ../tools/virt-make-fs.pl:41
28711 #, no-wrap
28712 msgid ""
28713 " virt-make-fs [--options] input.tar output.img\n"
28714 "\n"
28715 msgstr ""
28716
28717 # type: verbatim
28718 #: ../tools/virt-make-fs.pl:43
28719 #, no-wrap
28720 msgid ""
28721 " virt-make-fs [--options] input.tar.gz output.img\n"
28722 "\n"
28723 msgstr ""
28724
28725 # type: verbatim
28726 #: ../tools/virt-make-fs.pl:45
28727 #, no-wrap
28728 msgid ""
28729 " virt-make-fs [--options] directory output.img\n"
28730 "\n"
28731 msgstr ""
28732
28733 # type: textblock
28734 #: ../tools/virt-make-fs.pl:49
28735 msgid ""
28736 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28737 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28738 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28739 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28740 "you want to attach these filesystems to existing virtual machines (eg. to "
28741 "import large amounts of read-only data to a VM)."
28742 msgstr ""
28743
28744 # type: textblock
28745 #: ../tools/virt-make-fs.pl:57
28746 msgid "Basic usage is:"
28747 msgstr ""
28748
28749 # type: verbatim
28750 #: ../tools/virt-make-fs.pl:59
28751 #, no-wrap
28752 msgid ""
28753 " virt-make-fs input output\n"
28754 "\n"
28755 msgstr ""
28756
28757 # type: textblock
28758 #: ../tools/virt-make-fs.pl:61
28759 msgid ""
28760 "where C<input> is either a directory containing files that you want to add, "
28761 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28762 "C<output> is a disk image.  The input type is detected automatically.  The "
28763 "output disk image defaults to a raw ext2 image unless you specify extra "
28764 "flags (see L</OPTIONS> below)."
28765 msgstr ""
28766
28767 # type: =head2
28768 #: ../tools/virt-make-fs.pl:67
28769 msgid "EXTRA SPACE"
28770 msgstr ""
28771
28772 # type: textblock
28773 #: ../tools/virt-make-fs.pl:69
28774 msgid ""
28775 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28776 "the files that it contains, but might have extra space.  Depending on how "
28777 "you are going to use the output, you might think this extra space is wasted "
28778 "and want to minimize it, or you might want to leave space so that more files "
28779 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28780 "but you can use the C<--size> flag to leave space in the filesystem if you "
28781 "want it."
28782 msgstr ""
28783
28784 # type: textblock
28785 #: ../tools/virt-make-fs.pl:77
28786 msgid ""
28787 "An alternative way to leave extra space but not make the output image any "
28788 "bigger is to use an alternative disk image format (instead of the default "
28789 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28790 "image format (check your hypervisor supports this before using it).  This "
28791 "allows you to choose a large C<--size> but the extra space won't actually be "
28792 "allocated in the image until you try to store something in it."
28793 msgstr ""
28794
28795 # type: textblock
28796 #: ../tools/virt-make-fs.pl:85
28797 msgid ""
28798 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28799 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28800 "resize to build another image from scratch."
28801 msgstr ""
28802
28803 # type: =head3
28804 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28805 #: ../tools/virt-make-fs.pl:142
28806 msgid "EXAMPLE"
28807 msgstr ""
28808
28809 # type: verbatim
28810 #: ../tools/virt-make-fs.pl:91
28811 #, no-wrap
28812 msgid ""
28813 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28814 "\n"
28815 msgstr ""
28816
28817 # type: =head2
28818 #: ../tools/virt-make-fs.pl:93
28819 msgid "FILESYSTEM TYPE"
28820 msgstr ""
28821
28822 # type: textblock
28823 #: ../tools/virt-make-fs.pl:95
28824 msgid ""
28825 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28826 "libguestfs supports can be used (but I<not> read-only formats like "
28827 "ISO9660).  Here are some of the more common choices:"
28828 msgstr ""
28829
28830 # type: =item
28831 #: ../tools/virt-make-fs.pl:101
28832 msgid "I<ext3>"
28833 msgstr ""
28834
28835 # type: textblock
28836 #: ../tools/virt-make-fs.pl:103
28837 msgid ""
28838 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28839 "you are not going to use the filesystem in a way that requires the journal, "
28840 "then this is just wasted overhead."
28841 msgstr ""
28842
28843 # type: =item
28844 #: ../tools/virt-make-fs.pl:107
28845 msgid "I<ntfs> or I<vfat>"
28846 msgstr ""
28847
28848 # type: textblock
28849 #: ../tools/virt-make-fs.pl:109
28850 msgid "Useful if exporting data to a Windows guest."
28851 msgstr ""
28852
28853 # type: textblock
28854 #: ../tools/virt-make-fs.pl:111
28855 msgid ""
28856 "I<Note for vfat>: The tar archive or local directory must only contain files "
28857 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28858 "program running within libguestfs is unable to change the ownership of non-"
28859 "root files, since vfat itself does not support this."
28860 msgstr ""
28861
28862 # type: =item
28863 #: ../tools/virt-make-fs.pl:116
28864 msgid "I<minix>"
28865 msgstr ""
28866
28867 # type: textblock
28868 #: ../tools/virt-make-fs.pl:118
28869 msgid ""
28870 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28871 "total filesystem size."
28872 msgstr ""
28873
28874 # type: verbatim
28875 #: ../tools/virt-make-fs.pl:125
28876 #, no-wrap
28877 msgid ""
28878 " virt-make-fs --type=minix input minixfs.img\n"
28879 "\n"
28880 msgstr ""
28881
28882 # type: =head2
28883 #: ../tools/virt-make-fs.pl:127
28884 msgid "TO PARTITION OR NOT TO PARTITION"
28885 msgstr ""
28886
28887 # type: textblock
28888 #: ../tools/virt-make-fs.pl:129
28889 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28890 msgstr ""
28891
28892 # type: textblock
28893 #: ../tools/virt-make-fs.pl:131
28894 msgid ""
28895 "Adding a partition can make the disk image more compatible with certain "
28896 "virtualized operating systems which don't expect to see a filesystem "
28897 "directly located on a block device (Linux doesn't care and will happily "
28898 "handle both types)."
28899 msgstr ""
28900
28901 # type: textblock
28902 #: ../tools/virt-make-fs.pl:136
28903 msgid ""
28904 "On the other hand, if you have a partition table then the output image is no "
28905 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28906 "directly on a partitioned disk image.  (However libguestfs tools such as "
28907 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28908 msgstr ""
28909
28910 # type: textblock
28911 #: ../tools/virt-make-fs.pl:144
28912 msgid "Add an MBR partition:"
28913 msgstr ""
28914
28915 # type: verbatim
28916 #: ../tools/virt-make-fs.pl:146
28917 #, no-wrap
28918 msgid ""
28919 " virt-make-fs --partition -- input disk.img\n"
28920 "\n"
28921 msgstr ""
28922
28923 # type: textblock
28924 #: ../tools/virt-make-fs.pl:148
28925 msgid ""
28926 "If the output disk image could be terabyte-sized or larger, it's better to "
28927 "use an EFI/GPT-compatible partition table:"
28928 msgstr ""
28929
28930 # type: verbatim
28931 #: ../tools/virt-make-fs.pl:151
28932 #, no-wrap
28933 msgid ""
28934 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28935 "\n"
28936 msgstr ""
28937
28938 # type: textblock
28939 #: ../tools/virt-make-fs.pl:179
28940 msgid "Enable debugging information."
28941 msgstr ""
28942
28943 # type: =item
28944 #: ../tools/virt-make-fs.pl:185
28945 msgid "B<--size=E<lt>NE<gt>>"
28946 msgstr ""
28947
28948 # type: =item
28949 #: ../tools/virt-make-fs.pl:187
28950 msgid "B<--size=+E<lt>NE<gt>>"
28951 msgstr ""
28952
28953 # type: =item
28954 #: ../tools/virt-make-fs.pl:189
28955 msgid "B<-s E<lt>NE<gt>>"
28956 msgstr ""
28957
28958 # type: =item
28959 #: ../tools/virt-make-fs.pl:191
28960 msgid "B<-s +E<lt>NE<gt>>"
28961 msgstr ""
28962
28963 # type: textblock
28964 #: ../tools/virt-make-fs.pl:193
28965 msgid ""
28966 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28967 msgstr ""
28968
28969 # type: textblock
28970 #: ../tools/virt-make-fs.pl:196
28971 msgid ""
28972 "If this option is I<not> given, then the output image will be just large "
28973 "enough to contain all the files, with not much wasted space."
28974 msgstr ""
28975
28976 # type: textblock
28977 #: ../tools/virt-make-fs.pl:199
28978 msgid ""
28979 "To choose a fixed size output disk, specify an absolute number followed by b/"
28980 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28981 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28982 "files, else you will get an error."
28983 msgstr ""
28984
28985 # type: textblock
28986 #: ../tools/virt-make-fs.pl:204
28987 msgid ""
28988 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28989 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28990 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28991 "the input files, and (approximately) an extra 200 MB free space."
28992 msgstr ""
28993
28994 # type: textblock
28995 #: ../tools/virt-make-fs.pl:210
28996 msgid ""
28997 "Note that virt-make-fs estimates free space, and therefore will not produce "
28998 "filesystems containing precisely the free space requested.  (It is much more "
28999 "expensive and time-consuming to produce a filesystem which has precisely the "
29000 "desired free space)."
29001 msgstr ""
29002
29003 # type: =item
29004 #: ../tools/virt-make-fs.pl:219
29005 msgid "B<--format=E<lt>fmtE<gt>>"
29006 msgstr ""
29007
29008 # type: =item
29009 #: ../tools/virt-make-fs.pl:221
29010 msgid "B<-F E<lt>fmtE<gt>>"
29011 msgstr ""
29012
29013 # type: textblock
29014 #: ../tools/virt-make-fs.pl:223
29015 msgid "Choose the output disk image format."
29016 msgstr ""
29017
29018 # type: textblock
29019 #: ../tools/virt-make-fs.pl:225
29020 msgid "The default is C<raw> (raw disk image)."
29021 msgstr ""
29022
29023 # type: textblock
29024 #: ../tools/virt-make-fs.pl:227
29025 msgid ""
29026 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29027 "that would really make sense here is C<qcow2>."
29028 msgstr ""
29029
29030 # type: =item
29031 #: ../tools/virt-make-fs.pl:234
29032 msgid "B<--type=E<lt>fsE<gt>>"
29033 msgstr ""
29034
29035 # type: =item
29036 #: ../tools/virt-make-fs.pl:236
29037 msgid "B<-t E<lt>fsE<gt>>"
29038 msgstr ""
29039
29040 # type: textblock
29041 #: ../tools/virt-make-fs.pl:238
29042 msgid "Choose the output filesystem type."
29043 msgstr ""
29044
29045 # type: textblock
29046 #: ../tools/virt-make-fs.pl:240
29047 msgid "The default is C<ext2>."
29048 msgstr ""
29049
29050 # type: textblock
29051 #: ../tools/virt-make-fs.pl:242
29052 msgid ""
29053 "Any filesystem which is supported read-write by libguestfs can be used here."
29054 msgstr ""
29055
29056 # type: =item
29057 #: ../tools/virt-make-fs.pl:249
29058 msgid "B<--partition>"
29059 msgstr ""
29060
29061 # type: =item
29062 #: ../tools/virt-make-fs.pl:251
29063 msgid "B<--partition=E<lt>parttypeE<gt>>"
29064 msgstr ""
29065
29066 # type: textblock
29067 #: ../tools/virt-make-fs.pl:253
29068 msgid ""
29069 "If specified, this flag adds an MBR partition table to the output disk image."
29070 msgstr ""
29071
29072 # type: textblock
29073 #: ../tools/virt-make-fs.pl:256
29074 msgid ""
29075 "You can change the partition table type, eg. C<--partition=gpt> for large "
29076 "disks."
29077 msgstr ""
29078
29079 # type: textblock
29080 #: ../tools/virt-make-fs.pl:259
29081 msgid ""
29082 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29083 "might consider the next parameter to be the partition type.  For example:"
29084 msgstr ""
29085
29086 # type: verbatim
29087 #: ../tools/virt-make-fs.pl:263
29088 #, no-wrap
29089 msgid ""
29090 " virt-make-fs --partition input.tar ...\n"
29091 "\n"
29092 msgstr ""
29093
29094 # type: textblock
29095 #: ../tools/virt-make-fs.pl:265
29096 msgid ""
29097 "would cause virt-make-fs to think you wanted to use a partition type of "
29098 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29099 "dash) between options and the input file argument:"
29100 msgstr ""
29101
29102 # type: verbatim
29103 #: ../tools/virt-make-fs.pl:269
29104 #, no-wrap
29105 msgid ""
29106 " virt-make-fs --partition -- input.tar ...\n"
29107 "\n"
29108 msgstr ""
29109
29110 # type: textblock
29111 #: ../tools/virt-make-fs.pl:536
29112 msgid ""
29113 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29114 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29115 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29116 msgstr ""
29117
29118 # type: verbatim
29119 #: ../tools/virt-make-fs.pl:553
29120 #, no-wrap
29121 msgid ""
29122 " export LIBGUESTFS_DEBUG=1\n"
29123 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29124 "\n"
29125 msgstr ""
29126
29127 # type: textblock
29128 #: ../tools/virt-make-fs.pl:556
29129 msgid ""
29130 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29131 "redhat.com/>"
29132 msgstr ""
29133
29134 # type: textblock
29135 #: ../tools/virt-list-partitions.pl:32
29136 msgid ""
29137 "virt-list-partitions - List partitions in a virtual machine or disk image"
29138 msgstr ""
29139
29140 # type: verbatim
29141 #: ../tools/virt-list-partitions.pl:36
29142 #, no-wrap
29143 msgid ""
29144 " virt-list-partitions [--options] domname\n"
29145 "\n"
29146 msgstr ""
29147
29148 # type: verbatim
29149 #: ../tools/virt-list-partitions.pl:38
29150 #, no-wrap
29151 msgid ""
29152 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29153 "\n"
29154 msgstr ""
29155
29156 # type: textblock
29157 #: ../tools/virt-list-partitions.pl:42
29158 msgid ""
29159 "C<virt-list-partitions> is a command line tool to list the partitions that "
29160 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29161 "first step to using L<virt-resize(1)>."
29162 msgstr ""
29163
29164 # type: textblock
29165 #: ../tools/virt-list-partitions.pl:47
29166 msgid ""
29167 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29168 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29169 "> tool."
29170 msgstr ""
29171
29172 # type: =item
29173 #: ../tools/virt-list-partitions.pl:104
29174 msgid "B<-h> | B<--human-readable>"
29175 msgstr ""
29176
29177 # type: textblock
29178 #: ../tools/virt-list-partitions.pl:106
29179 msgid "Show sizes in human-readable form (eg. \"1G\")."
29180 msgstr ""
29181
29182 # type: textblock
29183 #: ../tools/virt-list-partitions.pl:114
29184 msgid ""
29185 "With this option, C<virt-list-partitions> displays the type and size of each "
29186 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29187 msgstr ""
29188
29189 # type: =item
29190 #: ../tools/virt-list-partitions.pl:121
29191 msgid "B<-t> | B<--total>"
29192 msgstr ""
29193
29194 # type: textblock
29195 #: ../tools/virt-list-partitions.pl:123
29196 msgid ""
29197 "Display the total size of each block device (as a separate row or rows)."
29198 msgstr ""
29199
29200 # type: textblock
29201 #: ../tools/virt-list-partitions.pl:256
29202 msgid ""
29203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
29204 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
29205 "libguestfs.org/>."
29206 msgstr ""