autogen: Touch ocaml/.depend
[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-10-28 18:08+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30
23 #: ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1159
782 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1384
783 #: ../src/guestfs.pod:1389 ../src/guestfs.pod:1393 ../src/guestfs.pod:1495
784 #: ../src/guestfs.pod:1499 ../src/guestfs.pod:1503 ../src/guestfs.pod:1508
785 #: ../src/guestfs.pod:1516 ../src/guestfs.pod:1535 ../src/guestfs.pod:1543
786 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:1779 ../src/guestfs.pod:1784
787 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1897 ../src/guestfs.pod:1901
788 #: ../src/guestfs.pod:1905 ../src/guestfs.pod:1909
789 #: ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21
790 #: ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:446
791 #: ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:460
792 #: ../src/guestfs-actions.pod:1351 ../src/guestfs-actions.pod:1355
793 #: ../src/guestfs-actions.pod:1359 ../src/guestfs-actions.pod:1363
794 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1375
795 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1389
796 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1397
797 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524
798 #: ../src/guestfs-actions.pod:1529 ../src/guestfs-actions.pod:1534
799 #: ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1590
800 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish.pod:364
801 #: ../fish/guestfish.pod:368 ../fish/guestfish.pod:372
802 #: ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13
803 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339
804 #: ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354
805 #: ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056
806 #: ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064
807 #: ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076
808 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
809 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
810 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192
811 #: ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201
812 #: ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248
813 #: ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257
814 #: ../inspector/virt-inspector.pl:370 ../inspector/virt-inspector.pl:374
815 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
816 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
817 msgid "*"
818 msgstr ""
819
820 # type: textblock
821 #: ../src/guestfs.pod:362
822 msgid ""
823 "The kernel version that the command runs under will be different from what "
824 "it expects."
825 msgstr ""
826
827 # type: textblock
828 #: ../src/guestfs.pod:367
829 msgid ""
830 "If the command needs to communicate with daemons, then most likely they "
831 "won't be running."
832 msgstr ""
833
834 # type: textblock
835 #: ../src/guestfs.pod:372
836 msgid "The command will be running in limited memory."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:376
841 msgid ""
842 "The network may not be available unless you enable it (see L</"
843 "guestfs_set_network>)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:381
848 msgid "Only supports Linux guests (not Windows, BSD, etc)."
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:385
853 msgid ""
854 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
855 msgstr ""
856
857 # type: textblock
858 #: ../src/guestfs.pod:390
859 msgid ""
860 "For SELinux guests, you may need to enable SELinux and load policy first.  "
861 "See L</SELINUX> in this manpage."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:395
866 msgid ""
867 "I<Security:> It is not safe to run commands from untrusted, possibly "
868 "malicious guests.  These commands may attempt to exploit your program by "
869 "sending unexpected output.  They could also try to exploit the Linux kernel "
870 "or qemu provided by the libguestfs appliance.  They could use the network "
871 "provided by the libguestfs appliance to bypass ordinary network partitions "
872 "and firewalls.  They could use the elevated privileges or different SELinux "
873 "context of your program to their advantage."
874 msgstr ""
875
876 # type: textblock
877 #: ../src/guestfs.pod:404
878 msgid ""
879 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
880 "(a script which runs when the guest next boots normally), and to have this "
881 "script run the commands you want in the normal context of the running guest, "
882 "network security and so on."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:411
887 msgid ""
888 "The two main API calls to run commands are L</guestfs_command> and L</"
889 "guestfs_sh> (there are also variations)."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:414
894 msgid ""
895 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
896 "shell globs, redirections, etc will work."
897 msgstr ""
898
899 # type: =head2
900 #: ../src/guestfs.pod:417
901 msgid "CONFIGURATION FILES"
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:419
906 msgid ""
907 "To read and write configuration files in Linux guest filesystems, we "
908 "strongly recommend using Augeas.  For example, Augeas understands how to "
909 "read and write, say, a Linux shadow password file or X.org configuration "
910 "file, and so avoids you having to write that code."
911 msgstr ""
912
913 # type: textblock
914 #: ../src/guestfs.pod:424
915 msgid ""
916 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
917 "document Augeas itself here because there is excellent documentation on the "
918 "L<http://augeas.net/> website."
919 msgstr ""
920
921 # type: textblock
922 #: ../src/guestfs.pod:428
923 msgid ""
924 "If you don't want to use Augeas (you fool!) then try calling L</"
925 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
926 "over."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:432
931 msgid "SELINUX"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:434
936 msgid ""
937 "We support SELinux guests.  To ensure that labeling happens correctly in "
938 "SELinux guests, you need to enable SELinux and load the guest's policy:"
939 msgstr ""
940
941 # type: =item
942 #: ../src/guestfs.pod:440
943 msgid "1."
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:442
948 msgid "Before launching, do:"
949 msgstr ""
950
951 # type: verbatim
952 #: ../src/guestfs.pod:444
953 #, no-wrap
954 msgid ""
955 " guestfs_set_selinux (g, 1);\n"
956 "\n"
957 msgstr ""
958
959 # type: =item
960 #: ../src/guestfs.pod:446
961 msgid "2."
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:448
966 msgid ""
967 "After mounting the guest's filesystem(s), load the policy.  This is best "
968 "done by running the L<load_policy(8)> command in the guest itself:"
969 msgstr ""
970
971 # type: verbatim
972 #: ../src/guestfs.pod:452
973 #, no-wrap
974 msgid ""
975 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
976 "\n"
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:454
981 msgid ""
982 "(Older versions of C<load_policy> require you to specify the name of the "
983 "policy file)."
984 msgstr ""
985
986 # type: =item
987 #: ../src/guestfs.pod:457
988 msgid "3."
989 msgstr ""
990
991 # type: textblock
992 #: ../src/guestfs.pod:459
993 msgid ""
994 "Optionally, set the security context for the API.  The correct security "
995 "context to use can only be known by inspecting the guest.  As an example:"
996 msgstr ""
997
998 # type: verbatim
999 #: ../src/guestfs.pod:463
1000 #, no-wrap
1001 msgid ""
1002 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1003 "\n"
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:467
1008 msgid "This will work for running commands and editing existing files."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:469
1013 msgid ""
1014 "When new files are created, you may need to label them explicitly, for "
1015 "example by running the external command C<restorecon pathname>."
1016 msgstr ""
1017
1018 # type: =head2
1019 #: ../src/guestfs.pod:473
1020 msgid "UMASK"
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:475
1025 msgid ""
1026 "Certain calls are affected by the current file mode creation mask (the "
1027 "\"umask\").  In particular ones which create files or directories, such as "
1028 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1029 "either the default mode that the file is created with or modifies the mode "
1030 "that you supply."
1031 msgstr ""
1032
1033 # type: textblock
1034 #: ../src/guestfs.pod:481
1035 msgid ""
1036 "The default umask is C<022>, so files are created with modes such as C<0644> "
1037 "and directories with C<0755>."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:484
1042 msgid ""
1043 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1044 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1045 "guestfs_chmod> after creating each file or directory."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:488
1050 msgid "For more information about umask, see L<umask(2)>."
1051 msgstr ""
1052
1053 # type: =head1
1054 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
1055 msgid "ENCRYPTED DISKS"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs allows you to access Linux guests which have been encrypted using "
1062 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1063 "standard.  This includes nearly all whole disk encryption systems used by "
1064 "modern Linux guests."
1065 msgstr ""
1066
1067 # type: textblock
1068 #: ../src/guestfs.pod:498
1069 msgid ""
1070 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1071 "returns the string C<crypto_LUKS>)."
1072 msgstr ""
1073
1074 # type: textblock
1075 #: ../src/guestfs.pod:501
1076 msgid ""
1077 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1078 "will require the passphrase!"
1079 msgstr ""
1080
1081 # type: textblock
1082 #: ../src/guestfs.pod:504
1083 msgid ""
1084 "Opening a LUKS device creates a new device mapper device called C</dev/"
1085 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1086 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1087 "from and encrypted to the underlying block device respectively."
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:510
1092 msgid ""
1093 "LVM volume groups on the device can be made visible by calling L</"
1094 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1095 "(s) can now be mounted in the usual way."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:514
1100 msgid ""
1101 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1102 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1103 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1104 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1105 "underlying encrypted block device)."
1106 msgstr ""
1107
1108 # type: =head2
1109 #: ../src/guestfs.pod:521
1110 msgid "INSPECTION"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:523
1115 msgid ""
1116 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1117 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1118 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1119 "frequently used part of this library has been rewritten in C and moved into "
1120 "the core code)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:529
1125 msgid ""
1126 "Add all disks belonging to the unknown virtual machine and call L</"
1127 "guestfs_launch> in the usual way."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:532
1132 msgid ""
1133 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1134 "and certain heuristics, and returns a list of operating systems that were "
1135 "found.  An empty list means none were found.  A single element is the root "
1136 "filesystem of the operating system.  For dual- or multi-boot guests, "
1137 "multiple roots can be returned, each one corresponding to a separate "
1138 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1139 "world of virtualization, but since this scenario can happen, we have built "
1140 "libguestfs to deal with it.)"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:541
1145 msgid ""
1146 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1147 "to get additional details about that operating system.  For example, call L</"
1148 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1149 "Windows and Linux-based operating systems respectively."
1150 msgstr ""
1151
1152 # type: textblock
1153 #: ../src/guestfs.pod:547
1154 msgid ""
1155 "Un*x-like and Linux-based operating systems usually consist of several "
1156 "filesystems which are mounted at boot time (for example, a separate boot "
1157 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1158 "filesystems correspond to mount points.  Call "
1159 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1160 "hash table like this example:"
1161 msgstr ""
1162
1163 # type: verbatim
1164 #: ../src/guestfs.pod:554
1165 #, no-wrap
1166 msgid ""
1167 " /boot => /dev/sda1\n"
1168 " /     => /dev/vg_guest/lv_root\n"
1169 " /usr  => /dev/vg_guest/lv_usr\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:558
1175 msgid ""
1176 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1177 "filesystems as suggested."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:561
1182 msgid ""
1183 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1184 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1185 msgstr ""
1186
1187 # type: textblock
1188 #: ../src/guestfs.pod:565
1189 msgid ""
1190 "Inspection currently only works for some common operating systems.  "
1191 "Contributors are welcome to send patches for other operating systems that we "
1192 "currently cannot detect."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:569
1197 msgid ""
1198 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1199 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1200 "encrypted devices."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:573
1205 msgid ""
1206 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1207 "inspection and caches the results in the guest handle.  Subsequent calls to "
1208 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1209 "read the disks.  If you change the content of the guest disks, you can redo "
1210 "inspection by calling L</guestfs_inspect_os> again."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:580
1215 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:582
1220 msgid ""
1221 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1222 "ntfs-3g.org/> driver."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:585
1227 msgid ""
1228 "DOS and Windows still use drive letters, and the filesystems are always "
1229 "treated as case insensitive by Windows itself, and therefore you might find "
1230 "a Windows configuration file referring to a path like C<c:\\windows"
1231 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1232 "might be referred to as C</WINDOWS/System32>."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:591
1237 msgid ""
1238 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1239 "libguestfs to read the appropriate Windows Registry and configuration files, "
1240 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1241 "inspector(1)>)."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:596
1246 msgid ""
1247 "Replacing backslash characters with forward slash characters is also outside "
1248 "the scope of libguestfs, but something that you can easily do."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:599
1253 msgid ""
1254 "Where we can help is in resolving the case insensitivity of paths.  For "
1255 "this, call L</guestfs_case_sensitive_path>."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:602
1260 msgid ""
1261 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1262 "files, through the library C<hivex> which is part of the libguestfs project "
1263 "although ships as a separate tarball.  You have to locate and download the "
1264 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1265 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1266 "reg(1)> for more help on this issue."
1267 msgstr ""
1268
1269 # type: =head2
1270 #: ../src/guestfs.pod:610
1271 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:612
1276 msgid ""
1277 "Although we don't want to discourage you from using the C API, we will "
1278 "mention here that the same API is also available in other languages."
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:615
1283 msgid ""
1284 "The API is broadly identical in all supported languages.  This means that "
1285 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1286 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1287 "words, a straightforward, predictable isomorphism between each language."
1288 msgstr ""
1289
1290 # type: textblock
1291 #: ../src/guestfs.pod:621
1292 msgid ""
1293 "Error messages are automatically transformed into exceptions if the language "
1294 "supports it."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:624
1299 msgid ""
1300 "We don't try to \"object orientify\" parts of the API in OO languages, "
1301 "although contributors are welcome to write higher level APIs above what we "
1302 "provide in their favourite languages if they wish."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:630
1307 msgid "B<C++>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:632
1312 msgid ""
1313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1314 "identical to the C API.  C++ classes and exceptions are not used."
1315 msgstr ""
1316
1317 # type: =item
1318 #: ../src/guestfs.pod:636
1319 msgid "B<C#>"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:638
1324 msgid ""
1325 "The C# bindings are highly experimental.  Please read the warnings at the "
1326 "top of C<csharp/Libguestfs.cs>."
1327 msgstr ""
1328
1329 # type: =item
1330 #: ../src/guestfs.pod:641
1331 msgid "B<Haskell>"
1332 msgstr ""
1333
1334 # type: textblock
1335 #: ../src/guestfs.pod:643
1336 msgid ""
1337 "This is the only language binding that is working but incomplete.  Only "
1338 "calls which return simple integers have been bound in Haskell, and we are "
1339 "looking for help to complete this binding."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:647
1344 msgid "B<Java>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:649
1349 msgid ""
1350 "Full documentation is contained in the Javadoc which is distributed with "
1351 "libguestfs."
1352 msgstr ""
1353
1354 # type: =item
1355 #: ../src/guestfs.pod:652
1356 msgid "B<OCaml>"
1357 msgstr ""
1358
1359 # type: textblock
1360 #: ../src/guestfs.pod:654
1361 msgid "For documentation see the file C<guestfs.mli>."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:656
1366 msgid "B<Perl>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:658
1371 msgid "For documentation see L<Sys::Guestfs(3)>."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:660
1376 msgid "B<PHP>"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:662
1381 msgid ""
1382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1383 "the php-libguestfs package for your distribution."
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:665
1388 msgid "The PHP binding only works correctly on 64 bit machines."
1389 msgstr ""
1390
1391 # type: =item
1392 #: ../src/guestfs.pod:667
1393 msgid "B<Python>"
1394 msgstr ""
1395
1396 # type: textblock
1397 #: ../src/guestfs.pod:669
1398 msgid "For documentation do:"
1399 msgstr ""
1400
1401 # type: verbatim
1402 #: ../src/guestfs.pod:671
1403 #, no-wrap
1404 msgid ""
1405 " $ python\n"
1406 " >>> import guestfs\n"
1407 " >>> help (guestfs)\n"
1408 "\n"
1409 msgstr ""
1410
1411 # type: =item
1412 #: ../src/guestfs.pod:675
1413 msgid "B<Ruby>"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:677
1418 msgid ""
1419 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1420 "can find examples written in Ruby in the libguestfs source."
1421 msgstr ""
1422
1423 # type: =item
1424 #: ../src/guestfs.pod:680
1425 msgid "B<shell scripts>"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:682
1430 msgid "For documentation see L<guestfish(1)>."
1431 msgstr ""
1432
1433 # type: =head2
1434 #: ../src/guestfs.pod:686
1435 msgid "LIBGUESTFS GOTCHAS"
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:688
1440 msgid ""
1441 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1442 "system [...] that works in the way it is documented but is counterintuitive "
1443 "and almost invites mistakes.\""
1444 msgstr ""
1445
1446 # type: textblock
1447 #: ../src/guestfs.pod:692
1448 msgid ""
1449 "Since we developed libguestfs and the associated tools, there are several "
1450 "things we would have designed differently, but are now stuck with for "
1451 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1452 "release, you can expect these to change.  Beware of them."
1453 msgstr ""
1454
1455 # type: =item
1456 #: ../src/guestfs.pod:700
1457 msgid "Autosync / forgetting to sync."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:702
1462 msgid ""
1463 "When modifying a filesystem from C or another language, you B<must> unmount "
1464 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1465 "libguestfs handle.  You can also call:"
1466 msgstr ""
1467
1468 # type: verbatim
1469 #: ../src/guestfs.pod:706
1470 #, no-wrap
1471 msgid ""
1472 " guestfs_set_autosync (g, 1);\n"
1473 "\n"
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:708
1478 msgid ""
1479 "to have the unmount/sync done automatically for you when the handle 'g' is "
1480 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:712
1485 msgid ""
1486 "If you forget to do this, then it is entirely possible that your changes "
1487 "won't be written out, or will be partially written, or (very rarely) that "
1488 "you'll get disk corruption."
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:716
1493 msgid ""
1494 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1495 "guestfish scripts that forget to sync will work just fine, which can make "
1496 "this very puzzling if you are trying to debug a problem."
1497 msgstr ""
1498
1499 # type: textblock
1500 #: ../src/guestfs.pod:720
1501 msgid ""
1502 "Update: Autosync is enabled by default for all API users starting from "
1503 "libguestfs 1.5.24."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:723
1508 msgid "Mount option C<-o sync> should not be the default."
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:725
1513 msgid ""
1514 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1515 "However C<-o sync> does not add any reliability benefit, but does have a "
1516 "very large performance impact."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:729
1521 msgid ""
1522 "The work around is to use L</guestfs_mount_options> and set the mount "
1523 "options that you actually want to use."
1524 msgstr ""
1525
1526 # type: =item
1527 #: ../src/guestfs.pod:732
1528 msgid "Read-only should be the default."
1529 msgstr ""
1530
1531 # type: textblock
1532 #: ../src/guestfs.pod:734
1533 msgid ""
1534 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1535 "specify I<--rw> if you want to make changes to the image."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:737
1540 msgid "This would reduce the potential to corrupt live VM images."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:739
1545 msgid ""
1546 "Note that many filesystems change the disk when you just mount and unmount, "
1547 "even if you didn't perform any writes.  You need to use L</"
1548 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:743
1553 msgid "guestfish command line is hard to use."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:745
1558 msgid ""
1559 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1560 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1561 "exist, so it fails.  In earlier versions of guestfish the error message was "
1562 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1563 "we should have used C<guestfish -c command> to run commands."
1564 msgstr ""
1565
1566 # type: =item
1567 #: ../src/guestfs.pod:752
1568 msgid "guestfish megabyte modifiers don't work right on all commands"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:754
1573 msgid ""
1574 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1575 "other modifiers).  What guestfish actually does is to multiply the number "
1576 "part by the modifier part and pass the result to the C API.  However this "
1577 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1578 "expecting some other unit (eg. megabytes)."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:761
1583 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1584 msgstr ""
1585
1586 # type: verbatim
1587 #: ../src/guestfs.pod:763
1588 #, no-wrap
1589 msgid ""
1590 " lvcreate LV VG 100M\n"
1591 "\n"
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1598 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1599 "megabytes * megabytes) logical volume.  The error message you get from this "
1600 "is also a little obscure."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:770
1605 msgid ""
1606 "This could be fixed in the generator by specially marking parameters and "
1607 "return values which take bytes or other units."
1608 msgstr ""
1609
1610 # type: =item
1611 #: ../src/guestfs.pod:773
1612 msgid "Library should return errno with error messages."
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:775
1617 msgid ""
1618 "It would be a nice-to-have to be able to get the original value of 'errno' "
1619 "from inside the appliance along error paths (where set).  Currently "
1620 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1621 "string into an errno, see the function error() in fuse/guestmount.c."
1622 msgstr ""
1623
1624 # type: textblock
1625 #: ../src/guestfs.pod:781
1626 msgid ""
1627 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1628 "sent back from the daemon."
1629 msgstr ""
1630
1631 # type: =item
1632 #: ../src/guestfs.pod:784
1633 msgid "Ambiguity between devices and paths"
1634 msgstr ""
1635
1636 # type: textblock
1637 #: ../src/guestfs.pod:786
1638 msgid ""
1639 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1640 "sdb2>) and a similar pathname.  A file might just happen to be called "
1641 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1642 msgstr ""
1643
1644 # type: textblock
1645 #: ../src/guestfs.pod:791
1646 msgid ""
1647 "In the current API we usually resolve this ambiguity by having two separate "
1648 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1649 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1650 "detecting if the path supplied begins with C</dev/>."
1651 msgstr ""
1652
1653 # type: textblock
1654 #: ../src/guestfs.pod:797
1655 msgid ""
1656 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1657 "make paths/devices into structured names.  One way to do this would be to "
1658 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1659 "aspect of grub.  Another way would be to use a structured type, equivalent "
1660 "to this OCaml type:"
1661 msgstr ""
1662
1663 # type: verbatim
1664 #: ../src/guestfs.pod:803
1665 #, no-wrap
1666 msgid ""
1667 " type path = Path of string | Device of int | Partition of int * int\n"
1668 "\n"
1669 msgstr ""
1670
1671 # type: textblock
1672 #: ../src/guestfs.pod:805
1673 msgid "which would allow you to pass arguments like:"
1674 msgstr ""
1675
1676 # type: verbatim
1677 #: ../src/guestfs.pod:807
1678 #, no-wrap
1679 msgid ""
1680 " Path \"/foo/bar\"\n"
1681 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1682 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1683 " Path \"/dev/sdb2\"    (* not a device *)\n"
1684 "\n"
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:812
1689 msgid ""
1690 "As you can see there are still problems to resolve even with this "
1691 "representation.  Also consider how it might work in guestfish."
1692 msgstr ""
1693
1694 # type: =head2
1695 #: ../src/guestfs.pod:817
1696 msgid "PROTOCOL LIMITS"
1697 msgstr ""
1698
1699 # type: textblock
1700 #: ../src/guestfs.pod:819
1701 msgid ""
1702 "Internally libguestfs uses a message-based protocol to pass API calls and "
1703 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1704 "plenty more detail about this).  The maximum message size used by the "
1705 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1706 "aware of this limit.  The API calls which may be affected are individually "
1707 "documented, with a link back to this section of the documentation."
1708 msgstr ""
1709
1710 # type: textblock
1711 #: ../src/guestfs.pod:827
1712 msgid ""
1713 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1714 "a simple string.  Because this string is at some point internally encoded as "
1715 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1716 "the requested file is larger than this then you will get an error."
1717 msgstr ""
1718
1719 # type: textblock
1720 #: ../src/guestfs.pod:833
1721 msgid ""
1722 "In order to transfer large files into and out of the guest filesystem, you "
1723 "need to use particular calls that support this.  The sections L</UPLOADING> "
1724 "and L</DOWNLOADING> document how to do this."
1725 msgstr ""
1726
1727 # type: textblock
1728 #: ../src/guestfs.pod:837
1729 msgid ""
1730 "You might also consider mounting the disk image using our FUSE filesystem "
1731 "support (L<guestmount(1)>)."
1732 msgstr ""
1733
1734 # type: =head2
1735 #: ../src/guestfs.pod:840
1736 msgid "KEYS AND PASSPHRASES"
1737 msgstr ""
1738
1739 # type: textblock
1740 #: ../src/guestfs.pod:842
1741 msgid ""
1742 "Certain libguestfs calls take a parameter that contains sensitive key "
1743 "material, passed in as a C string."
1744 msgstr ""
1745
1746 # type: textblock
1747 #: ../src/guestfs.pod:845
1748 msgid ""
1749 "In the future we would hope to change the libguestfs implementation so that "
1750 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1751 "swap.  However this is I<not> done at the moment, because of the complexity "
1752 "of such an implementation."
1753 msgstr ""
1754
1755 # type: textblock
1756 #: ../src/guestfs.pod:850
1757 msgid ""
1758 "Therefore you should be aware that any key parameter you pass to libguestfs "
1759 "might end up being written out to the swap partition.  If this is a concern, "
1760 "scrub the swap partition or don't use libguestfs on encrypted devices."
1761 msgstr ""
1762
1763 # type: =head1
1764 #: ../src/guestfs.pod:855
1765 msgid "CONNECTION MANAGEMENT"
1766 msgstr ""
1767
1768 # type: =head2
1769 #: ../src/guestfs.pod:857
1770 msgid "guestfs_h *"
1771 msgstr ""
1772
1773 # type: textblock
1774 #: ../src/guestfs.pod:859
1775 msgid ""
1776 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1777 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1778 "handle and release all resources used."
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:863
1783 msgid ""
1784 "For information on using multiple handles and threads, see the section L</"
1785 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1786 msgstr ""
1787
1788 # type: =head2
1789 #: ../src/guestfs.pod:866
1790 msgid "guestfs_create"
1791 msgstr ""
1792
1793 # type: verbatim
1794 #: ../src/guestfs.pod:868
1795 #, no-wrap
1796 msgid ""
1797 " guestfs_h *guestfs_create (void);\n"
1798 "\n"
1799 msgstr ""
1800
1801 # type: textblock
1802 #: ../src/guestfs.pod:870
1803 msgid "Create a connection handle."
1804 msgstr ""
1805
1806 # type: textblock
1807 #: ../src/guestfs.pod:872
1808 msgid ""
1809 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1810 "on the handle at least once."
1811 msgstr ""
1812
1813 # type: textblock
1814 #: ../src/guestfs.pod:875
1815 msgid ""
1816 "This function returns a non-NULL pointer to a handle on success or NULL on "
1817 "error."
1818 msgstr ""
1819
1820 # type: textblock
1821 #: ../src/guestfs.pod:878
1822 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1823 msgstr ""
1824
1825 # type: textblock
1826 #: ../src/guestfs.pod:880
1827 msgid ""
1828 "You may also want to configure error handling for the handle.  See L</ERROR "
1829 "HANDLING> section below."
1830 msgstr ""
1831
1832 # type: =head2
1833 #: ../src/guestfs.pod:883
1834 msgid "guestfs_close"
1835 msgstr ""
1836
1837 # type: verbatim
1838 #: ../src/guestfs.pod:885
1839 #, no-wrap
1840 msgid ""
1841 " void guestfs_close (guestfs_h *g);\n"
1842 "\n"
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:887
1847 msgid "This closes the connection handle and frees up all resources used."
1848 msgstr ""
1849
1850 # type: =head1
1851 #: ../src/guestfs.pod:889
1852 msgid "ERROR HANDLING"
1853 msgstr ""
1854
1855 # type: textblock
1856 #: ../src/guestfs.pod:891
1857 msgid ""
1858 "The convention in all functions that return C<int> is that they return C<-1> "
1859 "to indicate an error.  You can get additional information on errors by "
1860 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1861 "guestfs_set_error_handler>."
1862 msgstr ""
1863
1864 # type: textblock
1865 #: ../src/guestfs.pod:896
1866 msgid "The default error handler prints the information string to C<stderr>."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:898
1871 msgid ""
1872 "Out of memory errors are handled differently.  The default action is to call "
1873 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1874 "guestfs_set_out_of_memory_handler>."
1875 msgstr ""
1876
1877 # type: =head2
1878 #: ../src/guestfs.pod:902
1879 msgid "guestfs_last_error"
1880 msgstr ""
1881
1882 # type: verbatim
1883 #: ../src/guestfs.pod:904
1884 #, no-wrap
1885 msgid ""
1886 " const char *guestfs_last_error (guestfs_h *g);\n"
1887 "\n"
1888 msgstr ""
1889
1890 # type: textblock
1891 #: ../src/guestfs.pod:906
1892 msgid ""
1893 "This returns the last error message that happened on C<g>.  If there has not "
1894 "been an error since the handle was created, then this returns C<NULL>."
1895 msgstr ""
1896
1897 # type: textblock
1898 #: ../src/guestfs.pod:910
1899 msgid ""
1900 "The lifetime of the returned string is until the next error occurs, or L</"
1901 "guestfs_close> is called."
1902 msgstr ""
1903
1904 # type: textblock
1905 #: ../src/guestfs.pod:913
1906 msgid ""
1907 "The error string is not localized (ie. is always in English), because this "
1908 "makes searching for error messages in search engines give the largest number "
1909 "of results."
1910 msgstr ""
1911
1912 # type: =head2
1913 #: ../src/guestfs.pod:917
1914 msgid "guestfs_set_error_handler"
1915 msgstr ""
1916
1917 # type: verbatim
1918 #: ../src/guestfs.pod:919
1919 #, no-wrap
1920 msgid ""
1921 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1922 "                                           void *opaque,\n"
1923 "                                           const char *msg);\n"
1924 " void guestfs_set_error_handler (guestfs_h *g,\n"
1925 "                                 guestfs_error_handler_cb cb,\n"
1926 "                                 void *opaque);\n"
1927 "\n"
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:926
1932 msgid ""
1933 "The callback C<cb> will be called if there is an error.  The parameters "
1934 "passed to the callback are an opaque data pointer and the error message "
1935 "string."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:930
1940 msgid ""
1941 "Note that the message string C<msg> is freed as soon as the callback "
1942 "function returns, so if you want to stash it somewhere you must make your "
1943 "own copy."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:934
1948 msgid "The default handler prints messages on C<stderr>."
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:936
1953 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1954 msgstr ""
1955
1956 # type: =head2
1957 #: ../src/guestfs.pod:938
1958 msgid "guestfs_get_error_handler"
1959 msgstr ""
1960
1961 # type: verbatim
1962 #: ../src/guestfs.pod:940
1963 #, no-wrap
1964 msgid ""
1965 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1966 "                                                     void **opaque_rtn);\n"
1967 "\n"
1968 msgstr ""
1969
1970 # type: textblock
1971 #: ../src/guestfs.pod:943
1972 msgid "Returns the current error handler callback."
1973 msgstr ""
1974
1975 # type: =head2
1976 #: ../src/guestfs.pod:945
1977 msgid "guestfs_set_out_of_memory_handler"
1978 msgstr ""
1979
1980 # type: verbatim
1981 #: ../src/guestfs.pod:947
1982 #, no-wrap
1983 msgid ""
1984 " typedef void (*guestfs_abort_cb) (void);\n"
1985 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1986 "                                        guestfs_abort_cb);\n"
1987 "\n"
1988 msgstr ""
1989
1990 # type: textblock
1991 #: ../src/guestfs.pod:951
1992 msgid ""
1993 "The callback C<cb> will be called if there is an out of memory situation.  "
1994 "I<Note this callback must not return>."
1995 msgstr ""
1996
1997 # type: textblock
1998 #: ../src/guestfs.pod:954
1999 msgid "The default is to call L<abort(3)>."
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:956
2004 msgid ""
2005 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2006 msgstr ""
2007
2008 # type: =head2
2009 #: ../src/guestfs.pod:959
2010 msgid "guestfs_get_out_of_memory_handler"
2011 msgstr ""
2012
2013 # type: verbatim
2014 #: ../src/guestfs.pod:961
2015 #, no-wrap
2016 msgid ""
2017 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2018 "\n"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:963
2023 msgid "This returns the current out of memory handler."
2024 msgstr ""
2025
2026 # type: =head1
2027 #: ../src/guestfs.pod:965
2028 msgid "PATH"
2029 msgstr ""
2030
2031 # type: textblock
2032 #: ../src/guestfs.pod:967
2033 msgid ""
2034 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2035 "internal path."
2036 msgstr ""
2037
2038 # type: textblock
2039 #: ../src/guestfs.pod:970
2040 msgid ""
2041 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2042 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:973
2047 msgid ""
2048 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2049 "to change the directories that libguestfs will search in.  The value is a "
2050 "colon-separated list of paths.  The current directory is I<not> searched "
2051 "unless the path contains an empty element or C<.>.  For example "
2052 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2053 "then C</usr/lib/guestfs>."
2054 msgstr ""
2055
2056 # type: =head1
2057 #: ../src/guestfs.pod:980
2058 msgid "HIGH-LEVEL API ACTIONS"
2059 msgstr ""
2060
2061 # type: =head2
2062 #: ../src/guestfs.pod:982
2063 msgid "ABI GUARANTEE"
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:984
2068 msgid ""
2069 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2070 "actions as outlined in this section.  Although we will deprecate some "
2071 "actions, for example if they get replaced by newer calls, we will keep the "
2072 "old actions forever.  This allows you the developer to program in confidence "
2073 "against the libguestfs API."
2074 msgstr ""
2075
2076 # type: textblock
2077 #: ../src/guestfs.pod:990 ../fish/guestfish.pod:860
2078 msgid "@ACTIONS@"
2079 msgstr ""
2080
2081 # type: =head1
2082 #: ../src/guestfs.pod:992
2083 msgid "STRUCTURES"
2084 msgstr ""
2085
2086 # type: textblock
2087 #: ../src/guestfs.pod:994
2088 msgid "@STRUCTS@"
2089 msgstr ""
2090
2091 # type: =head1
2092 #: ../src/guestfs.pod:996
2093 msgid "AVAILABILITY"
2094 msgstr ""
2095
2096 # type: =head2
2097 #: ../src/guestfs.pod:998
2098 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2099 msgstr ""
2100
2101 # type: textblock
2102 #: ../src/guestfs.pod:1000
2103 msgid ""
2104 "Using L</guestfs_available> you can test availability of the following "
2105 "groups of functions.  This test queries the appliance to see if the "
2106 "appliance you are currently using supports the functionality."
2107 msgstr ""
2108
2109 # type: textblock
2110 #: ../src/guestfs.pod:1005
2111 msgid "@AVAILABILITY@"
2112 msgstr ""
2113
2114 # type: =head2
2115 #: ../src/guestfs.pod:1007
2116 msgid "GUESTFISH supported COMMAND"
2117 msgstr ""
2118
2119 # type: textblock
2120 #: ../src/guestfs.pod:1009
2121 msgid ""
2122 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2123 "prints out the available groups and whether they are supported by this build "
2124 "of libguestfs.  Note however that you have to do C<run> first."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1014
2129 msgid "SINGLE CALLS AT COMPILE TIME"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1016
2134 msgid ""
2135 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2136 "function, such as:"
2137 msgstr ""
2138
2139 # type: verbatim
2140 #: ../src/guestfs.pod:1019
2141 #, no-wrap
2142 msgid ""
2143 " #define LIBGUESTFS_HAVE_DD 1\n"
2144 "\n"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1021
2149 msgid "if L</guestfs_dd> is available."
2150 msgstr ""
2151
2152 # type: textblock
2153 #: ../src/guestfs.pod:1023
2154 msgid ""
2155 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2156 "function is available at compile time, we recommended using build tools such "
2157 "as autoconf or cmake.  For example in autotools you could use:"
2158 msgstr ""
2159
2160 # type: verbatim
2161 #: ../src/guestfs.pod:1028
2162 #, no-wrap
2163 msgid ""
2164 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2165 " AC_CHECK_FUNCS([guestfs_dd])\n"
2166 "\n"
2167 msgstr ""
2168
2169 # type: textblock
2170 #: ../src/guestfs.pod:1031
2171 msgid ""
2172 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2173 "in your program."
2174 msgstr ""
2175
2176 # type: =head2
2177 #: ../src/guestfs.pod:1034
2178 msgid "SINGLE CALLS AT RUN TIME"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1036
2183 msgid ""
2184 "Testing at compile time doesn't guarantee that a function really exists in "
2185 "the library.  The reason is that you might be dynamically linked against a "
2186 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2187 "This situation unfortunately results in a segmentation fault, which is a "
2188 "shortcoming of the C dynamic linking system itself."
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1043
2193 msgid ""
2194 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2195 "in this example program (note that you still need the compile time check as "
2196 "well):"
2197 msgstr ""
2198
2199 # type: verbatim
2200 #: ../src/guestfs.pod:1047
2201 #, no-wrap
2202 msgid ""
2203 " #include <stdio.h>\n"
2204 " #include <stdlib.h>\n"
2205 " #include <unistd.h>\n"
2206 " #include <dlfcn.h>\n"
2207 " #include <guestfs.h>\n"
2208 " \n"
2209 msgstr ""
2210
2211 # type: verbatim
2212 #: ../src/guestfs.pod:1053
2213 #, no-wrap
2214 msgid ""
2215 " main ()\n"
2216 " {\n"
2217 " #ifdef LIBGUESTFS_HAVE_DD\n"
2218 "   void *dl;\n"
2219 "   int has_function;\n"
2220 " \n"
2221 msgstr ""
2222
2223 # type: verbatim
2224 #: ../src/guestfs.pod:1059
2225 #, no-wrap
2226 msgid ""
2227 "   /* Test if the function guestfs_dd is really available. */\n"
2228 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2229 "   if (!dl) {\n"
2230 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2231 "     exit (EXIT_FAILURE);\n"
2232 "   }\n"
2233 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2234 "   dlclose (dl);\n"
2235 " \n"
2236 msgstr ""
2237
2238 # type: verbatim
2239 #: ../src/guestfs.pod:1068
2240 #, no-wrap
2241 msgid ""
2242 "   if (!has_function)\n"
2243 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2244 "   else {\n"
2245 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2246 "     /* Now it's safe to call\n"
2247 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2248 "     */\n"
2249 "   }\n"
2250 " #else\n"
2251 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2252 " #endif\n"
2253 "  }\n"
2254 "\n"
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1081
2259 msgid ""
2260 "You may think the above is an awful lot of hassle, and it is.  There are "
2261 "other ways outside of the C linking system to ensure that this kind of "
2262 "incompatibility never arises, such as using package versioning:"
2263 msgstr ""
2264
2265 # type: verbatim
2266 #: ../src/guestfs.pod:1086
2267 #, no-wrap
2268 msgid ""
2269 " Requires: libguestfs >= 1.0.80\n"
2270 "\n"
2271 msgstr ""
2272
2273 # type: =head1
2274 #: ../src/guestfs.pod:1088
2275 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2276 msgstr ""
2277
2278 # type: textblock
2279 #: ../src/guestfs.pod:1090
2280 msgid ""
2281 "A recent feature of the API is the introduction of calls which take optional "
2282 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2283 "takes variable arguments (ie. C<...>), as in this example:"
2284 msgstr ""
2285
2286 # type: verbatim
2287 #: ../src/guestfs.pod:1095
2288 #, no-wrap
2289 msgid ""
2290 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2291 "\n"
2292 msgstr ""
2293
2294 # type: textblock
2295 #: ../src/guestfs.pod:1097
2296 msgid ""
2297 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2298 "call with no optional arguments specified:"
2299 msgstr ""
2300
2301 # type: verbatim
2302 #: ../src/guestfs.pod:1100
2303 #, no-wrap
2304 msgid ""
2305 " guestfs_add_drive_opts (g, filename, -1);\n"
2306 "\n"
2307 msgstr ""
2308
2309 # type: textblock
2310 #: ../src/guestfs.pod:1102
2311 msgid "With a single optional argument:"
2312 msgstr ""
2313
2314 # type: verbatim
2315 #: ../src/guestfs.pod:1104
2316 #, no-wrap
2317 msgid ""
2318 " guestfs_add_drive_opts (g, filename,\n"
2319 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2320 "                         -1);\n"
2321 "\n"
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1108
2326 msgid "With two:"
2327 msgstr ""
2328
2329 # type: verbatim
2330 #: ../src/guestfs.pod:1110
2331 #, no-wrap
2332 msgid ""
2333 " guestfs_add_drive_opts (g, filename,\n"
2334 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2335 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2336 "                         -1);\n"
2337 "\n"
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1115
2342 msgid ""
2343 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2344 "happen!"
2345 msgstr ""
2346
2347 # type: =head2
2348 #: ../src/guestfs.pod:1118
2349 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2350 msgstr ""
2351
2352 # type: textblock
2353 #: ../src/guestfs.pod:1120
2354 msgid ""
2355 "The second variant has the same name with the suffix C<_va>, which works the "
2356 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2357 "example function, this is declared:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1124
2362 #, no-wrap
2363 msgid ""
2364 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2365 "                                va_list args);\n"
2366 "\n"
2367 msgstr ""
2368
2369 # type: =head2
2370 #: ../src/guestfs.pod:1127
2371 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2372 msgstr ""
2373
2374 # type: textblock
2375 #: ../src/guestfs.pod:1129
2376 msgid ""
2377 "The third variant is useful where you need to construct these calls.  You "
2378 "pass in a structure where you fill in the optional fields.  The structure "
2379 "has a bitmask as the first element which you must set to indicate which "
2380 "fields you have filled in.  For our example function the structure and call "
2381 "are declared:"
2382 msgstr ""
2383
2384 # type: verbatim
2385 #: ../src/guestfs.pod:1135
2386 #, no-wrap
2387 msgid ""
2388 " struct guestfs_add_drive_opts_argv {\n"
2389 "   uint64_t bitmask;\n"
2390 "   int readonly;\n"
2391 "   const char *format;\n"
2392 "   /* ... */\n"
2393 " };\n"
2394 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2395 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1144
2401 msgid "You could call it like this:"
2402 msgstr ""
2403
2404 # type: verbatim
2405 #: ../src/guestfs.pod:1146
2406 #, no-wrap
2407 msgid ""
2408 " struct guestfs_add_drive_opts_argv optargs = {\n"
2409 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2410 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2411 "   .readonly = 1,\n"
2412 "   .format = \"qcow2\"\n"
2413 " };\n"
2414 " \n"
2415 msgstr ""
2416
2417 # type: verbatim
2418 #: ../src/guestfs.pod:1153
2419 #, no-wrap
2420 msgid ""
2421 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2422 "\n"
2423 msgstr ""
2424
2425 # type: textblock
2426 #: ../src/guestfs.pod:1155 ../src/guestfs-actions.pod:10
2427 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9
2428 #: ../fish/guestfish-actions.pod:1244
2429 msgid "Notes:"
2430 msgstr ""
2431
2432 # type: textblock
2433 #: ../src/guestfs.pod:1161
2434 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2435 msgstr ""
2436
2437 # type: textblock
2438 #: ../src/guestfs.pod:1166
2439 msgid "You do not need to fill in all fields of the structure."
2440 msgstr ""
2441
2442 # type: textblock
2443 #: ../src/guestfs.pod:1170
2444 msgid ""
2445 "There must be a one-to-one correspondence between fields of the structure "
2446 "that are filled in, and bits set in the bitmask."
2447 msgstr ""
2448
2449 # type: =head2
2450 #: ../src/guestfs.pod:1175
2451 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1177
2456 msgid ""
2457 "In other languages, optional arguments are expressed in the way that is "
2458 "natural for that language.  We refer you to the language-specific "
2459 "documentation for more details on that."
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1181
2464 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2465 msgstr ""
2466
2467 # type: =end
2468 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1188
2469 msgid "html"
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1185
2474 msgid ""
2475 "<!-- old anchor for the next section --> <a name="
2476 "\"state_machine_and_low_level_event_api\"/>"
2477 msgstr ""
2478
2479 # type: =head1
2480 #: ../src/guestfs.pod:1190
2481 msgid "ARCHITECTURE"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1192
2486 msgid ""
2487 "Internally, libguestfs is implemented by running an appliance (a special "
2488 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2489 "process of the main program."
2490 msgstr ""
2491
2492 # type: verbatim
2493 #: ../src/guestfs.pod:1196
2494 #, no-wrap
2495 msgid ""
2496 "  ___________________\n"
2497 " /                   \\\n"
2498 " | main program      |\n"
2499 " |                   |\n"
2500 " |                   |           child process / appliance\n"
2501 " |                   |           __________________________\n"
2502 " |                   |          / qemu                     \\\n"
2503 " +-------------------+   RPC    |      +-----------------+ |\n"
2504 " | libguestfs     <--------------------> guestfsd        | |\n"
2505 " |                   |          |      +-----------------+ |\n"
2506 " \\___________________/          |      | Linux kernel    | |\n"
2507 "                                |      +--^--------------+ |\n"
2508 "                                \\_________|________________/\n"
2509 "                                          |\n"
2510 "                                   _______v______\n"
2511 "                                  /              \\\n"
2512 "                                  | Device or    |\n"
2513 "                                  | disk image   |\n"
2514 "                                  \\______________/\n"
2515 "\n"
2516 msgstr ""
2517
2518 # type: textblock
2519 #: ../src/guestfs.pod:1216
2520 msgid ""
2521 "The library, linked to the main program, creates the child process and hence "
2522 "the appliance in the L</guestfs_launch> function."
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1219
2527 msgid ""
2528 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2529 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2530 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2531 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2532 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2533 "attached to the qemu process which translates device access by the "
2534 "appliance's Linux kernel into accesses to the image."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1228
2539 msgid ""
2540 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2541 "Although the disk image you are attached to might also be used by some "
2542 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2543 "care if both libguestfs's qemu process and your virtual machine are trying "
2544 "to update the disk image at the same time, since these usually results in "
2545 "massive disk corruption)."
2546 msgstr ""
2547
2548 # type: =head1
2549 #: ../src/guestfs.pod:1235
2550 msgid "STATE MACHINE"
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1237
2555 msgid "libguestfs uses a state machine to model the child process:"
2556 msgstr ""
2557
2558 # type: verbatim
2559 #: ../src/guestfs.pod:1239
2560 #, no-wrap
2561 msgid ""
2562 "                         |\n"
2563 "                    guestfs_create\n"
2564 "                         |\n"
2565 "                         |\n"
2566 "                     ____V_____\n"
2567 "                    /          \\\n"
2568 "                    |  CONFIG  |\n"
2569 "                    \\__________/\n"
2570 "                     ^ ^   ^  \\\n"
2571 "                    /  |    \\  \\ guestfs_launch\n"
2572 "                   /   |    _\\__V______\n"
2573 "                  /    |   /           \\\n"
2574 "                 /     |   | LAUNCHING |\n"
2575 "                /      |   \\___________/\n"
2576 "               /       |       /\n"
2577 "              /        |  guestfs_launch\n"
2578 "             /         |     /\n"
2579 "    ______  /        __|____V\n"
2580 "   /      \\ ------> /        \\\n"
2581 "   | BUSY |         | READY  |\n"
2582 "   \\______/ <------ \\________/\n"
2583 "\n"
2584 msgstr ""
2585
2586 # type: textblock
2587 #: ../src/guestfs.pod:1261
2588 msgid ""
2589 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2590 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2591 "(3) alternating between READY and BUSY as commands are issued to, and "
2592 "carried out by, the child process."
2593 msgstr ""
2594
2595 # type: textblock
2596 #: ../src/guestfs.pod:1266
2597 msgid ""
2598 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2599 "asynchronously at any time (eg. due to some internal error), and that causes "
2600 "the state to transition back to CONFIG."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1270
2605 msgid ""
2606 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2607 "issued when in the CONFIG state."
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1273
2612 msgid ""
2613 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2614 "L</guestfs_launch> blocks until the child process is READY to accept "
2615 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2616 "moves the state from CONFIG to LAUNCHING while it is running."
2617 msgstr ""
2618
2619 # type: textblock
2620 #: ../src/guestfs.pod:1279
2621 msgid ""
2622 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2623 "state.  These API calls block waiting for the command to be carried out (ie. "
2624 "the state to transition to BUSY and then back to READY).  There are no non-"
2625 "blocking versions, and no way to issue more than one command per handle at "
2626 "the same time."
2627 msgstr ""
2628
2629 # type: textblock
2630 #: ../src/guestfs.pod:1285
2631 msgid ""
2632 "Finally, the child process sends asynchronous messages back to the main "
2633 "program, such as kernel log messages.  You can register a callback to "
2634 "receive these messages."
2635 msgstr ""
2636
2637 # type: =head2
2638 #: ../src/guestfs.pod:1289
2639 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1291
2644 msgid ""
2645 "The child process generates events in some situations.  Current events "
2646 "include: receiving a log message, the child process exits."
2647 msgstr ""
2648
2649 # type: textblock
2650 #: ../src/guestfs.pod:1294
2651 msgid ""
2652 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2653 "types of events."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1297
2658 msgid ""
2659 "Only I<one callback of each type> can be registered for each handle.  "
2660 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2661 "that type.  Cancel all callbacks of this type by calling this function with "
2662 "C<cb> set to C<NULL>."
2663 msgstr ""
2664
2665 # type: =head2
2666 #: ../src/guestfs.pod:1302
2667 msgid "guestfs_set_log_message_callback"
2668 msgstr ""
2669
2670 # type: verbatim
2671 #: ../src/guestfs.pod:1304
2672 #, no-wrap
2673 msgid ""
2674 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2675 "                                         char *buf, int len);\n"
2676 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2677 "                                        guestfs_log_message_cb cb,\n"
2678 "                                        void *opaque);\n"
2679 "\n"
2680 msgstr ""
2681
2682 # type: textblock
2683 #: ../src/guestfs.pod:1310
2684 msgid ""
2685 "The callback function C<cb> will be called whenever qemu or the guest writes "
2686 "anything to the console."
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1313
2691 msgid "Use this function to capture kernel messages and similar."
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1315
2696 msgid ""
2697 "Normally there is no log message handler, and log messages are just "
2698 "discarded."
2699 msgstr ""
2700
2701 # type: =head2
2702 #: ../src/guestfs.pod:1318
2703 msgid "guestfs_set_subprocess_quit_callback"
2704 msgstr ""
2705
2706 # type: verbatim
2707 #: ../src/guestfs.pod:1320
2708 #, no-wrap
2709 msgid ""
2710 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2711 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2712 "                                            guestfs_subprocess_quit_cb cb,\n"
2713 "                                            void *opaque);\n"
2714 "\n"
2715 msgstr ""
2716
2717 # type: textblock
2718 #: ../src/guestfs.pod:1325
2719 msgid ""
2720 "The callback function C<cb> will be called when the child process quits, "
2721 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2722 "corresponds to a transition from any state to the CONFIG state)."
2723 msgstr ""
2724
2725 # type: =head2
2726 #: ../src/guestfs.pod:1330
2727 msgid "guestfs_set_launch_done_callback"
2728 msgstr ""
2729
2730 # type: verbatim
2731 #: ../src/guestfs.pod:1332
2732 #, no-wrap
2733 msgid ""
2734 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2735 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2736 "                                        guestfs_launch_done_cb cb,\n"
2737 "                                        void *opaque);\n"
2738 "\n"
2739 msgstr ""
2740
2741 # type: textblock
2742 #: ../src/guestfs.pod:1337
2743 msgid ""
2744 "The callback function C<cb> will be called when the child process becomes "
2745 "ready first time after it has been launched.  (This corresponds to a "
2746 "transition from LAUNCHING to the READY state)."
2747 msgstr ""
2748
2749 # type: =head2
2750 #: ../src/guestfs.pod:1341
2751 msgid "guestfs_set_close_callback"
2752 msgstr ""
2753
2754 # type: verbatim
2755 #: ../src/guestfs.pod:1343
2756 #, no-wrap
2757 msgid ""
2758 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2759 " void guestfs_set_close_callback (guestfs_h *g,\n"
2760 "                                  guestfs_close_cb cb,\n"
2761 "                                  void *opaque);\n"
2762 "\n"
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1348
2767 msgid ""
2768 "The callback function C<cb> will be called while the handle is being closed "
2769 "(synchronously from L</guestfs_close>)."
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1351
2774 msgid ""
2775 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2776 "handles that are open when the program exits.  This means that this callback "
2777 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2778 "problems in higher-level languages (eg. if your HLL interpreter has already "
2779 "been cleaned up by the time this is called, and if your callback then jumps "
2780 "into some HLL function)."
2781 msgstr ""
2782
2783 # type: =head2
2784 #: ../src/guestfs.pod:1359
2785 msgid "guestfs_set_progress_callback"
2786 msgstr ""
2787
2788 # type: verbatim
2789 #: ../src/guestfs.pod:1361
2790 #, no-wrap
2791 msgid ""
2792 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2793 "                                      int proc_nr, int serial,\n"
2794 "                                      uint64_t position, uint64_t total);\n"
2795 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2796 "                                     guestfs_progress_cb cb,\n"
2797 "                                     void *opaque);\n"
2798 "\n"
2799 msgstr ""
2800
2801 # type: textblock
2802 #: ../src/guestfs.pod:1368
2803 msgid ""
2804 "Some long-running operations can generate progress messages.  If this "
2805 "callback is registered, then it will be called each time a progress message "
2806 "is generated (usually two seconds after the operation started, and three "
2807 "times per second thereafter until it completes, although the frequency may "
2808 "change in future versions)."
2809 msgstr ""
2810
2811 # type: textblock
2812 #: ../src/guestfs.pod:1374
2813 msgid ""
2814 "The callback receives two numbers: C<position> and C<total>.  The units of "
2815 "C<total> are not defined, although for some operations C<total> may relate "
2816 "in some way to the amount of data to be transferred (eg. in bytes or "
2817 "megabytes), and C<position> may be the portion which has been transferred."
2818 msgstr ""
2819
2820 # type: textblock
2821 #: ../src/guestfs.pod:1380
2822 msgid "The only defined and stable parts of the API are:"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1386
2827 msgid ""
2828 "The callback can display to the user some type of progress bar or indicator "
2829 "which shows the ratio of C<position>:C<total>."
2830 msgstr ""
2831
2832 # type: textblock
2833 #: ../src/guestfs.pod:1391
2834 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1395
2839 msgid ""
2840 "If any progress notification is sent during a call, then a final progress "
2841 "notification is always sent when C<position> = C<total>."
2842 msgstr ""
2843
2844 # type: textblock
2845 #: ../src/guestfs.pod:1398
2846 msgid ""
2847 "This is to simplify caller code, so callers can easily set the progress "
2848 "indicator to \"100%\" at the end of the operation, without requiring special "
2849 "code to detect this case."
2850 msgstr ""
2851
2852 # type: textblock
2853 #: ../src/guestfs.pod:1404
2854 msgid ""
2855 "The callback also receives the procedure number and serial number of the "
2856 "call.  These are only useful for debugging protocol issues, and the callback "
2857 "can normally ignore them.  The callback may want to print these numbers in "
2858 "error messages or debugging messages."
2859 msgstr ""
2860
2861 # type: =head1
2862 #: ../src/guestfs.pod:1409
2863 msgid "PRIVATE DATA AREA"
2864 msgstr ""
2865
2866 # type: textblock
2867 #: ../src/guestfs.pod:1411
2868 msgid ""
2869 "You can attach named pieces of private data to the libguestfs handle, and "
2870 "fetch them by name for the lifetime of the handle.  This is called the "
2871 "private data area and is only available from the C API."
2872 msgstr ""
2873
2874 # type: textblock
2875 #: ../src/guestfs.pod:1415
2876 msgid "To attach a named piece of data, use the following call:"
2877 msgstr ""
2878
2879 # type: verbatim
2880 #: ../src/guestfs.pod:1417
2881 #, no-wrap
2882 msgid ""
2883 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2884 "\n"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1419
2889 msgid ""
2890 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2891 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2892 "overwritten."
2893 msgstr ""
2894
2895 # type: textblock
2896 #: ../src/guestfs.pod:1423
2897 msgid ""
2898 "You can use any C<key> you want, but names beginning with an underscore "
2899 "character are reserved for internal libguestfs purposes (for implementing "
2900 "language bindings).  It is recommended to prefix the name with some unique "
2901 "string to avoid collisions with other users."
2902 msgstr ""
2903
2904 # type: textblock
2905 #: ../src/guestfs.pod:1428
2906 msgid "To retrieve the pointer, use:"
2907 msgstr ""
2908
2909 # type: verbatim
2910 #: ../src/guestfs.pod:1430
2911 #, no-wrap
2912 msgid ""
2913 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2914 "\n"
2915 msgstr ""
2916
2917 # type: textblock
2918 #: ../src/guestfs.pod:1432
2919 msgid ""
2920 "This function returns C<NULL> if either no data is found associated with "
2921 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2922 "C<NULL>."
2923 msgstr ""
2924
2925 # type: textblock
2926 #: ../src/guestfs.pod:1436
2927 msgid ""
2928 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2929 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2930 "all.  In particular, libguestfs does I<not> try to free the data when the "
2931 "handle is closed.  If the data must be freed, then the caller must either "
2932 "free it before calling L</guestfs_close> or must set up a close callback to "
2933 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2934 "can be registered for a handle)."
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1444
2939 msgid ""
2940 "The private data area is implemented using a hash table, and should be "
2941 "reasonably efficient for moderate numbers of keys."
2942 msgstr ""
2943
2944 # type: =head1
2945 #: ../src/guestfs.pod:1447
2946 msgid "BLOCK DEVICE NAMING"
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1449
2951 msgid ""
2952 "In the kernel there is now quite a profusion of schemata for naming block "
2953 "devices (in this context, by I<block device> I mean a physical or virtual "
2954 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2955 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2956 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2957 "for the old IDE driver (particularly for SATA devices) those devices also "
2958 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2959 "paravirtualized drivers.  This has created several different naming systems, "
2960 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1461
2965 msgid ""
2966 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2967 "Linux kernel to access block devices.  We can run a variety of appliances "
2968 "based on a variety of Linux kernels."
2969 msgstr ""
2970
2971 # type: textblock
2972 #: ../src/guestfs.pod:1465
2973 msgid ""
2974 "This causes a problem for libguestfs because many API calls use device or "
2975 "partition names.  Working scripts and the recipe (example) scripts that we "
2976 "make available over the internet could fail if the naming scheme changes."
2977 msgstr ""
2978
2979 # type: textblock
2980 #: ../src/guestfs.pod:1470
2981 msgid ""
2982 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2983 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2984 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2985 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2986 msgstr ""
2987
2988 # type: textblock
2989 #: ../src/guestfs.pod:1476
2990 msgid ""
2991 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2992 "L</guestfs_list_partitions> and similar calls return the true names of the "
2993 "devices and partitions as known to the appliance."
2994 msgstr ""
2995
2996 # type: =head2
2997 #: ../src/guestfs.pod:1481
2998 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2999 msgstr ""
3000
3001 # type: textblock
3002 #: ../src/guestfs.pod:1483
3003 msgid ""
3004 "Usually this translation is transparent.  However in some (very rare)  cases "
3005 "you may need to know the exact algorithm.  Such cases include where you use "
3006 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3007 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3008 msgstr ""
3009
3010 # type: textblock
3011 #: ../src/guestfs.pod:1489
3012 msgid ""
3013 "The algorithm is applied only to I<parameters> which are known to be either "
3014 "device or partition names.  Return values from functions such as L</"
3015 "guestfs_list_devices> are never changed."
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1497
3020 msgid "Is the string a parameter which is a device or partition name?"
3021 msgstr ""
3022
3023 # type: textblock
3024 #: ../src/guestfs.pod:1501
3025 msgid "Does the string begin with C</dev/sd>?"
3026 msgstr ""
3027
3028 # type: textblock
3029 #: ../src/guestfs.pod:1505
3030 msgid ""
3031 "Does the named device exist? If so, we use that device.  However if I<not> "
3032 "then we continue with this algorithm."
3033 msgstr ""
3034
3035 # type: textblock
3036 #: ../src/guestfs.pod:1510
3037 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3038 msgstr ""
3039
3040 # type: textblock
3041 #: ../src/guestfs.pod:1512
3042 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1514
3047 msgid "If that named device exists, use it.  If not, continue."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1518
3052 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1520
3057 msgid "If that named device exists, use it.  If not, return an error."
3058 msgstr ""
3059
3060 # type: =head2
3061 #: ../src/guestfs.pod:1524
3062 msgid "PORTABILITY CONCERNS"
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1526
3067 msgid ""
3068 "Although the standard naming scheme and automatic translation is useful for "
3069 "simple programs and guestfish scripts, for larger programs it is best not to "
3070 "rely on this mechanism."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1530
3075 msgid ""
3076 "Where possible for maximum future portability programs using libguestfs "
3077 "should use these future-proof techniques:"
3078 msgstr ""
3079
3080 # type: textblock
3081 #: ../src/guestfs.pod:1537
3082 msgid ""
3083 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3084 "device names, and then use those names directly."
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1540
3089 msgid ""
3090 "Since those device names exist by definition, they will never be translated."
3091 msgstr ""
3092
3093 # type: textblock
3094 #: ../src/guestfs.pod:1545
3095 msgid ""
3096 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3097 "filesystem labels."
3098 msgstr ""
3099
3100 # type: =head1
3101 #: ../src/guestfs.pod:1550
3102 msgid "INTERNALS"
3103 msgstr ""
3104
3105 # type: =head2
3106 #: ../src/guestfs.pod:1552
3107 msgid "COMMUNICATION PROTOCOL"
3108 msgstr ""
3109
3110 # type: textblock
3111 #: ../src/guestfs.pod:1554
3112 msgid ""
3113 "Don't rely on using this protocol directly.  This section documents how it "
3114 "currently works, but it may change at any time."
3115 msgstr ""
3116
3117 # type: textblock
3118 #: ../src/guestfs.pod:1557
3119 msgid ""
3120 "The protocol used to talk between the library and the daemon running inside "
3121 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3122 "1014, RFC 1832, RFC 4506)."
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1561
3127 msgid ""
3128 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3129 "this file is automatically generated)."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1564
3134 msgid ""
3135 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3136 "and C<FileOut> parameters, which are handled with very simple request/reply "
3137 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3138 "parameters, which use the same request and reply messages, but they may also "
3139 "be followed by files sent using a chunked encoding."
3140 msgstr ""
3141
3142 # type: =head3
3143 #: ../src/guestfs.pod:1571
3144 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1573
3149 msgid "For ordinary functions, the request message is:"
3150 msgstr ""
3151
3152 # type: verbatim
3153 #: ../src/guestfs.pod:1575
3154 #, no-wrap
3155 msgid ""
3156 " total length (header + arguments,\n"
3157 "      but not including the length word itself)\n"
3158 " struct guestfs_message_header (encoded as XDR)\n"
3159 " struct guestfs_<foo>_args (encoded as XDR)\n"
3160 "\n"
3161 msgstr ""
3162
3163 # type: textblock
3164 #: ../src/guestfs.pod:1580
3165 msgid ""
3166 "The total length field allows the daemon to allocate a fixed size buffer "
3167 "into which it slurps the rest of the message.  As a result, the total length "
3168 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3169 "effective size of any request is limited to somewhere under this size."
3170 msgstr ""
3171
3172 # type: textblock
3173 #: ../src/guestfs.pod:1586
3174 msgid ""
3175 "Note also that many functions don't take any arguments, in which case the "
3176 "C<guestfs_I<foo>_args> is completely omitted."
3177 msgstr ""
3178
3179 # type: textblock
3180 #: ../src/guestfs.pod:1589
3181 msgid ""
3182 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3183 "receiver knows what type of args structure to expect, or none at all."
3184 msgstr ""
3185
3186 # type: textblock
3187 #: ../src/guestfs.pod:1593
3188 msgid "The reply message for ordinary functions is:"
3189 msgstr ""
3190
3191 # type: verbatim
3192 #: ../src/guestfs.pod:1595
3193 #, no-wrap
3194 msgid ""
3195 " total length (header + ret,\n"
3196 "      but not including the length word itself)\n"
3197 " struct guestfs_message_header (encoded as XDR)\n"
3198 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3199 "\n"
3200 msgstr ""
3201
3202 # type: textblock
3203 #: ../src/guestfs.pod:1600
3204 msgid ""
3205 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3206 "functions that return no formal return values."
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1603
3211 msgid ""
3212 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1606
3217 msgid ""
3218 "In the case of an error, a flag is set in the header, and the reply message "
3219 "is slightly changed:"
3220 msgstr ""
3221
3222 # type: verbatim
3223 #: ../src/guestfs.pod:1609
3224 #, no-wrap
3225 msgid ""
3226 " total length (header + error,\n"
3227 "      but not including the length word itself)\n"
3228 " struct guestfs_message_header (encoded as XDR)\n"
3229 " struct guestfs_message_error (encoded as XDR)\n"
3230 "\n"
3231 msgstr ""
3232
3233 # type: textblock
3234 #: ../src/guestfs.pod:1614
3235 msgid ""
3236 "The C<guestfs_message_error> structure contains the error message as a "
3237 "string."
3238 msgstr ""
3239
3240 # type: =head3
3241 #: ../src/guestfs.pod:1617
3242 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1619
3247 msgid ""
3248 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3249 "The normal request message is sent (see above).  However this is followed by "
3250 "a sequence of file chunks."
3251 msgstr ""
3252
3253 # type: verbatim
3254 #: ../src/guestfs.pod:1623
3255 #, no-wrap
3256 msgid ""
3257 " total length (header + arguments,\n"
3258 "      but not including the length word itself,\n"
3259 "      and not including the chunks)\n"
3260 " struct guestfs_message_header (encoded as XDR)\n"
3261 " struct guestfs_<foo>_args (encoded as XDR)\n"
3262 " sequence of chunks for FileIn param #0\n"
3263 " sequence of chunks for FileIn param #1 etc.\n"
3264 "\n"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1631
3269 msgid "The \"sequence of chunks\" is:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #: ../src/guestfs.pod:1633
3274 #, no-wrap
3275 msgid ""
3276 " length of chunk (not including length word itself)\n"
3277 " struct guestfs_chunk (encoded as XDR)\n"
3278 " length of chunk\n"
3279 " struct guestfs_chunk (encoded as XDR)\n"
3280 "   ...\n"
3281 " length of chunk\n"
3282 " struct guestfs_chunk (with data.data_len == 0)\n"
3283 "\n"
3284 msgstr ""
3285
3286 # type: textblock
3287 #: ../src/guestfs.pod:1641
3288 msgid ""
3289 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3290 "is set in the final chunk to indicate either successful completion or early "
3291 "cancellation."
3292 msgstr ""
3293
3294 # type: textblock
3295 #: ../src/guestfs.pod:1645
3296 msgid ""
3297 "At time of writing there are no functions that have more than one FileIn "
3298 "parameter.  However this is (theoretically) supported, by sending the "
3299 "sequence of chunks for each FileIn parameter one after another (from left to "
3300 "right)."
3301 msgstr ""
3302
3303 # type: textblock
3304 #: ../src/guestfs.pod:1650
3305 msgid ""
3306 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3307 "transfer.  The library does this by sending a chunk with a special flag set "
3308 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3309 "RPC, does I<not> send any reply, and goes back to reading the next request."
3310 msgstr ""
3311
3312 # type: textblock
3313 #: ../src/guestfs.pod:1656
3314 msgid ""
3315 "The daemon may also cancel.  It does this by writing a special word "
3316 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3317 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3318 "cancel chunk).  The special word is chosen so that even if cancellation "
3319 "happens right at the end of the transfer (after the library has finished "
3320 "writing and has started listening for the reply), the \"spurious\" cancel "
3321 "flag will not be confused with the reply message."
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1665
3326 msgid ""
3327 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3328 "limit), and also files where the size is not known in advance (eg. from "
3329 "pipes or sockets).  However the chunks are rather small "
3330 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3331 "to keep much in memory."
3332 msgstr ""
3333
3334 # type: =head3
3335 #: ../src/guestfs.pod:1671
3336 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3337 msgstr ""
3338
3339 # type: textblock
3340 #: ../src/guestfs.pod:1673
3341 msgid ""
3342 "The protocol for FileOut parameters is exactly the same as for FileIn "
3343 "parameters, but with the roles of daemon and library reversed."
3344 msgstr ""
3345
3346 # type: verbatim
3347 #: ../src/guestfs.pod:1676
3348 #, no-wrap
3349 msgid ""
3350 " total length (header + ret,\n"
3351 "      but not including the length word itself,\n"
3352 "      and not including the chunks)\n"
3353 " struct guestfs_message_header (encoded as XDR)\n"
3354 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3355 " sequence of chunks for FileOut param #0\n"
3356 " sequence of chunks for FileOut param #1 etc.\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: =head3
3361 #: ../src/guestfs.pod:1684
3362 msgid "INITIAL MESSAGE"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1686
3367 msgid ""
3368 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3369 "which indicates that the guest and daemon is alive.  This is what L</"
3370 "guestfs_launch> waits for."
3371 msgstr ""
3372
3373 # type: =head3
3374 #: ../src/guestfs.pod:1690
3375 msgid "PROGRESS NOTIFICATION MESSAGES"
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1692
3380 msgid ""
3381 "The daemon may send progress notification messages at any time.  These are "
3382 "distinguished by the normal length word being replaced by "
3383 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1696
3388 msgid ""
3389 "The library turns them into progress callbacks (see "
3390 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3391 "discards them if not."
3392 msgstr ""
3393
3394 # type: textblock
3395 #: ../src/guestfs.pod:1700
3396 msgid ""
3397 "The daemon self-limits the frequency of progress messages it sends (see "
3398 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3399 "messages."
3400 msgstr ""
3401
3402 # type: =head1
3403 #: ../src/guestfs.pod:1704
3404 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1706
3409 msgid ""
3410 "All high-level libguestfs actions are synchronous.  If you want to use "
3411 "libguestfs asynchronously then you must create a thread."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1709
3416 msgid ""
3417 "Only use the handle from a single thread.  Either use the handle exclusively "
3418 "from one thread, or provide your own mutex so that two threads cannot issue "
3419 "calls on the same handle at the same time."
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1713
3424 msgid ""
3425 "See the graphical program guestfs-browser for one possible architecture for "
3426 "multithreaded programs using libvirt and libguestfs."
3427 msgstr ""
3428
3429 # type: =head1
3430 #: ../src/guestfs.pod:1716
3431 msgid "QEMU WRAPPERS"
3432 msgstr ""
3433
3434 # type: textblock
3435 #: ../src/guestfs.pod:1718
3436 msgid ""
3437 "If you want to compile your own qemu, run qemu from a non-standard location, "
3438 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3439 "around qemu."
3440 msgstr ""
3441
3442 # type: textblock
3443 #: ../src/guestfs.pod:1722
3444 msgid ""
3445 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3446 "last command in the shell script (so that qemu replaces the shell and "
3447 "becomes the direct child of the libguestfs-using program).  If you don't do "
3448 "this, then the qemu process won't be cleaned up correctly."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1727
3453 msgid ""
3454 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3455 "source:"
3456 msgstr ""
3457
3458 # type: verbatim
3459 #: ../src/guestfs.pod:1730
3460 #, no-wrap
3461 msgid ""
3462 " #!/bin/sh -\n"
3463 " qemudir=/home/rjones/d/qemu\n"
3464 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3465 "\n"
3466 msgstr ""
3467
3468 # type: textblock
3469 #: ../src/guestfs.pod:1734
3470 msgid ""
3471 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3472 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3473 "example:"
3474 msgstr ""
3475
3476 # type: verbatim
3477 #: ../src/guestfs.pod:1738
3478 #, no-wrap
3479 msgid ""
3480 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3481 "\n"
3482 msgstr ""
3483
3484 # type: textblock
3485 #: ../src/guestfs.pod:1740
3486 msgid ""
3487 "Note that libguestfs also calls qemu with the -help and -version options in "
3488 "order to determine features."
3489 msgstr ""
3490
3491 # type: =head1
3492 #: ../src/guestfs.pod:1743
3493 msgid "LIBGUESTFS VERSION NUMBERS"
3494 msgstr ""
3495
3496 # type: textblock
3497 #: ../src/guestfs.pod:1745
3498 msgid ""
3499 "Since April 2010, libguestfs has started to make separate development and "
3500 "stable releases, along with corresponding branches in our git repository.  "
3501 "These separate releases can be identified by version number:"
3502 msgstr ""
3503
3504 # type: verbatim
3505 #: ../src/guestfs.pod:1750
3506 #, no-wrap
3507 msgid ""
3508 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3509 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3510 "       |\n"
3511 "       v\n"
3512 " 1  .  3  .  5\n"
3513 " ^           ^\n"
3514 " |           |\n"
3515 " |           `-------- sub-version\n"
3516 " |\n"
3517 " `------ always '1' because we don't change the ABI\n"
3518 "\n"
3519 msgstr ""
3520
3521 # type: textblock
3522 #: ../src/guestfs.pod:1761
3523 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1763
3528 msgid ""
3529 "As time passes we cherry pick fixes from the development branch and backport "
3530 "those into the stable branch, the effect being that the stable branch should "
3531 "get more stable and less buggy over time.  So the stable releases are ideal "
3532 "for people who don't need new features but would just like the software to "
3533 "work."
3534 msgstr ""
3535
3536 # type: textblock
3537 #: ../src/guestfs.pod:1769
3538 msgid "Our criteria for backporting changes are:"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs.pod:1775
3543 msgid ""
3544 "Documentation changes which don't affect any code are backported unless the "
3545 "documentation refers to a future feature which is not in stable."
3546 msgstr ""
3547
3548 # type: textblock
3549 #: ../src/guestfs.pod:1781
3550 msgid ""
3551 "Bug fixes which are not controversial, fix obvious problems, and have been "
3552 "well tested are backported."
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs.pod:1786
3557 msgid ""
3558 "Simple rearrangements of code which shouldn't affect how it works get "
3559 "backported.  This is so that the code in the two branches doesn't get too "
3560 "far out of step, allowing us to backport future fixes more easily."
3561 msgstr ""
3562
3563 # type: textblock
3564 #: ../src/guestfs.pod:1792
3565 msgid ""
3566 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3567 "exceptional case: the new feature is required in order to implement an "
3568 "important bug fix."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1798
3573 msgid ""
3574 "A new stable branch starts when we think the new features in development are "
3575 "substantial and compelling enough over the current stable branch to warrant "
3576 "it.  When that happens we create new stable and development versions 1.N.0 "
3577 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3578 "stable at this point, but by backporting fixes from development, that branch "
3579 "will stabilize over time."
3580 msgstr ""
3581
3582 # type: =head1
3583 #: ../src/guestfs.pod:1806 ../fish/guestfish.pod:867
3584 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3585 #: ../tools/virt-rescue.pl:255
3586 msgid "ENVIRONMENT VARIABLES"
3587 msgstr ""
3588
3589 # type: =item
3590 #: ../src/guestfs.pod:1810 ../fish/guestfish.pod:893
3591 msgid "LIBGUESTFS_APPEND"
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:895
3596 msgid "Pass additional options to the guest kernel."
3597 msgstr ""
3598
3599 # type: =item
3600 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:897
3601 msgid "LIBGUESTFS_DEBUG"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1816
3606 msgid ""
3607 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3608 "effect as calling C<guestfs_set_verbose (g, 1)>."
3609 msgstr ""
3610
3611 # type: =item
3612 #: ../src/guestfs.pod:1819 ../fish/guestfish.pod:902
3613 msgid "LIBGUESTFS_MEMSIZE"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1821 ../fish/guestfish.pod:904
3618 msgid ""
3619 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3620 msgstr ""
3621
3622 # type: verbatim
3623 #: ../src/guestfs.pod:1824 ../fish/guestfish.pod:907
3624 #, no-wrap
3625 msgid ""
3626 " LIBGUESTFS_MEMSIZE=700\n"
3627 "\n"
3628 msgstr ""
3629
3630 # type: =item
3631 #: ../src/guestfs.pod:1826 ../fish/guestfish.pod:909
3632 msgid "LIBGUESTFS_PATH"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1828
3637 msgid ""
3638 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3639 "the discussion of paths in section PATH above."
3640 msgstr ""
3641
3642 # type: =item
3643 #: ../src/guestfs.pod:1831 ../fish/guestfish.pod:914
3644 msgid "LIBGUESTFS_QEMU"
3645 msgstr ""
3646
3647 # type: textblock
3648 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:916
3649 msgid ""
3650 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3651 "which was found at compile time by the configure script is used."
3652 msgstr ""
3653
3654 # type: textblock
3655 #: ../src/guestfs.pod:1837
3656 msgid "See also L</QEMU WRAPPERS> above."
3657 msgstr ""
3658
3659 # type: =item
3660 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:920
3661 msgid "LIBGUESTFS_TRACE"
3662 msgstr ""
3663
3664 # type: textblock
3665 #: ../src/guestfs.pod:1841
3666 msgid ""
3667 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3668 "effect as calling C<guestfs_set_trace (g, 1)>."
3669 msgstr ""
3670
3671 # type: =item
3672 #: ../src/guestfs.pod:1844 ../fish/guestfish.pod:929
3673 msgid "TMPDIR"
3674 msgstr ""
3675
3676 # type: textblock
3677 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:931
3678 msgid "Location of temporary directory, defaults to C</tmp>."
3679 msgstr ""
3680
3681 # type: textblock
3682 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:933
3683 msgid ""
3684 "If libguestfs was compiled to use the supermin appliance then the real "
3685 "appliance is cached in this directory, shared between all handles belonging "
3686 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3687 "use in case C</tmp> is not large enough."
3688 msgstr ""
3689
3690 # type: =head1
3691 #: ../src/guestfs.pod:1856 ../fish/guestfish.pod:991
3692 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214
3693 #: ../inspector/virt-inspector.pl:357 ../tools/virt-edit.pl:350
3694 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3695 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3696 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185
3697 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3698 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3699 msgid "SEE ALSO"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1858
3704 msgid ""
3705 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3706 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3707 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3708 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3709 "L<http://libguestfs.org/>."
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1876
3714 msgid ""
3715 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3716 "(8)>, L<disktype(1)>."
3717 msgstr ""
3718
3719 # type: =head1
3720 #: ../src/guestfs.pod:1883 ../tools/virt-win-reg.pl:499
3721 #: ../tools/virt-make-fs.pl:548
3722 msgid "BUGS"
3723 msgstr ""
3724
3725 # type: textblock
3726 #: ../src/guestfs.pod:1885
3727 msgid "To get a list of bugs against libguestfs use this link:"
3728 msgstr ""
3729
3730 # type: textblock
3731 #: ../src/guestfs.pod:1887
3732 msgid ""
3733 "L<https://bugzilla.redhat.com/buglist.cgi?"
3734 "component=libguestfs&product=Virtualization+Tools>"
3735 msgstr ""
3736
3737 # type: textblock
3738 #: ../src/guestfs.pod:1889
3739 msgid "To report a new bug against libguestfs use this link:"
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs.pod:1891
3744 msgid ""
3745 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3746 "component=libguestfs&product=Virtualization+Tools>"
3747 msgstr ""
3748
3749 # type: textblock
3750 #: ../src/guestfs.pod:1893
3751 msgid "When reporting a bug, please check:"
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs.pod:1899
3756 msgid "That the bug hasn't been reported already."
3757 msgstr ""
3758
3759 # type: textblock
3760 #: ../src/guestfs.pod:1903
3761 msgid "That you are testing a recent version."
3762 msgstr ""
3763
3764 # type: textblock
3765 #: ../src/guestfs.pod:1907
3766 msgid "Describe the bug accurately, and give a way to reproduce it."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1911
3771 msgid ""
3772 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3773 "bug report."
3774 msgstr ""
3775
3776 # type: =head1
3777 #: ../src/guestfs.pod:1916 ../fish/guestfish.pod:1008
3778 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225
3779 #: ../inspector/virt-inspector.pl:366
3780 msgid "AUTHORS"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs.pod:1918 ../fish/guestfish.pod:1010
3785 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3786 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3787 msgstr ""
3788
3789 # type: =head1
3790 #: ../src/guestfs.pod:1920 ../fish/guestfish.pod:1012
3791 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229
3792 #: ../inspector/virt-inspector.pl:380 ../tools/virt-edit.pl:366
3793 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3794 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3795 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199
3796 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3797 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3798 msgid "COPYRIGHT"
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1922 ../fish/guestfish.pod:1014
3803 #: ../fuse/guestmount.pod:231
3804 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1925
3809 msgid ""
3810 "This library is free software; you can redistribute it and/or modify it "
3811 "under the terms of the GNU Lesser General Public License as published by the "
3812 "Free Software Foundation; either version 2 of the License, or (at your "
3813 "option) any later version."
3814 msgstr ""
3815
3816 # type: textblock
3817 #: ../src/guestfs.pod:1930
3818 msgid ""
3819 "This library is distributed in the hope that it will be useful, but WITHOUT "
3820 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3821 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3822 "for more details."
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs.pod:1935
3827 msgid ""
3828 "You should have received a copy of the GNU Lesser General Public License "
3829 "along with this library; if not, write to the Free Software Foundation, "
3830 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3831 msgstr ""
3832
3833 # type: =head2
3834 #: ../src/guestfs-actions.pod:1
3835 msgid "guestfs_add_cdrom"
3836 msgstr ""
3837
3838 # type: verbatim
3839 #: ../src/guestfs-actions.pod:3
3840 #, no-wrap
3841 msgid ""
3842 " int guestfs_add_cdrom (guestfs_h *g,\n"
3843 "\t\tconst char *filename);\n"
3844 "\n"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3849 msgid "This function adds a virtual CD-ROM disk image to the guest."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3854 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs-actions.pod:16
3859 msgid ""
3860 "This call checks for the existence of C<filename>.  This stops you from "
3861 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3862 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3863 "instead."
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs-actions.pod:23
3868 msgid ""
3869 "If you just want to add an ISO file (often you use this as an efficient way "
3870 "to transfer large files into the guest), then you should probably use "
3871 "C<guestfs_add_drive_ro> instead."
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54
3876 #: ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144
3877 #: ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173
3878 #: ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201
3879 #: ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321
3880 #: ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368
3881 #: ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405
3882 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496
3883 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519
3884 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615
3885 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637
3886 #: ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800
3887 #: ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890
3888 #: ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921
3889 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949
3890 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040
3891 #: ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090
3892 #: ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209
3893 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440
3894 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540
3895 #: ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011
3896 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096
3897 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:2537
3898 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2662
3899 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:2683
3900 #: ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2706
3901 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2800
3902 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2831
3903 #: ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2871
3904 #: ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:2916
3905 #: ../src/guestfs-actions.pod:2932 ../src/guestfs-actions.pod:2961
3906 #: ../src/guestfs-actions.pod:2970 ../src/guestfs-actions.pod:3003
3907 #: ../src/guestfs-actions.pod:3016 ../src/guestfs-actions.pod:3026
3908 #: ../src/guestfs-actions.pod:3038 ../src/guestfs-actions.pod:3052
3909 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3149
3910 #: ../src/guestfs-actions.pod:3159 ../src/guestfs-actions.pod:3204
3911 #: ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:3234
3912 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3258
3913 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3283
3914 #: ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3312
3915 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3386
3916 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3418
3917 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
3918 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3463
3919 #: ../src/guestfs-actions.pod:3475 ../src/guestfs-actions.pod:3507
3920 #: ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:3536
3921 #: ../src/guestfs-actions.pod:3547 ../src/guestfs-actions.pod:3561
3922 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3632
3923 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3668
3924 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3697
3925 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3871
3926 #: ../src/guestfs-actions.pod:3890 ../src/guestfs-actions.pod:3905
3927 #: ../src/guestfs-actions.pod:3931 ../src/guestfs-actions.pod:3988
3928 #: ../src/guestfs-actions.pod:4002 ../src/guestfs-actions.pod:4012
3929 #: ../src/guestfs-actions.pod:4023 ../src/guestfs-actions.pod:4278
3930 #: ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4305
3931 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4325
3932 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4345
3933 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4376
3934 #: ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4408
3935 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:4443
3936 #: ../src/guestfs-actions.pod:4458 ../src/guestfs-actions.pod:4474
3937 #: ../src/guestfs-actions.pod:4492 ../src/guestfs-actions.pod:4508
3938 #: ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4547
3939 #: ../src/guestfs-actions.pod:4568 ../src/guestfs-actions.pod:4584
3940 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4617
3941 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4645
3942 #: ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4699
3943 #: ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4812
3944 #: ../src/guestfs-actions.pod:4918 ../src/guestfs-actions.pod:4927
3945 #: ../src/guestfs-actions.pod:4937 ../src/guestfs-actions.pod:4947
3946 #: ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:4976
3947 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:4996
3948 #: ../src/guestfs-actions.pod:5008 ../src/guestfs-actions.pod:5058
3949 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5085
3950 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5112
3951 #: ../src/guestfs-actions.pod:5122 ../src/guestfs-actions.pod:5139
3952 #: ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5180
3953 #: ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:5225
3954 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5266
3955 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5398
3956 #: ../src/guestfs-actions.pod:5413 ../src/guestfs-actions.pod:5424
3957 #: ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5480
3958 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5544
3959 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5609
3960 #: ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5682
3961 #: ../src/guestfs-actions.pod:5708
3962 msgid "This function returns 0 on success or -1 on error."
3963 msgstr ""
3964
3965 # type: textblock
3966 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157
3967 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28
3968 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3969 msgid ""
3970 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3971 "instead."
3972 msgstr ""
3973
3974 # type: textblock
3975 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160
3976 #: ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214
3977 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667
3978 #: ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5762
3979 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
3980 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
3981 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
3982 #: ../fish/guestfish-actions.pod:4333 ../fish/guestfish-actions.pod:4430
3983 msgid ""
3984 "Deprecated functions will not be removed from the API, but the fact that "
3985 "they are deprecated indicates that there are problems with correct use of "
3986 "these functions."
3987 msgstr ""
3988
3989 # type: =head2
3990 #: ../src/guestfs-actions.pod:38
3991 msgid "guestfs_add_drive"
3992 msgstr ""
3993
3994 # type: verbatim
3995 #: ../src/guestfs-actions.pod:40
3996 #, no-wrap
3997 msgid ""
3998 " int guestfs_add_drive (guestfs_h *g,\n"
3999 "\t\tconst char *filename);\n"
4000 "\n"
4001 msgstr ""
4002
4003 # type: textblock
4004 #: ../src/guestfs-actions.pod:43
4005 msgid ""
4006 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4007 "optional parameters, so the disk is added writable, with the format being "
4008 "detected automatically."
4009 msgstr ""
4010
4011 # type: textblock
4012 #: ../src/guestfs-actions.pod:47
4013 msgid ""
4014 "Automatic detection of the format opens you up to a potential security hole "
4015 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4016 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4017 "you should think about replacing calls to this function with calls to "
4018 "C<guestfs_add_drive_opts>, and specifying the format."
4019 msgstr ""
4020
4021 # type: =head2
4022 #: ../src/guestfs-actions.pod:56
4023 msgid "guestfs_add_drive_opts"
4024 msgstr ""
4025
4026 # type: verbatim
4027 #: ../src/guestfs-actions.pod:58
4028 #, no-wrap
4029 msgid ""
4030 " int guestfs_add_drive_opts (guestfs_h *g,\n"
4031 "\t\tconst char *filename,\n"
4032 "\t\t...);\n"
4033 "\n"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs-actions.pod:62
4038 msgid ""
4039 "You may supply a list of optional arguments to this call.  Use zero or more "
4040 "of the following pairs of parameters, and terminate the list with C<-1> on "
4041 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4042 msgstr ""
4043
4044 # type: verbatim
4045 #: ../src/guestfs-actions.pod:67
4046 #, no-wrap
4047 msgid ""
4048 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4049 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4050 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4051 "\n"
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
4056 msgid ""
4057 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4058 "The first time you call this function, the disk appears as C</dev/sda>, the "
4059 "second time as C</dev/sdb>, and so on."
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
4064 msgid ""
4065 "You don't necessarily need to be root when using libguestfs.  However you "
4066 "obviously do need sufficient permissions to access the filename for whatever "
4067 "operations you want to perform (ie. read access if you just want to read the "
4068 "image or write access if you want to modify the image)."
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
4073 msgid "This call checks that C<filename> exists."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
4078 msgid "The optional arguments are:"
4079 msgstr ""
4080
4081 # type: =item
4082 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
4083 msgid "C<readonly>"
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
4088 msgid ""
4089 "If true then the image is treated as read-only.  Writes are still allowed, "
4090 "but they are stored in a temporary snapshot overlay which is discarded at "
4091 "the end.  The disk that you add is not modified."
4092 msgstr ""
4093
4094 # type: =item
4095 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
4096 msgid "C<format>"
4097 msgstr ""
4098
4099 # type: textblock
4100 #: ../src/guestfs-actions.pod:96
4101 msgid ""
4102 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4103 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4104 "Possible formats include C<raw> and C<qcow2>."
4105 msgstr ""
4106
4107 # type: textblock
4108 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
4109 msgid ""
4110 "Automatic detection of the format opens you up to a potential security hole "
4111 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4112 "RHBZ#642934.  Specifying the format closes this security hole."
4113 msgstr ""
4114
4115 # type: =item
4116 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
4117 msgid "C<iface>"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs-actions.pod:107
4122 msgid ""
4123 "This rarely-used option lets you emulate the behaviour of the deprecated "
4124 "C<guestfs_add_drive_with_if> call (q.v.)"
4125 msgstr ""
4126
4127 # type: =head2
4128 #: ../src/guestfs-actions.pod:114
4129 msgid "guestfs_add_drive_opts_va"
4130 msgstr ""
4131
4132 # type: verbatim
4133 #: ../src/guestfs-actions.pod:116
4134 #, no-wrap
4135 msgid ""
4136 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
4137 "\t\tconst char *filename,\n"
4138 "\t\tva_list args);\n"
4139 "\n"
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs-actions.pod:120
4144 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
4149 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4150 msgstr ""
4151
4152 # type: =head2
4153 #: ../src/guestfs-actions.pod:124
4154 msgid "guestfs_add_drive_opts_argv"
4155 msgstr ""
4156
4157 # type: verbatim
4158 #: ../src/guestfs-actions.pod:126
4159 #, no-wrap
4160 msgid ""
4161 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4162 "\t\tconst char *filename,\n"
4163 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
4164 "\n"
4165 msgstr ""
4166
4167 # type: textblock
4168 #: ../src/guestfs-actions.pod:130
4169 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4170 msgstr ""
4171
4172 # type: =head2
4173 #: ../src/guestfs-actions.pod:134
4174 msgid "guestfs_add_drive_ro"
4175 msgstr ""
4176
4177 # type: verbatim
4178 #: ../src/guestfs-actions.pod:136
4179 #, no-wrap
4180 msgid ""
4181 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4182 "\t\tconst char *filename);\n"
4183 "\n"
4184 msgstr ""
4185
4186 # type: textblock
4187 #: ../src/guestfs-actions.pod:139
4188 msgid ""
4189 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4190 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4191 "disk is added read-only, with the format being detected automatically."
4192 msgstr ""
4193
4194 # type: =head2
4195 #: ../src/guestfs-actions.pod:146
4196 msgid "guestfs_add_drive_ro_with_if"
4197 msgstr ""
4198
4199 # type: verbatim
4200 #: ../src/guestfs-actions.pod:148
4201 #, no-wrap
4202 msgid ""
4203 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4204 "\t\tconst char *filename,\n"
4205 "\t\tconst char *iface);\n"
4206 "\n"
4207 msgstr ""
4208
4209 # type: textblock
4210 #: ../src/guestfs-actions.pod:152
4211 msgid ""
4212 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4213 "QEMU interface emulation to use at run time."
4214 msgstr ""
4215
4216 # type: =head2
4217 #: ../src/guestfs-actions.pod:164
4218 msgid "guestfs_add_drive_with_if"
4219 msgstr ""
4220
4221 # type: verbatim
4222 #: ../src/guestfs-actions.pod:166
4223 #, no-wrap
4224 msgid ""
4225 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4226 "\t\tconst char *filename,\n"
4227 "\t\tconst char *iface);\n"
4228 "\n"
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:170
4233 msgid ""
4234 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4235 "QEMU interface emulation to use at run time."
4236 msgstr ""
4237
4238 # type: =head2
4239 #: ../src/guestfs-actions.pod:182
4240 msgid "guestfs_aug_clear"
4241 msgstr ""
4242
4243 # type: verbatim
4244 #: ../src/guestfs-actions.pod:184
4245 #, no-wrap
4246 msgid ""
4247 " int guestfs_aug_clear (guestfs_h *g,\n"
4248 "\t\tconst char *augpath);\n"
4249 "\n"
4250 msgstr ""
4251
4252 # type: textblock
4253 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4254 msgid ""
4255 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4256 "L<augtool(1)> C<clear> command."
4257 msgstr ""
4258
4259 # type: =head2
4260 #: ../src/guestfs-actions.pod:192
4261 msgid "guestfs_aug_close"
4262 msgstr ""
4263
4264 # type: verbatim
4265 #: ../src/guestfs-actions.pod:194
4266 #, no-wrap
4267 msgid ""
4268 " int guestfs_aug_close (guestfs_h *g);\n"
4269 "\n"
4270 msgstr ""
4271
4272 # type: textblock
4273 #: ../src/guestfs-actions.pod:196
4274 msgid ""
4275 "Close the current Augeas handle and free up any resources used by it.  After "
4276 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4277 "any other Augeas functions."
4278 msgstr ""
4279
4280 # type: =head2
4281 #: ../src/guestfs-actions.pod:203
4282 msgid "guestfs_aug_defnode"
4283 msgstr ""
4284
4285 # type: verbatim
4286 #: ../src/guestfs-actions.pod:205
4287 #, no-wrap
4288 msgid ""
4289 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4290 "\t\tconst char *name,\n"
4291 "\t\tconst char *expr,\n"
4292 "\t\tconst char *val);\n"
4293 "\n"
4294 msgstr ""
4295
4296 # type: textblock
4297 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4298 msgid ""
4299 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4300 msgstr ""
4301
4302 # type: textblock
4303 #: ../src/guestfs-actions.pod:213
4304 msgid ""
4305 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4306 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4307 "containing that single node."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4312 msgid ""
4313 "On success this returns a pair containing the number of nodes in the "
4314 "nodeset, and a boolean flag if a node was created."
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:221
4319 msgid ""
4320 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4321 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4322 msgstr ""
4323
4324 # type: =head2
4325 #: ../src/guestfs-actions.pod:225
4326 msgid "guestfs_aug_defvar"
4327 msgstr ""
4328
4329 # type: verbatim
4330 #: ../src/guestfs-actions.pod:227
4331 #, no-wrap
4332 msgid ""
4333 " int guestfs_aug_defvar (guestfs_h *g,\n"
4334 "\t\tconst char *name,\n"
4335 "\t\tconst char *expr);\n"
4336 "\n"
4337 msgstr ""
4338
4339 # type: textblock
4340 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4341 msgid ""
4342 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4343 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4348 msgid ""
4349 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4350 "evaluates to something which is not a nodeset."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379
4355 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558
4356 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589
4357 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422
4358 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685
4359 #: ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759
4360 #: ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001
4361 #: ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2231
4362 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3728
4363 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4105
4364 #: ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5554
4365 #: ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5574
4366 msgid "On error this function returns -1."
4367 msgstr ""
4368
4369 # type: =head2
4370 #: ../src/guestfs-actions.pod:240
4371 msgid "guestfs_aug_get"
4372 msgstr ""
4373
4374 # type: verbatim
4375 #: ../src/guestfs-actions.pod:242
4376 #, no-wrap
4377 msgid ""
4378 " char *guestfs_aug_get (guestfs_h *g,\n"
4379 "\t\tconst char *augpath);\n"
4380 "\n"
4381 msgstr ""
4382
4383 # type: textblock
4384 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4385 msgid ""
4386 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4387 "node, the C<value> is returned."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676
4392 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748
4393 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852
4394 #: ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994
4395 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024
4396 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299
4397 #: ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553
4398 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643
4399 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795
4400 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115
4401 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2281
4402 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2336
4403 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2948
4404 #: ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3185
4405 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3919
4406 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4221
4407 #: ../src/guestfs-actions.pod:4264 ../src/guestfs-actions.pod:4740
4408 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4767
4409 #: ../src/guestfs-actions.pod:4788 ../src/guestfs-actions.pod:5347
4410 #: ../src/guestfs-actions.pod:5363 ../src/guestfs-actions.pod:5378
4411 #: ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:5756
4412 msgid ""
4413 "This function returns a string, or NULL on error.  I<The caller must free "
4414 "the returned string after use>."
4415 msgstr ""
4416
4417 # type: =head2
4418 #: ../src/guestfs-actions.pod:251
4419 msgid "guestfs_aug_init"
4420 msgstr ""
4421
4422 # type: verbatim
4423 #: ../src/guestfs-actions.pod:253
4424 #, no-wrap
4425 msgid ""
4426 " int guestfs_aug_init (guestfs_h *g,\n"
4427 "\t\tconst char *root,\n"
4428 "\t\tint flags);\n"
4429 "\n"
4430 msgstr ""
4431
4432 # type: textblock
4433 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4434 msgid ""
4435 "Create a new Augeas handle for editing configuration files.  If there was "
4436 "any previous Augeas handle associated with this guestfs session, then it is "
4437 "closed."
4438 msgstr ""
4439
4440 # type: textblock
4441 #: ../src/guestfs-actions.pod:261
4442 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4447 msgid ""
4448 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4449 msgstr ""
4450
4451 # type: textblock
4452 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4453 msgid ""
4454 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4455 "logical I<or> of the following integers:"
4456 msgstr ""
4457
4458 # type: =item
4459 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4460 msgid "C<AUG_SAVE_BACKUP> = 1"
4461 msgstr ""
4462
4463 # type: textblock
4464 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4465 msgid "Keep the original file with a C<.augsave> extension."
4466 msgstr ""
4467
4468 # type: =item
4469 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4470 msgid "C<AUG_SAVE_NEWFILE> = 2"
4471 msgstr ""
4472
4473 # type: textblock
4474 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4475 msgid ""
4476 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4477 "original.  Overrides C<AUG_SAVE_BACKUP>."
4478 msgstr ""
4479
4480 # type: =item
4481 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4482 msgid "C<AUG_TYPE_CHECK> = 4"
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4487 msgid "Typecheck lenses (can be expensive)."
4488 msgstr ""
4489
4490 # type: =item
4491 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4492 msgid "C<AUG_NO_STDINC> = 8"
4493 msgstr ""
4494
4495 # type: textblock
4496 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4497 msgid "Do not use standard load path for modules."
4498 msgstr ""
4499
4500 # type: =item
4501 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4502 msgid "C<AUG_SAVE_NOOP> = 16"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4507 msgid "Make save a no-op, just record what would have been changed."
4508 msgstr ""
4509
4510 # type: =item
4511 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4512 msgid "C<AUG_NO_LOAD> = 32"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:296
4517 msgid "Do not load the tree in C<guestfs_aug_init>."
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:300
4522 msgid "To close the handle, you can call C<guestfs_aug_close>."
4523 msgstr ""
4524
4525 # type: textblock
4526 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4527 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4528 msgstr ""
4529
4530 # type: =head2
4531 #: ../src/guestfs-actions.pod:306
4532 msgid "guestfs_aug_insert"
4533 msgstr ""
4534
4535 # type: verbatim
4536 #: ../src/guestfs-actions.pod:308
4537 #, no-wrap
4538 msgid ""
4539 " int guestfs_aug_insert (guestfs_h *g,\n"
4540 "\t\tconst char *augpath,\n"
4541 "\t\tconst char *label,\n"
4542 "\t\tint before);\n"
4543 "\n"
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4548 msgid ""
4549 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4550 "or after C<path> (depending on the boolean flag C<before>)."
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4555 msgid ""
4556 "C<path> must match exactly one existing node in the tree, and C<label> must "
4557 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4558 msgstr ""
4559
4560 # type: =head2
4561 #: ../src/guestfs-actions.pod:323
4562 msgid "guestfs_aug_load"
4563 msgstr ""
4564
4565 # type: verbatim
4566 #: ../src/guestfs-actions.pod:325
4567 #, no-wrap
4568 msgid ""
4569 " int guestfs_aug_load (guestfs_h *g);\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4575 msgid "Load files into the tree."
4576 msgstr ""
4577
4578 # type: textblock
4579 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4580 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4581 msgstr ""
4582
4583 # type: =head2
4584 #: ../src/guestfs-actions.pod:334
4585 msgid "guestfs_aug_ls"
4586 msgstr ""
4587
4588 # type: verbatim
4589 #: ../src/guestfs-actions.pod:336
4590 #, no-wrap
4591 msgid ""
4592 " char **guestfs_aug_ls (guestfs_h *g,\n"
4593 "\t\tconst char *augpath);\n"
4594 "\n"
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:339
4599 msgid ""
4600 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4601 "sorting the resulting nodes into alphabetical order."
4602 msgstr ""
4603
4604 # type: textblock
4605 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355
4606 #: ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868
4607 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163
4608 #: ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267
4609 #: ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832
4610 #: ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861
4611 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919
4612 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
4613 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2375
4614 #: ../src/guestfs-actions.pod:2580 ../src/guestfs-actions.pod:2636
4615 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:3066
4616 #: ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:4037
4617 #: ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4252
4618 #: ../src/guestfs-actions.pod:4801 ../src/guestfs-actions.pod:4850
4619 #: ../src/guestfs-actions.pod:4902 ../src/guestfs-actions.pod:5018
4620 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5439
4621 #: ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:5494
4622 #: ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5646
4623 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5735
4624 #: ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5791
4625 msgid ""
4626 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4627 ">), or NULL if there was an error.  I<The caller must free the strings and "
4628 "the array after use>."
4629 msgstr ""
4630
4631 # type: =head2
4632 #: ../src/guestfs-actions.pod:346
4633 msgid "guestfs_aug_match"
4634 msgstr ""
4635
4636 # type: verbatim
4637 #: ../src/guestfs-actions.pod:348
4638 #, no-wrap
4639 msgid ""
4640 " char **guestfs_aug_match (guestfs_h *g,\n"
4641 "\t\tconst char *augpath);\n"
4642 "\n"
4643 msgstr ""
4644
4645 # type: textblock
4646 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4647 msgid ""
4648 "Returns a list of paths which match the path expression C<path>.  The "
4649 "returned paths are sufficiently qualified so that they match exactly one "
4650 "node in the current tree."
4651 msgstr ""
4652
4653 # type: =head2
4654 #: ../src/guestfs-actions.pod:359
4655 msgid "guestfs_aug_mv"
4656 msgstr ""
4657
4658 # type: verbatim
4659 #: ../src/guestfs-actions.pod:361
4660 #, no-wrap
4661 msgid ""
4662 " int guestfs_aug_mv (guestfs_h *g,\n"
4663 "\t\tconst char *src,\n"
4664 "\t\tconst char *dest);\n"
4665 "\n"
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4670 msgid ""
4671 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4672 "C<dest> is overwritten if it exists."
4673 msgstr ""
4674
4675 # type: =head2
4676 #: ../src/guestfs-actions.pod:370
4677 msgid "guestfs_aug_rm"
4678 msgstr ""
4679
4680 # type: verbatim
4681 #: ../src/guestfs-actions.pod:372
4682 #, no-wrap
4683 msgid ""
4684 " int guestfs_aug_rm (guestfs_h *g,\n"
4685 "\t\tconst char *augpath);\n"
4686 "\n"
4687 msgstr ""
4688
4689 # type: textblock
4690 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4691 msgid "Remove C<path> and all of its children."
4692 msgstr ""
4693
4694 # type: textblock
4695 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4696 msgid "On success this returns the number of entries which were removed."
4697 msgstr ""
4698
4699 # type: =head2
4700 #: ../src/guestfs-actions.pod:381
4701 msgid "guestfs_aug_save"
4702 msgstr ""
4703
4704 # type: verbatim
4705 #: ../src/guestfs-actions.pod:383
4706 #, no-wrap
4707 msgid ""
4708 " int guestfs_aug_save (guestfs_h *g);\n"
4709 "\n"
4710 msgstr ""
4711
4712 # type: textblock
4713 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4714 msgid "This writes all pending changes to disk."
4715 msgstr ""
4716
4717 # type: textblock
4718 #: ../src/guestfs-actions.pod:387
4719 msgid ""
4720 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4721 "are saved."
4722 msgstr ""
4723
4724 # type: =head2
4725 #: ../src/guestfs-actions.pod:392
4726 msgid "guestfs_aug_set"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #: ../src/guestfs-actions.pod:394
4731 #, no-wrap
4732 msgid ""
4733 " int guestfs_aug_set (guestfs_h *g,\n"
4734 "\t\tconst char *augpath,\n"
4735 "\t\tconst char *val);\n"
4736 "\n"
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4741 msgid "Set the value associated with C<path> to C<val>."
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:400
4746 msgid ""
4747 "In the Augeas API, it is possible to clear a node by setting the value to "
4748 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4749 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4750 msgstr ""
4751
4752 # type: =head2
4753 #: ../src/guestfs-actions.pod:407
4754 msgid "guestfs_available"
4755 msgstr ""
4756
4757 # type: verbatim
4758 #: ../src/guestfs-actions.pod:409
4759 #, no-wrap
4760 msgid ""
4761 " int guestfs_available (guestfs_h *g,\n"
4762 "\t\tchar *const *groups);\n"
4763 "\n"
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4768 msgid ""
4769 "This command is used to check the availability of some groups of "
4770 "functionality in the appliance, which not all builds of the libguestfs "
4771 "appliance will be able to provide."
4772 msgstr ""
4773
4774 # type: textblock
4775 #: ../src/guestfs-actions.pod:416
4776 msgid ""
4777 "The libguestfs groups, and the functions that those groups correspond to, "
4778 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4779 "runtime by calling C<guestfs_available_all_groups>."
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4784 msgid ""
4785 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4786 "\"]> would check for the availability of the Linux inotify functions and "
4787 "Augeas (configuration file editing) functions."
4788 msgstr ""
4789
4790 # type: textblock
4791 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4792 msgid "The command returns no error if I<all> requested groups are available."
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4797 msgid ""
4798 "It fails with an error if one or more of the requested groups is unavailable "
4799 "in the appliance."
4800 msgstr ""
4801
4802 # type: textblock
4803 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4804 msgid ""
4805 "If an unknown group name is included in the list of groups then an error is "
4806 "always returned."
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4811 msgid "I<Notes:>"
4812 msgstr ""
4813
4814 # type: textblock
4815 #: ../src/guestfs-actions.pod:440
4816 msgid "You must call C<guestfs_launch> before calling this function."
4817 msgstr ""
4818
4819 # type: textblock
4820 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4821 msgid ""
4822 "The reason is because we don't know what groups are supported by the "
4823 "appliance/daemon until it is running and can be queried."
4824 msgstr ""
4825
4826 # type: textblock
4827 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4828 msgid ""
4829 "If a group of functions is available, this does not necessarily mean that "
4830 "they will work.  You still have to check for errors when calling individual "
4831 "API functions even if they are available."
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4836 msgid ""
4837 "It is usually the job of distro packagers to build complete functionality "
4838 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4839 "with all requirements satisfied, will support everything."
4840 msgstr ""
4841
4842 # type: textblock
4843 #: ../src/guestfs-actions.pod:462
4844 msgid ""
4845 "This call was added in version C<1.0.80>.  In previous versions of "
4846 "libguestfs all you could do would be to speculatively execute a command to "
4847 "find out if the daemon implemented it.  See also C<guestfs_version>."
4848 msgstr ""
4849
4850 # type: =head2
4851 #: ../src/guestfs-actions.pod:471
4852 msgid "guestfs_available_all_groups"
4853 msgstr ""
4854
4855 # type: verbatim
4856 #: ../src/guestfs-actions.pod:473
4857 #, no-wrap
4858 msgid ""
4859 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4860 "\n"
4861 msgstr ""
4862
4863 # type: textblock
4864 #: ../src/guestfs-actions.pod:475
4865 msgid ""
4866 "This command returns a list of all optional groups that this daemon knows "
4867 "about.  Note this returns both supported and unsupported groups.  To find "
4868 "out which ones the daemon can actually support you have to call "
4869 "C<guestfs_available> on each member of the returned list."
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:481
4874 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4875 msgstr ""
4876
4877 # type: =head2
4878 #: ../src/guestfs-actions.pod:487
4879 msgid "guestfs_base64_in"
4880 msgstr ""
4881
4882 # type: verbatim
4883 #: ../src/guestfs-actions.pod:489
4884 #, no-wrap
4885 msgid ""
4886 " int guestfs_base64_in (guestfs_h *g,\n"
4887 "\t\tconst char *base64file,\n"
4888 "\t\tconst char *filename);\n"
4889 "\n"
4890 msgstr ""
4891
4892 # type: textblock
4893 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4894 msgid ""
4895 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4896 msgstr ""
4897
4898 # type: =head2
4899 #: ../src/guestfs-actions.pod:498
4900 msgid "guestfs_base64_out"
4901 msgstr ""
4902
4903 # type: verbatim
4904 #: ../src/guestfs-actions.pod:500
4905 #, no-wrap
4906 msgid ""
4907 " int guestfs_base64_out (guestfs_h *g,\n"
4908 "\t\tconst char *filename,\n"
4909 "\t\tconst char *base64file);\n"
4910 "\n"
4911 msgstr ""
4912
4913 # type: textblock
4914 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4915 msgid ""
4916 "This command downloads the contents of C<filename>, writing it out to local "
4917 "file C<base64file> encoded as base64."
4918 msgstr ""
4919
4920 # type: =head2
4921 #: ../src/guestfs-actions.pod:509
4922 msgid "guestfs_blockdev_flushbufs"
4923 msgstr ""
4924
4925 # type: verbatim
4926 #: ../src/guestfs-actions.pod:511
4927 #, no-wrap
4928 msgid ""
4929 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4930 "\t\tconst char *device);\n"
4931 "\n"
4932 msgstr ""
4933
4934 # type: textblock
4935 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4936 msgid ""
4937 "This tells the kernel to flush internal buffers associated with C<device>."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531
4942 #: ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556
4943 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587
4944 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613
4945 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635
4946 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
4947 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
4948 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
4949 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
4950 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4951 msgid "This uses the L<blockdev(8)> command."
4952 msgstr ""
4953
4954 # type: =head2
4955 #: ../src/guestfs-actions.pod:521
4956 msgid "guestfs_blockdev_getbsz"
4957 msgstr ""
4958
4959 # type: verbatim
4960 #: ../src/guestfs-actions.pod:523
4961 #, no-wrap
4962 msgid ""
4963 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4964 "\t\tconst char *device);\n"
4965 "\n"
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4970 msgid "This returns the block size of a device."
4971 msgstr ""
4972
4973 # type: textblock
4974 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610
4975 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4976 msgid ""
4977 "(Note this is different from both I<size in blocks> and I<filesystem block "
4978 "size>)."
4979 msgstr ""
4980
4981 # type: =head2
4982 #: ../src/guestfs-actions.pod:535
4983 msgid "guestfs_blockdev_getro"
4984 msgstr ""
4985
4986 # type: verbatim
4987 #: ../src/guestfs-actions.pod:537
4988 #, no-wrap
4989 msgid ""
4990 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4991 "\t\tconst char *device);\n"
4992 "\n"
4993 msgstr ""
4994
4995 # type: textblock
4996 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4997 msgid ""
4998 "Returns a boolean indicating if the block device is read-only (true if read-"
4999 "only, false if not)."
5000 msgstr ""
5001
5002 # type: textblock
5003 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181
5004 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625
5005 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693
5006 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748
5007 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784
5008 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2400
5009 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2423
5010 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2448
5011 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:2472
5012 #: ../src/guestfs-actions.pod:2482 ../src/guestfs-actions.pod:2493
5013 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2517
5014 #: ../src/guestfs-actions.pod:3713
5015 msgid "This function returns a C truth value on success or -1 on error."
5016 msgstr ""
5017
5018 # type: =head2
5019 #: ../src/guestfs-actions.pod:547
5020 msgid "guestfs_blockdev_getsize64"
5021 msgstr ""
5022
5023 # type: verbatim
5024 #: ../src/guestfs-actions.pod:549
5025 #, no-wrap
5026 msgid ""
5027 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5028 "\t\tconst char *device);\n"
5029 "\n"
5030 msgstr ""
5031
5032 # type: textblock
5033 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
5034 msgid "This returns the size of the device in bytes."
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:554
5039 msgid "See also C<guestfs_blockdev_getsz>."
5040 msgstr ""
5041
5042 # type: =head2
5043 #: ../src/guestfs-actions.pod:560
5044 msgid "guestfs_blockdev_getss"
5045 msgstr ""
5046
5047 # type: verbatim
5048 #: ../src/guestfs-actions.pod:562
5049 #, no-wrap
5050 msgid ""
5051 " int guestfs_blockdev_getss (guestfs_h *g,\n"
5052 "\t\tconst char *device);\n"
5053 "\n"
5054 msgstr ""
5055
5056 # type: textblock
5057 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
5058 msgid ""
5059 "This returns the size of sectors on a block device.  Usually 512, but can be "
5060 "larger for modern devices."
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:568
5065 msgid ""
5066 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5067 "that)."
5068 msgstr ""
5069
5070 # type: =head2
5071 #: ../src/guestfs-actions.pod:575
5072 msgid "guestfs_blockdev_getsz"
5073 msgstr ""
5074
5075 # type: verbatim
5076 #: ../src/guestfs-actions.pod:577
5077 #, no-wrap
5078 msgid ""
5079 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
5080 "\t\tconst char *device);\n"
5081 "\n"
5082 msgstr ""
5083
5084 # type: textblock
5085 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
5086 msgid ""
5087 "This returns the size of the device in units of 512-byte sectors (even if "
5088 "the sectorsize isn't 512 bytes ... weird)."
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:583
5093 msgid ""
5094 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5095 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5096 msgstr ""
5097
5098 # type: =head2
5099 #: ../src/guestfs-actions.pod:591
5100 msgid "guestfs_blockdev_rereadpt"
5101 msgstr ""
5102
5103 # type: verbatim
5104 #: ../src/guestfs-actions.pod:593
5105 #, no-wrap
5106 msgid ""
5107 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5108 "\t\tconst char *device);\n"
5109 "\n"
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
5114 msgid "Reread the partition table on C<device>."
5115 msgstr ""
5116
5117 # type: =head2
5118 #: ../src/guestfs-actions.pod:602
5119 msgid "guestfs_blockdev_setbsz"
5120 msgstr ""
5121
5122 # type: verbatim
5123 #: ../src/guestfs-actions.pod:604
5124 #, no-wrap
5125 msgid ""
5126 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
5127 "\t\tconst char *device,\n"
5128 "\t\tint blocksize);\n"
5129 "\n"
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
5134 msgid "This sets the block size of a device."
5135 msgstr ""
5136
5137 # type: =head2
5138 #: ../src/guestfs-actions.pod:617
5139 msgid "guestfs_blockdev_setro"
5140 msgstr ""
5141
5142 # type: verbatim
5143 #: ../src/guestfs-actions.pod:619
5144 #, no-wrap
5145 msgid ""
5146 " int guestfs_blockdev_setro (guestfs_h *g,\n"
5147 "\t\tconst char *device);\n"
5148 "\n"
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
5153 msgid "Sets the block device named C<device> to read-only."
5154 msgstr ""
5155
5156 # type: =head2
5157 #: ../src/guestfs-actions.pod:628
5158 msgid "guestfs_blockdev_setrw"
5159 msgstr ""
5160
5161 # type: verbatim
5162 #: ../src/guestfs-actions.pod:630
5163 #, no-wrap
5164 msgid ""
5165 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
5166 "\t\tconst char *device);\n"
5167 "\n"
5168 msgstr ""
5169
5170 # type: textblock
5171 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
5172 msgid "Sets the block device named C<device> to read-write."
5173 msgstr ""
5174
5175 # type: =head2
5176 #: ../src/guestfs-actions.pod:639
5177 msgid "guestfs_case_sensitive_path"
5178 msgstr ""
5179
5180 # type: verbatim
5181 #: ../src/guestfs-actions.pod:641
5182 #, no-wrap
5183 msgid ""
5184 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
5185 "\t\tconst char *path);\n"
5186 "\n"
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
5191 msgid ""
5192 "This can be used to resolve case insensitive paths on a filesystem which is "
5193 "case sensitive.  The use case is to resolve paths which you have read from "
5194 "Windows configuration files or the Windows Registry, to the true path."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
5199 msgid ""
5200 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5201 "(and probably others), which is that although the underlying filesystem is "
5202 "case-insensitive, the driver exports the filesystem to Linux as case-"
5203 "sensitive."
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
5208 msgid ""
5209 "One consequence of this is that special directories such as C<c:\\windows> "
5210 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5211 "precise details of how they were created.  In Windows itself this would not "
5212 "be a problem."
5213 msgstr ""
5214
5215 # type: textblock
5216 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
5217 msgid ""
5218 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5219 "#posixfilenames1>"
5220 msgstr ""
5221
5222 # type: textblock
5223 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
5224 msgid ""
5225 "This function resolves the true case of each element in the path and returns "
5226 "the case-sensitive path."
5227 msgstr ""
5228
5229 # type: textblock
5230 #: ../src/guestfs-actions.pod:666
5231 msgid ""
5232 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5233 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5234 "how the directories were originally created under Windows)."
5235 msgstr ""
5236
5237 # type: textblock
5238 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
5239 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5240 msgstr ""
5241
5242 # type: textblock
5243 #: ../src/guestfs-actions.pod:674
5244 msgid "See also C<guestfs_realpath>."
5245 msgstr ""
5246
5247 # type: =head2
5248 #: ../src/guestfs-actions.pod:679
5249 msgid "guestfs_cat"
5250 msgstr ""
5251
5252 # type: verbatim
5253 #: ../src/guestfs-actions.pod:681
5254 #, no-wrap
5255 msgid ""
5256 " char *guestfs_cat (guestfs_h *g,\n"
5257 "\t\tconst char *path);\n"
5258 "\n"
5259 msgstr ""
5260
5261 # type: textblock
5262 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4136
5263 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3177
5264 msgid "Return the contents of the file named C<path>."
5265 msgstr ""
5266
5267 # type: textblock
5268 #: ../src/guestfs-actions.pod:686
5269 msgid ""
5270 "Note that this function cannot correctly handle binary files (specifically, "
5271 "files containing C<\\0> character which is treated as end of string).  For "
5272 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5273 "functions which have a more complex interface."
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855
5278 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151
5279 #: ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255
5280 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502
5281 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865
5282 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923
5283 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963
5284 #: ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:3976
5285 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4107
5286 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4854
5287 #: ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:5022
5288 #: ../src/guestfs-actions.pod:5043 ../src/guestfs-actions.pod:5588
5289 #: ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:5634
5290 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5723
5291 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5779
5292 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:546
5293 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5294 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5295 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5296 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5297 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5298 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5299 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3047
5300 #: ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3138
5301 #: ../fish/guestfish-actions.pod:3155 ../fish/guestfish-actions.pod:3170
5302 #: ../fish/guestfish-actions.pod:3753 ../fish/guestfish-actions.pod:3799
5303 #: ../fish/guestfish-actions.pod:3884 ../fish/guestfish-actions.pod:3899
5304 #: ../fish/guestfish-actions.pod:4309 ../fish/guestfish-actions.pod:4327
5305 #: ../fish/guestfish-actions.pod:4344 ../fish/guestfish-actions.pod:4354
5306 #: ../fish/guestfish-actions.pod:4402 ../fish/guestfish-actions.pod:4412
5307 #: ../fish/guestfish-actions.pod:4441 ../fish/guestfish-actions.pod:4451
5308 msgid ""
5309 "Because of the message protocol, there is a transfer limit of somewhere "
5310 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5311 msgstr ""
5312
5313 # type: =head2
5314 #: ../src/guestfs-actions.pod:697
5315 msgid "guestfs_checksum"
5316 msgstr ""
5317
5318 # type: verbatim
5319 #: ../src/guestfs-actions.pod:699
5320 #, no-wrap
5321 msgid ""
5322 " char *guestfs_checksum (guestfs_h *g,\n"
5323 "\t\tconst char *csumtype,\n"
5324 "\t\tconst char *path);\n"
5325 "\n"
5326 msgstr ""
5327
5328 # type: textblock
5329 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5330 msgid ""
5331 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5332 msgstr ""
5333
5334 # type: textblock
5335 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5336 msgid ""
5337 "The type of checksum to compute is given by the C<csumtype> parameter which "
5338 "must have one of the following values:"
5339 msgstr ""
5340
5341 # type: =item
5342 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5343 msgid "C<crc>"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5348 msgid ""
5349 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5350 "C<cksum> command."
5351 msgstr ""
5352
5353 # type: =item
5354 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5355 msgid "C<md5>"
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5360 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5361 msgstr ""
5362
5363 # type: =item
5364 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5365 msgid "C<sha1>"
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5370 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5371 msgstr ""
5372
5373 # type: =item
5374 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5375 msgid "C<sha224>"
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5380 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5381 msgstr ""
5382
5383 # type: =item
5384 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5385 msgid "C<sha256>"
5386 msgstr ""
5387
5388 # type: textblock
5389 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5390 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5391 msgstr ""
5392
5393 # type: =item
5394 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5395 msgid "C<sha384>"
5396 msgstr ""
5397
5398 # type: textblock
5399 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5400 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5401 msgstr ""
5402
5403 # type: =item
5404 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5405 msgid "C<sha512>"
5406 msgstr ""
5407
5408 # type: textblock
5409 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5410 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5411 msgstr ""
5412
5413 # type: textblock
5414 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5415 msgid "The checksum is returned as a printable string."
5416 msgstr ""
5417
5418 # type: textblock
5419 #: ../src/guestfs-actions.pod:744
5420 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5421 msgstr ""
5422
5423 # type: textblock
5424 #: ../src/guestfs-actions.pod:746
5425 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5426 msgstr ""
5427
5428 # type: =head2
5429 #: ../src/guestfs-actions.pod:751
5430 msgid "guestfs_checksum_device"
5431 msgstr ""
5432
5433 # type: verbatim
5434 #: ../src/guestfs-actions.pod:753
5435 #, no-wrap
5436 msgid ""
5437 " char *guestfs_checksum_device (guestfs_h *g,\n"
5438 "\t\tconst char *csumtype,\n"
5439 "\t\tconst char *device);\n"
5440 "\n"
5441 msgstr ""
5442
5443 # type: textblock
5444 #: ../src/guestfs-actions.pod:757
5445 msgid ""
5446 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5447 "device named C<device>.  For the types of checksums supported see the "
5448 "C<guestfs_checksum> command."
5449 msgstr ""
5450
5451 # type: =head2
5452 #: ../src/guestfs-actions.pod:764
5453 msgid "guestfs_checksums_out"
5454 msgstr ""
5455
5456 # type: verbatim
5457 #: ../src/guestfs-actions.pod:766
5458 #, no-wrap
5459 msgid ""
5460 " int guestfs_checksums_out (guestfs_h *g,\n"
5461 "\t\tconst char *csumtype,\n"
5462 "\t\tconst char *directory,\n"
5463 "\t\tconst char *sumsfile);\n"
5464 "\n"
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5469 msgid ""
5470 "This command computes the checksums of all regular files in C<directory> and "
5471 "then emits a list of those checksums to the local output file C<sumsfile>."
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5476 msgid ""
5477 "This can be used for verifying the integrity of a virtual machine.  However "
5478 "to be properly secure you should pay attention to the output of the checksum "
5479 "command (it uses the ones from GNU coreutils).  In particular when the "
5480 "filename is not printable, coreutils uses a special backslash syntax.  For "
5481 "more information, see the GNU coreutils info file."
5482 msgstr ""
5483
5484 # type: =head2
5485 #: ../src/guestfs-actions.pod:785
5486 msgid "guestfs_chmod"
5487 msgstr ""
5488
5489 # type: verbatim
5490 #: ../src/guestfs-actions.pod:787
5491 #, no-wrap
5492 msgid ""
5493 " int guestfs_chmod (guestfs_h *g,\n"
5494 "\t\tint mode,\n"
5495 "\t\tconst char *path);\n"
5496 "\n"
5497 msgstr ""
5498
5499 # type: textblock
5500 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5501 msgid ""
5502 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5503 "supported."
5504 msgstr ""
5505
5506 # type: textblock
5507 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5508 msgid ""
5509 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5510 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5511 "C<700>."
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3281
5516 #: ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:3400
5517 #: ../src/guestfs-actions.pod:3416 ../fish/guestfish-actions.pod:635
5518 #: ../fish/guestfish-actions.pod:2537 ../fish/guestfish-actions.pod:2622
5519 #: ../fish/guestfish-actions.pod:2632 ../fish/guestfish-actions.pod:2642
5520 msgid "The mode actually set is affected by the umask."
5521 msgstr ""
5522
5523 # type: =head2
5524 #: ../src/guestfs-actions.pod:802
5525 msgid "guestfs_chown"
5526 msgstr ""
5527
5528 # type: verbatim
5529 #: ../src/guestfs-actions.pod:804
5530 #, no-wrap
5531 msgid ""
5532 " int guestfs_chown (guestfs_h *g,\n"
5533 "\t\tint owner,\n"
5534 "\t\tint group,\n"
5535 "\t\tconst char *path);\n"
5536 "\n"
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5541 msgid "Change the file owner to C<owner> and group to C<group>."
5542 msgstr ""
5543
5544 # type: textblock
5545 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2550
5546 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2015
5547 msgid ""
5548 "Only numeric uid and gid are supported.  If you want to use names, you will "
5549 "need to locate and parse the password file yourself (Augeas support makes "
5550 "this relatively easy)."
5551 msgstr ""
5552
5553 # type: =head2
5554 #: ../src/guestfs-actions.pod:817
5555 msgid "guestfs_command"
5556 msgstr ""
5557
5558 # type: verbatim
5559 #: ../src/guestfs-actions.pod:819
5560 #, no-wrap
5561 msgid ""
5562 " char *guestfs_command (guestfs_h *g,\n"
5563 "\t\tchar *const *arguments);\n"
5564 "\n"
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5569 msgid ""
5570 "This call runs a command from the guest filesystem.  The filesystem must be "
5571 "mounted, and must contain a compatible operating system (ie. something "
5572 "Linux, with the same or compatible processor architecture)."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:827
5577 msgid ""
5578 "The single parameter is an argv-style list of arguments.  The first element "
5579 "is the name of the program to run.  Subsequent elements are parameters.  The "
5580 "list must be non-empty (ie. must contain a program name).  Note that the "
5581 "command runs directly, and is I<not> invoked via the shell (see "
5582 "C<guestfs_sh>)."
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5587 msgid "The return value is anything printed to I<stdout> by the command."
5588 msgstr ""
5589
5590 # type: textblock
5591 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5592 msgid ""
5593 "If the command returns a non-zero exit status, then this function returns an "
5594 "error message.  The error message string is the content of I<stderr> from "
5595 "the command."
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5600 msgid ""
5601 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5602 "bin>.  If you require a program from another location, you should provide "
5603 "the full path in the first parameter."
5604 msgstr ""
5605
5606 # type: textblock
5607 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5608 msgid ""
5609 "Shared libraries and data files required by the program must be available on "
5610 "filesystems which are mounted in the correct places.  It is the caller's "
5611 "responsibility to ensure all filesystems that are needed are mounted at the "
5612 "right locations."
5613 msgstr ""
5614
5615 # type: =head2
5616 #: ../src/guestfs-actions.pod:858
5617 msgid "guestfs_command_lines"
5618 msgstr ""
5619
5620 # type: verbatim
5621 #: ../src/guestfs-actions.pod:860
5622 #, no-wrap
5623 msgid ""
5624 " char **guestfs_command_lines (guestfs_h *g,\n"
5625 "\t\tchar *const *arguments);\n"
5626 "\n"
5627 msgstr ""
5628
5629 # type: textblock
5630 #: ../src/guestfs-actions.pod:863
5631 msgid ""
5632 "This is the same as C<guestfs_command>, but splits the result into a list of "
5633 "lines."
5634 msgstr ""
5635
5636 # type: textblock
5637 #: ../src/guestfs-actions.pod:866
5638 msgid "See also: C<guestfs_sh_lines>"
5639 msgstr ""
5640
5641 # type: =head2
5642 #: ../src/guestfs-actions.pod:875
5643 msgid "guestfs_config"
5644 msgstr ""
5645
5646 # type: verbatim
5647 #: ../src/guestfs-actions.pod:877
5648 #, no-wrap
5649 msgid ""
5650 " int guestfs_config (guestfs_h *g,\n"
5651 "\t\tconst char *qemuparam,\n"
5652 "\t\tconst char *qemuvalue);\n"
5653 "\n"
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5658 msgid ""
5659 "This can be used to add arbitrary qemu command line parameters of the form "
5660 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5661 "setting some parameters which would interfere with parameters that we use."
5662 msgstr ""
5663
5664 # type: textblock
5665 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5666 msgid "The first character of C<param> string must be a C<-> (dash)."
5667 msgstr ""
5668
5669 # type: textblock
5670 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5671 msgid "C<value> can be NULL."
5672 msgstr ""
5673
5674 # type: =head2
5675 #: ../src/guestfs-actions.pod:892
5676 msgid "guestfs_copy_size"
5677 msgstr ""
5678
5679 # type: verbatim
5680 #: ../src/guestfs-actions.pod:894
5681 #, no-wrap
5682 msgid ""
5683 " int guestfs_copy_size (guestfs_h *g,\n"
5684 "\t\tconst char *src,\n"
5685 "\t\tconst char *dest,\n"
5686 "\t\tint64_t size);\n"
5687 "\n"
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5692 msgid ""
5693 "This command copies exactly C<size> bytes from one source device or file "
5694 "C<src> to another destination device or file C<dest>."
5695 msgstr ""
5696
5697 # type: textblock
5698 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5699 msgid ""
5700 "Note this will fail if the source is too short or if the destination is not "
5701 "large enough."
5702 msgstr ""
5703
5704 # type: textblock
5705 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042
5706 #: ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442
5707 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5668
5708 #: ../src/guestfs-actions.pod:5684
5709 msgid ""
5710 "This long-running command can generate progress notification messages so "
5711 "that the caller can display a progress bar or indicator.  To receive these "
5712 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5713 "guestfs_set_progress_callback>."
5714 msgstr ""
5715
5716 # type: =head2
5717 #: ../src/guestfs-actions.pod:912
5718 msgid "guestfs_cp"
5719 msgstr ""
5720
5721 # type: verbatim
5722 #: ../src/guestfs-actions.pod:914
5723 #, no-wrap
5724 msgid ""
5725 " int guestfs_cp (guestfs_h *g,\n"
5726 "\t\tconst char *src,\n"
5727 "\t\tconst char *dest);\n"
5728 "\n"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5733 msgid ""
5734 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5735 "destination filename or destination directory."
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:923
5740 msgid "guestfs_cp_a"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:925
5745 #, no-wrap
5746 msgid ""
5747 " int guestfs_cp_a (guestfs_h *g,\n"
5748 "\t\tconst char *src,\n"
5749 "\t\tconst char *dest);\n"
5750 "\n"
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5755 msgid ""
5756 "This copies a file or directory from C<src> to C<dest> recursively using the "
5757 "C<cp -a> command."
5758 msgstr ""
5759
5760 # type: =head2
5761 #: ../src/guestfs-actions.pod:934
5762 msgid "guestfs_dd"
5763 msgstr ""
5764
5765 # type: verbatim
5766 #: ../src/guestfs-actions.pod:936
5767 #, no-wrap
5768 msgid ""
5769 " int guestfs_dd (guestfs_h *g,\n"
5770 "\t\tconst char *src,\n"
5771 "\t\tconst char *dest);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5777 msgid ""
5778 "This command copies from one source device or file C<src> to another "
5779 "destination device or file C<dest>.  Normally you would use this to copy to "
5780 "or from a device or partition, for example to duplicate a filesystem."
5781 msgstr ""
5782
5783 # type: textblock
5784 #: ../src/guestfs-actions.pod:945
5785 msgid ""
5786 "If the destination is a device, it must be as large or larger than the "
5787 "source file or device, otherwise the copy will fail.  This command cannot do "
5788 "partial copies (see C<guestfs_copy_size>)."
5789 msgstr ""
5790
5791 # type: =head2
5792 #: ../src/guestfs-actions.pod:951
5793 msgid "guestfs_debug"
5794 msgstr ""
5795
5796 # type: verbatim
5797 #: ../src/guestfs-actions.pod:953
5798 #, no-wrap
5799 msgid ""
5800 " char *guestfs_debug (guestfs_h *g,\n"
5801 "\t\tconst char *subcmd,\n"
5802 "\t\tchar *const *extraargs);\n"
5803 "\n"
5804 msgstr ""
5805
5806 # type: textblock
5807 #: ../src/guestfs-actions.pod:957
5808 msgid ""
5809 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5810 "guestfs daemon) that runs inside the qemu subprocess."
5811 msgstr ""
5812
5813 # type: textblock
5814 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5815 msgid ""
5816 "There is no comprehensive help for this command.  You have to look at the "
5817 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5818 msgstr ""
5819
5820 # type: =head2
5821 #: ../src/guestfs-actions.pod:968
5822 msgid "guestfs_debug_upload"
5823 msgstr ""
5824
5825 # type: verbatim
5826 #: ../src/guestfs-actions.pod:970
5827 #, no-wrap
5828 msgid ""
5829 " int guestfs_debug_upload (guestfs_h *g,\n"
5830 "\t\tconst char *filename,\n"
5831 "\t\tconst char *tmpname,\n"
5832 "\t\tint mode);\n"
5833 "\n"
5834 msgstr ""
5835
5836 # type: textblock
5837 #: ../src/guestfs-actions.pod:975
5838 msgid ""
5839 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5840 "appliance."
5841 msgstr ""
5842
5843 # type: textblock
5844 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5845 msgid ""
5846 "There is no comprehensive help for this command.  You have to look at the "
5847 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5848 msgstr ""
5849
5850 # type: =head2
5851 #: ../src/guestfs-actions.pod:984
5852 msgid "guestfs_df"
5853 msgstr ""
5854
5855 # type: verbatim
5856 #: ../src/guestfs-actions.pod:986
5857 #, no-wrap
5858 msgid ""
5859 " char *guestfs_df (guestfs_h *g);\n"
5860 "\n"
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5865 msgid "This command runs the C<df> command to report disk space used."
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004
5870 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5871 msgid ""
5872 "This command is mostly useful for interactive sessions.  It is I<not> "
5873 "intended that you try to parse the output string.  Use C<statvfs> from "
5874 "programs."
5875 msgstr ""
5876
5877 # type: =head2
5878 #: ../src/guestfs-actions.pod:997
5879 msgid "guestfs_df_h"
5880 msgstr ""
5881
5882 # type: verbatim
5883 #: ../src/guestfs-actions.pod:999
5884 #, no-wrap
5885 msgid ""
5886 " char *guestfs_df_h (guestfs_h *g);\n"
5887 "\n"
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5892 msgid ""
5893 "This command runs the C<df -h> command to report disk space used in human-"
5894 "readable format."
5895 msgstr ""
5896
5897 # type: =head2
5898 #: ../src/guestfs-actions.pod:1011
5899 msgid "guestfs_dmesg"
5900 msgstr ""
5901
5902 # type: verbatim
5903 #: ../src/guestfs-actions.pod:1013
5904 #, no-wrap
5905 msgid ""
5906 " char *guestfs_dmesg (guestfs_h *g);\n"
5907 "\n"
5908 msgstr ""
5909
5910 # type: textblock
5911 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5912 msgid ""
5913 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5914 "This is sometimes useful for extended debugging of problems."
5915 msgstr ""
5916
5917 # type: textblock
5918 #: ../src/guestfs-actions.pod:1019
5919 msgid ""
5920 "Another way to get the same information is to enable verbose messages with "
5921 "C<guestfs_set_verbose> or by setting the environment variable "
5922 "C<LIBGUESTFS_DEBUG=1> before running the program."
5923 msgstr ""
5924
5925 # type: =head2
5926 #: ../src/guestfs-actions.pod:1027
5927 msgid "guestfs_download"
5928 msgstr ""
5929
5930 # type: verbatim
5931 #: ../src/guestfs-actions.pod:1029
5932 #, no-wrap
5933 msgid ""
5934 " int guestfs_download (guestfs_h *g,\n"
5935 "\t\tconst char *remotefilename,\n"
5936 "\t\tconst char *filename);\n"
5937 "\n"
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055
5942 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5943 msgid ""
5944 "Download file C<remotefilename> and save it as C<filename> on the local "
5945 "machine."
5946 msgstr ""
5947
5948 # type: textblock
5949 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5236
5950 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4057
5951 msgid "C<filename> can also be a named pipe."
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:1038
5956 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5957 msgstr ""
5958
5959 # type: =head2
5960 #: ../src/guestfs-actions.pod:1047
5961 msgid "guestfs_download_offset"
5962 msgstr ""
5963
5964 # type: verbatim
5965 #: ../src/guestfs-actions.pod:1049
5966 #, no-wrap
5967 msgid ""
5968 " int guestfs_download_offset (guestfs_h *g,\n"
5969 "\t\tconst char *remotefilename,\n"
5970 "\t\tconst char *filename,\n"
5971 "\t\tint64_t offset,\n"
5972 "\t\tint64_t size);\n"
5973 "\n"
5974 msgstr ""
5975
5976 # type: textblock
5977 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5978 msgid ""
5979 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5980 "region must be within the file or device)."
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1061
5985 msgid ""
5986 "Note that there is no limit on the amount of data that can be downloaded "
5987 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5988 "full amount unless an error occurs."
5989 msgstr ""
5990
5991 # type: textblock
5992 #: ../src/guestfs-actions.pod:1066
5993 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5994 msgstr ""
5995
5996 # type: =head2
5997 #: ../src/guestfs-actions.pod:1075
5998 msgid "guestfs_drop_caches"
5999 msgstr ""
6000
6001 # type: verbatim
6002 #: ../src/guestfs-actions.pod:1077
6003 #, no-wrap
6004 msgid ""
6005 " int guestfs_drop_caches (guestfs_h *g,\n"
6006 "\t\tint whattodrop);\n"
6007 "\n"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
6012 msgid ""
6013 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6014 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6015 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6016 msgstr ""
6017
6018 # type: textblock
6019 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
6020 msgid "Setting C<whattodrop> to 3 should drop everything."
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
6025 msgid ""
6026 "This automatically calls L<sync(2)> before the operation, so that the "
6027 "maximum guest memory is freed."
6028 msgstr ""
6029
6030 # type: =head2
6031 #: ../src/guestfs-actions.pod:1092
6032 msgid "guestfs_du"
6033 msgstr ""
6034
6035 # type: verbatim
6036 #: ../src/guestfs-actions.pod:1094
6037 #, no-wrap
6038 msgid ""
6039 " int64_t guestfs_du (guestfs_h *g,\n"
6040 "\t\tconst char *path);\n"
6041 "\n"
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
6046 msgid ""
6047 "This command runs the C<du -s> command to estimate file space usage for "
6048 "C<path>."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
6053 msgid ""
6054 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6055 "estimate includes the contents of the directory and all subdirectories "
6056 "(recursively)."
6057 msgstr ""
6058
6059 # type: textblock
6060 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
6061 msgid ""
6062 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6063 msgstr ""
6064
6065 # type: =head2
6066 #: ../src/guestfs-actions.pod:1109
6067 msgid "guestfs_e2fsck_f"
6068 msgstr ""
6069
6070 # type: verbatim
6071 #: ../src/guestfs-actions.pod:1111
6072 #, no-wrap
6073 msgid ""
6074 " int guestfs_e2fsck_f (guestfs_h *g,\n"
6075 "\t\tconst char *device);\n"
6076 "\n"
6077 msgstr ""
6078
6079 # type: textblock
6080 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
6081 msgid ""
6082 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6083 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6084 "clean (C<-f>)."
6085 msgstr ""
6086
6087 # type: textblock
6088 #: ../src/guestfs-actions.pod:1118
6089 msgid ""
6090 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6091 "Normally you should use C<guestfs_fsck>."
6092 msgstr ""
6093
6094 # type: =head2
6095 #: ../src/guestfs-actions.pod:1123
6096 msgid "guestfs_echo_daemon"
6097 msgstr ""
6098
6099 # type: verbatim
6100 #: ../src/guestfs-actions.pod:1125
6101 #, no-wrap
6102 msgid ""
6103 " char *guestfs_echo_daemon (guestfs_h *g,\n"
6104 "\t\tchar *const *words);\n"
6105 "\n"
6106 msgstr ""
6107
6108 # type: textblock
6109 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
6110 msgid ""
6111 "This command concatenates the list of C<words> passed with single spaces "
6112 "between them and returns the resulting string."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
6117 msgid "You can use this command to test the connection through to the daemon."
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1133
6122 msgid "See also C<guestfs_ping_daemon>."
6123 msgstr ""
6124
6125 # type: =head2
6126 #: ../src/guestfs-actions.pod:1138
6127 msgid "guestfs_egrep"
6128 msgstr ""
6129
6130 # type: verbatim
6131 #: ../src/guestfs-actions.pod:1140
6132 #, no-wrap
6133 msgid ""
6134 " char **guestfs_egrep (guestfs_h *g,\n"
6135 "\t\tconst char *regex,\n"
6136 "\t\tconst char *path);\n"
6137 "\n"
6138 msgstr ""
6139
6140 # type: textblock
6141 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
6142 msgid ""
6143 "This calls the external C<egrep> program and returns the matching lines."
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:1154
6148 msgid "guestfs_egrepi"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:1156
6153 #, no-wrap
6154 msgid ""
6155 " char **guestfs_egrepi (guestfs_h *g,\n"
6156 "\t\tconst char *regex,\n"
6157 "\t\tconst char *path);\n"
6158 "\n"
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
6163 msgid ""
6164 "This calls the external C<egrep -i> program and returns the matching lines."
6165 msgstr ""
6166
6167 # type: =head2
6168 #: ../src/guestfs-actions.pod:1170
6169 msgid "guestfs_equal"
6170 msgstr ""
6171
6172 # type: verbatim
6173 #: ../src/guestfs-actions.pod:1172
6174 #, no-wrap
6175 msgid ""
6176 " int guestfs_equal (guestfs_h *g,\n"
6177 "\t\tconst char *file1,\n"
6178 "\t\tconst char *file2);\n"
6179 "\n"
6180 msgstr ""
6181
6182 # type: textblock
6183 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
6184 msgid ""
6185 "This compares the two files C<file1> and C<file2> and returns true if their "
6186 "content is exactly equal, or false otherwise."
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
6191 msgid "The external L<cmp(1)> program is used for the comparison."
6192 msgstr ""
6193
6194 # type: =head2
6195 #: ../src/guestfs-actions.pod:1183
6196 msgid "guestfs_exists"
6197 msgstr ""
6198
6199 # type: verbatim
6200 #: ../src/guestfs-actions.pod:1185
6201 #, no-wrap
6202 msgid ""
6203 " int guestfs_exists (guestfs_h *g,\n"
6204 "\t\tconst char *path);\n"
6205 "\n"
6206 msgstr ""
6207
6208 # type: textblock
6209 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
6210 msgid ""
6211 "This returns C<true> if and only if there is a file, directory (or anything) "
6212 "with the given C<path> name."
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1191
6217 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6218 msgstr ""
6219
6220 # type: =head2
6221 #: ../src/guestfs-actions.pod:1195
6222 msgid "guestfs_fallocate"
6223 msgstr ""
6224
6225 # type: verbatim
6226 #: ../src/guestfs-actions.pod:1197
6227 #, no-wrap
6228 msgid ""
6229 " int guestfs_fallocate (guestfs_h *g,\n"
6230 "\t\tconst char *path,\n"
6231 "\t\tint len);\n"
6232 "\n"
6233 msgstr ""
6234
6235 # type: textblock
6236 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224
6237 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6238 msgid ""
6239 "This command preallocates a file (containing zero bytes) named C<path> of "
6240 "size C<len> bytes.  If the file exists already, it is overwritten."
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
6245 msgid ""
6246 "Do not confuse this with the guestfish-specific C<alloc> command which "
6247 "allocates a file in the host and attaches it as a device."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
6252 msgid ""
6253 "This function is deprecated.  In new code, use the C<fallocate64> call "
6254 "instead."
6255 msgstr ""
6256
6257 # type: =head2
6258 #: ../src/guestfs-actions.pod:1218
6259 msgid "guestfs_fallocate64"
6260 msgstr ""
6261
6262 # type: verbatim
6263 #: ../src/guestfs-actions.pod:1220
6264 #, no-wrap
6265 msgid ""
6266 " int guestfs_fallocate64 (guestfs_h *g,\n"
6267 "\t\tconst char *path,\n"
6268 "\t\tint64_t len);\n"
6269 "\n"
6270 msgstr ""
6271
6272 # type: textblock
6273 #: ../src/guestfs-actions.pod:1228
6274 msgid ""
6275 "Note that this call allocates disk blocks for the file.  To create a sparse "
6276 "file use C<guestfs_truncate_size> instead."
6277 msgstr ""
6278
6279 # type: textblock
6280 #: ../src/guestfs-actions.pod:1231
6281 msgid ""
6282 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6283 "oversight it only allowed 30 bit lengths to be specified, effectively "
6284 "limiting the maximum size of files created through that call to 1GB."
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
6289 msgid ""
6290 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6291 "commands which create a file in the host and attach it as a device."
6292 msgstr ""
6293
6294 # type: =head2
6295 #: ../src/guestfs-actions.pod:1242
6296 msgid "guestfs_fgrep"
6297 msgstr ""
6298
6299 # type: verbatim
6300 #: ../src/guestfs-actions.pod:1244
6301 #, no-wrap
6302 msgid ""
6303 " char **guestfs_fgrep (guestfs_h *g,\n"
6304 "\t\tconst char *pattern,\n"
6305 "\t\tconst char *path);\n"
6306 "\n"
6307 msgstr ""
6308
6309 # type: textblock
6310 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6311 msgid ""
6312 "This calls the external C<fgrep> program and returns the matching lines."
6313 msgstr ""
6314
6315 # type: =head2
6316 #: ../src/guestfs-actions.pod:1258
6317 msgid "guestfs_fgrepi"
6318 msgstr ""
6319
6320 # type: verbatim
6321 #: ../src/guestfs-actions.pod:1260
6322 #, no-wrap
6323 msgid ""
6324 " char **guestfs_fgrepi (guestfs_h *g,\n"
6325 "\t\tconst char *pattern,\n"
6326 "\t\tconst char *path);\n"
6327 "\n"
6328 msgstr ""
6329
6330 # type: textblock
6331 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6332 msgid ""
6333 "This calls the external C<fgrep -i> program and returns the matching lines."
6334 msgstr ""
6335
6336 # type: =head2
6337 #: ../src/guestfs-actions.pod:1274
6338 msgid "guestfs_file"
6339 msgstr ""
6340
6341 # type: verbatim
6342 #: ../src/guestfs-actions.pod:1276
6343 #, no-wrap
6344 msgid ""
6345 " char *guestfs_file (guestfs_h *g,\n"
6346 "\t\tconst char *path);\n"
6347 "\n"
6348 msgstr ""
6349
6350 # type: textblock
6351 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6352 msgid ""
6353 "This call uses the standard L<file(1)> command to determine the type or "
6354 "contents of the file."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6359 msgid ""
6360 "This call will also transparently look inside various types of compressed "
6361 "file."
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6366 msgid ""
6367 "The exact command which runs is C<file -zb path>.  Note in particular that "
6368 "the filename is not prepended to the output (the C<-b> option)."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1289
6373 msgid ""
6374 "This command can also be used on C</dev/> devices (and partitions, LV "
6375 "names).  You can for example use this to determine if a device contains a "
6376 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6381 msgid ""
6382 "If the C<path> does not begin with C</dev/> then this command only works for "
6383 "the content of regular files.  For other file types (directory, symbolic "
6384 "link etc) it will just return the string C<directory> etc."
6385 msgstr ""
6386
6387 # type: =head2
6388 #: ../src/guestfs-actions.pod:1302
6389 msgid "guestfs_file_architecture"
6390 msgstr ""
6391
6392 # type: verbatim
6393 #: ../src/guestfs-actions.pod:1304
6394 #, no-wrap
6395 msgid ""
6396 " char *guestfs_file_architecture (guestfs_h *g,\n"
6397 "\t\tconst char *filename);\n"
6398 "\n"
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6403 msgid ""
6404 "This detects the architecture of the binary C<filename>, and returns it if "
6405 "known."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6410 msgid "Currently defined architectures are:"
6411 msgstr ""
6412
6413 # type: =item
6414 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6415 msgid "\"i386\""
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6420 msgid ""
6421 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6422 "irrespective of the precise processor requirements of the binary."
6423 msgstr ""
6424
6425 # type: =item
6426 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6427 msgid "\"x86_64\""
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6432 msgid "64 bit x86-64."
6433 msgstr ""
6434
6435 # type: =item
6436 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6437 msgid "\"sparc\""
6438 msgstr ""
6439
6440 # type: textblock
6441 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6442 msgid "32 bit SPARC."
6443 msgstr ""
6444
6445 # type: =item
6446 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6447 msgid "\"sparc64\""
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6452 msgid "64 bit SPARC V9 and above."
6453 msgstr ""
6454
6455 # type: =item
6456 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6457 msgid "\"ia64\""
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6462 msgid "Intel Itanium."
6463 msgstr ""
6464
6465 # type: =item
6466 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6467 msgid "\"ppc\""
6468 msgstr ""
6469
6470 # type: textblock
6471 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6472 msgid "32 bit Power PC."
6473 msgstr ""
6474
6475 # type: =item
6476 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6477 msgid "\"ppc64\""
6478 msgstr ""
6479
6480 # type: textblock
6481 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6482 msgid "64 bit Power PC."
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6487 msgid "Libguestfs may return other architecture strings in future."
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6492 msgid "The function works on at least the following types of files:"
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6497 msgid "many types of Un*x and Linux binary"
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6502 msgid "many types of Un*x and Linux shared library"
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6507 msgid "Windows Win32 and Win64 binaries"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6512 msgid "Windows Win32 and Win64 DLLs"
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6517 msgid "Win32 binaries and DLLs return C<i386>."
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6522 msgid "Win64 binaries and DLLs return C<x86_64>."
6523 msgstr ""
6524
6525 # type: textblock
6526 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6527 msgid "Linux kernel modules"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6532 msgid "Linux new-style initrd images"
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6537 msgid "some non-x86 Linux vmlinuz kernels"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6542 msgid "What it can't do currently:"
6543 msgstr ""
6544
6545 # type: textblock
6546 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6547 msgid "static libraries (libfoo.a)"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6552 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6557 msgid "x86 Linux vmlinuz kernels"
6558 msgstr ""
6559
6560 # type: textblock
6561 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6562 msgid ""
6563 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6564 "compressed code, and are horribly hard to unpack.  If you want to find the "
6565 "architecture of a kernel, use the architecture of the associated initrd or "
6566 "kernel module(s) instead."
6567 msgstr ""
6568
6569 # type: =head2
6570 #: ../src/guestfs-actions.pod:1411
6571 msgid "guestfs_filesize"
6572 msgstr ""
6573
6574 # type: verbatim
6575 #: ../src/guestfs-actions.pod:1413
6576 #, no-wrap
6577 msgid ""
6578 " int64_t guestfs_filesize (guestfs_h *g,\n"
6579 "\t\tconst char *file);\n"
6580 "\n"
6581 msgstr ""
6582
6583 # type: textblock
6584 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6585 msgid "This command returns the size of C<file> in bytes."
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1418
6590 msgid ""
6591 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6592 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6593 "devices, use C<guestfs_blockdev_getsize64>."
6594 msgstr ""
6595
6596 # type: =head2
6597 #: ../src/guestfs-actions.pod:1424
6598 msgid "guestfs_fill"
6599 msgstr ""
6600
6601 # type: verbatim
6602 #: ../src/guestfs-actions.pod:1426
6603 #, no-wrap
6604 msgid ""
6605 " int guestfs_fill (guestfs_h *g,\n"
6606 "\t\tint c,\n"
6607 "\t\tint len,\n"
6608 "\t\tconst char *path);\n"
6609 "\n"
6610 msgstr ""
6611
6612 # type: textblock
6613 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6614 msgid ""
6615 "This command creates a new file called C<path>.  The initial content of the "
6616 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6617 "[0..255]>."
6618 msgstr ""
6619
6620 # type: textblock
6621 #: ../src/guestfs-actions.pod:1435
6622 msgid ""
6623 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6624 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6625 "bytes use C<guestfs_fill_pattern>."
6626 msgstr ""
6627
6628 # type: =head2
6629 #: ../src/guestfs-actions.pod:1447
6630 msgid "guestfs_fill_pattern"
6631 msgstr ""
6632
6633 # type: verbatim
6634 #: ../src/guestfs-actions.pod:1449
6635 #, no-wrap
6636 msgid ""
6637 " int guestfs_fill_pattern (guestfs_h *g,\n"
6638 "\t\tconst char *pattern,\n"
6639 "\t\tint len,\n"
6640 "\t\tconst char *path);\n"
6641 "\n"
6642 msgstr ""
6643
6644 # type: textblock
6645 #: ../src/guestfs-actions.pod:1454
6646 msgid ""
6647 "This function is like C<guestfs_fill> except that it creates a new file of "
6648 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6649 "pattern is truncated if necessary to ensure the length of the file is "
6650 "exactly C<len> bytes."
6651 msgstr ""
6652
6653 # type: =head2
6654 #: ../src/guestfs-actions.pod:1466
6655 msgid "guestfs_find"
6656 msgstr ""
6657
6658 # type: verbatim
6659 #: ../src/guestfs-actions.pod:1468
6660 #, no-wrap
6661 msgid ""
6662 " char **guestfs_find (guestfs_h *g,\n"
6663 "\t\tconst char *directory);\n"
6664 "\n"
6665 msgstr ""
6666
6667 # type: textblock
6668 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6669 msgid ""
6670 "This command lists out all files and directories, recursively, starting at "
6671 "C<directory>.  It is essentially equivalent to running the shell command "
6672 "C<find directory -print> but some post-processing happens on the output, "
6673 "described below."
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6678 msgid ""
6679 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6680 "structure was:"
6681 msgstr ""
6682
6683 # type: verbatim
6684 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6685 #, no-wrap
6686 msgid ""
6687 " /tmp/a\n"
6688 " /tmp/b\n"
6689 " /tmp/c/d\n"
6690 "\n"
6691 msgstr ""
6692
6693 # type: textblock
6694 #: ../src/guestfs-actions.pod:1483
6695 msgid ""
6696 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6697 msgstr ""
6698
6699 # type: verbatim
6700 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6701 #, no-wrap
6702 msgid ""
6703 " a\n"
6704 " b\n"
6705 " c\n"
6706 " c/d\n"
6707 "\n"
6708 msgstr ""
6709
6710 # type: textblock
6711 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6712 msgid "If C<directory> is not a directory, then this command returns an error."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6717 msgid "The returned list is sorted."
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1496
6722 msgid "See also C<guestfs_find0>."
6723 msgstr ""
6724
6725 # type: =head2
6726 #: ../src/guestfs-actions.pod:1505
6727 msgid "guestfs_find0"
6728 msgstr ""
6729
6730 # type: verbatim
6731 #: ../src/guestfs-actions.pod:1507
6732 #, no-wrap
6733 msgid ""
6734 " int guestfs_find0 (guestfs_h *g,\n"
6735 "\t\tconst char *directory,\n"
6736 "\t\tconst char *files);\n"
6737 "\n"
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6742 msgid ""
6743 "This command lists out all files and directories, recursively, starting at "
6744 "C<directory>, placing the resulting list in the external file called "
6745 "C<files>."
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1515
6750 msgid ""
6751 "This command works the same way as C<guestfs_find> with the following "
6752 "exceptions:"
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6757 msgid "The resulting list is written to an external file."
6758 msgstr ""
6759
6760 # type: textblock
6761 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6762 msgid ""
6763 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6764 "L<find(1)> option I<-print0>."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6769 msgid "This command is not limited in the number of names that it can return."
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6774 msgid "The result list is not sorted."
6775 msgstr ""
6776
6777 # type: =head2
6778 #: ../src/guestfs-actions.pod:1542
6779 msgid "guestfs_findfs_label"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #: ../src/guestfs-actions.pod:1544
6784 #, no-wrap
6785 msgid ""
6786 " char *guestfs_findfs_label (guestfs_h *g,\n"
6787 "\t\tconst char *label);\n"
6788 "\n"
6789 msgstr ""
6790
6791 # type: textblock
6792 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6793 msgid ""
6794 "This command searches the filesystems and returns the one which has the "
6795 "given label.  An error is returned if no such filesystem can be found."
6796 msgstr ""
6797
6798 # type: textblock
6799 #: ../src/guestfs-actions.pod:1551
6800 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6801 msgstr ""
6802
6803 # type: =head2
6804 #: ../src/guestfs-actions.pod:1556
6805 msgid "guestfs_findfs_uuid"
6806 msgstr ""
6807
6808 # type: verbatim
6809 #: ../src/guestfs-actions.pod:1558
6810 #, no-wrap
6811 msgid ""
6812 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6813 "\t\tconst char *uuid);\n"
6814 "\n"
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6819 msgid ""
6820 "This command searches the filesystems and returns the one which has the "
6821 "given UUID.  An error is returned if no such filesystem can be found."
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1565
6826 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6827 msgstr ""
6828
6829 # type: =head2
6830 #: ../src/guestfs-actions.pod:1570
6831 msgid "guestfs_fsck"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #: ../src/guestfs-actions.pod:1572
6836 #, no-wrap
6837 msgid ""
6838 " int guestfs_fsck (guestfs_h *g,\n"
6839 "\t\tconst char *fstype,\n"
6840 "\t\tconst char *device);\n"
6841 "\n"
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6846 msgid ""
6847 "This runs the filesystem checker (fsck) on C<device> which should have "
6848 "filesystem type C<fstype>."
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6853 msgid ""
6854 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6855 "codes from C<fsck>."
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6860 msgid "Multiple status codes can be summed together."
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6865 msgid ""
6866 "A non-zero return code can mean \"success\", for example if errors have been "
6867 "corrected on the filesystem."
6868 msgstr ""
6869
6870 # type: textblock
6871 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6872 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6877 msgid ""
6878 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6879 msgstr ""
6880
6881 # type: =head2
6882 #: ../src/guestfs-actions.pod:1606
6883 msgid "guestfs_get_append"
6884 msgstr ""
6885
6886 # type: verbatim
6887 #: ../src/guestfs-actions.pod:1608
6888 #, no-wrap
6889 msgid ""
6890 " const char *guestfs_get_append (guestfs_h *g);\n"
6891 "\n"
6892 msgstr ""
6893
6894 # type: textblock
6895 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6896 msgid ""
6897 "Return the additional kernel options which are added to the guest kernel "
6898 "command line."
6899 msgstr ""
6900
6901 # type: textblock
6902 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6903 msgid "If C<NULL> then no options are added."
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1615
6908 msgid ""
6909 "This function returns a string which may be NULL.  There is no way to return "
6910 "an error from this function.  The string is owned by the guest handle and "
6911 "must I<not> be freed."
6912 msgstr ""
6913
6914 # type: =head2
6915 #: ../src/guestfs-actions.pod:1619
6916 msgid "guestfs_get_autosync"
6917 msgstr ""
6918
6919 # type: verbatim
6920 #: ../src/guestfs-actions.pod:1621
6921 #, no-wrap
6922 msgid ""
6923 " int guestfs_get_autosync (guestfs_h *g);\n"
6924 "\n"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6929 msgid "Get the autosync flag."
6930 msgstr ""
6931
6932 # type: =head2
6933 #: ../src/guestfs-actions.pod:1627
6934 msgid "guestfs_get_direct"
6935 msgstr ""
6936
6937 # type: verbatim
6938 #: ../src/guestfs-actions.pod:1629
6939 #, no-wrap
6940 msgid ""
6941 " int guestfs_get_direct (guestfs_h *g);\n"
6942 "\n"
6943 msgstr ""
6944
6945 # type: textblock
6946 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6947 msgid "Return the direct appliance mode flag."
6948 msgstr ""
6949
6950 # type: =head2
6951 #: ../src/guestfs-actions.pod:1635
6952 msgid "guestfs_get_e2label"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #: ../src/guestfs-actions.pod:1637
6957 #, no-wrap
6958 msgid ""
6959 " char *guestfs_get_e2label (guestfs_h *g,\n"
6960 "\t\tconst char *device);\n"
6961 "\n"
6962 msgstr ""
6963
6964 # type: textblock
6965 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6966 msgid ""
6967 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6972 msgid ""
6973 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6974 msgstr ""
6975
6976 # type: =head2
6977 #: ../src/guestfs-actions.pod:1653
6978 msgid "guestfs_get_e2uuid"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #: ../src/guestfs-actions.pod:1655
6983 #, no-wrap
6984 msgid ""
6985 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6986 "\t\tconst char *device);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6992 msgid ""
6993 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6998 msgid ""
6999 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7000 msgstr ""
7001
7002 # type: =head2
7003 #: ../src/guestfs-actions.pod:1671
7004 msgid "guestfs_get_memsize"
7005 msgstr ""
7006
7007 # type: verbatim
7008 #: ../src/guestfs-actions.pod:1673
7009 #, no-wrap
7010 msgid ""
7011 " int guestfs_get_memsize (guestfs_h *g);\n"
7012 "\n"
7013 msgstr ""
7014
7015 # type: textblock
7016 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
7017 msgid ""
7018 "This gets the memory size in megabytes allocated to the qemu subprocess."
7019 msgstr ""
7020
7021 # type: textblock
7022 #: ../src/guestfs-actions.pod:1678
7023 msgid ""
7024 "If C<guestfs_set_memsize> was not called on this handle, and if "
7025 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7026 "value for memsize."
7027 msgstr ""
7028
7029 # type: textblock
7030 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745
7031 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4581
7032 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7033 #: ../fish/guestfish-actions.pod:3464 ../fish/guestfish-actions.pod:3551
7034 msgid ""
7035 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7036 msgstr ""
7037
7038 # type: =head2
7039 #: ../src/guestfs-actions.pod:1687
7040 msgid "guestfs_get_network"
7041 msgstr ""
7042
7043 # type: verbatim
7044 #: ../src/guestfs-actions.pod:1689
7045 #, no-wrap
7046 msgid ""
7047 " int guestfs_get_network (guestfs_h *g);\n"
7048 "\n"
7049 msgstr ""
7050
7051 # type: textblock
7052 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
7053 msgid "This returns the enable network flag."
7054 msgstr ""
7055
7056 # type: =head2
7057 #: ../src/guestfs-actions.pod:1695
7058 msgid "guestfs_get_path"
7059 msgstr ""
7060
7061 # type: verbatim
7062 #: ../src/guestfs-actions.pod:1697
7063 #, no-wrap
7064 msgid ""
7065 " const char *guestfs_get_path (guestfs_h *g);\n"
7066 "\n"
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
7071 msgid "Return the current search path."
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
7076 msgid ""
7077 "This is always non-NULL.  If it wasn't set already, then this will return "
7078 "the default path."
7079 msgstr ""
7080
7081 # type: textblock
7082 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
7083 msgid ""
7084 "This function returns a string, or NULL on error.  The string is owned by "
7085 "the guest handle and must I<not> be freed."
7086 msgstr ""
7087
7088 # type: =head2
7089 #: ../src/guestfs-actions.pod:1707
7090 msgid "guestfs_get_pid"
7091 msgstr ""
7092
7093 # type: verbatim
7094 #: ../src/guestfs-actions.pod:1709
7095 #, no-wrap
7096 msgid ""
7097 " int guestfs_get_pid (guestfs_h *g);\n"
7098 "\n"
7099 msgstr ""
7100
7101 # type: textblock
7102 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
7103 msgid ""
7104 "Return the process ID of the qemu subprocess.  If there is no qemu "
7105 "subprocess, then this will return an error."
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
7110 msgid "This is an internal call used for debugging and testing."
7111 msgstr ""
7112
7113 # type: =head2
7114 #: ../src/guestfs-actions.pod:1718
7115 msgid "guestfs_get_qemu"
7116 msgstr ""
7117
7118 # type: verbatim
7119 #: ../src/guestfs-actions.pod:1720
7120 #, no-wrap
7121 msgid ""
7122 " const char *guestfs_get_qemu (guestfs_h *g);\n"
7123 "\n"
7124 msgstr ""
7125
7126 # type: textblock
7127 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
7128 msgid "Return the current qemu binary."
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
7133 msgid ""
7134 "This is always non-NULL.  If it wasn't set already, then this will return "
7135 "the default qemu binary name."
7136 msgstr ""
7137
7138 # type: =head2
7139 #: ../src/guestfs-actions.pod:1730
7140 msgid "guestfs_get_recovery_proc"
7141 msgstr ""
7142
7143 # type: verbatim
7144 #: ../src/guestfs-actions.pod:1732
7145 #, no-wrap
7146 msgid ""
7147 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
7153 msgid "Return the recovery process enabled flag."
7154 msgstr ""
7155
7156 # type: =head2
7157 #: ../src/guestfs-actions.pod:1738
7158 msgid "guestfs_get_selinux"
7159 msgstr ""
7160
7161 # type: verbatim
7162 #: ../src/guestfs-actions.pod:1740
7163 #, no-wrap
7164 msgid ""
7165 " int guestfs_get_selinux (guestfs_h *g);\n"
7166 "\n"
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1742
7171 msgid ""
7172 "This returns the current setting of the selinux flag which is passed to the "
7173 "appliance at boot time.  See C<guestfs_set_selinux>."
7174 msgstr ""
7175
7176 # type: =head2
7177 #: ../src/guestfs-actions.pod:1750
7178 msgid "guestfs_get_state"
7179 msgstr ""
7180
7181 # type: verbatim
7182 #: ../src/guestfs-actions.pod:1752
7183 #, no-wrap
7184 msgid ""
7185 " int guestfs_get_state (guestfs_h *g);\n"
7186 "\n"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
7191 msgid ""
7192 "This returns the current state as an opaque integer.  This is only useful "
7193 "for printing debug and internal error messages."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2398
7198 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2470
7199 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1387
7200 #: ../fish/guestfish-actions.pod:1897 ../fish/guestfish-actions.pod:1915
7201 #: ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1969
7202 msgid "For more information on states, see L<guestfs(3)>."
7203 msgstr ""
7204
7205 # type: =head2
7206 #: ../src/guestfs-actions.pod:1761
7207 msgid "guestfs_get_trace"
7208 msgstr ""
7209
7210 # type: verbatim
7211 #: ../src/guestfs-actions.pod:1763
7212 #, no-wrap
7213 msgid ""
7214 " int guestfs_get_trace (guestfs_h *g);\n"
7215 "\n"
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
7220 msgid "Return the command trace flag."
7221 msgstr ""
7222
7223 # type: =head2
7224 #: ../src/guestfs-actions.pod:1769
7225 msgid "guestfs_get_umask"
7226 msgstr ""
7227
7228 # type: verbatim
7229 #: ../src/guestfs-actions.pod:1771
7230 #, no-wrap
7231 msgid ""
7232 " int guestfs_get_umask (guestfs_h *g);\n"
7233 "\n"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1773
7238 msgid ""
7239 "Return the current umask.  By default the umask is C<022> unless it has been "
7240 "set by calling C<guestfs_umask>."
7241 msgstr ""
7242
7243 # type: =head2
7244 #: ../src/guestfs-actions.pod:1778
7245 msgid "guestfs_get_verbose"
7246 msgstr ""
7247
7248 # type: verbatim
7249 #: ../src/guestfs-actions.pod:1780
7250 #, no-wrap
7251 msgid ""
7252 " int guestfs_get_verbose (guestfs_h *g);\n"
7253 "\n"
7254 msgstr ""
7255
7256 # type: textblock
7257 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
7258 msgid "This returns the verbose messages flag."
7259 msgstr ""
7260
7261 # type: =head2
7262 #: ../src/guestfs-actions.pod:1786
7263 msgid "guestfs_getcon"
7264 msgstr ""
7265
7266 # type: verbatim
7267 #: ../src/guestfs-actions.pod:1788
7268 #, no-wrap
7269 msgid ""
7270 " char *guestfs_getcon (guestfs_h *g);\n"
7271 "\n"
7272 msgstr ""
7273
7274 # type: textblock
7275 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
7276 msgid "This gets the SELinux security context of the daemon."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1792
7281 msgid ""
7282 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7283 msgstr ""
7284
7285 # type: =head2
7286 #: ../src/guestfs-actions.pod:1798
7287 msgid "guestfs_getxattrs"
7288 msgstr ""
7289
7290 # type: verbatim
7291 #: ../src/guestfs-actions.pod:1800
7292 #, no-wrap
7293 msgid ""
7294 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
7295 "\t\tconst char *path);\n"
7296 "\n"
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
7301 msgid ""
7302 "This call lists the extended attributes of the file or directory C<path>."
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
7307 msgid ""
7308 "At the system call level, this is a combination of the L<listxattr(2)> and "
7309 "L<getxattr(2)> calls."
7310 msgstr ""
7311
7312 # type: textblock
7313 #: ../src/guestfs-actions.pod:1809
7314 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7315 msgstr ""
7316
7317 # type: textblock
7318 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2565
7319 #: ../src/guestfs-actions.pod:3120
7320 msgid ""
7321 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7322 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7323 "C<guestfs_free_xattr_list> after use>."
7324 msgstr ""
7325
7326 # type: =head2
7327 #: ../src/guestfs-actions.pod:1816
7328 msgid "guestfs_glob_expand"
7329 msgstr ""
7330
7331 # type: verbatim
7332 #: ../src/guestfs-actions.pod:1818
7333 #, no-wrap
7334 msgid ""
7335 " char **guestfs_glob_expand (guestfs_h *g,\n"
7336 "\t\tconst char *pattern);\n"
7337 "\n"
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7342 msgid ""
7343 "This command searches for all the pathnames matching C<pattern> according to "
7344 "the wildcard expansion rules used by the shell."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7349 msgid ""
7350 "If no paths match, then this returns an empty list (note: not an error)."
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7355 msgid ""
7356 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7357 "GLOB_BRACE>.  See that manual page for more details."
7358 msgstr ""
7359
7360 # type: =head2
7361 #: ../src/guestfs-actions.pod:1836
7362 msgid "guestfs_grep"
7363 msgstr ""
7364
7365 # type: verbatim
7366 #: ../src/guestfs-actions.pod:1838
7367 #, no-wrap
7368 msgid ""
7369 " char **guestfs_grep (guestfs_h *g,\n"
7370 "\t\tconst char *regex,\n"
7371 "\t\tconst char *path);\n"
7372 "\n"
7373 msgstr ""
7374
7375 # type: textblock
7376 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7377 msgid "This calls the external C<grep> program and returns the matching lines."
7378 msgstr ""
7379
7380 # type: =head2
7381 #: ../src/guestfs-actions.pod:1852
7382 msgid "guestfs_grepi"
7383 msgstr ""
7384
7385 # type: verbatim
7386 #: ../src/guestfs-actions.pod:1854
7387 #, no-wrap
7388 msgid ""
7389 " char **guestfs_grepi (guestfs_h *g,\n"
7390 "\t\tconst char *regex,\n"
7391 "\t\tconst char *path);\n"
7392 "\n"
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7397 msgid ""
7398 "This calls the external C<grep -i> program and returns the matching lines."
7399 msgstr ""
7400
7401 # type: =head2
7402 #: ../src/guestfs-actions.pod:1868
7403 msgid "guestfs_grub_install"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #: ../src/guestfs-actions.pod:1870
7408 #, no-wrap
7409 msgid ""
7410 " int guestfs_grub_install (guestfs_h *g,\n"
7411 "\t\tconst char *root,\n"
7412 "\t\tconst char *device);\n"
7413 "\n"
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7418 msgid ""
7419 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7420 "the root directory being C<root>."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7425 msgid ""
7426 "Note: If grub-install reports the error \"No suitable drive was found in the "
7427 "generated device map.\" it may be that you need to create a C</boot/grub/"
7428 "device.map> file first that contains the mapping between grub device names "
7429 "and Linux device names.  It is usually sufficient to create a file "
7430 "containing:"
7431 msgstr ""
7432
7433 # type: verbatim
7434 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7435 #, no-wrap
7436 msgid ""
7437 " (hd0) /dev/vda\n"
7438 "\n"
7439 msgstr ""
7440
7441 # type: textblock
7442 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7443 msgid "replacing C</dev/vda> with the name of the installation device."
7444 msgstr ""
7445
7446 # type: =head2
7447 #: ../src/guestfs-actions.pod:1890
7448 msgid "guestfs_head"
7449 msgstr ""
7450
7451 # type: verbatim
7452 #: ../src/guestfs-actions.pod:1892
7453 #, no-wrap
7454 msgid ""
7455 " char **guestfs_head (guestfs_h *g,\n"
7456 "\t\tconst char *path);\n"
7457 "\n"
7458 msgstr ""
7459
7460 # type: textblock
7461 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7462 msgid ""
7463 "This command returns up to the first 10 lines of a file as a list of strings."
7464 msgstr ""
7465
7466 # type: =head2
7467 #: ../src/guestfs-actions.pod:1905
7468 msgid "guestfs_head_n"
7469 msgstr ""
7470
7471 # type: verbatim
7472 #: ../src/guestfs-actions.pod:1907
7473 #, no-wrap
7474 msgid ""
7475 " char **guestfs_head_n (guestfs_h *g,\n"
7476 "\t\tint nrlines,\n"
7477 "\t\tconst char *path);\n"
7478 "\n"
7479 msgstr ""
7480
7481 # type: textblock
7482 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7483 msgid ""
7484 "If the parameter C<nrlines> is a positive number, this returns the first "
7485 "C<nrlines> lines of the file C<path>."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7490 msgid ""
7491 "If the parameter C<nrlines> is a negative number, this returns lines from "
7492 "the file C<path>, excluding the last C<nrlines> lines."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5037
7497 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3897
7498 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7499 msgstr ""
7500
7501 # type: =head2
7502 #: ../src/guestfs-actions.pod:1926
7503 msgid "guestfs_hexdump"
7504 msgstr ""
7505
7506 # type: verbatim
7507 #: ../src/guestfs-actions.pod:1928
7508 #, no-wrap
7509 msgid ""
7510 " char *guestfs_hexdump (guestfs_h *g,\n"
7511 "\t\tconst char *path);\n"
7512 "\n"
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7517 msgid ""
7518 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7519 "readable, canonical hex dump of the file."
7520 msgstr ""
7521
7522 # type: =head2
7523 #: ../src/guestfs-actions.pod:1940
7524 msgid "guestfs_initrd_cat"
7525 msgstr ""
7526
7527 # type: verbatim
7528 #: ../src/guestfs-actions.pod:1942
7529 #, no-wrap
7530 msgid ""
7531 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7532 "\t\tconst char *initrdpath,\n"
7533 "\t\tconst char *filename,\n"
7534 "\t\tsize_t *size_r);\n"
7535 "\n"
7536 msgstr ""
7537
7538 # type: textblock
7539 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7540 msgid ""
7541 "This command unpacks the file C<filename> from the initrd file called "
7542 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7543 "character."
7544 msgstr ""
7545
7546 # type: textblock
7547 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7548 msgid ""
7549 "For example, in guestfish you could use the following command to examine the "
7550 "boot script (usually called C</init>)  contained in a Linux initrd or "
7551 "initramfs image:"
7552 msgstr ""
7553
7554 # type: verbatim
7555 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7556 #, no-wrap
7557 msgid ""
7558 " initrd-cat /boot/initrd-<version>.img init\n"
7559 "\n"
7560 msgstr ""
7561
7562 # type: textblock
7563 #: ../src/guestfs-actions.pod:1957
7564 msgid "See also C<guestfs_initrd_list>."
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3949
7569 #: ../src/guestfs-actions.pod:3972 ../src/guestfs-actions.pod:4124
7570 msgid ""
7571 "This function returns a buffer, or NULL on error.  The size of the returned "
7572 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7573 "after use>."
7574 msgstr ""
7575
7576 # type: =head2
7577 #: ../src/guestfs-actions.pod:1966
7578 msgid "guestfs_initrd_list"
7579 msgstr ""
7580
7581 # type: verbatim
7582 #: ../src/guestfs-actions.pod:1968
7583 #, no-wrap
7584 msgid ""
7585 " char **guestfs_initrd_list (guestfs_h *g,\n"
7586 "\t\tconst char *path);\n"
7587 "\n"
7588 msgstr ""
7589
7590 # type: textblock
7591 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7592 msgid "This command lists out files contained in an initrd."
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7597 msgid ""
7598 "The files are listed without any initial C</> character.  The files are "
7599 "listed in the order they appear (not necessarily alphabetical).  Directory "
7600 "names are listed as separate items."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7605 msgid ""
7606 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7607 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7608 "files)."
7609 msgstr ""
7610
7611 # type: =head2
7612 #: ../src/guestfs-actions.pod:1985
7613 msgid "guestfs_inotify_add_watch"
7614 msgstr ""
7615
7616 # type: verbatim
7617 #: ../src/guestfs-actions.pod:1987
7618 #, no-wrap
7619 msgid ""
7620 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7621 "\t\tconst char *path,\n"
7622 "\t\tint mask);\n"
7623 "\n"
7624 msgstr ""
7625
7626 # type: textblock
7627 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7628 msgid "Watch C<path> for the events listed in C<mask>."
7629 msgstr ""
7630
7631 # type: textblock
7632 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7633 msgid ""
7634 "Note that if C<path> is a directory then events within that directory are "
7635 "watched, but this does I<not> happen recursively (in subdirectories)."
7636 msgstr ""
7637
7638 # type: textblock
7639 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7640 msgid ""
7641 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7642 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7643 msgstr ""
7644
7645 # type: =head2
7646 #: ../src/guestfs-actions.pod:2003
7647 msgid "guestfs_inotify_close"
7648 msgstr ""
7649
7650 # type: verbatim
7651 #: ../src/guestfs-actions.pod:2005
7652 #, no-wrap
7653 msgid ""
7654 " int guestfs_inotify_close (guestfs_h *g);\n"
7655 "\n"
7656 msgstr ""
7657
7658 # type: textblock
7659 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7660 msgid ""
7661 "This closes the inotify handle which was previously opened by inotify_init.  "
7662 "It removes all watches, throws away any pending events, and deallocates all "
7663 "resources."
7664 msgstr ""
7665
7666 # type: =head2
7667 #: ../src/guestfs-actions.pod:2013
7668 msgid "guestfs_inotify_files"
7669 msgstr ""
7670
7671 # type: verbatim
7672 #: ../src/guestfs-actions.pod:2015
7673 #, no-wrap
7674 msgid ""
7675 " char **guestfs_inotify_files (guestfs_h *g);\n"
7676 "\n"
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:2017
7681 msgid ""
7682 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7683 "returns a list of pathnames of objects that were touched.  The returned "
7684 "pathnames are sorted and deduplicated."
7685 msgstr ""
7686
7687 # type: =head2
7688 #: ../src/guestfs-actions.pod:2025
7689 msgid "guestfs_inotify_init"
7690 msgstr ""
7691
7692 # type: verbatim
7693 #: ../src/guestfs-actions.pod:2027
7694 #, no-wrap
7695 msgid ""
7696 " int guestfs_inotify_init (guestfs_h *g,\n"
7697 "\t\tint maxevents);\n"
7698 "\n"
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7703 msgid ""
7704 "This command creates a new inotify handle.  The inotify subsystem can be "
7705 "used to notify events which happen to objects in the guest filesystem."
7706 msgstr ""
7707
7708 # type: textblock
7709 #: ../src/guestfs-actions.pod:2034
7710 msgid ""
7711 "C<maxevents> is the maximum number of events which will be queued up between "
7712 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7713 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7714 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7715 "throws away events, but records the fact that it threw them away by setting "
7716 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7717 "C<guestfs_inotify_read>)."
7718 msgstr ""
7719
7720 # type: textblock
7721 #: ../src/guestfs-actions.pod:2044
7722 msgid ""
7723 "Before any events are generated, you have to add some watches to the "
7724 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7725 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7726 msgstr ""
7727
7728 # type: textblock
7729 #: ../src/guestfs-actions.pod:2050
7730 msgid ""
7731 "Queued up events should be read periodically by calling "
7732 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7733 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7734 "often enough then you risk the internal queue overflowing."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:2057
7739 msgid ""
7740 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7741 "This also removes any watches automatically."
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7746 msgid ""
7747 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7748 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7749 "that there is one global inotify handle per libguestfs instance."
7750 msgstr ""
7751
7752 # type: =head2
7753 #: ../src/guestfs-actions.pod:2068
7754 msgid "guestfs_inotify_read"
7755 msgstr ""
7756
7757 # type: verbatim
7758 #: ../src/guestfs-actions.pod:2070
7759 #, no-wrap
7760 msgid ""
7761 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7762 "\n"
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7767 msgid ""
7768 "Return the complete queue of events that have happened since the previous "
7769 "read call."
7770 msgstr ""
7771
7772 # type: textblock
7773 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7774 msgid "If no events have happened, this returns an empty list."
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7779 msgid ""
7780 "I<Note>: In order to make sure that all events have been read, you must call "
7781 "this function repeatedly until it returns an empty list.  The reason is that "
7782 "the call will read events up to the maximum appliance-to-host message size "
7783 "and leave remaining events in the queue."
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:2083
7788 msgid ""
7789 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7790 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7791 "must call C<guestfs_free_inotify_event_list> after use>."
7792 msgstr ""
7793
7794 # type: =head2
7795 #: ../src/guestfs-actions.pod:2088
7796 msgid "guestfs_inotify_rm_watch"
7797 msgstr ""
7798
7799 # type: verbatim
7800 #: ../src/guestfs-actions.pod:2090
7801 #, no-wrap
7802 msgid ""
7803 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7804 "\t\tint wd);\n"
7805 "\n"
7806 msgstr ""
7807
7808 # type: textblock
7809 #: ../src/guestfs-actions.pod:2093
7810 msgid ""
7811 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7812 msgstr ""
7813
7814 # type: =head2
7815 #: ../src/guestfs-actions.pod:2098
7816 msgid "guestfs_inspect_get_arch"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #: ../src/guestfs-actions.pod:2100
7821 #, no-wrap
7822 msgid ""
7823 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7824 "\t\tconst char *root);\n"
7825 "\n"
7826 msgstr ""
7827
7828 # type: textblock
7829 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123
7830 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2196
7831 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2238
7832 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2289
7833 #: ../src/guestfs-actions.pod:2324
7834 msgid ""
7835 "This function should only be called with a root device string as returned by "
7836 "C<guestfs_inspect_os>."
7837 msgstr ""
7838
7839 # type: textblock
7840 #: ../src/guestfs-actions.pod:2106
7841 msgid ""
7842 "This returns the architecture of the inspected operating system.  The "
7843 "possible return values are listed under C<guestfs_file_architecture>."
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7848 msgid ""
7849 "If the architecture could not be determined, then the string C<unknown> is "
7850 "returned."
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2163
7855 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2279
7856 #: ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2334
7857 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1656
7858 #: ../fish/guestfish-actions.pod:1702 ../fish/guestfish-actions.pod:1741
7859 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1827
7860 #: ../fish/guestfish-actions.pod:1843 ../fish/guestfish-actions.pod:1877
7861 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7862 msgstr ""
7863
7864 # type: =head2
7865 #: ../src/guestfs-actions.pod:2118
7866 msgid "guestfs_inspect_get_distro"
7867 msgstr ""
7868
7869 # type: verbatim
7870 #: ../src/guestfs-actions.pod:2120
7871 #, no-wrap
7872 msgid ""
7873 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7874 "\t\tconst char *root);\n"
7875 "\n"
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7880 msgid ""
7881 "This returns the distro (distribution) of the inspected operating system."
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7886 msgid "Currently defined distros are:"
7887 msgstr ""
7888
7889 # type: =item
7890 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7891 msgid "\"debian\""
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7896 msgid "Debian or a Debian-derived distro such as Ubuntu."
7897 msgstr ""
7898
7899 # type: =item
7900 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7901 msgid "\"fedora\""
7902 msgstr ""
7903
7904 # type: textblock
7905 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7906 msgid "Fedora."
7907 msgstr ""
7908
7909 # type: =item
7910 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7911 msgid "\"redhat-based\""
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7916 msgid "Some Red Hat-derived distro."
7917 msgstr ""
7918
7919 # type: =item
7920 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7921 msgid "\"rhel\""
7922 msgstr ""
7923
7924 # type: textblock
7925 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7926 msgid "Red Hat Enterprise Linux and some derivatives."
7927 msgstr ""
7928
7929 # type: =item
7930 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2301
7931 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1814
7932 msgid "\"windows\""
7933 msgstr ""
7934
7935 # type: textblock
7936 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7937 msgid ""
7938 "Windows does not have distributions.  This string is returned if the OS type "
7939 "is Windows."
7940 msgstr ""
7941
7942 # type: =item
7943 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2305
7944 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1818
7945 msgid "\"unknown\""
7946 msgstr ""
7947
7948 # type: textblock
7949 #: ../src/guestfs-actions.pod:2156 ../fish/guestfish-actions.pod:1695
7950 msgid "The distro could not be determined."
7951 msgstr ""
7952
7953 # type: textblock
7954 #: ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2311
7955 #: ../fish/guestfish-actions.pod:1699 ../fish/guestfish-actions.pod:1824
7956 msgid ""
7957 "Future versions of libguestfs may return other strings here.  The caller "
7958 "should be prepared to handle any string."
7959 msgstr ""
7960
7961 # type: =head2
7962 #: ../src/guestfs-actions.pod:2168
7963 msgid "guestfs_inspect_get_filesystems"
7964 msgstr ""
7965
7966 # type: verbatim
7967 #: ../src/guestfs-actions.pod:2170
7968 #, no-wrap
7969 msgid ""
7970 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7971 "\t\tconst char *root);\n"
7972 "\n"
7973 msgstr ""
7974
7975 # type: textblock
7976 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1711
7977 msgid ""
7978 "This returns a list of all the filesystems that we think are associated with "
7979 "this operating system.  This includes the root filesystem, other ordinary "
7980 "filesystems, and non-mounted devices like swap partitions."
7981 msgstr ""
7982
7983 # type: textblock
7984 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1716
7985 msgid ""
7986 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7987 "to be shared between operating systems."
7988 msgstr ""
7989
7990 # type: textblock
7991 #: ../src/guestfs-actions.pod:2184
7992 msgid ""
7993 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7994 "C<guestfs_inspect_get_mountpoints>."
7995 msgstr ""
7996
7997 # type: =head2
7998 #: ../src/guestfs-actions.pod:2191
7999 msgid "guestfs_inspect_get_major_version"
8000 msgstr ""
8001
8002 # type: verbatim
8003 #: ../src/guestfs-actions.pod:2193
8004 #, no-wrap
8005 msgid ""
8006 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
8007 "\t\tconst char *root);\n"
8008 "\n"
8009 msgstr ""
8010
8011 # type: textblock
8012 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1729
8013 msgid ""
8014 "This returns the major version number of the inspected operating system."
8015 msgstr ""
8016
8017 # type: textblock
8018 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1732
8019 msgid ""
8020 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8021 "popular public names used by the operating system.  Notably the operating "
8022 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8023 "1).  You can find out the real versions corresponding to releases of Windows "
8024 "by consulting Wikipedia or MSDN."
8025 msgstr ""
8026
8027 # type: textblock
8028 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2226
8029 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1753
8030 msgid "If the version could not be determined, then C<0> is returned."
8031 msgstr ""
8032
8033 # type: =head2
8034 #: ../src/guestfs-actions.pod:2215
8035 msgid "guestfs_inspect_get_minor_version"
8036 msgstr ""
8037
8038 # type: verbatim
8039 #: ../src/guestfs-actions.pod:2217
8040 #, no-wrap
8041 msgid ""
8042 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8043 "\t\tconst char *root);\n"
8044 "\n"
8045 msgstr ""
8046
8047 # type: textblock
8048 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1750
8049 msgid ""
8050 "This returns the minor version number of the inspected operating system."
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2228
8055 msgid ""
8056 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8057 "C<guestfs_inspect_get_major_version>."
8058 msgstr ""
8059
8060 # type: =head2
8061 #: ../src/guestfs-actions.pod:2233
8062 msgid "guestfs_inspect_get_mountpoints"
8063 msgstr ""
8064
8065 # type: verbatim
8066 #: ../src/guestfs-actions.pod:2235
8067 #, no-wrap
8068 msgid ""
8069 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8070 "\t\tconst char *root);\n"
8071 "\n"
8072 msgstr ""
8073
8074 # type: textblock
8075 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1765
8076 msgid ""
8077 "This returns a hash of where we think the filesystems associated with this "
8078 "operating system should be mounted.  Callers should note that this is at "
8079 "best an educated guess made by reading configuration files such as C</etc/"
8080 "fstab>."
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1770
8085 msgid ""
8086 "Each element in the returned hashtable has a key which is the path of the "
8087 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8088 "mounted there (eg. C</dev/sda1>)."
8089 msgstr ""
8090
8091 # type: textblock
8092 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1775
8093 msgid ""
8094 "Non-mounted devices such as swap devices are I<not> returned in this list."
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2254
8099 msgid ""
8100 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8101 "C<guestfs_inspect_get_filesystems>."
8102 msgstr ""
8103
8104 # type: textblock
8105 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2617
8106 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:5154
8107 msgid ""
8108 "This function returns a NULL-terminated array of strings, or NULL if there "
8109 "was an error.  The array of strings will always have length C<2n+1>, where "
8110 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8111 "caller must free the strings and the array after use>."
8112 msgstr ""
8113
8114 # type: =head2
8115 #: ../src/guestfs-actions.pod:2263
8116 msgid "guestfs_inspect_get_product_name"
8117 msgstr ""
8118
8119 # type: verbatim
8120 #: ../src/guestfs-actions.pod:2265
8121 #, no-wrap
8122 msgid ""
8123 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
8124 "\t\tconst char *root);\n"
8125 "\n"
8126 msgstr ""
8127
8128 # type: textblock
8129 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1788
8130 msgid ""
8131 "This returns the product name of the inspected operating system.  The "
8132 "product name is generally some freeform string which can be displayed to the "
8133 "user, but should not be parsed by programs."
8134 msgstr ""
8135
8136 # type: textblock
8137 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1793
8138 msgid ""
8139 "If the product name could not be determined, then the string C<unknown> is "
8140 "returned."
8141 msgstr ""
8142
8143 # type: =head2
8144 #: ../src/guestfs-actions.pod:2284
8145 msgid "guestfs_inspect_get_type"
8146 msgstr ""
8147
8148 # type: verbatim
8149 #: ../src/guestfs-actions.pod:2286
8150 #, no-wrap
8151 msgid ""
8152 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
8153 "\t\tconst char *root);\n"
8154 "\n"
8155 msgstr ""
8156
8157 # type: textblock
8158 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1805
8159 msgid ""
8160 "This returns the type of the inspected operating system.  Currently defined "
8161 "types are:"
8162 msgstr ""
8163
8164 # type: =item
8165 #: ../src/guestfs-actions.pod:2297 ../fish/guestfish-actions.pod:1810
8166 msgid "\"linux\""
8167 msgstr ""
8168
8169 # type: textblock
8170 #: ../src/guestfs-actions.pod:2299 ../fish/guestfish-actions.pod:1812
8171 msgid "Any Linux-based operating system."
8172 msgstr ""
8173
8174 # type: textblock
8175 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1816
8176 msgid "Any Microsoft Windows operating system."
8177 msgstr ""
8178
8179 # type: textblock
8180 #: ../src/guestfs-actions.pod:2307 ../fish/guestfish-actions.pod:1820
8181 msgid "The operating system type could not be determined."
8182 msgstr ""
8183
8184 # type: =head2
8185 #: ../src/guestfs-actions.pod:2319
8186 msgid "guestfs_inspect_get_windows_systemroot"
8187 msgstr ""
8188
8189 # type: verbatim
8190 #: ../src/guestfs-actions.pod:2321
8191 #, no-wrap
8192 msgid ""
8193 " char *guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8194 "\t\tconst char *root);\n"
8195 "\n"
8196 msgstr ""
8197
8198 # type: textblock
8199 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1836
8200 msgid ""
8201 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8202 "is a directory path such as C</WINDOWS>."
8203 msgstr ""
8204
8205 # type: textblock
8206 #: ../src/guestfs-actions.pod:2330 ../fish/guestfish-actions.pod:1839
8207 msgid ""
8208 "This call assumes that the guest is Windows and that the systemroot could be "
8209 "determined by inspection.  If this is not the case then an error is returned."
8210 msgstr ""
8211
8212 # type: =head2
8213 #: ../src/guestfs-actions.pod:2339
8214 msgid "guestfs_inspect_os"
8215 msgstr ""
8216
8217 # type: verbatim
8218 #: ../src/guestfs-actions.pod:2341
8219 #, no-wrap
8220 msgid ""
8221 " char **guestfs_inspect_os (guestfs_h *g);\n"
8222 "\n"
8223 msgstr ""
8224
8225 # type: textblock
8226 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1849
8227 msgid ""
8228 "This function uses other libguestfs functions and certain heuristics to "
8229 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8230 "for operating systems."
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1853
8235 msgid "The list returned is empty if no operating systems were found."
8236 msgstr ""
8237
8238 # type: textblock
8239 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1855
8240 msgid ""
8241 "If one operating system was found, then this returns a list with a single "
8242 "element, which is the name of the root filesystem of this operating system.  "
8243 "It is also possible for this function to return a list containing more than "
8244 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8245 "element being the root filesystem of one of the operating systems."
8246 msgstr ""
8247
8248 # type: textblock
8249 #: ../src/guestfs-actions.pod:2356
8250 msgid ""
8251 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8252 "functions in order to query further information about each operating system, "
8253 "such as the name and version."
8254 msgstr ""
8255
8256 # type: textblock
8257 #: ../src/guestfs-actions.pod:2361
8258 msgid ""
8259 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8260 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8261 "the contents.  This should be called with no disks currently mounted.  The "
8262 "function may also use Augeas, so any existing Augeas handle will be closed."
8263 msgstr ""
8264
8265 # type: textblock
8266 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1873
8267 msgid ""
8268 "This function cannot decrypt encrypted disks.  The caller must do that first "
8269 "(supplying the necessary keys) if the disk is encrypted."
8270 msgstr ""
8271
8272 # type: textblock
8273 #: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2578
8274 #: ../src/guestfs-actions.pod:2634
8275 msgid "See also C<guestfs_list_filesystems>."
8276 msgstr ""
8277
8278 # type: =head2
8279 #: ../src/guestfs-actions.pod:2379
8280 msgid "guestfs_is_blockdev"
8281 msgstr ""
8282
8283 # type: verbatim
8284 #: ../src/guestfs-actions.pod:2381
8285 #, no-wrap
8286 msgid ""
8287 " int guestfs_is_blockdev (guestfs_h *g,\n"
8288 "\t\tconst char *path);\n"
8289 "\n"
8290 msgstr ""
8291
8292 # type: textblock
8293 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1885
8294 msgid ""
8295 "This returns C<true> if and only if there is a block device with the given "
8296 "C<path> name."
8297 msgstr ""
8298
8299 # type: textblock
8300 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2410
8301 #: ../src/guestfs-actions.pod:2434 ../src/guestfs-actions.pod:2446
8302 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2503
8303 #: ../src/guestfs-actions.pod:2515
8304 msgid "See also C<guestfs_stat>."
8305 msgstr ""
8306
8307 # type: =head2
8308 #: ../src/guestfs-actions.pod:2391
8309 msgid "guestfs_is_busy"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #: ../src/guestfs-actions.pod:2393
8314 #, no-wrap
8315 msgid ""
8316 " int guestfs_is_busy (guestfs_h *g);\n"
8317 "\n"
8318 msgstr ""
8319
8320 # type: textblock
8321 #: ../src/guestfs-actions.pod:2395 ../fish/guestfish-actions.pod:1894
8322 msgid ""
8323 "This returns true iff this handle is busy processing a command (in the "
8324 "C<BUSY> state)."
8325 msgstr ""
8326
8327 # type: =head2
8328 #: ../src/guestfs-actions.pod:2402
8329 msgid "guestfs_is_chardev"
8330 msgstr ""
8331
8332 # type: verbatim
8333 #: ../src/guestfs-actions.pod:2404
8334 #, no-wrap
8335 msgid ""
8336 " int guestfs_is_chardev (guestfs_h *g,\n"
8337 "\t\tconst char *path);\n"
8338 "\n"
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2407 ../fish/guestfish-actions.pod:1903
8343 msgid ""
8344 "This returns C<true> if and only if there is a character device with the "
8345 "given C<path> name."
8346 msgstr ""
8347
8348 # type: =head2
8349 #: ../src/guestfs-actions.pod:2414
8350 msgid "guestfs_is_config"
8351 msgstr ""
8352
8353 # type: verbatim
8354 #: ../src/guestfs-actions.pod:2416
8355 #, no-wrap
8356 msgid ""
8357 " int guestfs_is_config (guestfs_h *g);\n"
8358 "\n"
8359 msgstr ""
8360
8361 # type: textblock
8362 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1912
8363 msgid ""
8364 "This returns true iff this handle is being configured (in the C<CONFIG> "
8365 "state)."
8366 msgstr ""
8367
8368 # type: =head2
8369 #: ../src/guestfs-actions.pod:2425
8370 msgid "guestfs_is_dir"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #: ../src/guestfs-actions.pod:2427
8375 #, no-wrap
8376 msgid ""
8377 " int guestfs_is_dir (guestfs_h *g,\n"
8378 "\t\tconst char *path);\n"
8379 "\n"
8380 msgstr ""
8381
8382 # type: textblock
8383 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1921
8384 msgid ""
8385 "This returns C<true> if and only if there is a directory with the given "
8386 "C<path> name.  Note that it returns false for other objects like files."
8387 msgstr ""
8388
8389 # type: =head2
8390 #: ../src/guestfs-actions.pod:2438
8391 msgid "guestfs_is_fifo"
8392 msgstr ""
8393
8394 # type: verbatim
8395 #: ../src/guestfs-actions.pod:2440
8396 #, no-wrap
8397 msgid ""
8398 " int guestfs_is_fifo (guestfs_h *g,\n"
8399 "\t\tconst char *path);\n"
8400 "\n"
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1931
8405 msgid ""
8406 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8407 "given C<path> name."
8408 msgstr ""
8409
8410 # type: =head2
8411 #: ../src/guestfs-actions.pod:2450
8412 msgid "guestfs_is_file"
8413 msgstr ""
8414
8415 # type: verbatim
8416 #: ../src/guestfs-actions.pod:2452
8417 #, no-wrap
8418 msgid ""
8419 " int guestfs_is_file (guestfs_h *g,\n"
8420 "\t\tconst char *path);\n"
8421 "\n"
8422 msgstr ""
8423
8424 # type: textblock
8425 #: ../src/guestfs-actions.pod:2455 ../fish/guestfish-actions.pod:1940
8426 msgid ""
8427 "This returns C<true> if and only if there is a regular file with the given "
8428 "C<path> name.  Note that it returns false for other objects like directories."
8429 msgstr ""
8430
8431 # type: =head2
8432 #: ../src/guestfs-actions.pod:2463
8433 msgid "guestfs_is_launching"
8434 msgstr ""
8435
8436 # type: verbatim
8437 #: ../src/guestfs-actions.pod:2465
8438 #, no-wrap
8439 msgid ""
8440 " int guestfs_is_launching (guestfs_h *g);\n"
8441 "\n"
8442 msgstr ""
8443
8444 # type: textblock
8445 #: ../src/guestfs-actions.pod:2467 ../fish/guestfish-actions.pod:1950
8446 msgid ""
8447 "This returns true iff this handle is launching the subprocess (in the "
8448 "C<LAUNCHING> state)."
8449 msgstr ""
8450
8451 # type: =head2
8452 #: ../src/guestfs-actions.pod:2474
8453 msgid "guestfs_is_lv"
8454 msgstr ""
8455
8456 # type: verbatim
8457 #: ../src/guestfs-actions.pod:2476
8458 #, no-wrap
8459 msgid ""
8460 " int guestfs_is_lv (guestfs_h *g,\n"
8461 "\t\tconst char *device);\n"
8462 "\n"
8463 msgstr ""
8464
8465 # type: textblock
8466 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1959
8467 msgid ""
8468 "This command tests whether C<device> is a logical volume, and returns true "
8469 "iff this is the case."
8470 msgstr ""
8471
8472 # type: =head2
8473 #: ../src/guestfs-actions.pod:2484
8474 msgid "guestfs_is_ready"
8475 msgstr ""
8476
8477 # type: verbatim
8478 #: ../src/guestfs-actions.pod:2486
8479 #, no-wrap
8480 msgid ""
8481 " int guestfs_is_ready (guestfs_h *g);\n"
8482 "\n"
8483 msgstr ""
8484
8485 # type: textblock
8486 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1966
8487 msgid ""
8488 "This returns true iff this handle is ready to accept commands (in the "
8489 "C<READY> state)."
8490 msgstr ""
8491
8492 # type: =head2
8493 #: ../src/guestfs-actions.pod:2495
8494 msgid "guestfs_is_socket"
8495 msgstr ""
8496
8497 # type: verbatim
8498 #: ../src/guestfs-actions.pod:2497
8499 #, no-wrap
8500 msgid ""
8501 " int guestfs_is_socket (guestfs_h *g,\n"
8502 "\t\tconst char *path);\n"
8503 "\n"
8504 msgstr ""
8505
8506 # type: textblock
8507 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1975
8508 msgid ""
8509 "This returns C<true> if and only if there is a Unix domain socket with the "
8510 "given C<path> name."
8511 msgstr ""
8512
8513 # type: =head2
8514 #: ../src/guestfs-actions.pod:2507
8515 msgid "guestfs_is_symlink"
8516 msgstr ""
8517
8518 # type: verbatim
8519 #: ../src/guestfs-actions.pod:2509
8520 #, no-wrap
8521 msgid ""
8522 " int guestfs_is_symlink (guestfs_h *g,\n"
8523 "\t\tconst char *path);\n"
8524 "\n"
8525 msgstr ""
8526
8527 # type: textblock
8528 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1984
8529 msgid ""
8530 "This returns C<true> if and only if there is a symbolic link with the given "
8531 "C<path> name."
8532 msgstr ""
8533
8534 # type: =head2
8535 #: ../src/guestfs-actions.pod:2519
8536 msgid "guestfs_kill_subprocess"
8537 msgstr ""
8538
8539 # type: verbatim
8540 #: ../src/guestfs-actions.pod:2521
8541 #, no-wrap
8542 msgid ""
8543 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8544 "\n"
8545 msgstr ""
8546
8547 # type: textblock
8548 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1993
8549 msgid "This kills the qemu subprocess.  You should never need to call this."
8550 msgstr ""
8551
8552 # type: =head2
8553 #: ../src/guestfs-actions.pod:2527
8554 msgid "guestfs_launch"
8555 msgstr ""
8556
8557 # type: verbatim
8558 #: ../src/guestfs-actions.pod:2529
8559 #, no-wrap
8560 msgid ""
8561 " int guestfs_launch (guestfs_h *g);\n"
8562 "\n"
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2531 ../fish/guestfish-actions.pod:2001
8567 msgid ""
8568 "Internally libguestfs is implemented by running a virtual machine using "
8569 "L<qemu(1)>."
8570 msgstr ""
8571
8572 # type: textblock
8573 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:2004
8574 msgid ""
8575 "You should call this after configuring the handle (eg. adding drives) but "
8576 "before performing any actions."
8577 msgstr ""
8578
8579 # type: =head2
8580 #: ../src/guestfs-actions.pod:2539
8581 msgid "guestfs_lchown"
8582 msgstr ""
8583
8584 # type: verbatim
8585 #: ../src/guestfs-actions.pod:2541
8586 #, no-wrap
8587 msgid ""
8588 " int guestfs_lchown (guestfs_h *g,\n"
8589 "\t\tint owner,\n"
8590 "\t\tint group,\n"
8591 "\t\tconst char *path);\n"
8592 "\n"
8593 msgstr ""
8594
8595 # type: textblock
8596 #: ../src/guestfs-actions.pod:2546
8597 msgid ""
8598 "Change the file owner to C<owner> and group to C<group>.  This is like "
8599 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8600 "changed, not the target."
8601 msgstr ""
8602
8603 # type: =head2
8604 #: ../src/guestfs-actions.pod:2556
8605 msgid "guestfs_lgetxattrs"
8606 msgstr ""
8607
8608 # type: verbatim
8609 #: ../src/guestfs-actions.pod:2558
8610 #, no-wrap
8611 msgid ""
8612 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8613 "\t\tconst char *path);\n"
8614 "\n"
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2561
8619 msgid ""
8620 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8621 "then it returns the extended attributes of the link itself."
8622 msgstr ""
8623
8624 # type: =head2
8625 #: ../src/guestfs-actions.pod:2570
8626 msgid "guestfs_list_devices"
8627 msgstr ""
8628
8629 # type: verbatim
8630 #: ../src/guestfs-actions.pod:2572
8631 #, no-wrap
8632 msgid ""
8633 " char **guestfs_list_devices (guestfs_h *g);\n"
8634 "\n"
8635 msgstr ""
8636
8637 # type: textblock
8638 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:2031
8639 msgid "List all the block devices."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:2033
8644 msgid "The full block device names are returned, eg. C</dev/sda>."
8645 msgstr ""
8646
8647 # type: =head2
8648 #: ../src/guestfs-actions.pod:2584
8649 msgid "guestfs_list_filesystems"
8650 msgstr ""
8651
8652 # type: verbatim
8653 #: ../src/guestfs-actions.pod:2586
8654 #, no-wrap
8655 msgid ""
8656 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8657 "\n"
8658 msgstr ""
8659
8660 # type: textblock
8661 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:2041
8662 msgid ""
8663 "This inspection command looks for filesystems on partitions, block devices "
8664 "and logical volumes, returning a list of devices containing filesystems and "
8665 "their type."
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:2045
8670 msgid ""
8671 "The return value is a hash, where the keys are the devices containing "
8672 "filesystems, and the values are the filesystem types.  For example:"
8673 msgstr ""
8674
8675 # type: verbatim
8676 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:2049
8677 #, no-wrap
8678 msgid ""
8679 " \"/dev/sda1\" => \"ntfs\"\n"
8680 " \"/dev/sda2\" => \"ext2\"\n"
8681 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8682 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8683 "\n"
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:2054
8688 msgid ""
8689 "The value can have the special value \"unknown\", meaning the content of the "
8690 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8691 msgstr ""
8692
8693 # type: textblock
8694 #: ../src/guestfs-actions.pod:2605
8695 msgid ""
8696 "This command runs other libguestfs commands, which might include "
8697 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8698 "soon after launch and only when nothing is mounted."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2609
8703 msgid ""
8704 "Not all of the filesystems returned will be mountable.  In particular, swap "
8705 "partitions are returned in the list.  Also this command does not check that "
8706 "each filesystem found is valid and mountable, and some filesystems might be "
8707 "mountable but require special options.  Filesystems may not all belong to a "
8708 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8709 msgstr ""
8710
8711 # type: =head2
8712 #: ../src/guestfs-actions.pod:2623
8713 msgid "guestfs_list_partitions"
8714 msgstr ""
8715
8716 # type: verbatim
8717 #: ../src/guestfs-actions.pod:2625
8718 #, no-wrap
8719 msgid ""
8720 " char **guestfs_list_partitions (guestfs_h *g);\n"
8721 "\n"
8722 msgstr ""
8723
8724 # type: textblock
8725 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:2074
8726 msgid "List all the partitions detected on all block devices."
8727 msgstr ""
8728
8729 # type: textblock
8730 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:2076
8731 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8732 msgstr ""
8733
8734 # type: textblock
8735 #: ../src/guestfs-actions.pod:2631
8736 msgid ""
8737 "This does not return logical volumes.  For that you will need to call "
8738 "C<guestfs_lvs>."
8739 msgstr ""
8740
8741 # type: =head2
8742 #: ../src/guestfs-actions.pod:2640
8743 msgid "guestfs_ll"
8744 msgstr ""
8745
8746 # type: verbatim
8747 #: ../src/guestfs-actions.pod:2642
8748 #, no-wrap
8749 msgid ""
8750 " char *guestfs_ll (guestfs_h *g,\n"
8751 "\t\tconst char *directory);\n"
8752 "\n"
8753 msgstr ""
8754
8755 # type: textblock
8756 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:2087
8757 msgid ""
8758 "List the files in C<directory> (relative to the root directory, there is no "
8759 "cwd) in the format of 'ls -la'."
8760 msgstr ""
8761
8762 # type: textblock
8763 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:2090
8764 msgid ""
8765 "This command is mostly useful for interactive sessions.  It is I<not> "
8766 "intended that you try to parse the output string."
8767 msgstr ""
8768
8769 # type: =head2
8770 #: ../src/guestfs-actions.pod:2654
8771 msgid "guestfs_ln"
8772 msgstr ""
8773
8774 # type: verbatim
8775 #: ../src/guestfs-actions.pod:2656
8776 #, no-wrap
8777 msgid ""
8778 " int guestfs_ln (guestfs_h *g,\n"
8779 "\t\tconst char *target,\n"
8780 "\t\tconst char *linkname);\n"
8781 "\n"
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:2097
8786 msgid "This command creates a hard link using the C<ln> command."
8787 msgstr ""
8788
8789 # type: =head2
8790 #: ../src/guestfs-actions.pod:2664
8791 msgid "guestfs_ln_f"
8792 msgstr ""
8793
8794 # type: verbatim
8795 #: ../src/guestfs-actions.pod:2666
8796 #, no-wrap
8797 msgid ""
8798 " int guestfs_ln_f (guestfs_h *g,\n"
8799 "\t\tconst char *target,\n"
8800 "\t\tconst char *linkname);\n"
8801 "\n"
8802 msgstr ""
8803
8804 # type: textblock
8805 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:2103
8806 msgid ""
8807 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8808 "option removes the link (C<linkname>) if it exists already."
8809 msgstr ""
8810
8811 # type: =head2
8812 #: ../src/guestfs-actions.pod:2675
8813 msgid "guestfs_ln_s"
8814 msgstr ""
8815
8816 # type: verbatim
8817 #: ../src/guestfs-actions.pod:2677
8818 #, no-wrap
8819 msgid ""
8820 " int guestfs_ln_s (guestfs_h *g,\n"
8821 "\t\tconst char *target,\n"
8822 "\t\tconst char *linkname);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2681 ../fish/guestfish-actions.pod:2110
8828 msgid "This command creates a symbolic link using the C<ln -s> command."
8829 msgstr ""
8830
8831 # type: =head2
8832 #: ../src/guestfs-actions.pod:2685
8833 msgid "guestfs_ln_sf"
8834 msgstr ""
8835
8836 # type: verbatim
8837 #: ../src/guestfs-actions.pod:2687
8838 #, no-wrap
8839 msgid ""
8840 " int guestfs_ln_sf (guestfs_h *g,\n"
8841 "\t\tconst char *target,\n"
8842 "\t\tconst char *linkname);\n"
8843 "\n"
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2691 ../fish/guestfish-actions.pod:2116
8848 msgid ""
8849 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8850 "option removes the link (C<linkname>) if it exists already."
8851 msgstr ""
8852
8853 # type: =head2
8854 #: ../src/guestfs-actions.pod:2696
8855 msgid "guestfs_lremovexattr"
8856 msgstr ""
8857
8858 # type: verbatim
8859 #: ../src/guestfs-actions.pod:2698
8860 #, no-wrap
8861 msgid ""
8862 " int guestfs_lremovexattr (guestfs_h *g,\n"
8863 "\t\tconst char *xattr,\n"
8864 "\t\tconst char *path);\n"
8865 "\n"
8866 msgstr ""
8867
8868 # type: textblock
8869 #: ../src/guestfs-actions.pod:2702
8870 msgid ""
8871 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8872 "link, then it removes an extended attribute of the link itself."
8873 msgstr ""
8874
8875 # type: =head2
8876 #: ../src/guestfs-actions.pod:2708
8877 msgid "guestfs_ls"
8878 msgstr ""
8879
8880 # type: verbatim
8881 #: ../src/guestfs-actions.pod:2710
8882 #, no-wrap
8883 msgid ""
8884 " char **guestfs_ls (guestfs_h *g,\n"
8885 "\t\tconst char *directory);\n"
8886 "\n"
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:2131
8891 msgid ""
8892 "List the files in C<directory> (relative to the root directory, there is no "
8893 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:2717
8898 msgid ""
8899 "This command is mostly useful for interactive sessions.  Programs should "
8900 "probably use C<guestfs_readdir> instead."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:2724
8905 msgid "guestfs_lsetxattr"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:2726
8910 #, no-wrap
8911 msgid ""
8912 " int guestfs_lsetxattr (guestfs_h *g,\n"
8913 "\t\tconst char *xattr,\n"
8914 "\t\tconst char *val,\n"
8915 "\t\tint vallen,\n"
8916 "\t\tconst char *path);\n"
8917 "\n"
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:2732
8922 msgid ""
8923 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8924 "then it sets an extended attribute of the link itself."
8925 msgstr ""
8926
8927 # type: =head2
8928 #: ../src/guestfs-actions.pod:2738
8929 msgid "guestfs_lstat"
8930 msgstr ""
8931
8932 # type: verbatim
8933 #: ../src/guestfs-actions.pod:2740
8934 #, no-wrap
8935 msgid ""
8936 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8937 "\t\tconst char *path);\n"
8938 "\n"
8939 msgstr ""
8940
8941 # type: textblock
8942 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:4819
8943 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:3732
8944 msgid "Returns file information for the given C<path>."
8945 msgstr ""
8946
8947 # type: textblock
8948 #: ../src/guestfs-actions.pod:2745
8949 msgid ""
8950 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8951 "link, then the link is stat-ed, not the file it refers to."
8952 msgstr ""
8953
8954 # type: textblock
8955 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:2156
8956 msgid "This is the same as the C<lstat(2)> system call."
8957 msgstr ""
8958
8959 # type: textblock
8960 #: ../src/guestfs-actions.pod:2751 ../src/guestfs-actions.pod:4823
8961 msgid ""
8962 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8963 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8964 msgstr ""
8965
8966 # type: =head2
8967 #: ../src/guestfs-actions.pod:2755
8968 msgid "guestfs_lstatlist"
8969 msgstr ""
8970
8971 # type: verbatim
8972 #: ../src/guestfs-actions.pod:2757
8973 #, no-wrap
8974 msgid ""
8975 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8976 "\t\tconst char *path,\n"
8977 "\t\tchar *const *names);\n"
8978 "\n"
8979 msgstr ""
8980
8981 # type: textblock
8982 #: ../src/guestfs-actions.pod:2761
8983 msgid ""
8984 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8985 "files, where all files are in the directory C<path>.  C<names> is the list "
8986 "of files from this directory."
8987 msgstr ""
8988
8989 # type: textblock
8990 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:2166
8991 msgid ""
8992 "On return you get a list of stat structs, with a one-to-one correspondence "
8993 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8994 "then the C<ino> field of that structure is set to C<-1>."
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:2770
8999 msgid ""
9000 "This call is intended for programs that want to efficiently list a directory "
9001 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9002 "for a similarly efficient call for getting extended attributes.  Very long "
9003 "directory listings might cause the protocol message size to be exceeded, "
9004 "causing this call to fail.  The caller must split up such requests into "
9005 "smaller groups of names."
9006 msgstr ""
9007
9008 # type: textblock
9009 #: ../src/guestfs-actions.pod:2778
9010 msgid ""
9011 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9012 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9013 "C<guestfs_free_stat_list> after use>."
9014 msgstr ""
9015
9016 # type: =head2
9017 #: ../src/guestfs-actions.pod:2783
9018 msgid "guestfs_luks_add_key"
9019 msgstr ""
9020
9021 # type: verbatim
9022 #: ../src/guestfs-actions.pod:2785
9023 #, no-wrap
9024 msgid ""
9025 " int guestfs_luks_add_key (guestfs_h *g,\n"
9026 "\t\tconst char *device,\n"
9027 "\t\tconst char *key,\n"
9028 "\t\tconst char *newkey,\n"
9029 "\t\tint keyslot);\n"
9030 "\n"
9031 msgstr ""
9032
9033 # type: textblock
9034 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:2183
9035 msgid ""
9036 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9037 "existing key, and is used to access the device.  C<newkey> is the new key to "
9038 "add.  C<keyslot> is the key slot that will be replaced."
9039 msgstr ""
9040
9041 # type: textblock
9042 #: ../src/guestfs-actions.pod:2796
9043 msgid ""
9044 "Note that if C<keyslot> already contains a key, then this command will "
9045 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2836
9050 #: ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:2873
9051 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:2918
9052 msgid ""
9053 "This function takes a key or passphrase parameter which could contain "
9054 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9055 "information."
9056 msgstr ""
9057
9058 # type: =head2
9059 #: ../src/guestfs-actions.pod:2806
9060 msgid "guestfs_luks_close"
9061 msgstr ""
9062
9063 # type: verbatim
9064 #: ../src/guestfs-actions.pod:2808
9065 #, no-wrap
9066 msgid ""
9067 " int guestfs_luks_close (guestfs_h *g,\n"
9068 "\t\tconst char *device);\n"
9069 "\n"
9070 msgstr ""
9071
9072 # type: textblock
9073 #: ../src/guestfs-actions.pod:2811
9074 msgid ""
9075 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9076 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9077 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9078 "underlying block device."
9079 msgstr ""
9080
9081 # type: =head2
9082 #: ../src/guestfs-actions.pod:2819
9083 msgid "guestfs_luks_format"
9084 msgstr ""
9085
9086 # type: verbatim
9087 #: ../src/guestfs-actions.pod:2821
9088 #, no-wrap
9089 msgid ""
9090 " int guestfs_luks_format (guestfs_h *g,\n"
9091 "\t\tconst char *device,\n"
9092 "\t\tconst char *key,\n"
9093 "\t\tint keyslot);\n"
9094 "\n"
9095 msgstr ""
9096
9097 # type: textblock
9098 #: ../src/guestfs-actions.pod:2826 ../fish/guestfish-actions.pod:2209
9099 msgid ""
9100 "This command erases existing data on C<device> and formats the device as a "
9101 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9102 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9103 msgstr ""
9104
9105 # type: textblock
9106 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2853
9107 #: ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:3699
9108 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:4681
9109 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4724
9110 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:2217
9111 #: ../fish/guestfish-actions.pod:2230 ../fish/guestfish-actions.pod:2314
9112 #: ../fish/guestfish-actions.pod:2844 ../fish/guestfish-actions.pod:3351
9113 #: ../fish/guestfish-actions.pod:3631 ../fish/guestfish-actions.pod:3647
9114 #: ../fish/guestfish-actions.pod:3662 ../fish/guestfish-actions.pod:4377
9115 msgid ""
9116 "B<This command is dangerous.  Without careful use you can easily destroy all "
9117 "your data>."
9118 msgstr ""
9119
9120 # type: =head2
9121 #: ../src/guestfs-actions.pod:2840
9122 msgid "guestfs_luks_format_cipher"
9123 msgstr ""
9124
9125 # type: verbatim
9126 #: ../src/guestfs-actions.pod:2842
9127 #, no-wrap
9128 msgid ""
9129 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
9130 "\t\tconst char *device,\n"
9131 "\t\tconst char *key,\n"
9132 "\t\tint keyslot,\n"
9133 "\t\tconst char *cipher);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2848
9139 msgid ""
9140 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9141 "set the C<cipher> used."
9142 msgstr ""
9143
9144 # type: =head2
9145 #: ../src/guestfs-actions.pod:2860
9146 msgid "guestfs_luks_kill_slot"
9147 msgstr ""
9148
9149 # type: verbatim
9150 #: ../src/guestfs-actions.pod:2862
9151 #, no-wrap
9152 msgid ""
9153 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
9154 "\t\tconst char *device,\n"
9155 "\t\tconst char *key,\n"
9156 "\t\tint keyslot);\n"
9157 "\n"
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:2237
9162 msgid ""
9163 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9164 "device C<device>.  C<key> must be one of the I<other> keys."
9165 msgstr ""
9166
9167 # type: =head2
9168 #: ../src/guestfs-actions.pod:2877
9169 msgid "guestfs_luks_open"
9170 msgstr ""
9171
9172 # type: verbatim
9173 #: ../src/guestfs-actions.pod:2879
9174 #, no-wrap
9175 msgid ""
9176 " int guestfs_luks_open (guestfs_h *g,\n"
9177 "\t\tconst char *device,\n"
9178 "\t\tconst char *key,\n"
9179 "\t\tconst char *mapname);\n"
9180 "\n"
9181 msgstr ""
9182
9183 # type: textblock
9184 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:2248
9185 msgid ""
9186 "This command opens a block device which has been encrypted according to the "
9187 "Linux Unified Key Setup (LUKS) standard."
9188 msgstr ""
9189
9190 # type: textblock
9191 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:2251
9192 msgid "C<device> is the encrypted block device or partition."
9193 msgstr ""
9194
9195 # type: textblock
9196 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:2253
9197 msgid ""
9198 "The caller must supply one of the keys associated with the LUKS block "
9199 "device, in the C<key> parameter."
9200 msgstr ""
9201
9202 # type: textblock
9203 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2256
9204 msgid ""
9205 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9206 "writes to this block device are decrypted from and encrypted to the "
9207 "underlying C<device> respectively."
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:2896
9212 msgid ""
9213 "If this block device contains LVM volume groups, then calling "
9214 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9215 "visible."
9216 msgstr ""
9217
9218 # type: =head2
9219 #: ../src/guestfs-actions.pod:2906
9220 msgid "guestfs_luks_open_ro"
9221 msgstr ""
9222
9223 # type: verbatim
9224 #: ../src/guestfs-actions.pod:2908
9225 #, no-wrap
9226 msgid ""
9227 " int guestfs_luks_open_ro (guestfs_h *g,\n"
9228 "\t\tconst char *device,\n"
9229 "\t\tconst char *key,\n"
9230 "\t\tconst char *mapname);\n"
9231 "\n"
9232 msgstr ""
9233
9234 # type: textblock
9235 #: ../src/guestfs-actions.pod:2913
9236 msgid ""
9237 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9238 "created."
9239 msgstr ""
9240
9241 # type: =head2
9242 #: ../src/guestfs-actions.pod:2922
9243 msgid "guestfs_lvcreate"
9244 msgstr ""
9245
9246 # type: verbatim
9247 #: ../src/guestfs-actions.pod:2924
9248 #, no-wrap
9249 msgid ""
9250 " int guestfs_lvcreate (guestfs_h *g,\n"
9251 "\t\tconst char *logvol,\n"
9252 "\t\tconst char *volgroup,\n"
9253 "\t\tint mbytes);\n"
9254 "\n"
9255 msgstr ""
9256
9257 # type: textblock
9258 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2281
9259 msgid ""
9260 "This creates an LVM logical volume called C<logvol> on the volume group "
9261 "C<volgroup>, with C<size> megabytes."
9262 msgstr ""
9263
9264 # type: =head2
9265 #: ../src/guestfs-actions.pod:2934
9266 msgid "guestfs_lvm_canonical_lv_name"
9267 msgstr ""
9268
9269 # type: verbatim
9270 #: ../src/guestfs-actions.pod:2936
9271 #, no-wrap
9272 msgid ""
9273 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9274 "\t\tconst char *lvname);\n"
9275 "\n"
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:2939 ../fish/guestfish-actions.pod:2288
9280 msgid ""
9281 "This converts alternative naming schemes for LVs that you might find to the "
9282 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9283 "LV>."
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2292
9288 msgid ""
9289 "This command returns an error if the C<lvname> parameter does not refer to a "
9290 "logical volume."
9291 msgstr ""
9292
9293 # type: textblock
9294 #: ../src/guestfs-actions.pod:2946
9295 msgid "See also C<guestfs_is_lv>."
9296 msgstr ""
9297
9298 # type: =head2
9299 #: ../src/guestfs-actions.pod:2951
9300 msgid "guestfs_lvm_clear_filter"
9301 msgstr ""
9302
9303 # type: verbatim
9304 #: ../src/guestfs-actions.pod:2953
9305 #, no-wrap
9306 msgid ""
9307 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
9308 "\n"
9309 msgstr ""
9310
9311 # type: textblock
9312 #: ../src/guestfs-actions.pod:2955
9313 msgid ""
9314 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9315 "see every block device."
9316 msgstr ""
9317
9318 # type: textblock
9319 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:2994
9320 #: ../fish/guestfish-actions.pod:2304 ../fish/guestfish-actions.pod:2335
9321 msgid ""
9322 "This command also clears the LVM cache and performs a volume group scan."
9323 msgstr ""
9324
9325 # type: =head2
9326 #: ../src/guestfs-actions.pod:2963
9327 msgid "guestfs_lvm_remove_all"
9328 msgstr ""
9329
9330 # type: verbatim
9331 #: ../src/guestfs-actions.pod:2965
9332 #, no-wrap
9333 msgid ""
9334 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9335 "\n"
9336 msgstr ""
9337
9338 # type: textblock
9339 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2311
9340 msgid ""
9341 "This command removes all LVM logical volumes, volume groups and physical "
9342 "volumes."
9343 msgstr ""
9344
9345 # type: =head2
9346 #: ../src/guestfs-actions.pod:2975
9347 msgid "guestfs_lvm_set_filter"
9348 msgstr ""
9349
9350 # type: verbatim
9351 #: ../src/guestfs-actions.pod:2977
9352 #, no-wrap
9353 msgid ""
9354 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9355 "\t\tchar *const *devices);\n"
9356 "\n"
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2980 ../fish/guestfish-actions.pod:2321
9361 msgid ""
9362 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9363 "block devices in the list C<devices>, and will ignore all other attached "
9364 "block devices."
9365 msgstr ""
9366
9367 # type: textblock
9368 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2325
9369 msgid ""
9370 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9371 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9372 "there are two types of duplication possible: either cloned PVs/VGs which "
9373 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9374 "same name.  In normal operation you cannot create this situation, but you "
9375 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9376 "inside the LVM metadata."
9377 msgstr ""
9378
9379 # type: textblock
9380 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2338
9381 msgid "You can filter whole block devices or individual partitions."
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2340
9386 msgid ""
9387 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9388 "filesystem), even if you are not filtering out that VG."
9389 msgstr ""
9390
9391 # type: =head2
9392 #: ../src/guestfs-actions.pod:3005
9393 msgid "guestfs_lvremove"
9394 msgstr ""
9395
9396 # type: verbatim
9397 #: ../src/guestfs-actions.pod:3007
9398 #, no-wrap
9399 msgid ""
9400 " int guestfs_lvremove (guestfs_h *g,\n"
9401 "\t\tconst char *device);\n"
9402 "\n"
9403 msgstr ""
9404
9405 # type: textblock
9406 #: ../src/guestfs-actions.pod:3010 ../fish/guestfish-actions.pod:2348
9407 msgid ""
9408 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9409 "LV, such as C</dev/VG/LV>."
9410 msgstr ""
9411
9412 # type: textblock
9413 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2351
9414 msgid ""
9415 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9416 "dev/VG>."
9417 msgstr ""
9418
9419 # type: =head2
9420 #: ../src/guestfs-actions.pod:3018
9421 msgid "guestfs_lvrename"
9422 msgstr ""
9423
9424 # type: verbatim
9425 #: ../src/guestfs-actions.pod:3020
9426 #, no-wrap
9427 msgid ""
9428 " int guestfs_lvrename (guestfs_h *g,\n"
9429 "\t\tconst char *logvol,\n"
9430 "\t\tconst char *newlogvol);\n"
9431 "\n"
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2358
9436 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9437 msgstr ""
9438
9439 # type: =head2
9440 #: ../src/guestfs-actions.pod:3028
9441 msgid "guestfs_lvresize"
9442 msgstr ""
9443
9444 # type: verbatim
9445 #: ../src/guestfs-actions.pod:3030
9446 #, no-wrap
9447 msgid ""
9448 " int guestfs_lvresize (guestfs_h *g,\n"
9449 "\t\tconst char *device,\n"
9450 "\t\tint mbytes);\n"
9451 "\n"
9452 msgstr ""
9453
9454 # type: textblock
9455 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2364
9456 msgid ""
9457 "This resizes (expands or shrinks) an existing LVM logical volume to "
9458 "C<mbytes>.  When reducing, data in the reduced part is lost."
9459 msgstr ""
9460
9461 # type: =head2
9462 #: ../src/guestfs-actions.pod:3040
9463 msgid "guestfs_lvresize_free"
9464 msgstr ""
9465
9466 # type: verbatim
9467 #: ../src/guestfs-actions.pod:3042
9468 #, no-wrap
9469 msgid ""
9470 " int guestfs_lvresize_free (guestfs_h *g,\n"
9471 "\t\tconst char *lv,\n"
9472 "\t\tint percent);\n"
9473 "\n"
9474 msgstr ""
9475
9476 # type: textblock
9477 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2372
9478 msgid ""
9479 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9480 "remaining free space in the volume group.  Commonly you would call this with "
9481 "pc = 100 which expands the logical volume as much as possible, using all "
9482 "remaining free space in the volume group."
9483 msgstr ""
9484
9485 # type: =head2
9486 #: ../src/guestfs-actions.pod:3054
9487 msgid "guestfs_lvs"
9488 msgstr ""
9489
9490 # type: verbatim
9491 #: ../src/guestfs-actions.pod:3056
9492 #, no-wrap
9493 msgid ""
9494 " char **guestfs_lvs (guestfs_h *g);\n"
9495 "\n"
9496 msgstr ""
9497
9498 # type: textblock
9499 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2382
9500 msgid ""
9501 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9502 "(8)> command."
9503 msgstr ""
9504
9505 # type: textblock
9506 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2385
9507 msgid ""
9508 "This returns a list of the logical volume device names (eg. C</dev/"
9509 "VolGroup00/LogVol00>)."
9510 msgstr ""
9511
9512 # type: textblock
9513 #: ../src/guestfs-actions.pod:3064
9514 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9515 msgstr ""
9516
9517 # type: =head2
9518 #: ../src/guestfs-actions.pod:3070
9519 msgid "guestfs_lvs_full"
9520 msgstr ""
9521
9522 # type: verbatim
9523 #: ../src/guestfs-actions.pod:3072
9524 #, no-wrap
9525 msgid ""
9526 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9527 "\n"
9528 msgstr ""
9529
9530 # type: textblock
9531 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2394
9532 msgid ""
9533 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9534 "(8)> command.  The \"full\" version includes all fields."
9535 msgstr ""
9536
9537 # type: textblock
9538 #: ../src/guestfs-actions.pod:3077
9539 msgid ""
9540 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9541 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9542 "C<guestfs_free_lvm_lv_list> after use>."
9543 msgstr ""
9544
9545 # type: =head2
9546 #: ../src/guestfs-actions.pod:3082
9547 msgid "guestfs_lvuuid"
9548 msgstr ""
9549
9550 # type: verbatim
9551 #: ../src/guestfs-actions.pod:3084
9552 #, no-wrap
9553 msgid ""
9554 " char *guestfs_lvuuid (guestfs_h *g,\n"
9555 "\t\tconst char *device);\n"
9556 "\n"
9557 msgstr ""
9558
9559 # type: textblock
9560 #: ../src/guestfs-actions.pod:3087 ../fish/guestfish-actions.pod:2401
9561 msgid "This command returns the UUID of the LVM LV C<device>."
9562 msgstr ""
9563
9564 # type: =head2
9565 #: ../src/guestfs-actions.pod:3092
9566 msgid "guestfs_lxattrlist"
9567 msgstr ""
9568
9569 # type: verbatim
9570 #: ../src/guestfs-actions.pod:3094
9571 #, no-wrap
9572 msgid ""
9573 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9574 "\t\tconst char *path,\n"
9575 "\t\tchar *const *names);\n"
9576 "\n"
9577 msgstr ""
9578
9579 # type: textblock
9580 #: ../src/guestfs-actions.pod:3098 ../fish/guestfish-actions.pod:2407
9581 msgid ""
9582 "This call allows you to get the extended attributes of multiple files, where "
9583 "all files are in the directory C<path>.  C<names> is the list of files from "
9584 "this directory."
9585 msgstr ""
9586
9587 # type: textblock
9588 #: ../src/guestfs-actions.pod:3102 ../fish/guestfish-actions.pod:2411
9589 msgid ""
9590 "On return you get a flat list of xattr structs which must be interpreted "
9591 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9592 "C<attrval> in this struct is zero-length to indicate there was an error "
9593 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9594 "number (the number of following attributes for this file, which could be C<"
9595 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9596 "for the first named file.  This repeats for the second and subsequent files."
9597 msgstr ""
9598
9599 # type: textblock
9600 #: ../src/guestfs-actions.pod:3112
9601 msgid ""
9602 "This call is intended for programs that want to efficiently list a directory "
9603 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9604 "a similarly efficient call for getting standard stats.  Very long directory "
9605 "listings might cause the protocol message size to be exceeded, causing this "
9606 "call to fail.  The caller must split up such requests into smaller groups of "
9607 "names."
9608 msgstr ""
9609
9610 # type: =head2
9611 #: ../src/guestfs-actions.pod:3125
9612 msgid "guestfs_mkdir"
9613 msgstr ""
9614
9615 # type: verbatim
9616 #: ../src/guestfs-actions.pod:3127
9617 #, no-wrap
9618 msgid ""
9619 " int guestfs_mkdir (guestfs_h *g,\n"
9620 "\t\tconst char *path);\n"
9621 "\n"
9622 msgstr ""
9623
9624 # type: textblock
9625 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2433
9626 msgid "Create a directory named C<path>."
9627 msgstr ""
9628
9629 # type: =head2
9630 #: ../src/guestfs-actions.pod:3134
9631 msgid "guestfs_mkdir_mode"
9632 msgstr ""
9633
9634 # type: verbatim
9635 #: ../src/guestfs-actions.pod:3136
9636 #, no-wrap
9637 msgid ""
9638 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9639 "\t\tconst char *path,\n"
9640 "\t\tint mode);\n"
9641 "\n"
9642 msgstr ""
9643
9644 # type: textblock
9645 #: ../src/guestfs-actions.pod:3140 ../fish/guestfish-actions.pod:2439
9646 msgid ""
9647 "This command creates a directory, setting the initial permissions of the "
9648 "directory to C<mode>."
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2442
9653 msgid ""
9654 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9655 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9656 "other ways."
9657 msgstr ""
9658
9659 # type: textblock
9660 #: ../src/guestfs-actions.pod:3147
9661 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9662 msgstr ""
9663
9664 # type: =head2
9665 #: ../src/guestfs-actions.pod:3151
9666 msgid "guestfs_mkdir_p"
9667 msgstr ""
9668
9669 # type: verbatim
9670 #: ../src/guestfs-actions.pod:3153
9671 #, no-wrap
9672 msgid ""
9673 " int guestfs_mkdir_p (guestfs_h *g,\n"
9674 "\t\tconst char *path);\n"
9675 "\n"
9676 msgstr ""
9677
9678 # type: textblock
9679 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2452
9680 msgid ""
9681 "Create a directory named C<path>, creating any parent directories as "
9682 "necessary.  This is like the C<mkdir -p> shell command."
9683 msgstr ""
9684
9685 # type: =head2
9686 #: ../src/guestfs-actions.pod:3161
9687 msgid "guestfs_mkdtemp"
9688 msgstr ""
9689
9690 # type: verbatim
9691 #: ../src/guestfs-actions.pod:3163
9692 #, no-wrap
9693 msgid ""
9694 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9695 "\t\tconst char *template);\n"
9696 "\n"
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2459
9701 msgid ""
9702 "This command creates a temporary directory.  The C<template> parameter "
9703 "should be a full pathname for the temporary directory name with the final "
9704 "six characters being \"XXXXXX\"."
9705 msgstr ""
9706
9707 # type: textblock
9708 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2464
9709 msgid ""
9710 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9711 "being suitable for Windows filesystems."
9712 msgstr ""
9713
9714 # type: textblock
9715 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2467
9716 msgid "The name of the temporary directory that was created is returned."
9717 msgstr ""
9718
9719 # type: textblock
9720 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2470
9721 msgid "The temporary directory is created with mode 0700 and is owned by root."
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2473
9726 msgid ""
9727 "The caller is responsible for deleting the temporary directory and its "
9728 "contents after use."
9729 msgstr ""
9730
9731 # type: textblock
9732 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2476
9733 msgid "See also: L<mkdtemp(3)>"
9734 msgstr ""
9735
9736 # type: =head2
9737 #: ../src/guestfs-actions.pod:3188
9738 msgid "guestfs_mke2fs_J"
9739 msgstr ""
9740
9741 # type: verbatim
9742 #: ../src/guestfs-actions.pod:3190
9743 #, no-wrap
9744 msgid ""
9745 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9746 "\t\tconst char *fstype,\n"
9747 "\t\tint blocksize,\n"
9748 "\t\tconst char *device,\n"
9749 "\t\tconst char *journal);\n"
9750 "\n"
9751 msgstr ""
9752
9753 # type: textblock
9754 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2482
9755 msgid ""
9756 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9757 "C<journal>.  It is equivalent to the command:"
9758 msgstr ""
9759
9760 # type: verbatim
9761 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2486
9762 #, no-wrap
9763 msgid ""
9764 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9765 "\n"
9766 msgstr ""
9767
9768 # type: textblock
9769 #: ../src/guestfs-actions.pod:3202
9770 msgid "See also C<guestfs_mke2journal>."
9771 msgstr ""
9772
9773 # type: =head2
9774 #: ../src/guestfs-actions.pod:3206
9775 msgid "guestfs_mke2fs_JL"
9776 msgstr ""
9777
9778 # type: verbatim
9779 #: ../src/guestfs-actions.pod:3208
9780 #, no-wrap
9781 msgid ""
9782 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9783 "\t\tconst char *fstype,\n"
9784 "\t\tint blocksize,\n"
9785 "\t\tconst char *device,\n"
9786 "\t\tconst char *label);\n"
9787 "\n"
9788 msgstr ""
9789
9790 # type: textblock
9791 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2494
9792 msgid ""
9793 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9794 "the journal labeled C<label>."
9795 msgstr ""
9796
9797 # type: textblock
9798 #: ../src/guestfs-actions.pod:3217
9799 msgid "See also C<guestfs_mke2journal_L>."
9800 msgstr ""
9801
9802 # type: =head2
9803 #: ../src/guestfs-actions.pod:3221
9804 msgid "guestfs_mke2fs_JU"
9805 msgstr ""
9806
9807 # type: verbatim
9808 #: ../src/guestfs-actions.pod:3223
9809 #, no-wrap
9810 msgid ""
9811 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9812 "\t\tconst char *fstype,\n"
9813 "\t\tint blocksize,\n"
9814 "\t\tconst char *device,\n"
9815 "\t\tconst char *uuid);\n"
9816 "\n"
9817 msgstr ""
9818
9819 # type: textblock
9820 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2503
9821 msgid ""
9822 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9823 "the journal with UUID C<uuid>."
9824 msgstr ""
9825
9826 # type: textblock
9827 #: ../src/guestfs-actions.pod:3232
9828 msgid "See also C<guestfs_mke2journal_U>."
9829 msgstr ""
9830
9831 # type: =head2
9832 #: ../src/guestfs-actions.pod:3236
9833 msgid "guestfs_mke2journal"
9834 msgstr ""
9835
9836 # type: verbatim
9837 #: ../src/guestfs-actions.pod:3238
9838 #, no-wrap
9839 msgid ""
9840 " int guestfs_mke2journal (guestfs_h *g,\n"
9841 "\t\tint blocksize,\n"
9842 "\t\tconst char *device);\n"
9843 "\n"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2512
9848 msgid ""
9849 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9850 "command:"
9851 msgstr ""
9852
9853 # type: verbatim
9854 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2515
9855 #, no-wrap
9856 msgid ""
9857 " mke2fs -O journal_dev -b blocksize device\n"
9858 "\n"
9859 msgstr ""
9860
9861 # type: =head2
9862 #: ../src/guestfs-actions.pod:3249
9863 msgid "guestfs_mke2journal_L"
9864 msgstr ""
9865
9866 # type: verbatim
9867 #: ../src/guestfs-actions.pod:3251
9868 #, no-wrap
9869 msgid ""
9870 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9871 "\t\tint blocksize,\n"
9872 "\t\tconst char *label,\n"
9873 "\t\tconst char *device);\n"
9874 "\n"
9875 msgstr ""
9876
9877 # type: textblock
9878 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2521
9879 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9880 msgstr ""
9881
9882 # type: =head2
9883 #: ../src/guestfs-actions.pod:3260
9884 msgid "guestfs_mke2journal_U"
9885 msgstr ""
9886
9887 # type: verbatim
9888 #: ../src/guestfs-actions.pod:3262
9889 #, no-wrap
9890 msgid ""
9891 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9892 "\t\tint blocksize,\n"
9893 "\t\tconst char *uuid,\n"
9894 "\t\tconst char *device);\n"
9895 "\n"
9896 msgstr ""
9897
9898 # type: textblock
9899 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2527
9900 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9901 msgstr ""
9902
9903 # type: =head2
9904 #: ../src/guestfs-actions.pod:3271
9905 msgid "guestfs_mkfifo"
9906 msgstr ""
9907
9908 # type: verbatim
9909 #: ../src/guestfs-actions.pod:3273
9910 #, no-wrap
9911 msgid ""
9912 " int guestfs_mkfifo (guestfs_h *g,\n"
9913 "\t\tint mode,\n"
9914 "\t\tconst char *path);\n"
9915 "\n"
9916 msgstr ""
9917
9918 # type: textblock
9919 #: ../src/guestfs-actions.pod:3277
9920 msgid ""
9921 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9922 "is just a convenient wrapper around C<guestfs_mknod>."
9923 msgstr ""
9924
9925 # type: =head2
9926 #: ../src/guestfs-actions.pod:3285
9927 msgid "guestfs_mkfs"
9928 msgstr ""
9929
9930 # type: verbatim
9931 #: ../src/guestfs-actions.pod:3287
9932 #, no-wrap
9933 msgid ""
9934 " int guestfs_mkfs (guestfs_h *g,\n"
9935 "\t\tconst char *fstype,\n"
9936 "\t\tconst char *device);\n"
9937 "\n"
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2543
9942 msgid ""
9943 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9944 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9945 msgstr ""
9946
9947 # type: =head2
9948 #: ../src/guestfs-actions.pod:3297
9949 msgid "guestfs_mkfs_b"
9950 msgstr ""
9951
9952 # type: verbatim
9953 #: ../src/guestfs-actions.pod:3299
9954 #, no-wrap
9955 msgid ""
9956 " int guestfs_mkfs_b (guestfs_h *g,\n"
9957 "\t\tconst char *fstype,\n"
9958 "\t\tint blocksize,\n"
9959 "\t\tconst char *device);\n"
9960 "\n"
9961 msgstr ""
9962
9963 # type: textblock
9964 #: ../src/guestfs-actions.pod:3304
9965 msgid ""
9966 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9967 "block size of the resulting filesystem.  Supported block sizes depend on the "
9968 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9969 msgstr ""
9970
9971 # type: textblock
9972 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2556
9973 msgid ""
9974 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9975 "cluster size."
9976 msgstr ""
9977
9978 # type: =head2
9979 #: ../src/guestfs-actions.pod:3314
9980 msgid "guestfs_mkmountpoint"
9981 msgstr ""
9982
9983 # type: verbatim
9984 #: ../src/guestfs-actions.pod:3316
9985 #, no-wrap
9986 msgid ""
9987 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9988 "\t\tconst char *exemptpath);\n"
9989 "\n"
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../src/guestfs-actions.pod:3319
9994 msgid ""
9995 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9996 "that can be used to create extra mountpoints before mounting the first "
9997 "filesystem."
9998 msgstr ""
9999
10000 # type: textblock
10001 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2567
10002 msgid ""
10003 "These calls are I<only> necessary in some very limited circumstances, mainly "
10004 "the case where you want to mount a mix of unrelated and/or read-only "
10005 "filesystems together."
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2571
10010 msgid ""
10011 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10012 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10013 "inside that.  You can unpack this as follows in guestfish:"
10014 msgstr ""
10015
10016 # type: verbatim
10017 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2576
10018 #, no-wrap
10019 msgid ""
10020 " add-ro Fedora-11-i686-Live.iso\n"
10021 " run\n"
10022 " mkmountpoint /cd\n"
10023 " mkmountpoint /sqsh\n"
10024 " mkmountpoint /ext3fs\n"
10025 " mount /dev/sda /cd\n"
10026 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10027 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2585
10033 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10034 msgstr ""
10035
10036 # type: textblock
10037 #: ../src/guestfs-actions.pod:3343
10038 msgid ""
10039 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10040 "may get unexpected errors if you try to mix these calls.  It is safest to "
10041 "manually unmount filesystems and remove mountpoints after use."
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3347
10046 msgid ""
10047 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10048 "first, so for this to work for manual mountpoints, you must ensure that the "
10049 "innermost mountpoints have the longest pathnames, as in the example code "
10050 "above."
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2596
10055 msgid ""
10056 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10057 msgstr ""
10058
10059 # type: textblock
10060 #: ../src/guestfs-actions.pod:3354
10061 msgid ""
10062 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10063 "means that C<guestfs_umount_all> is called when the handle is closed which "
10064 "can also trigger these issues."
10065 msgstr ""
10066
10067 # type: =head2
10068 #: ../src/guestfs-actions.pod:3360
10069 msgid "guestfs_mknod"
10070 msgstr ""
10071
10072 # type: verbatim
10073 #: ../src/guestfs-actions.pod:3362
10074 #, no-wrap
10075 msgid ""
10076 " int guestfs_mknod (guestfs_h *g,\n"
10077 "\t\tint mode,\n"
10078 "\t\tint devmajor,\n"
10079 "\t\tint devminor,\n"
10080 "\t\tconst char *path);\n"
10081 "\n"
10082 msgstr ""
10083
10084 # type: textblock
10085 #: ../src/guestfs-actions.pod:3368 ../fish/guestfish-actions.pod:2606
10086 msgid ""
10087 "This call creates block or character special devices, or named pipes (FIFOs)."
10088 msgstr ""
10089
10090 # type: textblock
10091 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2609
10092 msgid ""
10093 "The C<mode> parameter should be the mode, using the standard constants.  "
10094 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10095 "used when creating block and character special devices."
10096 msgstr ""
10097
10098 # type: textblock
10099 #: ../src/guestfs-actions.pod:3376
10100 msgid ""
10101 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10102 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10103 "regular file).  These constants are available in the standard Linux header "
10104 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10105 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10106 "the appropriate constant for you."
10107 msgstr ""
10108
10109 # type: =head2
10110 #: ../src/guestfs-actions.pod:3388
10111 msgid "guestfs_mknod_b"
10112 msgstr ""
10113
10114 # type: verbatim
10115 #: ../src/guestfs-actions.pod:3390
10116 #, no-wrap
10117 msgid ""
10118 " int guestfs_mknod_b (guestfs_h *g,\n"
10119 "\t\tint mode,\n"
10120 "\t\tint devmajor,\n"
10121 "\t\tint devminor,\n"
10122 "\t\tconst char *path);\n"
10123 "\n"
10124 msgstr ""
10125
10126 # type: textblock
10127 #: ../src/guestfs-actions.pod:3396
10128 msgid ""
10129 "This call creates a block device node called C<path> with mode C<mode> and "
10130 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10131 "wrapper around C<guestfs_mknod>."
10132 msgstr ""
10133
10134 # type: =head2
10135 #: ../src/guestfs-actions.pod:3404
10136 msgid "guestfs_mknod_c"
10137 msgstr ""
10138
10139 # type: verbatim
10140 #: ../src/guestfs-actions.pod:3406
10141 #, no-wrap
10142 msgid ""
10143 " int guestfs_mknod_c (guestfs_h *g,\n"
10144 "\t\tint mode,\n"
10145 "\t\tint devmajor,\n"
10146 "\t\tint devminor,\n"
10147 "\t\tconst char *path);\n"
10148 "\n"
10149 msgstr ""
10150
10151 # type: textblock
10152 #: ../src/guestfs-actions.pod:3412
10153 msgid ""
10154 "This call creates a char device node called C<path> with mode C<mode> and "
10155 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10156 "wrapper around C<guestfs_mknod>."
10157 msgstr ""
10158
10159 # type: =head2
10160 #: ../src/guestfs-actions.pod:3420
10161 msgid "guestfs_mkswap"
10162 msgstr ""
10163
10164 # type: verbatim
10165 #: ../src/guestfs-actions.pod:3422
10166 #, no-wrap
10167 msgid ""
10168 " int guestfs_mkswap (guestfs_h *g,\n"
10169 "\t\tconst char *device);\n"
10170 "\n"
10171 msgstr ""
10172
10173 # type: textblock
10174 #: ../src/guestfs-actions.pod:3425 ../fish/guestfish-actions.pod:2648
10175 msgid "Create a swap partition on C<device>."
10176 msgstr ""
10177
10178 # type: =head2
10179 #: ../src/guestfs-actions.pod:3429
10180 msgid "guestfs_mkswap_L"
10181 msgstr ""
10182
10183 # type: verbatim
10184 #: ../src/guestfs-actions.pod:3431
10185 #, no-wrap
10186 msgid ""
10187 " int guestfs_mkswap_L (guestfs_h *g,\n"
10188 "\t\tconst char *label,\n"
10189 "\t\tconst char *device);\n"
10190 "\n"
10191 msgstr ""
10192
10193 # type: textblock
10194 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2654
10195 msgid "Create a swap partition on C<device> with label C<label>."
10196 msgstr ""
10197
10198 # type: textblock
10199 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2656
10200 msgid ""
10201 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10202 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10203 "or swap tools."
10204 msgstr ""
10205
10206 # type: =head2
10207 #: ../src/guestfs-actions.pod:3443
10208 msgid "guestfs_mkswap_U"
10209 msgstr ""
10210
10211 # type: verbatim
10212 #: ../src/guestfs-actions.pod:3445
10213 #, no-wrap
10214 msgid ""
10215 " int guestfs_mkswap_U (guestfs_h *g,\n"
10216 "\t\tconst char *uuid,\n"
10217 "\t\tconst char *device);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2664
10223 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10224 msgstr ""
10225
10226 # type: =head2
10227 #: ../src/guestfs-actions.pod:3453
10228 msgid "guestfs_mkswap_file"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #: ../src/guestfs-actions.pod:3455
10233 #, no-wrap
10234 msgid ""
10235 " int guestfs_mkswap_file (guestfs_h *g,\n"
10236 "\t\tconst char *path);\n"
10237 "\n"
10238 msgstr ""
10239
10240 # type: textblock
10241 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2670
10242 msgid "Create a swap file."
10243 msgstr ""
10244
10245 # type: textblock
10246 #: ../src/guestfs-actions.pod:3460
10247 msgid ""
10248 "This command just writes a swap file signature to an existing file.  To "
10249 "create the file itself, use something like C<guestfs_fallocate>."
10250 msgstr ""
10251
10252 # type: =head2
10253 #: ../src/guestfs-actions.pod:3465
10254 msgid "guestfs_modprobe"
10255 msgstr ""
10256
10257 # type: verbatim
10258 #: ../src/guestfs-actions.pod:3467
10259 #, no-wrap
10260 msgid ""
10261 " int guestfs_modprobe (guestfs_h *g,\n"
10262 "\t\tconst char *modulename);\n"
10263 "\n"
10264 msgstr ""
10265
10266 # type: textblock
10267 #: ../src/guestfs-actions.pod:3470 ../fish/guestfish-actions.pod:2679
10268 msgid "This loads a kernel module in the appliance."
10269 msgstr ""
10270
10271 # type: textblock
10272 #: ../src/guestfs-actions.pod:3472 ../fish/guestfish-actions.pod:2681
10273 msgid ""
10274 "The kernel module must have been whitelisted when libguestfs was built (see "
10275 "C<appliance/kmod.whitelist.in> in the source)."
10276 msgstr ""
10277
10278 # type: =head2
10279 #: ../src/guestfs-actions.pod:3477
10280 msgid "guestfs_mount"
10281 msgstr ""
10282
10283 # type: verbatim
10284 #: ../src/guestfs-actions.pod:3479
10285 #, no-wrap
10286 msgid ""
10287 " int guestfs_mount (guestfs_h *g,\n"
10288 "\t\tconst char *device,\n"
10289 "\t\tconst char *mountpoint);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #: ../src/guestfs-actions.pod:3483 ../fish/guestfish-actions.pod:2688
10295 msgid ""
10296 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10297 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10298 "those block devices contain partitions, they will have the usual names (eg. "
10299 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2694
10304 msgid ""
10305 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10306 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10307 "mounted on directories which already exist."
10308 msgstr ""
10309
10310 # type: textblock
10311 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2699
10312 msgid ""
10313 "The mounted filesystem is writable, if we have sufficient permissions on the "
10314 "underlying device."
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3497
10319 msgid ""
10320 "B<Important note:> When you use this call, the filesystem options C<sync> "
10321 "and C<noatime> are set implicitly.  This was originally done because we "
10322 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10323 "very large negative performance impact and negligible effect on "
10324 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10325 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10326 "(use an empty string for the first parameter if you don't want any options)."
10327 msgstr ""
10328
10329 # type: =head2
10330 #: ../src/guestfs-actions.pod:3509
10331 msgid "guestfs_mount_loop"
10332 msgstr ""
10333
10334 # type: verbatim
10335 #: ../src/guestfs-actions.pod:3511
10336 #, no-wrap
10337 msgid ""
10338 " int guestfs_mount_loop (guestfs_h *g,\n"
10339 "\t\tconst char *file,\n"
10340 "\t\tconst char *mountpoint);\n"
10341 "\n"
10342 msgstr ""
10343
10344 # type: textblock
10345 #: ../src/guestfs-actions.pod:3515 ../fish/guestfish-actions.pod:2716
10346 msgid ""
10347 "This command lets you mount C<file> (a filesystem image in a file) on a "
10348 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10349 "mountpoint>."
10350 msgstr ""
10351
10352 # type: =head2
10353 #: ../src/guestfs-actions.pod:3521
10354 msgid "guestfs_mount_options"
10355 msgstr ""
10356
10357 # type: verbatim
10358 #: ../src/guestfs-actions.pod:3523
10359 #, no-wrap
10360 msgid ""
10361 " int guestfs_mount_options (guestfs_h *g,\n"
10362 "\t\tconst char *options,\n"
10363 "\t\tconst char *device,\n"
10364 "\t\tconst char *mountpoint);\n"
10365 "\n"
10366 msgstr ""
10367
10368 # type: textblock
10369 #: ../src/guestfs-actions.pod:3528
10370 msgid ""
10371 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10372 "the mount options as for the L<mount(8)> I<-o> flag."
10373 msgstr ""
10374
10375 # type: textblock
10376 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2728
10377 msgid ""
10378 "If the C<options> parameter is an empty string, then no options are passed "
10379 "(all options default to whatever the filesystem uses)."
10380 msgstr ""
10381
10382 # type: =head2
10383 #: ../src/guestfs-actions.pod:3538
10384 msgid "guestfs_mount_ro"
10385 msgstr ""
10386
10387 # type: verbatim
10388 #: ../src/guestfs-actions.pod:3540
10389 #, no-wrap
10390 msgid ""
10391 " int guestfs_mount_ro (guestfs_h *g,\n"
10392 "\t\tconst char *device,\n"
10393 "\t\tconst char *mountpoint);\n"
10394 "\n"
10395 msgstr ""
10396
10397 # type: textblock
10398 #: ../src/guestfs-actions.pod:3544
10399 msgid ""
10400 "This is the same as the C<guestfs_mount> command, but it mounts the "
10401 "filesystem with the read-only (I<-o ro>) flag."
10402 msgstr ""
10403
10404 # type: =head2
10405 #: ../src/guestfs-actions.pod:3549
10406 msgid "guestfs_mount_vfs"
10407 msgstr ""
10408
10409 # type: verbatim
10410 #: ../src/guestfs-actions.pod:3551
10411 #, no-wrap
10412 msgid ""
10413 " int guestfs_mount_vfs (guestfs_h *g,\n"
10414 "\t\tconst char *options,\n"
10415 "\t\tconst char *vfstype,\n"
10416 "\t\tconst char *device,\n"
10417 "\t\tconst char *mountpoint);\n"
10418 "\n"
10419 msgstr ""
10420
10421 # type: textblock
10422 #: ../src/guestfs-actions.pod:3557
10423 msgid ""
10424 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10425 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10426 "t> flags."
10427 msgstr ""
10428
10429 # type: =head2
10430 #: ../src/guestfs-actions.pod:3563
10431 msgid "guestfs_mountpoints"
10432 msgstr ""
10433
10434 # type: verbatim
10435 #: ../src/guestfs-actions.pod:3565
10436 #, no-wrap
10437 msgid ""
10438 " char **guestfs_mountpoints (guestfs_h *g);\n"
10439 "\n"
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3567
10444 msgid ""
10445 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10446 "devices.  This one returns a hash table (map) of device name to directory "
10447 "where the device is mounted."
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3577
10452 msgid "guestfs_mounts"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3579
10457 #, no-wrap
10458 msgid ""
10459 " char **guestfs_mounts (guestfs_h *g);\n"
10460 "\n"
10461 msgstr ""
10462
10463 # type: textblock
10464 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2759
10465 msgid ""
10466 "This returns the list of currently mounted filesystems.  It returns the list "
10467 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10468 msgstr ""
10469
10470 # type: textblock
10471 #: ../src/guestfs-actions.pod:3584 ../fish/guestfish-actions.pod:2762
10472 msgid "Some internal mounts are not shown."
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3586
10477 msgid "See also: C<guestfs_mountpoints>"
10478 msgstr ""
10479
10480 # type: =head2
10481 #: ../src/guestfs-actions.pod:3592
10482 msgid "guestfs_mv"
10483 msgstr ""
10484
10485 # type: verbatim
10486 #: ../src/guestfs-actions.pod:3594
10487 #, no-wrap
10488 msgid ""
10489 " int guestfs_mv (guestfs_h *g,\n"
10490 "\t\tconst char *src,\n"
10491 "\t\tconst char *dest);\n"
10492 "\n"
10493 msgstr ""
10494
10495 # type: textblock
10496 #: ../src/guestfs-actions.pod:3598 ../fish/guestfish-actions.pod:2770
10497 msgid ""
10498 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10499 "destination filename or destination directory."
10500 msgstr ""
10501
10502 # type: =head2
10503 #: ../src/guestfs-actions.pod:3603
10504 msgid "guestfs_ntfs_3g_probe"
10505 msgstr ""
10506
10507 # type: verbatim
10508 #: ../src/guestfs-actions.pod:3605
10509 #, no-wrap
10510 msgid ""
10511 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10512 "\t\tint rw,\n"
10513 "\t\tconst char *device);\n"
10514 "\n"
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:3609 ../fish/guestfish-actions.pod:2777
10519 msgid ""
10520 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10521 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10522 "write, and some cannot be mounted at all)."
10523 msgstr ""
10524
10525 # type: textblock
10526 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2781
10527 msgid ""
10528 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10529 "can be mounted read-write.  Set it to false if you want to test if the "
10530 "volume can be mounted read-only."
10531 msgstr ""
10532
10533 # type: textblock
10534 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2785
10535 msgid ""
10536 "The return value is an integer which C<0> if the operation would succeed, or "
10537 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10538 msgstr ""
10539
10540 # type: =head2
10541 #: ../src/guestfs-actions.pod:3623
10542 msgid "guestfs_ntfsresize"
10543 msgstr ""
10544
10545 # type: verbatim
10546 #: ../src/guestfs-actions.pod:3625
10547 #, no-wrap
10548 msgid ""
10549 " int guestfs_ntfsresize (guestfs_h *g,\n"
10550 "\t\tconst char *device);\n"
10551 "\n"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2793
10556 msgid ""
10557 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10558 "size of the underlying device.  See also L<ntfsresize(8)>."
10559 msgstr ""
10560
10561 # type: =head2
10562 #: ../src/guestfs-actions.pod:3634
10563 msgid "guestfs_ntfsresize_size"
10564 msgstr ""
10565
10566 # type: verbatim
10567 #: ../src/guestfs-actions.pod:3636
10568 #, no-wrap
10569 msgid ""
10570 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10571 "\t\tconst char *device,\n"
10572 "\t\tint64_t size);\n"
10573 "\n"
10574 msgstr ""
10575
10576 # type: textblock
10577 #: ../src/guestfs-actions.pod:3640
10578 msgid ""
10579 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10580 "to specify the new size (in bytes) explicitly."
10581 msgstr ""
10582
10583 # type: =head2
10584 #: ../src/guestfs-actions.pod:3645
10585 msgid "guestfs_part_add"
10586 msgstr ""
10587
10588 # type: verbatim
10589 #: ../src/guestfs-actions.pod:3647
10590 #, no-wrap
10591 msgid ""
10592 " int guestfs_part_add (guestfs_h *g,\n"
10593 "\t\tconst char *device,\n"
10594 "\t\tconst char *prlogex,\n"
10595 "\t\tint64_t startsect,\n"
10596 "\t\tint64_t endsect);\n"
10597 "\n"
10598 msgstr ""
10599
10600 # type: textblock
10601 #: ../src/guestfs-actions.pod:3653
10602 msgid ""
10603 "This command adds a partition to C<device>.  If there is no partition table "
10604 "on the device, call C<guestfs_part_init> first."
10605 msgstr ""
10606
10607 # type: textblock
10608 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2811
10609 msgid ""
10610 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10611 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10612 "C<logical>) and C<e> (or C<extended>) partition types."
10613 msgstr ""
10614
10615 # type: textblock
10616 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2816
10617 msgid ""
10618 "C<startsect> and C<endsect> are the start and end of the partition in "
10619 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10620 "from the end of the disk (C<-1> is the last sector)."
10621 msgstr ""
10622
10623 # type: textblock
10624 #: ../src/guestfs-actions.pod:3665
10625 msgid ""
10626 "Creating a partition which covers the whole disk is not so easy.  Use "
10627 "C<guestfs_part_disk> to do that."
10628 msgstr ""
10629
10630 # type: =head2
10631 #: ../src/guestfs-actions.pod:3670
10632 msgid "guestfs_part_del"
10633 msgstr ""
10634
10635 # type: verbatim
10636 #: ../src/guestfs-actions.pod:3672
10637 #, no-wrap
10638 msgid ""
10639 " int guestfs_part_del (guestfs_h *g,\n"
10640 "\t\tconst char *device,\n"
10641 "\t\tint partnum);\n"
10642 "\n"
10643 msgstr ""
10644
10645 # type: textblock
10646 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2827
10647 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10648 msgstr ""
10649
10650 # type: textblock
10651 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2829
10652 msgid ""
10653 "Note that in the case of MBR partitioning, deleting an extended partition "
10654 "also deletes any logical partitions it contains."
10655 msgstr ""
10656
10657 # type: =head2
10658 #: ../src/guestfs-actions.pod:3684
10659 msgid "guestfs_part_disk"
10660 msgstr ""
10661
10662 # type: verbatim
10663 #: ../src/guestfs-actions.pod:3686
10664 #, no-wrap
10665 msgid ""
10666 " int guestfs_part_disk (guestfs_h *g,\n"
10667 "\t\tconst char *device,\n"
10668 "\t\tconst char *parttype);\n"
10669 "\n"
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3690
10674 msgid ""
10675 "This command is simply a combination of C<guestfs_part_init> followed by "
10676 "C<guestfs_part_add> to create a single primary partition covering the whole "
10677 "disk."
10678 msgstr ""
10679
10680 # type: textblock
10681 #: ../src/guestfs-actions.pod:3694
10682 msgid ""
10683 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10684 "possible values are described in C<guestfs_part_init>."
10685 msgstr ""
10686
10687 # type: =head2
10688 #: ../src/guestfs-actions.pod:3702
10689 msgid "guestfs_part_get_bootable"
10690 msgstr ""
10691
10692 # type: verbatim
10693 #: ../src/guestfs-actions.pod:3704
10694 #, no-wrap
10695 msgid ""
10696 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10697 "\t\tconst char *device,\n"
10698 "\t\tint partnum);\n"
10699 "\n"
10700 msgstr ""
10701
10702 # type: textblock
10703 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2851
10704 msgid ""
10705 "This command returns true if the partition C<partnum> on C<device> has the "
10706 "bootable flag set."
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3711
10711 msgid "See also C<guestfs_part_set_bootable>."
10712 msgstr ""
10713
10714 # type: =head2
10715 #: ../src/guestfs-actions.pod:3715
10716 msgid "guestfs_part_get_mbr_id"
10717 msgstr ""
10718
10719 # type: verbatim
10720 #: ../src/guestfs-actions.pod:3717
10721 #, no-wrap
10722 msgid ""
10723 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10724 "\t\tconst char *device,\n"
10725 "\t\tint partnum);\n"
10726 "\n"
10727 msgstr ""
10728
10729 # type: textblock
10730 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2860
10731 msgid ""
10732 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10733 "partition C<partnum>."
10734 msgstr ""
10735
10736 # type: textblock
10737 #: ../src/guestfs-actions.pod:3724 ../src/guestfs-actions.pod:3886
10738 msgid ""
10739 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10740 "undefined results for other partition table types (see "
10741 "C<guestfs_part_get_parttype>)."
10742 msgstr ""
10743
10744 # type: =head2
10745 #: ../src/guestfs-actions.pod:3730
10746 msgid "guestfs_part_get_parttype"
10747 msgstr ""
10748
10749 # type: verbatim
10750 #: ../src/guestfs-actions.pod:3732
10751 #, no-wrap
10752 msgid ""
10753 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10754 "\t\tconst char *device);\n"
10755 "\n"
10756 msgstr ""
10757
10758 # type: textblock
10759 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2871
10760 msgid ""
10761 "This command examines the partition table on C<device> and returns the "
10762 "partition table type (format) being used."
10763 msgstr ""
10764
10765 # type: textblock
10766 #: ../src/guestfs-actions.pod:3738
10767 msgid ""
10768 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10769 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10770 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10771 msgstr ""
10772
10773 # type: =head2
10774 #: ../src/guestfs-actions.pod:3746
10775 msgid "guestfs_part_init"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #: ../src/guestfs-actions.pod:3748
10780 #, no-wrap
10781 msgid ""
10782 " int guestfs_part_init (guestfs_h *g,\n"
10783 "\t\tconst char *device,\n"
10784 "\t\tconst char *parttype);\n"
10785 "\n"
10786 msgstr ""
10787
10788 # type: textblock
10789 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2883
10790 msgid ""
10791 "This creates an empty partition table on C<device> of one of the partition "
10792 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10793 "(for large disks)."
10794 msgstr ""
10795
10796 # type: textblock
10797 #: ../src/guestfs-actions.pod:3756
10798 msgid ""
10799 "Initially there are no partitions.  Following this, you should call "
10800 "C<guestfs_part_add> for each partition required."
10801 msgstr ""
10802
10803 # type: textblock
10804 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2890
10805 msgid "Possible values for C<parttype> are:"
10806 msgstr ""
10807
10808 # type: =item
10809 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2894
10810 msgid "B<efi> | B<gpt>"
10811 msgstr ""
10812
10813 # type: textblock
10814 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2896
10815 msgid "Intel EFI / GPT partition table."
10816 msgstr ""
10817
10818 # type: textblock
10819 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2898
10820 msgid ""
10821 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10822 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10823 "the C<mbr> format."
10824 msgstr ""
10825
10826 # type: =item
10827 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2902
10828 msgid "B<mbr> | B<msdos>"
10829 msgstr ""
10830
10831 # type: textblock
10832 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2904
10833 msgid ""
10834 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10835 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10836 "TB.  For large disks we recommend using C<gpt>."
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3780 ../fish/guestfish-actions.pod:2911
10841 msgid ""
10842 "Other partition table types that may work but are not supported include:"
10843 msgstr ""
10844
10845 # type: =item
10846 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2916
10847 msgid "B<aix>"
10848 msgstr ""
10849
10850 # type: textblock
10851 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2918
10852 msgid "AIX disk labels."
10853 msgstr ""
10854
10855 # type: =item
10856 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2920
10857 msgid "B<amiga> | B<rdb>"
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2922
10862 msgid "Amiga \"Rigid Disk Block\" format."
10863 msgstr ""
10864
10865 # type: =item
10866 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2924
10867 msgid "B<bsd>"
10868 msgstr ""
10869
10870 # type: textblock
10871 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2926
10872 msgid "BSD disk labels."
10873 msgstr ""
10874
10875 # type: =item
10876 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2928
10877 msgid "B<dasd>"
10878 msgstr ""
10879
10880 # type: textblock
10881 #: ../src/guestfs-actions.pod:3799 ../fish/guestfish-actions.pod:2930
10882 msgid "DASD, used on IBM mainframes."
10883 msgstr ""
10884
10885 # type: =item
10886 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2932
10887 msgid "B<dvh>"
10888 msgstr ""
10889
10890 # type: textblock
10891 #: ../src/guestfs-actions.pod:3803 ../fish/guestfish-actions.pod:2934
10892 msgid "MIPS/SGI volumes."
10893 msgstr ""
10894
10895 # type: =item
10896 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2936
10897 msgid "B<mac>"
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2938
10902 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10903 msgstr ""
10904
10905 # type: =item
10906 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2940
10907 msgid "B<pc98>"
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2942
10912 msgid "NEC PC-98 format, common in Japan apparently."
10913 msgstr ""
10914
10915 # type: =item
10916 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2944
10917 msgid "B<sun>"
10918 msgstr ""
10919
10920 # type: textblock
10921 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2946
10922 msgid "Sun disk labels."
10923 msgstr ""
10924
10925 # type: =head2
10926 #: ../src/guestfs-actions.pod:3821
10927 msgid "guestfs_part_list"
10928 msgstr ""
10929
10930 # type: verbatim
10931 #: ../src/guestfs-actions.pod:3823
10932 #, no-wrap
10933 msgid ""
10934 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10935 "\t\tconst char *device);\n"
10936 "\n"
10937 msgstr ""
10938
10939 # type: textblock
10940 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2954
10941 msgid ""
10942 "This command parses the partition table on C<device> and returns the list of "
10943 "partitions found."
10944 msgstr ""
10945
10946 # type: textblock
10947 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2957
10948 msgid "The fields in the returned structure are:"
10949 msgstr ""
10950
10951 # type: =item
10952 #: ../src/guestfs-actions.pod:3833 ../fish/guestfish-actions.pod:2961
10953 msgid "B<part_num>"
10954 msgstr ""
10955
10956 # type: textblock
10957 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2963
10958 msgid "Partition number, counting from 1."
10959 msgstr ""
10960
10961 # type: =item
10962 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2965
10963 msgid "B<part_start>"
10964 msgstr ""
10965
10966 # type: textblock
10967 #: ../src/guestfs-actions.pod:3839
10968 msgid ""
10969 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10970 "the device's sector size, see C<guestfs_blockdev_getss>."
10971 msgstr ""
10972
10973 # type: =item
10974 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2970
10975 msgid "B<part_end>"
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2972
10980 msgid "End of the partition in bytes."
10981 msgstr ""
10982
10983 # type: =item
10984 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2974
10985 msgid "B<part_size>"
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:3848 ../fish/guestfish-actions.pod:2976
10990 msgid "Size of the partition in bytes."
10991 msgstr ""
10992
10993 # type: textblock
10994 #: ../src/guestfs-actions.pod:3852
10995 msgid ""
10996 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
10997 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10998 "C<guestfs_free_partition_list> after use>."
10999 msgstr ""
11000
11001 # type: =head2
11002 #: ../src/guestfs-actions.pod:3857
11003 msgid "guestfs_part_set_bootable"
11004 msgstr ""
11005
11006 # type: verbatim
11007 #: ../src/guestfs-actions.pod:3859
11008 #, no-wrap
11009 msgid ""
11010 " int guestfs_part_set_bootable (guestfs_h *g,\n"
11011 "\t\tconst char *device,\n"
11012 "\t\tint partnum,\n"
11013 "\t\tint bootable);\n"
11014 "\n"
11015 msgstr ""
11016
11017 # type: textblock
11018 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2984
11019 msgid ""
11020 "This sets the bootable flag on partition numbered C<partnum> on device "
11021 "C<device>.  Note that partitions are numbered from 1."
11022 msgstr ""
11023
11024 # type: textblock
11025 #: ../src/guestfs-actions.pod:3867 ../fish/guestfish-actions.pod:2987
11026 msgid ""
11027 "The bootable flag is used by some operating systems (notably Windows) to "
11028 "determine which partition to boot from.  It is by no means universally "
11029 "recognized."
11030 msgstr ""
11031
11032 # type: =head2
11033 #: ../src/guestfs-actions.pod:3873
11034 msgid "guestfs_part_set_mbr_id"
11035 msgstr ""
11036
11037 # type: verbatim
11038 #: ../src/guestfs-actions.pod:3875
11039 #, no-wrap
11040 msgid ""
11041 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
11042 "\t\tconst char *device,\n"
11043 "\t\tint partnum,\n"
11044 "\t\tint idbyte);\n"
11045 "\n"
11046 msgstr ""
11047
11048 # type: textblock
11049 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2995
11050 msgid ""
11051 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11052 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11053 "documentation are in fact hexadecimal numbers, but usually documented "
11054 "without any leading \"0x\" which might be confusing."
11055 msgstr ""
11056
11057 # type: =head2
11058 #: ../src/guestfs-actions.pod:3892
11059 msgid "guestfs_part_set_name"
11060 msgstr ""
11061
11062 # type: verbatim
11063 #: ../src/guestfs-actions.pod:3894
11064 #, no-wrap
11065 msgid ""
11066 " int guestfs_part_set_name (guestfs_h *g,\n"
11067 "\t\tconst char *device,\n"
11068 "\t\tint partnum,\n"
11069 "\t\tconst char *name);\n"
11070 "\n"
11071 msgstr ""
11072
11073 # type: textblock
11074 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:3009
11075 msgid ""
11076 "This sets the partition name on partition numbered C<partnum> on device "
11077 "C<device>.  Note that partitions are numbered from 1."
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:3012
11082 msgid ""
11083 "The partition name can only be set on certain types of partition table.  "
11084 "This works on C<gpt> but not on C<mbr> partitions."
11085 msgstr ""
11086
11087 # type: =head2
11088 #: ../src/guestfs-actions.pod:3907
11089 msgid "guestfs_part_to_dev"
11090 msgstr ""
11091
11092 # type: verbatim
11093 #: ../src/guestfs-actions.pod:3909
11094 #, no-wrap
11095 msgid ""
11096 " char *guestfs_part_to_dev (guestfs_h *g,\n"
11097 "\t\tconst char *partition);\n"
11098 "\n"
11099 msgstr ""
11100
11101 # type: textblock
11102 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:3019
11103 msgid ""
11104 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11105 "partition number, returning the device name (eg. \"/dev/sdb\")."
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:3916
11110 msgid ""
11111 "The named partition must exist, for example as a string returned from "
11112 "C<guestfs_list_partitions>."
11113 msgstr ""
11114
11115 # type: =head2
11116 #: ../src/guestfs-actions.pod:3922
11117 msgid "guestfs_ping_daemon"
11118 msgstr ""
11119
11120 # type: verbatim
11121 #: ../src/guestfs-actions.pod:3924
11122 #, no-wrap
11123 msgid ""
11124 " int guestfs_ping_daemon (guestfs_h *g);\n"
11125 "\n"
11126 msgstr ""
11127
11128 # type: textblock
11129 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:3030
11130 msgid ""
11131 "This is a test probe into the guestfs daemon running inside the qemu "
11132 "subprocess.  Calling this function checks that the daemon responds to the "
11133 "ping message, without affecting the daemon or attached block device(s) in "
11134 "any other way."
11135 msgstr ""
11136
11137 # type: =head2
11138 #: ../src/guestfs-actions.pod:3933
11139 msgid "guestfs_pread"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #: ../src/guestfs-actions.pod:3935
11144 #, no-wrap
11145 msgid ""
11146 " char *guestfs_pread (guestfs_h *g,\n"
11147 "\t\tconst char *path,\n"
11148 "\t\tint count,\n"
11149 "\t\tint64_t offset,\n"
11150 "\t\tsize_t *size_r);\n"
11151 "\n"
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:3941 ../fish/guestfish-actions.pod:3039
11156 msgid ""
11157 "This command lets you read part of a file.  It reads C<count> bytes of the "
11158 "file, starting at C<offset>, from file C<path>."
11159 msgstr ""
11160
11161 # type: textblock
11162 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3967
11163 #: ../fish/guestfish-actions.pod:3042 ../fish/guestfish-actions.pod:3057
11164 msgid ""
11165 "This may read fewer bytes than requested.  For further details see the "
11166 "L<pread(2)> system call."
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:3947
11171 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11172 msgstr ""
11173
11174 # type: =head2
11175 #: ../src/guestfs-actions.pod:3956
11176 msgid "guestfs_pread_device"
11177 msgstr ""
11178
11179 # type: verbatim
11180 #: ../src/guestfs-actions.pod:3958
11181 #, no-wrap
11182 msgid ""
11183 " char *guestfs_pread_device (guestfs_h *g,\n"
11184 "\t\tconst char *device,\n"
11185 "\t\tint count,\n"
11186 "\t\tint64_t offset,\n"
11187 "\t\tsize_t *size_r);\n"
11188 "\n"
11189 msgstr ""
11190
11191 # type: textblock
11192 #: ../src/guestfs-actions.pod:3964 ../fish/guestfish-actions.pod:3054
11193 msgid ""
11194 "This command lets you read part of a file.  It reads C<count> bytes of "
11195 "C<device>, starting at C<offset>."
11196 msgstr ""
11197
11198 # type: textblock
11199 #: ../src/guestfs-actions.pod:3970
11200 msgid "See also C<guestfs_pread>."
11201 msgstr ""
11202
11203 # type: =head2
11204 #: ../src/guestfs-actions.pod:3979
11205 msgid "guestfs_pvcreate"
11206 msgstr ""
11207
11208 # type: verbatim
11209 #: ../src/guestfs-actions.pod:3981
11210 #, no-wrap
11211 msgid ""
11212 " int guestfs_pvcreate (guestfs_h *g,\n"
11213 "\t\tconst char *device);\n"
11214 "\n"
11215 msgstr ""
11216
11217 # type: textblock
11218 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:3069
11219 msgid ""
11220 "This creates an LVM physical volume on the named C<device>, where C<device> "
11221 "should usually be a partition name such as C</dev/sda1>."
11222 msgstr ""
11223
11224 # type: =head2
11225 #: ../src/guestfs-actions.pod:3990
11226 msgid "guestfs_pvremove"
11227 msgstr ""
11228
11229 # type: verbatim
11230 #: ../src/guestfs-actions.pod:3992
11231 #, no-wrap
11232 msgid ""
11233 " int guestfs_pvremove (guestfs_h *g,\n"
11234 "\t\tconst char *device);\n"
11235 "\n"
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:3995 ../fish/guestfish-actions.pod:3077
11240 msgid ""
11241 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11242 "it."
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:3080
11247 msgid ""
11248 "The implementation uses the C<pvremove> command which refuses to wipe "
11249 "physical volumes that contain any volume groups, so you have to remove those "
11250 "first."
11251 msgstr ""
11252
11253 # type: =head2
11254 #: ../src/guestfs-actions.pod:4004
11255 msgid "guestfs_pvresize"
11256 msgstr ""
11257
11258 # type: verbatim
11259 #: ../src/guestfs-actions.pod:4006
11260 #, no-wrap
11261 msgid ""
11262 " int guestfs_pvresize (guestfs_h *g,\n"
11263 "\t\tconst char *device);\n"
11264 "\n"
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4009 ../fish/guestfish-actions.pod:3088
11269 msgid ""
11270 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11271 "the new size of the underlying device."
11272 msgstr ""
11273
11274 # type: =head2
11275 #: ../src/guestfs-actions.pod:4014
11276 msgid "guestfs_pvresize_size"
11277 msgstr ""
11278
11279 # type: verbatim
11280 #: ../src/guestfs-actions.pod:4016
11281 #, no-wrap
11282 msgid ""
11283 " int guestfs_pvresize_size (guestfs_h *g,\n"
11284 "\t\tconst char *device,\n"
11285 "\t\tint64_t size);\n"
11286 "\n"
11287 msgstr ""
11288
11289 # type: textblock
11290 #: ../src/guestfs-actions.pod:4020
11291 msgid ""
11292 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11293 "specify the new size (in bytes) explicitly."
11294 msgstr ""
11295
11296 # type: =head2
11297 #: ../src/guestfs-actions.pod:4025
11298 msgid "guestfs_pvs"
11299 msgstr ""
11300
11301 # type: verbatim
11302 #: ../src/guestfs-actions.pod:4027
11303 #, no-wrap
11304 msgid ""
11305 " char **guestfs_pvs (guestfs_h *g);\n"
11306 "\n"
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4029 ../fish/guestfish-actions.pod:3102
11311 msgid ""
11312 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11313 "(8)> command."
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:3105
11318 msgid ""
11319 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11320 "sda2>)."
11321 msgstr ""
11322
11323 # type: textblock
11324 #: ../src/guestfs-actions.pod:4035
11325 msgid "See also C<guestfs_pvs_full>."
11326 msgstr ""
11327
11328 # type: =head2
11329 #: ../src/guestfs-actions.pod:4041
11330 msgid "guestfs_pvs_full"
11331 msgstr ""
11332
11333 # type: verbatim
11334 #: ../src/guestfs-actions.pod:4043
11335 #, no-wrap
11336 msgid ""
11337 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11338 "\n"
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:3114
11343 msgid ""
11344 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11345 "(8)> command.  The \"full\" version includes all fields."
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4048
11350 msgid ""
11351 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11352 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11353 "C<guestfs_free_lvm_pv_list> after use>."
11354 msgstr ""
11355
11356 # type: =head2
11357 #: ../src/guestfs-actions.pod:4053
11358 msgid "guestfs_pvuuid"
11359 msgstr ""
11360
11361 # type: verbatim
11362 #: ../src/guestfs-actions.pod:4055
11363 #, no-wrap
11364 msgid ""
11365 " char *guestfs_pvuuid (guestfs_h *g,\n"
11366 "\t\tconst char *device);\n"
11367 "\n"
11368 msgstr ""
11369
11370 # type: textblock
11371 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:3121
11372 msgid "This command returns the UUID of the LVM PV C<device>."
11373 msgstr ""
11374
11375 # type: =head2
11376 #: ../src/guestfs-actions.pod:4063
11377 msgid "guestfs_pwrite"
11378 msgstr ""
11379
11380 # type: verbatim
11381 #: ../src/guestfs-actions.pod:4065
11382 #, no-wrap
11383 msgid ""
11384 " int guestfs_pwrite (guestfs_h *g,\n"
11385 "\t\tconst char *path,\n"
11386 "\t\tconst char *content,\n"
11387 "\t\tsize_t content_size,\n"
11388 "\t\tint64_t offset);\n"
11389 "\n"
11390 msgstr ""
11391
11392 # type: textblock
11393 #: ../src/guestfs-actions.pod:4071 ../fish/guestfish-actions.pod:3127
11394 msgid ""
11395 "This command writes to part of a file.  It writes the data buffer C<content> "
11396 "to the file C<path> starting at offset C<offset>."
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3130
11401 msgid ""
11402 "This command implements the L<pwrite(2)> system call, and like that system "
11403 "call it may not write the full data requested.  The return value is the "
11404 "number of bytes that were actually written to the file.  This could even be "
11405 "0, although short writes are unlikely for regular files in ordinary "
11406 "circumstances."
11407 msgstr ""
11408
11409 # type: textblock
11410 #: ../src/guestfs-actions.pod:4080
11411 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11412 msgstr ""
11413
11414 # type: =head2
11415 #: ../src/guestfs-actions.pod:4087
11416 msgid "guestfs_pwrite_device"
11417 msgstr ""
11418
11419 # type: verbatim
11420 #: ../src/guestfs-actions.pod:4089
11421 #, no-wrap
11422 msgid ""
11423 " int guestfs_pwrite_device (guestfs_h *g,\n"
11424 "\t\tconst char *device,\n"
11425 "\t\tconst char *content,\n"
11426 "\t\tsize_t content_size,\n"
11427 "\t\tint64_t offset);\n"
11428 "\n"
11429 msgstr ""
11430
11431 # type: textblock
11432 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:3145
11433 msgid ""
11434 "This command writes to part of a device.  It writes the data buffer "
11435 "C<content> to C<device> starting at offset C<offset>."
11436 msgstr ""
11437
11438 # type: textblock
11439 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:3148
11440 msgid ""
11441 "This command implements the L<pwrite(2)> system call, and like that system "
11442 "call it may not write the full data requested (although short writes to disk "
11443 "devices and partitions are probably impossible with standard Linux kernels)."
11444 msgstr ""
11445
11446 # type: textblock
11447 #: ../src/guestfs-actions.pod:4103
11448 msgid "See also C<guestfs_pwrite>."
11449 msgstr ""
11450
11451 # type: =head2
11452 #: ../src/guestfs-actions.pod:4110
11453 msgid "guestfs_read_file"
11454 msgstr ""
11455
11456 # type: verbatim
11457 #: ../src/guestfs-actions.pod:4112
11458 #, no-wrap
11459 msgid ""
11460 " char *guestfs_read_file (guestfs_h *g,\n"
11461 "\t\tconst char *path,\n"
11462 "\t\tsize_t *size_r);\n"
11463 "\n"
11464 msgstr ""
11465
11466 # type: textblock
11467 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3162
11468 msgid "This calls returns the contents of the file C<path> as a buffer."
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4119
11473 msgid ""
11474 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11475 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11476 "function is limited in the total size of file that can be handled."
11477 msgstr ""
11478
11479 # type: =head2
11480 #: ../src/guestfs-actions.pod:4131
11481 msgid "guestfs_read_lines"
11482 msgstr ""
11483
11484 # type: verbatim
11485 #: ../src/guestfs-actions.pod:4133
11486 #, no-wrap
11487 msgid ""
11488 " char **guestfs_read_lines (guestfs_h *g,\n"
11489 "\t\tconst char *path);\n"
11490 "\n"
11491 msgstr ""
11492
11493 # type: textblock
11494 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:3179
11495 msgid ""
11496 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11497 "C<CRLF> character sequences are I<not> returned."
11498 msgstr ""
11499
11500 # type: textblock
11501 #: ../src/guestfs-actions.pod:4141
11502 msgid ""
11503 "Note that this function cannot correctly handle binary files (specifically, "
11504 "files containing C<\\0> character which is treated as end of line).  For "
11505 "those you need to use the C<guestfs_read_file> function which has a more "
11506 "complex interface."
11507 msgstr ""
11508
11509 # type: =head2
11510 #: ../src/guestfs-actions.pod:4150
11511 msgid "guestfs_readdir"
11512 msgstr ""
11513
11514 # type: verbatim
11515 #: ../src/guestfs-actions.pod:4152
11516 #, no-wrap
11517 msgid ""
11518 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11519 "\t\tconst char *dir);\n"
11520 "\n"
11521 msgstr ""
11522
11523 # type: textblock
11524 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:3191
11525 msgid "This returns the list of directory entries in directory C<dir>."
11526 msgstr ""
11527
11528 # type: textblock
11529 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:3193
11530 msgid ""
11531 "All entries in the directory are returned, including C<.> and C<..>.  The "
11532 "entries are I<not> sorted, but returned in the same order as the underlying "
11533 "filesystem."
11534 msgstr ""
11535
11536 # type: textblock
11537 #: ../src/guestfs-actions.pod:4161 ../fish/guestfish-actions.pod:3197
11538 msgid ""
11539 "Also this call returns basic file type information about each file.  The "
11540 "C<ftyp> field will contain one of the following characters:"
11541 msgstr ""
11542
11543 # type: =item
11544 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:3202
11545 msgid "'b'"
11546 msgstr ""
11547
11548 # type: textblock
11549 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:3204
11550 msgid "Block special"
11551 msgstr ""
11552
11553 # type: =item
11554 #: ../src/guestfs-actions.pod:4170 ../fish/guestfish-actions.pod:3206
11555 msgid "'c'"
11556 msgstr ""
11557
11558 # type: textblock
11559 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:3208
11560 msgid "Char special"
11561 msgstr ""
11562
11563 # type: =item
11564 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:3210
11565 msgid "'d'"
11566 msgstr ""
11567
11568 # type: textblock
11569 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:3212
11570 msgid "Directory"
11571 msgstr ""
11572
11573 # type: =item
11574 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3214
11575 msgid "'f'"
11576 msgstr ""
11577
11578 # type: textblock
11579 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:3216
11580 msgid "FIFO (named pipe)"
11581 msgstr ""
11582
11583 # type: =item
11584 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3218
11585 msgid "'l'"
11586 msgstr ""
11587
11588 # type: textblock
11589 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:3220
11590 msgid "Symbolic link"
11591 msgstr ""
11592
11593 # type: =item
11594 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3222
11595 msgid "'r'"
11596 msgstr ""
11597
11598 # type: textblock
11599 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3224
11600 msgid "Regular file"
11601 msgstr ""
11602
11603 # type: =item
11604 #: ../src/guestfs-actions.pod:4190 ../fish/guestfish-actions.pod:3226
11605 msgid "'s'"
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4192 ../fish/guestfish-actions.pod:3228
11610 msgid "Socket"
11611 msgstr ""
11612
11613 # type: =item
11614 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3230
11615 msgid "'u'"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:3232
11620 msgid "Unknown file type"
11621 msgstr ""
11622
11623 # type: =item
11624 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:3234
11625 msgid "'?'"
11626 msgstr ""
11627
11628 # type: textblock
11629 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:3236
11630 msgid ""
11631 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11632 msgstr ""
11633
11634 # type: textblock
11635 #: ../src/guestfs-actions.pod:4205
11636 msgid ""
11637 "This function is primarily intended for use by programs.  To get a simple "
11638 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11639 "consumption, use C<guestfs_ll>."
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4209
11644 msgid ""
11645 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11646 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11647 "C<guestfs_free_dirent_list> after use>."
11648 msgstr ""
11649
11650 # type: =head2
11651 #: ../src/guestfs-actions.pod:4214
11652 msgid "guestfs_readlink"
11653 msgstr ""
11654
11655 # type: verbatim
11656 #: ../src/guestfs-actions.pod:4216
11657 #, no-wrap
11658 msgid ""
11659 " char *guestfs_readlink (guestfs_h *g,\n"
11660 "\t\tconst char *path);\n"
11661 "\n"
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:3249
11666 msgid "This command reads the target of a symbolic link."
11667 msgstr ""
11668
11669 # type: =head2
11670 #: ../src/guestfs-actions.pod:4224
11671 msgid "guestfs_readlinklist"
11672 msgstr ""
11673
11674 # type: verbatim
11675 #: ../src/guestfs-actions.pod:4226
11676 #, no-wrap
11677 msgid ""
11678 " char **guestfs_readlinklist (guestfs_h *g,\n"
11679 "\t\tconst char *path,\n"
11680 "\t\tchar *const *names);\n"
11681 "\n"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:3255
11686 msgid ""
11687 "This call allows you to do a C<readlink> operation on multiple files, where "
11688 "all files are in the directory C<path>.  C<names> is the list of files from "
11689 "this directory."
11690 msgstr ""
11691
11692 # type: textblock
11693 #: ../src/guestfs-actions.pod:4234 ../fish/guestfish-actions.pod:3259
11694 msgid ""
11695 "On return you get a list of strings, with a one-to-one correspondence to the "
11696 "C<names> list.  Each string is the value of the symbolic link."
11697 msgstr ""
11698
11699 # type: textblock
11700 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:3263
11701 msgid ""
11702 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11703 "result string is the empty string C<\"\">.  However the whole operation is "
11704 "completed even if there were C<readlink(2)> errors, and so you can call this "
11705 "function with names where you don't know if they are symbolic links already "
11706 "(albeit slightly less efficient)."
11707 msgstr ""
11708
11709 # type: textblock
11710 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:3270
11711 msgid ""
11712 "This call is intended for programs that want to efficiently list a directory "
11713 "contents without making many round-trips.  Very long directory listings "
11714 "might cause the protocol message size to be exceeded, causing this call to "
11715 "fail.  The caller must split up such requests into smaller groups of names."
11716 msgstr ""
11717
11718 # type: =head2
11719 #: ../src/guestfs-actions.pod:4256
11720 msgid "guestfs_realpath"
11721 msgstr ""
11722
11723 # type: verbatim
11724 #: ../src/guestfs-actions.pod:4258
11725 #, no-wrap
11726 msgid ""
11727 " char *guestfs_realpath (guestfs_h *g,\n"
11728 "\t\tconst char *path);\n"
11729 "\n"
11730 msgstr ""
11731
11732 # type: textblock
11733 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:3281
11734 msgid ""
11735 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11736 "has no C<.>, C<..> or symbolic link path elements."
11737 msgstr ""
11738
11739 # type: =head2
11740 #: ../src/guestfs-actions.pod:4267
11741 msgid "guestfs_removexattr"
11742 msgstr ""
11743
11744 # type: verbatim
11745 #: ../src/guestfs-actions.pod:4269
11746 #, no-wrap
11747 msgid ""
11748 " int guestfs_removexattr (guestfs_h *g,\n"
11749 "\t\tconst char *xattr,\n"
11750 "\t\tconst char *path);\n"
11751 "\n"
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3288
11756 msgid ""
11757 "This call removes the extended attribute named C<xattr> of the file C<path>."
11758 msgstr ""
11759
11760 # type: textblock
11761 #: ../src/guestfs-actions.pod:4276
11762 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11763 msgstr ""
11764
11765 # type: =head2
11766 #: ../src/guestfs-actions.pod:4280
11767 msgid "guestfs_resize2fs"
11768 msgstr ""
11769
11770 # type: verbatim
11771 #: ../src/guestfs-actions.pod:4282
11772 #, no-wrap
11773 msgid ""
11774 " int guestfs_resize2fs (guestfs_h *g,\n"
11775 "\t\tconst char *device);\n"
11776 "\n"
11777 msgstr ""
11778
11779 # type: textblock
11780 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:3297
11781 msgid ""
11782 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11783 "underlying device."
11784 msgstr ""
11785
11786 # type: textblock
11787 #: ../src/guestfs-actions.pod:4288
11788 msgid ""
11789 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11790 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11791 "sometimes gives an error about this and sometimes not.  In any case, it is "
11792 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11793 msgstr ""
11794
11795 # type: =head2
11796 #: ../src/guestfs-actions.pod:4296
11797 msgid "guestfs_resize2fs_size"
11798 msgstr ""
11799
11800 # type: verbatim
11801 #: ../src/guestfs-actions.pod:4298
11802 #, no-wrap
11803 msgid ""
11804 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11805 "\t\tconst char *device,\n"
11806 "\t\tint64_t size);\n"
11807 "\n"
11808 msgstr ""
11809
11810 # type: textblock
11811 #: ../src/guestfs-actions.pod:4302
11812 msgid ""
11813 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11814 "to specify the new size (in bytes) explicitly."
11815 msgstr ""
11816
11817 # type: =head2
11818 #: ../src/guestfs-actions.pod:4307
11819 msgid "guestfs_rm"
11820 msgstr ""
11821
11822 # type: verbatim
11823 #: ../src/guestfs-actions.pod:4309
11824 #, no-wrap
11825 msgid ""
11826 " int guestfs_rm (guestfs_h *g,\n"
11827 "\t\tconst char *path);\n"
11828 "\n"
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:3317
11833 msgid "Remove the single file C<path>."
11834 msgstr ""
11835
11836 # type: =head2
11837 #: ../src/guestfs-actions.pod:4316
11838 msgid "guestfs_rm_rf"
11839 msgstr ""
11840
11841 # type: verbatim
11842 #: ../src/guestfs-actions.pod:4318
11843 #, no-wrap
11844 msgid ""
11845 " int guestfs_rm_rf (guestfs_h *g,\n"
11846 "\t\tconst char *path);\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3323
11852 msgid ""
11853 "Remove the file or directory C<path>, recursively removing the contents if "
11854 "its a directory.  This is like the C<rm -rf> shell command."
11855 msgstr ""
11856
11857 # type: =head2
11858 #: ../src/guestfs-actions.pod:4327
11859 msgid "guestfs_rmdir"
11860 msgstr ""
11861
11862 # type: verbatim
11863 #: ../src/guestfs-actions.pod:4329
11864 #, no-wrap
11865 msgid ""
11866 " int guestfs_rmdir (guestfs_h *g,\n"
11867 "\t\tconst char *path);\n"
11868 "\n"
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4332 ../fish/guestfish-actions.pod:3331
11873 msgid "Remove the single directory C<path>."
11874 msgstr ""
11875
11876 # type: =head2
11877 #: ../src/guestfs-actions.pod:4336
11878 msgid "guestfs_rmmountpoint"
11879 msgstr ""
11880
11881 # type: verbatim
11882 #: ../src/guestfs-actions.pod:4338
11883 #, no-wrap
11884 msgid ""
11885 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11886 "\t\tconst char *exemptpath);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4341
11892 msgid ""
11893 "This calls removes a mountpoint that was previously created with "
11894 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11895 msgstr ""
11896
11897 # type: =head2
11898 #: ../src/guestfs-actions.pod:4347
11899 msgid "guestfs_scrub_device"
11900 msgstr ""
11901
11902 # type: verbatim
11903 #: ../src/guestfs-actions.pod:4349
11904 #, no-wrap
11905 msgid ""
11906 " int guestfs_scrub_device (guestfs_h *g,\n"
11907 "\t\tconst char *device);\n"
11908 "\n"
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4352 ../fish/guestfish-actions.pod:3345
11913 msgid ""
11914 "This command writes patterns over C<device> to make data retrieval more "
11915 "difficult."
11916 msgstr ""
11917
11918 # type: textblock
11919 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4373
11920 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:3348
11921 #: ../fish/guestfish-actions.pod:3363 ../fish/guestfish-actions.pod:3376
11922 msgid ""
11923 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11924 "more details."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4363
11929 msgid "guestfs_scrub_file"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4365
11934 #, no-wrap
11935 msgid ""
11936 " int guestfs_scrub_file (guestfs_h *g,\n"
11937 "\t\tconst char *file);\n"
11938 "\n"
11939 msgstr ""
11940
11941 # type: textblock
11942 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3358
11943 msgid ""
11944 "This command writes patterns over a file to make data retrieval more "
11945 "difficult."
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4371 ../fish/guestfish-actions.pod:3361
11950 msgid "The file is I<removed> after scrubbing."
11951 msgstr ""
11952
11953 # type: =head2
11954 #: ../src/guestfs-actions.pod:4378
11955 msgid "guestfs_scrub_freespace"
11956 msgstr ""
11957
11958 # type: verbatim
11959 #: ../src/guestfs-actions.pod:4380
11960 #, no-wrap
11961 msgid ""
11962 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11963 "\t\tconst char *dir);\n"
11964 "\n"
11965 msgstr ""
11966
11967 # type: textblock
11968 #: ../src/guestfs-actions.pod:4383
11969 msgid ""
11970 "This command creates the directory C<dir> and then fills it with files until "
11971 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11972 "and deletes them.  The intention is to scrub any free space on the partition "
11973 "containing C<dir>."
11974 msgstr ""
11975
11976 # type: =head2
11977 #: ../src/guestfs-actions.pod:4394
11978 msgid "guestfs_set_append"
11979 msgstr ""
11980
11981 # type: verbatim
11982 #: ../src/guestfs-actions.pod:4396
11983 #, no-wrap
11984 msgid ""
11985 " int guestfs_set_append (guestfs_h *g,\n"
11986 "\t\tconst char *append);\n"
11987 "\n"
11988 msgstr ""
11989
11990 # type: textblock
11991 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3385
11992 msgid ""
11993 "This function is used to add additional options to the guest kernel command "
11994 "line."
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:3388
11999 msgid ""
12000 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12001 "environment variable."
12002 msgstr ""
12003
12004 # type: textblock
12005 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:3391
12006 msgid ""
12007 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12008 "(libguestfs always adds a few of its own)."
12009 msgstr ""
12010
12011 # type: =head2
12012 #: ../src/guestfs-actions.pod:4410
12013 msgid "guestfs_set_autosync"
12014 msgstr ""
12015
12016 # type: verbatim
12017 #: ../src/guestfs-actions.pod:4412
12018 #, no-wrap
12019 msgid ""
12020 " int guestfs_set_autosync (guestfs_h *g,\n"
12021 "\t\tint autosync);\n"
12022 "\n"
12023 msgstr ""
12024
12025 # type: textblock
12026 #: ../src/guestfs-actions.pod:4415
12027 msgid ""
12028 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12029 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12030 "the handle is closed (also if the program exits without closing handles)."
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:3405
12035 msgid ""
12036 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12037 "disabled by default)."
12038 msgstr ""
12039
12040 # type: =head2
12041 #: ../src/guestfs-actions.pod:4425
12042 msgid "guestfs_set_direct"
12043 msgstr ""
12044
12045 # type: verbatim
12046 #: ../src/guestfs-actions.pod:4427
12047 #, no-wrap
12048 msgid ""
12049 " int guestfs_set_direct (guestfs_h *g,\n"
12050 "\t\tint direct);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4430 ../fish/guestfish-actions.pod:3414
12056 msgid ""
12057 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12058 "passed directly through to the appliance once it is launched."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4434
12063 msgid ""
12064 "One consequence of this is that log messages aren't caught by the library "
12065 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12066 "stdout."
12067 msgstr ""
12068
12069 # type: textblock
12070 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:3422
12071 msgid "You probably don't want to use this unless you know what you are doing."
12072 msgstr ""
12073
12074 # type: textblock
12075 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3425
12076 msgid "The default is disabled."
12077 msgstr ""
12078
12079 # type: =head2
12080 #: ../src/guestfs-actions.pod:4445
12081 msgid "guestfs_set_e2label"
12082 msgstr ""
12083
12084 # type: verbatim
12085 #: ../src/guestfs-actions.pod:4447
12086 #, no-wrap
12087 msgid ""
12088 " int guestfs_set_e2label (guestfs_h *g,\n"
12089 "\t\tconst char *device,\n"
12090 "\t\tconst char *label);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3431
12096 msgid ""
12097 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12098 "C<label>.  Filesystem labels are limited to 16 characters."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4455
12103 msgid ""
12104 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12105 "the existing label on a filesystem."
12106 msgstr ""
12107
12108 # type: =head2
12109 #: ../src/guestfs-actions.pod:4460
12110 msgid "guestfs_set_e2uuid"
12111 msgstr ""
12112
12113 # type: verbatim
12114 #: ../src/guestfs-actions.pod:4462
12115 #, no-wrap
12116 msgid ""
12117 " int guestfs_set_e2uuid (guestfs_h *g,\n"
12118 "\t\tconst char *device,\n"
12119 "\t\tconst char *uuid);\n"
12120 "\n"
12121 msgstr ""
12122
12123 # type: textblock
12124 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:3442
12125 msgid ""
12126 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12127 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12128 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4471
12133 msgid ""
12134 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12135 "the existing UUID of a filesystem."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4476
12140 msgid "guestfs_set_memsize"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4478
12145 #, no-wrap
12146 msgid ""
12147 " int guestfs_set_memsize (guestfs_h *g,\n"
12148 "\t\tint memsize);\n"
12149 "\n"
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4481
12154 msgid ""
12155 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12156 "This only has any effect if called before C<guestfs_launch>."
12157 msgstr ""
12158
12159 # type: textblock
12160 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3460
12161 msgid ""
12162 "You can also change this by setting the environment variable "
12163 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12164 msgstr ""
12165
12166 # type: =head2
12167 #: ../src/guestfs-actions.pod:4494
12168 msgid "guestfs_set_network"
12169 msgstr ""
12170
12171 # type: verbatim
12172 #: ../src/guestfs-actions.pod:4496
12173 #, no-wrap
12174 msgid ""
12175 " int guestfs_set_network (guestfs_h *g,\n"
12176 "\t\tint network);\n"
12177 "\n"
12178 msgstr ""
12179
12180 # type: textblock
12181 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3473
12182 msgid ""
12183 "If C<network> is true, then the network is enabled in the libguestfs "
12184 "appliance.  The default is false."
12185 msgstr ""
12186
12187 # type: textblock
12188 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3476
12189 msgid ""
12190 "This affects whether commands are able to access the network (see L<guestfs"
12191 "(3)/RUNNING COMMANDS>)."
12192 msgstr ""
12193
12194 # type: textblock
12195 #: ../src/guestfs-actions.pod:4505
12196 msgid ""
12197 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12198 "effect."
12199 msgstr ""
12200
12201 # type: =head2
12202 #: ../src/guestfs-actions.pod:4510
12203 msgid "guestfs_set_path"
12204 msgstr ""
12205
12206 # type: verbatim
12207 #: ../src/guestfs-actions.pod:4512
12208 #, no-wrap
12209 msgid ""
12210 " int guestfs_set_path (guestfs_h *g,\n"
12211 "\t\tconst char *searchpath);\n"
12212 "\n"
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3488
12217 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:3490
12222 msgid ""
12223 "The default is C<$libdir/guestfs> unless overridden by setting "
12224 "C<LIBGUESTFS_PATH> environment variable."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3493
12229 msgid "Setting C<path> to C<NULL> restores the default path."
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4524
12234 msgid "guestfs_set_qemu"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4526
12239 #, no-wrap
12240 msgid ""
12241 " int guestfs_set_qemu (guestfs_h *g,\n"
12242 "\t\tconst char *qemu);\n"
12243 "\n"
12244 msgstr ""
12245
12246 # type: textblock
12247 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3501
12248 msgid "Set the qemu binary that we will use."
12249 msgstr ""
12250
12251 # type: textblock
12252 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3503
12253 msgid ""
12254 "The default is chosen when the library was compiled by the configure script."
12255 msgstr ""
12256
12257 # type: textblock
12258 #: ../src/guestfs-actions.pod:4534 ../fish/guestfish-actions.pod:3506
12259 msgid ""
12260 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12261 "variable."
12262 msgstr ""
12263
12264 # type: textblock
12265 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3509
12266 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3511
12271 msgid ""
12272 "Note that you should call this function as early as possible after creating "
12273 "the handle.  This is because some pre-launch operations depend on testing "
12274 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12275 "don't retest features, and so you might see inconsistent results.  Using the "
12276 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12277 "the qemu binary at the same time as the handle is created."
12278 msgstr ""
12279
12280 # type: =head2
12281 #: ../src/guestfs-actions.pod:4549
12282 msgid "guestfs_set_recovery_proc"
12283 msgstr ""
12284
12285 # type: verbatim
12286 #: ../src/guestfs-actions.pod:4551
12287 #, no-wrap
12288 msgid ""
12289 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
12290 "\t\tint recoveryproc);\n"
12291 "\n"
12292 msgstr ""
12293
12294 # type: textblock
12295 #: ../src/guestfs-actions.pod:4554
12296 msgid ""
12297 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12298 "not create a recovery process.  The purpose of the recovery process is to "
12299 "stop runaway qemu processes in the case where the main program aborts "
12300 "abruptly."
12301 msgstr ""
12302
12303 # type: textblock
12304 #: ../src/guestfs-actions.pod:4559
12305 msgid ""
12306 "This only has any effect if called before C<guestfs_launch>, and the default "
12307 "is true."
12308 msgstr ""
12309
12310 # type: textblock
12311 #: ../src/guestfs-actions.pod:4562 ../fish/guestfish-actions.pod:3533
12312 msgid ""
12313 "About the only time when you would want to disable this is if the main "
12314 "process will fork itself into the background (\"daemonize\" itself).  In "
12315 "this case the recovery process thinks that the main program has disappeared "
12316 "and so kills qemu, which is not very helpful."
12317 msgstr ""
12318
12319 # type: =head2
12320 #: ../src/guestfs-actions.pod:4570
12321 msgid "guestfs_set_selinux"
12322 msgstr ""
12323
12324 # type: verbatim
12325 #: ../src/guestfs-actions.pod:4572
12326 #, no-wrap
12327 msgid ""
12328 " int guestfs_set_selinux (guestfs_h *g,\n"
12329 "\t\tint selinux);\n"
12330 "\n"
12331 msgstr ""
12332
12333 # type: textblock
12334 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3545
12335 msgid ""
12336 "This sets the selinux flag that is passed to the appliance at boot time.  "
12337 "The default is C<selinux=0> (disabled)."
12338 msgstr ""
12339
12340 # type: textblock
12341 #: ../src/guestfs-actions.pod:4578 ../fish/guestfish-actions.pod:3548
12342 msgid ""
12343 "Note that if SELinux is enabled, it is always in Permissive mode "
12344 "(C<enforcing=0>)."
12345 msgstr ""
12346
12347 # type: =head2
12348 #: ../src/guestfs-actions.pod:4586
12349 msgid "guestfs_set_trace"
12350 msgstr ""
12351
12352 # type: verbatim
12353 #: ../src/guestfs-actions.pod:4588
12354 #, no-wrap
12355 msgid ""
12356 " int guestfs_set_trace (guestfs_h *g,\n"
12357 "\t\tint trace);\n"
12358 "\n"
12359 msgstr ""
12360
12361 # type: textblock
12362 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3560
12363 msgid ""
12364 "If the command trace flag is set to 1, then commands are printed on stderr "
12365 "before they are executed in a format which is very similar to the one used "
12366 "by guestfish.  In other words, you can run a program with this enabled, and "
12367 "you will get out a script which you can feed to guestfish to perform the "
12368 "same set of actions."
12369 msgstr ""
12370
12371 # type: textblock
12372 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3567
12373 msgid ""
12374 "If you want to trace C API calls into libguestfs (and other libraries) then "
12375 "possibly a better way is to use the external ltrace(1) command."
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3571
12380 msgid ""
12381 "Command traces are disabled unless the environment variable "
12382 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12383 msgstr ""
12384
12385 # type: =head2
12386 #: ../src/guestfs-actions.pod:4607
12387 msgid "guestfs_set_verbose"
12388 msgstr ""
12389
12390 # type: verbatim
12391 #: ../src/guestfs-actions.pod:4609
12392 #, no-wrap
12393 msgid ""
12394 " int guestfs_set_verbose (guestfs_h *g,\n"
12395 "\t\tint verbose);\n"
12396 "\n"
12397 msgstr ""
12398
12399 # type: textblock
12400 #: ../src/guestfs-actions.pod:4612 ../fish/guestfish-actions.pod:3580
12401 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12402 msgstr ""
12403
12404 # type: textblock
12405 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3582
12406 msgid ""
12407 "Verbose messages are disabled unless the environment variable "
12408 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12409 msgstr ""
12410
12411 # type: =head2
12412 #: ../src/guestfs-actions.pod:4619
12413 msgid "guestfs_setcon"
12414 msgstr ""
12415
12416 # type: verbatim
12417 #: ../src/guestfs-actions.pod:4621
12418 #, no-wrap
12419 msgid ""
12420 " int guestfs_setcon (guestfs_h *g,\n"
12421 "\t\tconst char *context);\n"
12422 "\n"
12423 msgstr ""
12424
12425 # type: textblock
12426 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3589
12427 msgid ""
12428 "This sets the SELinux security context of the daemon to the string "
12429 "C<context>."
12430 msgstr ""
12431
12432 # type: textblock
12433 #: ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:3592
12434 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12435 msgstr ""
12436
12437 # type: =head2
12438 #: ../src/guestfs-actions.pod:4631
12439 msgid "guestfs_setxattr"
12440 msgstr ""
12441
12442 # type: verbatim
12443 #: ../src/guestfs-actions.pod:4633
12444 #, no-wrap
12445 msgid ""
12446 " int guestfs_setxattr (guestfs_h *g,\n"
12447 "\t\tconst char *xattr,\n"
12448 "\t\tconst char *val,\n"
12449 "\t\tint vallen,\n"
12450 "\t\tconst char *path);\n"
12451 "\n"
12452 msgstr ""
12453
12454 # type: textblock
12455 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3598
12456 msgid ""
12457 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12458 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4643
12463 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12464 msgstr ""
12465
12466 # type: =head2
12467 #: ../src/guestfs-actions.pod:4647
12468 msgid "guestfs_sfdisk"
12469 msgstr ""
12470
12471 # type: verbatim
12472 #: ../src/guestfs-actions.pod:4649
12473 #, no-wrap
12474 msgid ""
12475 " int guestfs_sfdisk (guestfs_h *g,\n"
12476 "\t\tconst char *device,\n"
12477 "\t\tint cyls,\n"
12478 "\t\tint heads,\n"
12479 "\t\tint sectors,\n"
12480 "\t\tchar *const *lines);\n"
12481 "\n"
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3608
12486 msgid ""
12487 "This is a direct interface to the L<sfdisk(8)> program for creating "
12488 "partitions on block devices."
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3611
12493 msgid "C<device> should be a block device, for example C</dev/sda>."
12494 msgstr ""
12495
12496 # type: textblock
12497 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3613
12498 msgid ""
12499 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12500 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12501 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12502 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12503 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12504 "the kernel) cannot work out the right geometry and you will need to tell it."
12505 msgstr ""
12506
12507 # type: textblock
12508 #: ../src/guestfs-actions.pod:4669 ../fish/guestfish-actions.pod:3621
12509 msgid ""
12510 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12511 "refer to the L<sfdisk(8)> manpage."
12512 msgstr ""
12513
12514 # type: textblock
12515 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3624
12516 msgid ""
12517 "To create a single partition occupying the whole disk, you would pass "
12518 "C<lines> as a single element list, when the single element being the string "
12519 "C<,> (comma)."
12520 msgstr ""
12521
12522 # type: textblock
12523 #: ../src/guestfs-actions.pod:4676
12524 msgid ""
12525 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12526 msgstr ""
12527
12528 # type: =head2
12529 #: ../src/guestfs-actions.pod:4684
12530 msgid "guestfs_sfdiskM"
12531 msgstr ""
12532
12533 # type: verbatim
12534 #: ../src/guestfs-actions.pod:4686
12535 #, no-wrap
12536 msgid ""
12537 " int guestfs_sfdiskM (guestfs_h *g,\n"
12538 "\t\tconst char *device,\n"
12539 "\t\tchar *const *lines);\n"
12540 "\n"
12541 msgstr ""
12542
12543 # type: textblock
12544 #: ../src/guestfs-actions.pod:4690
12545 msgid ""
12546 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12547 "partition sizes are specified in megabytes only (rounded to the nearest "
12548 "cylinder) and you don't need to specify the cyls, heads and sectors "
12549 "parameters which were rarely if ever used anyway."
12550 msgstr ""
12551
12552 # type: textblock
12553 #: ../src/guestfs-actions.pod:4696
12554 msgid ""
12555 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12556 "C<guestfs_part_disk>"
12557 msgstr ""
12558
12559 # type: =head2
12560 #: ../src/guestfs-actions.pod:4704
12561 msgid "guestfs_sfdisk_N"
12562 msgstr ""
12563
12564 # type: verbatim
12565 #: ../src/guestfs-actions.pod:4706
12566 #, no-wrap
12567 msgid ""
12568 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12569 "\t\tconst char *device,\n"
12570 "\t\tint partnum,\n"
12571 "\t\tint cyls,\n"
12572 "\t\tint heads,\n"
12573 "\t\tint sectors,\n"
12574 "\t\tconst char *line);\n"
12575 "\n"
12576 msgstr ""
12577
12578 # type: textblock
12579 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3654
12580 msgid ""
12581 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12582 "(note: C<n> counts from 1)."
12583 msgstr ""
12584
12585 # type: textblock
12586 #: ../src/guestfs-actions.pod:4717
12587 msgid ""
12588 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12589 "for the cyls/heads/sectors parameters."
12590 msgstr ""
12591
12592 # type: textblock
12593 #: ../src/guestfs-actions.pod:4720
12594 msgid "See also: C<guestfs_part_add>"
12595 msgstr ""
12596
12597 # type: =head2
12598 #: ../src/guestfs-actions.pod:4727
12599 msgid "guestfs_sfdisk_disk_geometry"
12600 msgstr ""
12601
12602 # type: verbatim
12603 #: ../src/guestfs-actions.pod:4729
12604 #, no-wrap
12605 msgid ""
12606 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12607 "\t\tconst char *device);\n"
12608 "\n"
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:4732
12613 msgid ""
12614 "This displays the disk geometry of C<device> read from the partition table.  "
12615 "Especially in the case where the underlying block device has been resized, "
12616 "this can be different from the kernel's idea of the geometry (see "
12617 "C<guestfs_sfdisk_kernel_geometry>)."
12618 msgstr ""
12619
12620 # type: textblock
12621 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4750
12622 #: ../fish/guestfish-actions.pod:3674 ../fish/guestfish-actions.pod:3683
12623 msgid "The result is in human-readable format, and not designed to be parsed."
12624 msgstr ""
12625
12626 # type: =head2
12627 #: ../src/guestfs-actions.pod:4743
12628 msgid "guestfs_sfdisk_kernel_geometry"
12629 msgstr ""
12630
12631 # type: verbatim
12632 #: ../src/guestfs-actions.pod:4745
12633 #, no-wrap
12634 msgid ""
12635 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12636 "\t\tconst char *device);\n"
12637 "\n"
12638 msgstr ""
12639
12640 # type: textblock
12641 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3681
12642 msgid "This displays the kernel's idea of the geometry of C<device>."
12643 msgstr ""
12644
12645 # type: =head2
12646 #: ../src/guestfs-actions.pod:4756
12647 msgid "guestfs_sfdisk_l"
12648 msgstr ""
12649
12650 # type: verbatim
12651 #: ../src/guestfs-actions.pod:4758
12652 #, no-wrap
12653 msgid ""
12654 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12655 "\t\tconst char *device);\n"
12656 "\n"
12657 msgstr ""
12658
12659 # type: textblock
12660 #: ../src/guestfs-actions.pod:4761 ../fish/guestfish-actions.pod:3690
12661 msgid ""
12662 "This displays the partition table on C<device>, in the human-readable output "
12663 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:4765
12668 msgid "See also: C<guestfs_part_list>"
12669 msgstr ""
12670
12671 # type: =head2
12672 #: ../src/guestfs-actions.pod:4770
12673 msgid "guestfs_sh"
12674 msgstr ""
12675
12676 # type: verbatim
12677 #: ../src/guestfs-actions.pod:4772
12678 #, no-wrap
12679 msgid ""
12680 " char *guestfs_sh (guestfs_h *g,\n"
12681 "\t\tconst char *command);\n"
12682 "\n"
12683 msgstr ""
12684
12685 # type: textblock
12686 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3700
12687 msgid ""
12688 "This call runs a command from the guest filesystem via the guest's C</bin/"
12689 "sh>."
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:4778
12694 msgid "This is like C<guestfs_command>, but passes the command to:"
12695 msgstr ""
12696
12697 # type: verbatim
12698 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3705
12699 #, no-wrap
12700 msgid ""
12701 " /bin/sh -c \"command\"\n"
12702 "\n"
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3707
12707 msgid ""
12708 "Depending on the guest's shell, this usually results in wildcards being "
12709 "expanded, shell expressions being interpolated and so on."
12710 msgstr ""
12711
12712 # type: textblock
12713 #: ../src/guestfs-actions.pod:4786
12714 msgid "All the provisos about C<guestfs_command> apply to this call."
12715 msgstr ""
12716
12717 # type: =head2
12718 #: ../src/guestfs-actions.pod:4791
12719 msgid "guestfs_sh_lines"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #: ../src/guestfs-actions.pod:4793
12724 #, no-wrap
12725 msgid ""
12726 " char **guestfs_sh_lines (guestfs_h *g,\n"
12727 "\t\tconst char *command);\n"
12728 "\n"
12729 msgstr ""
12730
12731 # type: textblock
12732 #: ../src/guestfs-actions.pod:4796
12733 msgid ""
12734 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12735 "lines."
12736 msgstr ""
12737
12738 # type: textblock
12739 #: ../src/guestfs-actions.pod:4799
12740 msgid "See also: C<guestfs_command_lines>"
12741 msgstr ""
12742
12743 # type: =head2
12744 #: ../src/guestfs-actions.pod:4805
12745 msgid "guestfs_sleep"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #: ../src/guestfs-actions.pod:4807
12750 #, no-wrap
12751 msgid ""
12752 " int guestfs_sleep (guestfs_h *g,\n"
12753 "\t\tint secs);\n"
12754 "\n"
12755 msgstr ""
12756
12757 # type: textblock
12758 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3726
12759 msgid "Sleep for C<secs> seconds."
12760 msgstr ""
12761
12762 # type: =head2
12763 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-structs.pod:109
12764 msgid "guestfs_stat"
12765 msgstr ""
12766
12767 # type: verbatim
12768 #: ../src/guestfs-actions.pod:4816
12769 #, no-wrap
12770 msgid ""
12771 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12772 "\t\tconst char *path);\n"
12773 "\n"
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:4821 ../fish/guestfish-actions.pod:3734
12778 msgid "This is the same as the C<stat(2)> system call."
12779 msgstr ""
12780
12781 # type: =head2
12782 #: ../src/guestfs-actions.pod:4827 ../src/guestfs-structs.pod:135
12783 msgid "guestfs_statvfs"
12784 msgstr ""
12785
12786 # type: verbatim
12787 #: ../src/guestfs-actions.pod:4829
12788 #, no-wrap
12789 msgid ""
12790 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12791 "\t\tconst char *path);\n"
12792 "\n"
12793 msgstr ""
12794
12795 # type: textblock
12796 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3740
12797 msgid ""
12798 "Returns file system statistics for any mounted file system.  C<path> should "
12799 "be a file or directory in the mounted file system (typically it is the mount "
12800 "point itself, but it doesn't need to be)."
12801 msgstr ""
12802
12803 # type: textblock
12804 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3744
12805 msgid "This is the same as the C<statvfs(2)> system call."
12806 msgstr ""
12807
12808 # type: textblock
12809 #: ../src/guestfs-actions.pod:4838
12810 msgid ""
12811 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12812 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12813 msgstr ""
12814
12815 # type: =head2
12816 #: ../src/guestfs-actions.pod:4842
12817 msgid "guestfs_strings"
12818 msgstr ""
12819
12820 # type: verbatim
12821 #: ../src/guestfs-actions.pod:4844
12822 #, no-wrap
12823 msgid ""
12824 " char **guestfs_strings (guestfs_h *g,\n"
12825 "\t\tconst char *path);\n"
12826 "\n"
12827 msgstr ""
12828
12829 # type: textblock
12830 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3750
12831 msgid ""
12832 "This runs the L<strings(1)> command on a file and returns the list of "
12833 "printable strings found."
12834 msgstr ""
12835
12836 # type: =head2
12837 #: ../src/guestfs-actions.pod:4857
12838 msgid "guestfs_strings_e"
12839 msgstr ""
12840
12841 # type: verbatim
12842 #: ../src/guestfs-actions.pod:4859
12843 #, no-wrap
12844 msgid ""
12845 " char **guestfs_strings_e (guestfs_h *g,\n"
12846 "\t\tconst char *encoding,\n"
12847 "\t\tconst char *path);\n"
12848 "\n"
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:4863
12853 msgid ""
12854 "This is like the C<guestfs_strings> command, but allows you to specify the "
12855 "encoding of strings that are looked for in the source file C<path>."
12856 msgstr ""
12857
12858 # type: textblock
12859 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3764
12860 msgid "Allowed encodings are:"
12861 msgstr ""
12862
12863 # type: =item
12864 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3768
12865 msgid "s"
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:4873
12870 msgid ""
12871 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12872 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12873 msgstr ""
12874
12875 # type: =item
12876 #: ../src/guestfs-actions.pod:4876 ../fish/guestfish-actions.pod:3773
12877 msgid "S"
12878 msgstr ""
12879
12880 # type: textblock
12881 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3775
12882 msgid "Single 8-bit-byte characters."
12883 msgstr ""
12884
12885 # type: =item
12886 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3777
12887 msgid "b"
12888 msgstr ""
12889
12890 # type: textblock
12891 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3779
12892 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12893 msgstr ""
12894
12895 # type: =item
12896 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3782
12897 msgid "l (lower case letter L)"
12898 msgstr ""
12899
12900 # type: textblock
12901 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3784
12902 msgid ""
12903 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12904 "examining binaries in Windows guests."
12905 msgstr ""
12906
12907 # type: =item
12908 #: ../src/guestfs-actions.pod:4890 ../fish/guestfish-actions.pod:3787
12909 msgid "B"
12910 msgstr ""
12911
12912 # type: textblock
12913 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3789
12914 msgid "32-bit big endian such as UCS-4BE."
12915 msgstr ""
12916
12917 # type: =item
12918 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3791
12919 msgid "L"
12920 msgstr ""
12921
12922 # type: textblock
12923 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3793
12924 msgid "32-bit little endian such as UCS-4LE."
12925 msgstr ""
12926
12927 # type: textblock
12928 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3797
12929 msgid "The returned strings are transcoded to UTF-8."
12930 msgstr ""
12931
12932 # type: =head2
12933 #: ../src/guestfs-actions.pod:4909
12934 msgid "guestfs_swapoff_device"
12935 msgstr ""
12936
12937 # type: verbatim
12938 #: ../src/guestfs-actions.pod:4911
12939 #, no-wrap
12940 msgid ""
12941 " int guestfs_swapoff_device (guestfs_h *g,\n"
12942 "\t\tconst char *device);\n"
12943 "\n"
12944 msgstr ""
12945
12946 # type: textblock
12947 #: ../src/guestfs-actions.pod:4914
12948 msgid ""
12949 "This command disables the libguestfs appliance swap device or partition "
12950 "named C<device>.  See C<guestfs_swapon_device>."
12951 msgstr ""
12952
12953 # type: =head2
12954 #: ../src/guestfs-actions.pod:4920
12955 msgid "guestfs_swapoff_file"
12956 msgstr ""
12957
12958 # type: verbatim
12959 #: ../src/guestfs-actions.pod:4922
12960 #, no-wrap
12961 msgid ""
12962 " int guestfs_swapoff_file (guestfs_h *g,\n"
12963 "\t\tconst char *file);\n"
12964 "\n"
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3814
12969 msgid "This command disables the libguestfs appliance swap on file."
12970 msgstr ""
12971
12972 # type: =head2
12973 #: ../src/guestfs-actions.pod:4929
12974 msgid "guestfs_swapoff_label"
12975 msgstr ""
12976
12977 # type: verbatim
12978 #: ../src/guestfs-actions.pod:4931
12979 #, no-wrap
12980 msgid ""
12981 " int guestfs_swapoff_label (guestfs_h *g,\n"
12982 "\t\tconst char *label);\n"
12983 "\n"
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3820
12988 msgid ""
12989 "This command disables the libguestfs appliance swap on labeled swap "
12990 "partition."
12991 msgstr ""
12992
12993 # type: =head2
12994 #: ../src/guestfs-actions.pod:4939
12995 msgid "guestfs_swapoff_uuid"
12996 msgstr ""
12997
12998 # type: verbatim
12999 #: ../src/guestfs-actions.pod:4941
13000 #, no-wrap
13001 msgid ""
13002 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
13003 "\t\tconst char *uuid);\n"
13004 "\n"
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3827
13009 msgid ""
13010 "This command disables the libguestfs appliance swap partition with the given "
13011 "UUID."
13012 msgstr ""
13013
13014 # type: =head2
13015 #: ../src/guestfs-actions.pod:4949
13016 msgid "guestfs_swapon_device"
13017 msgstr ""
13018
13019 # type: verbatim
13020 #: ../src/guestfs-actions.pod:4951
13021 #, no-wrap
13022 msgid ""
13023 " int guestfs_swapon_device (guestfs_h *g,\n"
13024 "\t\tconst char *device);\n"
13025 "\n"
13026 msgstr ""
13027
13028 # type: textblock
13029 #: ../src/guestfs-actions.pod:4954
13030 msgid ""
13031 "This command enables the libguestfs appliance to use the swap device or "
13032 "partition named C<device>.  The increased memory is made available for all "
13033 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13034 msgstr ""
13035
13036 # type: textblock
13037 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3839
13038 msgid ""
13039 "Note that you should not swap to existing guest swap partitions unless you "
13040 "know what you are doing.  They may contain hibernation information, or other "
13041 "information that the guest doesn't want you to trash.  You also risk leaking "
13042 "information about the host to the guest this way.  Instead, attach a new "
13043 "host device to the guest and swap on that."
13044 msgstr ""
13045
13046 # type: =head2
13047 #: ../src/guestfs-actions.pod:4968
13048 msgid "guestfs_swapon_file"
13049 msgstr ""
13050
13051 # type: verbatim
13052 #: ../src/guestfs-actions.pod:4970
13053 #, no-wrap
13054 msgid ""
13055 " int guestfs_swapon_file (guestfs_h *g,\n"
13056 "\t\tconst char *file);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:4973
13062 msgid ""
13063 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13064 "notes."
13065 msgstr ""
13066
13067 # type: =head2
13068 #: ../src/guestfs-actions.pod:4978
13069 msgid "guestfs_swapon_label"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #: ../src/guestfs-actions.pod:4980
13074 #, no-wrap
13075 msgid ""
13076 " int guestfs_swapon_label (guestfs_h *g,\n"
13077 "\t\tconst char *label);\n"
13078 "\n"
13079 msgstr ""
13080
13081 # type: textblock
13082 #: ../src/guestfs-actions.pod:4983
13083 msgid ""
13084 "This command enables swap to a labeled swap partition.  See "
13085 "C<guestfs_swapon_device> for other notes."
13086 msgstr ""
13087
13088 # type: =head2
13089 #: ../src/guestfs-actions.pod:4988
13090 msgid "guestfs_swapon_uuid"
13091 msgstr ""
13092
13093 # type: verbatim
13094 #: ../src/guestfs-actions.pod:4990
13095 #, no-wrap
13096 msgid ""
13097 " int guestfs_swapon_uuid (guestfs_h *g,\n"
13098 "\t\tconst char *uuid);\n"
13099 "\n"
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:4993
13104 msgid ""
13105 "This command enables swap to a swap partition with the given UUID.  See "
13106 "C<guestfs_swapon_device> for other notes."
13107 msgstr ""
13108
13109 # type: =head2
13110 #: ../src/guestfs-actions.pod:4998
13111 msgid "guestfs_sync"
13112 msgstr ""
13113
13114 # type: verbatim
13115 #: ../src/guestfs-actions.pod:5000
13116 #, no-wrap
13117 msgid ""
13118 " int guestfs_sync (guestfs_h *g);\n"
13119 "\n"
13120 msgstr ""
13121
13122 # type: textblock
13123 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3871
13124 msgid ""
13125 "This syncs the disk, so that any writes are flushed through to the "
13126 "underlying disk image."
13127 msgstr ""
13128
13129 # type: textblock
13130 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3874
13131 msgid ""
13132 "You should always call this if you have modified a disk image, before "
13133 "closing the handle."
13134 msgstr ""
13135
13136 # type: =head2
13137 #: ../src/guestfs-actions.pod:5010
13138 msgid "guestfs_tail"
13139 msgstr ""
13140
13141 # type: verbatim
13142 #: ../src/guestfs-actions.pod:5012
13143 #, no-wrap
13144 msgid ""
13145 " char **guestfs_tail (guestfs_h *g,\n"
13146 "\t\tconst char *path);\n"
13147 "\n"
13148 msgstr ""
13149
13150 # type: textblock
13151 #: ../src/guestfs-actions.pod:5015 ../fish/guestfish-actions.pod:3881
13152 msgid ""
13153 "This command returns up to the last 10 lines of a file as a list of strings."
13154 msgstr ""
13155
13156 # type: =head2
13157 #: ../src/guestfs-actions.pod:5025
13158 msgid "guestfs_tail_n"
13159 msgstr ""
13160
13161 # type: verbatim
13162 #: ../src/guestfs-actions.pod:5027
13163 #, no-wrap
13164 msgid ""
13165 " char **guestfs_tail_n (guestfs_h *g,\n"
13166 "\t\tint nrlines,\n"
13167 "\t\tconst char *path);\n"
13168 "\n"
13169 msgstr ""
13170
13171 # type: textblock
13172 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3891
13173 msgid ""
13174 "If the parameter C<nrlines> is a positive number, this returns the last "
13175 "C<nrlines> lines of the file C<path>."
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3894
13180 msgid ""
13181 "If the parameter C<nrlines> is a negative number, this returns lines from "
13182 "the file C<path>, starting with the C<-nrlines>th line."
13183 msgstr ""
13184
13185 # type: =head2
13186 #: ../src/guestfs-actions.pod:5046
13187 msgid "guestfs_tar_in"
13188 msgstr ""
13189
13190 # type: verbatim
13191 #: ../src/guestfs-actions.pod:5048
13192 #, no-wrap
13193 msgid ""
13194 " int guestfs_tar_in (guestfs_h *g,\n"
13195 "\t\tconst char *tarfile,\n"
13196 "\t\tconst char *directory);\n"
13197 "\n"
13198 msgstr ""
13199
13200 # type: textblock
13201 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3906
13202 msgid ""
13203 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13204 "tar file) into C<directory>."
13205 msgstr ""
13206
13207 # type: textblock
13208 #: ../src/guestfs-actions.pod:5055
13209 msgid ""
13210 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13211 msgstr ""
13212
13213 # type: =head2
13214 #: ../src/guestfs-actions.pod:5060
13215 msgid "guestfs_tar_out"
13216 msgstr ""
13217
13218 # type: verbatim
13219 #: ../src/guestfs-actions.pod:5062
13220 #, no-wrap
13221 msgid ""
13222 " int guestfs_tar_out (guestfs_h *g,\n"
13223 "\t\tconst char *directory,\n"
13224 "\t\tconst char *tarfile);\n"
13225 "\n"
13226 msgstr ""
13227
13228 # type: textblock
13229 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3918
13230 msgid ""
13231 "This command packs the contents of C<directory> and downloads it to local "
13232 "file C<tarfile>."
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5069
13237 msgid ""
13238 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13239 "C<guestfs_txz_out>."
13240 msgstr ""
13241
13242 # type: =head2
13243 #: ../src/guestfs-actions.pod:5074
13244 msgid "guestfs_tgz_in"
13245 msgstr ""
13246
13247 # type: verbatim
13248 #: ../src/guestfs-actions.pod:5076
13249 #, no-wrap
13250 msgid ""
13251 " int guestfs_tgz_in (guestfs_h *g,\n"
13252 "\t\tconst char *tarball,\n"
13253 "\t\tconst char *directory);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3930
13259 msgid ""
13260 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13261 "tar file) into C<directory>."
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5083
13266 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13267 msgstr ""
13268
13269 # type: =head2
13270 #: ../src/guestfs-actions.pod:5087
13271 msgid "guestfs_tgz_out"
13272 msgstr ""
13273
13274 # type: verbatim
13275 #: ../src/guestfs-actions.pod:5089
13276 #, no-wrap
13277 msgid ""
13278 " int guestfs_tgz_out (guestfs_h *g,\n"
13279 "\t\tconst char *directory,\n"
13280 "\t\tconst char *tarball);\n"
13281 "\n"
13282 msgstr ""
13283
13284 # type: textblock
13285 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3941
13286 msgid ""
13287 "This command packs the contents of C<directory> and downloads it to local "
13288 "file C<tarball>."
13289 msgstr ""
13290
13291 # type: textblock
13292 #: ../src/guestfs-actions.pod:5096
13293 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13294 msgstr ""
13295
13296 # type: =head2
13297 #: ../src/guestfs-actions.pod:5100
13298 msgid "guestfs_touch"
13299 msgstr ""
13300
13301 # type: verbatim
13302 #: ../src/guestfs-actions.pod:5102
13303 #, no-wrap
13304 msgid ""
13305 " int guestfs_touch (guestfs_h *g,\n"
13306 "\t\tconst char *path);\n"
13307 "\n"
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3952
13312 msgid ""
13313 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13314 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13315 "length file."
13316 msgstr ""
13317
13318 # type: textblock
13319 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3956
13320 msgid ""
13321 "This command only works on regular files, and will fail on other file types "
13322 "such as directories, symbolic links, block special etc."
13323 msgstr ""
13324
13325 # type: =head2
13326 #: ../src/guestfs-actions.pod:5114
13327 msgid "guestfs_truncate"
13328 msgstr ""
13329
13330 # type: verbatim
13331 #: ../src/guestfs-actions.pod:5116
13332 #, no-wrap
13333 msgid ""
13334 " int guestfs_truncate (guestfs_h *g,\n"
13335 "\t\tconst char *path);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3963
13341 msgid ""
13342 "This command truncates C<path> to a zero-length file.  The file must exist "
13343 "already."
13344 msgstr ""
13345
13346 # type: =head2
13347 #: ../src/guestfs-actions.pod:5124
13348 msgid "guestfs_truncate_size"
13349 msgstr ""
13350
13351 # type: verbatim
13352 #: ../src/guestfs-actions.pod:5126
13353 #, no-wrap
13354 msgid ""
13355 " int guestfs_truncate_size (guestfs_h *g,\n"
13356 "\t\tconst char *path,\n"
13357 "\t\tint64_t size);\n"
13358 "\n"
13359 msgstr ""
13360
13361 # type: textblock
13362 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3970
13363 msgid ""
13364 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13365 "already."
13366 msgstr ""
13367
13368 # type: textblock
13369 #: ../src/guestfs-actions.pod:5133
13370 msgid ""
13371 "If the current file size is less than C<size> then the file is extended to "
13372 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13373 "blocks are not allocated for the file until you write to it).  To create a "
13374 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13375 msgstr ""
13376
13377 # type: =head2
13378 #: ../src/guestfs-actions.pod:5141
13379 msgid "guestfs_tune2fs_l"
13380 msgstr ""
13381
13382 # type: verbatim
13383 #: ../src/guestfs-actions.pod:5143
13384 #, no-wrap
13385 msgid ""
13386 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13387 "\t\tconst char *device);\n"
13388 "\n"
13389 msgstr ""
13390
13391 # type: textblock
13392 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3983
13393 msgid ""
13394 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13395 "C<device>."
13396 msgstr ""
13397
13398 # type: textblock
13399 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3986
13400 msgid ""
13401 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13402 "for more details.  The list of fields returned isn't clearly defined, and "
13403 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13404 "and the filesystem itself."
13405 msgstr ""
13406
13407 # type: =head2
13408 #: ../src/guestfs-actions.pod:5160
13409 msgid "guestfs_txz_in"
13410 msgstr ""
13411
13412 # type: verbatim
13413 #: ../src/guestfs-actions.pod:5162
13414 #, no-wrap
13415 msgid ""
13416 " int guestfs_txz_in (guestfs_h *g,\n"
13417 "\t\tconst char *tarball,\n"
13418 "\t\tconst char *directory);\n"
13419 "\n"
13420 msgstr ""
13421
13422 # type: textblock
13423 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:3995
13424 msgid ""
13425 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13426 "tar file) into C<directory>."
13427 msgstr ""
13428
13429 # type: =head2
13430 #: ../src/guestfs-actions.pod:5171
13431 msgid "guestfs_txz_out"
13432 msgstr ""
13433
13434 # type: verbatim
13435 #: ../src/guestfs-actions.pod:5173
13436 #, no-wrap
13437 msgid ""
13438 " int guestfs_txz_out (guestfs_h *g,\n"
13439 "\t\tconst char *directory,\n"
13440 "\t\tconst char *tarball);\n"
13441 "\n"
13442 msgstr ""
13443
13444 # type: textblock
13445 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:4004
13446 msgid ""
13447 "This command packs the contents of C<directory> and downloads it to local "
13448 "file C<tarball> (as an xz compressed tar archive)."
13449 msgstr ""
13450
13451 # type: =head2
13452 #: ../src/guestfs-actions.pod:5182
13453 msgid "guestfs_umask"
13454 msgstr ""
13455
13456 # type: verbatim
13457 #: ../src/guestfs-actions.pod:5184
13458 #, no-wrap
13459 msgid ""
13460 " int guestfs_umask (guestfs_h *g,\n"
13461 "\t\tint mask);\n"
13462 "\n"
13463 msgstr ""
13464
13465 # type: textblock
13466 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:4013
13467 msgid ""
13468 "This function sets the mask used for creating new files and device nodes to "
13469 "C<mask & 0777>."
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:4016
13474 msgid ""
13475 "Typical umask values would be C<022> which creates new files with "
13476 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13477 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13478 msgstr ""
13479
13480 # type: textblock
13481 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:4021
13482 msgid ""
13483 "The default umask is C<022>.  This is important because it means that "
13484 "directories and device nodes will be created with C<0644> or C<0755> mode "
13485 "even if you specify C<0777>."
13486 msgstr ""
13487
13488 # type: textblock
13489 #: ../src/guestfs-actions.pod:5199
13490 msgid ""
13491 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13492 "C<guestfs_mkdir>."
13493 msgstr ""
13494
13495 # type: textblock
13496 #: ../src/guestfs-actions.pod:5202 ../fish/guestfish-actions.pod:4028
13497 msgid "This call returns the previous umask."
13498 msgstr ""
13499
13500 # type: =head2
13501 #: ../src/guestfs-actions.pod:5206
13502 msgid "guestfs_umount"
13503 msgstr ""
13504
13505 # type: verbatim
13506 #: ../src/guestfs-actions.pod:5208
13507 #, no-wrap
13508 msgid ""
13509 " int guestfs_umount (guestfs_h *g,\n"
13510 "\t\tconst char *pathordevice);\n"
13511 "\n"
13512 msgstr ""
13513
13514 # type: textblock
13515 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:4036
13516 msgid ""
13517 "This unmounts the given filesystem.  The filesystem may be specified either "
13518 "by its mountpoint (path) or the device which contains the filesystem."
13519 msgstr ""
13520
13521 # type: =head2
13522 #: ../src/guestfs-actions.pod:5217
13523 msgid "guestfs_umount_all"
13524 msgstr ""
13525
13526 # type: verbatim
13527 #: ../src/guestfs-actions.pod:5219
13528 #, no-wrap
13529 msgid ""
13530 " int guestfs_umount_all (guestfs_h *g);\n"
13531 "\n"
13532 msgstr ""
13533
13534 # type: textblock
13535 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:4046
13536 msgid "This unmounts all mounted filesystems."
13537 msgstr ""
13538
13539 # type: textblock
13540 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:4048
13541 msgid "Some internal mounts are not unmounted by this call."
13542 msgstr ""
13543
13544 # type: =head2
13545 #: ../src/guestfs-actions.pod:5227
13546 msgid "guestfs_upload"
13547 msgstr ""
13548
13549 # type: verbatim
13550 #: ../src/guestfs-actions.pod:5229
13551 #, no-wrap
13552 msgid ""
13553 " int guestfs_upload (guestfs_h *g,\n"
13554 "\t\tconst char *filename,\n"
13555 "\t\tconst char *remotefilename);\n"
13556 "\n"
13557 msgstr ""
13558
13559 # type: textblock
13560 #: ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5249
13561 #: ../fish/guestfish-actions.pod:4054 ../fish/guestfish-actions.pod:4067
13562 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13563 msgstr ""
13564
13565 # type: textblock
13566 #: ../src/guestfs-actions.pod:5238
13567 msgid "See also C<guestfs_download>."
13568 msgstr ""
13569
13570 # type: =head2
13571 #: ../src/guestfs-actions.pod:5242
13572 msgid "guestfs_upload_offset"
13573 msgstr ""
13574
13575 # type: verbatim
13576 #: ../src/guestfs-actions.pod:5244
13577 #, no-wrap
13578 msgid ""
13579 " int guestfs_upload_offset (guestfs_h *g,\n"
13580 "\t\tconst char *filename,\n"
13581 "\t\tconst char *remotefilename,\n"
13582 "\t\tint64_t offset);\n"
13583 "\n"
13584 msgstr ""
13585
13586 # type: textblock
13587 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:4070
13588 msgid ""
13589 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13590 "The intention is to overwrite parts of existing files or devices, although "
13591 "if a non-existant file is specified then it is created with a \"hole\" "
13592 "before C<offset>.  The size of the data written is implicit in the size of "
13593 "the source C<filename>."
13594 msgstr ""
13595
13596 # type: textblock
13597 #: ../src/guestfs-actions.pod:5259
13598 msgid ""
13599 "Note that there is no limit on the amount of data that can be uploaded with "
13600 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13601 "full amount unless an error occurs."
13602 msgstr ""
13603
13604 # type: textblock
13605 #: ../src/guestfs-actions.pod:5264
13606 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13607 msgstr ""
13608
13609 # type: =head2
13610 #: ../src/guestfs-actions.pod:5268
13611 msgid "guestfs_utimens"
13612 msgstr ""
13613
13614 # type: verbatim
13615 #: ../src/guestfs-actions.pod:5270
13616 #, no-wrap
13617 msgid ""
13618 " int guestfs_utimens (guestfs_h *g,\n"
13619 "\t\tconst char *path,\n"
13620 "\t\tint64_t atsecs,\n"
13621 "\t\tint64_t atnsecs,\n"
13622 "\t\tint64_t mtsecs,\n"
13623 "\t\tint64_t mtnsecs);\n"
13624 "\n"
13625 msgstr ""
13626
13627 # type: textblock
13628 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:4090
13629 msgid "This command sets the timestamps of a file with nanosecond precision."
13630 msgstr ""
13631
13632 # type: textblock
13633 #: ../src/guestfs-actions.pod:5280 ../fish/guestfish-actions.pod:4093
13634 msgid ""
13635 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13636 "from the epoch."
13637 msgstr ""
13638
13639 # type: textblock
13640 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:4096
13641 msgid ""
13642 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13643 "nanoseconds from the epoch."
13644 msgstr ""
13645
13646 # type: textblock
13647 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:4099
13648 msgid ""
13649 "If the C<*nsecs> field contains the special value C<-1> then the "
13650 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13651 "ignored in this case)."
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:4103
13656 msgid ""
13657 "If the C<*nsecs> field contains the special value C<-2> then the "
13658 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13659 "in this case)."
13660 msgstr ""
13661
13662 # type: =head2
13663 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-structs.pod:175
13664 msgid "guestfs_version"
13665 msgstr ""
13666
13667 # type: verbatim
13668 #: ../src/guestfs-actions.pod:5298
13669 #, no-wrap
13670 msgid ""
13671 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13672 "\n"
13673 msgstr ""
13674
13675 # type: textblock
13676 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:4111
13677 msgid ""
13678 "Return the libguestfs version number that the program is linked against."
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4114
13683 msgid ""
13684 "Note that because of dynamic linking this is not necessarily the version of "
13685 "libguestfs that you compiled against.  You can compile the program, and then "
13686 "at runtime dynamically link against a completely different C<libguestfs.so> "
13687 "library."
13688 msgstr ""
13689
13690 # type: textblock
13691 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:4119
13692 msgid ""
13693 "This call was added in version C<1.0.58>.  In previous versions of "
13694 "libguestfs there was no way to get the version number.  From C code you can "
13695 "use dynamic linker functions to find out if this symbol exists (if it "
13696 "doesn't, then it's an earlier version)."
13697 msgstr ""
13698
13699 # type: textblock
13700 #: ../src/guestfs-actions.pod:5314 ../fish/guestfish-actions.pod:4125
13701 msgid ""
13702 "The call returns a structure with four elements.  The first three (C<major>, "
13703 "C<minor> and C<release>) are numbers and correspond to the usual version "
13704 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13705 "but may be used for distro-specific information."
13706 msgstr ""
13707
13708 # type: textblock
13709 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:4131
13710 msgid ""
13711 "To construct the original version string: C<$major.$minor.$release$extra>"
13712 msgstr ""
13713
13714 # type: textblock
13715 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:4134
13716 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13717 msgstr ""
13718
13719 # type: textblock
13720 #: ../src/guestfs-actions.pod:5325
13721 msgid ""
13722 "I<Note:> Don't use this call to test for availability of features.  In "
13723 "enterprise distributions we backport features from later versions into "
13724 "earlier versions, making this an unreliable way to test for features.  Use "
13725 "C<guestfs_available> instead."
13726 msgstr ""
13727
13728 # type: textblock
13729 #: ../src/guestfs-actions.pod:5331
13730 msgid ""
13731 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13732 "error.  I<The caller must call C<guestfs_free_version> after use>."
13733 msgstr ""
13734
13735 # type: =head2
13736 #: ../src/guestfs-actions.pod:5335
13737 msgid "guestfs_vfs_label"
13738 msgstr ""
13739
13740 # type: verbatim
13741 #: ../src/guestfs-actions.pod:5337
13742 #, no-wrap
13743 msgid ""
13744 " char *guestfs_vfs_label (guestfs_h *g,\n"
13745 "\t\tconst char *device);\n"
13746 "\n"
13747 msgstr ""
13748
13749 # type: textblock
13750 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:4146
13751 msgid "This returns the filesystem label of the filesystem on C<device>."
13752 msgstr ""
13753
13754 # type: textblock
13755 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4149
13756 msgid "If the filesystem is unlabeled, this returns the empty string."
13757 msgstr ""
13758
13759 # type: textblock
13760 #: ../src/guestfs-actions.pod:5345
13761 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13762 msgstr ""
13763
13764 # type: =head2
13765 #: ../src/guestfs-actions.pod:5350
13766 msgid "guestfs_vfs_type"
13767 msgstr ""
13768
13769 # type: verbatim
13770 #: ../src/guestfs-actions.pod:5352
13771 #, no-wrap
13772 msgid ""
13773 " char *guestfs_vfs_type (guestfs_h *g,\n"
13774 "\t\tconst char *device);\n"
13775 "\n"
13776 msgstr ""
13777
13778 # type: textblock
13779 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:4157
13780 msgid ""
13781 "This command gets the filesystem type corresponding to the filesystem on "
13782 "C<device>."
13783 msgstr ""
13784
13785 # type: textblock
13786 #: ../src/guestfs-actions.pod:5358 ../fish/guestfish-actions.pod:4160
13787 msgid ""
13788 "For most filesystems, the result is the name of the Linux VFS module which "
13789 "would be used to mount this filesystem if you mounted it without specifying "
13790 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13791 msgstr ""
13792
13793 # type: =head2
13794 #: ../src/guestfs-actions.pod:5366
13795 msgid "guestfs_vfs_uuid"
13796 msgstr ""
13797
13798 # type: verbatim
13799 #: ../src/guestfs-actions.pod:5368
13800 #, no-wrap
13801 msgid ""
13802 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13803 "\t\tconst char *device);\n"
13804 "\n"
13805 msgstr ""
13806
13807 # type: textblock
13808 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:4169
13809 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13810 msgstr ""
13811
13812 # type: textblock
13813 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:4172
13814 msgid "If the filesystem does not have a UUID, this returns the empty string."
13815 msgstr ""
13816
13817 # type: textblock
13818 #: ../src/guestfs-actions.pod:5376
13819 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13820 msgstr ""
13821
13822 # type: =head2
13823 #: ../src/guestfs-actions.pod:5381
13824 msgid "guestfs_vg_activate"
13825 msgstr ""
13826
13827 # type: verbatim
13828 #: ../src/guestfs-actions.pod:5383
13829 #, no-wrap
13830 msgid ""
13831 " int guestfs_vg_activate (guestfs_h *g,\n"
13832 "\t\tint activate,\n"
13833 "\t\tchar *const *volgroups);\n"
13834 "\n"
13835 msgstr ""
13836
13837 # type: textblock
13838 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:4180
13839 msgid ""
13840 "This command activates or (if C<activate> is false) deactivates all logical "
13841 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13842 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13843 "deactivated, then those devices disappear."
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5393 ../fish/guestfish-actions.pod:4186
13848 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:4188
13853 msgid ""
13854 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13855 "activated or deactivated."
13856 msgstr ""
13857
13858 # type: =head2
13859 #: ../src/guestfs-actions.pod:5400
13860 msgid "guestfs_vg_activate_all"
13861 msgstr ""
13862
13863 # type: verbatim
13864 #: ../src/guestfs-actions.pod:5402
13865 #, no-wrap
13866 msgid ""
13867 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13868 "\t\tint activate);\n"
13869 "\n"
13870 msgstr ""
13871
13872 # type: textblock
13873 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:4195
13874 msgid ""
13875 "This command activates or (if C<activate> is false) deactivates all logical "
13876 "volumes in all volume groups.  If activated, then they are made known to the "
13877 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13878 "those devices disappear."
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:4201
13883 msgid "This command is the same as running C<vgchange -a y|n>"
13884 msgstr ""
13885
13886 # type: =head2
13887 #: ../src/guestfs-actions.pod:5415
13888 msgid "guestfs_vgcreate"
13889 msgstr ""
13890
13891 # type: verbatim
13892 #: ../src/guestfs-actions.pod:5417
13893 #, no-wrap
13894 msgid ""
13895 " int guestfs_vgcreate (guestfs_h *g,\n"
13896 "\t\tconst char *volgroup,\n"
13897 "\t\tchar *const *physvols);\n"
13898 "\n"
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:4207
13903 msgid ""
13904 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13905 "of physical volumes C<physvols>."
13906 msgstr ""
13907
13908 # type: =head2
13909 #: ../src/guestfs-actions.pod:5426
13910 msgid "guestfs_vglvuuids"
13911 msgstr ""
13912
13913 # type: verbatim
13914 #: ../src/guestfs-actions.pod:5428
13915 #, no-wrap
13916 msgid ""
13917 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13918 "\t\tconst char *vgname);\n"
13919 "\n"
13920 msgstr ""
13921
13922 # type: textblock
13923 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:4214
13924 msgid ""
13925 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13926 "volumes created in this volume group."
13927 msgstr ""
13928
13929 # type: textblock
13930 #: ../src/guestfs-actions.pod:5434
13931 msgid ""
13932 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13933 "associate logical volumes and volume groups."
13934 msgstr ""
13935
13936 # type: textblock
13937 #: ../src/guestfs-actions.pod:5437
13938 msgid "See also C<guestfs_vgpvuuids>."
13939 msgstr ""
13940
13941 # type: =head2
13942 #: ../src/guestfs-actions.pod:5443
13943 msgid "guestfs_vgpvuuids"
13944 msgstr ""
13945
13946 # type: verbatim
13947 #: ../src/guestfs-actions.pod:5445
13948 #, no-wrap
13949 msgid ""
13950 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13951 "\t\tconst char *vgname);\n"
13952 "\n"
13953 msgstr ""
13954
13955 # type: textblock
13956 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:4226
13957 msgid ""
13958 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13959 "volumes that this volume group resides on."
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5451
13964 msgid ""
13965 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13966 "associate physical volumes and volume groups."
13967 msgstr ""
13968
13969 # type: textblock
13970 #: ../src/guestfs-actions.pod:5454
13971 msgid "See also C<guestfs_vglvuuids>."
13972 msgstr ""
13973
13974 # type: =head2
13975 #: ../src/guestfs-actions.pod:5460
13976 msgid "guestfs_vgremove"
13977 msgstr ""
13978
13979 # type: verbatim
13980 #: ../src/guestfs-actions.pod:5462
13981 #, no-wrap
13982 msgid ""
13983 " int guestfs_vgremove (guestfs_h *g,\n"
13984 "\t\tconst char *vgname);\n"
13985 "\n"
13986 msgstr ""
13987
13988 # type: textblock
13989 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:4238
13990 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13991 msgstr ""
13992
13993 # type: textblock
13994 #: ../src/guestfs-actions.pod:5467 ../fish/guestfish-actions.pod:4240
13995 msgid ""
13996 "This also forcibly removes all logical volumes in the volume group (if any)."
13997 msgstr ""
13998
13999 # type: =head2
14000 #: ../src/guestfs-actions.pod:5472
14001 msgid "guestfs_vgrename"
14002 msgstr ""
14003
14004 # type: verbatim
14005 #: ../src/guestfs-actions.pod:5474
14006 #, no-wrap
14007 msgid ""
14008 " int guestfs_vgrename (guestfs_h *g,\n"
14009 "\t\tconst char *volgroup,\n"
14010 "\t\tconst char *newvolgroup);\n"
14011 "\n"
14012 msgstr ""
14013
14014 # type: textblock
14015 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4247
14016 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14017 msgstr ""
14018
14019 # type: =head2
14020 #: ../src/guestfs-actions.pod:5482
14021 msgid "guestfs_vgs"
14022 msgstr ""
14023
14024 # type: verbatim
14025 #: ../src/guestfs-actions.pod:5484
14026 #, no-wrap
14027 msgid ""
14028 " char **guestfs_vgs (guestfs_h *g);\n"
14029 "\n"
14030 msgstr ""
14031
14032 # type: textblock
14033 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:4253
14034 msgid ""
14035 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14036 "> command."
14037 msgstr ""
14038
14039 # type: textblock
14040 #: ../src/guestfs-actions.pod:5489 ../fish/guestfish-actions.pod:4256
14041 msgid ""
14042 "This returns a list of just the volume group names that were detected (eg. "
14043 "C<VolGroup00>)."
14044 msgstr ""
14045
14046 # type: textblock
14047 #: ../src/guestfs-actions.pod:5492
14048 msgid "See also C<guestfs_vgs_full>."
14049 msgstr ""
14050
14051 # type: =head2
14052 #: ../src/guestfs-actions.pod:5498
14053 msgid "guestfs_vgs_full"
14054 msgstr ""
14055
14056 # type: verbatim
14057 #: ../src/guestfs-actions.pod:5500
14058 #, no-wrap
14059 msgid ""
14060 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:4265
14066 msgid ""
14067 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14068 "> command.  The \"full\" version includes all fields."
14069 msgstr ""
14070
14071 # type: textblock
14072 #: ../src/guestfs-actions.pod:5505
14073 msgid ""
14074 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14075 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14076 "C<guestfs_free_lvm_vg_list> after use>."
14077 msgstr ""
14078
14079 # type: =head2
14080 #: ../src/guestfs-actions.pod:5510
14081 msgid "guestfs_vgscan"
14082 msgstr ""
14083
14084 # type: verbatim
14085 #: ../src/guestfs-actions.pod:5512
14086 #, no-wrap
14087 msgid ""
14088 " int guestfs_vgscan (guestfs_h *g);\n"
14089 "\n"
14090 msgstr ""
14091
14092 # type: textblock
14093 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:4272
14094 msgid ""
14095 "This rescans all block devices and rebuilds the list of LVM physical "
14096 "volumes, volume groups and logical volumes."
14097 msgstr ""
14098
14099 # type: =head2
14100 #: ../src/guestfs-actions.pod:5519
14101 msgid "guestfs_vguuid"
14102 msgstr ""
14103
14104 # type: verbatim
14105 #: ../src/guestfs-actions.pod:5521
14106 #, no-wrap
14107 msgid ""
14108 " char *guestfs_vguuid (guestfs_h *g,\n"
14109 "\t\tconst char *vgname);\n"
14110 "\n"
14111 msgstr ""
14112
14113 # type: textblock
14114 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:4279
14115 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14116 msgstr ""
14117
14118 # type: =head2
14119 #: ../src/guestfs-actions.pod:5529
14120 msgid "guestfs_wait_ready"
14121 msgstr ""
14122
14123 # type: verbatim
14124 #: ../src/guestfs-actions.pod:5531
14125 #, no-wrap
14126 msgid ""
14127 " int guestfs_wait_ready (guestfs_h *g);\n"
14128 "\n"
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../src/guestfs-actions.pod:5533
14133 msgid "This function is a no op."
14134 msgstr ""
14135
14136 # type: textblock
14137 #: ../src/guestfs-actions.pod:5535
14138 msgid ""
14139 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14140 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14141 "is no longer necessary because C<guestfs_launch> now does the waiting."
14142 msgstr ""
14143
14144 # type: textblock
14145 #: ../src/guestfs-actions.pod:5540
14146 msgid ""
14147 "If you see any calls to this function in code then you can just remove them, "
14148 "unless you want to retain compatibility with older versions of the API."
14149 msgstr ""
14150
14151 # type: =head2
14152 #: ../src/guestfs-actions.pod:5546
14153 msgid "guestfs_wc_c"
14154 msgstr ""
14155
14156 # type: verbatim
14157 #: ../src/guestfs-actions.pod:5548
14158 #, no-wrap
14159 msgid ""
14160 " int guestfs_wc_c (guestfs_h *g,\n"
14161 "\t\tconst char *path);\n"
14162 "\n"
14163 msgstr ""
14164
14165 # type: textblock
14166 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:4285
14167 msgid ""
14168 "This command counts the characters in a file, using the C<wc -c> external "
14169 "command."
14170 msgstr ""
14171
14172 # type: =head2
14173 #: ../src/guestfs-actions.pod:5556
14174 msgid "guestfs_wc_l"
14175 msgstr ""
14176
14177 # type: verbatim
14178 #: ../src/guestfs-actions.pod:5558
14179 #, no-wrap
14180 msgid ""
14181 " int guestfs_wc_l (guestfs_h *g,\n"
14182 "\t\tconst char *path);\n"
14183 "\n"
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:4292
14188 msgid ""
14189 "This command counts the lines in a file, using the C<wc -l> external command."
14190 msgstr ""
14191
14192 # type: =head2
14193 #: ../src/guestfs-actions.pod:5566
14194 msgid "guestfs_wc_w"
14195 msgstr ""
14196
14197 # type: verbatim
14198 #: ../src/guestfs-actions.pod:5568
14199 #, no-wrap
14200 msgid ""
14201 " int guestfs_wc_w (guestfs_h *g,\n"
14202 "\t\tconst char *path);\n"
14203 "\n"
14204 msgstr ""
14205
14206 # type: textblock
14207 #: ../src/guestfs-actions.pod:5571 ../fish/guestfish-actions.pod:4299
14208 msgid ""
14209 "This command counts the words in a file, using the C<wc -w> external command."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:5576
14214 msgid "guestfs_write"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:5578
14219 #, no-wrap
14220 msgid ""
14221 " int guestfs_write (guestfs_h *g,\n"
14222 "\t\tconst char *path,\n"
14223 "\t\tconst char *content,\n"
14224 "\t\tsize_t content_size);\n"
14225 "\n"
14226 msgstr ""
14227
14228 # type: textblock
14229 #: ../src/guestfs-actions.pod:5583 ../fish/guestfish-actions.pod:4306
14230 msgid ""
14231 "This call creates a file called C<path>.  The content of the file is the "
14232 "string C<content> (which can contain any 8 bit data)."
14233 msgstr ""
14234
14235 # type: =head2
14236 #: ../src/guestfs-actions.pod:5591
14237 msgid "guestfs_write_file"
14238 msgstr ""
14239
14240 # type: verbatim
14241 #: ../src/guestfs-actions.pod:5593
14242 #, no-wrap
14243 msgid ""
14244 " int guestfs_write_file (guestfs_h *g,\n"
14245 "\t\tconst char *path,\n"
14246 "\t\tconst char *content,\n"
14247 "\t\tint size);\n"
14248 "\n"
14249 msgstr ""
14250
14251 # type: textblock
14252 #: ../src/guestfs-actions.pod:5598 ../fish/guestfish-actions.pod:4316
14253 msgid ""
14254 "This call creates a file called C<path>.  The contents of the file is the "
14255 "string C<content> (which can contain any 8 bit data), with length C<size>."
14256 msgstr ""
14257
14258 # type: textblock
14259 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4320
14260 msgid ""
14261 "As a special case, if C<size> is C<0> then the length is calculated using "
14262 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:4324
14267 msgid ""
14268 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14269 "I<not> work, even if the length is specified."
14270 msgstr ""
14271
14272 # type: textblock
14273 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:4330
14274 msgid ""
14275 "This function is deprecated.  In new code, use the C<write> call instead."
14276 msgstr ""
14277
14278 # type: =head2
14279 #: ../src/guestfs-actions.pod:5621
14280 msgid "guestfs_zegrep"
14281 msgstr ""
14282
14283 # type: verbatim
14284 #: ../src/guestfs-actions.pod:5623
14285 #, no-wrap
14286 msgid ""
14287 " char **guestfs_zegrep (guestfs_h *g,\n"
14288 "\t\tconst char *regex,\n"
14289 "\t\tconst char *path);\n"
14290 "\n"
14291 msgstr ""
14292
14293 # type: textblock
14294 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:4341
14295 msgid ""
14296 "This calls the external C<zegrep> program and returns the matching lines."
14297 msgstr ""
14298
14299 # type: =head2
14300 #: ../src/guestfs-actions.pod:5637
14301 msgid "guestfs_zegrepi"
14302 msgstr ""
14303
14304 # type: verbatim
14305 #: ../src/guestfs-actions.pod:5639
14306 #, no-wrap
14307 msgid ""
14308 " char **guestfs_zegrepi (guestfs_h *g,\n"
14309 "\t\tconst char *regex,\n"
14310 "\t\tconst char *path);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4351
14316 msgid ""
14317 "This calls the external C<zegrep -i> program and returns the matching lines."
14318 msgstr ""
14319
14320 # type: =head2
14321 #: ../src/guestfs-actions.pod:5653
14322 msgid "guestfs_zero"
14323 msgstr ""
14324
14325 # type: verbatim
14326 #: ../src/guestfs-actions.pod:5655
14327 #, no-wrap
14328 msgid ""
14329 " int guestfs_zero (guestfs_h *g,\n"
14330 "\t\tconst char *device);\n"
14331 "\n"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:4361
14336 msgid "This command writes zeroes over the first few blocks of C<device>."
14337 msgstr ""
14338
14339 # type: textblock
14340 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:4363
14341 msgid ""
14342 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14343 "securely wipe the device).  It should be sufficient to remove any partition "
14344 "tables, filesystem superblocks and so on."
14345 msgstr ""
14346
14347 # type: textblock
14348 #: ../src/guestfs-actions.pod:5664
14349 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14350 msgstr ""
14351
14352 # type: =head2
14353 #: ../src/guestfs-actions.pod:5673
14354 msgid "guestfs_zero_device"
14355 msgstr ""
14356
14357 # type: verbatim
14358 #: ../src/guestfs-actions.pod:5675
14359 #, no-wrap
14360 msgid ""
14361 " int guestfs_zero_device (guestfs_h *g,\n"
14362 "\t\tconst char *device);\n"
14363 "\n"
14364 msgstr ""
14365
14366 # type: textblock
14367 #: ../src/guestfs-actions.pod:5678
14368 msgid ""
14369 "This command writes zeroes over the entire C<device>.  Compare with "
14370 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14371 msgstr ""
14372
14373 # type: =head2
14374 #: ../src/guestfs-actions.pod:5692
14375 msgid "guestfs_zerofree"
14376 msgstr ""
14377
14378 # type: verbatim
14379 #: ../src/guestfs-actions.pod:5694
14380 #, no-wrap
14381 msgid ""
14382 " int guestfs_zerofree (guestfs_h *g,\n"
14383 "\t\tconst char *device);\n"
14384 "\n"
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4384
14389 msgid ""
14390 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14391 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14392 "possible to compress the filesystem more effectively."
14393 msgstr ""
14394
14395 # type: textblock
14396 #: ../src/guestfs-actions.pod:5702 ../fish/guestfish-actions.pod:4389
14397 msgid "You should B<not> run this program if the filesystem is mounted."
14398 msgstr ""
14399
14400 # type: textblock
14401 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:4392
14402 msgid ""
14403 "It is possible that using this program can damage the filesystem or data on "
14404 "the filesystem."
14405 msgstr ""
14406
14407 # type: =head2
14408 #: ../src/guestfs-actions.pod:5710
14409 msgid "guestfs_zfgrep"
14410 msgstr ""
14411
14412 # type: verbatim
14413 #: ../src/guestfs-actions.pod:5712
14414 #, no-wrap
14415 msgid ""
14416 " char **guestfs_zfgrep (guestfs_h *g,\n"
14417 "\t\tconst char *pattern,\n"
14418 "\t\tconst char *path);\n"
14419 "\n"
14420 msgstr ""
14421
14422 # type: textblock
14423 #: ../src/guestfs-actions.pod:5716 ../fish/guestfish-actions.pod:4399
14424 msgid ""
14425 "This calls the external C<zfgrep> program and returns the matching lines."
14426 msgstr ""
14427
14428 # type: =head2
14429 #: ../src/guestfs-actions.pod:5726
14430 msgid "guestfs_zfgrepi"
14431 msgstr ""
14432
14433 # type: verbatim
14434 #: ../src/guestfs-actions.pod:5728
14435 #, no-wrap
14436 msgid ""
14437 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14438 "\t\tconst char *pattern,\n"
14439 "\t\tconst char *path);\n"
14440 "\n"
14441 msgstr ""
14442
14443 # type: textblock
14444 #: ../src/guestfs-actions.pod:5732 ../fish/guestfish-actions.pod:4409
14445 msgid ""
14446 "This calls the external C<zfgrep -i> program and returns the matching lines."
14447 msgstr ""
14448
14449 # type: =head2
14450 #: ../src/guestfs-actions.pod:5742
14451 msgid "guestfs_zfile"
14452 msgstr ""
14453
14454 # type: verbatim
14455 #: ../src/guestfs-actions.pod:5744
14456 #, no-wrap
14457 msgid ""
14458 " char *guestfs_zfile (guestfs_h *g,\n"
14459 "\t\tconst char *meth,\n"
14460 "\t\tconst char *path);\n"
14461 "\n"
14462 msgstr ""
14463
14464 # type: textblock
14465 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:4419
14466 msgid ""
14467 "This command runs C<file> after first decompressing C<path> using C<method>."
14468 msgstr ""
14469
14470 # type: textblock
14471 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:4422
14472 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14473 msgstr ""
14474
14475 # type: textblock
14476 #: ../src/guestfs-actions.pod:5753
14477 msgid ""
14478 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14479 "files."
14480 msgstr ""
14481
14482 # type: textblock
14483 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:4427
14484 msgid ""
14485 "This function is deprecated.  In new code, use the C<file> call instead."
14486 msgstr ""
14487
14488 # type: =head2
14489 #: ../src/guestfs-actions.pod:5766
14490 msgid "guestfs_zgrep"
14491 msgstr ""
14492
14493 # type: verbatim
14494 #: ../src/guestfs-actions.pod:5768
14495 #, no-wrap
14496 msgid ""
14497 " char **guestfs_zgrep (guestfs_h *g,\n"
14498 "\t\tconst char *regex,\n"
14499 "\t\tconst char *path);\n"
14500 "\n"
14501 msgstr ""
14502
14503 # type: textblock
14504 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:4438
14505 msgid ""
14506 "This calls the external C<zgrep> program and returns the matching lines."
14507 msgstr ""
14508
14509 # type: =head2
14510 #: ../src/guestfs-actions.pod:5782
14511 msgid "guestfs_zgrepi"
14512 msgstr ""
14513
14514 # type: verbatim
14515 #: ../src/guestfs-actions.pod:5784
14516 #, no-wrap
14517 msgid ""
14518 " char **guestfs_zgrepi (guestfs_h *g,\n"
14519 "\t\tconst char *regex,\n"
14520 "\t\tconst char *path);\n"
14521 "\n"
14522 msgstr ""
14523
14524 # type: textblock
14525 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:4448
14526 msgid ""
14527 "This calls the external C<zgrep -i> program and returns the matching lines."
14528 msgstr ""
14529
14530 # type: =item
14531 #: ../src/guestfs-availability.pod:3
14532 msgid "B<augeas>"
14533 msgstr ""
14534
14535 # type: textblock
14536 #: ../src/guestfs-availability.pod:5
14537 msgid ""
14538 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14539 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14540 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14541 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14542 "L</guestfs_aug_save> L</guestfs_aug_set>"
14543 msgstr ""
14544
14545 # type: =item
14546 #: ../src/guestfs-availability.pod:21
14547 msgid "B<inotify>"
14548 msgstr ""
14549
14550 # type: textblock
14551 #: ../src/guestfs-availability.pod:23
14552 msgid ""
14553 "The following functions: L</guestfs_inotify_add_watch> L</"
14554 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14555 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14556 msgstr ""
14557
14558 # type: =item
14559 #: ../src/guestfs-availability.pod:31
14560 msgid "B<linuxfsuuid>"
14561 msgstr ""
14562
14563 # type: textblock
14564 #: ../src/guestfs-availability.pod:33
14565 msgid ""
14566 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
14567 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14568 msgstr ""
14569
14570 # type: =item
14571 #: ../src/guestfs-availability.pod:40
14572 msgid "B<linuxmodules>"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-availability.pod:42
14577 msgid "The following functions: L</guestfs_modprobe>"
14578 msgstr ""
14579
14580 # type: =item
14581 #: ../src/guestfs-availability.pod:45
14582 msgid "B<linuxxattrs>"
14583 msgstr ""
14584
14585 # type: textblock
14586 #: ../src/guestfs-availability.pod:47
14587 msgid ""
14588 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
14589 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
14590 "guestfs_removexattr> L</guestfs_setxattr>"
14591 msgstr ""
14592
14593 # type: =item
14594 #: ../src/guestfs-availability.pod:56
14595 msgid "B<luks>"
14596 msgstr ""
14597
14598 # type: textblock
14599 #: ../src/guestfs-availability.pod:58
14600 msgid ""
14601 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
14602 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
14603 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14604 msgstr ""
14605
14606 # type: =item
14607 #: ../src/guestfs-availability.pod:67
14608 msgid "B<lvm2>"
14609 msgstr ""
14610
14611 # type: textblock
14612 #: ../src/guestfs-availability.pod:69
14613 msgid ""
14614 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
14615 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
14616 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
14617 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
14618 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
14619 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
14620 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
14621 msgstr ""
14622
14623 # type: =item
14624 #: ../src/guestfs-availability.pod:92
14625 msgid "B<mknod>"
14626 msgstr ""
14627
14628 # type: textblock
14629 #: ../src/guestfs-availability.pod:94
14630 msgid ""
14631 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
14632 "guestfs_mknod_b> L</guestfs_mknod_c>"
14633 msgstr ""
14634
14635 # type: =item
14636 #: ../src/guestfs-availability.pod:100
14637 msgid "B<ntfs3g>"
14638 msgstr ""
14639
14640 # type: textblock
14641 #: ../src/guestfs-availability.pod:102
14642 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14643 msgstr ""
14644
14645 # type: =item
14646 #: ../src/guestfs-availability.pod:105
14647 msgid "B<ntfsprogs>"
14648 msgstr ""
14649
14650 # type: textblock
14651 #: ../src/guestfs-availability.pod:107
14652 msgid ""
14653 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14654 msgstr ""
14655
14656 # type: =item
14657 #: ../src/guestfs-availability.pod:111
14658 msgid "B<realpath>"
14659 msgstr ""
14660
14661 # type: textblock
14662 #: ../src/guestfs-availability.pod:113
14663 msgid "The following functions: L</guestfs_realpath>"
14664 msgstr ""
14665
14666 # type: =item
14667 #: ../src/guestfs-availability.pod:116
14668 msgid "B<scrub>"
14669 msgstr ""
14670
14671 # type: textblock
14672 #: ../src/guestfs-availability.pod:118
14673 msgid ""
14674 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
14675 "guestfs_scrub_freespace>"
14676 msgstr ""
14677
14678 # type: =item
14679 #: ../src/guestfs-availability.pod:123
14680 msgid "B<selinux>"
14681 msgstr ""
14682
14683 # type: textblock
14684 #: ../src/guestfs-availability.pod:125
14685 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14686 msgstr ""
14687
14688 # type: =item
14689 #: ../src/guestfs-availability.pod:129
14690 msgid "B<xz>"
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../src/guestfs-availability.pod:131
14695 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14696 msgstr ""
14697
14698 # type: =item
14699 #: ../src/guestfs-availability.pod:135
14700 msgid "B<zerofree>"
14701 msgstr ""
14702
14703 # type: textblock
14704 #: ../src/guestfs-availability.pod:137
14705 msgid "The following functions: L</guestfs_zerofree>"
14706 msgstr ""
14707
14708 # type: =head2
14709 #: ../src/guestfs-structs.pod:1
14710 msgid "guestfs_int_bool"
14711 msgstr ""
14712
14713 # type: verbatim
14714 #: ../src/guestfs-structs.pod:3
14715 #, no-wrap
14716 msgid ""
14717 " struct guestfs_int_bool {\n"
14718 "   int32_t i;\n"
14719 "   int32_t b;\n"
14720 " };\n"
14721 " \n"
14722 msgstr ""
14723
14724 # type: verbatim
14725 #: ../src/guestfs-structs.pod:8
14726 #, no-wrap
14727 msgid ""
14728 " struct guestfs_int_bool_list {\n"
14729 "   uint32_t len; /* Number of elements in list. */\n"
14730 "   struct guestfs_int_bool *val; /* Elements. */\n"
14731 " };\n"
14732 " \n"
14733 msgstr ""
14734
14735 # type: verbatim
14736 #: ../src/guestfs-structs.pod:13
14737 #, no-wrap
14738 msgid ""
14739 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14740 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14741 "\n"
14742 msgstr ""
14743
14744 # type: =head2
14745 #: ../src/guestfs-structs.pod:16
14746 msgid "guestfs_lvm_pv"
14747 msgstr ""
14748
14749 # type: verbatim
14750 #: ../src/guestfs-structs.pod:18
14751 #, no-wrap
14752 msgid ""
14753 " struct guestfs_lvm_pv {\n"
14754 "   char *pv_name;\n"
14755 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14756 "   char pv_uuid[32];\n"
14757 "   char *pv_fmt;\n"
14758 "   uint64_t pv_size;\n"
14759 "   uint64_t dev_size;\n"
14760 "   uint64_t pv_free;\n"
14761 "   uint64_t pv_used;\n"
14762 "   char *pv_attr;\n"
14763 "   int64_t pv_pe_count;\n"
14764 "   int64_t pv_pe_alloc_count;\n"
14765 "   char *pv_tags;\n"
14766 "   uint64_t pe_start;\n"
14767 "   int64_t pv_mda_count;\n"
14768 "   uint64_t pv_mda_free;\n"
14769 " };\n"
14770 " \n"
14771 msgstr ""
14772
14773 # type: verbatim
14774 #: ../src/guestfs-structs.pod:36
14775 #, no-wrap
14776 msgid ""
14777 " struct guestfs_lvm_pv_list {\n"
14778 "   uint32_t len; /* Number of elements in list. */\n"
14779 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14780 " };\n"
14781 " \n"
14782 msgstr ""
14783
14784 # type: verbatim
14785 #: ../src/guestfs-structs.pod:41
14786 #, no-wrap
14787 msgid ""
14788 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14789 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14790 "\n"
14791 msgstr ""
14792
14793 # type: =head2
14794 #: ../src/guestfs-structs.pod:44
14795 msgid "guestfs_lvm_vg"
14796 msgstr ""
14797
14798 # type: verbatim
14799 #: ../src/guestfs-structs.pod:46
14800 #, no-wrap
14801 msgid ""
14802 " struct guestfs_lvm_vg {\n"
14803 "   char *vg_name;\n"
14804 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14805 "   char vg_uuid[32];\n"
14806 "   char *vg_fmt;\n"
14807 "   char *vg_attr;\n"
14808 "   uint64_t vg_size;\n"
14809 "   uint64_t vg_free;\n"
14810 "   char *vg_sysid;\n"
14811 "   uint64_t vg_extent_size;\n"
14812 "   int64_t vg_extent_count;\n"
14813 "   int64_t vg_free_count;\n"
14814 "   int64_t max_lv;\n"
14815 "   int64_t max_pv;\n"
14816 "   int64_t pv_count;\n"
14817 "   int64_t lv_count;\n"
14818 "   int64_t snap_count;\n"
14819 "   int64_t vg_seqno;\n"
14820 "   char *vg_tags;\n"
14821 "   int64_t vg_mda_count;\n"
14822 "   uint64_t vg_mda_free;\n"
14823 " };\n"
14824 " \n"
14825 msgstr ""
14826
14827 # type: verbatim
14828 #: ../src/guestfs-structs.pod:69
14829 #, no-wrap
14830 msgid ""
14831 " struct guestfs_lvm_vg_list {\n"
14832 "   uint32_t len; /* Number of elements in list. */\n"
14833 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14834 " };\n"
14835 " \n"
14836 msgstr ""
14837
14838 # type: verbatim
14839 #: ../src/guestfs-structs.pod:74
14840 #, no-wrap
14841 msgid ""
14842 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14843 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14844 "\n"
14845 msgstr ""
14846
14847 # type: =head2
14848 #: ../src/guestfs-structs.pod:77
14849 msgid "guestfs_lvm_lv"
14850 msgstr ""
14851
14852 # type: verbatim
14853 #: ../src/guestfs-structs.pod:79
14854 #, no-wrap
14855 msgid ""
14856 " struct guestfs_lvm_lv {\n"
14857 "   char *lv_name;\n"
14858 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14859 "   char lv_uuid[32];\n"
14860 "   char *lv_attr;\n"
14861 "   int64_t lv_major;\n"
14862 "   int64_t lv_minor;\n"
14863 "   int64_t lv_kernel_major;\n"
14864 "   int64_t lv_kernel_minor;\n"
14865 "   uint64_t lv_size;\n"
14866 "   int64_t seg_count;\n"
14867 "   char *origin;\n"
14868 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14869 "   float snap_percent;\n"
14870 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14871 "   float copy_percent;\n"
14872 "   char *move_pv;\n"
14873 "   char *lv_tags;\n"
14874 "   char *mirror_log;\n"
14875 "   char *modules;\n"
14876 " };\n"
14877 " \n"
14878 msgstr ""
14879
14880 # type: verbatim
14881 #: ../src/guestfs-structs.pod:101
14882 #, no-wrap
14883 msgid ""
14884 " struct guestfs_lvm_lv_list {\n"
14885 "   uint32_t len; /* Number of elements in list. */\n"
14886 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14887 " };\n"
14888 " \n"
14889 msgstr ""
14890
14891 # type: verbatim
14892 #: ../src/guestfs-structs.pod:106
14893 #, no-wrap
14894 msgid ""
14895 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14896 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14897 "\n"
14898 msgstr ""
14899
14900 # type: verbatim
14901 #: ../src/guestfs-structs.pod:111
14902 #, no-wrap
14903 msgid ""
14904 " struct guestfs_stat {\n"
14905 "   int64_t dev;\n"
14906 "   int64_t ino;\n"
14907 "   int64_t mode;\n"
14908 "   int64_t nlink;\n"
14909 "   int64_t uid;\n"
14910 "   int64_t gid;\n"
14911 "   int64_t rdev;\n"
14912 "   int64_t size;\n"
14913 "   int64_t blksize;\n"
14914 "   int64_t blocks;\n"
14915 "   int64_t atime;\n"
14916 "   int64_t mtime;\n"
14917 "   int64_t ctime;\n"
14918 " };\n"
14919 " \n"
14920 msgstr ""
14921
14922 # type: verbatim
14923 #: ../src/guestfs-structs.pod:127
14924 #, no-wrap
14925 msgid ""
14926 " struct guestfs_stat_list {\n"
14927 "   uint32_t len; /* Number of elements in list. */\n"
14928 "   struct guestfs_stat *val; /* Elements. */\n"
14929 " };\n"
14930 " \n"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #: ../src/guestfs-structs.pod:132
14935 #, no-wrap
14936 msgid ""
14937 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14938 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14939 "\n"
14940 msgstr ""
14941
14942 # type: verbatim
14943 #: ../src/guestfs-structs.pod:137
14944 #, no-wrap
14945 msgid ""
14946 " struct guestfs_statvfs {\n"
14947 "   int64_t bsize;\n"
14948 "   int64_t frsize;\n"
14949 "   int64_t blocks;\n"
14950 "   int64_t bfree;\n"
14951 "   int64_t bavail;\n"
14952 "   int64_t files;\n"
14953 "   int64_t ffree;\n"
14954 "   int64_t favail;\n"
14955 "   int64_t fsid;\n"
14956 "   int64_t flag;\n"
14957 "   int64_t namemax;\n"
14958 " };\n"
14959 " \n"
14960 msgstr ""
14961
14962 # type: verbatim
14963 #: ../src/guestfs-structs.pod:151
14964 #, no-wrap
14965 msgid ""
14966 " struct guestfs_statvfs_list {\n"
14967 "   uint32_t len; /* Number of elements in list. */\n"
14968 "   struct guestfs_statvfs *val; /* Elements. */\n"
14969 " };\n"
14970 " \n"
14971 msgstr ""
14972
14973 # type: verbatim
14974 #: ../src/guestfs-structs.pod:156
14975 #, no-wrap
14976 msgid ""
14977 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14978 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14979 "\n"
14980 msgstr ""
14981
14982 # type: =head2
14983 #: ../src/guestfs-structs.pod:159
14984 msgid "guestfs_dirent"
14985 msgstr ""
14986
14987 # type: verbatim
14988 #: ../src/guestfs-structs.pod:161
14989 #, no-wrap
14990 msgid ""
14991 " struct guestfs_dirent {\n"
14992 "   int64_t ino;\n"
14993 "   char ftyp;\n"
14994 "   char *name;\n"
14995 " };\n"
14996 " \n"
14997 msgstr ""
14998
14999 # type: verbatim
15000 #: ../src/guestfs-structs.pod:167
15001 #, no-wrap
15002 msgid ""
15003 " struct guestfs_dirent_list {\n"
15004 "   uint32_t len; /* Number of elements in list. */\n"
15005 "   struct guestfs_dirent *val; /* Elements. */\n"
15006 " };\n"
15007 " \n"
15008 msgstr ""
15009
15010 # type: verbatim
15011 #: ../src/guestfs-structs.pod:172
15012 #, no-wrap
15013 msgid ""
15014 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15015 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15016 "\n"
15017 msgstr ""
15018
15019 # type: verbatim
15020 #: ../src/guestfs-structs.pod:177
15021 #, no-wrap
15022 msgid ""
15023 " struct guestfs_version {\n"
15024 "   int64_t major;\n"
15025 "   int64_t minor;\n"
15026 "   int64_t release;\n"
15027 "   char *extra;\n"
15028 " };\n"
15029 " \n"
15030 msgstr ""
15031
15032 # type: verbatim
15033 #: ../src/guestfs-structs.pod:184
15034 #, no-wrap
15035 msgid ""
15036 " struct guestfs_version_list {\n"
15037 "   uint32_t len; /* Number of elements in list. */\n"
15038 "   struct guestfs_version *val; /* Elements. */\n"
15039 " };\n"
15040 " \n"
15041 msgstr ""
15042
15043 # type: verbatim
15044 #: ../src/guestfs-structs.pod:189
15045 #, no-wrap
15046 msgid ""
15047 " void guestfs_free_version (struct guestfs_free_version *);\n"
15048 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15049 "\n"
15050 msgstr ""
15051
15052 # type: =head2
15053 #: ../src/guestfs-structs.pod:192
15054 msgid "guestfs_xattr"
15055 msgstr ""
15056
15057 # type: verbatim
15058 #: ../src/guestfs-structs.pod:194
15059 #, no-wrap
15060 msgid ""
15061 " struct guestfs_xattr {\n"
15062 "   char *attrname;\n"
15063 "   /* The next two fields describe a byte array. */\n"
15064 "   uint32_t attrval_len;\n"
15065 "   char *attrval;\n"
15066 " };\n"
15067 " \n"
15068 msgstr ""
15069
15070 # type: verbatim
15071 #: ../src/guestfs-structs.pod:201
15072 #, no-wrap
15073 msgid ""
15074 " struct guestfs_xattr_list {\n"
15075 "   uint32_t len; /* Number of elements in list. */\n"
15076 "   struct guestfs_xattr *val; /* Elements. */\n"
15077 " };\n"
15078 " \n"
15079 msgstr ""
15080
15081 # type: verbatim
15082 #: ../src/guestfs-structs.pod:206
15083 #, no-wrap
15084 msgid ""
15085 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15086 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15087 "\n"
15088 msgstr ""
15089
15090 # type: =head2
15091 #: ../src/guestfs-structs.pod:209
15092 msgid "guestfs_inotify_event"
15093 msgstr ""
15094
15095 # type: verbatim
15096 #: ../src/guestfs-structs.pod:211
15097 #, no-wrap
15098 msgid ""
15099 " struct guestfs_inotify_event {\n"
15100 "   int64_t in_wd;\n"
15101 "   uint32_t in_mask;\n"
15102 "   uint32_t in_cookie;\n"
15103 "   char *in_name;\n"
15104 " };\n"
15105 " \n"
15106 msgstr ""
15107
15108 # type: verbatim
15109 #: ../src/guestfs-structs.pod:218
15110 #, no-wrap
15111 msgid ""
15112 " struct guestfs_inotify_event_list {\n"
15113 "   uint32_t len; /* Number of elements in list. */\n"
15114 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15115 " };\n"
15116 " \n"
15117 msgstr ""
15118
15119 # type: verbatim
15120 #: ../src/guestfs-structs.pod:223
15121 #, no-wrap
15122 msgid ""
15123 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15124 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15125 "\n"
15126 msgstr ""
15127
15128 # type: =head2
15129 #: ../src/guestfs-structs.pod:226
15130 msgid "guestfs_partition"
15131 msgstr ""
15132
15133 # type: verbatim
15134 #: ../src/guestfs-structs.pod:228
15135 #, no-wrap
15136 msgid ""
15137 " struct guestfs_partition {\n"
15138 "   int32_t part_num;\n"
15139 "   uint64_t part_start;\n"
15140 "   uint64_t part_end;\n"
15141 "   uint64_t part_size;\n"
15142 " };\n"
15143 " \n"
15144 msgstr ""
15145
15146 # type: verbatim
15147 #: ../src/guestfs-structs.pod:235
15148 #, no-wrap
15149 msgid ""
15150 " struct guestfs_partition_list {\n"
15151 "   uint32_t len; /* Number of elements in list. */\n"
15152 "   struct guestfs_partition *val; /* Elements. */\n"
15153 " };\n"
15154 " \n"
15155 msgstr ""
15156
15157 # type: verbatim
15158 #: ../src/guestfs-structs.pod:240
15159 #, no-wrap
15160 msgid ""
15161 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15162 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15163 "\n"
15164 msgstr ""
15165
15166 # type: textblock
15167 #: ../fish/guestfish.pod:5
15168 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15169 msgstr ""
15170
15171 # type: verbatim
15172 #: ../fish/guestfish.pod:9
15173 #, no-wrap
15174 msgid ""
15175 " guestfish [--options] [commands]\n"
15176 "\n"
15177 msgstr ""
15178
15179 # type: verbatim
15180 #: ../fish/guestfish.pod:11
15181 #, no-wrap
15182 msgid ""
15183 " guestfish\n"
15184 "\n"
15185 msgstr ""
15186
15187 # type: verbatim
15188 #: ../fish/guestfish.pod:13
15189 #, no-wrap
15190 msgid ""
15191 " guestfish -a disk.img\n"
15192 "\n"
15193 msgstr ""
15194
15195 # type: verbatim
15196 #: ../fish/guestfish.pod:15
15197 #, no-wrap
15198 msgid ""
15199 " guestfish -a disk.img -m dev[:mountpoint]\n"
15200 "\n"
15201 msgstr ""
15202
15203 # type: verbatim
15204 #: ../fish/guestfish.pod:17
15205 #, no-wrap
15206 msgid ""
15207 " guestfish -d libvirt-domain\n"
15208 "\n"
15209 msgstr ""
15210
15211 # type: verbatim
15212 #: ../fish/guestfish.pod:19
15213 #, no-wrap
15214 msgid ""
15215 " guestfish -a disk.img -i\n"
15216 "\n"
15217 msgstr ""
15218
15219 # type: verbatim
15220 #: ../fish/guestfish.pod:21
15221 #, no-wrap
15222 msgid ""
15223 " guestfish -d libvirt-domain -i\n"
15224 "\n"
15225 msgstr ""
15226
15227 # type: =head1
15228 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
15229 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
15230 #: ../tools/virt-rescue.pl:41
15231 msgid "WARNING"
15232 msgstr ""
15233
15234 # type: textblock
15235 #: ../fish/guestfish.pod:25
15236 msgid ""
15237 "Using guestfish in read/write mode on live virtual machines can be "
15238 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15239 "option to use guestfish safely if the disk image or virtual machine might be "
15240 "live."
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../fish/guestfish.pod:32
15245 msgid ""
15246 "Guestfish is a shell and command-line tool for examining and modifying "
15247 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15248 "functionality of the guestfs API, see L<guestfs(3)>."
15249 msgstr ""
15250
15251 # type: textblock
15252 #: ../fish/guestfish.pod:36
15253 msgid ""
15254 "Guestfish gives you structured access to the libguestfs API, from shell "
15255 "scripts or the command line or interactively.  If you want to rescue a "
15256 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15257 "command."
15258 msgstr ""
15259
15260 # type: =head1
15261 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15262 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
15263 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15264 msgid "EXAMPLES"
15265 msgstr ""
15266
15267 # type: =head2
15268 #: ../fish/guestfish.pod:43
15269 msgid "As an interactive shell"
15270 msgstr ""
15271
15272 # type: verbatim
15273 #: ../fish/guestfish.pod:45
15274 #, no-wrap
15275 msgid ""
15276 " $ guestfish\n"
15277 " \n"
15278 msgstr ""
15279
15280 # type: verbatim
15281 #: ../fish/guestfish.pod:47
15282 #, no-wrap
15283 msgid ""
15284 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15285 " editing virtual machine filesystems.\n"
15286 " \n"
15287 msgstr ""
15288
15289 # type: verbatim
15290 #: ../fish/guestfish.pod:50
15291 #, no-wrap
15292 msgid ""
15293 " Type: 'help' for a list of commands\n"
15294 "       'man' to read the manual\n"
15295 "       'quit' to quit the shell\n"
15296 " \n"
15297 msgstr ""
15298
15299 # type: verbatim
15300 #: ../fish/guestfish.pod:54
15301 #, no-wrap
15302 msgid ""
15303 " ><fs> add-ro disk.img\n"
15304 " ><fs> run\n"
15305 " ><fs> list-filesystems\n"
15306 " /dev/sda1: ext4\n"
15307 " /dev/vg_guest/lv_root: ext4\n"
15308 " /dev/vg_guest/lv_swap: swap\n"
15309 " ><fs> mount /dev/vg_guest/lv_root /\n"
15310 " ><fs> cat /etc/fstab\n"
15311 " # /etc/fstab\n"
15312 " # Created by anaconda\n"
15313 " [...]\n"
15314 " ><fs> exit\n"
15315 "\n"
15316 msgstr ""
15317
15318 # type: =head2
15319 #: ../fish/guestfish.pod:67
15320 msgid "From shell scripts"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../fish/guestfish.pod:69
15325 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15326 msgstr ""
15327
15328 # type: verbatim
15329 #: ../fish/guestfish.pod:71
15330 #, no-wrap
15331 msgid ""
15332 " guestfish <<_EOF_\n"
15333 " add disk.img\n"
15334 " run\n"
15335 " mount /dev/vg_guest/lv_root /\n"
15336 " write /etc/motd \"Welcome, new users\"\n"
15337 " _EOF_\n"
15338 "\n"
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../fish/guestfish.pod:78
15343 msgid "List the LVM logical volumes in a disk image:"
15344 msgstr ""
15345
15346 # type: verbatim
15347 #: ../fish/guestfish.pod:80
15348 #, no-wrap
15349 msgid ""
15350 " guestfish -a disk.img --ro <<_EOF_\n"
15351 " run\n"
15352 " lvs\n"
15353 " _EOF_\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #: ../fish/guestfish.pod:85
15359 msgid "List all the filesystems in a disk image:"
15360 msgstr ""
15361
15362 # type: verbatim
15363 #: ../fish/guestfish.pod:87
15364 #, no-wrap
15365 msgid ""
15366 " guestfish -a disk.img --ro <<_EOF_\n"
15367 " run\n"
15368 " list-filesystems\n"
15369 " _EOF_\n"
15370 "\n"
15371 msgstr ""
15372
15373 # type: =head2
15374 #: ../fish/guestfish.pod:92
15375 msgid "On one command line"
15376 msgstr ""
15377
15378 # type: textblock
15379 #: ../fish/guestfish.pod:94
15380 msgid "Update C</etc/resolv.conf> in a guest:"
15381 msgstr ""
15382
15383 # type: verbatim
15384 #: ../fish/guestfish.pod:96
15385 #, no-wrap
15386 msgid ""
15387 " guestfish \\\n"
15388 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15389 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15390 "\n"
15391 msgstr ""
15392
15393 # type: textblock
15394 #: ../fish/guestfish.pod:100
15395 msgid "Edit C</boot/grub/grub.conf> interactively:"
15396 msgstr ""
15397
15398 # type: verbatim
15399 #: ../fish/guestfish.pod:102
15400 #, no-wrap
15401 msgid ""
15402 " guestfish --add disk.img \\\n"
15403 "   --mount /dev/vg_guest/lv_root \\\n"
15404 "   --mount /dev/sda1:/boot \\\n"
15405 "   edit /boot/grub/grub.conf\n"
15406 "\n"
15407 msgstr ""
15408
15409 # type: =head2
15410 #: ../fish/guestfish.pod:107
15411 msgid "Mount disks automatically"
15412 msgstr ""
15413
15414 # type: textblock
15415 #: ../fish/guestfish.pod:109
15416 msgid ""
15417 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15418 msgstr ""
15419
15420 # type: verbatim
15421 #: ../fish/guestfish.pod:112
15422 #, no-wrap
15423 msgid ""
15424 " guestfish --ro -a disk.img -i cat /etc/group\n"
15425 "\n"
15426 msgstr ""
15427
15428 # type: verbatim
15429 #: ../fish/guestfish.pod:114
15430 #, no-wrap
15431 msgid ""
15432 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15433 "\n"
15434 msgstr ""
15435
15436 # type: textblock
15437 #: ../fish/guestfish.pod:116
15438 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15439 msgstr ""
15440
15441 # type: verbatim
15442 #: ../fish/guestfish.pod:118
15443 #, no-wrap
15444 msgid ""
15445 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15446 "\n"
15447 msgstr ""
15448
15449 # type: =head2
15450 #: ../fish/guestfish.pod:120
15451 msgid "As a script interpreter"
15452 msgstr ""
15453
15454 # type: textblock
15455 #: ../fish/guestfish.pod:122
15456 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15457 msgstr ""
15458
15459 # type: verbatim
15460 #: ../fish/guestfish.pod:124
15461 #, no-wrap
15462 msgid ""
15463 " #!/usr/bin/guestfish -f\n"
15464 " sparse test1.img 100M\n"
15465 " run\n"
15466 " part-disk /dev/sda mbr\n"
15467 " mkfs ext2 /dev/sda1\n"
15468 "\n"
15469 msgstr ""
15470
15471 # type: =head2
15472 #: ../fish/guestfish.pod:130
15473 msgid "Start with a prepared disk"
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../fish/guestfish.pod:132
15478 msgid ""
15479 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15480 "single ext2-formatted partition:"
15481 msgstr ""
15482
15483 # type: verbatim
15484 #: ../fish/guestfish.pod:135
15485 #, no-wrap
15486 msgid ""
15487 " guestfish -N fs\n"
15488 "\n"
15489 msgstr ""
15490
15491 # type: textblock
15492 #: ../fish/guestfish.pod:137
15493 msgid "To list what is available do:"
15494 msgstr ""
15495
15496 # type: verbatim
15497 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15498 #, no-wrap
15499 msgid ""
15500 " guestfish -N help | less\n"
15501 "\n"
15502 msgstr ""
15503
15504 # type: =head2
15505 #: ../fish/guestfish.pod:141
15506 msgid "Remote control"
15507 msgstr ""
15508
15509 # type: verbatim
15510 #: ../fish/guestfish.pod:143
15511 #, no-wrap
15512 msgid ""
15513 " eval `guestfish --listen`\n"
15514 " guestfish --remote add-ro disk.img\n"
15515 " guestfish --remote run\n"
15516 " guestfish --remote lvs\n"
15517 "\n"
15518 msgstr ""
15519
15520 # type: =head1
15521 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15522 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
15523 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
15524 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
15525 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
15526 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
15527 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15528 msgid "OPTIONS"
15529 msgstr ""
15530
15531 # type: =item
15532 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
15533 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
15534 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
15535 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15536 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
15537 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15538 #: ../tools/virt-list-partitions.pl:59
15539 msgid "B<--help>"
15540 msgstr ""
15541
15542 # type: textblock
15543 #: ../fish/guestfish.pod:154
15544 msgid "Displays general help on options."
15545 msgstr ""
15546
15547 # type: =item
15548 #: ../fish/guestfish.pod:156
15549 msgid "B<-h> | B<--cmd-help>"
15550 msgstr ""
15551
15552 # type: textblock
15553 #: ../fish/guestfish.pod:158
15554 msgid "Lists all available guestfish commands."
15555 msgstr ""
15556
15557 # type: =item
15558 #: ../fish/guestfish.pod:160
15559 msgid "B<-h cmd> | B<--cmd-help cmd>"
15560 msgstr ""
15561
15562 # type: textblock
15563 #: ../fish/guestfish.pod:162
15564 msgid "Displays detailed help on a single command C<cmd>."
15565 msgstr ""
15566
15567 # type: =item
15568 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15569 msgid "B<-a image> | B<--add image>"
15570 msgstr ""
15571
15572 # type: textblock
15573 #: ../fish/guestfish.pod:166
15574 msgid "Add a block device or virtual machine image to the shell."
15575 msgstr ""
15576
15577 # type: textblock
15578 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15579 msgid ""
15580 "The format of the disk image is auto-detected.  To override this and force a "
15581 "particular format use the I<--format=..> option."
15582 msgstr ""
15583
15584 # type: =item
15585 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15586 msgid "B<-c URI> | B<--connect URI>"
15587 msgstr ""
15588
15589 # type: textblock
15590 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15591 msgid ""
15592 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15593 "URI to use.  The default is to use the default libvirt connection."
15594 msgstr ""
15595
15596 # type: =item
15597 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15598 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15599 msgstr ""
15600
15601 # type: textblock
15602 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15603 msgid ""
15604 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15605 "used, then any libvirt domain can be used.  However in write mode, only "
15606 "libvirt domains which are shut down can be named here."
15607 msgstr ""
15608
15609 # type: =item
15610 #: ../fish/guestfish.pod:183
15611 msgid "B<-D> | B<--no-dest-paths>"
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../fish/guestfish.pod:185
15616 msgid ""
15617 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15618 "to hit the tab key to complete paths on the guest filesystem, but this "
15619 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15620 "allow this feature to be disabled."
15621 msgstr ""
15622
15623 # type: =item
15624 #: ../fish/guestfish.pod:190
15625 msgid "B<--echo-keys>"
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../fish/guestfish.pod:192
15630 msgid ""
15631 "When prompting for keys and passphrases, guestfish normally turns echoing "
15632 "off so you cannot see what you are typing.  If you are not worried about "
15633 "Tempest attacks and there is no one else in the room you can specify this "
15634 "flag to see what you are typing."
15635 msgstr ""
15636
15637 # type: =item
15638 #: ../fish/guestfish.pod:197
15639 msgid "B<-f file> | B<--file file>"
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../fish/guestfish.pod:199
15644 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15645 msgstr ""
15646
15647 # type: verbatim
15648 #: ../fish/guestfish.pod:202
15649 #, no-wrap
15650 msgid ""
15651 " #!/usr/bin/guestfish -f\n"
15652 "\n"
15653 msgstr ""
15654
15655 # type: =item
15656 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15657 msgid "B<--format=raw|qcow2|..> | B<--format>"
15658 msgstr ""
15659
15660 # type: textblock
15661 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15662 msgid ""
15663 "The default for the I<-a> option is to auto-detect the format of the disk "
15664 "image.  Using this forces the disk format for I<-a> options which follow on "
15665 "the command line.  Using I<--format> with no argument switches back to auto-"
15666 "detection for subsequent I<-a> options."
15667 msgstr ""
15668
15669 # type: textblock
15670 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15671 msgid "For example:"
15672 msgstr ""
15673
15674 # type: verbatim
15675 #: ../fish/guestfish.pod:213
15676 #, no-wrap
15677 msgid ""
15678 " guestfish --format=raw -a disk.img\n"
15679 "\n"
15680 msgstr ""
15681
15682 # type: textblock
15683 #: ../fish/guestfish.pod:215
15684 msgid "forces raw format (no auto-detection) for C<disk.img>."
15685 msgstr ""
15686
15687 # type: verbatim
15688 #: ../fish/guestfish.pod:217
15689 #, no-wrap
15690 msgid ""
15691 " guestfish --format=raw -a disk.img --format -a another.img\n"
15692 "\n"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../fish/guestfish.pod:219
15697 msgid ""
15698 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
15699 "detection for C<another.img>."
15700 msgstr ""
15701
15702 # type: textblock
15703 #: ../fish/guestfish.pod:222
15704 msgid ""
15705 "If you have untrusted raw-format guest disk images, you should use this "
15706 "option to specify the disk format.  This avoids a possible security problem "
15707 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15708 msgstr ""
15709
15710 # type: =item
15711 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15712 msgid "B<-i> | B<--inspector>"
15713 msgstr ""
15714
15715 # type: textblock
15716 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15717 msgid ""
15718 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15719 "system and mount filesystems as they would be mounted on the real virtual "
15720 "machine."
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../fish/guestfish.pod:233
15725 msgid "Typical usage is either:"
15726 msgstr ""
15727
15728 # type: verbatim
15729 #: ../fish/guestfish.pod:235
15730 #, no-wrap
15731 msgid ""
15732 " guestfish -d myguest -i\n"
15733 "\n"
15734 msgstr ""
15735
15736 # type: textblock
15737 #: ../fish/guestfish.pod:237
15738 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15739 msgstr ""
15740
15741 # type: verbatim
15742 #: ../fish/guestfish.pod:239
15743 #, no-wrap
15744 msgid ""
15745 " guestfish --ro -d myguest -i\n"
15746 "\n"
15747 msgstr ""
15748
15749 # type: textblock
15750 #: ../fish/guestfish.pod:241
15751 msgid "(for active domains, readonly), or specify the block device directly:"
15752 msgstr ""
15753
15754 # type: verbatim
15755 #: ../fish/guestfish.pod:243
15756 #, no-wrap
15757 msgid ""
15758 " guestfish -a /dev/Guests/MyGuest -i\n"
15759 "\n"
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../fish/guestfish.pod:245
15764 msgid ""
15765 "Note that the command line syntax changed slightly over older versions of "
15766 "guestfish.  You can still use the old syntax:"
15767 msgstr ""
15768
15769 # type: verbatim
15770 #: ../fish/guestfish.pod:248
15771 #, no-wrap
15772 msgid ""
15773 " guestfish [--ro] -i disk.img\n"
15774 "\n"
15775 msgstr ""
15776
15777 # type: verbatim
15778 #: ../fish/guestfish.pod:250
15779 #, no-wrap
15780 msgid ""
15781 " guestfish [--ro] -i libvirt-domain\n"
15782 "\n"
15783 msgstr ""
15784
15785 # type: =item
15786 #: ../fish/guestfish.pod:252
15787 msgid "B<--keys-from-stdin>"
15788 msgstr ""
15789
15790 # type: textblock
15791 #: ../fish/guestfish.pod:254
15792 msgid ""
15793 "Read key or passphrase parameters from stdin.  The default is to try to read "
15794 "passphrases from the user by opening C</dev/tty>."
15795 msgstr ""
15796
15797 # type: =item
15798 #: ../fish/guestfish.pod:257
15799 msgid "B<--listen>"
15800 msgstr ""
15801
15802 # type: textblock
15803 #: ../fish/guestfish.pod:259
15804 msgid ""
15805 "Fork into the background and listen for remote commands.  See section L</"
15806 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15807 msgstr ""
15808
15809 # type: =item
15810 #: ../fish/guestfish.pod:262
15811 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../fish/guestfish.pod:264
15816 msgid "Mount the named partition or logical volume on the given mountpoint."
15817 msgstr ""
15818
15819 # type: textblock
15820 #: ../fish/guestfish.pod:266
15821 msgid "If the mountpoint is omitted, it defaults to C</>."
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../fish/guestfish.pod:268
15826 msgid "You have to mount something on C</> before most commands will work."
15827 msgstr ""
15828
15829 # type: textblock
15830 #: ../fish/guestfish.pod:270
15831 msgid ""
15832 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15833 "launched."
15834 msgstr ""
15835
15836 # type: textblock
15837 #: ../fish/guestfish.pod:273
15838 msgid ""
15839 "If you don't know what filesystems a disk image contains, you can either run "
15840 "guestfish without this option, then list the partitions and LVs available "
15841 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15842 "list-filesystems(1)> program."
15843 msgstr ""
15844
15845 # type: =item
15846 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15847 msgid "B<-n> | B<--no-sync>"
15848 msgstr ""
15849
15850 # type: textblock
15851 #: ../fish/guestfish.pod:280
15852 msgid ""
15853 "Disable autosync.  This is enabled by default.  See the discussion of "
15854 "autosync in the L<guestfs(3)> manpage."
15855 msgstr ""
15856
15857 # type: =item
15858 #: ../fish/guestfish.pod:283
15859 msgid "B<-N type> | B<--new type> | B<-N help>"
15860 msgstr ""
15861
15862 # type: textblock
15863 #: ../fish/guestfish.pod:285
15864 msgid ""
15865 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15866 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15867 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15868 "IMAGES> below."
15869 msgstr ""
15870
15871 # type: =item
15872 #: ../fish/guestfish.pod:290
15873 msgid "B<--progress-bars>"
15874 msgstr ""
15875
15876 # type: textblock
15877 #: ../fish/guestfish.pod:292
15878 msgid "Enable progress bars, even when guestfish is used non-interactively."
15879 msgstr ""
15880
15881 # type: textblock
15882 #: ../fish/guestfish.pod:294
15883 msgid ""
15884 "Progress bars are enabled by default when guestfish is used as an "
15885 "interactive shell."
15886 msgstr ""
15887
15888 # type: =item
15889 #: ../fish/guestfish.pod:297
15890 msgid "B<--no-progress-bars>"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../fish/guestfish.pod:299
15895 msgid "Disable progress bars."
15896 msgstr ""
15897
15898 # type: =item
15899 #: ../fish/guestfish.pod:301
15900 msgid "B<--remote[=pid]>"
15901 msgstr ""
15902
15903 # type: textblock
15904 #: ../fish/guestfish.pod:303
15905 msgid ""
15906 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15907 "CONTROL GUESTFISH OVER A SOCKET> below."
15908 msgstr ""
15909
15910 # type: =item
15911 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15912 msgid "B<-r> | B<--ro>"
15913 msgstr ""
15914
15915 # type: textblock
15916 #: ../fish/guestfish.pod:308
15917 msgid ""
15918 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15919 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15920 msgstr ""
15921
15922 # type: textblock
15923 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15924 msgid ""
15925 "The option must always be used if the disk image or virtual machine might be "
15926 "running, and is generally recommended in cases where you don't need write "
15927 "access to the disk."
15928 msgstr ""
15929
15930 # type: textblock
15931 #: ../fish/guestfish.pod:315
15932 msgid ""
15933 "Note that prepared disk images created with I<-N> are not affected by the "
15934 "I<--ro> option."
15935 msgstr ""
15936
15937 # type: =item
15938 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
15939 #: ../tools/virt-rescue.pl:195
15940 msgid "B<--selinux>"
15941 msgstr ""
15942
15943 # type: textblock
15944 #: ../fish/guestfish.pod:320
15945 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15946 msgstr ""
15947
15948 # type: =item
15949 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
15950 msgid "B<-v> | B<--verbose>"
15951 msgstr ""
15952
15953 # type: textblock
15954 #: ../fish/guestfish.pod:324
15955 msgid ""
15956 "Enable very verbose messages.  This is particularly useful if you find a bug."
15957 msgstr ""
15958
15959 # type: =item
15960 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
15961 msgid "B<-V> | B<--version>"
15962 msgstr ""
15963
15964 # type: textblock
15965 #: ../fish/guestfish.pod:329
15966 msgid "Display the guestfish / libguestfs version number and exit."
15967 msgstr ""
15968
15969 # type: =item
15970 #: ../fish/guestfish.pod:331
15971 msgid "B<-x>"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../fish/guestfish.pod:333
15976 msgid "Echo each command before executing it."
15977 msgstr ""
15978
15979 # type: =head1
15980 #: ../fish/guestfish.pod:337
15981 msgid "COMMANDS ON COMMAND LINE"
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../fish/guestfish.pod:339
15986 msgid ""
15987 "Any additional (non-option) arguments are treated as commands to execute."
15988 msgstr ""
15989
15990 # type: textblock
15991 #: ../fish/guestfish.pod:342
15992 msgid ""
15993 "Commands to execute should be separated by a colon (C<:>), where the colon "
15994 "is a separate parameter.  Thus:"
15995 msgstr ""
15996
15997 # type: verbatim
15998 #: ../fish/guestfish.pod:345
15999 #, no-wrap
16000 msgid ""
16001 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16002 "\n"
16003 msgstr ""
16004
16005 # type: textblock
16006 #: ../fish/guestfish.pod:347
16007 msgid ""
16008 "If there are no additional arguments, then we enter a shell, either an "
16009 "interactive shell with a prompt (if the input is a terminal) or a non-"
16010 "interactive shell."
16011 msgstr ""
16012
16013 # type: textblock
16014 #: ../fish/guestfish.pod:351
16015 msgid ""
16016 "In either command line mode or non-interactive shell, the first command that "
16017 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16018 "prompt) if a command fails, you can continue to enter commands."
16019 msgstr ""
16020
16021 # type: =head1
16022 #: ../fish/guestfish.pod:356
16023 msgid "USING launch (OR run)"
16024 msgstr ""
16025
16026 # type: textblock
16027 #: ../fish/guestfish.pod:358
16028 msgid ""
16029 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16030 "then launch it, then mount any disks you need, and finally issue actions/"
16031 "commands.  So the general order of the day is:"
16032 msgstr ""
16033
16034 # type: textblock
16035 #: ../fish/guestfish.pod:366
16036 msgid "add or -a/--add"
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../fish/guestfish.pod:370
16041 msgid "launch (aka run)"
16042 msgstr ""
16043
16044 # type: textblock
16045 #: ../fish/guestfish.pod:374
16046 msgid "mount or -m/--mount"
16047 msgstr ""
16048
16049 # type: textblock
16050 #: ../fish/guestfish.pod:378
16051 msgid "any other commands"
16052 msgstr ""
16053
16054 # type: textblock
16055 #: ../fish/guestfish.pod:382
16056 msgid ""
16057 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16058 "guest before mounting or performing any other commands."
16059 msgstr ""
16060
16061 # type: textblock
16062 #: ../fish/guestfish.pod:385
16063 msgid ""
16064 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16065 "I<--new> options were given then C<run> is done automatically, simply "
16066 "because guestfish can't perform the action you asked for without doing this."
16067 msgstr ""
16068
16069 # type: =head1
16070 #: ../fish/guestfish.pod:390
16071 msgid "QUOTING"
16072 msgstr ""
16073
16074 # type: textblock
16075 #: ../fish/guestfish.pod:392
16076 msgid ""
16077 "You can quote ordinary parameters using either single or double quotes.  For "
16078 "example:"
16079 msgstr ""
16080
16081 # type: verbatim
16082 #: ../fish/guestfish.pod:395
16083 #, no-wrap
16084 msgid ""
16085 " add \"file with a space.img\"\n"
16086 "\n"
16087 msgstr ""
16088
16089 # type: verbatim
16090 #: ../fish/guestfish.pod:397
16091 #, no-wrap
16092 msgid ""
16093 " rm '/file name'\n"
16094 "\n"
16095 msgstr ""
16096
16097 # type: verbatim
16098 #: ../fish/guestfish.pod:399
16099 #, no-wrap
16100 msgid ""
16101 " rm '/\"'\n"
16102 "\n"
16103 msgstr ""
16104
16105 # type: textblock
16106 #: ../fish/guestfish.pod:401
16107 msgid ""
16108 "A few commands require a list of strings to be passed.  For these, use a "
16109 "whitespace-separated list, enclosed in quotes.  Strings containing "
16110 "whitespace to be passed through must be enclosed in single quotes.  A "
16111 "literal single quote must be escaped with a backslash."
16112 msgstr ""
16113
16114 # type: verbatim
16115 #: ../fish/guestfish.pod:406
16116 #, no-wrap
16117 msgid ""
16118 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16119 " command \"/bin/echo 'foo      bar'\"\n"
16120 " command \"/bin/echo \\'foo\\'\"\n"
16121 "\n"
16122 msgstr ""
16123
16124 # type: =head1
16125 #: ../fish/guestfish.pod:410
16126 msgid "OPTIONAL ARGUMENTS"
16127 msgstr ""
16128
16129 # type: textblock
16130 #: ../fish/guestfish.pod:412
16131 msgid ""
16132 "Some commands take optional arguments.  These arguments appear in this "
16133 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16134 msgstr ""
16135
16136 # type: verbatim
16137 #: ../fish/guestfish.pod:416
16138 #, no-wrap
16139 msgid ""
16140 " add-drive-opts filename\n"
16141 "\n"
16142 msgstr ""
16143
16144 # type: verbatim
16145 #: ../fish/guestfish.pod:418
16146 #, no-wrap
16147 msgid ""
16148 " add-drive-opts filename readonly:true\n"
16149 "\n"
16150 msgstr ""
16151
16152 # type: verbatim
16153 #: ../fish/guestfish.pod:420
16154 #, no-wrap
16155 msgid ""
16156 " add-drive-opts filename format:qcow2 readonly:false\n"
16157 "\n"
16158 msgstr ""
16159
16160 # type: textblock
16161 #: ../fish/guestfish.pod:422
16162 msgid ""
16163 "Each optional argument can appear at most once.  All optional arguments must "
16164 "appear after the required ones."
16165 msgstr ""
16166
16167 # type: =head1
16168 #: ../fish/guestfish.pod:425
16169 msgid "NUMBERS"
16170 msgstr ""
16171
16172 # type: textblock
16173 #: ../fish/guestfish.pod:427
16174 msgid ""
16175 "This section applies to all commands which can take integers as parameters."
16176 msgstr ""
16177
16178 # type: =head2
16179 #: ../fish/guestfish.pod:430
16180 msgid "SIZE SUFFIX"
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:432
16185 msgid ""
16186 "When the command takes a parameter measured in bytes, you can use one of the "
16187 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16188 msgstr ""
16189
16190 # type: =item
16191 #: ../fish/guestfish.pod:438
16192 msgid "B<k> or B<K> or B<KiB>"
16193 msgstr ""
16194
16195 # type: textblock
16196 #: ../fish/guestfish.pod:440
16197 msgid "The size in kilobytes (multiplied by 1024)."
16198 msgstr ""
16199
16200 # type: =item
16201 #: ../fish/guestfish.pod:442
16202 msgid "B<KB>"
16203 msgstr ""
16204
16205 # type: textblock
16206 #: ../fish/guestfish.pod:444
16207 msgid "The size in SI 1000 byte units."
16208 msgstr ""
16209
16210 # type: =item
16211 #: ../fish/guestfish.pod:446
16212 msgid "B<M> or B<MiB>"
16213 msgstr ""
16214
16215 # type: textblock
16216 #: ../fish/guestfish.pod:448
16217 msgid "The size in megabytes (multiplied by 1048576)."
16218 msgstr ""
16219
16220 # type: =item
16221 #: ../fish/guestfish.pod:450
16222 msgid "B<MB>"
16223 msgstr ""
16224
16225 # type: textblock
16226 #: ../fish/guestfish.pod:452
16227 msgid "The size in SI 1000000 byte units."
16228 msgstr ""
16229
16230 # type: =item
16231 #: ../fish/guestfish.pod:454
16232 msgid "B<G> or B<GiB>"
16233 msgstr ""
16234
16235 # type: textblock
16236 #: ../fish/guestfish.pod:456
16237 msgid "The size in gigabytes (multiplied by 2**30)."
16238 msgstr ""
16239
16240 # type: =item
16241 #: ../fish/guestfish.pod:458
16242 msgid "B<GB>"
16243 msgstr ""
16244
16245 # type: textblock
16246 #: ../fish/guestfish.pod:460
16247 msgid "The size in SI 10**9 byte units."
16248 msgstr ""
16249
16250 # type: =item
16251 #: ../fish/guestfish.pod:462
16252 msgid "B<T> or B<TiB>"
16253 msgstr ""
16254
16255 # type: textblock
16256 #: ../fish/guestfish.pod:464
16257 msgid "The size in terabytes (multiplied by 2**40)."
16258 msgstr ""
16259
16260 # type: =item
16261 #: ../fish/guestfish.pod:466
16262 msgid "B<TB>"
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../fish/guestfish.pod:468
16267 msgid "The size in SI 10**12 byte units."
16268 msgstr ""
16269
16270 # type: =item
16271 #: ../fish/guestfish.pod:470
16272 msgid "B<P> or B<PiB>"
16273 msgstr ""
16274
16275 # type: textblock
16276 #: ../fish/guestfish.pod:472
16277 msgid "The size in petabytes (multiplied by 2**50)."
16278 msgstr ""
16279
16280 # type: =item
16281 #: ../fish/guestfish.pod:474
16282 msgid "B<PB>"
16283 msgstr ""
16284
16285 # type: textblock
16286 #: ../fish/guestfish.pod:476
16287 msgid "The size in SI 10**15 byte units."
16288 msgstr ""
16289
16290 # type: =item
16291 #: ../fish/guestfish.pod:478
16292 msgid "B<E> or B<EiB>"
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../fish/guestfish.pod:480
16297 msgid "The size in exabytes (multiplied by 2**60)."
16298 msgstr ""
16299
16300 # type: =item
16301 #: ../fish/guestfish.pod:482
16302 msgid "B<EB>"
16303 msgstr ""
16304
16305 # type: textblock
16306 #: ../fish/guestfish.pod:484
16307 msgid "The size in SI 10**18 byte units."
16308 msgstr ""
16309
16310 # type: =item
16311 #: ../fish/guestfish.pod:486
16312 msgid "B<Z> or B<ZiB>"
16313 msgstr ""
16314
16315 # type: textblock
16316 #: ../fish/guestfish.pod:488
16317 msgid "The size in zettabytes (multiplied by 2**70)."
16318 msgstr ""
16319
16320 # type: =item
16321 #: ../fish/guestfish.pod:490
16322 msgid "B<ZB>"
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../fish/guestfish.pod:492
16327 msgid "The size in SI 10**21 byte units."
16328 msgstr ""
16329
16330 # type: =item
16331 #: ../fish/guestfish.pod:494
16332 msgid "B<Y> or B<YiB>"
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../fish/guestfish.pod:496
16337 msgid "The size in yottabytes (multiplied by 2**80)."
16338 msgstr ""
16339
16340 # type: =item
16341 #: ../fish/guestfish.pod:498
16342 msgid "B<YB>"
16343 msgstr ""
16344
16345 # type: textblock
16346 #: ../fish/guestfish.pod:500
16347 msgid "The size in SI 10**24 byte units."
16348 msgstr ""
16349
16350 # type: verbatim
16351 #: ../fish/guestfish.pod:506
16352 #, no-wrap
16353 msgid ""
16354 " truncate-size /file 1G\n"
16355 "\n"
16356 msgstr ""
16357
16358 # type: textblock
16359 #: ../fish/guestfish.pod:508
16360 msgid "would truncate the file to 1 gigabyte."
16361 msgstr ""
16362
16363 # type: textblock
16364 #: ../fish/guestfish.pod:510
16365 msgid ""
16366 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16367 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16368 "suffix will probably not do what you expect."
16369 msgstr ""
16370
16371 # type: =head2
16372 #: ../fish/guestfish.pod:514
16373 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16374 msgstr ""
16375
16376 # type: textblock
16377 #: ../fish/guestfish.pod:516
16378 msgid ""
16379 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16380 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16381 msgstr ""
16382
16383 # type: verbatim
16384 #: ../fish/guestfish.pod:519
16385 #, no-wrap
16386 msgid ""
16387 " 1234      decimal number 1234\n"
16388 " 02322     octal number, equivalent to decimal 1234\n"
16389 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16390 "\n"
16391 msgstr ""
16392
16393 # type: textblock
16394 #: ../fish/guestfish.pod:523
16395 msgid ""
16396 "When using the C<chmod> command, you almost always want to specify an octal "
16397 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16398 "L<chmod(1)> program):"
16399 msgstr ""
16400
16401 # type: verbatim
16402 #: ../fish/guestfish.pod:527
16403 #, no-wrap
16404 msgid ""
16405 " chmod 0777 /public  # OK\n"
16406 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16407 "\n"
16408 msgstr ""
16409
16410 # type: textblock
16411 #: ../fish/guestfish.pod:530
16412 msgid ""
16413 "Commands that return numbers usually print them in decimal, but some "
16414 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16415 "octal, preceeded by C<0>)."
16416 msgstr ""
16417
16418 # type: =head1
16419 #: ../fish/guestfish.pod:534
16420 msgid "WILDCARDS AND GLOBBING"
16421 msgstr ""
16422
16423 # type: textblock
16424 #: ../fish/guestfish.pod:536
16425 msgid ""
16426 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16427 "(globbing) by default.  So for example the following will not do what you "
16428 "expect:"
16429 msgstr ""
16430
16431 # type: verbatim
16432 #: ../fish/guestfish.pod:540
16433 #, no-wrap
16434 msgid ""
16435 " rm-rf /home/*\n"
16436 "\n"
16437 msgstr ""
16438
16439 # type: textblock
16440 #: ../fish/guestfish.pod:542
16441 msgid ""
16442 "Assuming you don't have a directory called literally C</home/*> then the "
16443 "above command will return an error."
16444 msgstr ""
16445
16446 # type: textblock
16447 #: ../fish/guestfish.pod:545
16448 msgid "To perform wildcard expansion, use the C<glob> command."
16449 msgstr ""
16450
16451 # type: verbatim
16452 #: ../fish/guestfish.pod:547
16453 #, no-wrap
16454 msgid ""
16455 " glob rm-rf /home/*\n"
16456 "\n"
16457 msgstr ""
16458
16459 # type: textblock
16460 #: ../fish/guestfish.pod:549
16461 msgid ""
16462 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16463 "many times), equivalent to:"
16464 msgstr ""
16465
16466 # type: verbatim
16467 #: ../fish/guestfish.pod:552
16468 #, no-wrap
16469 msgid ""
16470 " rm-rf /home/jim\n"
16471 " rm-rf /home/joe\n"
16472 " rm-rf /home/mary\n"
16473 "\n"
16474 msgstr ""
16475
16476 # type: textblock
16477 #: ../fish/guestfish.pod:556
16478 msgid "C<glob> only works on simple guest paths and not on device names."
16479 msgstr ""
16480
16481 # type: textblock
16482 #: ../fish/guestfish.pod:558
16483 msgid ""
16484 "If you have several parameters, each containing a wildcard, then glob will "
16485 "perform a Cartesian product."
16486 msgstr ""
16487
16488 # type: =head1
16489 #: ../fish/guestfish.pod:561
16490 msgid "COMMENTS"
16491 msgstr ""
16492
16493 # type: textblock
16494 #: ../fish/guestfish.pod:563
16495 msgid ""
16496 "Any line which starts with a I<#> character is treated as a comment and "
16497 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16498 "a command.  For example:"
16499 msgstr ""
16500
16501 # type: verbatim
16502 #: ../fish/guestfish.pod:567
16503 #, no-wrap
16504 msgid ""
16505 " # this is a comment\n"
16506 "         # this is a comment\n"
16507 " foo # NOT a comment\n"
16508 "\n"
16509 msgstr ""
16510
16511 # type: textblock
16512 #: ../fish/guestfish.pod:571
16513 msgid "Blank lines are also ignored."
16514 msgstr ""
16515
16516 # type: =head1
16517 #: ../fish/guestfish.pod:573
16518 msgid "RUNNING COMMANDS LOCALLY"
16519 msgstr ""
16520
16521 # type: textblock
16522 #: ../fish/guestfish.pod:575
16523 msgid ""
16524 "Any line which starts with a I<!> character is treated as a command sent to "
16525 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #: ../fish/guestfish.pod:579
16530 #, no-wrap
16531 msgid ""
16532 " !mkdir local\n"
16533 " tgz-out /remote local/remote-data.tar.gz\n"
16534 "\n"
16535 msgstr ""
16536
16537 # type: textblock
16538 #: ../fish/guestfish.pod:582
16539 msgid ""
16540 "will create a directory C<local> on the host, and then export the contents "
16541 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16542 "(See C<tgz-out>)."
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:586
16547 msgid ""
16548 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16549 "effect, due to the way that subprocesses work in Unix."
16550 msgstr ""
16551
16552 # type: =head1
16553 #: ../fish/guestfish.pod:589
16554 msgid "PIPES"
16555 msgstr ""
16556
16557 # type: textblock
16558 #: ../fish/guestfish.pod:591
16559 msgid ""
16560 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16561 "command (a guestfish command) to the second command (any host command).  For "
16562 "example:"
16563 msgstr ""
16564
16565 # type: verbatim
16566 #: ../fish/guestfish.pod:595
16567 #, no-wrap
16568 msgid ""
16569 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16570 "\n"
16571 msgstr ""
16572
16573 # type: textblock
16574 #: ../fish/guestfish.pod:597
16575 msgid ""
16576 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16577 "program).  The above command would list all accounts in the guest filesystem "
16578 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16579 msgstr ""
16580
16581 # type: verbatim
16582 #: ../fish/guestfish.pod:602
16583 #, no-wrap
16584 msgid ""
16585 " hexdump /bin/ls | head\n"
16586 " list-devices | tail -1\n"
16587 " tgz-out / - | tar ztf -\n"
16588 "\n"
16589 msgstr ""
16590
16591 # type: textblock
16592 #: ../fish/guestfish.pod:606
16593 msgid ""
16594 "The space before the pipe symbol is required, any space after the pipe "
16595 "symbol is optional.  Everything after the pipe symbol is just passed "
16596 "straight to the host shell, so it can contain redirections, globs and "
16597 "anything else that makes sense on the host side."
16598 msgstr ""
16599
16600 # type: textblock
16601 #: ../fish/guestfish.pod:611
16602 msgid ""
16603 "To use a literal argument which begins with a pipe symbol, you have to quote "
16604 "it, eg:"
16605 msgstr ""
16606
16607 # type: verbatim
16608 #: ../fish/guestfish.pod:614
16609 #, no-wrap
16610 msgid ""
16611 " echo \"|\"\n"
16612 "\n"
16613 msgstr ""
16614
16615 # type: =head1
16616 #: ../fish/guestfish.pod:616
16617 msgid "HOME DIRECTORIES"
16618 msgstr ""
16619
16620 # type: textblock
16621 #: ../fish/guestfish.pod:618
16622 msgid ""
16623 "If a parameter starts with the character C<~> then the tilde may be expanded "
16624 "as a home directory path (either C<~> for the current user's home directory, "
16625 "or C<~user> for another user)."
16626 msgstr ""
16627
16628 # type: textblock
16629 #: ../fish/guestfish.pod:622
16630 msgid ""
16631 "Note that home directory expansion happens for users known I<on the host>, "
16632 "not in the guest filesystem."
16633 msgstr ""
16634
16635 # type: textblock
16636 #: ../fish/guestfish.pod:625
16637 msgid ""
16638 "To use a literal argument which begins with a tilde, you have to quote it, "
16639 "eg:"
16640 msgstr ""
16641
16642 # type: verbatim
16643 #: ../fish/guestfish.pod:628
16644 #, no-wrap
16645 msgid ""
16646 " echo \"~\"\n"
16647 "\n"
16648 msgstr ""
16649
16650 # type: textblock
16651 #: ../fish/guestfish.pod:632
16652 msgid ""
16653 "Libguestfs has some support for Linux guests encrypted according to the "
16654 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16655 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
16656 "LUKS is supported."
16657 msgstr ""
16658
16659 # type: textblock
16660 #: ../fish/guestfish.pod:637
16661 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16662 msgstr ""
16663
16664 # type: verbatim
16665 #: ../fish/guestfish.pod:639
16666 #, no-wrap
16667 msgid ""
16668 " ><fs> vfs-type /dev/sda2\n"
16669 " crypto_LUKS\n"
16670 "\n"
16671 msgstr ""
16672
16673 # type: textblock
16674 #: ../fish/guestfish.pod:642
16675 msgid ""
16676 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16677 "device called C</dev/mapper/luksdev>."
16678 msgstr ""
16679
16680 # type: verbatim
16681 #: ../fish/guestfish.pod:645
16682 #, no-wrap
16683 msgid ""
16684 " ><fs> luks-open /dev/sda2 luksdev\n"
16685 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16686 "\n"
16687 msgstr ""
16688
16689 # type: textblock
16690 #: ../fish/guestfish.pod:648
16691 msgid ""
16692 "Finally you have to tell LVM to scan for volume groups on the newly created "
16693 "mapper device:"
16694 msgstr ""
16695
16696 # type: verbatim
16697 #: ../fish/guestfish.pod:651
16698 #, no-wrap
16699 msgid ""
16700 " vgscan\n"
16701 " vg-activate-all true\n"
16702 "\n"
16703 msgstr ""
16704
16705 # type: textblock
16706 #: ../fish/guestfish.pod:654
16707 msgid "The logical volume(s) can now be mounted in the usual way."
16708 msgstr ""
16709
16710 # type: textblock
16711 #: ../fish/guestfish.pod:656
16712 msgid ""
16713 "Before closing a LUKS device you must unmount any logical volumes on it and "
16714 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16715 "one.  Then you can close the mapper device:"
16716 msgstr ""
16717
16718 # type: verbatim
16719 #: ../fish/guestfish.pod:660
16720 #, no-wrap
16721 msgid ""
16722 " vg-activate false /dev/VG\n"
16723 " luks-close /dev/mapper/luksdev\n"
16724 "\n"
16725 msgstr ""
16726
16727 # type: =head1
16728 #: ../fish/guestfish.pod:663
16729 msgid "WINDOWS PATHS"
16730 msgstr ""
16731
16732 # type: textblock
16733 #: ../fish/guestfish.pod:665
16734 msgid ""
16735 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16736 "(with some limitations).  The following commands are equivalent:"
16737 msgstr ""
16738
16739 # type: verbatim
16740 #: ../fish/guestfish.pod:668
16741 #, no-wrap
16742 msgid ""
16743 " file /WINDOWS/system32/config/system.LOG\n"
16744 "\n"
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../fish/guestfish.pod:670
16749 #, no-wrap
16750 msgid ""
16751 " file win:/windows/system32/config/system.log\n"
16752 "\n"
16753 msgstr ""
16754
16755 # type: verbatim
16756 #: ../fish/guestfish.pod:672
16757 #, no-wrap
16758 msgid ""
16759 " file win:\\windows\\system32\\config\\system.log\n"
16760 "\n"
16761 msgstr ""
16762
16763 # type: verbatim
16764 #: ../fish/guestfish.pod:674
16765 #, no-wrap
16766 msgid ""
16767 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16768 "\n"
16769 msgstr ""
16770
16771 # type: textblock
16772 #: ../fish/guestfish.pod:676
16773 msgid ""
16774 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16775 "handles case insensitivity like Windows would.  This only works in argument "
16776 "positions that expect a path."
16777 msgstr ""
16778
16779 # type: =head1
16780 #: ../fish/guestfish.pod:680
16781 msgid "UPLOADING AND DOWNLOADING FILES"
16782 msgstr ""
16783
16784 # type: textblock
16785 #: ../fish/guestfish.pod:682
16786 msgid ""
16787 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16788 "others which upload from or download to a local file, you can use the "
16789 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16790 msgstr ""
16791
16792 # type: verbatim
16793 #: ../fish/guestfish.pod:686
16794 #, no-wrap
16795 msgid ""
16796 " upload - /foo\n"
16797 "\n"
16798 msgstr ""
16799
16800 # type: textblock
16801 #: ../fish/guestfish.pod:688
16802 msgid ""
16803 "reads stdin and creates from that a file C</foo> in the disk image, and:"
16804 msgstr ""
16805
16806 # type: verbatim
16807 #: ../fish/guestfish.pod:691
16808 #, no-wrap
16809 msgid ""
16810 " tar-out /etc - | tar tf -\n"
16811 "\n"
16812 msgstr ""
16813
16814 # type: textblock
16815 #: ../fish/guestfish.pod:693
16816 msgid ""
16817 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16818 "command (see L</PIPES>)."
16819 msgstr ""
16820
16821 # type: textblock
16822 #: ../fish/guestfish.pod:696
16823 msgid ""
16824 "When using C<-> to read from stdin, the input is read up to the end of "
16825 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16826 "some arbitrary end marker:"
16827 msgstr ""
16828
16829 # type: verbatim
16830 #: ../fish/guestfish.pod:700
16831 #, no-wrap
16832 msgid ""
16833 " upload -<<END /foo\n"
16834 " input line 1\n"
16835 " input line 2\n"
16836 " input line 3\n"
16837 " END\n"
16838 "\n"
16839 msgstr ""
16840
16841 # type: textblock
16842 #: ../fish/guestfish.pod:706
16843 msgid ""
16844 "Any string of characters can be used instead of C<END>.  The end marker must "
16845 "appear on a line of its own, without any preceeding or following characters "
16846 "(not even spaces)."
16847 msgstr ""
16848
16849 # type: textblock
16850 #: ../fish/guestfish.pod:710
16851 msgid ""
16852 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16853 "upload local files (so-called \"FileIn\" parameters in the generator)."
16854 msgstr ""
16855
16856 # type: =head1
16857 #: ../fish/guestfish.pod:713
16858 msgid "EXIT ON ERROR BEHAVIOUR"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:715
16863 msgid ""
16864 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16865 "taking commands from a human over a tty), and will exit on the first error "
16866 "in non-interactive mode (scripts, commands given on the command line)."
16867 msgstr ""
16868
16869 # type: textblock
16870 #: ../fish/guestfish.pod:720
16871 msgid ""
16872 "If you prefix a command with a I<-> character, then that command will not "
16873 "cause guestfish to exit, even if that (one) command returns an error."
16874 msgstr ""
16875
16876 # type: =head1
16877 #: ../fish/guestfish.pod:724
16878 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16879 msgstr ""
16880
16881 # type: textblock
16882 #: ../fish/guestfish.pod:726
16883 msgid ""
16884 "Guestfish can be remote-controlled over a socket.  This is useful "
16885 "particularly in shell scripts where you want to make several different "
16886 "changes to a filesystem, but you don't want the overhead of starting up a "
16887 "guestfish process each time."
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:731
16892 msgid "Start a guestfish server process using:"
16893 msgstr ""
16894
16895 # type: verbatim
16896 #: ../fish/guestfish.pod:733
16897 #, no-wrap
16898 msgid ""
16899 " eval `guestfish --listen`\n"
16900 "\n"
16901 msgstr ""
16902
16903 # type: textblock
16904 #: ../fish/guestfish.pod:735
16905 msgid "and then send it commands by doing:"
16906 msgstr ""
16907
16908 # type: verbatim
16909 #: ../fish/guestfish.pod:737
16910 #, no-wrap
16911 msgid ""
16912 " guestfish --remote cmd [...]\n"
16913 "\n"
16914 msgstr ""
16915
16916 # type: textblock
16917 #: ../fish/guestfish.pod:739
16918 msgid "To cause the server to exit, send it the exit command:"
16919 msgstr ""
16920
16921 # type: verbatim
16922 #: ../fish/guestfish.pod:741
16923 #, no-wrap
16924 msgid ""
16925 " guestfish --remote exit\n"
16926 "\n"
16927 msgstr ""
16928
16929 # type: textblock
16930 #: ../fish/guestfish.pod:743
16931 msgid ""
16932 "Note that the server will normally exit if there is an error in a command.  "
16933 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16934 "BEHAVIOUR>."
16935 msgstr ""
16936
16937 # type: =head2
16938 #: ../fish/guestfish.pod:747
16939 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish.pod:749
16944 msgid ""
16945 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16946 "is how the I<--remote> option knows where to send the commands.  You can "
16947 "have several guestfish listener processes running using:"
16948 msgstr ""
16949
16950 # type: verbatim
16951 #: ../fish/guestfish.pod:753
16952 #, no-wrap
16953 msgid ""
16954 " eval `guestfish --listen`\n"
16955 " pid1=$GUESTFISH_PID\n"
16956 " eval `guestfish --listen`\n"
16957 " pid2=$GUESTFISH_PID\n"
16958 " ...\n"
16959 " guestfish --remote=$pid1 cmd\n"
16960 " guestfish --remote=$pid2 cmd\n"
16961 "\n"
16962 msgstr ""
16963
16964 # type: =head2
16965 #: ../fish/guestfish.pod:761
16966 msgid "REMOTE CONTROL DETAILS"
16967 msgstr ""
16968
16969 # type: textblock
16970 #: ../fish/guestfish.pod:763
16971 msgid ""
16972 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
16973 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
16974 "and C<$PID> is the process ID of the server."
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:767
16979 msgid "Guestfish client and server versions must match exactly."
16980 msgstr ""
16981
16982 # type: =head1
16983 #: ../fish/guestfish.pod:769
16984 msgid "PREPARED DISK IMAGES"
16985 msgstr ""
16986
16987 # type: textblock
16988 #: ../fish/guestfish.pod:771
16989 msgid ""
16990 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16991 "preformatted disk images that guestfish can make for you to save typing.  "
16992 "This is particularly useful for testing purposes.  This option is used "
16993 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16994 "can be mixed with I<-a>)."
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:777
16999 msgid ""
17000 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17001 "the second and so on.  Existing files in the current directory are "
17002 "I<overwritten>."
17003 msgstr ""
17004
17005 # type: textblock
17006 #: ../fish/guestfish.pod:781
17007 msgid ""
17008 "The type briefly describes how the disk should be sized, partitioned, how "
17009 "filesystem(s) should be created, and how content should be added.  "
17010 "Optionally the type can be followed by extra parameters, separated by C<:> "
17011 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17012 "allocated disk, containing a single partition, with the partition formatted "
17013 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17014 "disk instead."
17015 msgstr ""
17016
17017 # type: textblock
17018 #: ../fish/guestfish.pod:789
17019 msgid "To list the available types and any extra parameters they take, run:"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:793
17024 msgid ""
17025 "Note that the prepared filesystem is not mounted.  You would usually have to "
17026 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17027 msgstr ""
17028
17029 # type: textblock
17030 #: ../fish/guestfish.pod:797
17031 msgid ""
17032 "If any I<-N> or I<--new> options are given, the guest is automatically "
17033 "launched."
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish.pod:802
17038 msgid "Create a 100MB disk with an ext4-formatted partition:"
17039 msgstr ""
17040
17041 # type: verbatim
17042 #: ../fish/guestfish.pod:804
17043 #, no-wrap
17044 msgid ""
17045 " guestfish -N fs:ext4\n"
17046 "\n"
17047 msgstr ""
17048
17049 # type: textblock
17050 #: ../fish/guestfish.pod:806
17051 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17052 msgstr ""
17053
17054 # type: verbatim
17055 #: ../fish/guestfish.pod:808
17056 #, no-wrap
17057 msgid ""
17058 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17059 "\n"
17060 msgstr ""
17061
17062 # type: textblock
17063 #: ../fish/guestfish.pod:810
17064 msgid "Create a blank 200MB disk:"
17065 msgstr ""
17066
17067 # type: verbatim
17068 #: ../fish/guestfish.pod:812
17069 #, no-wrap
17070 msgid ""
17071 " guestfish -N disk:200M\n"
17072 "\n"
17073 msgstr ""
17074
17075 # type: =head1
17076 #: ../fish/guestfish.pod:814
17077 msgid "PROGRESS BARS"
17078 msgstr ""
17079
17080 # type: textblock
17081 #: ../fish/guestfish.pod:816
17082 msgid ""
17083 "Some (not all) long-running commands send progress notification messages as "
17084 "they are running.  Guestfish turns these messages into progress bars."
17085 msgstr ""
17086
17087 # type: textblock
17088 #: ../fish/guestfish.pod:820
17089 msgid ""
17090 "When a command that supports progress bars takes longer than two seconds to "
17091 "run, and if progress bars are enabled, then you will see one appearing below "
17092 "the command:"
17093 msgstr ""
17094
17095 # type: verbatim
17096 #: ../fish/guestfish.pod:824
17097 #, no-wrap
17098 msgid ""
17099 " ><fs> copy-size /large-file /another-file 2048M\n"
17100 " / 10% [#####-----------------------------------------] 00:30\n"
17101 "\n"
17102 msgstr ""
17103
17104 # type: textblock
17105 #: ../fish/guestfish.pod:827
17106 msgid ""
17107 "The spinner on the left hand side moves round once for every progress "
17108 "notification received from the backend.  This is a (reasonably) golden "
17109 "assurance that the command is \"doing something\" even if the progress bar "
17110 "is not moving, because the command is able to send the progress "
17111 "notifications.  When the bar reaches 100% and the command finishes, the "
17112 "spinner disappears."
17113 msgstr ""
17114
17115 # type: textblock
17116 #: ../fish/guestfish.pod:834
17117 msgid ""
17118 "Progress bars are enabled by default when guestfish is used interactively.  "
17119 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17120 "and you can disable them completely using I<--no-progress-bars>."
17121 msgstr ""
17122
17123 # type: =head1
17124 #: ../fish/guestfish.pod:839
17125 msgid "GUESTFISH COMMANDS"
17126 msgstr ""
17127
17128 # type: textblock
17129 #: ../fish/guestfish.pod:841
17130 msgid ""
17131 "The commands in this section are guestfish convenience commands, in other "
17132 "words, they are not part of the L<guestfs(3)> API."
17133 msgstr ""
17134
17135 # type: =head2
17136 #: ../fish/guestfish.pod:844
17137 msgid "help"
17138 msgstr ""
17139
17140 # type: verbatim
17141 #: ../fish/guestfish.pod:846
17142 #, no-wrap
17143 msgid ""
17144 " help\n"
17145 " help cmd\n"
17146 "\n"
17147 msgstr ""
17148
17149 # type: textblock
17150 #: ../fish/guestfish.pod:849
17151 msgid ""
17152 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17153 "this displays detailed help for a command."
17154 msgstr ""
17155
17156 # type: =head2
17157 #: ../fish/guestfish.pod:852
17158 msgid "quit | exit"
17159 msgstr ""
17160
17161 # type: textblock
17162 #: ../fish/guestfish.pod:854
17163 msgid "This exits guestfish.  You can also use C<^D> key."
17164 msgstr ""
17165
17166 # type: textblock
17167 #: ../fish/guestfish.pod:856
17168 msgid "@FISH_COMMANDS@"
17169 msgstr ""
17170
17171 # type: =head1
17172 #: ../fish/guestfish.pod:858
17173 msgid "COMMANDS"
17174 msgstr ""
17175
17176 # type: =head1
17177 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17178 msgid "EXIT CODE"
17179 msgstr ""
17180
17181 # type: textblock
17182 #: ../fish/guestfish.pod:864
17183 msgid ""
17184 "guestfish returns 0 if the commands completed without error, or 1 if there "
17185 "was an error."
17186 msgstr ""
17187
17188 # type: =item
17189 #: ../fish/guestfish.pod:871
17190 msgid "EDITOR"
17191 msgstr ""
17192
17193 # type: textblock
17194 #: ../fish/guestfish.pod:873
17195 msgid ""
17196 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17197 "C<vi>."
17198 msgstr ""
17199
17200 # type: =item
17201 #: ../fish/guestfish.pod:876
17202 msgid "GUESTFISH_PID"
17203 msgstr ""
17204
17205 # type: textblock
17206 #: ../fish/guestfish.pod:878
17207 msgid ""
17208 "Used with the I<--remote> option to specify the remote guestfish process to "
17209 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17210 msgstr ""
17211
17212 # type: =item
17213 #: ../fish/guestfish.pod:882
17214 msgid "HEXEDITOR"
17215 msgstr ""
17216
17217 # type: textblock
17218 #: ../fish/guestfish.pod:884
17219 msgid ""
17220 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17221 "not specified, the external L<hexedit(1)> program is used."
17222 msgstr ""
17223
17224 # type: =item
17225 #: ../fish/guestfish.pod:888
17226 msgid "HOME"
17227 msgstr ""
17228
17229 # type: textblock
17230 #: ../fish/guestfish.pod:890
17231 msgid ""
17232 "If compiled with GNU readline support, various files in the home directory "
17233 "can be used.  See L</FILES>."
17234 msgstr ""
17235
17236 # type: textblock
17237 #: ../fish/guestfish.pod:899
17238 msgid ""
17239 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17240 "effect as using the B<-v> option."
17241 msgstr ""
17242
17243 # type: textblock
17244 #: ../fish/guestfish.pod:911
17245 msgid ""
17246 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17247 "the discussion of paths in L<guestfs(3)>."
17248 msgstr ""
17249
17250 # type: textblock
17251 #: ../fish/guestfish.pod:922
17252 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17253 msgstr ""
17254
17255 # type: =item
17256 #: ../fish/guestfish.pod:924
17257 msgid "PAGER"
17258 msgstr ""
17259
17260 # type: textblock
17261 #: ../fish/guestfish.pod:926
17262 msgid ""
17263 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17264 "C<more>."
17265 msgstr ""
17266
17267 # type: =head1
17268 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17269 msgid "FILES"
17270 msgstr ""
17271
17272 # type: =item
17273 #: ../fish/guestfish.pod:945
17274 msgid "$HOME/.guestfish"
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:947
17279 msgid ""
17280 "If compiled with GNU readline support, then the command history is saved in "
17281 "this file."
17282 msgstr ""
17283
17284 # type: =item
17285 #: ../fish/guestfish.pod:950
17286 msgid "$HOME/.inputrc"
17287 msgstr ""
17288
17289 # type: =item
17290 #: ../fish/guestfish.pod:952
17291 msgid "/etc/inputrc"
17292 msgstr ""
17293
17294 # type: textblock
17295 #: ../fish/guestfish.pod:954
17296 msgid ""
17297 "If compiled with GNU readline support, then these files can be used to "
17298 "configure readline.  For further information, please see L<readline(3)/"
17299 "INITIALIZATION FILE>."
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:958
17304 msgid "To write rules which only apply to guestfish, use:"
17305 msgstr ""
17306
17307 # type: verbatim
17308 #: ../fish/guestfish.pod:960
17309 #, no-wrap
17310 msgid ""
17311 " $if guestfish\n"
17312 " ...\n"
17313 " $endif\n"
17314 "\n"
17315 msgstr ""
17316
17317 # type: textblock
17318 #: ../fish/guestfish.pod:964
17319 msgid ""
17320 "Variables that you can set in inputrc that change the behaviour of guestfish "
17321 "in useful ways include:"
17322 msgstr ""
17323
17324 # type: =item
17325 #: ../fish/guestfish.pod:969
17326 msgid "completion-ignore-case (default: on)"
17327 msgstr ""
17328
17329 # type: textblock
17330 #: ../fish/guestfish.pod:971
17331 msgid ""
17332 "By default, guestfish will ignore case when tab-completing paths on the "
17333 "disk.  Use:"
17334 msgstr ""
17335
17336 # type: verbatim
17337 #: ../fish/guestfish.pod:974
17338 #, no-wrap
17339 msgid ""
17340 " set completion-ignore-case off\n"
17341 "\n"
17342 msgstr ""
17343
17344 # type: textblock
17345 #: ../fish/guestfish.pod:976
17346 msgid "to make guestfish case sensitive."
17347 msgstr ""
17348
17349 # type: =item
17350 #: ../fish/guestfish.pod:980
17351 msgid "test1.img"
17352 msgstr ""
17353
17354 # type: =item
17355 #: ../fish/guestfish.pod:982
17356 msgid "test2.img (etc)"
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:984
17361 msgid ""
17362 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17363 "will be created in the file C<test1.img> in the current directory.  The "
17364 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17365 "the same name will be overwritten."
17366 msgstr ""
17367
17368 # type: textblock
17369 #: ../fish/guestfish.pod:993
17370 msgid ""
17371 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17372 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17373 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17374 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17375 msgstr ""
17376
17377 # type: textblock
17378 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17379 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:384
17380 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
17381 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
17382 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
17383 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
17384 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17385 #: ../tools/virt-list-partitions.pl:273
17386 msgid ""
17387 "This program is free software; you can redistribute it and/or modify it "
17388 "under the terms of the GNU General Public License as published by the Free "
17389 "Software Foundation; either version 2 of the License, or (at your option) "
17390 "any later version."
17391 msgstr ""
17392
17393 # type: textblock
17394 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17395 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:389
17396 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
17397 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
17398 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
17399 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
17400 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17401 #: ../tools/virt-list-partitions.pl:278
17402 msgid ""
17403 "This program is distributed in the hope that it will be useful, but WITHOUT "
17404 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17405 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17406 "more details."
17407 msgstr ""
17408
17409 # type: textblock
17410 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17411 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:394
17412 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
17413 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
17414 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
17415 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
17416 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17417 #: ../tools/virt-list-partitions.pl:283
17418 msgid ""
17419 "You should have received a copy of the GNU General Public License along with "
17420 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17421 "Ave, Cambridge, MA 02139, USA."
17422 msgstr ""
17423
17424 # type: =head2
17425 #: ../fish/guestfish-actions.pod:1
17426 msgid "add-cdrom"
17427 msgstr ""
17428
17429 # type: verbatim
17430 #: ../fish/guestfish-actions.pod:3
17431 #, no-wrap
17432 msgid ""
17433 " add-cdrom filename\n"
17434 "\n"
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish-actions.pod:15
17439 msgid ""
17440 "This call checks for the existence of C<filename>.  This stops you from "
17441 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17442 "and C<http:> URLs.  To specify those, use the general L</config> call "
17443 "instead."
17444 msgstr ""
17445
17446 # type: textblock
17447 #: ../fish/guestfish-actions.pod:22
17448 msgid ""
17449 "If you just want to add an ISO file (often you use this as an efficient way "
17450 "to transfer large files into the guest), then you should probably use L</add-"
17451 "drive-ro> instead."
17452 msgstr ""
17453
17454 # type: =head2
17455 #: ../fish/guestfish-actions.pod:35
17456 msgid "add-drive"
17457 msgstr ""
17458
17459 # type: verbatim
17460 #: ../fish/guestfish-actions.pod:37
17461 #, no-wrap
17462 msgid ""
17463 " add-drive filename\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish-actions.pod:39
17469 msgid ""
17470 "This function is the equivalent of calling L</add-drive-opts> with no "
17471 "optional parameters, so the disk is added writable, with the format being "
17472 "detected automatically."
17473 msgstr ""
17474
17475 # type: textblock
17476 #: ../fish/guestfish-actions.pod:43
17477 msgid ""
17478 "Automatic detection of the format opens you up to a potential security hole "
17479 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17480 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17481 "you should think about replacing calls to this function with calls to L</add-"
17482 "drive-opts>, and specifying the format."
17483 msgstr ""
17484
17485 # type: =head2
17486 #: ../fish/guestfish-actions.pod:50
17487 msgid "add-drive-opts"
17488 msgstr ""
17489
17490 # type: =head2
17491 #: ../fish/guestfish-actions.pod:52
17492 msgid "add"
17493 msgstr ""
17494
17495 # type: verbatim
17496 #: ../fish/guestfish-actions.pod:54
17497 #, no-wrap
17498 msgid ""
17499 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17500 "\n"
17501 msgstr ""
17502
17503 # type: textblock
17504 #: ../fish/guestfish-actions.pod:81
17505 msgid ""
17506 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17507 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17508 "include C<raw> and C<qcow2>."
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish-actions.pod:92
17513 msgid ""
17514 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17515 "add-drive-with-if> call (q.v.)"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish-actions.pod:97
17520 msgid ""
17521 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17522 msgstr ""
17523
17524 # type: =head2
17525 #: ../fish/guestfish-actions.pod:99
17526 msgid "add-drive-ro"
17527 msgstr ""
17528
17529 # type: =head2
17530 #: ../fish/guestfish-actions.pod:101
17531 msgid "add-ro"
17532 msgstr ""
17533
17534 # type: verbatim
17535 #: ../fish/guestfish-actions.pod:103
17536 #, no-wrap
17537 msgid ""
17538 " add-drive-ro filename\n"
17539 "\n"
17540 msgstr ""
17541
17542 # type: textblock
17543 #: ../fish/guestfish-actions.pod:105
17544 msgid ""
17545 "This function is the equivalent of calling L</add-drive-opts> with the "
17546 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17547 "is added read-only, with the format being detected automatically."
17548 msgstr ""
17549
17550 # type: =head2
17551 #: ../fish/guestfish-actions.pod:110
17552 msgid "add-drive-ro-with-if"
17553 msgstr ""
17554
17555 # type: verbatim
17556 #: ../fish/guestfish-actions.pod:112
17557 #, no-wrap
17558 msgid ""
17559 " add-drive-ro-with-if filename iface\n"
17560 "\n"
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish-actions.pod:114
17565 msgid ""
17566 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17567 "interface emulation to use at run time."
17568 msgstr ""
17569
17570 # type: =head2
17571 #: ../fish/guestfish-actions.pod:124
17572 msgid "add-drive-with-if"
17573 msgstr ""
17574
17575 # type: verbatim
17576 #: ../fish/guestfish-actions.pod:126
17577 #, no-wrap
17578 msgid ""
17579 " add-drive-with-if filename iface\n"
17580 "\n"
17581 msgstr ""
17582
17583 # type: textblock
17584 #: ../fish/guestfish-actions.pod:128
17585 msgid ""
17586 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17587 "interface emulation to use at run time."
17588 msgstr ""
17589
17590 # type: =head2
17591 #: ../fish/guestfish-actions.pod:138
17592 msgid "aug-clear"
17593 msgstr ""
17594
17595 # type: verbatim
17596 #: ../fish/guestfish-actions.pod:140
17597 #, no-wrap
17598 msgid ""
17599 " aug-clear augpath\n"
17600 "\n"
17601 msgstr ""
17602
17603 # type: =head2
17604 #: ../fish/guestfish-actions.pod:145
17605 msgid "aug-close"
17606 msgstr ""
17607
17608 # type: verbatim
17609 #: ../fish/guestfish-actions.pod:147
17610 #, no-wrap
17611 msgid ""
17612 " aug-close\n"
17613 "\n"
17614 msgstr ""
17615
17616 # type: textblock
17617 #: ../fish/guestfish-actions.pod:149
17618 msgid ""
17619 "Close the current Augeas handle and free up any resources used by it.  After "
17620 "calling this, you have to call L</aug-init> again before you can use any "
17621 "other Augeas functions."
17622 msgstr ""
17623
17624 # type: =head2
17625 #: ../fish/guestfish-actions.pod:154
17626 msgid "aug-defnode"
17627 msgstr ""
17628
17629 # type: verbatim
17630 #: ../fish/guestfish-actions.pod:156
17631 #, no-wrap
17632 msgid ""
17633 " aug-defnode name expr val\n"
17634 "\n"
17635 msgstr ""
17636
17637 # type: textblock
17638 #: ../fish/guestfish-actions.pod:161
17639 msgid ""
17640 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17641 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17642 "containing that single node."
17643 msgstr ""
17644
17645 # type: =head2
17646 #: ../fish/guestfish-actions.pod:169
17647 msgid "aug-defvar"
17648 msgstr ""
17649
17650 # type: verbatim
17651 #: ../fish/guestfish-actions.pod:171
17652 #, no-wrap
17653 msgid ""
17654 " aug-defvar name expr\n"
17655 "\n"
17656 msgstr ""
17657
17658 # type: =head2
17659 #: ../fish/guestfish-actions.pod:180
17660 msgid "aug-get"
17661 msgstr ""
17662
17663 # type: verbatim
17664 #: ../fish/guestfish-actions.pod:182
17665 #, no-wrap
17666 msgid ""
17667 " aug-get augpath\n"
17668 "\n"
17669 msgstr ""
17670
17671 # type: =head2
17672 #: ../fish/guestfish-actions.pod:187
17673 msgid "aug-init"
17674 msgstr ""
17675
17676 # type: verbatim
17677 #: ../fish/guestfish-actions.pod:189
17678 #, no-wrap
17679 msgid ""
17680 " aug-init root flags\n"
17681 "\n"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish-actions.pod:195
17686 msgid "You must call this before using any other L</aug-*> commands."
17687 msgstr ""
17688
17689 # type: textblock
17690 #: ../fish/guestfish-actions.pod:230
17691 msgid "Do not load the tree in L</aug-init>."
17692 msgstr ""
17693
17694 # type: textblock
17695 #: ../fish/guestfish-actions.pod:234
17696 msgid "To close the handle, you can call L</aug-close>."
17697 msgstr ""
17698
17699 # type: =head2
17700 #: ../fish/guestfish-actions.pod:238
17701 msgid "aug-insert"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #: ../fish/guestfish-actions.pod:240
17706 #, no-wrap
17707 msgid ""
17708 " aug-insert augpath label true|false\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: =head2
17713 #: ../fish/guestfish-actions.pod:250
17714 msgid "aug-load"
17715 msgstr ""
17716
17717 # type: verbatim
17718 #: ../fish/guestfish-actions.pod:252
17719 #, no-wrap
17720 msgid ""
17721 " aug-load\n"
17722 "\n"
17723 msgstr ""
17724
17725 # type: =head2
17726 #: ../fish/guestfish-actions.pod:259
17727 msgid "aug-ls"
17728 msgstr ""
17729
17730 # type: verbatim
17731 #: ../fish/guestfish-actions.pod:261
17732 #, no-wrap
17733 msgid ""
17734 " aug-ls augpath\n"
17735 "\n"
17736 msgstr ""
17737
17738 # type: textblock
17739 #: ../fish/guestfish-actions.pod:263
17740 msgid ""
17741 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17742 "resulting nodes into alphabetical order."
17743 msgstr ""
17744
17745 # type: =head2
17746 #: ../fish/guestfish-actions.pod:266
17747 msgid "aug-match"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #: ../fish/guestfish-actions.pod:268
17752 #, no-wrap
17753 msgid ""
17754 " aug-match augpath\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: =head2
17759 #: ../fish/guestfish-actions.pod:274
17760 msgid "aug-mv"
17761 msgstr ""
17762
17763 # type: verbatim
17764 #: ../fish/guestfish-actions.pod:276
17765 #, no-wrap
17766 msgid ""
17767 " aug-mv src dest\n"
17768 "\n"
17769 msgstr ""
17770
17771 # type: =head2
17772 #: ../fish/guestfish-actions.pod:281
17773 msgid "aug-rm"
17774 msgstr ""
17775
17776 # type: verbatim
17777 #: ../fish/guestfish-actions.pod:283
17778 #, no-wrap
17779 msgid ""
17780 " aug-rm augpath\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: =head2
17785 #: ../fish/guestfish-actions.pod:289
17786 msgid "aug-save"
17787 msgstr ""
17788
17789 # type: verbatim
17790 #: ../fish/guestfish-actions.pod:291
17791 #, no-wrap
17792 msgid ""
17793 " aug-save\n"
17794 "\n"
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish-actions.pod:295
17799 msgid ""
17800 "The flags which were passed to L</aug-init> affect exactly how files are "
17801 "saved."
17802 msgstr ""
17803
17804 # type: =head2
17805 #: ../fish/guestfish-actions.pod:298
17806 msgid "aug-set"
17807 msgstr ""
17808
17809 # type: verbatim
17810 #: ../fish/guestfish-actions.pod:300
17811 #, no-wrap
17812 msgid ""
17813 " aug-set augpath val\n"
17814 "\n"
17815 msgstr ""
17816
17817 # type: textblock
17818 #: ../fish/guestfish-actions.pod:304
17819 msgid ""
17820 "In the Augeas API, it is possible to clear a node by setting the value to "
17821 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17822 "this call.  Instead you must use the L</aug-clear> call."
17823 msgstr ""
17824
17825 # type: =head2
17826 #: ../fish/guestfish-actions.pod:309
17827 msgid "available"
17828 msgstr ""
17829
17830 # type: verbatim
17831 #: ../fish/guestfish-actions.pod:311
17832 #, no-wrap
17833 msgid ""
17834 " available 'groups ...'\n"
17835 "\n"
17836 msgstr ""
17837
17838 # type: textblock
17839 #: ../fish/guestfish-actions.pod:317
17840 msgid ""
17841 "The libguestfs groups, and the functions that those groups correspond to, "
17842 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17843 "runtime by calling L</available-all-groups>."
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish-actions.pod:341
17848 msgid "You must call L</launch> before calling this function."
17849 msgstr ""
17850
17851 # type: textblock
17852 #: ../fish/guestfish-actions.pod:363
17853 msgid ""
17854 "This call was added in version C<1.0.80>.  In previous versions of "
17855 "libguestfs all you could do would be to speculatively execute a command to "
17856 "find out if the daemon implemented it.  See also L</version>."
17857 msgstr ""
17858
17859 # type: =head2
17860 #: ../fish/guestfish-actions.pod:370
17861 msgid "available-all-groups"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #: ../fish/guestfish-actions.pod:372
17866 #, no-wrap
17867 msgid ""
17868 " available-all-groups\n"
17869 "\n"
17870 msgstr ""
17871
17872 # type: textblock
17873 #: ../fish/guestfish-actions.pod:374
17874 msgid ""
17875 "This command returns a list of all optional groups that this daemon knows "
17876 "about.  Note this returns both supported and unsupported groups.  To find "
17877 "out which ones the daemon can actually support you have to call L</"
17878 "available> on each member of the returned list."
17879 msgstr ""
17880
17881 # type: textblock
17882 #: ../fish/guestfish-actions.pod:380
17883 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17884 msgstr ""
17885
17886 # type: =head2
17887 #: ../fish/guestfish-actions.pod:382
17888 msgid "base64-in"
17889 msgstr ""
17890
17891 # type: verbatim
17892 #: ../fish/guestfish-actions.pod:384
17893 #, no-wrap
17894 msgid ""
17895 " base64-in (base64file|-) filename\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: textblock
17900 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
17901 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
17902 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
17903 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3912
17904 #: ../fish/guestfish-actions.pod:3924 ../fish/guestfish-actions.pod:3935
17905 #: ../fish/guestfish-actions.pod:3946 ../fish/guestfish-actions.pod:3998
17906 #: ../fish/guestfish-actions.pod:4007 ../fish/guestfish-actions.pod:4061
17907 #: ../fish/guestfish-actions.pod:4084
17908 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17909 msgstr ""
17910
17911 # type: =head2
17912 #: ../fish/guestfish-actions.pod:391
17913 msgid "base64-out"
17914 msgstr ""
17915
17916 # type: verbatim
17917 #: ../fish/guestfish-actions.pod:393
17918 #, no-wrap
17919 msgid ""
17920 " base64-out filename (base64file|-)\n"
17921 "\n"
17922 msgstr ""
17923
17924 # type: =head2
17925 #: ../fish/guestfish-actions.pod:400
17926 msgid "blockdev-flushbufs"
17927 msgstr ""
17928
17929 # type: verbatim
17930 #: ../fish/guestfish-actions.pod:402
17931 #, no-wrap
17932 msgid ""
17933 " blockdev-flushbufs device\n"
17934 "\n"
17935 msgstr ""
17936
17937 # type: =head2
17938 #: ../fish/guestfish-actions.pod:409
17939 msgid "blockdev-getbsz"
17940 msgstr ""
17941
17942 # type: verbatim
17943 #: ../fish/guestfish-actions.pod:411
17944 #, no-wrap
17945 msgid ""
17946 " blockdev-getbsz device\n"
17947 "\n"
17948 msgstr ""
17949
17950 # type: =head2
17951 #: ../fish/guestfish-actions.pod:420
17952 msgid "blockdev-getro"
17953 msgstr ""
17954
17955 # type: verbatim
17956 #: ../fish/guestfish-actions.pod:422
17957 #, no-wrap
17958 msgid ""
17959 " blockdev-getro device\n"
17960 "\n"
17961 msgstr ""
17962
17963 # type: =head2
17964 #: ../fish/guestfish-actions.pod:429
17965 msgid "blockdev-getsize64"
17966 msgstr ""
17967
17968 # type: verbatim
17969 #: ../fish/guestfish-actions.pod:431
17970 #, no-wrap
17971 msgid ""
17972 " blockdev-getsize64 device\n"
17973 "\n"
17974 msgstr ""
17975
17976 # type: textblock
17977 #: ../fish/guestfish-actions.pod:435
17978 msgid "See also L</blockdev-getsz>."
17979 msgstr ""
17980
17981 # type: =head2
17982 #: ../fish/guestfish-actions.pod:439
17983 msgid "blockdev-getss"
17984 msgstr ""
17985
17986 # type: verbatim
17987 #: ../fish/guestfish-actions.pod:441
17988 #, no-wrap
17989 msgid ""
17990 " blockdev-getss device\n"
17991 "\n"
17992 msgstr ""
17993
17994 # type: textblock
17995 #: ../fish/guestfish-actions.pod:446
17996 msgid ""
17997 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17998 msgstr ""
17999
18000 # type: =head2
18001 #: ../fish/guestfish-actions.pod:451
18002 msgid "blockdev-getsz"
18003 msgstr ""
18004
18005 # type: verbatim
18006 #: ../fish/guestfish-actions.pod:453
18007 #, no-wrap
18008 msgid ""
18009 " blockdev-getsz device\n"
18010 "\n"
18011 msgstr ""
18012
18013 # type: textblock
18014 #: ../fish/guestfish-actions.pod:458
18015 msgid ""
18016 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18017 "blockdev-getsize64> for the more useful I<size in bytes>."
18018 msgstr ""
18019
18020 # type: =head2
18021 #: ../fish/guestfish-actions.pod:464
18022 msgid "blockdev-rereadpt"
18023 msgstr ""
18024
18025 # type: verbatim
18026 #: ../fish/guestfish-actions.pod:466
18027 #, no-wrap
18028 msgid ""
18029 " blockdev-rereadpt device\n"
18030 "\n"
18031 msgstr ""
18032
18033 # type: =head2
18034 #: ../fish/guestfish-actions.pod:472
18035 msgid "blockdev-setbsz"
18036 msgstr ""
18037
18038 # type: verbatim
18039 #: ../fish/guestfish-actions.pod:474
18040 #, no-wrap
18041 msgid ""
18042 " blockdev-setbsz device blocksize\n"
18043 "\n"
18044 msgstr ""
18045
18046 # type: =head2
18047 #: ../fish/guestfish-actions.pod:483
18048 msgid "blockdev-setro"
18049 msgstr ""
18050
18051 # type: verbatim
18052 #: ../fish/guestfish-actions.pod:485
18053 #, no-wrap
18054 msgid ""
18055 " blockdev-setro device\n"
18056 "\n"
18057 msgstr ""
18058
18059 # type: =head2
18060 #: ../fish/guestfish-actions.pod:491
18061 msgid "blockdev-setrw"
18062 msgstr ""
18063
18064 # type: verbatim
18065 #: ../fish/guestfish-actions.pod:493
18066 #, no-wrap
18067 msgid ""
18068 " blockdev-setrw device\n"
18069 "\n"
18070 msgstr ""
18071
18072 # type: =head2
18073 #: ../fish/guestfish-actions.pod:499
18074 msgid "case-sensitive-path"
18075 msgstr ""
18076
18077 # type: verbatim
18078 #: ../fish/guestfish-actions.pod:501
18079 #, no-wrap
18080 msgid ""
18081 " case-sensitive-path path\n"
18082 "\n"
18083 msgstr ""
18084
18085 # type: textblock
18086 #: ../fish/guestfish-actions.pod:525
18087 msgid ""
18088 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18089 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18090 "the directories were originally created under Windows)."
18091 msgstr ""
18092
18093 # type: textblock
18094 #: ../fish/guestfish-actions.pod:533
18095 msgid "See also L</realpath>."
18096 msgstr ""
18097
18098 # type: =head2
18099 #: ../fish/guestfish-actions.pod:535
18100 msgid "cat"
18101 msgstr ""
18102
18103 # type: verbatim
18104 #: ../fish/guestfish-actions.pod:537
18105 #, no-wrap
18106 msgid ""
18107 " cat path\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish-actions.pod:541
18113 msgid ""
18114 "Note that this function cannot correctly handle binary files (specifically, "
18115 "files containing C<\\0> character which is treated as end of string).  For "
18116 "those you need to use the L</read-file> or L</download> functions which have "
18117 "a more complex interface."
18118 msgstr ""
18119
18120 # type: =head2
18121 #: ../fish/guestfish-actions.pod:549
18122 msgid "checksum"
18123 msgstr ""
18124
18125 # type: verbatim
18126 #: ../fish/guestfish-actions.pod:551
18127 #, no-wrap
18128 msgid ""
18129 " checksum csumtype path\n"
18130 "\n"
18131 msgstr ""
18132
18133 # type: textblock
18134 #: ../fish/guestfish-actions.pod:594
18135 msgid "To get the checksum for a device, use L</checksum-device>."
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish-actions.pod:596
18140 msgid "To get the checksums for many files, use L</checksums-out>."
18141 msgstr ""
18142
18143 # type: =head2
18144 #: ../fish/guestfish-actions.pod:598
18145 msgid "checksum-device"
18146 msgstr ""
18147
18148 # type: verbatim
18149 #: ../fish/guestfish-actions.pod:600
18150 #, no-wrap
18151 msgid ""
18152 " checksum-device csumtype device\n"
18153 "\n"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish-actions.pod:602
18158 msgid ""
18159 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18160 "device named C<device>.  For the types of checksums supported see the L</"
18161 "checksum> command."
18162 msgstr ""
18163
18164 # type: =head2
18165 #: ../fish/guestfish-actions.pod:606
18166 msgid "checksums-out"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #: ../fish/guestfish-actions.pod:608
18171 #, no-wrap
18172 msgid ""
18173 " checksums-out csumtype directory (sumsfile|-)\n"
18174 "\n"
18175 msgstr ""
18176
18177 # type: =head2
18178 #: ../fish/guestfish-actions.pod:624
18179 msgid "chmod"
18180 msgstr ""
18181
18182 # type: verbatim
18183 #: ../fish/guestfish-actions.pod:626
18184 #, no-wrap
18185 msgid ""
18186 " chmod mode path\n"
18187 "\n"
18188 msgstr ""
18189
18190 # type: =head2
18191 #: ../fish/guestfish-actions.pod:637
18192 msgid "chown"
18193 msgstr ""
18194
18195 # type: verbatim
18196 #: ../fish/guestfish-actions.pod:639
18197 #, no-wrap
18198 msgid ""
18199 " chown owner group path\n"
18200 "\n"
18201 msgstr ""
18202
18203 # type: =head2
18204 #: ../fish/guestfish-actions.pod:647
18205 msgid "command"
18206 msgstr ""
18207
18208 # type: verbatim
18209 #: ../fish/guestfish-actions.pod:649
18210 #, no-wrap
18211 msgid ""
18212 " command 'arguments ...'\n"
18213 "\n"
18214 msgstr ""
18215
18216 # type: textblock
18217 #: ../fish/guestfish-actions.pod:656
18218 msgid ""
18219 "The single parameter is an argv-style list of arguments.  The first element "
18220 "is the name of the program to run.  Subsequent elements are parameters.  The "
18221 "list must be non-empty (ie. must contain a program name).  Note that the "
18222 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18223 msgstr ""
18224
18225 # type: =head2
18226 #: ../fish/guestfish-actions.pod:684
18227 msgid "command-lines"
18228 msgstr ""
18229
18230 # type: verbatim
18231 #: ../fish/guestfish-actions.pod:686
18232 #, no-wrap
18233 msgid ""
18234 " command-lines 'arguments ...'\n"
18235 "\n"
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish-actions.pod:688
18240 msgid ""
18241 "This is the same as L</command>, but splits the result into a list of lines."
18242 msgstr ""
18243
18244 # type: textblock
18245 #: ../fish/guestfish-actions.pod:691
18246 msgid "See also: L</sh-lines>"
18247 msgstr ""
18248
18249 # type: =head2
18250 #: ../fish/guestfish-actions.pod:696
18251 msgid "config"
18252 msgstr ""
18253
18254 # type: verbatim
18255 #: ../fish/guestfish-actions.pod:698
18256 #, no-wrap
18257 msgid ""
18258 " config qemuparam qemuvalue\n"
18259 "\n"
18260 msgstr ""
18261
18262 # type: =head2
18263 #: ../fish/guestfish-actions.pod:709
18264 msgid "copy-size"
18265 msgstr ""
18266
18267 # type: verbatim
18268 #: ../fish/guestfish-actions.pod:711
18269 #, no-wrap
18270 msgid ""
18271 " copy-size src dest size\n"
18272 "\n"
18273 msgstr ""
18274
18275 # type: =head2
18276 #: ../fish/guestfish-actions.pod:719
18277 msgid "cp"
18278 msgstr ""
18279
18280 # type: verbatim
18281 #: ../fish/guestfish-actions.pod:721
18282 #, no-wrap
18283 msgid ""
18284 " cp src dest\n"
18285 "\n"
18286 msgstr ""
18287
18288 # type: =head2
18289 #: ../fish/guestfish-actions.pod:726
18290 msgid "cp-a"
18291 msgstr ""
18292
18293 # type: verbatim
18294 #: ../fish/guestfish-actions.pod:728
18295 #, no-wrap
18296 msgid ""
18297 " cp-a src dest\n"
18298 "\n"
18299 msgstr ""
18300
18301 # type: =head2
18302 #: ../fish/guestfish-actions.pod:733
18303 msgid "dd"
18304 msgstr ""
18305
18306 # type: verbatim
18307 #: ../fish/guestfish-actions.pod:735
18308 #, no-wrap
18309 msgid ""
18310 " dd src dest\n"
18311 "\n"
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish-actions.pod:742
18316 msgid ""
18317 "If the destination is a device, it must be as large or larger than the "
18318 "source file or device, otherwise the copy will fail.  This command cannot do "
18319 "partial copies (see L</copy-size>)."
18320 msgstr ""
18321
18322 # type: =head2
18323 #: ../fish/guestfish-actions.pod:746
18324 msgid "debug"
18325 msgstr ""
18326
18327 # type: verbatim
18328 #: ../fish/guestfish-actions.pod:748
18329 #, no-wrap
18330 msgid ""
18331 " debug subcmd 'extraargs ...'\n"
18332 "\n"
18333 msgstr ""
18334
18335 # type: textblock
18336 #: ../fish/guestfish-actions.pod:750
18337 msgid ""
18338 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18339 "daemon) that runs inside the qemu subprocess."
18340 msgstr ""
18341
18342 # type: =head2
18343 #: ../fish/guestfish-actions.pod:758
18344 msgid "debug-upload"
18345 msgstr ""
18346
18347 # type: verbatim
18348 #: ../fish/guestfish-actions.pod:760
18349 #, no-wrap
18350 msgid ""
18351 " debug-upload (filename|-) tmpname mode\n"
18352 "\n"
18353 msgstr ""
18354
18355 # type: textblock
18356 #: ../fish/guestfish-actions.pod:762
18357 msgid ""
18358 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18359 msgstr ""
18360
18361 # type: =head2
18362 #: ../fish/guestfish-actions.pod:771
18363 msgid "df"
18364 msgstr ""
18365
18366 # type: verbatim
18367 #: ../fish/guestfish-actions.pod:773
18368 #, no-wrap
18369 msgid ""
18370 " df\n"
18371 "\n"
18372 msgstr ""
18373
18374 # type: =head2
18375 #: ../fish/guestfish-actions.pod:781
18376 msgid "df-h"
18377 msgstr ""
18378
18379 # type: verbatim
18380 #: ../fish/guestfish-actions.pod:783
18381 #, no-wrap
18382 msgid ""
18383 " df-h\n"
18384 "\n"
18385 msgstr ""
18386
18387 # type: =head2
18388 #: ../fish/guestfish-actions.pod:792
18389 msgid "dmesg"
18390 msgstr ""
18391
18392 # type: verbatim
18393 #: ../fish/guestfish-actions.pod:794
18394 #, no-wrap
18395 msgid ""
18396 " dmesg\n"
18397 "\n"
18398 msgstr ""
18399
18400 # type: textblock
18401 #: ../fish/guestfish-actions.pod:800
18402 msgid ""
18403 "Another way to get the same information is to enable verbose messages with "
18404 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18405 "before running the program."
18406 msgstr ""
18407
18408 # type: =head2
18409 #: ../fish/guestfish-actions.pod:805
18410 msgid "download"
18411 msgstr ""
18412
18413 # type: verbatim
18414 #: ../fish/guestfish-actions.pod:807
18415 #, no-wrap
18416 msgid ""
18417 " download remotefilename (filename|-)\n"
18418 "\n"
18419 msgstr ""
18420
18421 # type: textblock
18422 #: ../fish/guestfish-actions.pod:814
18423 msgid "See also L</upload>, L</cat>."
18424 msgstr ""
18425
18426 # type: =head2
18427 #: ../fish/guestfish-actions.pod:818
18428 msgid "download-offset"
18429 msgstr ""
18430
18431 # type: verbatim
18432 #: ../fish/guestfish-actions.pod:820
18433 #, no-wrap
18434 msgid ""
18435 " download-offset remotefilename (filename|-) offset size\n"
18436 "\n"
18437 msgstr ""
18438
18439 # type: textblock
18440 #: ../fish/guestfish-actions.pod:828
18441 msgid ""
18442 "Note that there is no limit on the amount of data that can be downloaded "
18443 "with this call, unlike with L</pread>, and this call always reads the full "
18444 "amount unless an error occurs."
18445 msgstr ""
18446
18447 # type: textblock
18448 #: ../fish/guestfish-actions.pod:833
18449 msgid "See also L</download>, L</pread>."
18450 msgstr ""
18451
18452 # type: =head2
18453 #: ../fish/guestfish-actions.pod:837
18454 msgid "drop-caches"
18455 msgstr ""
18456
18457 # type: verbatim
18458 #: ../fish/guestfish-actions.pod:839
18459 #, no-wrap
18460 msgid ""
18461 " drop-caches whattodrop\n"
18462 "\n"
18463 msgstr ""
18464
18465 # type: =head2
18466 #: ../fish/guestfish-actions.pod:851
18467 msgid "du"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #: ../fish/guestfish-actions.pod:853
18472 #, no-wrap
18473 msgid ""
18474 " du path\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: =head2
18479 #: ../fish/guestfish-actions.pod:865
18480 msgid "e2fsck-f"
18481 msgstr ""
18482
18483 # type: verbatim
18484 #: ../fish/guestfish-actions.pod:867
18485 #, no-wrap
18486 msgid ""
18487 " e2fsck-f device\n"
18488 "\n"
18489 msgstr ""
18490
18491 # type: textblock
18492 #: ../fish/guestfish-actions.pod:873
18493 msgid ""
18494 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18495 "should use L</fsck>."
18496 msgstr ""
18497
18498 # type: =head2
18499 #: ../fish/guestfish-actions.pod:876
18500 msgid "echo-daemon"
18501 msgstr ""
18502
18503 # type: verbatim
18504 #: ../fish/guestfish-actions.pod:878
18505 #, no-wrap
18506 msgid ""
18507 " echo-daemon 'words ...'\n"
18508 "\n"
18509 msgstr ""
18510
18511 # type: textblock
18512 #: ../fish/guestfish-actions.pod:885
18513 msgid "See also L</ping-daemon>."
18514 msgstr ""
18515
18516 # type: =head2
18517 #: ../fish/guestfish-actions.pod:887
18518 msgid "egrep"
18519 msgstr ""
18520
18521 # type: verbatim
18522 #: ../fish/guestfish-actions.pod:889
18523 #, no-wrap
18524 msgid ""
18525 " egrep regex path\n"
18526 "\n"
18527 msgstr ""
18528
18529 # type: =head2
18530 #: ../fish/guestfish-actions.pod:897
18531 msgid "egrepi"
18532 msgstr ""
18533
18534 # type: verbatim
18535 #: ../fish/guestfish-actions.pod:899
18536 #, no-wrap
18537 msgid ""
18538 " egrepi regex path\n"
18539 "\n"
18540 msgstr ""
18541
18542 # type: =head2
18543 #: ../fish/guestfish-actions.pod:907
18544 msgid "equal"
18545 msgstr ""
18546
18547 # type: verbatim
18548 #: ../fish/guestfish-actions.pod:909
18549 #, no-wrap
18550 msgid ""
18551 " equal file1 file2\n"
18552 "\n"
18553 msgstr ""
18554
18555 # type: =head2
18556 #: ../fish/guestfish-actions.pod:916
18557 msgid "exists"
18558 msgstr ""
18559
18560 # type: verbatim
18561 #: ../fish/guestfish-actions.pod:918
18562 #, no-wrap
18563 msgid ""
18564 " exists path\n"
18565 "\n"
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish-actions.pod:923
18570 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18571 msgstr ""
18572
18573 # type: =head2
18574 #: ../fish/guestfish-actions.pod:925
18575 msgid "fallocate"
18576 msgstr ""
18577
18578 # type: verbatim
18579 #: ../fish/guestfish-actions.pod:927
18580 #, no-wrap
18581 msgid ""
18582 " fallocate path len\n"
18583 "\n"
18584 msgstr ""
18585
18586 # type: =head2
18587 #: ../fish/guestfish-actions.pod:944
18588 msgid "fallocate64"
18589 msgstr ""
18590
18591 # type: verbatim
18592 #: ../fish/guestfish-actions.pod:946
18593 #, no-wrap
18594 msgid ""
18595 " fallocate64 path len\n"
18596 "\n"
18597 msgstr ""
18598
18599 # type: textblock
18600 #: ../fish/guestfish-actions.pod:952
18601 msgid ""
18602 "Note that this call allocates disk blocks for the file.  To create a sparse "
18603 "file use L</truncate-size> instead."
18604 msgstr ""
18605
18606 # type: textblock
18607 #: ../fish/guestfish-actions.pod:955
18608 msgid ""
18609 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18610 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18611 "maximum size of files created through that call to 1GB."
18612 msgstr ""
18613
18614 # type: =head2
18615 #: ../fish/guestfish-actions.pod:964
18616 msgid "fgrep"
18617 msgstr ""
18618
18619 # type: verbatim
18620 #: ../fish/guestfish-actions.pod:966
18621 #, no-wrap
18622 msgid ""
18623 " fgrep pattern path\n"
18624 "\n"
18625 msgstr ""
18626
18627 # type: =head2
18628 #: ../fish/guestfish-actions.pod:974
18629 msgid "fgrepi"
18630 msgstr ""
18631
18632 # type: verbatim
18633 #: ../fish/guestfish-actions.pod:976
18634 #, no-wrap
18635 msgid ""
18636 " fgrepi pattern path\n"
18637 "\n"
18638 msgstr ""
18639
18640 # type: =head2
18641 #: ../fish/guestfish-actions.pod:984
18642 msgid "file"
18643 msgstr ""
18644
18645 # type: verbatim
18646 #: ../fish/guestfish-actions.pod:986
18647 #, no-wrap
18648 msgid ""
18649 " file path\n"
18650 "\n"
18651 msgstr ""
18652
18653 # type: textblock
18654 #: ../fish/guestfish-actions.pod:998
18655 msgid ""
18656 "This command can also be used on C</dev/> devices (and partitions, LV "
18657 "names).  You can for example use this to determine if a device contains a "
18658 "filesystem, although it's usually better to use L</vfs-type>."
18659 msgstr ""
18660
18661 # type: =head2
18662 #: ../fish/guestfish-actions.pod:1008
18663 msgid "file-architecture"
18664 msgstr ""
18665
18666 # type: verbatim
18667 #: ../fish/guestfish-actions.pod:1010
18668 #, no-wrap
18669 msgid ""
18670 " file-architecture filename\n"
18671 "\n"
18672 msgstr ""
18673
18674 # type: =head2
18675 #: ../fish/guestfish-actions.pod:1113
18676 msgid "filesize"
18677 msgstr ""
18678
18679 # type: verbatim
18680 #: ../fish/guestfish-actions.pod:1115
18681 #, no-wrap
18682 msgid ""
18683 " filesize file\n"
18684 "\n"
18685 msgstr ""
18686
18687 # type: textblock
18688 #: ../fish/guestfish-actions.pod:1119
18689 msgid ""
18690 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
18691 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
18692 msgstr ""
18693
18694 # type: =head2
18695 #: ../fish/guestfish-actions.pod:1123
18696 msgid "fill"
18697 msgstr ""
18698
18699 # type: verbatim
18700 #: ../fish/guestfish-actions.pod:1125
18701 #, no-wrap
18702 msgid ""
18703 " fill c len path\n"
18704 "\n"
18705 msgstr ""
18706
18707 # type: textblock
18708 #: ../fish/guestfish-actions.pod:1131
18709 msgid ""
18710 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18711 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18712 "L</fill-pattern>."
18713 msgstr ""
18714
18715 # type: =head2
18716 #: ../fish/guestfish-actions.pod:1136
18717 msgid "fill-pattern"
18718 msgstr ""
18719
18720 # type: verbatim
18721 #: ../fish/guestfish-actions.pod:1138
18722 #, no-wrap
18723 msgid ""
18724 " fill-pattern pattern len path\n"
18725 "\n"
18726 msgstr ""
18727
18728 # type: textblock
18729 #: ../fish/guestfish-actions.pod:1140
18730 msgid ""
18731 "This function is like L</fill> except that it creates a new file of length "
18732 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18733 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18734 "bytes."
18735 msgstr ""
18736
18737 # type: =head2
18738 #: ../fish/guestfish-actions.pod:1145
18739 msgid "find"
18740 msgstr ""
18741
18742 # type: verbatim
18743 #: ../fish/guestfish-actions.pod:1147
18744 #, no-wrap
18745 msgid ""
18746 " find directory\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish-actions.pod:1161
18752 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18753 msgstr ""
18754
18755 # type: textblock
18756 #: ../fish/guestfish-actions.pod:1174
18757 msgid "See also L</find0>."
18758 msgstr ""
18759
18760 # type: =head2
18761 #: ../fish/guestfish-actions.pod:1179
18762 msgid "find0"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish-actions.pod:1181
18767 #, no-wrap
18768 msgid ""
18769 " find0 directory (files|-)\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: textblock
18774 #: ../fish/guestfish-actions.pod:1187
18775 msgid ""
18776 "This command works the same way as L</find> with the following exceptions:"
18777 msgstr ""
18778
18779 # type: =head2
18780 #: ../fish/guestfish-actions.pod:1214
18781 msgid "findfs-label"
18782 msgstr ""
18783
18784 # type: verbatim
18785 #: ../fish/guestfish-actions.pod:1216
18786 #, no-wrap
18787 msgid ""
18788 " findfs-label label\n"
18789 "\n"
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish-actions.pod:1222
18794 msgid "To find the label of a filesystem, use L</vfs-label>."
18795 msgstr ""
18796
18797 # type: =head2
18798 #: ../fish/guestfish-actions.pod:1224
18799 msgid "findfs-uuid"
18800 msgstr ""
18801
18802 # type: verbatim
18803 #: ../fish/guestfish-actions.pod:1226
18804 #, no-wrap
18805 msgid ""
18806 " findfs-uuid uuid\n"
18807 "\n"
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish-actions.pod:1232
18812 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18813 msgstr ""
18814
18815 # type: =head2
18816 #: ../fish/guestfish-actions.pod:1234
18817 msgid "fsck"
18818 msgstr ""
18819
18820 # type: verbatim
18821 #: ../fish/guestfish-actions.pod:1236
18822 #, no-wrap
18823 msgid ""
18824 " fsck fstype device\n"
18825 "\n"
18826 msgstr ""
18827
18828 # type: =head2
18829 #: ../fish/guestfish-actions.pod:1266
18830 msgid "get-append"
18831 msgstr ""
18832
18833 # type: verbatim
18834 #: ../fish/guestfish-actions.pod:1268
18835 #, no-wrap
18836 msgid ""
18837 " get-append\n"
18838 "\n"
18839 msgstr ""
18840
18841 # type: =head2
18842 #: ../fish/guestfish-actions.pod:1275
18843 msgid "get-autosync"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #: ../fish/guestfish-actions.pod:1277
18848 #, no-wrap
18849 msgid ""
18850 " get-autosync\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: =head2
18855 #: ../fish/guestfish-actions.pod:1281
18856 msgid "get-direct"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #: ../fish/guestfish-actions.pod:1283
18861 #, no-wrap
18862 msgid ""
18863 " get-direct\n"
18864 "\n"
18865 msgstr ""
18866
18867 # type: =head2
18868 #: ../fish/guestfish-actions.pod:1287
18869 msgid "get-e2label"
18870 msgstr ""
18871
18872 # type: verbatim
18873 #: ../fish/guestfish-actions.pod:1289
18874 #, no-wrap
18875 msgid ""
18876 " get-e2label device\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: =head2
18881 #: ../fish/guestfish-actions.pod:1301
18882 msgid "get-e2uuid"
18883 msgstr ""
18884
18885 # type: verbatim
18886 #: ../fish/guestfish-actions.pod:1303
18887 #, no-wrap
18888 msgid ""
18889 " get-e2uuid device\n"
18890 "\n"
18891 msgstr ""
18892
18893 # type: =head2
18894 #: ../fish/guestfish-actions.pod:1315
18895 msgid "get-memsize"
18896 msgstr ""
18897
18898 # type: verbatim
18899 #: ../fish/guestfish-actions.pod:1317
18900 #, no-wrap
18901 msgid ""
18902 " get-memsize\n"
18903 "\n"
18904 msgstr ""
18905
18906 # type: textblock
18907 #: ../fish/guestfish-actions.pod:1322
18908 msgid ""
18909 "If L</set-memsize> was not called on this handle, and if "
18910 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18911 "value for memsize."
18912 msgstr ""
18913
18914 # type: =head2
18915 #: ../fish/guestfish-actions.pod:1329
18916 msgid "get-network"
18917 msgstr ""
18918
18919 # type: verbatim
18920 #: ../fish/guestfish-actions.pod:1331
18921 #, no-wrap
18922 msgid ""
18923 " get-network\n"
18924 "\n"
18925 msgstr ""
18926
18927 # type: =head2
18928 #: ../fish/guestfish-actions.pod:1335
18929 msgid "get-path"
18930 msgstr ""
18931
18932 # type: verbatim
18933 #: ../fish/guestfish-actions.pod:1337
18934 #, no-wrap
18935 msgid ""
18936 " get-path\n"
18937 "\n"
18938 msgstr ""
18939
18940 # type: =head2
18941 #: ../fish/guestfish-actions.pod:1344
18942 msgid "get-pid"
18943 msgstr ""
18944
18945 # type: =head2
18946 #: ../fish/guestfish-actions.pod:1346
18947 msgid "pid"
18948 msgstr ""
18949
18950 # type: verbatim
18951 #: ../fish/guestfish-actions.pod:1348
18952 #, no-wrap
18953 msgid ""
18954 " get-pid\n"
18955 "\n"
18956 msgstr ""
18957
18958 # type: =head2
18959 #: ../fish/guestfish-actions.pod:1355
18960 msgid "get-qemu"
18961 msgstr ""
18962
18963 # type: verbatim
18964 #: ../fish/guestfish-actions.pod:1357
18965 #, no-wrap
18966 msgid ""
18967 " get-qemu\n"
18968 "\n"
18969 msgstr ""
18970
18971 # type: =head2
18972 #: ../fish/guestfish-actions.pod:1364
18973 msgid "get-recovery-proc"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #: ../fish/guestfish-actions.pod:1366
18978 #, no-wrap
18979 msgid ""
18980 " get-recovery-proc\n"
18981 "\n"
18982 msgstr ""
18983
18984 # type: =head2
18985 #: ../fish/guestfish-actions.pod:1370
18986 msgid "get-selinux"
18987 msgstr ""
18988
18989 # type: verbatim
18990 #: ../fish/guestfish-actions.pod:1372
18991 #, no-wrap
18992 msgid ""
18993 " get-selinux\n"
18994 "\n"
18995 msgstr ""
18996
18997 # type: textblock
18998 #: ../fish/guestfish-actions.pod:1374
18999 msgid ""
19000 "This returns the current setting of the selinux flag which is passed to the "
19001 "appliance at boot time.  See L</set-selinux>."
19002 msgstr ""
19003
19004 # type: =head2
19005 #: ../fish/guestfish-actions.pod:1380
19006 msgid "get-state"
19007 msgstr ""
19008
19009 # type: verbatim
19010 #: ../fish/guestfish-actions.pod:1382
19011 #, no-wrap
19012 msgid ""
19013 " get-state\n"
19014 "\n"
19015 msgstr ""
19016
19017 # type: =head2
19018 #: ../fish/guestfish-actions.pod:1389
19019 msgid "get-trace"
19020 msgstr ""
19021
19022 # type: verbatim
19023 #: ../fish/guestfish-actions.pod:1391
19024 #, no-wrap
19025 msgid ""
19026 " get-trace\n"
19027 "\n"
19028 msgstr ""
19029
19030 # type: =head2
19031 #: ../fish/guestfish-actions.pod:1395
19032 msgid "get-umask"
19033 msgstr ""
19034
19035 # type: verbatim
19036 #: ../fish/guestfish-actions.pod:1397
19037 #, no-wrap
19038 msgid ""
19039 " get-umask\n"
19040 "\n"
19041 msgstr ""
19042
19043 # type: textblock
19044 #: ../fish/guestfish-actions.pod:1399
19045 msgid ""
19046 "Return the current umask.  By default the umask is C<022> unless it has been "
19047 "set by calling L</umask>."
19048 msgstr ""
19049
19050 # type: =head2
19051 #: ../fish/guestfish-actions.pod:1402
19052 msgid "get-verbose"
19053 msgstr ""
19054
19055 # type: verbatim
19056 #: ../fish/guestfish-actions.pod:1404
19057 #, no-wrap
19058 msgid ""
19059 " get-verbose\n"
19060 "\n"
19061 msgstr ""
19062
19063 # type: =head2
19064 #: ../fish/guestfish-actions.pod:1408
19065 msgid "getcon"
19066 msgstr ""
19067
19068 # type: verbatim
19069 #: ../fish/guestfish-actions.pod:1410
19070 #, no-wrap
19071 msgid ""
19072 " getcon\n"
19073 "\n"
19074 msgstr ""
19075
19076 # type: textblock
19077 #: ../fish/guestfish-actions.pod:1414
19078 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19079 msgstr ""
19080
19081 # type: =head2
19082 #: ../fish/guestfish-actions.pod:1417
19083 msgid "getxattrs"
19084 msgstr ""
19085
19086 # type: verbatim
19087 #: ../fish/guestfish-actions.pod:1419
19088 #, no-wrap
19089 msgid ""
19090 " getxattrs path\n"
19091 "\n"
19092 msgstr ""
19093
19094 # type: textblock
19095 #: ../fish/guestfish-actions.pod:1427
19096 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19097 msgstr ""
19098
19099 # type: =head2
19100 #: ../fish/guestfish-actions.pod:1429
19101 msgid "glob-expand"
19102 msgstr ""
19103
19104 # type: verbatim
19105 #: ../fish/guestfish-actions.pod:1431
19106 #, no-wrap
19107 msgid ""
19108 " glob-expand pattern\n"
19109 "\n"
19110 msgstr ""
19111
19112 # type: =head2
19113 #: ../fish/guestfish-actions.pod:1444
19114 msgid "grep"
19115 msgstr ""
19116
19117 # type: verbatim
19118 #: ../fish/guestfish-actions.pod:1446
19119 #, no-wrap
19120 msgid ""
19121 " grep regex path\n"
19122 "\n"
19123 msgstr ""
19124
19125 # type: =head2
19126 #: ../fish/guestfish-actions.pod:1454
19127 msgid "grepi"
19128 msgstr ""
19129
19130 # type: verbatim
19131 #: ../fish/guestfish-actions.pod:1456
19132 #, no-wrap
19133 msgid ""
19134 " grepi regex path\n"
19135 "\n"
19136 msgstr ""
19137
19138 # type: =head2
19139 #: ../fish/guestfish-actions.pod:1464
19140 msgid "grub-install"
19141 msgstr ""
19142
19143 # type: verbatim
19144 #: ../fish/guestfish-actions.pod:1466
19145 #, no-wrap
19146 msgid ""
19147 " grub-install root device\n"
19148 "\n"
19149 msgstr ""
19150
19151 # type: =head2
19152 #: ../fish/guestfish-actions.pod:1482
19153 msgid "head"
19154 msgstr ""
19155
19156 # type: verbatim
19157 #: ../fish/guestfish-actions.pod:1484
19158 #, no-wrap
19159 msgid ""
19160 " head path\n"
19161 "\n"
19162 msgstr ""
19163
19164 # type: =head2
19165 #: ../fish/guestfish-actions.pod:1492
19166 msgid "head-n"
19167 msgstr ""
19168
19169 # type: verbatim
19170 #: ../fish/guestfish-actions.pod:1494
19171 #, no-wrap
19172 msgid ""
19173 " head-n nrlines path\n"
19174 "\n"
19175 msgstr ""
19176
19177 # type: =head2
19178 #: ../fish/guestfish-actions.pod:1507
19179 msgid "hexdump"
19180 msgstr ""
19181
19182 # type: verbatim
19183 #: ../fish/guestfish-actions.pod:1509
19184 #, no-wrap
19185 msgid ""
19186 " hexdump path\n"
19187 "\n"
19188 msgstr ""
19189
19190 # type: =head2
19191 #: ../fish/guestfish-actions.pod:1517
19192 msgid "initrd-cat"
19193 msgstr ""
19194
19195 # type: verbatim
19196 #: ../fish/guestfish-actions.pod:1519
19197 #, no-wrap
19198 msgid ""
19199 " initrd-cat initrdpath filename\n"
19200 "\n"
19201 msgstr ""
19202
19203 # type: textblock
19204 #: ../fish/guestfish-actions.pod:1531
19205 msgid "See also L</initrd-list>."
19206 msgstr ""
19207
19208 # type: =head2
19209 #: ../fish/guestfish-actions.pod:1536
19210 msgid "initrd-list"
19211 msgstr ""
19212
19213 # type: verbatim
19214 #: ../fish/guestfish-actions.pod:1538
19215 #, no-wrap
19216 msgid ""
19217 " initrd-list path\n"
19218 "\n"
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:1550
19223 msgid "inotify-add-watch"
19224 msgstr ""
19225
19226 # type: verbatim
19227 #: ../fish/guestfish-actions.pod:1552
19228 #, no-wrap
19229 msgid ""
19230 " inotify-add-watch path mask\n"
19231 "\n"
19232 msgstr ""
19233
19234 # type: =head2
19235 #: ../fish/guestfish-actions.pod:1564
19236 msgid "inotify-close"
19237 msgstr ""
19238
19239 # type: verbatim
19240 #: ../fish/guestfish-actions.pod:1566
19241 #, no-wrap
19242 msgid ""
19243 " inotify-close\n"
19244 "\n"
19245 msgstr ""
19246
19247 # type: =head2
19248 #: ../fish/guestfish-actions.pod:1572
19249 msgid "inotify-files"
19250 msgstr ""
19251
19252 # type: verbatim
19253 #: ../fish/guestfish-actions.pod:1574
19254 #, no-wrap
19255 msgid ""
19256 " inotify-files\n"
19257 "\n"
19258 msgstr ""
19259
19260 # type: textblock
19261 #: ../fish/guestfish-actions.pod:1576
19262 msgid ""
19263 "This function is a helpful wrapper around L</inotify-read> which just "
19264 "returns a list of pathnames of objects that were touched.  The returned "
19265 "pathnames are sorted and deduplicated."
19266 msgstr ""
19267
19268 # type: =head2
19269 #: ../fish/guestfish-actions.pod:1580
19270 msgid "inotify-init"
19271 msgstr ""
19272
19273 # type: verbatim
19274 #: ../fish/guestfish-actions.pod:1582
19275 #, no-wrap
19276 msgid ""
19277 " inotify-init maxevents\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: textblock
19282 #: ../fish/guestfish-actions.pod:1588
19283 msgid ""
19284 "C<maxevents> is the maximum number of events which will be queued up between "
19285 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19286 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19287 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19288 "but records the fact that it threw them away by setting a flag "
19289 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19290 msgstr ""
19291
19292 # type: textblock
19293 #: ../fish/guestfish-actions.pod:1598
19294 msgid ""
19295 "Before any events are generated, you have to add some watches to the "
19296 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19297 "L</inotify-watch-all>."
19298 msgstr ""
19299
19300 # type: textblock
19301 #: ../fish/guestfish-actions.pod:1604
19302 msgid ""
19303 "Queued up events should be read periodically by calling L</inotify-read> (or "
19304 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19305 "If you don't read the events out often enough then you risk the internal "
19306 "queue overflowing."
19307 msgstr ""
19308
19309 # type: textblock
19310 #: ../fish/guestfish-actions.pod:1611
19311 msgid ""
19312 "The handle should be closed after use by calling L</inotify-close>.  This "
19313 "also removes any watches automatically."
19314 msgstr ""
19315
19316 # type: =head2
19317 #: ../fish/guestfish-actions.pod:1620
19318 msgid "inotify-read"
19319 msgstr ""
19320
19321 # type: verbatim
19322 #: ../fish/guestfish-actions.pod:1622
19323 #, no-wrap
19324 msgid ""
19325 " inotify-read\n"
19326 "\n"
19327 msgstr ""
19328
19329 # type: =head2
19330 #: ../fish/guestfish-actions.pod:1635
19331 msgid "inotify-rm-watch"
19332 msgstr ""
19333
19334 # type: verbatim
19335 #: ../fish/guestfish-actions.pod:1637
19336 #, no-wrap
19337 msgid ""
19338 " inotify-rm-watch wd\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #: ../fish/guestfish-actions.pod:1639
19344 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:1642
19349 msgid "inspect-get-arch"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:1644
19354 #, no-wrap
19355 msgid ""
19356 " inspect-get-arch root\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: textblock
19361 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19362 #: ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1726
19363 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1762
19364 #: ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1802
19365 #: ../fish/guestfish-actions.pod:1833
19366 msgid ""
19367 "This function should only be called with a root device string as returned by "
19368 "L</inspect-os>."
19369 msgstr ""
19370
19371 # type: textblock
19372 #: ../fish/guestfish-actions.pod:1649
19373 msgid ""
19374 "This returns the architecture of the inspected operating system.  The "
19375 "possible return values are listed under L</file-architecture>."
19376 msgstr ""
19377
19378 # type: =head2
19379 #: ../fish/guestfish-actions.pod:1658
19380 msgid "inspect-get-distro"
19381 msgstr ""
19382
19383 # type: verbatim
19384 #: ../fish/guestfish-actions.pod:1660
19385 #, no-wrap
19386 msgid ""
19387 " inspect-get-distro root\n"
19388 "\n"
19389 msgstr ""
19390
19391 # type: =head2
19392 #: ../fish/guestfish-actions.pod:1704
19393 msgid "inspect-get-filesystems"
19394 msgstr ""
19395
19396 # type: verbatim
19397 #: ../fish/guestfish-actions.pod:1706
19398 #, no-wrap
19399 msgid ""
19400 " inspect-get-filesystems root\n"
19401 "\n"
19402 msgstr ""
19403
19404 # type: textblock
19405 #: ../fish/guestfish-actions.pod:1719
19406 msgid ""
19407 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19408 "get-mountpoints>."
19409 msgstr ""
19410
19411 # type: =head2
19412 #: ../fish/guestfish-actions.pod:1722
19413 msgid "inspect-get-major-version"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #: ../fish/guestfish-actions.pod:1724
19418 #, no-wrap
19419 msgid ""
19420 " inspect-get-major-version root\n"
19421 "\n"
19422 msgstr ""
19423
19424 # type: =head2
19425 #: ../fish/guestfish-actions.pod:1743
19426 msgid "inspect-get-minor-version"
19427 msgstr ""
19428
19429 # type: verbatim
19430 #: ../fish/guestfish-actions.pod:1745
19431 #, no-wrap
19432 msgid ""
19433 " inspect-get-minor-version root\n"
19434 "\n"
19435 msgstr ""
19436
19437 # type: textblock
19438 #: ../fish/guestfish-actions.pod:1755
19439 msgid ""
19440 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19441 "get-major-version>."
19442 msgstr ""
19443
19444 # type: =head2
19445 #: ../fish/guestfish-actions.pod:1758
19446 msgid "inspect-get-mountpoints"
19447 msgstr ""
19448
19449 # type: verbatim
19450 #: ../fish/guestfish-actions.pod:1760
19451 #, no-wrap
19452 msgid ""
19453 " inspect-get-mountpoints root\n"
19454 "\n"
19455 msgstr ""
19456
19457 # type: textblock
19458 #: ../fish/guestfish-actions.pod:1778
19459 msgid ""
19460 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19461 "get-filesystems>."
19462 msgstr ""
19463
19464 # type: =head2
19465 #: ../fish/guestfish-actions.pod:1781
19466 msgid "inspect-get-product-name"
19467 msgstr ""
19468
19469 # type: verbatim
19470 #: ../fish/guestfish-actions.pod:1783
19471 #, no-wrap
19472 msgid ""
19473 " inspect-get-product-name root\n"
19474 "\n"
19475 msgstr ""
19476
19477 # type: =head2
19478 #: ../fish/guestfish-actions.pod:1798
19479 msgid "inspect-get-type"
19480 msgstr ""
19481
19482 # type: verbatim
19483 #: ../fish/guestfish-actions.pod:1800
19484 #, no-wrap
19485 msgid ""
19486 " inspect-get-type root\n"
19487 "\n"
19488 msgstr ""
19489
19490 # type: =head2
19491 #: ../fish/guestfish-actions.pod:1829
19492 msgid "inspect-get-windows-systemroot"
19493 msgstr ""
19494
19495 # type: verbatim
19496 #: ../fish/guestfish-actions.pod:1831
19497 #, no-wrap
19498 msgid ""
19499 " inspect-get-windows-systemroot root\n"
19500 "\n"
19501 msgstr ""
19502
19503 # type: =head2
19504 #: ../fish/guestfish-actions.pod:1845
19505 msgid "inspect-os"
19506 msgstr ""
19507
19508 # type: verbatim
19509 #: ../fish/guestfish-actions.pod:1847
19510 #, no-wrap
19511 msgid ""
19512 " inspect-os\n"
19513 "\n"
19514 msgstr ""
19515
19516 # type: textblock
19517 #: ../fish/guestfish-actions.pod:1862
19518 msgid ""
19519 "You can pass the root string(s) returned to other L</inspect-get-*> "
19520 "functions in order to query further information about each operating system, "
19521 "such as the name and version."
19522 msgstr ""
19523
19524 # type: textblock
19525 #: ../fish/guestfish-actions.pod:1867
19526 msgid ""
19527 "This function uses other libguestfs features such as L</mount-ro> and L</"
19528 "umount-all> in order to mount and unmount filesystems and look at the "
19529 "contents.  This should be called with no disks currently mounted.  The "
19530 "function may also use Augeas, so any existing Augeas handle will be closed."
19531 msgstr ""
19532
19533 # type: textblock
19534 #: ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:2035
19535 #: ../fish/guestfish-actions.pod:2081
19536 msgid "See also L</list-filesystems>."
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:1881
19541 msgid "is-blockdev"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:1883
19546 #, no-wrap
19547 msgid ""
19548 " is-blockdev path\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: textblock
19553 #: ../fish/guestfish-actions.pod:1888 ../fish/guestfish-actions.pod:1906
19554 #: ../fish/guestfish-actions.pod:1925 ../fish/guestfish-actions.pod:1934
19555 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1978
19556 #: ../fish/guestfish-actions.pod:1987
19557 msgid "See also L</stat>."
19558 msgstr ""
19559
19560 # type: =head2
19561 #: ../fish/guestfish-actions.pod:1890
19562 msgid "is-busy"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #: ../fish/guestfish-actions.pod:1892
19567 #, no-wrap
19568 msgid ""
19569 " is-busy\n"
19570 "\n"
19571 msgstr ""
19572
19573 # type: =head2
19574 #: ../fish/guestfish-actions.pod:1899
19575 msgid "is-chardev"
19576 msgstr ""
19577
19578 # type: verbatim
19579 #: ../fish/guestfish-actions.pod:1901
19580 #, no-wrap
19581 msgid ""
19582 " is-chardev path\n"
19583 "\n"
19584 msgstr ""
19585
19586 # type: =head2
19587 #: ../fish/guestfish-actions.pod:1908
19588 msgid "is-config"
19589 msgstr ""
19590
19591 # type: verbatim
19592 #: ../fish/guestfish-actions.pod:1910
19593 #, no-wrap
19594 msgid ""
19595 " is-config\n"
19596 "\n"
19597 msgstr ""
19598
19599 # type: =head2
19600 #: ../fish/guestfish-actions.pod:1917
19601 msgid "is-dir"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #: ../fish/guestfish-actions.pod:1919
19606 #, no-wrap
19607 msgid ""
19608 " is-dir path\n"
19609 "\n"
19610 msgstr ""
19611
19612 # type: =head2
19613 #: ../fish/guestfish-actions.pod:1927
19614 msgid "is-fifo"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #: ../fish/guestfish-actions.pod:1929
19619 #, no-wrap
19620 msgid ""
19621 " is-fifo path\n"
19622 "\n"
19623 msgstr ""
19624
19625 # type: =head2
19626 #: ../fish/guestfish-actions.pod:1936
19627 msgid "is-file"
19628 msgstr ""
19629
19630 # type: verbatim
19631 #: ../fish/guestfish-actions.pod:1938
19632 #, no-wrap
19633 msgid ""
19634 " is-file path\n"
19635 "\n"
19636 msgstr ""
19637
19638 # type: =head2
19639 #: ../fish/guestfish-actions.pod:1946
19640 msgid "is-launching"
19641 msgstr ""
19642
19643 # type: verbatim
19644 #: ../fish/guestfish-actions.pod:1948
19645 #, no-wrap
19646 msgid ""
19647 " is-launching\n"
19648 "\n"
19649 msgstr ""
19650
19651 # type: =head2
19652 #: ../fish/guestfish-actions.pod:1955
19653 msgid "is-lv"
19654 msgstr ""
19655
19656 # type: verbatim
19657 #: ../fish/guestfish-actions.pod:1957
19658 #, no-wrap
19659 msgid ""
19660 " is-lv device\n"
19661 "\n"
19662 msgstr ""
19663
19664 # type: =head2
19665 #: ../fish/guestfish-actions.pod:1962
19666 msgid "is-ready"
19667 msgstr ""
19668
19669 # type: verbatim
19670 #: ../fish/guestfish-actions.pod:1964
19671 #, no-wrap
19672 msgid ""
19673 " is-ready\n"
19674 "\n"
19675 msgstr ""
19676
19677 # type: =head2
19678 #: ../fish/guestfish-actions.pod:1971
19679 msgid "is-socket"
19680 msgstr ""
19681
19682 # type: verbatim
19683 #: ../fish/guestfish-actions.pod:1973
19684 #, no-wrap
19685 msgid ""
19686 " is-socket path\n"
19687 "\n"
19688 msgstr ""
19689
19690 # type: =head2
19691 #: ../fish/guestfish-actions.pod:1980
19692 msgid "is-symlink"
19693 msgstr ""
19694
19695 # type: verbatim
19696 #: ../fish/guestfish-actions.pod:1982
19697 #, no-wrap
19698 msgid ""
19699 " is-symlink path\n"
19700 "\n"
19701 msgstr ""
19702
19703 # type: =head2
19704 #: ../fish/guestfish-actions.pod:1989
19705 msgid "kill-subprocess"
19706 msgstr ""
19707
19708 # type: verbatim
19709 #: ../fish/guestfish-actions.pod:1991
19710 #, no-wrap
19711 msgid ""
19712 " kill-subprocess\n"
19713 "\n"
19714 msgstr ""
19715
19716 # type: =head2
19717 #: ../fish/guestfish-actions.pod:1995
19718 msgid "launch"
19719 msgstr ""
19720
19721 # type: =head2
19722 #: ../fish/guestfish-actions.pod:1997
19723 msgid "run"
19724 msgstr ""
19725
19726 # type: verbatim
19727 #: ../fish/guestfish-actions.pod:1999
19728 #, no-wrap
19729 msgid ""
19730 " launch\n"
19731 "\n"
19732 msgstr ""
19733
19734 # type: =head2
19735 #: ../fish/guestfish-actions.pod:2007
19736 msgid "lchown"
19737 msgstr ""
19738
19739 # type: verbatim
19740 #: ../fish/guestfish-actions.pod:2009
19741 #, no-wrap
19742 msgid ""
19743 " lchown owner group path\n"
19744 "\n"
19745 msgstr ""
19746
19747 # type: textblock
19748 #: ../fish/guestfish-actions.pod:2011
19749 msgid ""
19750 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
19751 "chown> but if C<path> is a symlink then the link itself is changed, not the "
19752 "target."
19753 msgstr ""
19754
19755 # type: =head2
19756 #: ../fish/guestfish-actions.pod:2019
19757 msgid "lgetxattrs"
19758 msgstr ""
19759
19760 # type: verbatim
19761 #: ../fish/guestfish-actions.pod:2021
19762 #, no-wrap
19763 msgid ""
19764 " lgetxattrs path\n"
19765 "\n"
19766 msgstr ""
19767
19768 # type: textblock
19769 #: ../fish/guestfish-actions.pod:2023
19770 msgid ""
19771 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19772 "it returns the extended attributes of the link itself."
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:2027
19777 msgid "list-devices"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:2029
19782 #, no-wrap
19783 msgid ""
19784 " list-devices\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: =head2
19789 #: ../fish/guestfish-actions.pod:2037
19790 msgid "list-filesystems"
19791 msgstr ""
19792
19793 # type: verbatim
19794 #: ../fish/guestfish-actions.pod:2039
19795 #, no-wrap
19796 msgid ""
19797 " list-filesystems\n"
19798 "\n"
19799 msgstr ""
19800
19801 # type: textblock
19802 #: ../fish/guestfish-actions.pod:2058
19803 msgid ""
19804 "This command runs other libguestfs commands, which might include L</mount> "
19805 "and L</umount>, and therefore you should use this soon after launch and only "
19806 "when nothing is mounted."
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:2062
19811 msgid ""
19812 "Not all of the filesystems returned will be mountable.  In particular, swap "
19813 "partitions are returned in the list.  Also this command does not check that "
19814 "each filesystem found is valid and mountable, and some filesystems might be "
19815 "mountable but require special options.  Filesystems may not all belong to a "
19816 "single logical operating system (use L</inspect-os> to look for OSes)."
19817 msgstr ""
19818
19819 # type: =head2
19820 #: ../fish/guestfish-actions.pod:2070
19821 msgid "list-partitions"
19822 msgstr ""
19823
19824 # type: verbatim
19825 #: ../fish/guestfish-actions.pod:2072
19826 #, no-wrap
19827 msgid ""
19828 " list-partitions\n"
19829 "\n"
19830 msgstr ""
19831
19832 # type: textblock
19833 #: ../fish/guestfish-actions.pod:2078
19834 msgid ""
19835 "This does not return logical volumes.  For that you will need to call L</"
19836 "lvs>."
19837 msgstr ""
19838
19839 # type: =head2
19840 #: ../fish/guestfish-actions.pod:2083
19841 msgid "ll"
19842 msgstr ""
19843
19844 # type: verbatim
19845 #: ../fish/guestfish-actions.pod:2085
19846 #, no-wrap
19847 msgid ""
19848 " ll directory\n"
19849 "\n"
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:2093
19854 msgid "ln"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:2095
19859 #, no-wrap
19860 msgid ""
19861 " ln target linkname\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:2099
19867 msgid "ln-f"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:2101
19872 #, no-wrap
19873 msgid ""
19874 " ln-f target linkname\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:2106
19880 msgid "ln-s"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:2108
19885 #, no-wrap
19886 msgid ""
19887 " ln-s target linkname\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: =head2
19892 #: ../fish/guestfish-actions.pod:2112
19893 msgid "ln-sf"
19894 msgstr ""
19895
19896 # type: verbatim
19897 #: ../fish/guestfish-actions.pod:2114
19898 #, no-wrap
19899 msgid ""
19900 " ln-sf target linkname\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: =head2
19905 #: ../fish/guestfish-actions.pod:2119
19906 msgid "lremovexattr"
19907 msgstr ""
19908
19909 # type: verbatim
19910 #: ../fish/guestfish-actions.pod:2121
19911 #, no-wrap
19912 msgid ""
19913 " lremovexattr xattr path\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: textblock
19918 #: ../fish/guestfish-actions.pod:2123
19919 msgid ""
19920 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19921 "it removes an extended attribute of the link itself."
19922 msgstr ""
19923
19924 # type: =head2
19925 #: ../fish/guestfish-actions.pod:2127
19926 msgid "ls"
19927 msgstr ""
19928
19929 # type: verbatim
19930 #: ../fish/guestfish-actions.pod:2129
19931 #, no-wrap
19932 msgid ""
19933 " ls directory\n"
19934 "\n"
19935 msgstr ""
19936
19937 # type: textblock
19938 #: ../fish/guestfish-actions.pod:2135
19939 msgid ""
19940 "This command is mostly useful for interactive sessions.  Programs should "
19941 "probably use L</readdir> instead."
19942 msgstr ""
19943
19944 # type: =head2
19945 #: ../fish/guestfish-actions.pod:2138
19946 msgid "lsetxattr"
19947 msgstr ""
19948
19949 # type: verbatim
19950 #: ../fish/guestfish-actions.pod:2140
19951 #, no-wrap
19952 msgid ""
19953 " lsetxattr xattr val vallen path\n"
19954 "\n"
19955 msgstr ""
19956
19957 # type: textblock
19958 #: ../fish/guestfish-actions.pod:2142
19959 msgid ""
19960 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19961 "sets an extended attribute of the link itself."
19962 msgstr ""
19963
19964 # type: =head2
19965 #: ../fish/guestfish-actions.pod:2146
19966 msgid "lstat"
19967 msgstr ""
19968
19969 # type: verbatim
19970 #: ../fish/guestfish-actions.pod:2148
19971 #, no-wrap
19972 msgid ""
19973 " lstat path\n"
19974 "\n"
19975 msgstr ""
19976
19977 # type: textblock
19978 #: ../fish/guestfish-actions.pod:2152
19979 msgid ""
19980 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19981 "the link is stat-ed, not the file it refers to."
19982 msgstr ""
19983
19984 # type: =head2
19985 #: ../fish/guestfish-actions.pod:2158
19986 msgid "lstatlist"
19987 msgstr ""
19988
19989 # type: verbatim
19990 #: ../fish/guestfish-actions.pod:2160
19991 #, no-wrap
19992 msgid ""
19993 " lstatlist path 'names ...'\n"
19994 "\n"
19995 msgstr ""
19996
19997 # type: textblock
19998 #: ../fish/guestfish-actions.pod:2162
19999 msgid ""
20000 "This call allows you to perform the L</lstat> operation on multiple files, "
20001 "where all files are in the directory C<path>.  C<names> is the list of files "
20002 "from this directory."
20003 msgstr ""
20004
20005 # type: textblock
20006 #: ../fish/guestfish-actions.pod:2171
20007 msgid ""
20008 "This call is intended for programs that want to efficiently list a directory "
20009 "contents without making many round-trips.  See also L</lxattrlist> for a "
20010 "similarly efficient call for getting extended attributes.  Very long "
20011 "directory listings might cause the protocol message size to be exceeded, "
20012 "causing this call to fail.  The caller must split up such requests into "
20013 "smaller groups of names."
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:2179
20018 msgid "luks-add-key"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:2181
20023 #, no-wrap
20024 msgid ""
20025 " luks-add-key device keyslot\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: textblock
20030 #: ../fish/guestfish-actions.pod:2188
20031 msgid ""
20032 "Note that if C<keyslot> already contains a key, then this command will "
20033 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20034 msgstr ""
20035
20036 # type: textblock
20037 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2214
20038 #: ../fish/guestfish-actions.pod:2227 ../fish/guestfish-actions.pod:2241
20039 #: ../fish/guestfish-actions.pod:2264 ../fish/guestfish-actions.pod:2274
20040 msgid ""
20041 "This command has one or more key or passphrase parameters.  Guestfish will "
20042 "prompt for these separately."
20043 msgstr ""
20044
20045 # type: =head2
20046 #: ../fish/guestfish-actions.pod:2195
20047 msgid "luks-close"
20048 msgstr ""
20049
20050 # type: verbatim
20051 #: ../fish/guestfish-actions.pod:2197
20052 #, no-wrap
20053 msgid ""
20054 " luks-close device\n"
20055 "\n"
20056 msgstr ""
20057
20058 # type: textblock
20059 #: ../fish/guestfish-actions.pod:2199
20060 msgid ""
20061 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
20062 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
20063 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
20064 "block device."
20065 msgstr ""
20066
20067 # type: =head2
20068 #: ../fish/guestfish-actions.pod:2205
20069 msgid "luks-format"
20070 msgstr ""
20071
20072 # type: verbatim
20073 #: ../fish/guestfish-actions.pod:2207
20074 #, no-wrap
20075 msgid ""
20076 " luks-format device keyslot\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: =head2
20081 #: ../fish/guestfish-actions.pod:2220
20082 msgid "luks-format-cipher"
20083 msgstr ""
20084
20085 # type: verbatim
20086 #: ../fish/guestfish-actions.pod:2222
20087 #, no-wrap
20088 msgid ""
20089 " luks-format-cipher device keyslot cipher\n"
20090 "\n"
20091 msgstr ""
20092
20093 # type: textblock
20094 #: ../fish/guestfish-actions.pod:2224
20095 msgid ""
20096 "This command is the same as L</luks-format> but it also allows you to set "
20097 "the C<cipher> used."
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:2233
20102 msgid "luks-kill-slot"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:2235
20107 #, no-wrap
20108 msgid ""
20109 " luks-kill-slot device keyslot\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: =head2
20114 #: ../fish/guestfish-actions.pod:2244
20115 msgid "luks-open"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #: ../fish/guestfish-actions.pod:2246
20120 #, no-wrap
20121 msgid ""
20122 " luks-open device mapname\n"
20123 "\n"
20124 msgstr ""
20125
20126 # type: textblock
20127 #: ../fish/guestfish-actions.pod:2260
20128 msgid ""
20129 "If this block device contains LVM volume groups, then calling L</vgscan> "
20130 "followed by L</vg-activate-all> will make them visible."
20131 msgstr ""
20132
20133 # type: =head2
20134 #: ../fish/guestfish-actions.pod:2267
20135 msgid "luks-open-ro"
20136 msgstr ""
20137
20138 # type: verbatim
20139 #: ../fish/guestfish-actions.pod:2269
20140 #, no-wrap
20141 msgid ""
20142 " luks-open-ro device mapname\n"
20143 "\n"
20144 msgstr ""
20145
20146 # type: textblock
20147 #: ../fish/guestfish-actions.pod:2271
20148 msgid ""
20149 "This is the same as L</luks-open> except that a read-only mapping is created."
20150 msgstr ""
20151
20152 # type: =head2
20153 #: ../fish/guestfish-actions.pod:2277
20154 msgid "lvcreate"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #: ../fish/guestfish-actions.pod:2279
20159 #, no-wrap
20160 msgid ""
20161 " lvcreate logvol volgroup mbytes\n"
20162 "\n"
20163 msgstr ""
20164
20165 # type: =head2
20166 #: ../fish/guestfish-actions.pod:2284
20167 msgid "lvm-canonical-lv-name"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #: ../fish/guestfish-actions.pod:2286
20172 #, no-wrap
20173 msgid ""
20174 " lvm-canonical-lv-name lvname\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:2295
20180 msgid "See also L</is-lv>."
20181 msgstr ""
20182
20183 # type: =head2
20184 #: ../fish/guestfish-actions.pod:2297
20185 msgid "lvm-clear-filter"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #: ../fish/guestfish-actions.pod:2299
20190 #, no-wrap
20191 msgid ""
20192 " lvm-clear-filter\n"
20193 "\n"
20194 msgstr ""
20195
20196 # type: textblock
20197 #: ../fish/guestfish-actions.pod:2301
20198 msgid ""
20199 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20200 "block device."
20201 msgstr ""
20202
20203 # type: =head2
20204 #: ../fish/guestfish-actions.pod:2307
20205 msgid "lvm-remove-all"
20206 msgstr ""
20207
20208 # type: verbatim
20209 #: ../fish/guestfish-actions.pod:2309
20210 #, no-wrap
20211 msgid ""
20212 " lvm-remove-all\n"
20213 "\n"
20214 msgstr ""
20215
20216 # type: =head2
20217 #: ../fish/guestfish-actions.pod:2317
20218 msgid "lvm-set-filter"
20219 msgstr ""
20220
20221 # type: verbatim
20222 #: ../fish/guestfish-actions.pod:2319
20223 #, no-wrap
20224 msgid ""
20225 " lvm-set-filter 'devices ...'\n"
20226 "\n"
20227 msgstr ""
20228
20229 # type: =head2
20230 #: ../fish/guestfish-actions.pod:2344
20231 msgid "lvremove"
20232 msgstr ""
20233
20234 # type: verbatim
20235 #: ../fish/guestfish-actions.pod:2346
20236 #, no-wrap
20237 msgid ""
20238 " lvremove device\n"
20239 "\n"
20240 msgstr ""
20241
20242 # type: =head2
20243 #: ../fish/guestfish-actions.pod:2354
20244 msgid "lvrename"
20245 msgstr ""
20246
20247 # type: verbatim
20248 #: ../fish/guestfish-actions.pod:2356
20249 #, no-wrap
20250 msgid ""
20251 " lvrename logvol newlogvol\n"
20252 "\n"
20253 msgstr ""
20254
20255 # type: =head2
20256 #: ../fish/guestfish-actions.pod:2360
20257 msgid "lvresize"
20258 msgstr ""
20259
20260 # type: verbatim
20261 #: ../fish/guestfish-actions.pod:2362
20262 #, no-wrap
20263 msgid ""
20264 " lvresize device mbytes\n"
20265 "\n"
20266 msgstr ""
20267
20268 # type: =head2
20269 #: ../fish/guestfish-actions.pod:2368
20270 msgid "lvresize-free"
20271 msgstr ""
20272
20273 # type: verbatim
20274 #: ../fish/guestfish-actions.pod:2370
20275 #, no-wrap
20276 msgid ""
20277 " lvresize-free lv percent\n"
20278 "\n"
20279 msgstr ""
20280
20281 # type: =head2
20282 #: ../fish/guestfish-actions.pod:2378
20283 msgid "lvs"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #: ../fish/guestfish-actions.pod:2380
20288 #, no-wrap
20289 msgid ""
20290 " lvs\n"
20291 "\n"
20292 msgstr ""
20293
20294 # type: textblock
20295 #: ../fish/guestfish-actions.pod:2388
20296 msgid "See also L</lvs-full>, L</list-filesystems>."
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:2390
20301 msgid "lvs-full"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:2392
20306 #, no-wrap
20307 msgid ""
20308 " lvs-full\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: =head2
20313 #: ../fish/guestfish-actions.pod:2397
20314 msgid "lvuuid"
20315 msgstr ""
20316
20317 # type: verbatim
20318 #: ../fish/guestfish-actions.pod:2399
20319 #, no-wrap
20320 msgid ""
20321 " lvuuid device\n"
20322 "\n"
20323 msgstr ""
20324
20325 # type: =head2
20326 #: ../fish/guestfish-actions.pod:2403
20327 msgid "lxattrlist"
20328 msgstr ""
20329
20330 # type: verbatim
20331 #: ../fish/guestfish-actions.pod:2405
20332 #, no-wrap
20333 msgid ""
20334 " lxattrlist path 'names ...'\n"
20335 "\n"
20336 msgstr ""
20337
20338 # type: textblock
20339 #: ../fish/guestfish-actions.pod:2421
20340 msgid ""
20341 "This call is intended for programs that want to efficiently list a directory "
20342 "contents without making many round-trips.  See also L</lstatlist> for a "
20343 "similarly efficient call for getting standard stats.  Very long directory "
20344 "listings might cause the protocol message size to be exceeded, causing this "
20345 "call to fail.  The caller must split up such requests into smaller groups of "
20346 "names."
20347 msgstr ""
20348
20349 # type: =head2
20350 #: ../fish/guestfish-actions.pod:2429
20351 msgid "mkdir"
20352 msgstr ""
20353
20354 # type: verbatim
20355 #: ../fish/guestfish-actions.pod:2431
20356 #, no-wrap
20357 msgid ""
20358 " mkdir path\n"
20359 "\n"
20360 msgstr ""
20361
20362 # type: =head2
20363 #: ../fish/guestfish-actions.pod:2435
20364 msgid "mkdir-mode"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #: ../fish/guestfish-actions.pod:2437
20369 #, no-wrap
20370 msgid ""
20371 " mkdir-mode path mode\n"
20372 "\n"
20373 msgstr ""
20374
20375 # type: textblock
20376 #: ../fish/guestfish-actions.pod:2446
20377 msgid "See also L</mkdir>, L</umask>"
20378 msgstr ""
20379
20380 # type: =head2
20381 #: ../fish/guestfish-actions.pod:2448
20382 msgid "mkdir-p"
20383 msgstr ""
20384
20385 # type: verbatim
20386 #: ../fish/guestfish-actions.pod:2450
20387 #, no-wrap
20388 msgid ""
20389 " mkdir-p path\n"
20390 "\n"
20391 msgstr ""
20392
20393 # type: =head2
20394 #: ../fish/guestfish-actions.pod:2455
20395 msgid "mkdtemp"
20396 msgstr ""
20397
20398 # type: verbatim
20399 #: ../fish/guestfish-actions.pod:2457
20400 #, no-wrap
20401 msgid ""
20402 " mkdtemp template\n"
20403 "\n"
20404 msgstr ""
20405
20406 # type: =head2
20407 #: ../fish/guestfish-actions.pod:2478
20408 msgid "mke2fs-J"
20409 msgstr ""
20410
20411 # type: verbatim
20412 #: ../fish/guestfish-actions.pod:2480
20413 #, no-wrap
20414 msgid ""
20415 " mke2fs-J fstype blocksize device journal\n"
20416 "\n"
20417 msgstr ""
20418
20419 # type: textblock
20420 #: ../fish/guestfish-actions.pod:2488
20421 msgid "See also L</mke2journal>."
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:2490
20426 msgid "mke2fs-JL"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:2492
20431 #, no-wrap
20432 msgid ""
20433 " mke2fs-JL fstype blocksize device label\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: textblock
20438 #: ../fish/guestfish-actions.pod:2497
20439 msgid "See also L</mke2journal-L>."
20440 msgstr ""
20441
20442 # type: =head2
20443 #: ../fish/guestfish-actions.pod:2499
20444 msgid "mke2fs-JU"
20445 msgstr ""
20446
20447 # type: verbatim
20448 #: ../fish/guestfish-actions.pod:2501
20449 #, no-wrap
20450 msgid ""
20451 " mke2fs-JU fstype blocksize device uuid\n"
20452 "\n"
20453 msgstr ""
20454
20455 # type: textblock
20456 #: ../fish/guestfish-actions.pod:2506
20457 msgid "See also L</mke2journal-U>."
20458 msgstr ""
20459
20460 # type: =head2
20461 #: ../fish/guestfish-actions.pod:2508
20462 msgid "mke2journal"
20463 msgstr ""
20464
20465 # type: verbatim
20466 #: ../fish/guestfish-actions.pod:2510
20467 #, no-wrap
20468 msgid ""
20469 " mke2journal blocksize device\n"
20470 "\n"
20471 msgstr ""
20472
20473 # type: =head2
20474 #: ../fish/guestfish-actions.pod:2517
20475 msgid "mke2journal-L"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #: ../fish/guestfish-actions.pod:2519
20480 #, no-wrap
20481 msgid ""
20482 " mke2journal-L blocksize label device\n"
20483 "\n"
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:2523
20488 msgid "mke2journal-U"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:2525
20493 #, no-wrap
20494 msgid ""
20495 " mke2journal-U blocksize uuid device\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:2529
20501 msgid "mkfifo"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:2531
20506 #, no-wrap
20507 msgid ""
20508 " mkfifo mode path\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:2533
20514 msgid ""
20515 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20516 "is just a convenient wrapper around L</mknod>."
20517 msgstr ""
20518
20519 # type: =head2
20520 #: ../fish/guestfish-actions.pod:2539
20521 msgid "mkfs"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #: ../fish/guestfish-actions.pod:2541
20526 #, no-wrap
20527 msgid ""
20528 " mkfs fstype device\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: =head2
20533 #: ../fish/guestfish-actions.pod:2547
20534 msgid "mkfs-b"
20535 msgstr ""
20536
20537 # type: verbatim
20538 #: ../fish/guestfish-actions.pod:2549
20539 #, no-wrap
20540 msgid ""
20541 " mkfs-b fstype blocksize device\n"
20542 "\n"
20543 msgstr ""
20544
20545 # type: textblock
20546 #: ../fish/guestfish-actions.pod:2551
20547 msgid ""
20548 "This call is similar to L</mkfs>, but it allows you to control the block "
20549 "size of the resulting filesystem.  Supported block sizes depend on the "
20550 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:2559
20555 msgid "mkmountpoint"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:2561
20560 #, no-wrap
20561 msgid ""
20562 " mkmountpoint exemptpath\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: textblock
20567 #: ../fish/guestfish-actions.pod:2563
20568 msgid ""
20569 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20570 "to create extra mountpoints before mounting the first filesystem."
20571 msgstr ""
20572
20573 # type: textblock
20574 #: ../fish/guestfish-actions.pod:2587
20575 msgid ""
20576 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20577 "unexpected errors if you try to mix these calls.  It is safest to manually "
20578 "unmount filesystems and remove mountpoints after use."
20579 msgstr ""
20580
20581 # type: textblock
20582 #: ../fish/guestfish-actions.pod:2591
20583 msgid ""
20584 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20585 "for this to work for manual mountpoints, you must ensure that the innermost "
20586 "mountpoints have the longest pathnames, as in the example code above."
20587 msgstr ""
20588
20589 # type: textblock
20590 #: ../fish/guestfish-actions.pod:2598
20591 msgid ""
20592 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20593 "that L</umount-all> is called when the handle is closed which can also "
20594 "trigger these issues."
20595 msgstr ""
20596
20597 # type: =head2
20598 #: ../fish/guestfish-actions.pod:2602
20599 msgid "mknod"
20600 msgstr ""
20601
20602 # type: verbatim
20603 #: ../fish/guestfish-actions.pod:2604
20604 #, no-wrap
20605 msgid ""
20606 " mknod mode devmajor devminor path\n"
20607 "\n"
20608 msgstr ""
20609
20610 # type: textblock
20611 #: ../fish/guestfish-actions.pod:2614
20612 msgid ""
20613 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20614 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20615 "regular file).  These constants are available in the standard Linux header "
20616 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20617 "wrappers around this command which bitwise OR in the appropriate constant "
20618 "for you."
20619 msgstr ""
20620
20621 # type: =head2
20622 #: ../fish/guestfish-actions.pod:2624
20623 msgid "mknod-b"
20624 msgstr ""
20625
20626 # type: verbatim
20627 #: ../fish/guestfish-actions.pod:2626
20628 #, no-wrap
20629 msgid ""
20630 " mknod-b mode devmajor devminor path\n"
20631 "\n"
20632 msgstr ""
20633
20634 # type: textblock
20635 #: ../fish/guestfish-actions.pod:2628
20636 msgid ""
20637 "This call creates a block device node called C<path> with mode C<mode> and "
20638 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20639 "wrapper around L</mknod>."
20640 msgstr ""
20641
20642 # type: =head2
20643 #: ../fish/guestfish-actions.pod:2634
20644 msgid "mknod-c"
20645 msgstr ""
20646
20647 # type: verbatim
20648 #: ../fish/guestfish-actions.pod:2636
20649 #, no-wrap
20650 msgid ""
20651 " mknod-c mode devmajor devminor path\n"
20652 "\n"
20653 msgstr ""
20654
20655 # type: textblock
20656 #: ../fish/guestfish-actions.pod:2638
20657 msgid ""
20658 "This call creates a char device node called C<path> with mode C<mode> and "
20659 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20660 "wrapper around L</mknod>."
20661 msgstr ""
20662
20663 # type: =head2
20664 #: ../fish/guestfish-actions.pod:2644
20665 msgid "mkswap"
20666 msgstr ""
20667
20668 # type: verbatim
20669 #: ../fish/guestfish-actions.pod:2646
20670 #, no-wrap
20671 msgid ""
20672 " mkswap device\n"
20673 "\n"
20674 msgstr ""
20675
20676 # type: =head2
20677 #: ../fish/guestfish-actions.pod:2650
20678 msgid "mkswap-L"
20679 msgstr ""
20680
20681 # type: verbatim
20682 #: ../fish/guestfish-actions.pod:2652
20683 #, no-wrap
20684 msgid ""
20685 " mkswap-L label device\n"
20686 "\n"
20687 msgstr ""
20688
20689 # type: =head2
20690 #: ../fish/guestfish-actions.pod:2660
20691 msgid "mkswap-U"
20692 msgstr ""
20693
20694 # type: verbatim
20695 #: ../fish/guestfish-actions.pod:2662
20696 #, no-wrap
20697 msgid ""
20698 " mkswap-U uuid device\n"
20699 "\n"
20700 msgstr ""
20701
20702 # type: =head2
20703 #: ../fish/guestfish-actions.pod:2666
20704 msgid "mkswap-file"
20705 msgstr ""
20706
20707 # type: verbatim
20708 #: ../fish/guestfish-actions.pod:2668
20709 #, no-wrap
20710 msgid ""
20711 " mkswap-file path\n"
20712 "\n"
20713 msgstr ""
20714
20715 # type: textblock
20716 #: ../fish/guestfish-actions.pod:2672
20717 msgid ""
20718 "This command just writes a swap file signature to an existing file.  To "
20719 "create the file itself, use something like L</fallocate>."
20720 msgstr ""
20721
20722 # type: =head2
20723 #: ../fish/guestfish-actions.pod:2675
20724 msgid "modprobe"
20725 msgstr ""
20726
20727 # type: verbatim
20728 #: ../fish/guestfish-actions.pod:2677
20729 #, no-wrap
20730 msgid ""
20731 " modprobe modulename\n"
20732 "\n"
20733 msgstr ""
20734
20735 # type: =head2
20736 #: ../fish/guestfish-actions.pod:2684
20737 msgid "mount"
20738 msgstr ""
20739
20740 # type: verbatim
20741 #: ../fish/guestfish-actions.pod:2686
20742 #, no-wrap
20743 msgid ""
20744 " mount device mountpoint\n"
20745 "\n"
20746 msgstr ""
20747
20748 # type: textblock
20749 #: ../fish/guestfish-actions.pod:2702
20750 msgid ""
20751 "B<Important note:> When you use this call, the filesystem options C<sync> "
20752 "and C<noatime> are set implicitly.  This was originally done because we "
20753 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20754 "very large negative performance impact and negligible effect on "
20755 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20756 "code that needs performance, and instead use L</mount-options> (use an empty "
20757 "string for the first parameter if you don't want any options)."
20758 msgstr ""
20759
20760 # type: =head2
20761 #: ../fish/guestfish-actions.pod:2712
20762 msgid "mount-loop"
20763 msgstr ""
20764
20765 # type: verbatim
20766 #: ../fish/guestfish-actions.pod:2714
20767 #, no-wrap
20768 msgid ""
20769 " mount-loop file mountpoint\n"
20770 "\n"
20771 msgstr ""
20772
20773 # type: =head2
20774 #: ../fish/guestfish-actions.pod:2720
20775 msgid "mount-options"
20776 msgstr ""
20777
20778 # type: verbatim
20779 #: ../fish/guestfish-actions.pod:2722
20780 #, no-wrap
20781 msgid ""
20782 " mount-options options device mountpoint\n"
20783 "\n"
20784 msgstr ""
20785
20786 # type: textblock
20787 #: ../fish/guestfish-actions.pod:2724
20788 msgid ""
20789 "This is the same as the L</mount> command, but it allows you to set the "
20790 "mount options as for the L<mount(8)> I<-o> flag."
20791 msgstr ""
20792
20793 # type: =head2
20794 #: ../fish/guestfish-actions.pod:2732
20795 msgid "mount-ro"
20796 msgstr ""
20797
20798 # type: verbatim
20799 #: ../fish/guestfish-actions.pod:2734
20800 #, no-wrap
20801 msgid ""
20802 " mount-ro device mountpoint\n"
20803 "\n"
20804 msgstr ""
20805
20806 # type: textblock
20807 #: ../fish/guestfish-actions.pod:2736
20808 msgid ""
20809 "This is the same as the L</mount> command, but it mounts the filesystem with "
20810 "the read-only (I<-o ro>) flag."
20811 msgstr ""
20812
20813 # type: =head2
20814 #: ../fish/guestfish-actions.pod:2739
20815 msgid "mount-vfs"
20816 msgstr ""
20817
20818 # type: verbatim
20819 #: ../fish/guestfish-actions.pod:2741
20820 #, no-wrap
20821 msgid ""
20822 " mount-vfs options vfstype device mountpoint\n"
20823 "\n"
20824 msgstr ""
20825
20826 # type: textblock
20827 #: ../fish/guestfish-actions.pod:2743
20828 msgid ""
20829 "This is the same as the L</mount> command, but it allows you to set both the "
20830 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20831 msgstr ""
20832
20833 # type: =head2
20834 #: ../fish/guestfish-actions.pod:2747
20835 msgid "mountpoints"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #: ../fish/guestfish-actions.pod:2749
20840 #, no-wrap
20841 msgid ""
20842 " mountpoints\n"
20843 "\n"
20844 msgstr ""
20845
20846 # type: textblock
20847 #: ../fish/guestfish-actions.pod:2751
20848 msgid ""
20849 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20850 "This one returns a hash table (map) of device name to directory where the "
20851 "device is mounted."
20852 msgstr ""
20853
20854 # type: =head2
20855 #: ../fish/guestfish-actions.pod:2755
20856 msgid "mounts"
20857 msgstr ""
20858
20859 # type: verbatim
20860 #: ../fish/guestfish-actions.pod:2757
20861 #, no-wrap
20862 msgid ""
20863 " mounts\n"
20864 "\n"
20865 msgstr ""
20866
20867 # type: textblock
20868 #: ../fish/guestfish-actions.pod:2764
20869 msgid "See also: L</mountpoints>"
20870 msgstr ""
20871
20872 # type: =head2
20873 #: ../fish/guestfish-actions.pod:2766
20874 msgid "mv"
20875 msgstr ""
20876
20877 # type: verbatim
20878 #: ../fish/guestfish-actions.pod:2768
20879 #, no-wrap
20880 msgid ""
20881 " mv src dest\n"
20882 "\n"
20883 msgstr ""
20884
20885 # type: =head2
20886 #: ../fish/guestfish-actions.pod:2773
20887 msgid "ntfs-3g-probe"
20888 msgstr ""
20889
20890 # type: verbatim
20891 #: ../fish/guestfish-actions.pod:2775
20892 #, no-wrap
20893 msgid ""
20894 " ntfs-3g-probe true|false device\n"
20895 "\n"
20896 msgstr ""
20897
20898 # type: =head2
20899 #: ../fish/guestfish-actions.pod:2789
20900 msgid "ntfsresize"
20901 msgstr ""
20902
20903 # type: verbatim
20904 #: ../fish/guestfish-actions.pod:2791
20905 #, no-wrap
20906 msgid ""
20907 " ntfsresize device\n"
20908 "\n"
20909 msgstr ""
20910
20911 # type: =head2
20912 #: ../fish/guestfish-actions.pod:2797
20913 msgid "ntfsresize-size"
20914 msgstr ""
20915
20916 # type: verbatim
20917 #: ../fish/guestfish-actions.pod:2799
20918 #, no-wrap
20919 msgid ""
20920 " ntfsresize-size device size\n"
20921 "\n"
20922 msgstr ""
20923
20924 # type: textblock
20925 #: ../fish/guestfish-actions.pod:2801
20926 msgid ""
20927 "This command is the same as L</ntfsresize> except that it allows you to "
20928 "specify the new size (in bytes) explicitly."
20929 msgstr ""
20930
20931 # type: =head2
20932 #: ../fish/guestfish-actions.pod:2804
20933 msgid "part-add"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #: ../fish/guestfish-actions.pod:2806
20938 #, no-wrap
20939 msgid ""
20940 " part-add device prlogex startsect endsect\n"
20941 "\n"
20942 msgstr ""
20943
20944 # type: textblock
20945 #: ../fish/guestfish-actions.pod:2808
20946 msgid ""
20947 "This command adds a partition to C<device>.  If there is no partition table "
20948 "on the device, call L</part-init> first."
20949 msgstr ""
20950
20951 # type: textblock
20952 #: ../fish/guestfish-actions.pod:2820
20953 msgid ""
20954 "Creating a partition which covers the whole disk is not so easy.  Use L</"
20955 "part-disk> to do that."
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:2823
20960 msgid "part-del"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:2825
20965 #, no-wrap
20966 msgid ""
20967 " part-del device partnum\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:2833
20973 msgid "part-disk"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:2835
20978 #, no-wrap
20979 msgid ""
20980 " part-disk device parttype\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: textblock
20985 #: ../fish/guestfish-actions.pod:2837
20986 msgid ""
20987 "This command is simply a combination of L</part-init> followed by L</part-"
20988 "add> to create a single primary partition covering the whole disk."
20989 msgstr ""
20990
20991 # type: textblock
20992 #: ../fish/guestfish-actions.pod:2841
20993 msgid ""
20994 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20995 "possible values are described in L</part-init>."
20996 msgstr ""
20997
20998 # type: =head2
20999 #: ../fish/guestfish-actions.pod:2847
21000 msgid "part-get-bootable"
21001 msgstr ""
21002
21003 # type: verbatim
21004 #: ../fish/guestfish-actions.pod:2849
21005 #, no-wrap
21006 msgid ""
21007 " part-get-bootable device partnum\n"
21008 "\n"
21009 msgstr ""
21010
21011 # type: textblock
21012 #: ../fish/guestfish-actions.pod:2854
21013 msgid "See also L</part-set-bootable>."
21014 msgstr ""
21015
21016 # type: =head2
21017 #: ../fish/guestfish-actions.pod:2856
21018 msgid "part-get-mbr-id"
21019 msgstr ""
21020
21021 # type: verbatim
21022 #: ../fish/guestfish-actions.pod:2858
21023 #, no-wrap
21024 msgid ""
21025 " part-get-mbr-id device partnum\n"
21026 "\n"
21027 msgstr ""
21028
21029 # type: textblock
21030 #: ../fish/guestfish-actions.pod:2863 ../fish/guestfish-actions.pod:3001
21031 msgid ""
21032 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21033 "undefined results for other partition table types (see L</part-get-"
21034 "parttype>)."
21035 msgstr ""
21036
21037 # type: =head2
21038 #: ../fish/guestfish-actions.pod:2867
21039 msgid "part-get-parttype"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #: ../fish/guestfish-actions.pod:2869
21044 #, no-wrap
21045 msgid ""
21046 " part-get-parttype device\n"
21047 "\n"
21048 msgstr ""
21049
21050 # type: textblock
21051 #: ../fish/guestfish-actions.pod:2874
21052 msgid ""
21053 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21054 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21055 "possible, although unusual.  See L</part-init> for a full list."
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:2879
21060 msgid "part-init"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:2881
21065 #, no-wrap
21066 msgid ""
21067 " part-init device parttype\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:2887
21073 msgid ""
21074 "Initially there are no partitions.  Following this, you should call L</part-"
21075 "add> for each partition required."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:2950
21080 msgid "part-list"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:2952
21085 #, no-wrap
21086 msgid ""
21087 " part-list device\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: textblock
21092 #: ../fish/guestfish-actions.pod:2967
21093 msgid ""
21094 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21095 "the device's sector size, see L</blockdev-getss>."
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:2980
21100 msgid "part-set-bootable"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:2982
21105 #, no-wrap
21106 msgid ""
21107 " part-set-bootable device partnum true|false\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: =head2
21112 #: ../fish/guestfish-actions.pod:2991
21113 msgid "part-set-mbr-id"
21114 msgstr ""
21115
21116 # type: verbatim
21117 #: ../fish/guestfish-actions.pod:2993
21118 #, no-wrap
21119 msgid ""
21120 " part-set-mbr-id device partnum idbyte\n"
21121 "\n"
21122 msgstr ""
21123
21124 # type: =head2
21125 #: ../fish/guestfish-actions.pod:3005
21126 msgid "part-set-name"
21127 msgstr ""
21128
21129 # type: verbatim
21130 #: ../fish/guestfish-actions.pod:3007
21131 #, no-wrap
21132 msgid ""
21133 " part-set-name device partnum name\n"
21134 "\n"
21135 msgstr ""
21136
21137 # type: =head2
21138 #: ../fish/guestfish-actions.pod:3015
21139 msgid "part-to-dev"
21140 msgstr ""
21141
21142 # type: verbatim
21143 #: ../fish/guestfish-actions.pod:3017
21144 #, no-wrap
21145 msgid ""
21146 " part-to-dev partition\n"
21147 "\n"
21148 msgstr ""
21149
21150 # type: textblock
21151 #: ../fish/guestfish-actions.pod:3023
21152 msgid ""
21153 "The named partition must exist, for example as a string returned from L</"
21154 "list-partitions>."
21155 msgstr ""
21156
21157 # type: =head2
21158 #: ../fish/guestfish-actions.pod:3026
21159 msgid "ping-daemon"
21160 msgstr ""
21161
21162 # type: verbatim
21163 #: ../fish/guestfish-actions.pod:3028
21164 #, no-wrap
21165 msgid ""
21166 " ping-daemon\n"
21167 "\n"
21168 msgstr ""
21169
21170 # type: =head2
21171 #: ../fish/guestfish-actions.pod:3035
21172 msgid "pread"
21173 msgstr ""
21174
21175 # type: verbatim
21176 #: ../fish/guestfish-actions.pod:3037
21177 #, no-wrap
21178 msgid ""
21179 " pread path count offset\n"
21180 "\n"
21181 msgstr ""
21182
21183 # type: textblock
21184 #: ../fish/guestfish-actions.pod:3045
21185 msgid "See also L</pwrite>, L</pread-device>."
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:3050
21190 msgid "pread-device"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:3052
21195 #, no-wrap
21196 msgid ""
21197 " pread-device device count offset\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: textblock
21202 #: ../fish/guestfish-actions.pod:3060
21203 msgid "See also L</pread>."
21204 msgstr ""
21205
21206 # type: =head2
21207 #: ../fish/guestfish-actions.pod:3065
21208 msgid "pvcreate"
21209 msgstr ""
21210
21211 # type: verbatim
21212 #: ../fish/guestfish-actions.pod:3067
21213 #, no-wrap
21214 msgid ""
21215 " pvcreate device\n"
21216 "\n"
21217 msgstr ""
21218
21219 # type: =head2
21220 #: ../fish/guestfish-actions.pod:3073
21221 msgid "pvremove"
21222 msgstr ""
21223
21224 # type: verbatim
21225 #: ../fish/guestfish-actions.pod:3075
21226 #, no-wrap
21227 msgid ""
21228 " pvremove device\n"
21229 "\n"
21230 msgstr ""
21231
21232 # type: =head2
21233 #: ../fish/guestfish-actions.pod:3084
21234 msgid "pvresize"
21235 msgstr ""
21236
21237 # type: verbatim
21238 #: ../fish/guestfish-actions.pod:3086
21239 #, no-wrap
21240 msgid ""
21241 " pvresize device\n"
21242 "\n"
21243 msgstr ""
21244
21245 # type: =head2
21246 #: ../fish/guestfish-actions.pod:3091
21247 msgid "pvresize-size"
21248 msgstr ""
21249
21250 # type: verbatim
21251 #: ../fish/guestfish-actions.pod:3093
21252 #, no-wrap
21253 msgid ""
21254 " pvresize-size device size\n"
21255 "\n"
21256 msgstr ""
21257
21258 # type: textblock
21259 #: ../fish/guestfish-actions.pod:3095
21260 msgid ""
21261 "This command is the same as L</pvresize> except that it allows you to "
21262 "specify the new size (in bytes) explicitly."
21263 msgstr ""
21264
21265 # type: =head2
21266 #: ../fish/guestfish-actions.pod:3098
21267 msgid "pvs"
21268 msgstr ""
21269
21270 # type: verbatim
21271 #: ../fish/guestfish-actions.pod:3100
21272 #, no-wrap
21273 msgid ""
21274 " pvs\n"
21275 "\n"
21276 msgstr ""
21277
21278 # type: textblock
21279 #: ../fish/guestfish-actions.pod:3108
21280 msgid "See also L</pvs-full>."
21281 msgstr ""
21282
21283 # type: =head2
21284 #: ../fish/guestfish-actions.pod:3110
21285 msgid "pvs-full"
21286 msgstr ""
21287
21288 # type: verbatim
21289 #: ../fish/guestfish-actions.pod:3112
21290 #, no-wrap
21291 msgid ""
21292 " pvs-full\n"
21293 "\n"
21294 msgstr ""
21295
21296 # type: =head2
21297 #: ../fish/guestfish-actions.pod:3117
21298 msgid "pvuuid"
21299 msgstr ""
21300
21301 # type: verbatim
21302 #: ../fish/guestfish-actions.pod:3119
21303 #, no-wrap
21304 msgid ""
21305 " pvuuid device\n"
21306 "\n"
21307 msgstr ""
21308
21309 # type: =head2
21310 #: ../fish/guestfish-actions.pod:3123
21311 msgid "pwrite"
21312 msgstr ""
21313
21314 # type: verbatim
21315 #: ../fish/guestfish-actions.pod:3125
21316 #, no-wrap
21317 msgid ""
21318 " pwrite path content offset\n"
21319 "\n"
21320 msgstr ""
21321
21322 # type: textblock
21323 #: ../fish/guestfish-actions.pod:3136
21324 msgid "See also L</pread>, L</pwrite-device>."
21325 msgstr ""
21326
21327 # type: =head2
21328 #: ../fish/guestfish-actions.pod:3141
21329 msgid "pwrite-device"
21330 msgstr ""
21331
21332 # type: verbatim
21333 #: ../fish/guestfish-actions.pod:3143
21334 #, no-wrap
21335 msgid ""
21336 " pwrite-device device content offset\n"
21337 "\n"
21338 msgstr ""
21339
21340 # type: textblock
21341 #: ../fish/guestfish-actions.pod:3153
21342 msgid "See also L</pwrite>."
21343 msgstr ""
21344
21345 # type: =head2
21346 #: ../fish/guestfish-actions.pod:3158
21347 msgid "read-file"
21348 msgstr ""
21349
21350 # type: verbatim
21351 #: ../fish/guestfish-actions.pod:3160
21352 #, no-wrap
21353 msgid ""
21354 " read-file path\n"
21355 "\n"
21356 msgstr ""
21357
21358 # type: textblock
21359 #: ../fish/guestfish-actions.pod:3165
21360 msgid ""
21361 "Unlike L</cat>, this function can correctly handle files that contain "
21362 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21363 "is limited in the total size of file that can be handled."
21364 msgstr ""
21365
21366 # type: =head2
21367 #: ../fish/guestfish-actions.pod:3173
21368 msgid "read-lines"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #: ../fish/guestfish-actions.pod:3175
21373 #, no-wrap
21374 msgid ""
21375 " read-lines path\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: textblock
21380 #: ../fish/guestfish-actions.pod:3182
21381 msgid ""
21382 "Note that this function cannot correctly handle binary files (specifically, "
21383 "files containing C<\\0> character which is treated as end of line).  For "
21384 "those you need to use the L</read-file> function which has a more complex "
21385 "interface."
21386 msgstr ""
21387
21388 # type: =head2
21389 #: ../fish/guestfish-actions.pod:3187
21390 msgid "readdir"
21391 msgstr ""
21392
21393 # type: verbatim
21394 #: ../fish/guestfish-actions.pod:3189
21395 #, no-wrap
21396 msgid ""
21397 " readdir dir\n"
21398 "\n"
21399 msgstr ""
21400
21401 # type: textblock
21402 #: ../fish/guestfish-actions.pod:3241
21403 msgid ""
21404 "This function is primarily intended for use by programs.  To get a simple "
21405 "list of names, use L</ls>.  To get a printable directory for human "
21406 "consumption, use L</ll>."
21407 msgstr ""
21408
21409 # type: =head2
21410 #: ../fish/guestfish-actions.pod:3245
21411 msgid "readlink"
21412 msgstr ""
21413
21414 # type: verbatim
21415 #: ../fish/guestfish-actions.pod:3247
21416 #, no-wrap
21417 msgid ""
21418 " readlink path\n"
21419 "\n"
21420 msgstr ""
21421
21422 # type: =head2
21423 #: ../fish/guestfish-actions.pod:3251
21424 msgid "readlinklist"
21425 msgstr ""
21426
21427 # type: verbatim
21428 #: ../fish/guestfish-actions.pod:3253
21429 #, no-wrap
21430 msgid ""
21431 " readlinklist path 'names ...'\n"
21432 "\n"
21433 msgstr ""
21434
21435 # type: =head2
21436 #: ../fish/guestfish-actions.pod:3277
21437 msgid "realpath"
21438 msgstr ""
21439
21440 # type: verbatim
21441 #: ../fish/guestfish-actions.pod:3279
21442 #, no-wrap
21443 msgid ""
21444 " realpath path\n"
21445 "\n"
21446 msgstr ""
21447
21448 # type: =head2
21449 #: ../fish/guestfish-actions.pod:3284
21450 msgid "removexattr"
21451 msgstr ""
21452
21453 # type: verbatim
21454 #: ../fish/guestfish-actions.pod:3286
21455 #, no-wrap
21456 msgid ""
21457 " removexattr xattr path\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: textblock
21462 #: ../fish/guestfish-actions.pod:3291
21463 msgid "See also: L</lremovexattr>, L<attr(5)>."
21464 msgstr ""
21465
21466 # type: =head2
21467 #: ../fish/guestfish-actions.pod:3293
21468 msgid "resize2fs"
21469 msgstr ""
21470
21471 # type: verbatim
21472 #: ../fish/guestfish-actions.pod:3295
21473 #, no-wrap
21474 msgid ""
21475 " resize2fs device\n"
21476 "\n"
21477 msgstr ""
21478
21479 # type: textblock
21480 #: ../fish/guestfish-actions.pod:3300
21481 msgid ""
21482 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21483 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21484 "gives an error about this and sometimes not.  In any case, it is always safe "
21485 "to call L</e2fsck-f> before calling this function."
21486 msgstr ""
21487
21488 # type: =head2
21489 #: ../fish/guestfish-actions.pod:3306
21490 msgid "resize2fs-size"
21491 msgstr ""
21492
21493 # type: verbatim
21494 #: ../fish/guestfish-actions.pod:3308
21495 #, no-wrap
21496 msgid ""
21497 " resize2fs-size device size\n"
21498 "\n"
21499 msgstr ""
21500
21501 # type: textblock
21502 #: ../fish/guestfish-actions.pod:3310
21503 msgid ""
21504 "This command is the same as L</resize2fs> except that it allows you to "
21505 "specify the new size (in bytes) explicitly."
21506 msgstr ""
21507
21508 # type: =head2
21509 #: ../fish/guestfish-actions.pod:3313
21510 msgid "rm"
21511 msgstr ""
21512
21513 # type: verbatim
21514 #: ../fish/guestfish-actions.pod:3315
21515 #, no-wrap
21516 msgid ""
21517 " rm path\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: =head2
21522 #: ../fish/guestfish-actions.pod:3319
21523 msgid "rm-rf"
21524 msgstr ""
21525
21526 # type: verbatim
21527 #: ../fish/guestfish-actions.pod:3321
21528 #, no-wrap
21529 msgid ""
21530 " rm-rf path\n"
21531 "\n"
21532 msgstr ""
21533
21534 # type: =head2
21535 #: ../fish/guestfish-actions.pod:3327
21536 msgid "rmdir"
21537 msgstr ""
21538
21539 # type: verbatim
21540 #: ../fish/guestfish-actions.pod:3329
21541 #, no-wrap
21542 msgid ""
21543 " rmdir path\n"
21544 "\n"
21545 msgstr ""
21546
21547 # type: =head2
21548 #: ../fish/guestfish-actions.pod:3333
21549 msgid "rmmountpoint"
21550 msgstr ""
21551
21552 # type: verbatim
21553 #: ../fish/guestfish-actions.pod:3335
21554 #, no-wrap
21555 msgid ""
21556 " rmmountpoint exemptpath\n"
21557 "\n"
21558 msgstr ""
21559
21560 # type: textblock
21561 #: ../fish/guestfish-actions.pod:3337
21562 msgid ""
21563 "This calls removes a mountpoint that was previously created with L</"
21564 "mkmountpoint>.  See L</mkmountpoint> for full details."
21565 msgstr ""
21566
21567 # type: =head2
21568 #: ../fish/guestfish-actions.pod:3341
21569 msgid "scrub-device"
21570 msgstr ""
21571
21572 # type: verbatim
21573 #: ../fish/guestfish-actions.pod:3343
21574 #, no-wrap
21575 msgid ""
21576 " scrub-device device\n"
21577 "\n"
21578 msgstr ""
21579
21580 # type: =head2
21581 #: ../fish/guestfish-actions.pod:3354
21582 msgid "scrub-file"
21583 msgstr ""
21584
21585 # type: verbatim
21586 #: ../fish/guestfish-actions.pod:3356
21587 #, no-wrap
21588 msgid ""
21589 " scrub-file file\n"
21590 "\n"
21591 msgstr ""
21592
21593 # type: =head2
21594 #: ../fish/guestfish-actions.pod:3366
21595 msgid "scrub-freespace"
21596 msgstr ""
21597
21598 # type: verbatim
21599 #: ../fish/guestfish-actions.pod:3368
21600 #, no-wrap
21601 msgid ""
21602 " scrub-freespace dir\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: textblock
21607 #: ../fish/guestfish-actions.pod:3370
21608 msgid ""
21609 "This command creates the directory C<dir> and then fills it with files until "
21610 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21611 "deletes them.  The intention is to scrub any free space on the partition "
21612 "containing C<dir>."
21613 msgstr ""
21614
21615 # type: =head2
21616 #: ../fish/guestfish-actions.pod:3379
21617 msgid "set-append"
21618 msgstr ""
21619
21620 # type: =head2
21621 #: ../fish/guestfish-actions.pod:3381
21622 msgid "append"
21623 msgstr ""
21624
21625 # type: verbatim
21626 #: ../fish/guestfish-actions.pod:3383
21627 #, no-wrap
21628 msgid ""
21629 " set-append append\n"
21630 "\n"
21631 msgstr ""
21632
21633 # type: =head2
21634 #: ../fish/guestfish-actions.pod:3394
21635 msgid "set-autosync"
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:3396
21640 msgid "autosync"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:3398
21645 #, no-wrap
21646 msgid ""
21647 " set-autosync true|false\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:3400
21653 msgid ""
21654 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21655 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21656 "closed (also if the program exits without closing handles)."
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:3408
21661 msgid "set-direct"
21662 msgstr ""
21663
21664 # type: =head2
21665 #: ../fish/guestfish-actions.pod:3410
21666 msgid "direct"
21667 msgstr ""
21668
21669 # type: verbatim
21670 #: ../fish/guestfish-actions.pod:3412
21671 #, no-wrap
21672 msgid ""
21673 " set-direct true|false\n"
21674 "\n"
21675 msgstr ""
21676
21677 # type: textblock
21678 #: ../fish/guestfish-actions.pod:3418
21679 msgid ""
21680 "One consequence of this is that log messages aren't caught by the library "
21681 "and handled by L</set-log-message-callback>, but go straight to stdout."
21682 msgstr ""
21683
21684 # type: =head2
21685 #: ../fish/guestfish-actions.pod:3427
21686 msgid "set-e2label"
21687 msgstr ""
21688
21689 # type: verbatim
21690 #: ../fish/guestfish-actions.pod:3429
21691 #, no-wrap
21692 msgid ""
21693 " set-e2label device label\n"
21694 "\n"
21695 msgstr ""
21696
21697 # type: textblock
21698 #: ../fish/guestfish-actions.pod:3435
21699 msgid ""
21700 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21701 "label on a filesystem."
21702 msgstr ""
21703
21704 # type: =head2
21705 #: ../fish/guestfish-actions.pod:3438
21706 msgid "set-e2uuid"
21707 msgstr ""
21708
21709 # type: verbatim
21710 #: ../fish/guestfish-actions.pod:3440
21711 #, no-wrap
21712 msgid ""
21713 " set-e2uuid device uuid\n"
21714 "\n"
21715 msgstr ""
21716
21717 # type: textblock
21718 #: ../fish/guestfish-actions.pod:3447
21719 msgid ""
21720 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21721 "UUID of a filesystem."
21722 msgstr ""
21723
21724 # type: =head2
21725 #: ../fish/guestfish-actions.pod:3450
21726 msgid "set-memsize"
21727 msgstr ""
21728
21729 # type: =head2
21730 #: ../fish/guestfish-actions.pod:3452
21731 msgid "memsize"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #: ../fish/guestfish-actions.pod:3454
21736 #, no-wrap
21737 msgid ""
21738 " set-memsize memsize\n"
21739 "\n"
21740 msgstr ""
21741
21742 # type: textblock
21743 #: ../fish/guestfish-actions.pod:3456
21744 msgid ""
21745 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21746 "This only has any effect if called before L</launch>."
21747 msgstr ""
21748
21749 # type: =head2
21750 #: ../fish/guestfish-actions.pod:3467
21751 msgid "set-network"
21752 msgstr ""
21753
21754 # type: =head2
21755 #: ../fish/guestfish-actions.pod:3469
21756 msgid "network"
21757 msgstr ""
21758
21759 # type: verbatim
21760 #: ../fish/guestfish-actions.pod:3471
21761 #, no-wrap
21762 msgid ""
21763 " set-network true|false\n"
21764 "\n"
21765 msgstr ""
21766
21767 # type: textblock
21768 #: ../fish/guestfish-actions.pod:3479
21769 msgid ""
21770 "You must call this before calling L</launch>, otherwise it has no effect."
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-actions.pod:3482
21775 msgid "set-path"
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-actions.pod:3484
21780 msgid "path"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-actions.pod:3486
21785 #, no-wrap
21786 msgid ""
21787 " set-path searchpath\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: =head2
21792 #: ../fish/guestfish-actions.pod:3495
21793 msgid "set-qemu"
21794 msgstr ""
21795
21796 # type: =head2
21797 #: ../fish/guestfish-actions.pod:3497
21798 msgid "qemu"
21799 msgstr ""
21800
21801 # type: verbatim
21802 #: ../fish/guestfish-actions.pod:3499
21803 #, no-wrap
21804 msgid ""
21805 " set-qemu qemu\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head2
21810 #: ../fish/guestfish-actions.pod:3519
21811 msgid "set-recovery-proc"
21812 msgstr ""
21813
21814 # type: =head2
21815 #: ../fish/guestfish-actions.pod:3521
21816 msgid "recovery-proc"
21817 msgstr ""
21818
21819 # type: verbatim
21820 #: ../fish/guestfish-actions.pod:3523
21821 #, no-wrap
21822 msgid ""
21823 " set-recovery-proc true|false\n"
21824 "\n"
21825 msgstr ""
21826
21827 # type: textblock
21828 #: ../fish/guestfish-actions.pod:3525
21829 msgid ""
21830 "If this is called with the parameter C<false> then L</launch> does not "
21831 "create a recovery process.  The purpose of the recovery process is to stop "
21832 "runaway qemu processes in the case where the main program aborts abruptly."
21833 msgstr ""
21834
21835 # type: textblock
21836 #: ../fish/guestfish-actions.pod:3530
21837 msgid ""
21838 "This only has any effect if called before L</launch>, and the default is "
21839 "true."
21840 msgstr ""
21841
21842 # type: =head2
21843 #: ../fish/guestfish-actions.pod:3539
21844 msgid "set-selinux"
21845 msgstr ""
21846
21847 # type: =head2
21848 #: ../fish/guestfish-actions.pod:3541
21849 msgid "selinux"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #: ../fish/guestfish-actions.pod:3543
21854 #, no-wrap
21855 msgid ""
21856 " set-selinux true|false\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: =head2
21861 #: ../fish/guestfish-actions.pod:3554
21862 msgid "set-trace"
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:3556
21867 msgid "trace"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:3558
21872 #, no-wrap
21873 msgid ""
21874 " set-trace true|false\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: =head2
21879 #: ../fish/guestfish-actions.pod:3574
21880 msgid "set-verbose"
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:3576
21885 msgid "verbose"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:3578
21890 #, no-wrap
21891 msgid ""
21892 " set-verbose true|false\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: =head2
21897 #: ../fish/guestfish-actions.pod:3585
21898 msgid "setcon"
21899 msgstr ""
21900
21901 # type: verbatim
21902 #: ../fish/guestfish-actions.pod:3587
21903 #, no-wrap
21904 msgid ""
21905 " setcon context\n"
21906 "\n"
21907 msgstr ""
21908
21909 # type: =head2
21910 #: ../fish/guestfish-actions.pod:3594
21911 msgid "setxattr"
21912 msgstr ""
21913
21914 # type: verbatim
21915 #: ../fish/guestfish-actions.pod:3596
21916 #, no-wrap
21917 msgid ""
21918 " setxattr xattr val vallen path\n"
21919 "\n"
21920 msgstr ""
21921
21922 # type: textblock
21923 #: ../fish/guestfish-actions.pod:3602
21924 msgid "See also: L</lsetxattr>, L<attr(5)>."
21925 msgstr ""
21926
21927 # type: =head2
21928 #: ../fish/guestfish-actions.pod:3604
21929 msgid "sfdisk"
21930 msgstr ""
21931
21932 # type: verbatim
21933 #: ../fish/guestfish-actions.pod:3606
21934 #, no-wrap
21935 msgid ""
21936 " sfdisk device cyls heads sectors 'lines ...'\n"
21937 "\n"
21938 msgstr ""
21939
21940 # type: textblock
21941 #: ../fish/guestfish-actions.pod:3628
21942 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21943 msgstr ""
21944
21945 # type: =head2
21946 #: ../fish/guestfish-actions.pod:3634
21947 msgid "sfdiskM"
21948 msgstr ""
21949
21950 # type: verbatim
21951 #: ../fish/guestfish-actions.pod:3636
21952 #, no-wrap
21953 msgid ""
21954 " sfdiskM device 'lines ...'\n"
21955 "\n"
21956 msgstr ""
21957
21958 # type: textblock
21959 #: ../fish/guestfish-actions.pod:3638
21960 msgid ""
21961 "This is a simplified interface to the L</sfdisk> command, where partition "
21962 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21963 "you don't need to specify the cyls, heads and sectors parameters which were "
21964 "rarely if ever used anyway."
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../fish/guestfish-actions.pod:3644
21969 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21970 msgstr ""
21971
21972 # type: =head2
21973 #: ../fish/guestfish-actions.pod:3650
21974 msgid "sfdisk-N"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #: ../fish/guestfish-actions.pod:3652
21979 #, no-wrap
21980 msgid ""
21981 " sfdisk-N device partnum cyls heads sectors line\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: textblock
21986 #: ../fish/guestfish-actions.pod:3657
21987 msgid ""
21988 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21989 "cyls/heads/sectors parameters."
21990 msgstr ""
21991
21992 # type: textblock
21993 #: ../fish/guestfish-actions.pod:3660
21994 msgid "See also: L</part-add>"
21995 msgstr ""
21996
21997 # type: =head2
21998 #: ../fish/guestfish-actions.pod:3665
21999 msgid "sfdisk-disk-geometry"
22000 msgstr ""
22001
22002 # type: verbatim
22003 #: ../fish/guestfish-actions.pod:3667
22004 #, no-wrap
22005 msgid ""
22006 " sfdisk-disk-geometry device\n"
22007 "\n"
22008 msgstr ""
22009
22010 # type: textblock
22011 #: ../fish/guestfish-actions.pod:3669
22012 msgid ""
22013 "This displays the disk geometry of C<device> read from the partition table.  "
22014 "Especially in the case where the underlying block device has been resized, "
22015 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22016 "kernel-geometry>)."
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:3677
22021 msgid "sfdisk-kernel-geometry"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:3679
22026 #, no-wrap
22027 msgid ""
22028 " sfdisk-kernel-geometry device\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:3686
22034 msgid "sfdisk-l"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:3688
22039 #, no-wrap
22040 msgid ""
22041 " sfdisk-l device\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: textblock
22046 #: ../fish/guestfish-actions.pod:3694
22047 msgid "See also: L</part-list>"
22048 msgstr ""
22049
22050 # type: =head2
22051 #: ../fish/guestfish-actions.pod:3696
22052 msgid "sh"
22053 msgstr ""
22054
22055 # type: verbatim
22056 #: ../fish/guestfish-actions.pod:3698
22057 #, no-wrap
22058 msgid ""
22059 " sh command\n"
22060 "\n"
22061 msgstr ""
22062
22063 # type: textblock
22064 #: ../fish/guestfish-actions.pod:3703
22065 msgid "This is like L</command>, but passes the command to:"
22066 msgstr ""
22067
22068 # type: textblock
22069 #: ../fish/guestfish-actions.pod:3711
22070 msgid "All the provisos about L</command> apply to this call."
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:3713
22075 msgid "sh-lines"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:3715
22080 #, no-wrap
22081 msgid ""
22082 " sh-lines command\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: textblock
22087 #: ../fish/guestfish-actions.pod:3717
22088 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22089 msgstr ""
22090
22091 # type: textblock
22092 #: ../fish/guestfish-actions.pod:3720
22093 msgid "See also: L</command-lines>"
22094 msgstr ""
22095
22096 # type: =head2
22097 #: ../fish/guestfish-actions.pod:3722
22098 msgid "sleep"
22099 msgstr ""
22100
22101 # type: verbatim
22102 #: ../fish/guestfish-actions.pod:3724
22103 #, no-wrap
22104 msgid ""
22105 " sleep secs\n"
22106 "\n"
22107 msgstr ""
22108
22109 # type: =head2
22110 #: ../fish/guestfish-actions.pod:3728
22111 msgid "stat"
22112 msgstr ""
22113
22114 # type: verbatim
22115 #: ../fish/guestfish-actions.pod:3730
22116 #, no-wrap
22117 msgid ""
22118 " stat path\n"
22119 "\n"
22120 msgstr ""
22121
22122 # type: =head2
22123 #: ../fish/guestfish-actions.pod:3736
22124 msgid "statvfs"
22125 msgstr ""
22126
22127 # type: verbatim
22128 #: ../fish/guestfish-actions.pod:3738
22129 #, no-wrap
22130 msgid ""
22131 " statvfs path\n"
22132 "\n"
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:3746
22137 msgid "strings"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:3748
22142 #, no-wrap
22143 msgid ""
22144 " strings path\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: =head2
22149 #: ../fish/guestfish-actions.pod:3756
22150 msgid "strings-e"
22151 msgstr ""
22152
22153 # type: verbatim
22154 #: ../fish/guestfish-actions.pod:3758
22155 #, no-wrap
22156 msgid ""
22157 " strings-e encoding path\n"
22158 "\n"
22159 msgstr ""
22160
22161 # type: textblock
22162 #: ../fish/guestfish-actions.pod:3760
22163 msgid ""
22164 "This is like the L</strings> command, but allows you to specify the encoding "
22165 "of strings that are looked for in the source file C<path>."
22166 msgstr ""
22167
22168 # type: textblock
22169 #: ../fish/guestfish-actions.pod:3770
22170 msgid ""
22171 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22172 "ISO-8859-X (this is what L</strings> uses)."
22173 msgstr ""
22174
22175 # type: =head2
22176 #: ../fish/guestfish-actions.pod:3802
22177 msgid "swapoff-device"
22178 msgstr ""
22179
22180 # type: verbatim
22181 #: ../fish/guestfish-actions.pod:3804
22182 #, no-wrap
22183 msgid ""
22184 " swapoff-device device\n"
22185 "\n"
22186 msgstr ""
22187
22188 # type: textblock
22189 #: ../fish/guestfish-actions.pod:3806
22190 msgid ""
22191 "This command disables the libguestfs appliance swap device or partition "
22192 "named C<device>.  See L</swapon-device>."
22193 msgstr ""
22194
22195 # type: =head2
22196 #: ../fish/guestfish-actions.pod:3810
22197 msgid "swapoff-file"
22198 msgstr ""
22199
22200 # type: verbatim
22201 #: ../fish/guestfish-actions.pod:3812
22202 #, no-wrap
22203 msgid ""
22204 " swapoff-file file\n"
22205 "\n"
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:3816
22210 msgid "swapoff-label"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:3818
22215 #, no-wrap
22216 msgid ""
22217 " swapoff-label label\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: =head2
22222 #: ../fish/guestfish-actions.pod:3823
22223 msgid "swapoff-uuid"
22224 msgstr ""
22225
22226 # type: verbatim
22227 #: ../fish/guestfish-actions.pod:3825
22228 #, no-wrap
22229 msgid ""
22230 " swapoff-uuid uuid\n"
22231 "\n"
22232 msgstr ""
22233
22234 # type: =head2
22235 #: ../fish/guestfish-actions.pod:3830
22236 msgid "swapon-device"
22237 msgstr ""
22238
22239 # type: verbatim
22240 #: ../fish/guestfish-actions.pod:3832
22241 #, no-wrap
22242 msgid ""
22243 " swapon-device device\n"
22244 "\n"
22245 msgstr ""
22246
22247 # type: textblock
22248 #: ../fish/guestfish-actions.pod:3834
22249 msgid ""
22250 "This command enables the libguestfs appliance to use the swap device or "
22251 "partition named C<device>.  The increased memory is made available for all "
22252 "commands, for example those run using L</command> or L</sh>."
22253 msgstr ""
22254
22255 # type: =head2
22256 #: ../fish/guestfish-actions.pod:3846
22257 msgid "swapon-file"
22258 msgstr ""
22259
22260 # type: verbatim
22261 #: ../fish/guestfish-actions.pod:3848
22262 #, no-wrap
22263 msgid ""
22264 " swapon-file file\n"
22265 "\n"
22266 msgstr ""
22267
22268 # type: textblock
22269 #: ../fish/guestfish-actions.pod:3850
22270 msgid ""
22271 "This command enables swap to a file.  See L</swapon-device> for other notes."
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:3853
22276 msgid "swapon-label"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:3855
22281 #, no-wrap
22282 msgid ""
22283 " swapon-label label\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: textblock
22288 #: ../fish/guestfish-actions.pod:3857
22289 msgid ""
22290 "This command enables swap to a labeled swap partition.  See L</swapon-"
22291 "device> for other notes."
22292 msgstr ""
22293
22294 # type: =head2
22295 #: ../fish/guestfish-actions.pod:3860
22296 msgid "swapon-uuid"
22297 msgstr ""
22298
22299 # type: verbatim
22300 #: ../fish/guestfish-actions.pod:3862
22301 #, no-wrap
22302 msgid ""
22303 " swapon-uuid uuid\n"
22304 "\n"
22305 msgstr ""
22306
22307 # type: textblock
22308 #: ../fish/guestfish-actions.pod:3864
22309 msgid ""
22310 "This command enables swap to a swap partition with the given UUID.  See L</"
22311 "swapon-device> for other notes."
22312 msgstr ""
22313
22314 # type: =head2
22315 #: ../fish/guestfish-actions.pod:3867
22316 msgid "sync"
22317 msgstr ""
22318
22319 # type: verbatim
22320 #: ../fish/guestfish-actions.pod:3869
22321 #, no-wrap
22322 msgid ""
22323 " sync\n"
22324 "\n"
22325 msgstr ""
22326
22327 # type: =head2
22328 #: ../fish/guestfish-actions.pod:3877
22329 msgid "tail"
22330 msgstr ""
22331
22332 # type: verbatim
22333 #: ../fish/guestfish-actions.pod:3879
22334 #, no-wrap
22335 msgid ""
22336 " tail path\n"
22337 "\n"
22338 msgstr ""
22339
22340 # type: =head2
22341 #: ../fish/guestfish-actions.pod:3887
22342 msgid "tail-n"
22343 msgstr ""
22344
22345 # type: verbatim
22346 #: ../fish/guestfish-actions.pod:3889
22347 #, no-wrap
22348 msgid ""
22349 " tail-n nrlines path\n"
22350 "\n"
22351 msgstr ""
22352
22353 # type: =head2
22354 #: ../fish/guestfish-actions.pod:3902
22355 msgid "tar-in"
22356 msgstr ""
22357
22358 # type: verbatim
22359 #: ../fish/guestfish-actions.pod:3904
22360 #, no-wrap
22361 msgid ""
22362 " tar-in (tarfile|-) directory\n"
22363 "\n"
22364 msgstr ""
22365
22366 # type: textblock
22367 #: ../fish/guestfish-actions.pod:3909
22368 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22369 msgstr ""
22370
22371 # type: =head2
22372 #: ../fish/guestfish-actions.pod:3914
22373 msgid "tar-out"
22374 msgstr ""
22375
22376 # type: verbatim
22377 #: ../fish/guestfish-actions.pod:3916
22378 #, no-wrap
22379 msgid ""
22380 " tar-out directory (tarfile|-)\n"
22381 "\n"
22382 msgstr ""
22383
22384 # type: textblock
22385 #: ../fish/guestfish-actions.pod:3921
22386 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22387 msgstr ""
22388
22389 # type: =head2
22390 #: ../fish/guestfish-actions.pod:3926
22391 msgid "tgz-in"
22392 msgstr ""
22393
22394 # type: verbatim
22395 #: ../fish/guestfish-actions.pod:3928
22396 #, no-wrap
22397 msgid ""
22398 " tgz-in (tarball|-) directory\n"
22399 "\n"
22400 msgstr ""
22401
22402 # type: textblock
22403 #: ../fish/guestfish-actions.pod:3933
22404 msgid "To upload an uncompressed tarball, use L</tar-in>."
22405 msgstr ""
22406
22407 # type: =head2
22408 #: ../fish/guestfish-actions.pod:3937
22409 msgid "tgz-out"
22410 msgstr ""
22411
22412 # type: verbatim
22413 #: ../fish/guestfish-actions.pod:3939
22414 #, no-wrap
22415 msgid ""
22416 " tgz-out directory (tarball|-)\n"
22417 "\n"
22418 msgstr ""
22419
22420 # type: textblock
22421 #: ../fish/guestfish-actions.pod:3944
22422 msgid "To download an uncompressed tarball, use L</tar-out>."
22423 msgstr ""
22424
22425 # type: =head2
22426 #: ../fish/guestfish-actions.pod:3948
22427 msgid "touch"
22428 msgstr ""
22429
22430 # type: verbatim
22431 #: ../fish/guestfish-actions.pod:3950
22432 #, no-wrap
22433 msgid ""
22434 " touch path\n"
22435 "\n"
22436 msgstr ""
22437
22438 # type: =head2
22439 #: ../fish/guestfish-actions.pod:3959
22440 msgid "truncate"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #: ../fish/guestfish-actions.pod:3961
22445 #, no-wrap
22446 msgid ""
22447 " truncate path\n"
22448 "\n"
22449 msgstr ""
22450
22451 # type: =head2
22452 #: ../fish/guestfish-actions.pod:3966
22453 msgid "truncate-size"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #: ../fish/guestfish-actions.pod:3968
22458 #, no-wrap
22459 msgid ""
22460 " truncate-size path size\n"
22461 "\n"
22462 msgstr ""
22463
22464 # type: textblock
22465 #: ../fish/guestfish-actions.pod:3973
22466 msgid ""
22467 "If the current file size is less than C<size> then the file is extended to "
22468 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22469 "blocks are not allocated for the file until you write to it).  To create a "
22470 "non-sparse file of zeroes, use L</fallocate64> instead."
22471 msgstr ""
22472
22473 # type: =head2
22474 #: ../fish/guestfish-actions.pod:3979
22475 msgid "tune2fs-l"
22476 msgstr ""
22477
22478 # type: verbatim
22479 #: ../fish/guestfish-actions.pod:3981
22480 #, no-wrap
22481 msgid ""
22482 " tune2fs-l device\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: =head2
22487 #: ../fish/guestfish-actions.pod:3991
22488 msgid "txz-in"
22489 msgstr ""
22490
22491 # type: verbatim
22492 #: ../fish/guestfish-actions.pod:3993
22493 #, no-wrap
22494 msgid ""
22495 " txz-in (tarball|-) directory\n"
22496 "\n"
22497 msgstr ""
22498
22499 # type: =head2
22500 #: ../fish/guestfish-actions.pod:4000
22501 msgid "txz-out"
22502 msgstr ""
22503
22504 # type: verbatim
22505 #: ../fish/guestfish-actions.pod:4002
22506 #, no-wrap
22507 msgid ""
22508 " txz-out directory (tarball|-)\n"
22509 "\n"
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-actions.pod:4009
22514 msgid "umask"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-actions.pod:4011
22519 #, no-wrap
22520 msgid ""
22521 " umask mask\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../fish/guestfish-actions.pod:4025
22527 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22528 msgstr ""
22529
22530 # type: =head2
22531 #: ../fish/guestfish-actions.pod:4030
22532 msgid "umount"
22533 msgstr ""
22534
22535 # type: =head2
22536 #: ../fish/guestfish-actions.pod:4032
22537 msgid "unmount"
22538 msgstr ""
22539
22540 # type: verbatim
22541 #: ../fish/guestfish-actions.pod:4034
22542 #, no-wrap
22543 msgid ""
22544 " umount pathordevice\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: =head2
22549 #: ../fish/guestfish-actions.pod:4040
22550 msgid "umount-all"
22551 msgstr ""
22552
22553 # type: =head2
22554 #: ../fish/guestfish-actions.pod:4042
22555 msgid "unmount-all"
22556 msgstr ""
22557
22558 # type: verbatim
22559 #: ../fish/guestfish-actions.pod:4044
22560 #, no-wrap
22561 msgid ""
22562 " umount-all\n"
22563 "\n"
22564 msgstr ""
22565
22566 # type: =head2
22567 #: ../fish/guestfish-actions.pod:4050
22568 msgid "upload"
22569 msgstr ""
22570
22571 # type: verbatim
22572 #: ../fish/guestfish-actions.pod:4052
22573 #, no-wrap
22574 msgid ""
22575 " upload (filename|-) remotefilename\n"
22576 "\n"
22577 msgstr ""
22578
22579 # type: textblock
22580 #: ../fish/guestfish-actions.pod:4059
22581 msgid "See also L</download>."
22582 msgstr ""
22583
22584 # type: =head2
22585 #: ../fish/guestfish-actions.pod:4063
22586 msgid "upload-offset"
22587 msgstr ""
22588
22589 # type: verbatim
22590 #: ../fish/guestfish-actions.pod:4065
22591 #, no-wrap
22592 msgid ""
22593 " upload-offset (filename|-) remotefilename offset\n"
22594 "\n"
22595 msgstr ""
22596
22597 # type: textblock
22598 #: ../fish/guestfish-actions.pod:4077
22599 msgid ""
22600 "Note that there is no limit on the amount of data that can be uploaded with "
22601 "this call, unlike with L</pwrite>, and this call always writes the full "
22602 "amount unless an error occurs."
22603 msgstr ""
22604
22605 # type: textblock
22606 #: ../fish/guestfish-actions.pod:4082
22607 msgid "See also L</upload>, L</pwrite>."
22608 msgstr ""
22609
22610 # type: =head2
22611 #: ../fish/guestfish-actions.pod:4086
22612 msgid "utimens"
22613 msgstr ""
22614
22615 # type: verbatim
22616 #: ../fish/guestfish-actions.pod:4088
22617 #, no-wrap
22618 msgid ""
22619 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22620 "\n"
22621 msgstr ""
22622
22623 # type: =head2
22624 #: ../fish/guestfish-actions.pod:4107
22625 msgid "version"
22626 msgstr ""
22627
22628 # type: verbatim
22629 #: ../fish/guestfish-actions.pod:4109
22630 #, no-wrap
22631 msgid ""
22632 " version\n"
22633 "\n"
22634 msgstr ""
22635
22636 # type: textblock
22637 #: ../fish/guestfish-actions.pod:4136
22638 msgid ""
22639 "I<Note:> Don't use this call to test for availability of features.  In "
22640 "enterprise distributions we backport features from later versions into "
22641 "earlier versions, making this an unreliable way to test for features.  Use "
22642 "L</available> instead."
22643 msgstr ""
22644
22645 # type: =head2
22646 #: ../fish/guestfish-actions.pod:4142
22647 msgid "vfs-label"
22648 msgstr ""
22649
22650 # type: verbatim
22651 #: ../fish/guestfish-actions.pod:4144
22652 #, no-wrap
22653 msgid ""
22654 " vfs-label device\n"
22655 "\n"
22656 msgstr ""
22657
22658 # type: textblock
22659 #: ../fish/guestfish-actions.pod:4151
22660 msgid "To find a filesystem from the label, use L</findfs-label>."
22661 msgstr ""
22662
22663 # type: =head2
22664 #: ../fish/guestfish-actions.pod:4153
22665 msgid "vfs-type"
22666 msgstr ""
22667
22668 # type: verbatim
22669 #: ../fish/guestfish-actions.pod:4155
22670 #, no-wrap
22671 msgid ""
22672 " vfs-type device\n"
22673 "\n"
22674 msgstr ""
22675
22676 # type: =head2
22677 #: ../fish/guestfish-actions.pod:4165
22678 msgid "vfs-uuid"
22679 msgstr ""
22680
22681 # type: verbatim
22682 #: ../fish/guestfish-actions.pod:4167
22683 #, no-wrap
22684 msgid ""
22685 " vfs-uuid device\n"
22686 "\n"
22687 msgstr ""
22688
22689 # type: textblock
22690 #: ../fish/guestfish-actions.pod:4174
22691 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22692 msgstr ""
22693
22694 # type: =head2
22695 #: ../fish/guestfish-actions.pod:4176
22696 msgid "vg-activate"
22697 msgstr ""
22698
22699 # type: verbatim
22700 #: ../fish/guestfish-actions.pod:4178
22701 #, no-wrap
22702 msgid ""
22703 " vg-activate true|false 'volgroups ...'\n"
22704 "\n"
22705 msgstr ""
22706
22707 # type: =head2
22708 #: ../fish/guestfish-actions.pod:4191
22709 msgid "vg-activate-all"
22710 msgstr ""
22711
22712 # type: verbatim
22713 #: ../fish/guestfish-actions.pod:4193
22714 #, no-wrap
22715 msgid ""
22716 " vg-activate-all true|false\n"
22717 "\n"
22718 msgstr ""
22719
22720 # type: =head2
22721 #: ../fish/guestfish-actions.pod:4203
22722 msgid "vgcreate"
22723 msgstr ""
22724
22725 # type: verbatim
22726 #: ../fish/guestfish-actions.pod:4205
22727 #, no-wrap
22728 msgid ""
22729 " vgcreate volgroup 'physvols ...'\n"
22730 "\n"
22731 msgstr ""
22732
22733 # type: =head2
22734 #: ../fish/guestfish-actions.pod:4210
22735 msgid "vglvuuids"
22736 msgstr ""
22737
22738 # type: verbatim
22739 #: ../fish/guestfish-actions.pod:4212
22740 #, no-wrap
22741 msgid ""
22742 " vglvuuids vgname\n"
22743 "\n"
22744 msgstr ""
22745
22746 # type: textblock
22747 #: ../fish/guestfish-actions.pod:4217
22748 msgid ""
22749 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22750 "logical volumes and volume groups."
22751 msgstr ""
22752
22753 # type: textblock
22754 #: ../fish/guestfish-actions.pod:4220
22755 msgid "See also L</vgpvuuids>."
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:4222
22760 msgid "vgpvuuids"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:4224
22765 #, no-wrap
22766 msgid ""
22767 " vgpvuuids vgname\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: textblock
22772 #: ../fish/guestfish-actions.pod:4229
22773 msgid ""
22774 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22775 "physical volumes and volume groups."
22776 msgstr ""
22777
22778 # type: textblock
22779 #: ../fish/guestfish-actions.pod:4232
22780 msgid "See also L</vglvuuids>."
22781 msgstr ""
22782
22783 # type: =head2
22784 #: ../fish/guestfish-actions.pod:4234
22785 msgid "vgremove"
22786 msgstr ""
22787
22788 # type: verbatim
22789 #: ../fish/guestfish-actions.pod:4236
22790 #, no-wrap
22791 msgid ""
22792 " vgremove vgname\n"
22793 "\n"
22794 msgstr ""
22795
22796 # type: =head2
22797 #: ../fish/guestfish-actions.pod:4243
22798 msgid "vgrename"
22799 msgstr ""
22800
22801 # type: verbatim
22802 #: ../fish/guestfish-actions.pod:4245
22803 #, no-wrap
22804 msgid ""
22805 " vgrename volgroup newvolgroup\n"
22806 "\n"
22807 msgstr ""
22808
22809 # type: =head2
22810 #: ../fish/guestfish-actions.pod:4249
22811 msgid "vgs"
22812 msgstr ""
22813
22814 # type: verbatim
22815 #: ../fish/guestfish-actions.pod:4251
22816 #, no-wrap
22817 msgid ""
22818 " vgs\n"
22819 "\n"
22820 msgstr ""
22821
22822 # type: textblock
22823 #: ../fish/guestfish-actions.pod:4259
22824 msgid "See also L</vgs-full>."
22825 msgstr ""
22826
22827 # type: =head2
22828 #: ../fish/guestfish-actions.pod:4261
22829 msgid "vgs-full"
22830 msgstr ""
22831
22832 # type: verbatim
22833 #: ../fish/guestfish-actions.pod:4263
22834 #, no-wrap
22835 msgid ""
22836 " vgs-full\n"
22837 "\n"
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:4268
22842 msgid "vgscan"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:4270
22847 #, no-wrap
22848 msgid ""
22849 " vgscan\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: =head2
22854 #: ../fish/guestfish-actions.pod:4275
22855 msgid "vguuid"
22856 msgstr ""
22857
22858 # type: verbatim
22859 #: ../fish/guestfish-actions.pod:4277
22860 #, no-wrap
22861 msgid ""
22862 " vguuid vgname\n"
22863 "\n"
22864 msgstr ""
22865
22866 # type: =head2
22867 #: ../fish/guestfish-actions.pod:4281
22868 msgid "wc-c"
22869 msgstr ""
22870
22871 # type: verbatim
22872 #: ../fish/guestfish-actions.pod:4283
22873 #, no-wrap
22874 msgid ""
22875 " wc-c path\n"
22876 "\n"
22877 msgstr ""
22878
22879 # type: =head2
22880 #: ../fish/guestfish-actions.pod:4288
22881 msgid "wc-l"
22882 msgstr ""
22883
22884 # type: verbatim
22885 #: ../fish/guestfish-actions.pod:4290
22886 #, no-wrap
22887 msgid ""
22888 " wc-l path\n"
22889 "\n"
22890 msgstr ""
22891
22892 # type: =head2
22893 #: ../fish/guestfish-actions.pod:4295
22894 msgid "wc-w"
22895 msgstr ""
22896
22897 # type: verbatim
22898 #: ../fish/guestfish-actions.pod:4297
22899 #, no-wrap
22900 msgid ""
22901 " wc-w path\n"
22902 "\n"
22903 msgstr ""
22904
22905 # type: =head2
22906 #: ../fish/guestfish-actions.pod:4302
22907 msgid "write"
22908 msgstr ""
22909
22910 # type: verbatim
22911 #: ../fish/guestfish-actions.pod:4304
22912 #, no-wrap
22913 msgid ""
22914 " write path content\n"
22915 "\n"
22916 msgstr ""
22917
22918 # type: =head2
22919 #: ../fish/guestfish-actions.pod:4312
22920 msgid "write-file"
22921 msgstr ""
22922
22923 # type: verbatim
22924 #: ../fish/guestfish-actions.pod:4314
22925 #, no-wrap
22926 msgid ""
22927 " write-file path content size\n"
22928 "\n"
22929 msgstr ""
22930
22931 # type: =head2
22932 #: ../fish/guestfish-actions.pod:4337
22933 msgid "zegrep"
22934 msgstr ""
22935
22936 # type: verbatim
22937 #: ../fish/guestfish-actions.pod:4339
22938 #, no-wrap
22939 msgid ""
22940 " zegrep regex path\n"
22941 "\n"
22942 msgstr ""
22943
22944 # type: =head2
22945 #: ../fish/guestfish-actions.pod:4347
22946 msgid "zegrepi"
22947 msgstr ""
22948
22949 # type: verbatim
22950 #: ../fish/guestfish-actions.pod:4349
22951 #, no-wrap
22952 msgid ""
22953 " zegrepi regex path\n"
22954 "\n"
22955 msgstr ""
22956
22957 # type: =head2
22958 #: ../fish/guestfish-actions.pod:4357
22959 msgid "zero"
22960 msgstr ""
22961
22962 # type: verbatim
22963 #: ../fish/guestfish-actions.pod:4359
22964 #, no-wrap
22965 msgid ""
22966 " zero device\n"
22967 "\n"
22968 msgstr ""
22969
22970 # type: textblock
22971 #: ../fish/guestfish-actions.pod:4367
22972 msgid "See also: L</zero-device>, L</scrub-device>."
22973 msgstr ""
22974
22975 # type: =head2
22976 #: ../fish/guestfish-actions.pod:4369
22977 msgid "zero-device"
22978 msgstr ""
22979
22980 # type: verbatim
22981 #: ../fish/guestfish-actions.pod:4371
22982 #, no-wrap
22983 msgid ""
22984 " zero-device device\n"
22985 "\n"
22986 msgstr ""
22987
22988 # type: textblock
22989 #: ../fish/guestfish-actions.pod:4373
22990 msgid ""
22991 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22992 "which just zeroes the first few blocks of a device."
22993 msgstr ""
22994
22995 # type: =head2
22996 #: ../fish/guestfish-actions.pod:4380
22997 msgid "zerofree"
22998 msgstr ""
22999
23000 # type: verbatim
23001 #: ../fish/guestfish-actions.pod:4382
23002 #, no-wrap
23003 msgid ""
23004 " zerofree device\n"
23005 "\n"
23006 msgstr ""
23007
23008 # type: =head2
23009 #: ../fish/guestfish-actions.pod:4395
23010 msgid "zfgrep"
23011 msgstr ""
23012
23013 # type: verbatim
23014 #: ../fish/guestfish-actions.pod:4397
23015 #, no-wrap
23016 msgid ""
23017 " zfgrep pattern path\n"
23018 "\n"
23019 msgstr ""
23020
23021 # type: =head2
23022 #: ../fish/guestfish-actions.pod:4405
23023 msgid "zfgrepi"
23024 msgstr ""
23025
23026 # type: verbatim
23027 #: ../fish/guestfish-actions.pod:4407
23028 #, no-wrap
23029 msgid ""
23030 " zfgrepi pattern path\n"
23031 "\n"
23032 msgstr ""
23033
23034 # type: =head2
23035 #: ../fish/guestfish-actions.pod:4415
23036 msgid "zfile"
23037 msgstr ""
23038
23039 # type: verbatim
23040 #: ../fish/guestfish-actions.pod:4417
23041 #, no-wrap
23042 msgid ""
23043 " zfile meth path\n"
23044 "\n"
23045 msgstr ""
23046
23047 # type: textblock
23048 #: ../fish/guestfish-actions.pod:4424
23049 msgid ""
23050 "Since 1.0.63, use L</file> instead which can now process compressed files."
23051 msgstr ""
23052
23053 # type: =head2
23054 #: ../fish/guestfish-actions.pod:4434
23055 msgid "zgrep"
23056 msgstr ""
23057
23058 # type: verbatim
23059 #: ../fish/guestfish-actions.pod:4436
23060 #, no-wrap
23061 msgid ""
23062 " zgrep regex path\n"
23063 "\n"
23064 msgstr ""
23065
23066 # type: =head2
23067 #: ../fish/guestfish-actions.pod:4444
23068 msgid "zgrepi"
23069 msgstr ""
23070
23071 # type: verbatim
23072 #: ../fish/guestfish-actions.pod:4446
23073 #, no-wrap
23074 msgid ""
23075 " zgrepi regex path\n"
23076 "\n"
23077 msgstr ""
23078
23079 # type: =head2
23080 #: ../fish/guestfish-commands.pod:1
23081 msgid "alloc"
23082 msgstr ""
23083
23084 # type: =head2
23085 #: ../fish/guestfish-commands.pod:3
23086 msgid "allocate"
23087 msgstr ""
23088
23089 # type: verbatim
23090 #: ../fish/guestfish-commands.pod:5
23091 #, no-wrap
23092 msgid ""
23093 " alloc filename size\n"
23094 "\n"
23095 msgstr ""
23096
23097 # type: textblock
23098 #: ../fish/guestfish-commands.pod:7
23099 msgid ""
23100 "This creates an empty (zeroed) file of the given size, and then adds so it "
23101 "can be further examined."
23102 msgstr ""
23103
23104 # type: textblock
23105 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23106 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23107 msgstr ""
23108
23109 # type: textblock
23110 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23111 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23112 msgstr ""
23113
23114 # type: textblock
23115 #: ../fish/guestfish-commands.pod:14
23116 msgid ""
23117 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23118 "image, see L</PREPARED DISK IMAGES>."
23119 msgstr ""
23120
23121 # type: =head2
23122 #: ../fish/guestfish-commands.pod:17
23123 msgid "copy-in"
23124 msgstr ""
23125
23126 # type: verbatim
23127 #: ../fish/guestfish-commands.pod:19
23128 #, no-wrap
23129 msgid ""
23130 " copy-in local [local ...] /remotedir\n"
23131 "\n"
23132 msgstr ""
23133
23134 # type: textblock
23135 #: ../fish/guestfish-commands.pod:21
23136 msgid ""
23137 "C<copy-in> copies local files or directories recursively into the disk "
23138 "image, placing them in the directory called C</remotedir> (which must "
23139 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23140 "other commands as necessary."
23141 msgstr ""
23142
23143 # type: textblock
23144 #: ../fish/guestfish-commands.pod:26
23145 msgid ""
23146 "Multiple local files and directories can be specified, but the last "
23147 "parameter must always be a remote directory.  Wildcards cannot be used."
23148 msgstr ""
23149
23150 # type: =head2
23151 #: ../fish/guestfish-commands.pod:30
23152 msgid "copy-out"
23153 msgstr ""
23154
23155 # type: verbatim
23156 #: ../fish/guestfish-commands.pod:32
23157 #, no-wrap
23158 msgid ""
23159 " copy-out remote [remote ...] localdir\n"
23160 "\n"
23161 msgstr ""
23162
23163 # type: textblock
23164 #: ../fish/guestfish-commands.pod:34
23165 msgid ""
23166 "C<copy-out> copies remote files or directories recursively out of the disk "
23167 "image, placing them on the host disk in a local directory called C<localdir> "
23168 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23169 "download>, L</tar-out> and other commands as necessary."
23170 msgstr ""
23171
23172 # type: textblock
23173 #: ../fish/guestfish-commands.pod:40
23174 msgid ""
23175 "Multiple remote files and directories can be specified, but the last "
23176 "parameter must always be a local directory.  To download to the current "
23177 "directory, use C<.> as in:"
23178 msgstr ""
23179
23180 # type: verbatim
23181 #: ../fish/guestfish-commands.pod:44
23182 #, no-wrap
23183 msgid ""
23184 " copy-out /home .\n"
23185 "\n"
23186 msgstr ""
23187
23188 # type: textblock
23189 #: ../fish/guestfish-commands.pod:46
23190 msgid ""
23191 "Wildcards cannot be used in the ordinary command, but you can use them with "
23192 "the help of L</glob> like this:"
23193 msgstr ""
23194
23195 # type: verbatim
23196 #: ../fish/guestfish-commands.pod:49
23197 #, no-wrap
23198 msgid ""
23199 " glob copy-out /home/* .\n"
23200 "\n"
23201 msgstr ""
23202
23203 # type: =head2
23204 #: ../fish/guestfish-commands.pod:51
23205 msgid "echo"
23206 msgstr ""
23207
23208 # type: verbatim
23209 #: ../fish/guestfish-commands.pod:53
23210 #, no-wrap
23211 msgid ""
23212 " echo [params ...]\n"
23213 "\n"
23214 msgstr ""
23215
23216 # type: textblock
23217 #: ../fish/guestfish-commands.pod:55
23218 msgid "This echos the parameters to the terminal."
23219 msgstr ""
23220
23221 # type: =head2
23222 #: ../fish/guestfish-commands.pod:57
23223 msgid "edit"
23224 msgstr ""
23225
23226 # type: =head2
23227 #: ../fish/guestfish-commands.pod:59
23228 msgid "vi"
23229 msgstr ""
23230
23231 # type: =head2
23232 #: ../fish/guestfish-commands.pod:61
23233 msgid "emacs"
23234 msgstr ""
23235
23236 # type: verbatim
23237 #: ../fish/guestfish-commands.pod:63
23238 #, no-wrap
23239 msgid ""
23240 " edit filename\n"
23241 "\n"
23242 msgstr ""
23243
23244 # type: textblock
23245 #: ../fish/guestfish-commands.pod:65
23246 msgid ""
23247 "This is used to edit a file.  It downloads the file, edits it locally using "
23248 "your editor, then uploads the result."
23249 msgstr ""
23250
23251 # type: textblock
23252 #: ../fish/guestfish-commands.pod:68
23253 msgid ""
23254 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23255 "or C<emacs> you will get those corresponding editors."
23256 msgstr ""
23257
23258 # type: =head2
23259 #: ../fish/guestfish-commands.pod:72
23260 msgid "glob"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../fish/guestfish-commands.pod:74
23265 #, no-wrap
23266 msgid ""
23267 " glob command args...\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: textblock
23272 #: ../fish/guestfish-commands.pod:76
23273 msgid ""
23274 "Expand wildcards in any paths in the args list, and run C<command> "
23275 "repeatedly on each matching path."
23276 msgstr ""
23277
23278 # type: textblock
23279 #: ../fish/guestfish-commands.pod:79
23280 msgid "See L</WILDCARDS AND GLOBBING>."
23281 msgstr ""
23282
23283 # type: =head2
23284 #: ../fish/guestfish-commands.pod:81
23285 msgid "hexedit"
23286 msgstr ""
23287
23288 # type: verbatim
23289 #: ../fish/guestfish-commands.pod:83
23290 #, no-wrap
23291 msgid ""
23292 " hexedit <filename|device>\n"
23293 " hexedit <filename|device> <max>\n"
23294 " hexedit <filename|device> <start> <max>\n"
23295 "\n"
23296 msgstr ""
23297
23298 # type: textblock
23299 #: ../fish/guestfish-commands.pod:87
23300 msgid ""
23301 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23302 "device."
23303 msgstr ""
23304
23305 # type: textblock
23306 #: ../fish/guestfish-commands.pod:90
23307 msgid ""
23308 "This command works by downloading potentially the whole file or device, "
23309 "editing it locally, then uploading it.  If the file or device is large, you "
23310 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23311 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23312 "usual modifiers allowed such as C<1M> (1 megabyte)."
23313 msgstr ""
23314
23315 # type: textblock
23316 #: ../fish/guestfish-commands.pod:97
23317 msgid "For example to edit the first few sectors of a disk you might do:"
23318 msgstr ""
23319
23320 # type: verbatim
23321 #: ../fish/guestfish-commands.pod:100
23322 #, no-wrap
23323 msgid ""
23324 " hexedit /dev/sda 1M\n"
23325 "\n"
23326 msgstr ""
23327
23328 # type: textblock
23329 #: ../fish/guestfish-commands.pod:102
23330 msgid ""
23331 "which would allow you to edit anywhere within the first megabyte of the disk."
23332 msgstr ""
23333
23334 # type: textblock
23335 #: ../fish/guestfish-commands.pod:105
23336 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23337 msgstr ""
23338
23339 # type: verbatim
23340 #: ../fish/guestfish-commands.pod:107
23341 #, no-wrap
23342 msgid ""
23343 " hexedit /dev/sda1 0x400 0x400\n"
23344 "\n"
23345 msgstr ""
23346
23347 # type: textblock
23348 #: ../fish/guestfish-commands.pod:109
23349 msgid "(assuming the superblock is in the standard location)."
23350 msgstr ""
23351
23352 # type: textblock
23353 #: ../fish/guestfish-commands.pod:111
23354 msgid ""
23355 "This command requires the external L<hexedit(1)> program.  You can specify "
23356 "another program to use by setting the C<HEXEDITOR> environment variable."
23357 msgstr ""
23358
23359 # type: textblock
23360 #: ../fish/guestfish-commands.pod:115
23361 msgid "See also L</hexdump>."
23362 msgstr ""
23363
23364 # type: =head2
23365 #: ../fish/guestfish-commands.pod:117
23366 msgid "lcd"
23367 msgstr ""
23368
23369 # type: verbatim
23370 #: ../fish/guestfish-commands.pod:119
23371 #, no-wrap
23372 msgid ""
23373 " lcd directory\n"
23374 "\n"
23375 msgstr ""
23376
23377 # type: textblock
23378 #: ../fish/guestfish-commands.pod:121
23379 msgid ""
23380 "Change the local directory, ie. the current directory of guestfish itself."
23381 msgstr ""
23382
23383 # type: textblock
23384 #: ../fish/guestfish-commands.pod:124
23385 msgid "Note that C<!cd> won't do what you might expect."
23386 msgstr ""
23387
23388 # type: =head2
23389 #: ../fish/guestfish-commands.pod:126
23390 msgid "man"
23391 msgstr ""
23392
23393 # type: =head2
23394 #: ../fish/guestfish-commands.pod:128
23395 msgid "manual"
23396 msgstr ""
23397
23398 # type: verbatim
23399 #: ../fish/guestfish-commands.pod:130
23400 #, no-wrap
23401 msgid ""
23402 "  man\n"
23403 "\n"
23404 msgstr ""
23405
23406 # type: textblock
23407 #: ../fish/guestfish-commands.pod:132
23408 msgid "Opens the manual page for guestfish."
23409 msgstr ""
23410
23411 # type: =head2
23412 #: ../fish/guestfish-commands.pod:134
23413 msgid "more"
23414 msgstr ""
23415
23416 # type: =head2
23417 #: ../fish/guestfish-commands.pod:136
23418 msgid "less"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #: ../fish/guestfish-commands.pod:138
23423 #, no-wrap
23424 msgid ""
23425 " more filename\n"
23426 "\n"
23427 msgstr ""
23428
23429 # type: verbatim
23430 #: ../fish/guestfish-commands.pod:140
23431 #, no-wrap
23432 msgid ""
23433 " less filename\n"
23434 "\n"
23435 msgstr ""
23436
23437 # type: textblock
23438 #: ../fish/guestfish-commands.pod:142
23439 msgid "This is used to view a file."
23440 msgstr ""
23441
23442 # type: textblock
23443 #: ../fish/guestfish-commands.pod:144
23444 msgid ""
23445 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23446 "C<less> you will get the C<less> command specifically."
23447 msgstr ""
23448
23449 # type: =head2
23450 #: ../fish/guestfish-commands.pod:147
23451 msgid "reopen"
23452 msgstr ""
23453
23454 # type: verbatim
23455 #: ../fish/guestfish-commands.pod:149
23456 #, no-wrap
23457 msgid ""
23458 "  reopen\n"
23459 "\n"
23460 msgstr ""
23461
23462 # type: textblock
23463 #: ../fish/guestfish-commands.pod:151
23464 msgid ""
23465 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23466 "normally, because the handle is closed properly when guestfish exits.  "
23467 "However this is occasionally useful for testing."
23468 msgstr ""
23469
23470 # type: =head2
23471 #: ../fish/guestfish-commands.pod:155
23472 msgid "sparse"
23473 msgstr ""
23474
23475 # type: verbatim
23476 #: ../fish/guestfish-commands.pod:157
23477 #, no-wrap
23478 msgid ""
23479 " sparse filename size\n"
23480 "\n"
23481 msgstr ""
23482
23483 # type: textblock
23484 #: ../fish/guestfish-commands.pod:159
23485 msgid ""
23486 "This creates an empty sparse file of the given size, and then adds so it can "
23487 "be further examined."
23488 msgstr ""
23489
23490 # type: textblock
23491 #: ../fish/guestfish-commands.pod:162
23492 msgid ""
23493 "In all respects it works the same as the L</alloc> command, except that the "
23494 "image file is allocated sparsely, which means that disk blocks are not "
23495 "assigned to the file until they are needed.  Sparse disk files only use "
23496 "space when written to, but they are slower and there is a danger you could "
23497 "run out of real disk space during a write operation."
23498 msgstr ""
23499
23500 # type: =head2
23501 #: ../fish/guestfish-commands.pod:172
23502 msgid "supported"
23503 msgstr ""
23504
23505 # type: verbatim
23506 #: ../fish/guestfish-commands.pod:174
23507 #, no-wrap
23508 msgid ""
23509 " supported\n"
23510 "\n"
23511 msgstr ""
23512
23513 # type: textblock
23514 #: ../fish/guestfish-commands.pod:176
23515 msgid ""
23516 "This command returns a list of the optional groups known to the daemon, and "
23517 "indicates which ones are supported by this build of the libguestfs appliance."
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../fish/guestfish-commands.pod:180
23522 msgid "See also L<guestfs(3)/AVAILABILITY>."
23523 msgstr ""
23524
23525 # type: =head2
23526 #: ../fish/guestfish-commands.pod:182
23527 msgid "time"
23528 msgstr ""
23529
23530 # type: verbatim
23531 #: ../fish/guestfish-commands.pod:184
23532 #, no-wrap
23533 msgid ""
23534 " time command args...\n"
23535 "\n"
23536 msgstr ""
23537
23538 # type: textblock
23539 #: ../fish/guestfish-commands.pod:186
23540 msgid ""
23541 "Run the command as usual, but print the elapsed time afterwards.  This can "
23542 "be useful for benchmarking operations."
23543 msgstr ""
23544
23545 # type: textblock
23546 #: ../test-tool/libguestfs-test-tool.pod:5
23547 msgid "libguestfs-test-tool - End user tests for libguestfs"
23548 msgstr ""
23549
23550 # type: verbatim
23551 #: ../test-tool/libguestfs-test-tool.pod:9
23552 #, no-wrap
23553 msgid ""
23554 " libguestfs-test-tool [--options]\n"
23555 "\n"
23556 msgstr ""
23557
23558 # type: textblock
23559 #: ../test-tool/libguestfs-test-tool.pod:13
23560 msgid ""
23561 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23562 "and developers, to allow them to check basic libguestfs functionality is "
23563 "working.  This is needed because libguestfs occasionally breaks for reasons "
23564 "beyond our control: usually because of changes in the underlying qemu or "
23565 "kernel packages, or the host environment."
23566 msgstr ""
23567
23568 # type: textblock
23569 #: ../test-tool/libguestfs-test-tool.pod:20
23570 msgid "If you suspect a problem in libguestfs, then just run:"
23571 msgstr ""
23572
23573 # type: verbatim
23574 #: ../test-tool/libguestfs-test-tool.pod:22
23575 #, no-wrap
23576 msgid ""
23577 " libguestfs-test-tool\n"
23578 "\n"
23579 msgstr ""
23580
23581 # type: textblock
23582 #: ../test-tool/libguestfs-test-tool.pod:24
23583 msgid "It will print lots of diagnostic messages."
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../test-tool/libguestfs-test-tool.pod:26
23588 msgid "If it runs to completion successfully, you will see this near the end:"
23589 msgstr ""
23590
23591 # type: verbatim
23592 #: ../test-tool/libguestfs-test-tool.pod:28
23593 #, no-wrap
23594 msgid ""
23595 " ===== TEST FINISHED OK =====\n"
23596 "\n"
23597 msgstr ""
23598
23599 # type: textblock
23600 #: ../test-tool/libguestfs-test-tool.pod:30
23601 msgid "and the test tool will exit with code 0."
23602 msgstr ""
23603
23604 # type: textblock
23605 #: ../test-tool/libguestfs-test-tool.pod:32
23606 msgid ""
23607 "If it fails (and/or exits with non-zero error code), please paste the "
23608 "B<complete, unedited> output of the test tool into a bug report.  More "
23609 "information about reporting bugs can be found on the L<http://libguestfs.org/"
23610 "> website."
23611 msgstr ""
23612
23613 # type: =item
23614 #: ../test-tool/libguestfs-test-tool.pod:41
23615 msgid "I<--help>"
23616 msgstr ""
23617
23618 # type: textblock
23619 #: ../test-tool/libguestfs-test-tool.pod:43
23620 msgid "Display short usage information and exit."
23621 msgstr ""
23622
23623 # type: =item
23624 #: ../test-tool/libguestfs-test-tool.pod:45
23625 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23626 msgstr ""
23627
23628 # type: textblock
23629 #: ../test-tool/libguestfs-test-tool.pod:47
23630 msgid ""
23631 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23632 "normally look in the C<$libexec> directory that was configured when the tool "
23633 "was built."
23634 msgstr ""
23635
23636 # type: =item
23637 #: ../test-tool/libguestfs-test-tool.pod:51
23638 msgid "I<--qemu qemu_binary>"
23639 msgstr ""
23640
23641 # type: textblock
23642 #: ../test-tool/libguestfs-test-tool.pod:53
23643 msgid ""
23644 "If you have downloaded another qemu binary, point this option at the full "
23645 "path of the binary to try it."
23646 msgstr ""
23647
23648 # type: =item
23649 #: ../test-tool/libguestfs-test-tool.pod:56
23650 msgid "I<--qemudir qemu_source_dir>"
23651 msgstr ""
23652
23653 # type: textblock
23654 #: ../test-tool/libguestfs-test-tool.pod:58
23655 msgid ""
23656 "If you have compiled qemu from source, point this option at the source "
23657 "directory to try it."
23658 msgstr ""
23659
23660 # type: =item
23661 #: ../test-tool/libguestfs-test-tool.pod:61
23662 msgid "I<--timeout N>"
23663 msgstr ""
23664
23665 # type: textblock
23666 #: ../test-tool/libguestfs-test-tool.pod:63
23667 msgid ""
23668 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23669 "does not usually need to be adjusted unless your machine is very slow."
23670 msgstr ""
23671
23672 # type: =head1
23673 #: ../test-tool/libguestfs-test-tool.pod:69
23674 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23675 msgstr ""
23676
23677 # type: textblock
23678 #: ../test-tool/libguestfs-test-tool.pod:71
23679 msgid ""
23680 "If you have compiled another version of qemu from source and would like to "
23681 "try that, then you can use the I<--qemudir> option to point to the qemu "
23682 "source directory."
23683 msgstr ""
23684
23685 # type: textblock
23686 #: ../test-tool/libguestfs-test-tool.pod:75
23687 msgid ""
23688 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23689 "option to point to the binary."
23690 msgstr ""
23691
23692 # type: textblock
23693 #: ../test-tool/libguestfs-test-tool.pod:78
23694 msgid ""
23695 "When using an alternate qemu with libguestfs, usually you would need to "
23696 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
23697 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
23698 "use either of the I<--qemudir> or I<--qemu> options."
23699 msgstr ""
23700
23701 # type: textblock
23702 #: ../test-tool/libguestfs-test-tool.pod:85
23703 msgid ""
23704 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23705 "I<1> if there was an error."
23706 msgstr ""
23707
23708 # type: =item
23709 #: ../test-tool/libguestfs-test-tool.pod:92
23710 msgid "/usr/libexec/libguestfs-test-tool-helper"
23711 msgstr ""
23712
23713 # type: textblock
23714 #: ../test-tool/libguestfs-test-tool.pod:94
23715 msgid ""
23716 "This helper program is run inside the appliance and provides additional "
23717 "tests."
23718 msgstr ""
23719
23720 # type: =item
23721 #: ../test-tool/libguestfs-test-tool.pod:97
23722 msgid "/usr/bin/mkisofs"
23723 msgstr ""
23724
23725 # type: textblock
23726 #: ../test-tool/libguestfs-test-tool.pod:99
23727 msgid ""
23728 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23729 "which is used as part of the tests."
23730 msgstr ""
23731
23732 # type: textblock
23733 #: ../test-tool/libguestfs-test-tool.pod:106
23734 msgid ""
23735 "For the full list of environment variables which may affect libguestfs, "
23736 "please see the L<guestfs(3)> manual page."
23737 msgstr ""
23738
23739 # type: textblock
23740 #: ../test-tool/libguestfs-test-tool.pod:111
23741 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23742 msgstr ""
23743
23744 # type: textblock
23745 #: ../test-tool/libguestfs-test-tool.pod:121
23746 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23747 msgstr ""
23748
23749 # type: textblock
23750 #: ../fuse/guestmount.pod:5
23751 msgid ""
23752 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23753 msgstr ""
23754
23755 # type: verbatim
23756 #: ../fuse/guestmount.pod:9
23757 #, no-wrap
23758 msgid ""
23759 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23760 "\n"
23761 msgstr ""
23762
23763 # type: verbatim
23764 #: ../fuse/guestmount.pod:11
23765 #, no-wrap
23766 msgid ""
23767 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23768 "\n"
23769 msgstr ""
23770
23771 # type: verbatim
23772 #: ../fuse/guestmount.pod:13
23773 #, no-wrap
23774 msgid ""
23775 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23776 "\n"
23777 msgstr ""
23778
23779 # type: textblock
23780 #: ../fuse/guestmount.pod:17
23781 msgid ""
23782 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23783 "machines.  If you do this, you risk disk corruption in the VM."
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fuse/guestmount.pod:22
23788 msgid ""
23789 "The guestmount program can be used to mount virtual machine filesystems and "
23790 "other disk images on the host.  It uses libguestfs for access to the guest "
23791 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23792 "a mountable device."
23793 msgstr ""
23794
23795 # type: textblock
23796 #: ../fuse/guestmount.pod:27
23797 msgid ""
23798 "Along with other options, you have to give at least one device (I<-a> "
23799 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23800 "option) or use the I<-i> inspection option.  How this works is better "
23801 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23802 "below."
23803 msgstr ""
23804
23805 # type: textblock
23806 #: ../fuse/guestmount.pod:33
23807 msgid ""
23808 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23809 "by you, and the filesystem will not be visible to any other users unless you "
23810 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23811 "the filesystem, use the C<fusermount -u> command."
23812 msgstr ""
23813
23814 # type: textblock
23815 #: ../fuse/guestmount.pod:41
23816 msgid ""
23817 "For a typical Windows guest which has its main filesystem on the first "
23818 "partition:"
23819 msgstr ""
23820
23821 # type: verbatim
23822 #: ../fuse/guestmount.pod:44
23823 #, no-wrap
23824 msgid ""
23825 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23826 "\n"
23827 msgstr ""
23828
23829 # type: textblock
23830 #: ../fuse/guestmount.pod:46
23831 msgid ""
23832 "For a typical Linux guest which has a /boot filesystem on the first "
23833 "partition, and the root filesystem on a logical volume:"
23834 msgstr ""
23835
23836 # type: verbatim
23837 #: ../fuse/guestmount.pod:49
23838 #, no-wrap
23839 msgid ""
23840 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23841 "\n"
23842 msgstr ""
23843
23844 # type: textblock
23845 #: ../fuse/guestmount.pod:51
23846 msgid "To get libguestfs to detect guest mountpoints for you:"
23847 msgstr ""
23848
23849 # type: verbatim
23850 #: ../fuse/guestmount.pod:53
23851 #, no-wrap
23852 msgid ""
23853 " guestmount -a guest.img -i --ro /mnt\n"
23854 "\n"
23855 msgstr ""
23856
23857 # type: textblock
23858 #: ../fuse/guestmount.pod:55
23859 msgid "For a libvirt guest called \"Guest\" you could do:"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #: ../fuse/guestmount.pod:57
23864 #, no-wrap
23865 msgid ""
23866 " guestmount -d Guest -i --ro /mnt\n"
23867 "\n"
23868 msgstr ""
23869
23870 # type: textblock
23871 #: ../fuse/guestmount.pod:59
23872 msgid ""
23873 "If you don't know what filesystems are contained in a guest or disk image, "
23874 "use L<virt-list-filesystems(1)> first:"
23875 msgstr ""
23876
23877 # type: verbatim
23878 #: ../fuse/guestmount.pod:62
23879 #, no-wrap
23880 msgid ""
23881 " virt-list-filesystems MyGuest\n"
23882 "\n"
23883 msgstr ""
23884
23885 # type: textblock
23886 #: ../fuse/guestmount.pod:64
23887 msgid ""
23888 "If you want to trace the libguestfs calls but without excessive debugging "
23889 "information, we recommend:"
23890 msgstr ""
23891
23892 # type: verbatim
23893 #: ../fuse/guestmount.pod:67
23894 #, no-wrap
23895 msgid ""
23896 " guestmount [...] --trace /mnt\n"
23897 "\n"
23898 msgstr ""
23899
23900 # type: textblock
23901 #: ../fuse/guestmount.pod:69
23902 msgid "If you want to debug the program, we recommend:"
23903 msgstr ""
23904
23905 # type: verbatim
23906 #: ../fuse/guestmount.pod:71
23907 #, no-wrap
23908 msgid ""
23909 " guestmount [...] --trace --verbose /mnt\n"
23910 "\n"
23911 msgstr ""
23912
23913 # type: textblock
23914 #: ../fuse/guestmount.pod:79
23915 msgid "Add a block device or virtual machine image."
23916 msgstr ""
23917
23918 # type: =item
23919 #: ../fuse/guestmount.pod:96
23920 msgid "B<--dir-cache-timeout N>"
23921 msgstr ""
23922
23923 # type: textblock
23924 #: ../fuse/guestmount.pod:98
23925 msgid ""
23926 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23927 "seconds.  The readdir cache [actually, there are several semi-independent "
23928 "caches] is populated after a readdir(2) call with the stat and extended "
23929 "attributes of the files in the directory, in anticipation that they will be "
23930 "requested soon after."
23931 msgstr ""
23932
23933 # type: textblock
23934 #: ../fuse/guestmount.pod:104
23935 msgid ""
23936 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23937 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23938 "requests, only cache existing ones."
23939 msgstr ""
23940
23941 # type: textblock
23942 #: ../fuse/guestmount.pod:115
23943 msgid ""
23944 "If you have untrusted raw-format guest disk images, you should use this "
23945 "option to specify the disk format.  This avoids a possible security problem "
23946 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23947 "guestfs_add_drive_opts>."
23948 msgstr ""
23949
23950 # type: =item
23951 #: ../fuse/guestmount.pod:120
23952 msgid "B<--fuse-help>"
23953 msgstr ""
23954
23955 # type: textblock
23956 #: ../fuse/guestmount.pod:122
23957 msgid "Display help on special FUSE options (see I<-o> below)."
23958 msgstr ""
23959
23960 # type: textblock
23961 #: ../fuse/guestmount.pod:126
23962 msgid "Display brief help and exit."
23963 msgstr ""
23964
23965 # type: =item
23966 #: ../fuse/guestmount.pod:134
23967 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23968 msgstr ""
23969
23970 # type: textblock
23971 #: ../fuse/guestmount.pod:136
23972 msgid ""
23973 "Mount the named partition or logical volume on the given mountpoint B<in the "
23974 "guest> (this has nothing to do with mountpoints in the host)."
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../fuse/guestmount.pod:139
23979 msgid ""
23980 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23981 "something on C</>."
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../fuse/guestmount.pod:144
23986 msgid ""
23987 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23988 "unmounted.  If you specify this option, then we don't attempt to sync the "
23989 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23990 msgstr ""
23991
23992 # type: =item
23993 #: ../fuse/guestmount.pod:149
23994 msgid "B<-o option> | B<--option option>"
23995 msgstr ""
23996
23997 # type: textblock
23998 #: ../fuse/guestmount.pod:151
23999 msgid "Pass extra options to FUSE."
24000 msgstr ""
24001
24002 # type: textblock
24003 #: ../fuse/guestmount.pod:153
24004 msgid ""
24005 "To get a list of all the extra options supported by FUSE, use the command "
24006 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24007 "of them are a good idea."
24008 msgstr ""
24009
24010 # type: verbatim
24011 #: ../fuse/guestmount.pod:157
24012 #, no-wrap
24013 msgid ""
24014 " guestmount --fuse-help\n"
24015 "\n"
24016 msgstr ""
24017
24018 # type: textblock
24019 #: ../fuse/guestmount.pod:159
24020 msgid "Some potentially useful FUSE options:"
24021 msgstr ""
24022
24023 # type: =item
24024 #: ../fuse/guestmount.pod:163
24025 msgid "B<-o allow_other>"
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fuse/guestmount.pod:165
24030 msgid "Allow other users to see the filesystem."
24031 msgstr ""
24032
24033 # type: =item
24034 #: ../fuse/guestmount.pod:167
24035 msgid "B<-o attr_timeout=N>"
24036 msgstr ""
24037
24038 # type: textblock
24039 #: ../fuse/guestmount.pod:169
24040 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24041 msgstr ""
24042
24043 # type: =item
24044 #: ../fuse/guestmount.pod:171
24045 msgid "B<-o kernel_cache>"
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../fuse/guestmount.pod:173
24050 msgid ""
24051 "Allow the kernel to cache files (reduces the number of reads that have to go "
24052 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24053 "afford the extra memory usage."
24054 msgstr ""
24055
24056 # type: =item
24057 #: ../fuse/guestmount.pod:177
24058 msgid "B<-o uid=N> B<-o gid=N>"
24059 msgstr ""
24060
24061 # type: textblock
24062 #: ../fuse/guestmount.pod:179
24063 msgid ""
24064 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24065 "the chosen values."
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../fuse/guestmount.pod:186
24070 msgid ""
24071 "Add devices and mount everything read-only.  Also disallow writes and make "
24072 "the disk appear read-only to FUSE."
24073 msgstr ""
24074
24075 # type: textblock
24076 #: ../fuse/guestmount.pod:189
24077 msgid ""
24078 "This is highly recommended if you are not going to edit the guest disk.  If "
24079 "the guest is running and this option is I<not> supplied, then there is a "
24080 "strong risk of disk corruption in the guest.  We try to prevent this from "
24081 "happening, but it is not always possible."
24082 msgstr ""
24083
24084 # type: textblock
24085 #: ../fuse/guestmount.pod:196
24086 msgid "Enable SELinux support for the guest."
24087 msgstr ""
24088
24089 # type: textblock
24090 #: ../fuse/guestmount.pod:200
24091 msgid "Enable verbose messages from underlying libguestfs."
24092 msgstr ""
24093
24094 # type: textblock
24095 #: ../fuse/guestmount.pod:204
24096 msgid "Display the program version and exit."
24097 msgstr ""
24098
24099 # type: =item
24100 #: ../fuse/guestmount.pod:206
24101 msgid "B<-x> | B<--trace>"
24102 msgstr ""
24103
24104 # type: textblock
24105 #: ../fuse/guestmount.pod:208
24106 msgid "Trace libguestfs calls."
24107 msgstr ""
24108
24109 # type: textblock
24110 #: ../fuse/guestmount.pod:210
24111 msgid "This also stops the daemon from forking into the background."
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../fuse/guestmount.pod:216
24116 msgid ""
24117 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24118 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24119 "net/>."
24120 msgstr ""
24121
24122 # type: textblock
24123 #: ../inspector/virt-inspector.pl:35
24124 msgid ""
24125 "virt-inspector - Display operating system version and other information "
24126 "about a virtual machine"
24127 msgstr ""
24128
24129 # type: verbatim
24130 #: ../inspector/virt-inspector.pl:39
24131 #, no-wrap
24132 msgid ""
24133 " virt-inspector [--connect URI] domname\n"
24134 "\n"
24135 msgstr ""
24136
24137 # type: verbatim
24138 #: ../inspector/virt-inspector.pl:41
24139 #, no-wrap
24140 msgid ""
24141 " virt-inspector guest.img [guest.img ...]\n"
24142 "\n"
24143 msgstr ""
24144
24145 # type: textblock
24146 #: ../inspector/virt-inspector.pl:45
24147 msgid ""
24148 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24149 "determine the version of the operating system and other information about "
24150 "the virtual machine."
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../inspector/virt-inspector.pl:49
24155 msgid "Virt-inspector produces XML output for feeding into other programs."
24156 msgstr ""
24157
24158 # type: textblock
24159 #: ../inspector/virt-inspector.pl:51
24160 msgid ""
24161 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24162 "libvirt domain (see: C<virsh list --all>)."
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../inspector/virt-inspector.pl:54
24167 msgid ""
24168 "You can also run virt-inspector directly on disk images from a single "
24169 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24170 "has several block devices, in which case you should list them one after "
24171 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24172 "to the guest's C</dev/sdb> and so on."
24173 msgstr ""
24174
24175 # type: textblock
24176 #: ../inspector/virt-inspector.pl:60
24177 msgid ""
24178 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24179 "inspect several virtual machines, you have to run virt-inspector several "
24180 "times (for example, from a shell script for-loop)."
24181 msgstr ""
24182
24183 # type: textblock
24184 #: ../inspector/virt-inspector.pl:65
24185 msgid ""
24186 "Because virt-inspector needs direct access to guest images, it won't "
24187 "normally work over remote libvirt connections."
24188 msgstr ""
24189
24190 # type: textblock
24191 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
24192 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
24193 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
24194 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
24195 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24196 msgid "Display brief help."
24197 msgstr ""
24198
24199 # type: =item
24200 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
24201 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
24202 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24203 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
24204 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24205 #: ../tools/virt-list-partitions.pl:67
24206 msgid "B<--version>"
24207 msgstr ""
24208
24209 # type: textblock
24210 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
24211 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
24212 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24213 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
24214 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24215 #: ../tools/virt-list-partitions.pl:69
24216 msgid "Display version number and exit."
24217 msgstr ""
24218
24219 # type: =item
24220 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
24221 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
24222 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
24223 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
24224 #: ../tools/virt-list-partitions.pl:75
24225 msgid "B<--connect URI> | B<-c URI>"
24226 msgstr ""
24227
24228 # type: textblock
24229 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
24230 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
24231 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
24232 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
24233 #: ../tools/virt-list-partitions.pl:77
24234 msgid ""
24235 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24236 "to the default libvirt hypervisor."
24237 msgstr ""
24238
24239 # type: textblock
24240 #: ../inspector/virt-inspector.pl:97
24241 msgid ""
24242 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24243 "you specify guest block devices directly, then libvirt is not used at all."
24244 msgstr ""
24245
24246 # type: =item
24247 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
24248 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
24249 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
24250 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
24251 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
24252 #: ../tools/virt-list-partitions.pl:87
24253 msgid "B<--format> raw"
24254 msgstr ""
24255
24256 # type: textblock
24257 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
24258 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
24259 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
24260 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
24261 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24262 msgid ""
24263 "Specify the format of disk images given on the command line.  If this is "
24264 "omitted then the format is autodetected from the content of the disk image."
24265 msgstr ""
24266
24267 # type: textblock
24268 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
24269 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
24270 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
24271 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
24272 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24273 msgid ""
24274 "If disk images are requested from libvirt, then this program asks libvirt "
24275 "for this information.  In this case, the value of the format parameter is "
24276 "ignored."
24277 msgstr ""
24278
24279 # type: textblock
24280 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
24281 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
24282 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
24283 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24284 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
24285 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24286 msgid ""
24287 "If working with untrusted raw-format guest disk images, you should ensure "
24288 "the format is always specified."
24289 msgstr ""
24290
24291 # type: =head2
24292 #: ../inspector/virt-inspector.pl:350 ../tools/virt-edit.pl:343
24293 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
24294 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
24295 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
24296 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
24297 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
24298 #: ../tools/virt-list-partitions.pl:247
24299 msgid "SHELL QUOTING"
24300 msgstr ""
24301
24302 # type: textblock
24303 #: ../inspector/virt-inspector.pl:352 ../tools/virt-edit.pl:345
24304 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
24305 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
24306 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
24307 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
24308 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24309 msgid ""
24310 "Libvirt guest names can contain arbitrary characters, some of which have "
24311 "meaning to the shell such as C<#> and space.  You may need to quote or "
24312 "escape these characters on the command line.  See the shell manual page L<sh"
24313 "(1)> for details."
24314 msgstr ""
24315
24316 # type: textblock
24317 #: ../inspector/virt-inspector.pl:359 ../tools/virt-df.pl:642
24318 msgid ""
24319 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24320 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24321 msgstr ""
24322
24323 # type: textblock
24324 #: ../inspector/virt-inspector.pl:372 ../tools/virt-edit.pl:364
24325 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
24326 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
24327 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
24328 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
24329 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24330 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24331 msgstr ""
24332
24333 # type: textblock
24334 #: ../inspector/virt-inspector.pl:376
24335 msgid "Matthew Booth L<mbooth@redhat.com>"
24336 msgstr ""
24337
24338 # type: textblock
24339 #: ../inspector/virt-inspector.pl:382 ../tools/virt-win-reg.pl:516
24340 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24341 msgid "Copyright (C) 2010 Red Hat Inc."
24342 msgstr ""
24343
24344 # type: textblock
24345 #: ../tools/virt-edit.pl:34
24346 msgid "virt-edit - Edit a file in a virtual machine"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../tools/virt-edit.pl:38
24351 #, no-wrap
24352 msgid ""
24353 " virt-edit [--options] domname file\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: verbatim
24358 #: ../tools/virt-edit.pl:40
24359 #, no-wrap
24360 msgid ""
24361 " virt-edit [--options] disk.img [disk.img ...] file\n"
24362 "\n"
24363 msgstr ""
24364
24365 # type: verbatim
24366 #: ../tools/virt-edit.pl:42
24367 #, no-wrap
24368 msgid ""
24369 " virt-edit [domname|disk.img] file -e 'expr'\n"
24370 "\n"
24371 msgstr ""
24372
24373 # type: textblock
24374 #: ../tools/virt-edit.pl:46
24375 msgid ""
24376 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24377 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24378 "doing this, but doesn't catch all cases."
24379 msgstr ""
24380
24381 # type: textblock
24382 #: ../tools/virt-edit.pl:52
24383 msgid ""
24384 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24385 "the named virtual machine (or disk image)."
24386 msgstr ""
24387
24388 # type: textblock
24389 #: ../tools/virt-edit.pl:55
24390 msgid ""
24391 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24392 "you should look at the L<guestfish(1)> tool."
24393 msgstr ""
24394
24395 # type: textblock
24396 #: ../tools/virt-edit.pl:60
24397 msgid "Edit the named files interactively:"
24398 msgstr ""
24399
24400 # type: verbatim
24401 #: ../tools/virt-edit.pl:62
24402 #, no-wrap
24403 msgid ""
24404 " virt-edit mydomain /boot/grub/grub.conf\n"
24405 "\n"
24406 msgstr ""
24407
24408 # type: verbatim
24409 #: ../tools/virt-edit.pl:64
24410 #, no-wrap
24411 msgid ""
24412 " virt-edit mydomain /etc/passwd\n"
24413 "\n"
24414 msgstr ""
24415
24416 # type: textblock
24417 #: ../tools/virt-edit.pl:66
24418 msgid ""
24419 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24420 "below).  To change the init default level to 5:"
24421 msgstr ""
24422
24423 # type: verbatim
24424 #: ../tools/virt-edit.pl:70
24425 #, no-wrap
24426 msgid ""
24427 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24428 "\n"
24429 msgstr ""
24430
24431 # type: =item
24432 #: ../tools/virt-edit.pl:96
24433 msgid "B<--backup extension> | B<-b extension>"
24434 msgstr ""
24435
24436 # type: textblock
24437 #: ../tools/virt-edit.pl:98
24438 msgid ""
24439 "Create a backup of the original file I<in the guest disk image>.  The backup "
24440 "has the original filename with C<extension> added."
24441 msgstr ""
24442
24443 # type: textblock
24444 #: ../tools/virt-edit.pl:101
24445 msgid ""
24446 "Usually the first character of C<extension> would be a dot C<.> so you would "
24447 "write:"
24448 msgstr ""
24449
24450 # type: verbatim
24451 #: ../tools/virt-edit.pl:104
24452 #, no-wrap
24453 msgid ""
24454 " virt-edit -b .orig [etc]\n"
24455 "\n"
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../tools/virt-edit.pl:106
24460 msgid "By default, no backup file is made."
24461 msgstr ""
24462
24463 # type: textblock
24464 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
24465 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
24466 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
24467 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
24468 #: ../tools/virt-list-partitions.pl:80
24469 msgid ""
24470 "If you specify guest block devices directly, then libvirt is not used at all."
24471 msgstr ""
24472
24473 # type: =item
24474 #: ../tools/virt-edit.pl:141
24475 msgid "B<--expr EXPR> | B<-e EXPR>"
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../tools/virt-edit.pl:143
24480 msgid ""
24481 "Instead of launching the external editor, non-interactively apply the Perl "
24482 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24483 "EDITING> below."
24484 msgstr ""
24485
24486 # type: textblock
24487 #: ../tools/virt-edit.pl:147
24488 msgid ""
24489 "Be careful to properly quote the expression to prevent it from being altered "
24490 "by the shell."
24491 msgstr ""
24492
24493 # type: =head1
24494 #: ../tools/virt-edit.pl:268
24495 msgid "NON-INTERACTIVE EDITING"
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../tools/virt-edit.pl:270
24500 msgid ""
24501 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24502 "administrator can interactively edit the file."
24503 msgstr ""
24504
24505 # type: textblock
24506 #: ../tools/virt-edit.pl:273
24507 msgid ""
24508 "There are two ways also to use C<virt-edit> from scripts in order to make "
24509 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24510 "like this, it's less error-prone to write scripts directly using the "
24511 "libguestfs API and Augeas for configuration file editing.)"
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../tools/virt-edit.pl:279
24516 msgid ""
24517 "The first method is to temporarily set C<$EDITOR> to any script or program "
24518 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24519 "update C<tmpfile> in place however it likes."
24520 msgstr ""
24521
24522 # type: textblock
24523 #: ../tools/virt-edit.pl:283
24524 msgid ""
24525 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24526 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24527 "instances of C<foo> with C<bar> in a file:"
24528 msgstr ""
24529
24530 # type: verbatim
24531 #: ../tools/virt-edit.pl:287
24532 #, no-wrap
24533 msgid ""
24534 " virt-edit domname filename -e 's/foo/bar/'\n"
24535 "\n"
24536 msgstr ""
24537
24538 # type: textblock
24539 #: ../tools/virt-edit.pl:289
24540 msgid ""
24541 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24542 "For example to delete root's password you could do:"
24543 msgstr ""
24544
24545 # type: verbatim
24546 #: ../tools/virt-edit.pl:292
24547 #, no-wrap
24548 msgid ""
24549 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24550 "\n"
24551 msgstr ""
24552
24553 # type: textblock
24554 #: ../tools/virt-edit.pl:294
24555 msgid ""
24556 "What really happens is that the snippet is evaluated as a Perl expression "
24557 "for each line of the file.  The line, including the final C<\\n>, is passed "
24558 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../tools/virt-edit.pl:299
24563 msgid ""
24564 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24565 "C<apache> user account from the password file you can do:"
24566 msgstr ""
24567
24568 # type: verbatim
24569 #: ../tools/virt-edit.pl:302
24570 #, no-wrap
24571 msgid ""
24572 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24573 "\n"
24574 msgstr ""
24575
24576 # type: textblock
24577 #: ../tools/virt-edit.pl:304
24578 msgid ""
24579 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24580 "the end of the file is rather difficult this way since there is no concept "
24581 "of \"last line of the file\" - your expression just doesn't get called "
24582 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24583 "want to do this."
24584 msgstr ""
24585
24586 # type: textblock
24587 #: ../tools/virt-edit.pl:310
24588 msgid ""
24589 "The variable C<$lineno> contains the current line number.  As is "
24590 "traditional, the first line in the file is number C<1>."
24591 msgstr ""
24592
24593 # type: textblock
24594 #: ../tools/virt-edit.pl:313
24595 msgid ""
24596 "The return value from the expression is ignored, but the expression may call "
24597 "C<die> in order to abort the whole program, leaving the original file "
24598 "untouched."
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../tools/virt-edit.pl:317
24603 msgid ""
24604 "Remember when matching the end of a line that C<$_> may contain the final C<"
24605 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24606 "newline then neither of these.  Thus to match or substitute some text at the "
24607 "end of a line, use this regular expression:"
24608 msgstr ""
24609
24610 # type: verbatim
24611 #: ../tools/virt-edit.pl:322
24612 #, no-wrap
24613 msgid ""
24614 " /some text(\\r?\\n)?$/\n"
24615 "\n"
24616 msgstr ""
24617
24618 # type: textblock
24619 #: ../tools/virt-edit.pl:324
24620 msgid ""
24621 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
24622 "$_> itself (since that would remove all newlines from the file):"
24623 msgstr ""
24624
24625 # type: verbatim
24626 #: ../tools/virt-edit.pl:328
24627 #, no-wrap
24628 msgid ""
24629 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24630 "\n"
24631 msgstr ""
24632
24633 # type: =item
24634 #: ../tools/virt-edit.pl:334
24635 msgid "C<EDITOR>"
24636 msgstr ""
24637
24638 # type: textblock
24639 #: ../tools/virt-edit.pl:336
24640 msgid ""
24641 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
24642 "\"emacs -nw\">"
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../tools/virt-edit.pl:339
24647 msgid "If not set, C<vi> is used."
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../tools/virt-edit.pl:352
24652 msgid ""
24653 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24654 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
24655 "L<perlre(1)>."
24656 msgstr ""
24657
24658 # type: =head1
24659 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
24660 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
24661 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
24662 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
24663 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
24664 #: ../tools/virt-list-partitions.pl:265
24665 msgid "AUTHOR"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
24670 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24671 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24672 msgstr ""
24673
24674 # type: textblock
24675 #: ../tools/virt-win-reg.pl:37
24676 msgid ""
24677 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
24678 msgstr ""
24679
24680 # type: verbatim
24681 #: ../tools/virt-win-reg.pl:41
24682 #, no-wrap
24683 msgid ""
24684 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24685 "\n"
24686 msgstr ""
24687
24688 # type: verbatim
24689 #: ../tools/virt-win-reg.pl:43
24690 #, no-wrap
24691 msgid ""
24692 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24693 "\n"
24694 msgstr ""
24695
24696 # type: verbatim
24697 #: ../tools/virt-win-reg.pl:45
24698 #, no-wrap
24699 msgid ""
24700 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24701 "\n"
24702 msgstr ""
24703
24704 # type: verbatim
24705 #: ../tools/virt-win-reg.pl:47
24706 #, no-wrap
24707 msgid ""
24708 " virt-win-reg --merge domname [input.reg ...]\n"
24709 "\n"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #: ../tools/virt-win-reg.pl:49
24714 #, no-wrap
24715 msgid ""
24716 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../tools/virt-win-reg.pl:53
24722 msgid ""
24723 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24724 "virtual machines.  If you do this, you I<will> get irreversible disk "
24725 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24726 "but doesn't catch all cases."
24727 msgstr ""
24728
24729 # type: textblock
24730 #: ../tools/virt-win-reg.pl:58
24731 msgid ""
24732 "Modifying the Windows Registry is an inherently risky operation.  The format "
24733 "is deliberately obscure and undocumented, and Registry changes can leave the "
24734 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24735 "you have a reliable backup first."
24736 msgstr ""
24737
24738 # type: textblock
24739 #: ../tools/virt-win-reg.pl:65
24740 msgid ""
24741 "This program can export and merge Windows Registry entries from a Windows "
24742 "guest."
24743 msgstr ""
24744
24745 # type: textblock
24746 #: ../tools/virt-win-reg.pl:68
24747 msgid ""
24748 "The first parameter is the libvirt guest name or the raw disk image of a "
24749 "Windows guest."
24750 msgstr ""
24751
24752 # type: textblock
24753 #: ../tools/virt-win-reg.pl:71
24754 msgid ""
24755 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
24756 "exported (recursively).  For example:"
24757 msgstr ""
24758
24759 # type: verbatim
24760 #: ../tools/virt-win-reg.pl:74
24761 #, no-wrap
24762 msgid ""
24763 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24764 "\n"
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../tools/virt-win-reg.pl:76
24769 msgid ""
24770 "You can also display single values from within registry keys, for example:"
24771 msgstr ""
24772
24773 # type: verbatim
24774 #: ../tools/virt-win-reg.pl:79
24775 #, no-wrap
24776 msgid ""
24777 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24778 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24779 " Windows 7 Enterprise\n"
24780 "\n"
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-win-reg.pl:83
24785 msgid ""
24786 "With C<--merge>, you can merge a textual regedit file into the Windows "
24787 "Registry:"
24788 msgstr ""
24789
24790 # type: verbatim
24791 #: ../tools/virt-win-reg.pl:86
24792 #, no-wrap
24793 msgid ""
24794 " $ virt-win-reg --merge Windows7 changes.reg\n"
24795 "\n"
24796 msgstr ""
24797
24798 # type: =head2
24799 #: ../tools/virt-win-reg.pl:88
24800 msgid "SUPPORTED SYSTEMS"
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../tools/virt-win-reg.pl:90
24805 msgid ""
24806 "The program currently supports Windows NT-derived guests starting with "
24807 "Windows XP through to at least Windows 7."
24808 msgstr ""
24809
24810 # type: textblock
24811 #: ../tools/virt-win-reg.pl:93
24812 msgid ""
24813 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
24814 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
24815 "and C<HKEY_USERS\\.DEFAULT>."
24816 msgstr ""
24817
24818 # type: textblock
24819 #: ../tools/virt-win-reg.pl:97
24820 msgid ""
24821 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24822 "C<HKEY_USERS>."
24823 msgstr ""
24824
24825 # type: textblock
24826 #: ../tools/virt-win-reg.pl:100
24827 msgid ""
24828 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24829 "time."
24830 msgstr ""
24831
24832 # type: =head2
24833 #: ../tools/virt-win-reg.pl:103
24834 msgid "NOTE"
24835 msgstr ""
24836
24837 # type: textblock
24838 #: ../tools/virt-win-reg.pl:105
24839 msgid ""
24840 "This program is only meant for simple access to the registry.  If you want "
24841 "to do complicated things with the registry, we suggest you download the "
24842 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
24843 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
24844 "L<hivexregedit(1)>."
24845 msgstr ""
24846
24847 # type: =head2
24848 #: ../tools/virt-win-reg.pl:111
24849 msgid "ENCODING"
24850 msgstr ""
24851
24852 # type: textblock
24853 #: ../tools/virt-win-reg.pl:113
24854 msgid ""
24855 "C<virt-win-reg> expects that regedit files have already been reencoded in "
24856 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
24857 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
24858 "Windows-style line endings, you may need to reencode the whole file before "
24859 "or after processing."
24860 msgstr ""
24861
24862 # type: textblock
24863 #: ../tools/virt-win-reg.pl:119
24864 msgid ""
24865 "To reencode a file from Windows format to Linux (before processing it with "
24866 "the C<--merge> option), you would do something like this:"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #: ../tools/virt-win-reg.pl:122
24871 #, no-wrap
24872 msgid ""
24873 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
24874 "\n"
24875 msgstr ""
24876
24877 # type: textblock
24878 #: ../tools/virt-win-reg.pl:124
24879 msgid ""
24880 "To go in the opposite direction, after exporting and before sending the file "
24881 "to a Windows user, do something like this:"
24882 msgstr ""
24883
24884 # type: verbatim
24885 #: ../tools/virt-win-reg.pl:127
24886 #, no-wrap
24887 msgid ""
24888 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
24889 "\n"
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../tools/virt-win-reg.pl:129
24894 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../tools/virt-win-reg.pl:131
24899 msgid ""
24900 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24901 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
24902 "style (CRLF) line endings, like this:"
24903 msgstr ""
24904
24905 # type: verbatim
24906 #: ../tools/virt-win-reg.pl:135
24907 #, no-wrap
24908 msgid ""
24909 " $ file software.reg\n"
24910 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24911 " with CRLF line terminators\n"
24912 "\n"
24913 msgstr ""
24914
24915 # type: textblock
24916 #: ../tools/virt-win-reg.pl:139
24917 msgid "This file would need conversion before you could C<--merge> it."
24918 msgstr ""
24919
24920 # type: textblock
24921 #: ../tools/virt-win-reg.pl:143
24922 msgid ""
24923 "Be careful when passing parameters containing C<\\> (backslash) in the "
24924 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24925 "(but not both) to protect them from the shell."
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../tools/virt-win-reg.pl:147
24930 msgid "Paths and value names are case-insensitive."
24931 msgstr ""
24932
24933 # type: =head2
24934 #: ../tools/virt-win-reg.pl:149
24935 msgid "CurrentControlSet etc."
24936 msgstr ""
24937
24938 # type: textblock
24939 #: ../tools/virt-win-reg.pl:151
24940 msgid ""
24941 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24942 "Registry at the level of the hive file, and therefore you cannot modify "
24943 "these."
24944 msgstr ""
24945
24946 # type: textblock
24947 #: ../tools/virt-win-reg.pl:155
24948 msgid ""
24949 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24950 "circumstances it might refer to another control set.  The way to find out is "
24951 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24952 msgstr ""
24953
24954 # type: verbatim
24955 #: ../tools/virt-win-reg.pl:159
24956 #, no-wrap
24957 msgid ""
24958 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24959 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24960 " \"Current\"=dword:00000001\n"
24961 " \"Default\"=dword:00000001\n"
24962 " \"Failed\"=dword:00000000\n"
24963 " \"LastKnownGood\"=dword:00000002\n"
24964 "\n"
24965 msgstr ""
24966
24967 # type: textblock
24968 #: ../tools/virt-win-reg.pl:166
24969 msgid "\"Default\" is the one which Windows will choose when it boots."
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../tools/virt-win-reg.pl:168
24974 msgid ""
24975 "Similarly, other C<Current...> keys in the path may need to be replaced."
24976 msgstr ""
24977
24978 # type: =item
24979 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
24980 msgid "B<--debug>"
24981 msgstr ""
24982
24983 # type: textblock
24984 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
24985 msgid "Enable debugging messages."
24986 msgstr ""
24987
24988 # type: =item
24989 #: ../tools/virt-win-reg.pl:232
24990 msgid "B<--merge>"
24991 msgstr ""
24992
24993 # type: textblock
24994 #: ../tools/virt-win-reg.pl:234
24995 msgid ""
24996 "In merge mode, this merges a textual regedit file into the Windows Registry "
24997 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24998 "displays or exports Registry entries instead."
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../tools/virt-win-reg.pl:238
25003 msgid ""
25004 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25005 "result in disk corruption.  However exporting (without this flag)  is always "
25006 "safe."
25007 msgstr ""
25008
25009 # type: =item
25010 #: ../tools/virt-win-reg.pl:246
25011 msgid "B<--encoding> UTF-16LE|ASCII"
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../tools/virt-win-reg.pl:248
25016 msgid ""
25017 "When merging (only), you may need to specify the encoding for strings to be "
25018 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25019 "(3)/ENCODING STRINGS>."
25020 msgstr ""
25021
25022 # type: textblock
25023 #: ../tools/virt-win-reg.pl:252
25024 msgid ""
25025 "The default is to use UTF-16LE, which should work with recent versions of "
25026 "Windows."
25027 msgstr ""
25028
25029 # type: textblock
25030 #: ../tools/virt-win-reg.pl:486
25031 msgid ""
25032 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25033 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25034 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25039 msgid ""
25040 "When reporting bugs, please enable debugging and capture the I<complete> "
25041 "output:"
25042 msgstr ""
25043
25044 # type: verbatim
25045 #: ../tools/virt-win-reg.pl:504
25046 #, no-wrap
25047 msgid ""
25048 " export LIBGUESTFS_DEBUG=1\n"
25049 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25050 "\n"
25051 msgstr ""
25052
25053 # type: textblock
25054 #: ../tools/virt-win-reg.pl:507
25055 msgid ""
25056 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25057 "redhat.com/>"
25058 msgstr ""
25059
25060 # type: textblock
25061 #: ../tools/virt-df.pl:36
25062 msgid "virt-df - Display free space on virtual filesystems"
25063 msgstr ""
25064
25065 # type: verbatim
25066 #: ../tools/virt-df.pl:40
25067 #, no-wrap
25068 msgid ""
25069 " virt-df [--options]\n"
25070 "\n"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #: ../tools/virt-df.pl:42
25075 #, no-wrap
25076 msgid ""
25077 " virt-df [--options] domname\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: verbatim
25082 #: ../tools/virt-df.pl:44
25083 #, no-wrap
25084 msgid ""
25085 " virt-df [--options] disk.img [disk.img ...]\n"
25086 "\n"
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../tools/virt-df.pl:48
25091 msgid ""
25092 "C<virt-df> is a command line tool to display free space on virtual machine "
25093 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25094 "space allocated to a virtual machine, but can look inside the virtual "
25095 "machine to see how much space is really being used."
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../tools/virt-df.pl:53
25100 msgid ""
25101 "It is like the L<df(1)> command, but for virtual machines, except that it "
25102 "also works for Windows virtual machines."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../tools/virt-df.pl:56
25107 msgid ""
25108 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25109 "of all active and inactive guests, and performs a C<df>-type operation on "
25110 "each one in turn, printing out the results."
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../tools/virt-df.pl:60
25115 msgid ""
25116 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25117 "either the single named libvirt domain, or on the disk image(s) listed on "
25118 "the command line (which must all belong to a single VM).  In this mode (with "
25119 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25120 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25121 msgstr ""
25122
25123 # type: textblock
25124 #: ../tools/virt-df.pl:67
25125 msgid ""
25126 "Use the C<--csv> option to get a format which can be easily parsed by other "
25127 "programs.  Other options are mostly similar to standard C<df> options.  See "
25128 "below for the complete list."
25129 msgstr ""
25130
25131 # type: =item
25132 #: ../tools/virt-df.pl:107
25133 msgid "B<--csv>"
25134 msgstr ""
25135
25136 # type: textblock
25137 #: ../tools/virt-df.pl:109
25138 msgid ""
25139 "Write out the results in CSV format (comma-separated values).  This format "
25140 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25141 "ABOUT CSV FORMAT> below."
25142 msgstr ""
25143
25144 # type: =item
25145 #: ../tools/virt-df.pl:134
25146 msgid "B<--human-readable> | B<-h>"
25147 msgstr ""
25148
25149 # type: textblock
25150 #: ../tools/virt-df.pl:136
25151 msgid "Print sizes in human-readable format."
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../tools/virt-df.pl:138
25156 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25157 msgstr ""
25158
25159 # type: =item
25160 #: ../tools/virt-df.pl:144
25161 msgid "B<--inodes> | B<-i>"
25162 msgstr ""
25163
25164 # type: textblock
25165 #: ../tools/virt-df.pl:146
25166 msgid "Print inodes instead of blocks."
25167 msgstr ""
25168
25169 # type: =item
25170 #: ../tools/virt-df.pl:152
25171 msgid "B<--one-per-guest>"
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../tools/virt-df.pl:154
25176 msgid ""
25177 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25178 "disks from several guests to a single libguestfs appliance."
25179 msgstr ""
25180
25181 # type: textblock
25182 #: ../tools/virt-df.pl:157
25183 msgid "You might use this option in the following circumstances:"
25184 msgstr ""
25185
25186 # type: textblock
25187 #: ../tools/virt-df.pl:163
25188 msgid ""
25189 "If you think an untrusted guest might actively try to exploit the libguestfs "
25190 "appliance kernel, then this prevents one guest from interfering with the "
25191 "stats printed for another guest."
25192 msgstr ""
25193
25194 # type: textblock
25195 #: ../tools/virt-df.pl:169
25196 msgid ""
25197 "If the kernel has a bug which stops it from accessing a filesystem in one "
25198 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25199 "and report stats for further guests."
25200 msgstr ""
25201
25202 # type: =item
25203 #: ../tools/virt-df.pl:180
25204 msgid "B<--uuid>"
25205 msgstr ""
25206
25207 # type: textblock
25208 #: ../tools/virt-df.pl:182
25209 msgid ""
25210 "Print UUIDs instead of names.  This is useful for following a guest even "
25211 "when the guest is migrated or renamed, or when two guests happen to have the "
25212 "same name."
25213 msgstr ""
25214
25215 # type: textblock
25216 #: ../tools/virt-df.pl:186
25217 msgid ""
25218 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25219 "images, we still print the disk image name even when this option is "
25220 "specified."
25221 msgstr ""
25222
25223 # type: =head1
25224 #: ../tools/virt-df.pl:609
25225 msgid "NOTE ABOUT CSV FORMAT"
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../tools/virt-df.pl:611
25230 msgid ""
25231 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25232 "should be easy to parse, but it is definitely not easy to parse."
25233 msgstr ""
25234
25235 # type: textblock
25236 #: ../tools/virt-df.pl:614
25237 msgid ""
25238 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25239 "reliably.  This example has two columns:"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #: ../tools/virt-df.pl:617
25244 #, no-wrap
25245 msgid ""
25246 " \"foo,bar\",baz\n"
25247 "\n"
25248 msgstr ""
25249
25250 # type: textblock
25251 #: ../tools/virt-df.pl:619
25252 msgid ""
25253 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25254 "reliably.  This example has one row:"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #: ../tools/virt-df.pl:622
25259 #, no-wrap
25260 msgid ""
25261 " \"foo\n"
25262 " bar\",baz\n"
25263 "\n"
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../tools/virt-df.pl:625
25268 msgid ""
25269 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25270 "packaged in major Linux distributions)."
25271 msgstr ""
25272
25273 # type: textblock
25274 #: ../tools/virt-df.pl:628
25275 msgid ""
25276 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25277 "or Python's built-in csv library)."
25278 msgstr ""
25279
25280 # type: textblock
25281 #: ../tools/virt-df.pl:631
25282 msgid "Most spreadsheets and databases can import CSV directly."
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../tools/virt-ls.pl:34
25287 msgid "virt-ls - List files in a virtual machine"
25288 msgstr ""
25289
25290 # type: verbatim
25291 #: ../tools/virt-ls.pl:38
25292 #, no-wrap
25293 msgid ""
25294 " virt-ls [--options] domname directory\n"
25295 "\n"
25296 msgstr ""
25297
25298 # type: verbatim
25299 #: ../tools/virt-ls.pl:40
25300 #, no-wrap
25301 msgid ""
25302 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25303 "\n"
25304 msgstr ""
25305
25306 # type: textblock
25307 #: ../tools/virt-ls.pl:44
25308 msgid ""
25309 "C<virt-ls> is a command line tool to list the names of files in a directory "
25310 "inside a virtual machine or disk image."
25311 msgstr ""
25312
25313 # type: textblock
25314 #: ../tools/virt-ls.pl:47
25315 msgid ""
25316 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25317 "For more complex cases you should look at the L<guestfish(1)> tool."
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../tools/virt-ls.pl:51
25322 msgid ""
25323 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25324 "simple listing is like the ordinary L<ls(1)> command:"
25325 msgstr ""
25326
25327 # type: verbatim
25328 #: ../tools/virt-ls.pl:54
25329 #, no-wrap
25330 msgid ""
25331 " $ virt-ls myguest /\n"
25332 " bin\n"
25333 " boot\n"
25334 " [etc.]\n"
25335 "\n"
25336 msgstr ""
25337
25338 # type: textblock
25339 #: ../tools/virt-ls.pl:59
25340 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25341 msgstr ""
25342
25343 # type: verbatim
25344 #: ../tools/virt-ls.pl:61
25345 #, no-wrap
25346 msgid ""
25347 " $ virt-ls -l myguest /\n"
25348 " total 204\n"
25349 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25350 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25351 " [etc.]\n"
25352 "\n"
25353 msgstr ""
25354
25355 # type: textblock
25356 #: ../tools/virt-ls.pl:67
25357 msgid ""
25358 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25359 "and directories recursively:"
25360 msgstr ""
25361
25362 # type: verbatim
25363 #: ../tools/virt-ls.pl:70
25364 #, no-wrap
25365 msgid ""
25366 " $ virt-ls -R myguest /tmp\n"
25367 " foo\n"
25368 " foo/bar\n"
25369 " [etc.]\n"
25370 "\n"
25371 msgstr ""
25372
25373 # type: textblock
25374 #: ../tools/virt-ls.pl:75
25375 msgid ""
25376 "You I<cannot> combine these options.  To do more complicated things, use "
25377 "L<guestfish(1)>."
25378 msgstr ""
25379
25380 # type: =item
25381 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
25382 #: ../tools/virt-list-partitions.pl:112
25383 msgid "B<-l> | B<--long>"
25384 msgstr ""
25385
25386 # type: =item
25387 #: ../tools/virt-ls.pl:133
25388 msgid "B<-R> | B<--recursive>"
25389 msgstr ""
25390
25391 # type: textblock
25392 #: ../tools/virt-ls.pl:135
25393 msgid ""
25394 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25395 "simple, flat list of the files in the named directory."
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../tools/virt-ls.pl:138
25400 msgid ""
25401 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25402 "like the plain C<ls -l> command)."
25403 msgstr ""
25404
25405 # type: textblock
25406 #: ../tools/virt-ls.pl:141
25407 msgid ""
25408 "C<virt-ls -R> produces a recursive list of files starting at the named "
25409 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25410 "details."
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../tools/virt-ls.pl:145
25415 msgid "You cannot combine these options."
25416 msgstr ""
25417
25418 # type: textblock
25419 #: ../tools/virt-ls.pl:234
25420 msgid ""
25421 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
25422 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25423 "org/>."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
25428 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25429 msgid "Copyright (C) 2009 Red Hat Inc."
25430 msgstr ""
25431
25432 # type: textblock
25433 #: ../tools/virt-resize.pl:42
25434 msgid "virt-resize - Resize a virtual machine disk"
25435 msgstr ""
25436
25437 # type: verbatim
25438 #: ../tools/virt-resize.pl:46
25439 #, no-wrap
25440 msgid ""
25441 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25442 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25443 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25444 "\n"
25445 msgstr ""
25446
25447 # type: textblock
25448 #: ../tools/virt-resize.pl:52
25449 msgid ""
25450 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25451 "larger or smaller overall, and resizing or deleting any partitions contained "
25452 "within."
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../tools/virt-resize.pl:56
25457 msgid ""
25458 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25459 "not> be used on live virtual machines - for consistent results, shut the "
25460 "virtual machine down before resizing it."
25461 msgstr ""
25462
25463 # type: textblock
25464 #: ../tools/virt-resize.pl:60
25465 msgid ""
25466 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
25467 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
25468 "read those manual pages first."
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-resize.pl:68
25473 msgid ""
25474 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25475 "fill the extra 5GB of space."
25476 msgstr ""
25477
25478 # type: verbatim
25479 #: ../tools/virt-resize.pl:71
25480 #, no-wrap
25481 msgid ""
25482 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25483 " virt-list-partitions -lht olddisk\n"
25484 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25485 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25486 "\n"
25487 msgstr ""
25488
25489 # type: textblock
25490 #: ../tools/virt-resize.pl:76
25491 msgid ""
25492 "As above, but make the /boot partition 200MB bigger, while giving the "
25493 "remaining space to /dev/sda2:"
25494 msgstr ""
25495
25496 # type: verbatim
25497 #: ../tools/virt-resize.pl:79
25498 #, no-wrap
25499 msgid ""
25500 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25501 "\n"
25502 msgstr ""
25503
25504 # type: textblock
25505 #: ../tools/virt-resize.pl:81
25506 msgid "As above, but the output format will be uncompressed qcow2:"
25507 msgstr ""
25508
25509 # type: verbatim
25510 #: ../tools/virt-resize.pl:83
25511 #, no-wrap
25512 msgid ""
25513 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25514 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25515 "\n"
25516 msgstr ""
25517
25518 # type: =head1
25519 #: ../tools/virt-resize.pl:86
25520 msgid "DETAILED USAGE"
25521 msgstr ""
25522
25523 # type: =head2
25524 #: ../tools/virt-resize.pl:88
25525 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25526 msgstr ""
25527
25528 # type: =item
25529 #: ../tools/virt-resize.pl:92
25530 msgid "1. Shut down the virtual machine"
25531 msgstr ""
25532
25533 # type: =item
25534 #: ../tools/virt-resize.pl:94
25535 msgid "2. Locate input disk image"
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../tools/virt-resize.pl:96
25540 msgid ""
25541 "Locate the input disk image (ie. the file or device on the host containing "
25542 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25543 "dumpxml> like this to find the disk image name:"
25544 msgstr ""
25545
25546 # type: verbatim
25547 #: ../tools/virt-resize.pl:100
25548 #, no-wrap
25549 msgid ""
25550 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25551 " Found 1 nodes:\n"
25552 " -- NODE --\n"
25553 " <source dev=\"/dev/vg/lv_guest\" />\n"
25554 "\n"
25555 msgstr ""
25556
25557 # type: =item
25558 #: ../tools/virt-resize.pl:105
25559 msgid "3. Look at current sizing"
25560 msgstr ""
25561
25562 # type: textblock
25563 #: ../tools/virt-resize.pl:107
25564 msgid ""
25565 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25566 msgstr ""
25567
25568 # type: verbatim
25569 #: ../tools/virt-resize.pl:110
25570 #, no-wrap
25571 msgid ""
25572 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25573 " /dev/sda1 ext3 101.9M\n"
25574 " /dev/sda2 pv 7.9G\n"
25575 " /dev/sda device 8.0G\n"
25576 "\n"
25577 msgstr ""
25578
25579 # type: textblock
25580 #: ../tools/virt-resize.pl:115
25581 msgid ""
25582 "(This example is a virtual machine with an 8 GB disk which we would like to "
25583 "expand up to 10 GB)."
25584 msgstr ""
25585
25586 # type: =item
25587 #: ../tools/virt-resize.pl:118
25588 msgid "4. Create output disk"
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../tools/virt-resize.pl:120
25593 msgid ""
25594 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25595 "to store the resized output disk."
25596 msgstr ""
25597
25598 # type: textblock
25599 #: ../tools/virt-resize.pl:123
25600 msgid ""
25601 "To store the resized disk image in a file, create a file of a suitable size:"
25602 msgstr ""
25603
25604 # type: verbatim
25605 #: ../tools/virt-resize.pl:126
25606 #, no-wrap
25607 msgid ""
25608 " # rm -f outdisk\n"
25609 " # truncate -s 10G outdisk\n"
25610 "\n"
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-resize.pl:129
25615 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25616 msgstr ""
25617
25618 # type: verbatim
25619 #: ../tools/virt-resize.pl:131
25620 #, no-wrap
25621 msgid ""
25622 " # lvcreate -L 10G -n lv_name vg_name\n"
25623 "\n"
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../tools/virt-resize.pl:133
25628 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25629 msgstr ""
25630
25631 # type: verbatim
25632 #: ../tools/virt-resize.pl:135
25633 #, no-wrap
25634 msgid ""
25635 " # virsh pool-list\n"
25636 " # virsh vol-create-as poolname newvol 10G\n"
25637 "\n"
25638 msgstr ""
25639
25640 # type: =item
25641 #: ../tools/virt-resize.pl:138
25642 msgid "5. Resize"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../tools/virt-resize.pl:140
25647 msgid ""
25648 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25649 "file) and the output disk.  The output disk is the one created in the "
25650 "previous step."
25651 msgstr ""
25652
25653 # type: verbatim
25654 #: ../tools/virt-resize.pl:144
25655 #, no-wrap
25656 msgid ""
25657 " # virt-resize indisk outdisk\n"
25658 "\n"
25659 msgstr ""
25660
25661 # type: textblock
25662 #: ../tools/virt-resize.pl:146
25663 msgid ""
25664 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25665 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25666 "larger, then an extra, empty partition is created at the end of the disk "
25667 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25668 "error."
25669 msgstr ""
25670
25671 # type: textblock
25672 #: ../tools/virt-resize.pl:152
25673 msgid ""
25674 "More realistically you'd want to expand existing partitions in the disk "
25675 "image by passing extra options (for the full list see the L</OPTIONS> "
25676 "section below)."
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../tools/virt-resize.pl:156
25681 msgid ""
25682 "L</--expand> is the most useful option.  It expands the named partition "
25683 "within the disk to fill any extra space:"
25684 msgstr ""
25685
25686 # type: verbatim
25687 #: ../tools/virt-resize.pl:159
25688 #, no-wrap
25689 msgid ""
25690 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25691 "\n"
25692 msgstr ""
25693
25694 # type: textblock
25695 #: ../tools/virt-resize.pl:161
25696 msgid ""
25697 "(In this case, an extra partition is I<not> created at the end of the disk, "
25698 "because there will be no unused space)."
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../tools/virt-resize.pl:164
25703 msgid ""
25704 "L</--resize> is the other commonly used option.  The following would "
25705 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25706 "rest of the available space:"
25707 msgstr ""
25708
25709 # type: verbatim
25710 #: ../tools/virt-resize.pl:168
25711 #, no-wrap
25712 msgid ""
25713 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25714 "     indisk outdisk\n"
25715 "\n"
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../tools/virt-resize.pl:171
25720 msgid ""
25721 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25722 "if virt-resize knows how, it will resize the contents, the equivalent of "
25723 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
25724 ">.  However virt-resize does not know how to resize some filesystems, so you "
25725 "would have to online resize them after booting the guest.  And virt-resize "
25726 "also does not resize anything inside an LVM PV, it just resizes the PV "
25727 "itself and leaves the user to resize any LVs inside that PV as desired."
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../tools/virt-resize.pl:180
25732 msgid "Other options are covered below."
25733 msgstr ""
25734
25735 # type: =item
25736 #: ../tools/virt-resize.pl:182
25737 msgid "6. Test"
25738 msgstr ""
25739
25740 # type: textblock
25741 #: ../tools/virt-resize.pl:184
25742 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25743 msgstr ""
25744
25745 # type: textblock
25746 #: ../tools/virt-resize.pl:186
25747 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25748 msgstr ""
25749
25750 # type: verbatim
25751 #: ../tools/virt-resize.pl:188
25752 #, no-wrap
25753 msgid ""
25754 " # virsh edit guestname\n"
25755 "\n"
25756 msgstr ""
25757
25758 # type: textblock
25759 #: ../tools/virt-resize.pl:190
25760 msgid ""
25761 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25762 "html#elementsDisks>"
25763 msgstr ""
25764
25765 # type: textblock
25766 #: ../tools/virt-resize.pl:193
25767 msgid "Then start up the domain with the new, resized disk:"
25768 msgstr ""
25769
25770 # type: verbatim
25771 #: ../tools/virt-resize.pl:195
25772 #, no-wrap
25773 msgid ""
25774 " # virsh start guestname\n"
25775 "\n"
25776 msgstr ""
25777
25778 # type: textblock
25779 #: ../tools/virt-resize.pl:197
25780 msgid ""
25781 "and check that it still works.  See also the L</NOTES> section below for "
25782 "additional information."
25783 msgstr ""
25784
25785 # type: =item
25786 #: ../tools/virt-resize.pl:200
25787 msgid "7. Resize LVs etc inside the guest"
25788 msgstr ""
25789
25790 # type: textblock
25791 #: ../tools/virt-resize.pl:202
25792 msgid "(This can also be done offline using L<guestfish(1)>)"
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-resize.pl:204
25797 msgid ""
25798 "Once the guest has booted you should see the new space available, at least "
25799 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25800 "may need to resize LVs inside PVs, and also resize filesystem types that "
25801 "virt-resize does not know how to expand."
25802 msgstr ""
25803
25804 # type: =head2
25805 #: ../tools/virt-resize.pl:211
25806 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25807 msgstr ""
25808
25809 # type: textblock
25810 #: ../tools/virt-resize.pl:213
25811 msgid ""
25812 "Shrinking is somewhat more complex than expanding, and only an overview is "
25813 "given here."
25814 msgstr ""
25815
25816 # type: textblock
25817 #: ../tools/virt-resize.pl:216
25818 msgid ""
25819 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25820 "filesystems).  The user has to shrink content before passing the disk image "
25821 "to virt-resize, and virt-resize will check that the content has been shrunk "
25822 "properly."
25823 msgstr ""
25824
25825 # type: textblock
25826 #: ../tools/virt-resize.pl:221
25827 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25828 msgstr ""
25829
25830 # type: textblock
25831 #: ../tools/virt-resize.pl:223
25832 msgid ""
25833 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25834 "steps 3 and 4 above to allocate a new disk image."
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../tools/virt-resize.pl:226
25839 msgid ""
25840 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25841 msgstr ""
25842
25843 # type: =head2
25844 #: ../tools/virt-resize.pl:229
25845 msgid "IGNORING OR DELETING PARTITIONS"
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../tools/virt-resize.pl:231
25850 msgid ""
25851 "virt-resize also gives a convenient way to ignore or delete partitions when "
25852 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25853 "up the copy where you don't care about the existing contents of a "
25854 "partition.  Deleting a partition removes it completely, but note that it "
25855 "also renumbers any partitions after the one which is deleted, which can "
25856 "leave some guests unbootable."
25857 msgstr ""
25858
25859 # type: =head2
25860 #: ../tools/virt-resize.pl:238
25861 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../tools/virt-resize.pl:240
25866 msgid ""
25867 "If the input disk is in qcow2 format, then you may prefer that the output is "
25868 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25869 "the fly.  The output format is simply determined by the format of the empty "
25870 "output container that you provide.  Thus to create qcow2 output, use:"
25871 msgstr ""
25872
25873 # type: verbatim
25874 #: ../tools/virt-resize.pl:246
25875 #, no-wrap
25876 msgid ""
25877 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25878 "\n"
25879 msgstr ""
25880
25881 # type: textblock
25882 #: ../tools/virt-resize.pl:248
25883 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../tools/virt-resize.pl:250
25888 msgid "Similarly, to get non-sparse raw output use:"
25889 msgstr ""
25890
25891 # type: verbatim
25892 #: ../tools/virt-resize.pl:252
25893 #, no-wrap
25894 msgid ""
25895 " fallocate -l size outdisk\n"
25896 "\n"
25897 msgstr ""
25898
25899 # type: textblock
25900 #: ../tools/virt-resize.pl:254
25901 msgid ""
25902 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25903 "dev/zero of=outdisk bs=1M count=..>)"
25904 msgstr ""
25905
25906 # type: textblock
25907 #: ../tools/virt-resize.pl:267
25908 msgid "Display help."
25909 msgstr ""
25910
25911 # type: =item
25912 #: ../tools/virt-resize.pl:281
25913 msgid "B<--resize part=size>"
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../tools/virt-resize.pl:283
25918 msgid ""
25919 "Resize the named partition (expanding or shrinking it) so that it has the "
25920 "given size."
25921 msgstr ""
25922
25923 # type: textblock
25924 #: ../tools/virt-resize.pl:286
25925 msgid ""
25926 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25927 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25928 "Exabytes; or as a percentage of the current size; or as a relative number or "
25929 "percentage.  For example:"
25930 msgstr ""
25931
25932 # type: verbatim
25933 #: ../tools/virt-resize.pl:291
25934 #, no-wrap
25935 msgid ""
25936 " --resize /dev/sda2=10G\n"
25937 "\n"
25938 msgstr ""
25939
25940 # type: verbatim
25941 #: ../tools/virt-resize.pl:293
25942 #, no-wrap
25943 msgid ""
25944 " --resize /dev/sda4=90%\n"
25945 "\n"
25946 msgstr ""
25947
25948 # type: verbatim
25949 #: ../tools/virt-resize.pl:295
25950 #, no-wrap
25951 msgid ""
25952 " --resize /dev/sda2=+1G\n"
25953 "\n"
25954 msgstr ""
25955
25956 # type: verbatim
25957 #: ../tools/virt-resize.pl:297
25958 #, no-wrap
25959 msgid ""
25960 " --resize /dev/sda2=-200M\n"
25961 "\n"
25962 msgstr ""
25963
25964 # type: verbatim
25965 #: ../tools/virt-resize.pl:299
25966 #, no-wrap
25967 msgid ""
25968 " --resize /dev/sda1=+128K\n"
25969 "\n"
25970 msgstr ""
25971
25972 # type: verbatim
25973 #: ../tools/virt-resize.pl:301
25974 #, no-wrap
25975 msgid ""
25976 " --resize /dev/sda1=+10%\n"
25977 "\n"
25978 msgstr ""
25979
25980 # type: verbatim
25981 #: ../tools/virt-resize.pl:303
25982 #, no-wrap
25983 msgid ""
25984 " --resize /dev/sda1=-10%\n"
25985 "\n"
25986 msgstr ""
25987
25988 # type: textblock
25989 #: ../tools/virt-resize.pl:305
25990 msgid ""
25991 "You can increase the size of any partition.  Virt-resize will expand the "
25992 "direct content of the partition if it knows how (see C<--expand> below)."
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-resize.pl:309
25997 msgid ""
25998 "You can only I<decrease> the size of partitions that contain filesystems or "
25999 "PVs which have already been shrunk.  Virt-resize will check this has been "
26000 "done before proceeding, or else will print an error (see also C<--resize-"
26001 "force>)."
26002 msgstr ""
26003
26004 # type: textblock
26005 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26006 #: ../tools/virt-resize.pl:423
26007 msgid "You can give this option multiple times."
26008 msgstr ""
26009
26010 # type: =item
26011 #: ../tools/virt-resize.pl:320
26012 msgid "B<--resize-force part=size>"
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../tools/virt-resize.pl:322
26017 msgid ""
26018 "This is the same as C<--resize> except that it will let you decrease the "
26019 "size of any partition.  Generally this means you will lose any data which "
26020 "was at the end of the partition you shrink, but you may not care about that "
26021 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26022 "as a swap partition)."
26023 msgstr ""
26024
26025 # type: textblock
26026 #: ../tools/virt-resize.pl:328
26027 msgid "See also the C<--ignore> option."
26028 msgstr ""
26029
26030 # type: =item
26031 #: ../tools/virt-resize.pl:334
26032 msgid "B<--expand part>"
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../tools/virt-resize.pl:336
26037 msgid ""
26038 "Expand the named partition so it uses up all extra space (space left over "
26039 "after any other resize changes that you request have been done)."
26040 msgstr ""
26041
26042 # type: textblock
26043 #: ../tools/virt-resize.pl:339
26044 msgid ""
26045 "If virt-resize knows how, it will expand the direct content of the "
26046 "partition.  For example, if the partition is an LVM PV, it will expand the "
26047 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26048 "content it doesn't know about alone."
26049 msgstr ""
26050
26051 # type: textblock
26052 #: ../tools/virt-resize.pl:344
26053 msgid "Currently virt-resize can resize:"
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../tools/virt-resize.pl:350
26058 msgid ""
26059 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26060 "partition."
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../tools/virt-resize.pl:355
26065 msgid ""
26066 "NTFS filesystems contained directly in a partition, if libguestfs was "
26067 "compiled with support for NTFS."
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-resize.pl:358
26072 msgid ""
26073 "The filesystem must have been shut down consistently last time it was used.  "
26074 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26075 "consistency check, so at the first boot after resizing Windows will check "
26076 "the disk."
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../tools/virt-resize.pl:365
26081 msgid ""
26082 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26083 "inside the PV.  The user will have to resize LVs as desired."
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26088 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26089 msgstr ""
26090
26091 # type: =item
26092 #: ../tools/virt-resize.pl:377
26093 msgid "B<--shrink part>"
26094 msgstr ""
26095
26096 # type: textblock
26097 #: ../tools/virt-resize.pl:379
26098 msgid ""
26099 "Shrink the named partition until the overall disk image fits in the "
26100 "destination.  The named partition B<must> contain a filesystem or PV which "
26101 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26102 "online tools).  Virt-resize will check this and give an error if it has not "
26103 "been done."
26104 msgstr ""
26105
26106 # type: textblock
26107 #: ../tools/virt-resize.pl:385
26108 msgid ""
26109 "The amount by which the overall disk must be shrunk (after carrying out all "
26110 "other operations requested by the user) is called the \"deficit\".  For "
26111 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26112 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26113 "would give an error unless the user specified a partition to shrink and that "
26114 "partition had more than a gigabyte of free space."
26115 msgstr ""
26116
26117 # type: =item
26118 #: ../tools/virt-resize.pl:399
26119 msgid "B<--ignore part>"
26120 msgstr ""
26121
26122 # type: textblock
26123 #: ../tools/virt-resize.pl:401
26124 msgid ""
26125 "Ignore the named partition.  Effectively this means the partition is "
26126 "allocated on the destination disk, but the content is not copied across from "
26127 "the source disk.  The content of the partition will be blank (all zero "
26128 "bytes)."
26129 msgstr ""
26130
26131 # type: =item
26132 #: ../tools/virt-resize.pl:412
26133 msgid "B<--delete part>"
26134 msgstr ""
26135
26136 # type: textblock
26137 #: ../tools/virt-resize.pl:414
26138 msgid ""
26139 "Delete the named partition.  It would be more accurate to describe this as "
26140 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26141 "the original disk image is left intact."
26142 msgstr ""
26143
26144 # type: textblock
26145 #: ../tools/virt-resize.pl:418
26146 msgid ""
26147 "Note that when you delete a partition, then anything contained in the "
26148 "partition is also deleted.  Furthermore, this causes any partitions that "
26149 "come after to be I<renumbered>, which can easily make your guest unbootable."
26150 msgstr ""
26151
26152 # type: =item
26153 #: ../tools/virt-resize.pl:429
26154 msgid "B<--LV-expand logvol>"
26155 msgstr ""
26156
26157 # type: textblock
26158 #: ../tools/virt-resize.pl:431
26159 msgid ""
26160 "This takes the logical volume and, as a final step, expands it to fill all "
26161 "the space available in its volume group.  A typical usage, assuming a Linux "
26162 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26163 "lv_root> would be:"
26164 msgstr ""
26165
26166 # type: verbatim
26167 #: ../tools/virt-resize.pl:436
26168 #, no-wrap
26169 msgid ""
26170 " virt-resize indisk outdisk \\\n"
26171 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26172 "\n"
26173 msgstr ""
26174
26175 # type: textblock
26176 #: ../tools/virt-resize.pl:439
26177 msgid ""
26178 "This would first expand the partition (and PV), and then expand the root "
26179 "device to fill the extra space in the PV."
26180 msgstr ""
26181
26182 # type: textblock
26183 #: ../tools/virt-resize.pl:442
26184 msgid ""
26185 "The contents of the LV are also resized if virt-resize knows how to do "
26186 "that.  You can stop virt-resize from trying to expand the content by using "
26187 "the option C<--no-expand-content>."
26188 msgstr ""
26189
26190 # type: textblock
26191 #: ../tools/virt-resize.pl:446
26192 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-resize.pl:449
26197 msgid ""
26198 "You can give this option multiple times, I<but> it doesn't make sense to do "
26199 "this unless the logical volumes you specify are all in different volume "
26200 "groups."
26201 msgstr ""
26202
26203 # type: =item
26204 #: ../tools/virt-resize.pl:457
26205 msgid "B<--no-copy-boot-loader>"
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../tools/virt-resize.pl:459
26210 msgid ""
26211 "By default, virt-resize copies over some sectors at the start of the disk "
26212 "(up to the beginning of the first partition).  Commonly these sectors "
26213 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26214 "in order for the guest to boot correctly."
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../tools/virt-resize.pl:464
26219 msgid ""
26220 "If you specify this flag, then this initial copy is not done.  You may need "
26221 "to reinstall the boot loader in this case."
26222 msgstr ""
26223
26224 # type: =item
26225 #: ../tools/virt-resize.pl:472
26226 msgid "B<--no-extra-partition>"
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-resize.pl:474
26231 msgid ""
26232 "By default, virt-resize creates an extra partition if there is any extra, "
26233 "unused space after all resizing has happened.  Use this option to prevent "
26234 "the extra partition from being created.  If you do this then the extra space "
26235 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26236 "tool in the guest."
26237 msgstr ""
26238
26239 # type: textblock
26240 #: ../tools/virt-resize.pl:480
26241 msgid ""
26242 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26243 "will be created."
26244 msgstr ""
26245
26246 # type: =item
26247 #: ../tools/virt-resize.pl:487
26248 msgid "B<--no-expand-content>"
26249 msgstr ""
26250
26251 # type: textblock
26252 #: ../tools/virt-resize.pl:489
26253 msgid ""
26254 "By default, virt-resize will try to expand the direct contents of "
26255 "partitions, if it knows how (see C<--expand> option above)."
26256 msgstr ""
26257
26258 # type: textblock
26259 #: ../tools/virt-resize.pl:492
26260 msgid ""
26261 "If you give the C<--no-expand-content> option then virt-resize will not "
26262 "attempt this."
26263 msgstr ""
26264
26265 # type: =item
26266 #: ../tools/virt-resize.pl:499
26267 msgid "B<-d> | B<--debug>"
26268 msgstr ""
26269
26270 # type: =item
26271 #: ../tools/virt-resize.pl:507
26272 msgid "B<-n> | B<--dryrun>"
26273 msgstr ""
26274
26275 # type: textblock
26276 #: ../tools/virt-resize.pl:509
26277 msgid "Print a summary of what would be done, but don't do anything."
26278 msgstr ""
26279
26280 # type: =item
26281 #: ../tools/virt-resize.pl:515
26282 msgid "B<-q> | B<--quiet>"
26283 msgstr ""
26284
26285 # type: textblock
26286 #: ../tools/virt-resize.pl:517
26287 msgid "Don't print the summary."
26288 msgstr ""
26289
26290 # type: textblock
26291 #: ../tools/virt-resize.pl:525
26292 msgid ""
26293 "Specify the format of the input disk image.  If this flag is not given then "
26294 "it is auto-detected from the image itself."
26295 msgstr ""
26296
26297 # type: textblock
26298 #: ../tools/virt-resize.pl:531
26299 msgid ""
26300 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26301 "AND NON-SPARSE RAW FORMATS>."
26302 msgstr ""
26303
26304 # type: =item
26305 #: ../tools/virt-resize.pl:538
26306 msgid "B<--output-format> raw"
26307 msgstr ""
26308
26309 # type: textblock
26310 #: ../tools/virt-resize.pl:540
26311 msgid ""
26312 "Specify the format of the output disk image.  If this flag is not given then "
26313 "it is auto-detected from the image itself."
26314 msgstr ""
26315
26316 # type: textblock
26317 #: ../tools/virt-resize.pl:546
26318 msgid ""
26319 "Note that you still need to create the output disk with the right format.  "
26320 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26321 msgstr ""
26322
26323 # type: =head1
26324 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26325 msgid "NOTES"
26326 msgstr ""
26327
26328 # type: =head2
26329 #: ../tools/virt-resize.pl:1424
26330 msgid "\"Partition 1 does not end on cylinder boundary.\""
26331 msgstr ""
26332
26333 # type: textblock
26334 #: ../tools/virt-resize.pl:1426
26335 msgid ""
26336 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26337 "means the partitions will not be aligned to the ancient CHS geometry.  "
26338 "However CHS geometry is meaningless for disks manufactured since the early "
26339 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26340 "cylinders is not required by any modern operating system."
26341 msgstr ""
26342
26343 # type: =head2
26344 #: ../tools/virt-resize.pl:1433
26345 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-resize.pl:1435
26350 msgid ""
26351 "In Windows Vista and later versions, Microsoft switched to using a separate "
26352 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26353 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26354 "the boot partition.  Doing so seems to break the guest completely.  However "
26355 "expanding the second partition (ie. C: drive) should work."
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-resize.pl:1442
26360 msgid ""
26361 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26362 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26363 "it find errors) is nothing to worry about."
26364 msgstr ""
26365
26366 # type: =head2
26367 #: ../tools/virt-resize.pl:1446
26368 msgid "GUEST BOOT STUCK AT \"GRUB\""
26369 msgstr ""
26370
26371 # type: textblock
26372 #: ../tools/virt-resize.pl:1448
26373 msgid ""
26374 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26375 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26376 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26377 "although we think is to do with partition alignment."
26378 msgstr ""
26379
26380 # type: verbatim
26381 #: ../tools/virt-resize.pl:1453
26382 #, no-wrap
26383 msgid ""
26384 " guestfish -i -a newdisk\n"
26385 " ><fs> cat /boot/grub/device.map\n"
26386 " # check the contents of this file are sensible or\n"
26387 " # edit the file if necessary\n"
26388 " ><fs> grub-install / /dev/vda\n"
26389 " ><fs> exit\n"
26390 "\n"
26391 msgstr ""
26392
26393 # type: textblock
26394 #: ../tools/virt-resize.pl:1460
26395 msgid ""
26396 "For more flexible guest reconfiguration, including if you need to specify "
26397 "other parameters to grub-install, use L<virt-rescue(1)>."
26398 msgstr ""
26399
26400 # type: =head1
26401 #: ../tools/virt-resize.pl:1463
26402 msgid "ALTERNATIVE TOOLS"
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../tools/virt-resize.pl:1465
26407 msgid ""
26408 "There are several proprietary tools for resizing partitions.  We won't "
26409 "mention any here."
26410 msgstr ""
26411
26412 # type: textblock
26413 #: ../tools/virt-resize.pl:1468
26414 msgid ""
26415 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26416 "operations on disk images.  They can resize and move partitions, but I don't "
26417 "think they can do anything with the contents, and they certainly don't "
26418 "understand LVM."
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-resize.pl:1473
26423 msgid ""
26424 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26425 "but at a much lower level.  You will probably end up hand-calculating sector "
26426 "offsets, which is something that virt-resize was designed to avoid.  If you "
26427 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26428 "C<--debug> flag."
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-resize.pl:1488
26433 msgid ""
26434 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26435 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26436 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
26437 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
26438 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../tools/virt-list-filesystems.pl:32
26443 msgid ""
26444 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26445 msgstr ""
26446
26447 # type: verbatim
26448 #: ../tools/virt-list-filesystems.pl:36
26449 #, no-wrap
26450 msgid ""
26451 " virt-list-filesystems [--options] domname\n"
26452 "\n"
26453 msgstr ""
26454
26455 # type: verbatim
26456 #: ../tools/virt-list-filesystems.pl:38
26457 #, no-wrap
26458 msgid ""
26459 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26460 "\n"
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-list-filesystems.pl:42
26465 msgid ""
26466 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26467 "are contained in a virtual machine or disk image."
26468 msgstr ""
26469
26470 # type: textblock
26471 #: ../tools/virt-list-filesystems.pl:46
26472 msgid ""
26473 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26474 "functionality.  For more complex cases you should look at the L<guestfish(1)"
26475 "> tool."
26476 msgstr ""
26477
26478 # type: textblock
26479 #: ../tools/virt-list-filesystems.pl:105
26480 msgid ""
26481 "With this option, C<virt-list-filesystems> displays the type of each "
26482 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26483 msgstr ""
26484
26485 # type: =item
26486 #: ../tools/virt-list-filesystems.pl:112
26487 msgid "B<-a> | B<--all>"
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-list-filesystems.pl:114
26492 msgid ""
26493 "Normally we only show mountable filesystems.  If this option is given then "
26494 "swap devices are shown too."
26495 msgstr ""
26496
26497 # type: textblock
26498 #: ../tools/virt-list-filesystems.pl:188
26499 msgid ""
26500 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
26501 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
26502 ">, L<http://libguestfs.org/>."
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../tools/virt-cat.pl:33
26507 msgid "virt-cat - Display a file in a virtual machine"
26508 msgstr ""
26509
26510 # type: verbatim
26511 #: ../tools/virt-cat.pl:37
26512 #, no-wrap
26513 msgid ""
26514 " virt-cat [--options] domname file\n"
26515 "\n"
26516 msgstr ""
26517
26518 # type: verbatim
26519 #: ../tools/virt-cat.pl:39
26520 #, no-wrap
26521 msgid ""
26522 " virt-cat [--options] disk.img [disk.img ...] file\n"
26523 "\n"
26524 msgstr ""
26525
26526 # type: textblock
26527 #: ../tools/virt-cat.pl:43
26528 msgid ""
26529 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26530 "C<file> exists in the named virtual machine (or disk image)."
26531 msgstr ""
26532
26533 # type: textblock
26534 #: ../tools/virt-cat.pl:46
26535 msgid ""
26536 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26537 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26538 "tool."
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../tools/virt-cat.pl:52
26543 msgid ""
26544 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26545 msgstr ""
26546
26547 # type: verbatim
26548 #: ../tools/virt-cat.pl:55
26549 #, no-wrap
26550 msgid ""
26551 " virt-cat mydomain /etc/fstab\n"
26552 "\n"
26553 msgstr ""
26554
26555 # type: textblock
26556 #: ../tools/virt-cat.pl:57
26557 msgid "List syslog messages from a VM:"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #: ../tools/virt-cat.pl:59
26562 #, no-wrap
26563 msgid ""
26564 " virt-cat mydomain /var/log/messages | tail\n"
26565 "\n"
26566 msgstr ""
26567
26568 # type: textblock
26569 #: ../tools/virt-cat.pl:61
26570 msgid "Find out what DHCP IP address a VM acquired:"
26571 msgstr ""
26572
26573 # type: verbatim
26574 #: ../tools/virt-cat.pl:63
26575 #, no-wrap
26576 msgid ""
26577 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26578 "\n"
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-cat.pl:65
26583 msgid "Find out what packages were recently installed:"
26584 msgstr ""
26585
26586 # type: verbatim
26587 #: ../tools/virt-cat.pl:67
26588 #, no-wrap
26589 msgid ""
26590 " virt-cat mydomain /var/log/yum.log | tail\n"
26591 "\n"
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-cat.pl:69
26596 msgid "Find out who is logged on inside a virtual machine:"
26597 msgstr ""
26598
26599 # type: verbatim
26600 #: ../tools/virt-cat.pl:71
26601 #, no-wrap
26602 msgid ""
26603 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26604 " who /tmp/utmp\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-cat.pl:74
26610 msgid "or who was logged on:"
26611 msgstr ""
26612
26613 # type: verbatim
26614 #: ../tools/virt-cat.pl:76
26615 #, no-wrap
26616 msgid ""
26617 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26618 " last -f /tmp/wtmp\n"
26619 "\n"
26620 msgstr ""
26621
26622 # type: textblock
26623 #: ../tools/virt-cat.pl:187
26624 msgid ""
26625 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26626 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26627 msgstr ""
26628
26629 # type: textblock
26630 #: ../tools/virt-tar.pl:33
26631 msgid "virt-tar - Extract or upload files to a virtual machine"
26632 msgstr ""
26633
26634 # type: verbatim
26635 #: ../tools/virt-tar.pl:37
26636 #, no-wrap
26637 msgid ""
26638 " virt-tar [--options] -x domname directory tarball\n"
26639 "\n"
26640 msgstr ""
26641
26642 # type: verbatim
26643 #: ../tools/virt-tar.pl:39
26644 #, no-wrap
26645 msgid ""
26646 " virt-tar [--options] -u domname tarball directory\n"
26647 "\n"
26648 msgstr ""
26649
26650 # type: verbatim
26651 #: ../tools/virt-tar.pl:41
26652 #, no-wrap
26653 msgid ""
26654 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26655 "\n"
26656 msgstr ""
26657
26658 # type: verbatim
26659 #: ../tools/virt-tar.pl:43
26660 #, no-wrap
26661 msgid ""
26662 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26663 "\n"
26664 msgstr ""
26665
26666 # type: textblock
26667 #: ../tools/virt-tar.pl:47
26668 msgid "Download C</home> from the VM into a local tarball:"
26669 msgstr ""
26670
26671 # type: verbatim
26672 #: ../tools/virt-tar.pl:49
26673 #, no-wrap
26674 msgid ""
26675 " virt-tar -x domname /home home.tar\n"
26676 "\n"
26677 msgstr ""
26678
26679 # type: verbatim
26680 #: ../tools/virt-tar.pl:51
26681 #, no-wrap
26682 msgid ""
26683 " virt-tar -zx domname /home home.tar.gz\n"
26684 "\n"
26685 msgstr ""
26686
26687 # type: textblock
26688 #: ../tools/virt-tar.pl:53
26689 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26690 msgstr ""
26691
26692 # type: verbatim
26693 #: ../tools/virt-tar.pl:55
26694 #, no-wrap
26695 msgid ""
26696 " virt-tar -u domname uploadstuff.tar /tmp\n"
26697 "\n"
26698 msgstr ""
26699
26700 # type: verbatim
26701 #: ../tools/virt-tar.pl:57
26702 #, no-wrap
26703 msgid ""
26704 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26705 "\n"
26706 msgstr ""
26707
26708 # type: textblock
26709 #: ../tools/virt-tar.pl:61
26710 msgid ""
26711 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26712 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26713 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-tar.pl:66
26718 msgid ""
26719 "You can use C<-x> (extract) on live virtual machines, but you might get "
26720 "inconsistent results or errors if there is filesystem activity inside the "
26721 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26722 "work, but the only way to guarantee consistent results is if the virtual "
26723 "machine is shut down."
26724 msgstr ""
26725
26726 # type: textblock
26727 #: ../tools/virt-tar.pl:74
26728 msgid ""
26729 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26730 "parts of a guest filesystem.  There are many possibilities: making backups, "
26731 "uploading data files, snooping on guest activity, fixing or customizing "
26732 "guests, etc."
26733 msgstr ""
26734
26735 # type: textblock
26736 #: ../tools/virt-tar.pl:79
26737 msgid ""
26738 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26739 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26740 "should look at the L<guestfish(1)> tool."
26741 msgstr ""
26742
26743 # type: textblock
26744 #: ../tools/virt-tar.pl:83
26745 msgid ""
26746 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26747 "its contents (recursively) from the virtual machine into a local tarball.  "
26748 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26749 "virtual machine.  You cannot use these two options together."
26750 msgstr ""
26751
26752 # type: textblock
26753 #: ../tools/virt-tar.pl:89
26754 msgid ""
26755 "In addition, you may need to use the C<-z> (gZip) option to enable "
26756 "compression.  When uploading, you have to specify C<-z> if the upload file "
26757 "is compressed because virt-tar won't detect this on its own."
26758 msgstr ""
26759
26760 # type: textblock
26761 #: ../tools/virt-tar.pl:93
26762 msgid ""
26763 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26764 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26765 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26766 "the L<libguestfs(3)> API)."
26767 msgstr ""
26768
26769 # type: =item
26770 #: ../tools/virt-tar.pl:151
26771 msgid "B<-x> | B<--extract> | B<--download>"
26772 msgstr ""
26773
26774 # type: =item
26775 #: ../tools/virt-tar.pl:153
26776 msgid "B<-u> | B<--upload>"
26777 msgstr ""
26778
26779 # type: textblock
26780 #: ../tools/virt-tar.pl:155
26781 msgid ""
26782 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26783 "local tarball."
26784 msgstr ""
26785
26786 # type: textblock
26787 #: ../tools/virt-tar.pl:158
26788 msgid ""
26789 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26790 "Please read the L</WARNING> section above before using this option."
26791 msgstr ""
26792
26793 # type: textblock
26794 #: ../tools/virt-tar.pl:162
26795 msgid "You must specify exactly one of these options."
26796 msgstr ""
26797
26798 # type: =item
26799 #: ../tools/virt-tar.pl:168
26800 msgid "B<-z> | B<--gzip>"
26801 msgstr ""
26802
26803 # type: textblock
26804 #: ../tools/virt-tar.pl:170
26805 msgid "Specify that the input or output tarball is gzip-compressed."
26806 msgstr ""
26807
26808 # type: textblock
26809 #: ../tools/virt-tar.pl:283
26810 msgid ""
26811 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
26812 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26813 "org/>."
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-rescue.pl:33
26818 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26819 msgstr ""
26820
26821 # type: verbatim
26822 #: ../tools/virt-rescue.pl:37
26823 #, no-wrap
26824 msgid ""
26825 " virt-rescue [--options] domname\n"
26826 "\n"
26827 msgstr ""
26828
26829 # type: verbatim
26830 #: ../tools/virt-rescue.pl:39
26831 #, no-wrap
26832 msgid ""
26833 " virt-rescue [--options] disk.img [disk.img ...]\n"
26834 "\n"
26835 msgstr ""
26836
26837 # type: textblock
26838 #: ../tools/virt-rescue.pl:43
26839 msgid ""
26840 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
26841 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
26842 "you from doing this, but doesn't catch all cases."
26843 msgstr ""
26844
26845 # type: textblock
26846 #: ../tools/virt-rescue.pl:47
26847 msgid ""
26848 "However if you use the I<--ro> (read only) option, then you can attach a "
26849 "shell to a live virtual machine.  The results might be strange or "
26850 "inconsistent at times but you won't get disk corruption."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-rescue.pl:53
26855 msgid ""
26856 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
26857 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
26858 "recovery tools which you can use to examine or rescue a virtual machine or "
26859 "disk image."
26860 msgstr ""
26861
26862 # type: textblock
26863 #: ../tools/virt-rescue.pl:58
26864 msgid ""
26865 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
26866 "on disk image(s):"
26867 msgstr ""
26868
26869 # type: verbatim
26870 #: ../tools/virt-rescue.pl:61
26871 #, no-wrap
26872 msgid ""
26873 " virt-rescue GuestName\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: verbatim
26878 #: ../tools/virt-rescue.pl:63
26879 #, no-wrap
26880 msgid ""
26881 " virt-rescue --ro /path/to/disk.img\n"
26882 "\n"
26883 msgstr ""
26884
26885 # type: verbatim
26886 #: ../tools/virt-rescue.pl:65
26887 #, no-wrap
26888 msgid ""
26889 " virt-rescue /dev/sdc\n"
26890 "\n"
26891 msgstr ""
26892
26893 # type: textblock
26894 #: ../tools/virt-rescue.pl:67
26895 msgid "For live VMs you I<must> use the --ro option."
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-rescue.pl:69
26900 msgid ""
26901 "When you run virt-rescue on a virtual machine or disk image, you are placed "
26902 "in an interactive bash shell where you can use many ordinary Linux "
26903 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
26904 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
26905 "is an empty directory called C</sysroot> where you can mount filesystems."
26906 msgstr ""
26907
26908 # type: textblock
26909 #: ../tools/virt-rescue.pl:76
26910 msgid ""
26911 "In the example below, we list logical volumes, then choose one to mount "
26912 "under C</sysroot>:"
26913 msgstr ""
26914
26915 # type: verbatim
26916 #: ../tools/virt-rescue.pl:79
26917 #, no-wrap
26918 msgid ""
26919 " ><rescue> lvs\n"
26920 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
26921 " lv_root vg_f11x64 -wi-a-   8.83G\n"
26922 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
26923 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
26924 " ><rescue> ls /sysroot\n"
26925 "\n"
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-rescue.pl:86
26930 msgid ""
26931 "If you don't know what filesystems are available on the virtual machine then "
26932 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
26933 msgstr ""
26934
26935 # type: textblock
26936 #: ../tools/virt-rescue.pl:92
26937 msgid ""
26938 "Virt-rescue can be used on I<any> disk image file or device, not just a "
26939 "virtual machine.  For example you can use it on a blank file if you want to "
26940 "partition that file (although we would recommend using L<guestfish(1)> "
26941 "instead as it is more suitable for this purpose).  You can even use virt-"
26942 "rescue on things like SD cards."
26943 msgstr ""
26944
26945 # type: textblock
26946 #: ../tools/virt-rescue.pl:98
26947 msgid ""
26948 "This tool is just designed for quick interactive hacking on a virtual "
26949 "machine.  For more structured access to a virtual machine disk image, you "
26950 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
26951 "make scripted changes to guests, use L<guestfish(1)>."
26952 msgstr ""
26953
26954 # type: =item
26955 #: ../tools/virt-rescue.pl:127
26956 msgid "B<--append kernelopts>"
26957 msgstr ""
26958
26959 # type: textblock
26960 #: ../tools/virt-rescue.pl:129
26961 msgid "Pass additional options to the rescue kernel."
26962 msgstr ""
26963
26964 # type: =item
26965 #: ../tools/virt-rescue.pl:164
26966 msgid "B<--memsize MB> | B<-m MB>"
26967 msgstr ""
26968
26969 # type: textblock
26970 #: ../tools/virt-rescue.pl:166
26971 msgid ""
26972 "Change the amount of memory allocated to the rescue system.  The default is "
26973 "set by libguestfs and is small but adequate for running system tools.  The "
26974 "occasional program might need more memory.  The parameter is specified in "
26975 "megabytes."
26976 msgstr ""
26977
26978 # type: =item
26979 #: ../tools/virt-rescue.pl:175
26980 msgid "B<--network MB>"
26981 msgstr ""
26982
26983 # type: textblock
26984 #: ../tools/virt-rescue.pl:177
26985 msgid "Enable QEMU user networking in the guest."
26986 msgstr ""
26987
26988 # type: =item
26989 #: ../tools/virt-rescue.pl:183
26990 msgid "B<--ro> | B<-r>"
26991 msgstr ""
26992
26993 # type: textblock
26994 #: ../tools/virt-rescue.pl:185
26995 msgid "Open the image read-only."
26996 msgstr ""
26997
26998 # type: textblock
26999 #: ../tools/virt-rescue.pl:197
27000 msgid ""
27001 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27002 "SELINUX> before using this option."
27003 msgstr ""
27004
27005 # type: textblock
27006 #: ../tools/virt-rescue.pl:257
27007 msgid ""
27008 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27009 "ENVIRONMENT VARIABLES> for the complete list."
27010 msgstr ""
27011
27012 # type: textblock
27013 #: ../tools/virt-rescue.pl:269
27014 msgid ""
27015 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27016 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27017 msgstr ""
27018
27019 # type: textblock
27020 #: ../tools/virt-make-fs.pl:37
27021 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27022 msgstr ""
27023
27024 # type: verbatim
27025 #: ../tools/virt-make-fs.pl:41
27026 #, no-wrap
27027 msgid ""
27028 " virt-make-fs [--options] input.tar output.img\n"
27029 "\n"
27030 msgstr ""
27031
27032 # type: verbatim
27033 #: ../tools/virt-make-fs.pl:43
27034 #, no-wrap
27035 msgid ""
27036 " virt-make-fs [--options] input.tar.gz output.img\n"
27037 "\n"
27038 msgstr ""
27039
27040 # type: verbatim
27041 #: ../tools/virt-make-fs.pl:45
27042 #, no-wrap
27043 msgid ""
27044 " virt-make-fs [--options] directory output.img\n"
27045 "\n"
27046 msgstr ""
27047
27048 # type: textblock
27049 #: ../tools/virt-make-fs.pl:49
27050 msgid ""
27051 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27052 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27053 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27054 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27055 "you want to attach these filesystems to existing virtual machines (eg. to "
27056 "import large amounts of read-only data to a VM)."
27057 msgstr ""
27058
27059 # type: textblock
27060 #: ../tools/virt-make-fs.pl:57
27061 msgid "Basic usage is:"
27062 msgstr ""
27063
27064 # type: verbatim
27065 #: ../tools/virt-make-fs.pl:59
27066 #, no-wrap
27067 msgid ""
27068 " virt-make-fs input output\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-make-fs.pl:61
27074 msgid ""
27075 "where C<input> is either a directory containing files that you want to add, "
27076 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27077 "C<output> is a disk image.  The input type is detected automatically.  The "
27078 "output disk image defaults to a raw ext2 image unless you specify extra "
27079 "flags (see L</OPTIONS> below)."
27080 msgstr ""
27081
27082 # type: =head2
27083 #: ../tools/virt-make-fs.pl:67
27084 msgid "EXTRA SPACE"
27085 msgstr ""
27086
27087 # type: textblock
27088 #: ../tools/virt-make-fs.pl:69
27089 msgid ""
27090 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27091 "the files that it contains, but might have extra space.  Depending on how "
27092 "you are going to use the output, you might think this extra space is wasted "
27093 "and want to minimize it, or you might want to leave space so that more files "
27094 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27095 "but you can use the C<--size> flag to leave space in the filesystem if you "
27096 "want it."
27097 msgstr ""
27098
27099 # type: textblock
27100 #: ../tools/virt-make-fs.pl:77
27101 msgid ""
27102 "An alternative way to leave extra space but not make the output image any "
27103 "bigger is to use an alternative disk image format (instead of the default "
27104 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27105 "image format (check your hypervisor supports this before using it).  This "
27106 "allows you to choose a large C<--size> but the extra space won't actually be "
27107 "allocated in the image until you try to store something in it."
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-make-fs.pl:85
27112 msgid ""
27113 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27114 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27115 "resize to build another image from scratch."
27116 msgstr ""
27117
27118 # type: =head3
27119 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27120 #: ../tools/virt-make-fs.pl:142
27121 msgid "EXAMPLE"
27122 msgstr ""
27123
27124 # type: verbatim
27125 #: ../tools/virt-make-fs.pl:91
27126 #, no-wrap
27127 msgid ""
27128 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27129 "\n"
27130 msgstr ""
27131
27132 # type: =head2
27133 #: ../tools/virt-make-fs.pl:93
27134 msgid "FILESYSTEM TYPE"
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-make-fs.pl:95
27139 msgid ""
27140 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27141 "libguestfs supports can be used (but I<not> read-only formats like "
27142 "ISO9660).  Here are some of the more common choices:"
27143 msgstr ""
27144
27145 # type: =item
27146 #: ../tools/virt-make-fs.pl:101
27147 msgid "I<ext3>"
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-make-fs.pl:103
27152 msgid ""
27153 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27154 "you are not going to use the filesystem in a way that requires the journal, "
27155 "then this is just wasted overhead."
27156 msgstr ""
27157
27158 # type: =item
27159 #: ../tools/virt-make-fs.pl:107
27160 msgid "I<ntfs> or I<vfat>"
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-make-fs.pl:109
27165 msgid "Useful if exporting data to a Windows guest."
27166 msgstr ""
27167
27168 # type: textblock
27169 #: ../tools/virt-make-fs.pl:111
27170 msgid ""
27171 "I<Note for vfat>: The tar archive or local directory must only contain files "
27172 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27173 "program running within libguestfs is unable to change the ownership of non-"
27174 "root files, since vfat itself does not support this."
27175 msgstr ""
27176
27177 # type: =item
27178 #: ../tools/virt-make-fs.pl:116
27179 msgid "I<minix>"
27180 msgstr ""
27181
27182 # type: textblock
27183 #: ../tools/virt-make-fs.pl:118
27184 msgid ""
27185 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27186 "total filesystem size."
27187 msgstr ""
27188
27189 # type: verbatim
27190 #: ../tools/virt-make-fs.pl:125
27191 #, no-wrap
27192 msgid ""
27193 " virt-make-fs --type=minix input minixfs.img\n"
27194 "\n"
27195 msgstr ""
27196
27197 # type: =head2
27198 #: ../tools/virt-make-fs.pl:127
27199 msgid "TO PARTITION OR NOT TO PARTITION"
27200 msgstr ""
27201
27202 # type: textblock
27203 #: ../tools/virt-make-fs.pl:129
27204 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27205 msgstr ""
27206
27207 # type: textblock
27208 #: ../tools/virt-make-fs.pl:131
27209 msgid ""
27210 "Adding a partition can make the disk image more compatible with certain "
27211 "virtualized operating systems which don't expect to see a filesystem "
27212 "directly located on a block device (Linux doesn't care and will happily "
27213 "handle both types)."
27214 msgstr ""
27215
27216 # type: textblock
27217 #: ../tools/virt-make-fs.pl:136
27218 msgid ""
27219 "On the other hand, if you have a partition table then the output image is no "
27220 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27221 "directly on a partitioned disk image.  (However libguestfs tools such as "
27222 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27223 msgstr ""
27224
27225 # type: textblock
27226 #: ../tools/virt-make-fs.pl:144
27227 msgid "Add an MBR partition:"
27228 msgstr ""
27229
27230 # type: verbatim
27231 #: ../tools/virt-make-fs.pl:146
27232 #, no-wrap
27233 msgid ""
27234 " virt-make-fs --partition -- input disk.img\n"
27235 "\n"
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-make-fs.pl:148
27240 msgid ""
27241 "If the output disk image could be terabyte-sized or larger, it's better to "
27242 "use an EFI/GPT-compatible partition table:"
27243 msgstr ""
27244
27245 # type: verbatim
27246 #: ../tools/virt-make-fs.pl:151
27247 #, no-wrap
27248 msgid ""
27249 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27250 "\n"
27251 msgstr ""
27252
27253 # type: textblock
27254 #: ../tools/virt-make-fs.pl:179
27255 msgid "Enable debugging information."
27256 msgstr ""
27257
27258 # type: =item
27259 #: ../tools/virt-make-fs.pl:185
27260 msgid "B<--size=E<lt>NE<gt>>"
27261 msgstr ""
27262
27263 # type: =item
27264 #: ../tools/virt-make-fs.pl:187
27265 msgid "B<--size=+E<lt>NE<gt>>"
27266 msgstr ""
27267
27268 # type: =item
27269 #: ../tools/virt-make-fs.pl:189
27270 msgid "B<-s E<lt>NE<gt>>"
27271 msgstr ""
27272
27273 # type: =item
27274 #: ../tools/virt-make-fs.pl:191
27275 msgid "B<-s +E<lt>NE<gt>>"
27276 msgstr ""
27277
27278 # type: textblock
27279 #: ../tools/virt-make-fs.pl:193
27280 msgid ""
27281 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-make-fs.pl:196
27286 msgid ""
27287 "If this option is I<not> given, then the output image will be just large "
27288 "enough to contain all the files, with not much wasted space."
27289 msgstr ""
27290
27291 # type: textblock
27292 #: ../tools/virt-make-fs.pl:199
27293 msgid ""
27294 "To choose a fixed size output disk, specify an absolute number followed by b/"
27295 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27296 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27297 "files, else you will get an error."
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-make-fs.pl:204
27302 msgid ""
27303 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27304 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27305 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27306 "the input files, and (approximately) an extra 200 MB free space."
27307 msgstr ""
27308
27309 # type: textblock
27310 #: ../tools/virt-make-fs.pl:210
27311 msgid ""
27312 "Note that virt-make-fs estimates free space, and therefore will not produce "
27313 "filesystems containing precisely the free space requested.  (It is much more "
27314 "expensive and time-consuming to produce a filesystem which has precisely the "
27315 "desired free space)."
27316 msgstr ""
27317
27318 # type: =item
27319 #: ../tools/virt-make-fs.pl:219
27320 msgid "B<--format=E<lt>fmtE<gt>>"
27321 msgstr ""
27322
27323 # type: =item
27324 #: ../tools/virt-make-fs.pl:221
27325 msgid "B<-F E<lt>fmtE<gt>>"
27326 msgstr ""
27327
27328 # type: textblock
27329 #: ../tools/virt-make-fs.pl:223
27330 msgid "Choose the output disk image format."
27331 msgstr ""
27332
27333 # type: textblock
27334 #: ../tools/virt-make-fs.pl:225
27335 msgid "The default is C<raw> (raw disk image)."
27336 msgstr ""
27337
27338 # type: textblock
27339 #: ../tools/virt-make-fs.pl:227
27340 msgid ""
27341 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27342 "that would really make sense here is C<qcow2>."
27343 msgstr ""
27344
27345 # type: =item
27346 #: ../tools/virt-make-fs.pl:234
27347 msgid "B<--type=E<lt>fsE<gt>>"
27348 msgstr ""
27349
27350 # type: =item
27351 #: ../tools/virt-make-fs.pl:236
27352 msgid "B<-t E<lt>fsE<gt>>"
27353 msgstr ""
27354
27355 # type: textblock
27356 #: ../tools/virt-make-fs.pl:238
27357 msgid "Choose the output filesystem type."
27358 msgstr ""
27359
27360 # type: textblock
27361 #: ../tools/virt-make-fs.pl:240
27362 msgid "The default is C<ext2>."
27363 msgstr ""
27364
27365 # type: textblock
27366 #: ../tools/virt-make-fs.pl:242
27367 msgid ""
27368 "Any filesystem which is supported read-write by libguestfs can be used here."
27369 msgstr ""
27370
27371 # type: =item
27372 #: ../tools/virt-make-fs.pl:249
27373 msgid "B<--partition>"
27374 msgstr ""
27375
27376 # type: =item
27377 #: ../tools/virt-make-fs.pl:251
27378 msgid "B<--partition=E<lt>parttypeE<gt>>"
27379 msgstr ""
27380
27381 # type: textblock
27382 #: ../tools/virt-make-fs.pl:253
27383 msgid ""
27384 "If specified, this flag adds an MBR partition table to the output disk image."
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-make-fs.pl:256
27389 msgid ""
27390 "You can change the partition table type, eg. C<--partition=gpt> for large "
27391 "disks."
27392 msgstr ""
27393
27394 # type: textblock
27395 #: ../tools/virt-make-fs.pl:259
27396 msgid ""
27397 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27398 "might consider the next parameter to be the partition type.  For example:"
27399 msgstr ""
27400
27401 # type: verbatim
27402 #: ../tools/virt-make-fs.pl:263
27403 #, no-wrap
27404 msgid ""
27405 " virt-make-fs --partition input.tar ...\n"
27406 "\n"
27407 msgstr ""
27408
27409 # type: textblock
27410 #: ../tools/virt-make-fs.pl:265
27411 msgid ""
27412 "would cause virt-make-fs to think you wanted to use a partition type of "
27413 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27414 "dash) between options and the input file argument:"
27415 msgstr ""
27416
27417 # type: verbatim
27418 #: ../tools/virt-make-fs.pl:269
27419 #, no-wrap
27420 msgid ""
27421 " virt-make-fs --partition -- input.tar ...\n"
27422 "\n"
27423 msgstr ""
27424
27425 # type: textblock
27426 #: ../tools/virt-make-fs.pl:536
27427 msgid ""
27428 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27429 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
27430 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27431 msgstr ""
27432
27433 # type: verbatim
27434 #: ../tools/virt-make-fs.pl:553
27435 #, no-wrap
27436 msgid ""
27437 " export LIBGUESTFS_DEBUG=1\n"
27438 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27439 "\n"
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-make-fs.pl:556
27444 msgid ""
27445 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
27446 "redhat.com/>"
27447 msgstr ""
27448
27449 # type: textblock
27450 #: ../tools/virt-list-partitions.pl:32
27451 msgid ""
27452 "virt-list-partitions - List partitions in a virtual machine or disk image"
27453 msgstr ""
27454
27455 # type: verbatim
27456 #: ../tools/virt-list-partitions.pl:36
27457 #, no-wrap
27458 msgid ""
27459 " virt-list-partitions [--options] domname\n"
27460 "\n"
27461 msgstr ""
27462
27463 # type: verbatim
27464 #: ../tools/virt-list-partitions.pl:38
27465 #, no-wrap
27466 msgid ""
27467 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-list-partitions.pl:42
27473 msgid ""
27474 "C<virt-list-partitions> is a command line tool to list the partitions that "
27475 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27476 "first step to using L<virt-resize(1)>."
27477 msgstr ""
27478
27479 # type: textblock
27480 #: ../tools/virt-list-partitions.pl:47
27481 msgid ""
27482 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27483 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27484 "> tool."
27485 msgstr ""
27486
27487 # type: =item
27488 #: ../tools/virt-list-partitions.pl:104
27489 msgid "B<-h> | B<--human-readable>"
27490 msgstr ""
27491
27492 # type: textblock
27493 #: ../tools/virt-list-partitions.pl:106
27494 msgid "Show sizes in human-readable form (eg. \"1G\")."
27495 msgstr ""
27496
27497 # type: textblock
27498 #: ../tools/virt-list-partitions.pl:114
27499 msgid ""
27500 "With this option, C<virt-list-partitions> displays the type and size of each "
27501 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27502 msgstr ""
27503
27504 # type: =item
27505 #: ../tools/virt-list-partitions.pl:121
27506 msgid "B<-t> | B<--total>"
27507 msgstr ""
27508
27509 # type: textblock
27510 #: ../tools/virt-list-partitions.pl:123
27511 msgid ""
27512 "Display the total size of each block device (as a separate row or rows)."
27513 msgstr ""
27514
27515 # type: textblock
27516 #: ../tools/virt-list-partitions.pl:256
27517 msgid ""
27518 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
27519 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
27520 "libguestfs.org/>."
27521 msgstr ""