Version 1.7.10.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-11-17 20:52+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30
23 #: ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:957
782 #: ../src/guestfs.pod:961 ../src/guestfs.pod:965 ../src/guestfs.pod:970
783 #: ../src/guestfs.pod:978 ../src/guestfs.pod:997 ../src/guestfs.pod:1005
784 #: ../src/guestfs.pod:1027 ../src/guestfs.pod:1031 ../src/guestfs.pod:1035
785 #: ../src/guestfs.pod:1039 ../src/guestfs.pod:1043 ../src/guestfs.pod:1047
786 #: ../src/guestfs.pod:1529 ../src/guestfs.pod:1534 ../src/guestfs.pod:1538
787 #: ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657
788 #: ../src/guestfs.pod:2001 ../src/guestfs.pod:2007 ../src/guestfs.pod:2012
789 #: ../src/guestfs.pod:2018 ../src/guestfs.pod:2125 ../src/guestfs.pod:2129
790 #: ../src/guestfs.pod:2133 ../src/guestfs.pod:2137
791 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
792 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
793 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
794 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
795 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
796 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
797 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
798 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
799 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
800 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
801 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
802 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:376
803 #: ../fish/guestfish.pod:380 ../fish/guestfish.pod:384
804 #: ../fish/guestfish.pod:388 ../fish/guestfish-actions.pod:13
805 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
806 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
807 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
808 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
809 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
810 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
811 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
812 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
813 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
814 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
815 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
816 #: ../inspector/virt-inspector.pl:466 ../inspector/virt-inspector.pl:470
817 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
818 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
819 msgid "*"
820 msgstr ""
821
822 # type: textblock
823 #: ../src/guestfs.pod:362
824 msgid ""
825 "The kernel version that the command runs under will be different from what "
826 "it expects."
827 msgstr ""
828
829 # type: textblock
830 #: ../src/guestfs.pod:367
831 msgid ""
832 "If the command needs to communicate with daemons, then most likely they "
833 "won't be running."
834 msgstr ""
835
836 # type: textblock
837 #: ../src/guestfs.pod:372
838 msgid "The command will be running in limited memory."
839 msgstr ""
840
841 # type: textblock
842 #: ../src/guestfs.pod:376
843 msgid ""
844 "The network may not be available unless you enable it (see L</"
845 "guestfs_set_network>)."
846 msgstr ""
847
848 # type: textblock
849 #: ../src/guestfs.pod:381
850 msgid "Only supports Linux guests (not Windows, BSD, etc)."
851 msgstr ""
852
853 # type: textblock
854 #: ../src/guestfs.pod:385
855 msgid ""
856 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
857 msgstr ""
858
859 # type: textblock
860 #: ../src/guestfs.pod:390
861 msgid ""
862 "For SELinux guests, you may need to enable SELinux and load policy first.  "
863 "See L</SELINUX> in this manpage."
864 msgstr ""
865
866 # type: textblock
867 #: ../src/guestfs.pod:395
868 msgid ""
869 "I<Security:> It is not safe to run commands from untrusted, possibly "
870 "malicious guests.  These commands may attempt to exploit your program by "
871 "sending unexpected output.  They could also try to exploit the Linux kernel "
872 "or qemu provided by the libguestfs appliance.  They could use the network "
873 "provided by the libguestfs appliance to bypass ordinary network partitions "
874 "and firewalls.  They could use the elevated privileges or different SELinux "
875 "context of your program to their advantage."
876 msgstr ""
877
878 # type: textblock
879 #: ../src/guestfs.pod:404
880 msgid ""
881 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
882 "(a script which runs when the guest next boots normally), and to have this "
883 "script run the commands you want in the normal context of the running guest, "
884 "network security and so on.  For information about other security issues, "
885 "see L</SECURITY>."
886 msgstr ""
887
888 # type: textblock
889 #: ../src/guestfs.pod:412
890 msgid ""
891 "The two main API calls to run commands are L</guestfs_command> and L</"
892 "guestfs_sh> (there are also variations)."
893 msgstr ""
894
895 # type: textblock
896 #: ../src/guestfs.pod:415
897 msgid ""
898 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
899 "shell globs, redirections, etc will work."
900 msgstr ""
901
902 # type: =head2
903 #: ../src/guestfs.pod:418
904 msgid "CONFIGURATION FILES"
905 msgstr ""
906
907 # type: textblock
908 #: ../src/guestfs.pod:420
909 msgid ""
910 "To read and write configuration files in Linux guest filesystems, we "
911 "strongly recommend using Augeas.  For example, Augeas understands how to "
912 "read and write, say, a Linux shadow password file or X.org configuration "
913 "file, and so avoids you having to write that code."
914 msgstr ""
915
916 # type: textblock
917 #: ../src/guestfs.pod:425
918 msgid ""
919 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
920 "document Augeas itself here because there is excellent documentation on the "
921 "L<http://augeas.net/> website."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:429
926 msgid ""
927 "If you don't want to use Augeas (you fool!) then try calling L</"
928 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
929 "over."
930 msgstr ""
931
932 # type: =head2
933 #: ../src/guestfs.pod:433
934 msgid "SELINUX"
935 msgstr ""
936
937 # type: textblock
938 #: ../src/guestfs.pod:435
939 msgid ""
940 "We support SELinux guests.  To ensure that labeling happens correctly in "
941 "SELinux guests, you need to enable SELinux and load the guest's policy:"
942 msgstr ""
943
944 # type: =item
945 #: ../src/guestfs.pod:441 ../src/guestfs.pod:1150 ../src/guestfs.pod:1281
946 msgid "1."
947 msgstr ""
948
949 # type: textblock
950 #: ../src/guestfs.pod:443
951 msgid "Before launching, do:"
952 msgstr ""
953
954 # type: verbatim
955 #: ../src/guestfs.pod:445
956 #, no-wrap
957 msgid ""
958 " guestfs_set_selinux (g, 1);\n"
959 "\n"
960 msgstr ""
961
962 # type: =item
963 #: ../src/guestfs.pod:447 ../src/guestfs.pod:1154 ../src/guestfs.pod:1285
964 msgid "2."
965 msgstr ""
966
967 # type: textblock
968 #: ../src/guestfs.pod:449
969 msgid ""
970 "After mounting the guest's filesystem(s), load the policy.  This is best "
971 "done by running the L<load_policy(8)> command in the guest itself:"
972 msgstr ""
973
974 # type: verbatim
975 #: ../src/guestfs.pod:453
976 #, no-wrap
977 msgid ""
978 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
979 "\n"
980 msgstr ""
981
982 # type: textblock
983 #: ../src/guestfs.pod:455
984 msgid ""
985 "(Older versions of C<load_policy> require you to specify the name of the "
986 "policy file)."
987 msgstr ""
988
989 # type: =item
990 #: ../src/guestfs.pod:458 ../src/guestfs.pod:1291
991 msgid "3."
992 msgstr ""
993
994 # type: textblock
995 #: ../src/guestfs.pod:460
996 msgid ""
997 "Optionally, set the security context for the API.  The correct security "
998 "context to use can only be known by inspecting the guest.  As an example:"
999 msgstr ""
1000
1001 # type: verbatim
1002 #: ../src/guestfs.pod:464
1003 #, no-wrap
1004 msgid ""
1005 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1006 "\n"
1007 msgstr ""
1008
1009 # type: textblock
1010 #: ../src/guestfs.pod:468
1011 msgid "This will work for running commands and editing existing files."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:470
1016 msgid ""
1017 "When new files are created, you may need to label them explicitly, for "
1018 "example by running the external command C<restorecon pathname>."
1019 msgstr ""
1020
1021 # type: =head2
1022 #: ../src/guestfs.pod:474
1023 msgid "UMASK"
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:476
1028 msgid ""
1029 "Certain calls are affected by the current file mode creation mask (the "
1030 "\"umask\").  In particular ones which create files or directories, such as "
1031 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1032 "either the default mode that the file is created with or modifies the mode "
1033 "that you supply."
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:482
1038 msgid ""
1039 "The default umask is C<022>, so files are created with modes such as C<0644> "
1040 "and directories with C<0755>."
1041 msgstr ""
1042
1043 # type: textblock
1044 #: ../src/guestfs.pod:485
1045 msgid ""
1046 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1047 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1048 "guestfs_chmod> after creating each file or directory."
1049 msgstr ""
1050
1051 # type: textblock
1052 #: ../src/guestfs.pod:489
1053 msgid "For more information about umask, see L<umask(2)>."
1054 msgstr ""
1055
1056 # type: =head1
1057 #: ../src/guestfs.pod:491 ../fish/guestfish.pod:669
1058 msgid "ENCRYPTED DISKS"
1059 msgstr ""
1060
1061 # type: textblock
1062 #: ../src/guestfs.pod:493
1063 msgid ""
1064 "Libguestfs allows you to access Linux guests which have been encrypted using "
1065 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1066 "standard.  This includes nearly all whole disk encryption systems used by "
1067 "modern Linux guests."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:499
1072 msgid ""
1073 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1074 "returns the string C<crypto_LUKS>)."
1075 msgstr ""
1076
1077 # type: textblock
1078 #: ../src/guestfs.pod:502
1079 msgid ""
1080 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1081 "will require the passphrase!"
1082 msgstr ""
1083
1084 # type: textblock
1085 #: ../src/guestfs.pod:505
1086 msgid ""
1087 "Opening a LUKS device creates a new device mapper device called C</dev/"
1088 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1089 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1090 "from and encrypted to the underlying block device respectively."
1091 msgstr ""
1092
1093 # type: textblock
1094 #: ../src/guestfs.pod:511
1095 msgid ""
1096 "LVM volume groups on the device can be made visible by calling L</"
1097 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1098 "(s) can now be mounted in the usual way."
1099 msgstr ""
1100
1101 # type: textblock
1102 #: ../src/guestfs.pod:515
1103 msgid ""
1104 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1105 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1106 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1107 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1108 "underlying encrypted block device)."
1109 msgstr ""
1110
1111 # type: =head2
1112 #: ../src/guestfs.pod:522
1113 msgid "INSPECTION"
1114 msgstr ""
1115
1116 # type: textblock
1117 #: ../src/guestfs.pod:524
1118 msgid ""
1119 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1120 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1121 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1122 "frequently used part of this library has been rewritten in C and moved into "
1123 "the core code)."
1124 msgstr ""
1125
1126 # type: textblock
1127 #: ../src/guestfs.pod:530
1128 msgid ""
1129 "Add all disks belonging to the unknown virtual machine and call L</"
1130 "guestfs_launch> in the usual way."
1131 msgstr ""
1132
1133 # type: textblock
1134 #: ../src/guestfs.pod:533
1135 msgid ""
1136 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1137 "and certain heuristics, and returns a list of operating systems that were "
1138 "found.  An empty list means none were found.  A single element is the root "
1139 "filesystem of the operating system.  For dual- or multi-boot guests, "
1140 "multiple roots can be returned, each one corresponding to a separate "
1141 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1142 "world of virtualization, but since this scenario can happen, we have built "
1143 "libguestfs to deal with it.)"
1144 msgstr ""
1145
1146 # type: textblock
1147 #: ../src/guestfs.pod:542
1148 msgid ""
1149 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1150 "to get additional details about that operating system.  For example, call L</"
1151 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1152 "Windows and Linux-based operating systems respectively."
1153 msgstr ""
1154
1155 # type: textblock
1156 #: ../src/guestfs.pod:548
1157 msgid ""
1158 "Un*x-like and Linux-based operating systems usually consist of several "
1159 "filesystems which are mounted at boot time (for example, a separate boot "
1160 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1161 "filesystems correspond to mount points.  Call "
1162 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1163 "hash table like this example:"
1164 msgstr ""
1165
1166 # type: verbatim
1167 #: ../src/guestfs.pod:555
1168 #, no-wrap
1169 msgid ""
1170 " /boot => /dev/sda1\n"
1171 " /     => /dev/vg_guest/lv_root\n"
1172 " /usr  => /dev/vg_guest/lv_usr\n"
1173 "\n"
1174 msgstr ""
1175
1176 # type: textblock
1177 #: ../src/guestfs.pod:559
1178 msgid ""
1179 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1180 "filesystems as suggested."
1181 msgstr ""
1182
1183 # type: textblock
1184 #: ../src/guestfs.pod:562
1185 msgid ""
1186 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1187 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1188 msgstr ""
1189
1190 # type: textblock
1191 #: ../src/guestfs.pod:566
1192 msgid ""
1193 "Inspection currently only works for some common operating systems.  "
1194 "Contributors are welcome to send patches for other operating systems that we "
1195 "currently cannot detect."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:570
1200 msgid ""
1201 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1202 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1203 "encrypted devices."
1204 msgstr ""
1205
1206 # type: textblock
1207 #: ../src/guestfs.pod:574
1208 msgid ""
1209 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1210 "inspection and caches the results in the guest handle.  Subsequent calls to "
1211 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1212 "read the disks.  If you change the content of the guest disks, you can redo "
1213 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1214 "guestfs_inspect_list_applications> works a little differently from the other "
1215 "calls and does read the disks.  See documentation for that function for "
1216 "details)."
1217 msgstr ""
1218
1219 # type: =head2
1220 #: ../src/guestfs.pod:583
1221 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1222 msgstr ""
1223
1224 # type: textblock
1225 #: ../src/guestfs.pod:585
1226 msgid ""
1227 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1228 "ntfs-3g.org/> driver."
1229 msgstr ""
1230
1231 # type: textblock
1232 #: ../src/guestfs.pod:588
1233 msgid ""
1234 "DOS and Windows still use drive letters, and the filesystems are always "
1235 "treated as case insensitive by Windows itself, and therefore you might find "
1236 "a Windows configuration file referring to a path like C<c:\\windows"
1237 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1238 "might be referred to as C</WINDOWS/System32>."
1239 msgstr ""
1240
1241 # type: textblock
1242 #: ../src/guestfs.pod:594
1243 msgid ""
1244 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1245 "libguestfs to read the appropriate Windows Registry and configuration files, "
1246 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1247 "inspector(1)>)."
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:599
1252 msgid ""
1253 "Replacing backslash characters with forward slash characters is also outside "
1254 "the scope of libguestfs, but something that you can easily do."
1255 msgstr ""
1256
1257 # type: textblock
1258 #: ../src/guestfs.pod:602
1259 msgid ""
1260 "Where we can help is in resolving the case insensitivity of paths.  For "
1261 "this, call L</guestfs_case_sensitive_path>."
1262 msgstr ""
1263
1264 # type: textblock
1265 #: ../src/guestfs.pod:605
1266 msgid ""
1267 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1268 "files, through the library C<hivex> which is part of the libguestfs project "
1269 "although ships as a separate tarball.  You have to locate and download the "
1270 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1271 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1272 "reg(1)> for more help on this issue."
1273 msgstr ""
1274
1275 # type: =head2
1276 #: ../src/guestfs.pod:613
1277 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1278 msgstr ""
1279
1280 # type: textblock
1281 #: ../src/guestfs.pod:615
1282 msgid ""
1283 "Although we don't want to discourage you from using the C API, we will "
1284 "mention here that the same API is also available in other languages."
1285 msgstr ""
1286
1287 # type: textblock
1288 #: ../src/guestfs.pod:618
1289 msgid ""
1290 "The API is broadly identical in all supported languages.  This means that "
1291 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1292 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1293 "words, a straightforward, predictable isomorphism between each language."
1294 msgstr ""
1295
1296 # type: textblock
1297 #: ../src/guestfs.pod:624
1298 msgid ""
1299 "Error messages are automatically transformed into exceptions if the language "
1300 "supports it."
1301 msgstr ""
1302
1303 # type: textblock
1304 #: ../src/guestfs.pod:627
1305 msgid ""
1306 "We don't try to \"object orientify\" parts of the API in OO languages, "
1307 "although contributors are welcome to write higher level APIs above what we "
1308 "provide in their favourite languages if they wish."
1309 msgstr ""
1310
1311 # type: =item
1312 #: ../src/guestfs.pod:633
1313 msgid "B<C++>"
1314 msgstr ""
1315
1316 # type: textblock
1317 #: ../src/guestfs.pod:635
1318 msgid ""
1319 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1320 "identical to the C API.  C++ classes and exceptions are not used."
1321 msgstr ""
1322
1323 # type: =item
1324 #: ../src/guestfs.pod:639
1325 msgid "B<C#>"
1326 msgstr ""
1327
1328 # type: textblock
1329 #: ../src/guestfs.pod:641
1330 msgid ""
1331 "The C# bindings are highly experimental.  Please read the warnings at the "
1332 "top of C<csharp/Libguestfs.cs>."
1333 msgstr ""
1334
1335 # type: =item
1336 #: ../src/guestfs.pod:644
1337 msgid "B<Haskell>"
1338 msgstr ""
1339
1340 # type: textblock
1341 #: ../src/guestfs.pod:646
1342 msgid ""
1343 "This is the only language binding that is working but incomplete.  Only "
1344 "calls which return simple integers have been bound in Haskell, and we are "
1345 "looking for help to complete this binding."
1346 msgstr ""
1347
1348 # type: =item
1349 #: ../src/guestfs.pod:650
1350 msgid "B<Java>"
1351 msgstr ""
1352
1353 # type: textblock
1354 #: ../src/guestfs.pod:652
1355 msgid ""
1356 "Full documentation is contained in the Javadoc which is distributed with "
1357 "libguestfs."
1358 msgstr ""
1359
1360 # type: =item
1361 #: ../src/guestfs.pod:655
1362 msgid "B<OCaml>"
1363 msgstr ""
1364
1365 # type: textblock
1366 #: ../src/guestfs.pod:657
1367 msgid "For documentation see the file C<guestfs.mli>."
1368 msgstr ""
1369
1370 # type: =item
1371 #: ../src/guestfs.pod:659
1372 msgid "B<Perl>"
1373 msgstr ""
1374
1375 # type: textblock
1376 #: ../src/guestfs.pod:661
1377 msgid "For documentation see L<Sys::Guestfs(3)>."
1378 msgstr ""
1379
1380 # type: =item
1381 #: ../src/guestfs.pod:663
1382 msgid "B<PHP>"
1383 msgstr ""
1384
1385 # type: textblock
1386 #: ../src/guestfs.pod:665
1387 msgid ""
1388 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1389 "the php-libguestfs package for your distribution."
1390 msgstr ""
1391
1392 # type: textblock
1393 #: ../src/guestfs.pod:668
1394 msgid "The PHP binding only works correctly on 64 bit machines."
1395 msgstr ""
1396
1397 # type: =item
1398 #: ../src/guestfs.pod:670
1399 msgid "B<Python>"
1400 msgstr ""
1401
1402 # type: textblock
1403 #: ../src/guestfs.pod:672
1404 msgid "For documentation do:"
1405 msgstr ""
1406
1407 # type: verbatim
1408 #: ../src/guestfs.pod:674
1409 #, no-wrap
1410 msgid ""
1411 " $ python\n"
1412 " >>> import guestfs\n"
1413 " >>> help (guestfs)\n"
1414 "\n"
1415 msgstr ""
1416
1417 # type: =item
1418 #: ../src/guestfs.pod:678
1419 msgid "B<Ruby>"
1420 msgstr ""
1421
1422 # type: textblock
1423 #: ../src/guestfs.pod:680
1424 msgid ""
1425 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1426 "can find examples written in Ruby in the libguestfs source."
1427 msgstr ""
1428
1429 # type: =item
1430 #: ../src/guestfs.pod:683
1431 msgid "B<shell scripts>"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:685
1436 msgid "For documentation see L<guestfish(1)>."
1437 msgstr ""
1438
1439 # type: =head2
1440 #: ../src/guestfs.pod:689
1441 msgid "LIBGUESTFS GOTCHAS"
1442 msgstr ""
1443
1444 # type: textblock
1445 #: ../src/guestfs.pod:691
1446 msgid ""
1447 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1448 "system [...] that works in the way it is documented but is counterintuitive "
1449 "and almost invites mistakes.\""
1450 msgstr ""
1451
1452 # type: textblock
1453 #: ../src/guestfs.pod:695
1454 msgid ""
1455 "Since we developed libguestfs and the associated tools, there are several "
1456 "things we would have designed differently, but are now stuck with for "
1457 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1458 "release, you can expect these to change.  Beware of them."
1459 msgstr ""
1460
1461 # type: =item
1462 #: ../src/guestfs.pod:703
1463 msgid "Autosync / forgetting to sync."
1464 msgstr ""
1465
1466 # type: textblock
1467 #: ../src/guestfs.pod:705
1468 msgid ""
1469 "When modifying a filesystem from C or another language, you B<must> unmount "
1470 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1471 "libguestfs handle.  You can also call:"
1472 msgstr ""
1473
1474 # type: verbatim
1475 #: ../src/guestfs.pod:709
1476 #, no-wrap
1477 msgid ""
1478 " guestfs_set_autosync (g, 1);\n"
1479 "\n"
1480 msgstr ""
1481
1482 # type: textblock
1483 #: ../src/guestfs.pod:711
1484 msgid ""
1485 "to have the unmount/sync done automatically for you when the handle 'g' is "
1486 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1487 msgstr ""
1488
1489 # type: textblock
1490 #: ../src/guestfs.pod:715
1491 msgid ""
1492 "If you forget to do this, then it is entirely possible that your changes "
1493 "won't be written out, or will be partially written, or (very rarely) that "
1494 "you'll get disk corruption."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:719
1499 msgid ""
1500 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1501 "guestfish scripts that forget to sync will work just fine, which can make "
1502 "this very puzzling if you are trying to debug a problem."
1503 msgstr ""
1504
1505 # type: textblock
1506 #: ../src/guestfs.pod:723
1507 msgid ""
1508 "Update: Autosync is enabled by default for all API users starting from "
1509 "libguestfs 1.5.24."
1510 msgstr ""
1511
1512 # type: =item
1513 #: ../src/guestfs.pod:726
1514 msgid "Mount option C<-o sync> should not be the default."
1515 msgstr ""
1516
1517 # type: textblock
1518 #: ../src/guestfs.pod:728
1519 msgid ""
1520 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1521 "However C<-o sync> does not add any reliability benefit, but does have a "
1522 "very large performance impact."
1523 msgstr ""
1524
1525 # type: textblock
1526 #: ../src/guestfs.pod:732
1527 msgid ""
1528 "The work around is to use L</guestfs_mount_options> and set the mount "
1529 "options that you actually want to use."
1530 msgstr ""
1531
1532 # type: =item
1533 #: ../src/guestfs.pod:735
1534 msgid "Read-only should be the default."
1535 msgstr ""
1536
1537 # type: textblock
1538 #: ../src/guestfs.pod:737
1539 msgid ""
1540 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1541 "specify I<--rw> if you want to make changes to the image."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:740
1546 msgid "This would reduce the potential to corrupt live VM images."
1547 msgstr ""
1548
1549 # type: textblock
1550 #: ../src/guestfs.pod:742
1551 msgid ""
1552 "Note that many filesystems change the disk when you just mount and unmount, "
1553 "even if you didn't perform any writes.  You need to use L</"
1554 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1555 msgstr ""
1556
1557 # type: =item
1558 #: ../src/guestfs.pod:746
1559 msgid "guestfish command line is hard to use."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:748
1564 msgid ""
1565 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1566 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1567 "exist, so it fails.  In earlier versions of guestfish the error message was "
1568 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1569 "we should have used C<guestfish -c command> to run commands."
1570 msgstr ""
1571
1572 # type: =item
1573 #: ../src/guestfs.pod:755
1574 msgid "guestfish megabyte modifiers don't work right on all commands"
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:757
1579 msgid ""
1580 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1581 "other modifiers).  What guestfish actually does is to multiply the number "
1582 "part by the modifier part and pass the result to the C API.  However this "
1583 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1584 "expecting some other unit (eg. megabytes)."
1585 msgstr ""
1586
1587 # type: textblock
1588 #: ../src/guestfs.pod:764
1589 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1590 msgstr ""
1591
1592 # type: verbatim
1593 #: ../src/guestfs.pod:766
1594 #, no-wrap
1595 msgid ""
1596 " lvcreate LV VG 100M\n"
1597 "\n"
1598 msgstr ""
1599
1600 # type: textblock
1601 #: ../src/guestfs.pod:768
1602 msgid ""
1603 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1604 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1605 "megabytes * megabytes) logical volume.  The error message you get from this "
1606 "is also a little obscure."
1607 msgstr ""
1608
1609 # type: textblock
1610 #: ../src/guestfs.pod:773
1611 msgid ""
1612 "This could be fixed in the generator by specially marking parameters and "
1613 "return values which take bytes or other units."
1614 msgstr ""
1615
1616 # type: =item
1617 #: ../src/guestfs.pod:776
1618 msgid "Ambiguity between devices and paths"
1619 msgstr ""
1620
1621 # type: textblock
1622 #: ../src/guestfs.pod:778
1623 msgid ""
1624 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1625 "sdb2>) and a similar pathname.  A file might just happen to be called "
1626 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1627 msgstr ""
1628
1629 # type: textblock
1630 #: ../src/guestfs.pod:783
1631 msgid ""
1632 "In the current API we usually resolve this ambiguity by having two separate "
1633 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1634 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1635 "detecting if the path supplied begins with C</dev/>."
1636 msgstr ""
1637
1638 # type: textblock
1639 #: ../src/guestfs.pod:789
1640 msgid ""
1641 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1642 "make paths/devices into structured names.  One way to do this would be to "
1643 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1644 "aspect of grub.  Another way would be to use a structured type, equivalent "
1645 "to this OCaml type:"
1646 msgstr ""
1647
1648 # type: verbatim
1649 #: ../src/guestfs.pod:795
1650 #, no-wrap
1651 msgid ""
1652 " type path = Path of string | Device of int | Partition of int * int\n"
1653 "\n"
1654 msgstr ""
1655
1656 # type: textblock
1657 #: ../src/guestfs.pod:797
1658 msgid "which would allow you to pass arguments like:"
1659 msgstr ""
1660
1661 # type: verbatim
1662 #: ../src/guestfs.pod:799
1663 #, no-wrap
1664 msgid ""
1665 " Path \"/foo/bar\"\n"
1666 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1667 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1668 " Path \"/dev/sdb2\"    (* not a device *)\n"
1669 "\n"
1670 msgstr ""
1671
1672 # type: textblock
1673 #: ../src/guestfs.pod:804
1674 msgid ""
1675 "As you can see there are still problems to resolve even with this "
1676 "representation.  Also consider how it might work in guestfish."
1677 msgstr ""
1678
1679 # type: =head2
1680 #: ../src/guestfs.pod:809
1681 msgid "PROTOCOL LIMITS"
1682 msgstr ""
1683
1684 # type: textblock
1685 #: ../src/guestfs.pod:811
1686 msgid ""
1687 "Internally libguestfs uses a message-based protocol to pass API calls and "
1688 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1689 "plenty more detail about this).  The maximum message size used by the "
1690 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1691 "aware of this limit.  The API calls which may be affected are individually "
1692 "documented, with a link back to this section of the documentation."
1693 msgstr ""
1694
1695 # type: textblock
1696 #: ../src/guestfs.pod:819
1697 msgid ""
1698 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1699 "a simple string.  Because this string is at some point internally encoded as "
1700 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1701 "the requested file is larger than this then you will get an error."
1702 msgstr ""
1703
1704 # type: textblock
1705 #: ../src/guestfs.pod:825
1706 msgid ""
1707 "In order to transfer large files into and out of the guest filesystem, you "
1708 "need to use particular calls that support this.  The sections L</UPLOADING> "
1709 "and L</DOWNLOADING> document how to do this."
1710 msgstr ""
1711
1712 # type: textblock
1713 #: ../src/guestfs.pod:829
1714 msgid ""
1715 "You might also consider mounting the disk image using our FUSE filesystem "
1716 "support (L<guestmount(1)>)."
1717 msgstr ""
1718
1719 # type: =head2
1720 #: ../src/guestfs.pod:832
1721 msgid "KEYS AND PASSPHRASES"
1722 msgstr ""
1723
1724 # type: textblock
1725 #: ../src/guestfs.pod:834
1726 msgid ""
1727 "Certain libguestfs calls take a parameter that contains sensitive key "
1728 "material, passed in as a C string."
1729 msgstr ""
1730
1731 # type: textblock
1732 #: ../src/guestfs.pod:837
1733 msgid ""
1734 "In the future we would hope to change the libguestfs implementation so that "
1735 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1736 "swap.  However this is I<not> done at the moment, because of the complexity "
1737 "of such an implementation."
1738 msgstr ""
1739
1740 # type: textblock
1741 #: ../src/guestfs.pod:842
1742 msgid ""
1743 "Therefore you should be aware that any key parameter you pass to libguestfs "
1744 "might end up being written out to the swap partition.  If this is a concern, "
1745 "scrub the swap partition or don't use libguestfs on encrypted devices."
1746 msgstr ""
1747
1748 # type: =head1
1749 #: ../src/guestfs.pod:847
1750 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1751 msgstr ""
1752
1753 # type: textblock
1754 #: ../src/guestfs.pod:849
1755 msgid ""
1756 "All high-level libguestfs actions are synchronous.  If you want to use "
1757 "libguestfs asynchronously then you must create a thread."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:852
1762 msgid ""
1763 "Only use the handle from a single thread.  Either use the handle exclusively "
1764 "from one thread, or provide your own mutex so that two threads cannot issue "
1765 "calls on the same handle at the same time."
1766 msgstr ""
1767
1768 # type: textblock
1769 #: ../src/guestfs.pod:856
1770 msgid ""
1771 "See the graphical program guestfs-browser for one possible architecture for "
1772 "multithreaded programs using libvirt and libguestfs."
1773 msgstr ""
1774
1775 # type: =head1
1776 #: ../src/guestfs.pod:859
1777 msgid "PATH"
1778 msgstr ""
1779
1780 # type: textblock
1781 #: ../src/guestfs.pod:861
1782 msgid ""
1783 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1784 "internal path."
1785 msgstr ""
1786
1787 # type: textblock
1788 #: ../src/guestfs.pod:864
1789 msgid ""
1790 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1791 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1792 msgstr ""
1793
1794 # type: textblock
1795 #: ../src/guestfs.pod:867
1796 msgid ""
1797 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1798 "to change the directories that libguestfs will search in.  The value is a "
1799 "colon-separated list of paths.  The current directory is I<not> searched "
1800 "unless the path contains an empty element or C<.>.  For example "
1801 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1802 "then C</usr/lib/guestfs>."
1803 msgstr ""
1804
1805 # type: =head1
1806 #: ../src/guestfs.pod:874
1807 msgid "QEMU WRAPPERS"
1808 msgstr ""
1809
1810 # type: textblock
1811 #: ../src/guestfs.pod:876
1812 msgid ""
1813 "If you want to compile your own qemu, run qemu from a non-standard location, "
1814 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1815 "around qemu."
1816 msgstr ""
1817
1818 # type: textblock
1819 #: ../src/guestfs.pod:880
1820 msgid ""
1821 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1822 "last command in the shell script (so that qemu replaces the shell and "
1823 "becomes the direct child of the libguestfs-using program).  If you don't do "
1824 "this, then the qemu process won't be cleaned up correctly."
1825 msgstr ""
1826
1827 # type: textblock
1828 #: ../src/guestfs.pod:885
1829 msgid ""
1830 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1831 "source:"
1832 msgstr ""
1833
1834 # type: verbatim
1835 #: ../src/guestfs.pod:888
1836 #, no-wrap
1837 msgid ""
1838 " #!/bin/sh -\n"
1839 " qemudir=/home/rjones/d/qemu\n"
1840 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1841 "\n"
1842 msgstr ""
1843
1844 # type: textblock
1845 #: ../src/guestfs.pod:892
1846 msgid ""
1847 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1848 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1849 "example:"
1850 msgstr ""
1851
1852 # type: verbatim
1853 #: ../src/guestfs.pod:896
1854 #, no-wrap
1855 msgid ""
1856 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1857 "\n"
1858 msgstr ""
1859
1860 # type: textblock
1861 #: ../src/guestfs.pod:898
1862 msgid ""
1863 "Note that libguestfs also calls qemu with the -help and -version options in "
1864 "order to determine features."
1865 msgstr ""
1866
1867 # type: =head2
1868 #: ../src/guestfs.pod:901
1869 msgid "ABI GUARANTEE"
1870 msgstr ""
1871
1872 # type: textblock
1873 #: ../src/guestfs.pod:903
1874 msgid ""
1875 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1876 "actions as outlined in this section.  Although we will deprecate some "
1877 "actions, for example if they get replaced by newer calls, we will keep the "
1878 "old actions forever.  This allows you the developer to program in confidence "
1879 "against the libguestfs API."
1880 msgstr ""
1881
1882 # type: =head1
1883 #: ../src/guestfs.pod:909
1884 msgid "BLOCK DEVICE NAMING"
1885 msgstr ""
1886
1887 # type: textblock
1888 #: ../src/guestfs.pod:911
1889 msgid ""
1890 "In the kernel there is now quite a profusion of schemata for naming block "
1891 "devices (in this context, by I<block device> I mean a physical or virtual "
1892 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1893 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1894 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1895 "for the old IDE driver (particularly for SATA devices) those devices also "
1896 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1897 "paravirtualized drivers.  This has created several different naming systems, "
1898 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1899 msgstr ""
1900
1901 # type: textblock
1902 #: ../src/guestfs.pod:923
1903 msgid ""
1904 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1905 "Linux kernel to access block devices.  We can run a variety of appliances "
1906 "based on a variety of Linux kernels."
1907 msgstr ""
1908
1909 # type: textblock
1910 #: ../src/guestfs.pod:927
1911 msgid ""
1912 "This causes a problem for libguestfs because many API calls use device or "
1913 "partition names.  Working scripts and the recipe (example) scripts that we "
1914 "make available over the internet could fail if the naming scheme changes."
1915 msgstr ""
1916
1917 # type: textblock
1918 #: ../src/guestfs.pod:932
1919 msgid ""
1920 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1921 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1922 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1923 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1924 msgstr ""
1925
1926 # type: textblock
1927 #: ../src/guestfs.pod:938
1928 msgid ""
1929 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1930 "L</guestfs_list_partitions> and similar calls return the true names of the "
1931 "devices and partitions as known to the appliance."
1932 msgstr ""
1933
1934 # type: =head2
1935 #: ../src/guestfs.pod:943
1936 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:945
1941 msgid ""
1942 "Usually this translation is transparent.  However in some (very rare)  cases "
1943 "you may need to know the exact algorithm.  Such cases include where you use "
1944 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1945 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1946 msgstr ""
1947
1948 # type: textblock
1949 #: ../src/guestfs.pod:951
1950 msgid ""
1951 "The algorithm is applied only to I<parameters> which are known to be either "
1952 "device or partition names.  Return values from functions such as L</"
1953 "guestfs_list_devices> are never changed."
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:959
1958 msgid "Is the string a parameter which is a device or partition name?"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:963
1963 msgid "Does the string begin with C</dev/sd>?"
1964 msgstr ""
1965
1966 # type: textblock
1967 #: ../src/guestfs.pod:967
1968 msgid ""
1969 "Does the named device exist? If so, we use that device.  However if I<not> "
1970 "then we continue with this algorithm."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:972
1975 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:974
1980 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:976
1985 msgid "If that named device exists, use it.  If not, continue."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:980
1990 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:982
1995 msgid "If that named device exists, use it.  If not, return an error."
1996 msgstr ""
1997
1998 # type: =head3
1999 #: ../src/guestfs.pod:986
2000 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2001 msgstr ""
2002
2003 # type: textblock
2004 #: ../src/guestfs.pod:988
2005 msgid ""
2006 "Although the standard naming scheme and automatic translation is useful for "
2007 "simple programs and guestfish scripts, for larger programs it is best not to "
2008 "rely on this mechanism."
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:992
2013 msgid ""
2014 "Where possible for maximum future portability programs using libguestfs "
2015 "should use these future-proof techniques:"
2016 msgstr ""
2017
2018 # type: textblock
2019 #: ../src/guestfs.pod:999
2020 msgid ""
2021 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2022 "device names, and then use those names directly."
2023 msgstr ""
2024
2025 # type: textblock
2026 #: ../src/guestfs.pod:1002
2027 msgid ""
2028 "Since those device names exist by definition, they will never be translated."
2029 msgstr ""
2030
2031 # type: textblock
2032 #: ../src/guestfs.pod:1007
2033 msgid ""
2034 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2035 "filesystem labels."
2036 msgstr ""
2037
2038 # type: =head1
2039 #: ../src/guestfs.pod:1012
2040 msgid "SECURITY"
2041 msgstr ""
2042
2043 # type: textblock
2044 #: ../src/guestfs.pod:1014
2045 msgid ""
2046 "This section discusses security implications of using libguestfs, "
2047 "particularly with untrusted or malicious guests or disk images."
2048 msgstr ""
2049
2050 # type: =head2
2051 #: ../src/guestfs.pod:1017
2052 msgid "GENERAL SECURITY CONSIDERATIONS"
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1019
2057 msgid ""
2058 "Be careful with any files or data that you download from a guest (by "
2059 "\"download\" we mean not just the L</guestfs_download> command but any "
2060 "command that reads files, filenames, directories or anything else from a "
2061 "disk image).  An attacker could manipulate the data to fool your program "
2062 "into doing the wrong thing.  Consider cases such as:"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1029
2067 msgid "the data (file etc) not being present"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1033
2072 msgid "being present but empty"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1037
2077 msgid "being much larger than normal"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1041
2082 msgid "containing arbitrary 8 bit data"
2083 msgstr ""
2084
2085 # type: textblock
2086 #: ../src/guestfs.pod:1045
2087 msgid "being in an unexpected character encoding"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1049
2092 msgid "containing homoglyphs."
2093 msgstr ""
2094
2095 # type: =head2
2096 #: ../src/guestfs.pod:1053
2097 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2098 msgstr ""
2099
2100 # type: textblock
2101 #: ../src/guestfs.pod:1055
2102 msgid ""
2103 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2104 "(VFS) module can sometimes be escalated into exploits by deliberately "
2105 "creating a malicious, malformed filesystem.  These exploits are very severe "
2106 "for two reasons.  Firstly there are very many filesystem drivers in the "
2107 "kernel, and many of them are infrequently used and not much developer "
2108 "attention has been paid to the code.  Linux userspace helps potential "
2109 "crackers by detecting the filesystem type and automatically choosing the "
2110 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2111 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2112 "exploit (worse in some ways), giving immediate and total access to the "
2113 "system right down to the hardware level."
2114 msgstr ""
2115
2116 # type: textblock
2117 #: ../src/guestfs.pod:1068
2118 msgid ""
2119 "That explains why you should never mount a filesystem from an untrusted "
2120 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2121 "inside a qemu virtual machine, usually running as a non-root user.  The "
2122 "attacker would need to write a filesystem which first exploited the kernel, "
2123 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2124 "the libguestfs protocol, and finally to be as serious as the host kernel "
2125 "exploit it would need to escalate its privileges to root.  This multi-step "
2126 "escalation, performed by a static piece of data, is thought to be extremely "
2127 "hard to do, although we never say 'never' about security issues."
2128 msgstr ""
2129
2130 # type: textblock
2131 #: ../src/guestfs.pod:1079
2132 msgid ""
2133 "In any case callers can reduce the attack surface by forcing the filesystem "
2134 "type when mounting (use L</guestfs_mount_vfs>)."
2135 msgstr ""
2136
2137 # type: =head2
2138 #: ../src/guestfs.pod:1082
2139 msgid "PROTOCOL SECURITY"
2140 msgstr ""
2141
2142 # type: textblock
2143 #: ../src/guestfs.pod:1084
2144 msgid ""
2145 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2146 "defined upper message size.  However a program that uses libguestfs must "
2147 "also take care - for example you can write a program that downloads a binary "
2148 "from a disk image and executes it locally, and no amount of protocol "
2149 "security will save you from the consequences."
2150 msgstr ""
2151
2152 # type: =head2
2153 #: ../src/guestfs.pod:1090
2154 msgid "INSPECTION SECURITY"
2155 msgstr ""
2156
2157 # type: textblock
2158 #: ../src/guestfs.pod:1092
2159 msgid ""
2160 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2161 "directly from the guest, and these could contain any 8 bit data.  Callers "
2162 "should be careful to escape these before printing them to a structured file "
2163 "(for example, use HTML escaping if creating a web page)."
2164 msgstr ""
2165
2166 # type: textblock
2167 #: ../src/guestfs.pod:1098
2168 msgid ""
2169 "Guest configuration may be altered in unusual ways by the administrator of "
2170 "the virtual machine, and may not reflect reality (particularly for untrusted "
2171 "or actively malicious guests).  For example we parse the hostname from "
2172 "configuration files like C</etc/sysconfig/network> that we find in the "
2173 "guest, but the guest administrator can easily manipulate these files to "
2174 "provide the wrong hostname."
2175 msgstr ""
2176
2177 # type: textblock
2178 #: ../src/guestfs.pod:1106
2179 msgid ""
2180 "The inspection API parses guest configuration using two external libraries: "
2181 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2182 "designed to be robust in the face of malicious data, although denial of "
2183 "service attacks are still possible, for example with oversized configuration "
2184 "files."
2185 msgstr ""
2186
2187 # type: =head2
2188 #: ../src/guestfs.pod:1112
2189 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2190 msgstr ""
2191
2192 # type: textblock
2193 #: ../src/guestfs.pod:1114
2194 msgid ""
2195 "Be very cautious about running commands from the guest.  By running a "
2196 "command in the guest, you are giving CPU time to a binary that you do not "
2197 "control, under the same user account as the library, albeit wrapped in qemu "
2198 "virtualization.  More information and alternatives can be found in the "
2199 "section L</RUNNING COMMANDS>."
2200 msgstr ""
2201
2202 # type: =head2
2203 #: ../src/guestfs.pod:1120
2204 msgid "CVE-2010-3851"
2205 msgstr ""
2206
2207 # type: textblock
2208 #: ../src/guestfs.pod:1122
2209 msgid "https://bugzilla.redhat.com/642934"
2210 msgstr ""
2211
2212 # type: textblock
2213 #: ../src/guestfs.pod:1124
2214 msgid ""
2215 "This security bug concerns the automatic disk format detection that qemu "
2216 "does on disk images."
2217 msgstr ""
2218
2219 # type: textblock
2220 #: ../src/guestfs.pod:1127
2221 msgid ""
2222 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2223 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2224 "for one of the known headers, and if none is found then assuming the disk "
2225 "image must be raw."
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1132
2230 msgid ""
2231 "This allows a guest which has been given a raw disk image to write some "
2232 "other header.  At next boot (or when the disk image is accessed by "
2233 "libguestfs) qemu would do autodetection and think the disk image format was, "
2234 "say, qcow2 based on the header written by the guest."
2235 msgstr ""
2236
2237 # type: textblock
2238 #: ../src/guestfs.pod:1137
2239 msgid ""
2240 "This in itself would not be a problem, but qcow2 offers many features, one "
2241 "of which is to allow a disk image to refer to another image (called the "
2242 "\"backing disk\").  It does this by placing the path to the backing disk "
2243 "into the qcow2 header.  This path is not validated and could point to any "
2244 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2245 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2246 "control of the attacker."
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1145
2251 msgid ""
2252 "In libguestfs this is rather hard to exploit except under two circumstances:"
2253 msgstr ""
2254
2255 # type: textblock
2256 #: ../src/guestfs.pod:1152
2257 msgid "You have enabled the network or have opened the disk in write mode."
2258 msgstr ""
2259
2260 # type: textblock
2261 #: ../src/guestfs.pod:1156
2262 msgid ""
2263 "You are also running untrusted code from the guest (see L</RUNNING "
2264 "COMMANDS>)."
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1161
2269 msgid ""
2270 "The way to avoid this is to specify the expected disk format when adding "
2271 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2272 "should always do this if the disk is raw format, and it's a good idea for "
2273 "other cases too."
2274 msgstr ""
2275
2276 # type: textblock
2277 #: ../src/guestfs.pod:1166
2278 msgid ""
2279 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2280 "format is fetched from libvirt and passed through."
2281 msgstr ""
2282
2283 # type: textblock
2284 #: ../src/guestfs.pod:1169
2285 msgid ""
2286 "For libguestfs tools, use the I<--format> command line parameter as "
2287 "appropriate."
2288 msgstr ""
2289
2290 # type: =head1
2291 #: ../src/guestfs.pod:1172
2292 msgid "CONNECTION MANAGEMENT"
2293 msgstr ""
2294
2295 # type: =head2
2296 #: ../src/guestfs.pod:1174
2297 msgid "guestfs_h *"
2298 msgstr ""
2299
2300 # type: textblock
2301 #: ../src/guestfs.pod:1176
2302 msgid ""
2303 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2304 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2305 "handle and release all resources used."
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1180
2310 msgid ""
2311 "For information on using multiple handles and threads, see the section L</"
2312 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2313 msgstr ""
2314
2315 # type: =head2
2316 #: ../src/guestfs.pod:1183
2317 msgid "guestfs_create"
2318 msgstr ""
2319
2320 # type: verbatim
2321 #: ../src/guestfs.pod:1185
2322 #, no-wrap
2323 msgid ""
2324 " guestfs_h *guestfs_create (void);\n"
2325 "\n"
2326 msgstr ""
2327
2328 # type: textblock
2329 #: ../src/guestfs.pod:1187
2330 msgid "Create a connection handle."
2331 msgstr ""
2332
2333 # type: textblock
2334 #: ../src/guestfs.pod:1189
2335 msgid ""
2336 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2337 "on the handle at least once."
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1192
2342 msgid ""
2343 "This function returns a non-NULL pointer to a handle on success or NULL on "
2344 "error."
2345 msgstr ""
2346
2347 # type: textblock
2348 #: ../src/guestfs.pod:1195
2349 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2350 msgstr ""
2351
2352 # type: textblock
2353 #: ../src/guestfs.pod:1197
2354 msgid ""
2355 "You may also want to configure error handling for the handle.  See L</ERROR "
2356 "HANDLING> section below."
2357 msgstr ""
2358
2359 # type: =head2
2360 #: ../src/guestfs.pod:1200
2361 msgid "guestfs_close"
2362 msgstr ""
2363
2364 # type: verbatim
2365 #: ../src/guestfs.pod:1202
2366 #, no-wrap
2367 msgid ""
2368 " void guestfs_close (guestfs_h *g);\n"
2369 "\n"
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1204
2374 msgid "This closes the connection handle and frees up all resources used."
2375 msgstr ""
2376
2377 # type: =head1
2378 #: ../src/guestfs.pod:1206
2379 msgid "ERROR HANDLING"
2380 msgstr ""
2381
2382 # type: textblock
2383 #: ../src/guestfs.pod:1208
2384 msgid ""
2385 "API functions can return errors.  For example, almost all functions that "
2386 "return C<int> will return C<-1> to indicate an error."
2387 msgstr ""
2388
2389 # type: textblock
2390 #: ../src/guestfs.pod:1211
2391 msgid ""
2392 "Additional information is available for errors: an error message string and "
2393 "optionally an error number (errno) if the thing that failed was a system "
2394 "call."
2395 msgstr ""
2396
2397 # type: textblock
2398 #: ../src/guestfs.pod:1215
2399 msgid ""
2400 "You can get at the additional information about the last error on the handle "
2401 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2402 "up an error handler with L</guestfs_set_error_handler>."
2403 msgstr ""
2404
2405 # type: textblock
2406 #: ../src/guestfs.pod:1220
2407 msgid ""
2408 "When the handle is created, a default error handler is installed which "
2409 "prints the error message string to C<stderr>.  For small short-running "
2410 "command line programs it is sufficient to do:"
2411 msgstr ""
2412
2413 # type: verbatim
2414 #: ../src/guestfs.pod:1224
2415 #, no-wrap
2416 msgid ""
2417 " if (guestfs_launch (g) == -1)\n"
2418 "   exit (EXIT_FAILURE);\n"
2419 "\n"
2420 msgstr ""
2421
2422 # type: textblock
2423 #: ../src/guestfs.pod:1227
2424 msgid ""
2425 "since the default error handler will ensure that an error message has been "
2426 "printed to C<stderr> before the program exits."
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1230
2431 msgid ""
2432 "For other programs the caller will almost certainly want to install an "
2433 "alternate error handler or do error handling in-line like this:"
2434 msgstr ""
2435
2436 # type: verbatim
2437 #: ../src/guestfs.pod:1233
2438 #, no-wrap
2439 msgid ""
2440 " g = guestfs_create ();\n"
2441 " \n"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1235
2446 #, no-wrap
2447 msgid ""
2448 " /* This disables the default behaviour of printing errors\n"
2449 "    on stderr. */\n"
2450 " guestfs_set_error_handler (g, NULL, NULL);\n"
2451 " \n"
2452 msgstr ""
2453
2454 # type: verbatim
2455 #: ../src/guestfs.pod:1239
2456 #, no-wrap
2457 msgid ""
2458 " if (guestfs_launch (g) == -1) {\n"
2459 "   /* Examine the error message and print it etc. */\n"
2460 "   char *msg = guestfs_last_error (g);\n"
2461 "   int errnum = guestfs_last_errno (g);\n"
2462 "   fprintf (stderr, \"%s\\n\", msg);\n"
2463 "   /* ... */\n"
2464 "  }\n"
2465 "\n"
2466 msgstr ""
2467
2468 # type: textblock
2469 #: ../src/guestfs.pod:1247
2470 msgid ""
2471 "Out of memory errors are handled differently.  The default action is to call "
2472 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2473 "guestfs_set_out_of_memory_handler>."
2474 msgstr ""
2475
2476 # type: textblock
2477 #: ../src/guestfs.pod:1251
2478 msgid ""
2479 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2480 "because there is no handle if this happens there is no way to get additional "
2481 "error information.  However L</guestfs_create> is supposed to be a "
2482 "lightweight operation which can only fail because of insufficient memory (it "
2483 "returns NULL in this case)."
2484 msgstr ""
2485
2486 # type: =head2
2487 #: ../src/guestfs.pod:1257
2488 msgid "guestfs_last_error"
2489 msgstr ""
2490
2491 # type: verbatim
2492 #: ../src/guestfs.pod:1259
2493 #, no-wrap
2494 msgid ""
2495 " const char *guestfs_last_error (guestfs_h *g);\n"
2496 "\n"
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1261
2501 msgid ""
2502 "This returns the last error message that happened on C<g>.  If there has not "
2503 "been an error since the handle was created, then this returns C<NULL>."
2504 msgstr ""
2505
2506 # type: textblock
2507 #: ../src/guestfs.pod:1265
2508 msgid ""
2509 "The lifetime of the returned string is until the next error occurs, or L</"
2510 "guestfs_close> is called."
2511 msgstr ""
2512
2513 # type: =head2
2514 #: ../src/guestfs.pod:1268
2515 msgid "guestfs_last_errno"
2516 msgstr ""
2517
2518 # type: verbatim
2519 #: ../src/guestfs.pod:1270
2520 #, no-wrap
2521 msgid ""
2522 " int guestfs_last_errno (guestfs_h *g);\n"
2523 "\n"
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1272
2528 msgid "This returns the last error number (errno) that happened on C<g>."
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1274
2533 msgid "If successful, an errno integer not equal to zero is returned."
2534 msgstr ""
2535
2536 # type: textblock
2537 #: ../src/guestfs.pod:1276
2538 msgid ""
2539 "If no error, this returns 0.  This call can return 0 in three situations:"
2540 msgstr ""
2541
2542 # type: textblock
2543 #: ../src/guestfs.pod:1283
2544 msgid "There has not been any error on the handle."
2545 msgstr ""
2546
2547 # type: textblock
2548 #: ../src/guestfs.pod:1287
2549 msgid ""
2550 "There has been an error but the errno was meaningless.  This corresponds to "
2551 "the case where the error did not come from a failed system call, but for "
2552 "some other reason."
2553 msgstr ""
2554
2555 # type: textblock
2556 #: ../src/guestfs.pod:1293
2557 msgid ""
2558 "There was an error from a failed system call, but for some reason the errno "
2559 "was not captured and returned.  This usually indicates a bug in libguestfs."
2560 msgstr ""
2561
2562 # type: textblock
2563 #: ../src/guestfs.pod:1299
2564 msgid ""
2565 "Libguestfs tries to convert the errno from inside the applicance into a "
2566 "corresponding errno for the caller (not entirely trivial: the appliance "
2567 "might be running a completely different operating system from the library "
2568 "and error numbers are not standardized across Un*xen).  If this could not be "
2569 "done, then the error is translated to C<EINVAL>.  In practice this should "
2570 "only happen in very rare circumstances."
2571 msgstr ""
2572
2573 # type: =head2
2574 #: ../src/guestfs.pod:1307
2575 msgid "guestfs_set_error_handler"
2576 msgstr ""
2577
2578 # type: verbatim
2579 #: ../src/guestfs.pod:1309
2580 #, no-wrap
2581 msgid ""
2582 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2583 "                                           void *opaque,\n"
2584 "                                           const char *msg);\n"
2585 " void guestfs_set_error_handler (guestfs_h *g,\n"
2586 "                                 guestfs_error_handler_cb cb,\n"
2587 "                                 void *opaque);\n"
2588 "\n"
2589 msgstr ""
2590
2591 # type: textblock
2592 #: ../src/guestfs.pod:1316
2593 msgid ""
2594 "The callback C<cb> will be called if there is an error.  The parameters "
2595 "passed to the callback are an opaque data pointer and the error message "
2596 "string."
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1320
2601 msgid ""
2602 "C<errno> is not passed to the callback.  To get that the callback must call "
2603 "L</guestfs_last_errno>."
2604 msgstr ""
2605
2606 # type: textblock
2607 #: ../src/guestfs.pod:1323
2608 msgid ""
2609 "Note that the message string C<msg> is freed as soon as the callback "
2610 "function returns, so if you want to stash it somewhere you must make your "
2611 "own copy."
2612 msgstr ""
2613
2614 # type: textblock
2615 #: ../src/guestfs.pod:1327
2616 msgid "The default handler prints messages on C<stderr>."
2617 msgstr ""
2618
2619 # type: textblock
2620 #: ../src/guestfs.pod:1329
2621 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2622 msgstr ""
2623
2624 # type: =head2
2625 #: ../src/guestfs.pod:1331
2626 msgid "guestfs_get_error_handler"
2627 msgstr ""
2628
2629 # type: verbatim
2630 #: ../src/guestfs.pod:1333
2631 #, no-wrap
2632 msgid ""
2633 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2634 "                                                     void **opaque_rtn);\n"
2635 "\n"
2636 msgstr ""
2637
2638 # type: textblock
2639 #: ../src/guestfs.pod:1336
2640 msgid "Returns the current error handler callback."
2641 msgstr ""
2642
2643 # type: =head2
2644 #: ../src/guestfs.pod:1338
2645 msgid "guestfs_set_out_of_memory_handler"
2646 msgstr ""
2647
2648 # type: verbatim
2649 #: ../src/guestfs.pod:1340
2650 #, no-wrap
2651 msgid ""
2652 " typedef void (*guestfs_abort_cb) (void);\n"
2653 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2654 "                                        guestfs_abort_cb);\n"
2655 "\n"
2656 msgstr ""
2657
2658 # type: textblock
2659 #: ../src/guestfs.pod:1344
2660 msgid ""
2661 "The callback C<cb> will be called if there is an out of memory situation.  "
2662 "I<Note this callback must not return>."
2663 msgstr ""
2664
2665 # type: textblock
2666 #: ../src/guestfs.pod:1347
2667 msgid "The default is to call L<abort(3)>."
2668 msgstr ""
2669
2670 # type: textblock
2671 #: ../src/guestfs.pod:1349
2672 msgid ""
2673 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2674 msgstr ""
2675
2676 # type: =head2
2677 #: ../src/guestfs.pod:1352
2678 msgid "guestfs_get_out_of_memory_handler"
2679 msgstr ""
2680
2681 # type: verbatim
2682 #: ../src/guestfs.pod:1354
2683 #, no-wrap
2684 msgid ""
2685 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2686 "\n"
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1356
2691 msgid "This returns the current out of memory handler."
2692 msgstr ""
2693
2694 # type: =head1
2695 #: ../src/guestfs.pod:1358
2696 msgid "API CALLS"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1360 ../fish/guestfish.pod:907
2701 msgid "@ACTIONS@"
2702 msgstr ""
2703
2704 # type: =head1
2705 #: ../src/guestfs.pod:1362
2706 msgid "STRUCTURES"
2707 msgstr ""
2708
2709 # type: textblock
2710 #: ../src/guestfs.pod:1364
2711 msgid "@STRUCTS@"
2712 msgstr ""
2713
2714 # type: =head1
2715 #: ../src/guestfs.pod:1366
2716 msgid "AVAILABILITY"
2717 msgstr ""
2718
2719 # type: =head2
2720 #: ../src/guestfs.pod:1368
2721 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2722 msgstr ""
2723
2724 # type: textblock
2725 #: ../src/guestfs.pod:1370
2726 msgid ""
2727 "Using L</guestfs_available> you can test availability of the following "
2728 "groups of functions.  This test queries the appliance to see if the "
2729 "appliance you are currently using supports the functionality."
2730 msgstr ""
2731
2732 # type: textblock
2733 #: ../src/guestfs.pod:1375
2734 msgid "@AVAILABILITY@"
2735 msgstr ""
2736
2737 # type: =head2
2738 #: ../src/guestfs.pod:1377
2739 msgid "GUESTFISH supported COMMAND"
2740 msgstr ""
2741
2742 # type: textblock
2743 #: ../src/guestfs.pod:1379
2744 msgid ""
2745 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2746 "prints out the available groups and whether they are supported by this build "
2747 "of libguestfs.  Note however that you have to do C<run> first."
2748 msgstr ""
2749
2750 # type: =head2
2751 #: ../src/guestfs.pod:1384
2752 msgid "SINGLE CALLS AT COMPILE TIME"
2753 msgstr ""
2754
2755 # type: textblock
2756 #: ../src/guestfs.pod:1386
2757 msgid ""
2758 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2759 "function, such as:"
2760 msgstr ""
2761
2762 # type: verbatim
2763 #: ../src/guestfs.pod:1389
2764 #, no-wrap
2765 msgid ""
2766 " #define LIBGUESTFS_HAVE_DD 1\n"
2767 "\n"
2768 msgstr ""
2769
2770 # type: textblock
2771 #: ../src/guestfs.pod:1391
2772 msgid "if L</guestfs_dd> is available."
2773 msgstr ""
2774
2775 # type: textblock
2776 #: ../src/guestfs.pod:1393
2777 msgid ""
2778 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2779 "function is available at compile time, we recommended using build tools such "
2780 "as autoconf or cmake.  For example in autotools you could use:"
2781 msgstr ""
2782
2783 # type: verbatim
2784 #: ../src/guestfs.pod:1398
2785 #, no-wrap
2786 msgid ""
2787 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2788 " AC_CHECK_FUNCS([guestfs_dd])\n"
2789 "\n"
2790 msgstr ""
2791
2792 # type: textblock
2793 #: ../src/guestfs.pod:1401
2794 msgid ""
2795 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2796 "in your program."
2797 msgstr ""
2798
2799 # type: =head2
2800 #: ../src/guestfs.pod:1404
2801 msgid "SINGLE CALLS AT RUN TIME"
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1406
2806 msgid ""
2807 "Testing at compile time doesn't guarantee that a function really exists in "
2808 "the library.  The reason is that you might be dynamically linked against a "
2809 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2810 "This situation unfortunately results in a segmentation fault, which is a "
2811 "shortcoming of the C dynamic linking system itself."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1413
2816 msgid ""
2817 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2818 "in this example program (note that you still need the compile time check as "
2819 "well):"
2820 msgstr ""
2821
2822 # type: verbatim
2823 #: ../src/guestfs.pod:1417
2824 #, no-wrap
2825 msgid ""
2826 " #include <stdio.h>\n"
2827 " #include <stdlib.h>\n"
2828 " #include <unistd.h>\n"
2829 " #include <dlfcn.h>\n"
2830 " #include <guestfs.h>\n"
2831 " \n"
2832 msgstr ""
2833
2834 # type: verbatim
2835 #: ../src/guestfs.pod:1423
2836 #, no-wrap
2837 msgid ""
2838 " main ()\n"
2839 " {\n"
2840 " #ifdef LIBGUESTFS_HAVE_DD\n"
2841 "   void *dl;\n"
2842 "   int has_function;\n"
2843 " \n"
2844 msgstr ""
2845
2846 # type: verbatim
2847 #: ../src/guestfs.pod:1429
2848 #, no-wrap
2849 msgid ""
2850 "   /* Test if the function guestfs_dd is really available. */\n"
2851 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2852 "   if (!dl) {\n"
2853 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2854 "     exit (EXIT_FAILURE);\n"
2855 "   }\n"
2856 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2857 "   dlclose (dl);\n"
2858 " \n"
2859 msgstr ""
2860
2861 # type: verbatim
2862 #: ../src/guestfs.pod:1438
2863 #, no-wrap
2864 msgid ""
2865 "   if (!has_function)\n"
2866 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2867 "   else {\n"
2868 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2869 "     /* Now it's safe to call\n"
2870 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2871 "     */\n"
2872 "   }\n"
2873 " #else\n"
2874 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2875 " #endif\n"
2876 "  }\n"
2877 "\n"
2878 msgstr ""
2879
2880 # type: textblock
2881 #: ../src/guestfs.pod:1451
2882 msgid ""
2883 "You may think the above is an awful lot of hassle, and it is.  There are "
2884 "other ways outside of the C linking system to ensure that this kind of "
2885 "incompatibility never arises, such as using package versioning:"
2886 msgstr ""
2887
2888 # type: verbatim
2889 #: ../src/guestfs.pod:1456
2890 #, no-wrap
2891 msgid ""
2892 " Requires: libguestfs >= 1.0.80\n"
2893 "\n"
2894 msgstr ""
2895
2896 # type: =head1
2897 #: ../src/guestfs.pod:1458
2898 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1460
2903 msgid ""
2904 "A recent feature of the API is the introduction of calls which take optional "
2905 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2906 "takes variable arguments (ie. C<...>), as in this example:"
2907 msgstr ""
2908
2909 # type: verbatim
2910 #: ../src/guestfs.pod:1465
2911 #, no-wrap
2912 msgid ""
2913 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2914 "\n"
2915 msgstr ""
2916
2917 # type: textblock
2918 #: ../src/guestfs.pod:1467
2919 msgid ""
2920 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2921 "call with no optional arguments specified:"
2922 msgstr ""
2923
2924 # type: verbatim
2925 #: ../src/guestfs.pod:1470
2926 #, no-wrap
2927 msgid ""
2928 " guestfs_add_drive_opts (g, filename, -1);\n"
2929 "\n"
2930 msgstr ""
2931
2932 # type: textblock
2933 #: ../src/guestfs.pod:1472
2934 msgid "With a single optional argument:"
2935 msgstr ""
2936
2937 # type: verbatim
2938 #: ../src/guestfs.pod:1474
2939 #, no-wrap
2940 msgid ""
2941 " guestfs_add_drive_opts (g, filename,\n"
2942 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2943 "                         -1);\n"
2944 "\n"
2945 msgstr ""
2946
2947 # type: textblock
2948 #: ../src/guestfs.pod:1478
2949 msgid "With two:"
2950 msgstr ""
2951
2952 # type: verbatim
2953 #: ../src/guestfs.pod:1480
2954 #, no-wrap
2955 msgid ""
2956 " guestfs_add_drive_opts (g, filename,\n"
2957 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2958 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2959 "                         -1);\n"
2960 "\n"
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1485
2965 msgid ""
2966 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2967 "happen!"
2968 msgstr ""
2969
2970 # type: =head2
2971 #: ../src/guestfs.pod:1488
2972 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2973 msgstr ""
2974
2975 # type: textblock
2976 #: ../src/guestfs.pod:1490
2977 msgid ""
2978 "The second variant has the same name with the suffix C<_va>, which works the "
2979 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2980 "example function, this is declared:"
2981 msgstr ""
2982
2983 # type: verbatim
2984 #: ../src/guestfs.pod:1494
2985 #, no-wrap
2986 msgid ""
2987 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2988 "                                va_list args);\n"
2989 "\n"
2990 msgstr ""
2991
2992 # type: =head2
2993 #: ../src/guestfs.pod:1497
2994 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2995 msgstr ""
2996
2997 # type: textblock
2998 #: ../src/guestfs.pod:1499
2999 msgid ""
3000 "The third variant is useful where you need to construct these calls.  You "
3001 "pass in a structure where you fill in the optional fields.  The structure "
3002 "has a bitmask as the first element which you must set to indicate which "
3003 "fields you have filled in.  For our example function the structure and call "
3004 "are declared:"
3005 msgstr ""
3006
3007 # type: verbatim
3008 #: ../src/guestfs.pod:1505
3009 #, no-wrap
3010 msgid ""
3011 " struct guestfs_add_drive_opts_argv {\n"
3012 "   uint64_t bitmask;\n"
3013 "   int readonly;\n"
3014 "   const char *format;\n"
3015 "   /* ... */\n"
3016 " };\n"
3017 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3018 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3019 "\n"
3020 msgstr ""
3021
3022 # type: textblock
3023 #: ../src/guestfs.pod:1514
3024 msgid "You could call it like this:"
3025 msgstr ""
3026
3027 # type: verbatim
3028 #: ../src/guestfs.pod:1516
3029 #, no-wrap
3030 msgid ""
3031 " struct guestfs_add_drive_opts_argv optargs = {\n"
3032 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3033 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3034 "   .readonly = 1,\n"
3035 "   .format = \"qcow2\"\n"
3036 " };\n"
3037 " \n"
3038 msgstr ""
3039
3040 # type: verbatim
3041 #: ../src/guestfs.pod:1523
3042 #, no-wrap
3043 msgid ""
3044 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3045 "\n"
3046 msgstr ""
3047
3048 # type: textblock
3049 #: ../src/guestfs.pod:1525 ../src/guestfs-actions.pod:11
3050 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3051 #: ../fish/guestfish-actions.pod:1255
3052 msgid "Notes:"
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1531
3057 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3058 msgstr ""
3059
3060 # type: textblock
3061 #: ../src/guestfs.pod:1536
3062 msgid "You do not need to fill in all fields of the structure."
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1540
3067 msgid ""
3068 "There must be a one-to-one correspondence between fields of the structure "
3069 "that are filled in, and bits set in the bitmask."
3070 msgstr ""
3071
3072 # type: =head2
3073 #: ../src/guestfs.pod:1545
3074 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1547
3079 msgid ""
3080 "In other languages, optional arguments are expressed in the way that is "
3081 "natural for that language.  We refer you to the language-specific "
3082 "documentation for more details on that."
3083 msgstr ""
3084
3085 # type: textblock
3086 #: ../src/guestfs.pod:1551
3087 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3088 msgstr ""
3089
3090 # type: =head2
3091 #: ../src/guestfs.pod:1553
3092 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3093 msgstr ""
3094
3095 # type: textblock
3096 #: ../src/guestfs.pod:1555
3097 msgid ""
3098 "The child process generates events in some situations.  Current events "
3099 "include: receiving a log message, the child process exits."
3100 msgstr ""
3101
3102 # type: textblock
3103 #: ../src/guestfs.pod:1558
3104 msgid ""
3105 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3106 "types of events."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1561
3111 msgid ""
3112 "Only I<one callback of each type> can be registered for each handle.  "
3113 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3114 "that type.  Cancel all callbacks of this type by calling this function with "
3115 "C<cb> set to C<NULL>."
3116 msgstr ""
3117
3118 # type: =head2
3119 #: ../src/guestfs.pod:1566
3120 msgid "guestfs_set_log_message_callback"
3121 msgstr ""
3122
3123 # type: verbatim
3124 #: ../src/guestfs.pod:1568
3125 #, no-wrap
3126 msgid ""
3127 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3128 "                                         char *buf, int len);\n"
3129 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3130 "                                        guestfs_log_message_cb cb,\n"
3131 "                                        void *opaque);\n"
3132 "\n"
3133 msgstr ""
3134
3135 # type: textblock
3136 #: ../src/guestfs.pod:1574
3137 msgid ""
3138 "The callback function C<cb> will be called whenever qemu or the guest writes "
3139 "anything to the console."
3140 msgstr ""
3141
3142 # type: textblock
3143 #: ../src/guestfs.pod:1577
3144 msgid "Use this function to capture kernel messages and similar."
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1579
3149 msgid ""
3150 "Normally there is no log message handler, and log messages are just "
3151 "discarded."
3152 msgstr ""
3153
3154 # type: =head2
3155 #: ../src/guestfs.pod:1582
3156 msgid "guestfs_set_subprocess_quit_callback"
3157 msgstr ""
3158
3159 # type: verbatim
3160 #: ../src/guestfs.pod:1584
3161 #, no-wrap
3162 msgid ""
3163 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3164 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3165 "                                            guestfs_subprocess_quit_cb cb,\n"
3166 "                                            void *opaque);\n"
3167 "\n"
3168 msgstr ""
3169
3170 # type: textblock
3171 #: ../src/guestfs.pod:1589
3172 msgid ""
3173 "The callback function C<cb> will be called when the child process quits, "
3174 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3175 "corresponds to a transition from any state to the CONFIG state)."
3176 msgstr ""
3177
3178 # type: =head2
3179 #: ../src/guestfs.pod:1594
3180 msgid "guestfs_set_launch_done_callback"
3181 msgstr ""
3182
3183 # type: verbatim
3184 #: ../src/guestfs.pod:1596
3185 #, no-wrap
3186 msgid ""
3187 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3188 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3189 "                                        guestfs_launch_done_cb cb,\n"
3190 "                                        void *opaque);\n"
3191 "\n"
3192 msgstr ""
3193
3194 # type: textblock
3195 #: ../src/guestfs.pod:1601
3196 msgid ""
3197 "The callback function C<cb> will be called when the child process becomes "
3198 "ready first time after it has been launched.  (This corresponds to a "
3199 "transition from LAUNCHING to the READY state)."
3200 msgstr ""
3201
3202 # type: =head2
3203 #: ../src/guestfs.pod:1605
3204 msgid "guestfs_set_close_callback"
3205 msgstr ""
3206
3207 # type: verbatim
3208 #: ../src/guestfs.pod:1607
3209 #, no-wrap
3210 msgid ""
3211 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3212 " void guestfs_set_close_callback (guestfs_h *g,\n"
3213 "                                  guestfs_close_cb cb,\n"
3214 "                                  void *opaque);\n"
3215 "\n"
3216 msgstr ""
3217
3218 # type: textblock
3219 #: ../src/guestfs.pod:1612
3220 msgid ""
3221 "The callback function C<cb> will be called while the handle is being closed "
3222 "(synchronously from L</guestfs_close>)."
3223 msgstr ""
3224
3225 # type: textblock
3226 #: ../src/guestfs.pod:1615
3227 msgid ""
3228 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3229 "handles that are open when the program exits.  This means that this callback "
3230 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3231 "problems in higher-level languages (eg. if your HLL interpreter has already "
3232 "been cleaned up by the time this is called, and if your callback then jumps "
3233 "into some HLL function)."
3234 msgstr ""
3235
3236 # type: =head2
3237 #: ../src/guestfs.pod:1623
3238 msgid "guestfs_set_progress_callback"
3239 msgstr ""
3240
3241 # type: verbatim
3242 #: ../src/guestfs.pod:1625
3243 #, no-wrap
3244 msgid ""
3245 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3246 "                                      int proc_nr, int serial,\n"
3247 "                                      uint64_t position, uint64_t total);\n"
3248 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3249 "                                     guestfs_progress_cb cb,\n"
3250 "                                     void *opaque);\n"
3251 "\n"
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1632
3256 msgid ""
3257 "Some long-running operations can generate progress messages.  If this "
3258 "callback is registered, then it will be called each time a progress message "
3259 "is generated (usually two seconds after the operation started, and three "
3260 "times per second thereafter until it completes, although the frequency may "
3261 "change in future versions)."
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1638
3266 msgid ""
3267 "The callback receives two numbers: C<position> and C<total>.  The units of "
3268 "C<total> are not defined, although for some operations C<total> may relate "
3269 "in some way to the amount of data to be transferred (eg. in bytes or "
3270 "megabytes), and C<position> may be the portion which has been transferred."
3271 msgstr ""
3272
3273 # type: textblock
3274 #: ../src/guestfs.pod:1644
3275 msgid "The only defined and stable parts of the API are:"
3276 msgstr ""
3277
3278 # type: textblock
3279 #: ../src/guestfs.pod:1650
3280 msgid ""
3281 "The callback can display to the user some type of progress bar or indicator "
3282 "which shows the ratio of C<position>:C<total>."
3283 msgstr ""
3284
3285 # type: textblock
3286 #: ../src/guestfs.pod:1655
3287 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1659
3292 msgid ""
3293 "If any progress notification is sent during a call, then a final progress "
3294 "notification is always sent when C<position> = C<total>."
3295 msgstr ""
3296
3297 # type: textblock
3298 #: ../src/guestfs.pod:1662
3299 msgid ""
3300 "This is to simplify caller code, so callers can easily set the progress "
3301 "indicator to \"100%\" at the end of the operation, without requiring special "
3302 "code to detect this case."
3303 msgstr ""
3304
3305 # type: textblock
3306 #: ../src/guestfs.pod:1668
3307 msgid ""
3308 "The callback also receives the procedure number and serial number of the "
3309 "call.  These are only useful for debugging protocol issues, and the callback "
3310 "can normally ignore them.  The callback may want to print these numbers in "
3311 "error messages or debugging messages."
3312 msgstr ""
3313
3314 # type: =head1
3315 #: ../src/guestfs.pod:1673
3316 msgid "PRIVATE DATA AREA"
3317 msgstr ""
3318
3319 # type: textblock
3320 #: ../src/guestfs.pod:1675
3321 msgid ""
3322 "You can attach named pieces of private data to the libguestfs handle, and "
3323 "fetch them by name for the lifetime of the handle.  This is called the "
3324 "private data area and is only available from the C API."
3325 msgstr ""
3326
3327 # type: textblock
3328 #: ../src/guestfs.pod:1679
3329 msgid "To attach a named piece of data, use the following call:"
3330 msgstr ""
3331
3332 # type: verbatim
3333 #: ../src/guestfs.pod:1681
3334 #, no-wrap
3335 msgid ""
3336 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3337 "\n"
3338 msgstr ""
3339
3340 # type: textblock
3341 #: ../src/guestfs.pod:1683
3342 msgid ""
3343 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3344 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3345 "overwritten."
3346 msgstr ""
3347
3348 # type: textblock
3349 #: ../src/guestfs.pod:1687
3350 msgid ""
3351 "You can use any C<key> you want, but names beginning with an underscore "
3352 "character are reserved for internal libguestfs purposes (for implementing "
3353 "language bindings).  It is recommended to prefix the name with some unique "
3354 "string to avoid collisions with other users."
3355 msgstr ""
3356
3357 # type: textblock
3358 #: ../src/guestfs.pod:1692
3359 msgid "To retrieve the pointer, use:"
3360 msgstr ""
3361
3362 # type: verbatim
3363 #: ../src/guestfs.pod:1694
3364 #, no-wrap
3365 msgid ""
3366 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3367 "\n"
3368 msgstr ""
3369
3370 # type: textblock
3371 #: ../src/guestfs.pod:1696
3372 msgid ""
3373 "This function returns C<NULL> if either no data is found associated with "
3374 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3375 "C<NULL>."
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1700
3380 msgid ""
3381 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3382 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3383 "all.  In particular, libguestfs does I<not> try to free the data when the "
3384 "handle is closed.  If the data must be freed, then the caller must either "
3385 "free it before calling L</guestfs_close> or must set up a close callback to "
3386 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3387 "can be registered for a handle)."
3388 msgstr ""
3389
3390 # type: textblock
3391 #: ../src/guestfs.pod:1708
3392 msgid ""
3393 "The private data area is implemented using a hash table, and should be "
3394 "reasonably efficient for moderate numbers of keys."
3395 msgstr ""
3396
3397 # type: =end
3398 #: ../src/guestfs.pod:1711 ../src/guestfs.pod:1716
3399 msgid "html"
3400 msgstr ""
3401
3402 # type: textblock
3403 #: ../src/guestfs.pod:1713
3404 msgid ""
3405 "<!-- old anchor for the next section --> <a name="
3406 "\"state_machine_and_low_level_event_api\"/>"
3407 msgstr ""
3408
3409 # type: =head1
3410 #: ../src/guestfs.pod:1718
3411 msgid "ARCHITECTURE"
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1720
3416 msgid ""
3417 "Internally, libguestfs is implemented by running an appliance (a special "
3418 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3419 "process of the main program."
3420 msgstr ""
3421
3422 # type: verbatim
3423 #: ../src/guestfs.pod:1724
3424 #, no-wrap
3425 msgid ""
3426 "  ___________________\n"
3427 " /                   \\\n"
3428 " | main program      |\n"
3429 " |                   |\n"
3430 " |                   |           child process / appliance\n"
3431 " |                   |           __________________________\n"
3432 " |                   |          / qemu                     \\\n"
3433 " +-------------------+   RPC    |      +-----------------+ |\n"
3434 " | libguestfs     <--------------------> guestfsd        | |\n"
3435 " |                   |          |      +-----------------+ |\n"
3436 " \\___________________/          |      | Linux kernel    | |\n"
3437 "                                |      +--^--------------+ |\n"
3438 "                                \\_________|________________/\n"
3439 "                                          |\n"
3440 "                                   _______v______\n"
3441 "                                  /              \\\n"
3442 "                                  | Device or    |\n"
3443 "                                  | disk image   |\n"
3444 "                                  \\______________/\n"
3445 "\n"
3446 msgstr ""
3447
3448 # type: textblock
3449 #: ../src/guestfs.pod:1744
3450 msgid ""
3451 "The library, linked to the main program, creates the child process and hence "
3452 "the appliance in the L</guestfs_launch> function."
3453 msgstr ""
3454
3455 # type: textblock
3456 #: ../src/guestfs.pod:1747
3457 msgid ""
3458 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3459 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3460 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3461 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3462 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3463 "attached to the qemu process which translates device access by the "
3464 "appliance's Linux kernel into accesses to the image."
3465 msgstr ""
3466
3467 # type: textblock
3468 #: ../src/guestfs.pod:1756
3469 msgid ""
3470 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3471 "Although the disk image you are attached to might also be used by some "
3472 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3473 "care if both libguestfs's qemu process and your virtual machine are trying "
3474 "to update the disk image at the same time, since these usually results in "
3475 "massive disk corruption)."
3476 msgstr ""
3477
3478 # type: =head1
3479 #: ../src/guestfs.pod:1763
3480 msgid "STATE MACHINE"
3481 msgstr ""
3482
3483 # type: textblock
3484 #: ../src/guestfs.pod:1765
3485 msgid "libguestfs uses a state machine to model the child process:"
3486 msgstr ""
3487
3488 # type: verbatim
3489 #: ../src/guestfs.pod:1767
3490 #, no-wrap
3491 msgid ""
3492 "                         |\n"
3493 "                    guestfs_create\n"
3494 "                         |\n"
3495 "                         |\n"
3496 "                     ____V_____\n"
3497 "                    /          \\\n"
3498 "                    |  CONFIG  |\n"
3499 "                    \\__________/\n"
3500 "                     ^ ^   ^  \\\n"
3501 "                    /  |    \\  \\ guestfs_launch\n"
3502 "                   /   |    _\\__V______\n"
3503 "                  /    |   /           \\\n"
3504 "                 /     |   | LAUNCHING |\n"
3505 "                /      |   \\___________/\n"
3506 "               /       |       /\n"
3507 "              /        |  guestfs_launch\n"
3508 "             /         |     /\n"
3509 "    ______  /        __|____V\n"
3510 "   /      \\ ------> /        \\\n"
3511 "   | BUSY |         | READY  |\n"
3512 "   \\______/ <------ \\________/\n"
3513 "\n"
3514 msgstr ""
3515
3516 # type: textblock
3517 #: ../src/guestfs.pod:1789
3518 msgid ""
3519 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3520 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3521 "(3) alternating between READY and BUSY as commands are issued to, and "
3522 "carried out by, the child process."
3523 msgstr ""
3524
3525 # type: textblock
3526 #: ../src/guestfs.pod:1794
3527 msgid ""
3528 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3529 "asynchronously at any time (eg. due to some internal error), and that causes "
3530 "the state to transition back to CONFIG."
3531 msgstr ""
3532
3533 # type: textblock
3534 #: ../src/guestfs.pod:1798
3535 msgid ""
3536 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3537 "issued when in the CONFIG state."
3538 msgstr ""
3539
3540 # type: textblock
3541 #: ../src/guestfs.pod:1801
3542 msgid ""
3543 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3544 "L</guestfs_launch> blocks until the child process is READY to accept "
3545 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3546 "moves the state from CONFIG to LAUNCHING while it is running."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1807
3551 msgid ""
3552 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3553 "state.  These API calls block waiting for the command to be carried out (ie. "
3554 "the state to transition to BUSY and then back to READY).  There are no non-"
3555 "blocking versions, and no way to issue more than one command per handle at "
3556 "the same time."
3557 msgstr ""
3558
3559 # type: textblock
3560 #: ../src/guestfs.pod:1813
3561 msgid ""
3562 "Finally, the child process sends asynchronous messages back to the main "
3563 "program, such as kernel log messages.  You can register a callback to "
3564 "receive these messages."
3565 msgstr ""
3566
3567 # type: =head1
3568 #: ../src/guestfs.pod:1817
3569 msgid "INTERNALS"
3570 msgstr ""
3571
3572 # type: =head2
3573 #: ../src/guestfs.pod:1819
3574 msgid "COMMUNICATION PROTOCOL"
3575 msgstr ""
3576
3577 # type: textblock
3578 #: ../src/guestfs.pod:1821
3579 msgid ""
3580 "Don't rely on using this protocol directly.  This section documents how it "
3581 "currently works, but it may change at any time."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1824
3586 msgid ""
3587 "The protocol used to talk between the library and the daemon running inside "
3588 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3589 "1014, RFC 1832, RFC 4506)."
3590 msgstr ""
3591
3592 # type: textblock
3593 #: ../src/guestfs.pod:1828
3594 msgid ""
3595 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3596 "this file is automatically generated)."
3597 msgstr ""
3598
3599 # type: textblock
3600 #: ../src/guestfs.pod:1831
3601 msgid ""
3602 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3603 "and C<FileOut> parameters, which are handled with very simple request/reply "
3604 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3605 "parameters, which use the same request and reply messages, but they may also "
3606 "be followed by files sent using a chunked encoding."
3607 msgstr ""
3608
3609 # type: =head3
3610 #: ../src/guestfs.pod:1838
3611 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3612 msgstr ""
3613
3614 # type: textblock
3615 #: ../src/guestfs.pod:1840
3616 msgid "For ordinary functions, the request message is:"
3617 msgstr ""
3618
3619 # type: verbatim
3620 #: ../src/guestfs.pod:1842
3621 #, no-wrap
3622 msgid ""
3623 " total length (header + arguments,\n"
3624 "      but not including the length word itself)\n"
3625 " struct guestfs_message_header (encoded as XDR)\n"
3626 " struct guestfs_<foo>_args (encoded as XDR)\n"
3627 "\n"
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1847
3632 msgid ""
3633 "The total length field allows the daemon to allocate a fixed size buffer "
3634 "into which it slurps the rest of the message.  As a result, the total length "
3635 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3636 "effective size of any request is limited to somewhere under this size."
3637 msgstr ""
3638
3639 # type: textblock
3640 #: ../src/guestfs.pod:1853
3641 msgid ""
3642 "Note also that many functions don't take any arguments, in which case the "
3643 "C<guestfs_I<foo>_args> is completely omitted."
3644 msgstr ""
3645
3646 # type: textblock
3647 #: ../src/guestfs.pod:1856
3648 msgid ""
3649 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3650 "receiver knows what type of args structure to expect, or none at all."
3651 msgstr ""
3652
3653 # type: textblock
3654 #: ../src/guestfs.pod:1860
3655 msgid "The reply message for ordinary functions is:"
3656 msgstr ""
3657
3658 # type: verbatim
3659 #: ../src/guestfs.pod:1862
3660 #, no-wrap
3661 msgid ""
3662 " total length (header + ret,\n"
3663 "      but not including the length word itself)\n"
3664 " struct guestfs_message_header (encoded as XDR)\n"
3665 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3666 "\n"
3667 msgstr ""
3668
3669 # type: textblock
3670 #: ../src/guestfs.pod:1867
3671 msgid ""
3672 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3673 "functions that return no formal return values."
3674 msgstr ""
3675
3676 # type: textblock
3677 #: ../src/guestfs.pod:1870
3678 msgid ""
3679 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3680 msgstr ""
3681
3682 # type: textblock
3683 #: ../src/guestfs.pod:1873
3684 msgid ""
3685 "In the case of an error, a flag is set in the header, and the reply message "
3686 "is slightly changed:"
3687 msgstr ""
3688
3689 # type: verbatim
3690 #: ../src/guestfs.pod:1876
3691 #, no-wrap
3692 msgid ""
3693 " total length (header + error,\n"
3694 "      but not including the length word itself)\n"
3695 " struct guestfs_message_header (encoded as XDR)\n"
3696 " struct guestfs_message_error (encoded as XDR)\n"
3697 "\n"
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1881
3702 msgid ""
3703 "The C<guestfs_message_error> structure contains the error message as a "
3704 "string."
3705 msgstr ""
3706
3707 # type: =head3
3708 #: ../src/guestfs.pod:1884
3709 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1886
3714 msgid ""
3715 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3716 "The normal request message is sent (see above).  However this is followed by "
3717 "a sequence of file chunks."
3718 msgstr ""
3719
3720 # type: verbatim
3721 #: ../src/guestfs.pod:1890
3722 #, no-wrap
3723 msgid ""
3724 " total length (header + arguments,\n"
3725 "      but not including the length word itself,\n"
3726 "      and not including the chunks)\n"
3727 " struct guestfs_message_header (encoded as XDR)\n"
3728 " struct guestfs_<foo>_args (encoded as XDR)\n"
3729 " sequence of chunks for FileIn param #0\n"
3730 " sequence of chunks for FileIn param #1 etc.\n"
3731 "\n"
3732 msgstr ""
3733
3734 # type: textblock
3735 #: ../src/guestfs.pod:1898
3736 msgid "The \"sequence of chunks\" is:"
3737 msgstr ""
3738
3739 # type: verbatim
3740 #: ../src/guestfs.pod:1900
3741 #, no-wrap
3742 msgid ""
3743 " length of chunk (not including length word itself)\n"
3744 " struct guestfs_chunk (encoded as XDR)\n"
3745 " length of chunk\n"
3746 " struct guestfs_chunk (encoded as XDR)\n"
3747 "   ...\n"
3748 " length of chunk\n"
3749 " struct guestfs_chunk (with data.data_len == 0)\n"
3750 "\n"
3751 msgstr ""
3752
3753 # type: textblock
3754 #: ../src/guestfs.pod:1908
3755 msgid ""
3756 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3757 "is set in the final chunk to indicate either successful completion or early "
3758 "cancellation."
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs.pod:1912
3763 msgid ""
3764 "At time of writing there are no functions that have more than one FileIn "
3765 "parameter.  However this is (theoretically) supported, by sending the "
3766 "sequence of chunks for each FileIn parameter one after another (from left to "
3767 "right)."
3768 msgstr ""
3769
3770 # type: textblock
3771 #: ../src/guestfs.pod:1917
3772 msgid ""
3773 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3774 "transfer.  The library does this by sending a chunk with a special flag set "
3775 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3776 "RPC, does I<not> send any reply, and goes back to reading the next request."
3777 msgstr ""
3778
3779 # type: textblock
3780 #: ../src/guestfs.pod:1923
3781 msgid ""
3782 "The daemon may also cancel.  It does this by writing a special word "
3783 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3784 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3785 "cancel chunk).  The special word is chosen so that even if cancellation "
3786 "happens right at the end of the transfer (after the library has finished "
3787 "writing and has started listening for the reply), the \"spurious\" cancel "
3788 "flag will not be confused with the reply message."
3789 msgstr ""
3790
3791 # type: textblock
3792 #: ../src/guestfs.pod:1932
3793 msgid ""
3794 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3795 "limit), and also files where the size is not known in advance (eg. from "
3796 "pipes or sockets).  However the chunks are rather small "
3797 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3798 "to keep much in memory."
3799 msgstr ""
3800
3801 # type: =head3
3802 #: ../src/guestfs.pod:1938
3803 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3804 msgstr ""
3805
3806 # type: textblock
3807 #: ../src/guestfs.pod:1940
3808 msgid ""
3809 "The protocol for FileOut parameters is exactly the same as for FileIn "
3810 "parameters, but with the roles of daemon and library reversed."
3811 msgstr ""
3812
3813 # type: verbatim
3814 #: ../src/guestfs.pod:1943
3815 #, no-wrap
3816 msgid ""
3817 " total length (header + ret,\n"
3818 "      but not including the length word itself,\n"
3819 "      and not including the chunks)\n"
3820 " struct guestfs_message_header (encoded as XDR)\n"
3821 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3822 " sequence of chunks for FileOut param #0\n"
3823 " sequence of chunks for FileOut param #1 etc.\n"
3824 "\n"
3825 msgstr ""
3826
3827 # type: =head3
3828 #: ../src/guestfs.pod:1951
3829 msgid "INITIAL MESSAGE"
3830 msgstr ""
3831
3832 # type: textblock
3833 #: ../src/guestfs.pod:1953
3834 msgid ""
3835 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3836 "which indicates that the guest and daemon is alive.  This is what L</"
3837 "guestfs_launch> waits for."
3838 msgstr ""
3839
3840 # type: =head3
3841 #: ../src/guestfs.pod:1957
3842 msgid "PROGRESS NOTIFICATION MESSAGES"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs.pod:1959
3847 msgid ""
3848 "The daemon may send progress notification messages at any time.  These are "
3849 "distinguished by the normal length word being replaced by "
3850 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3851 msgstr ""
3852
3853 # type: textblock
3854 #: ../src/guestfs.pod:1963
3855 msgid ""
3856 "The library turns them into progress callbacks (see "
3857 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3858 "discards them if not."
3859 msgstr ""
3860
3861 # type: textblock
3862 #: ../src/guestfs.pod:1967
3863 msgid ""
3864 "The daemon self-limits the frequency of progress messages it sends (see "
3865 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3866 "messages."
3867 msgstr ""
3868
3869 # type: =head1
3870 #: ../src/guestfs.pod:1971
3871 msgid "LIBGUESTFS VERSION NUMBERS"
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:1973
3876 msgid ""
3877 "Since April 2010, libguestfs has started to make separate development and "
3878 "stable releases, along with corresponding branches in our git repository.  "
3879 "These separate releases can be identified by version number:"
3880 msgstr ""
3881
3882 # type: verbatim
3883 #: ../src/guestfs.pod:1978
3884 #, no-wrap
3885 msgid ""
3886 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3887 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3888 "       |\n"
3889 "       v\n"
3890 " 1  .  3  .  5\n"
3891 " ^           ^\n"
3892 " |           |\n"
3893 " |           `-------- sub-version\n"
3894 " |\n"
3895 " `------ always '1' because we don't change the ABI\n"
3896 "\n"
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs.pod:1989
3901 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:1991
3906 msgid ""
3907 "As time passes we cherry pick fixes from the development branch and backport "
3908 "those into the stable branch, the effect being that the stable branch should "
3909 "get more stable and less buggy over time.  So the stable releases are ideal "
3910 "for people who don't need new features but would just like the software to "
3911 "work."
3912 msgstr ""
3913
3914 # type: textblock
3915 #: ../src/guestfs.pod:1997
3916 msgid "Our criteria for backporting changes are:"
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs.pod:2003
3921 msgid ""
3922 "Documentation changes which don't affect any code are backported unless the "
3923 "documentation refers to a future feature which is not in stable."
3924 msgstr ""
3925
3926 # type: textblock
3927 #: ../src/guestfs.pod:2009
3928 msgid ""
3929 "Bug fixes which are not controversial, fix obvious problems, and have been "
3930 "well tested are backported."
3931 msgstr ""
3932
3933 # type: textblock
3934 #: ../src/guestfs.pod:2014
3935 msgid ""
3936 "Simple rearrangements of code which shouldn't affect how it works get "
3937 "backported.  This is so that the code in the two branches doesn't get too "
3938 "far out of step, allowing us to backport future fixes more easily."
3939 msgstr ""
3940
3941 # type: textblock
3942 #: ../src/guestfs.pod:2020
3943 msgid ""
3944 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3945 "exceptional case: the new feature is required in order to implement an "
3946 "important bug fix."
3947 msgstr ""
3948
3949 # type: textblock
3950 #: ../src/guestfs.pod:2026
3951 msgid ""
3952 "A new stable branch starts when we think the new features in development are "
3953 "substantial and compelling enough over the current stable branch to warrant "
3954 "it.  When that happens we create new stable and development versions 1.N.0 "
3955 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3956 "stable at this point, but by backporting fixes from development, that branch "
3957 "will stabilize over time."
3958 msgstr ""
3959
3960 # type: =head1
3961 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:914
3962 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3963 #: ../tools/virt-rescue.pl:255
3964 msgid "ENVIRONMENT VARIABLES"
3965 msgstr ""
3966
3967 # type: =item
3968 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:940
3969 msgid "LIBGUESTFS_APPEND"
3970 msgstr ""
3971
3972 # type: textblock
3973 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:942
3974 msgid "Pass additional options to the guest kernel."
3975 msgstr ""
3976
3977 # type: =item
3978 #: ../src/guestfs.pod:2042 ../fish/guestfish.pod:944
3979 msgid "LIBGUESTFS_DEBUG"
3980 msgstr ""
3981
3982 # type: textblock
3983 #: ../src/guestfs.pod:2044
3984 msgid ""
3985 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3986 "effect as calling C<guestfs_set_verbose (g, 1)>."
3987 msgstr ""
3988
3989 # type: =item
3990 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:949
3991 msgid "LIBGUESTFS_MEMSIZE"
3992 msgstr ""
3993
3994 # type: textblock
3995 #: ../src/guestfs.pod:2049 ../fish/guestfish.pod:951
3996 msgid ""
3997 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3998 msgstr ""
3999
4000 # type: verbatim
4001 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:954
4002 #, no-wrap
4003 msgid ""
4004 " LIBGUESTFS_MEMSIZE=700\n"
4005 "\n"
4006 msgstr ""
4007
4008 # type: =item
4009 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:956
4010 msgid "LIBGUESTFS_PATH"
4011 msgstr ""
4012
4013 # type: textblock
4014 #: ../src/guestfs.pod:2056
4015 msgid ""
4016 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4017 "the discussion of paths in section PATH above."
4018 msgstr ""
4019
4020 # type: =item
4021 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:961
4022 msgid "LIBGUESTFS_QEMU"
4023 msgstr ""
4024
4025 # type: textblock
4026 #: ../src/guestfs.pod:2061 ../fish/guestfish.pod:963
4027 msgid ""
4028 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4029 "which was found at compile time by the configure script is used."
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs.pod:2065
4034 msgid "See also L</QEMU WRAPPERS> above."
4035 msgstr ""
4036
4037 # type: =item
4038 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:967
4039 msgid "LIBGUESTFS_TRACE"
4040 msgstr ""
4041
4042 # type: textblock
4043 #: ../src/guestfs.pod:2069
4044 msgid ""
4045 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4046 "effect as calling C<guestfs_set_trace (g, 1)>."
4047 msgstr ""
4048
4049 # type: =item
4050 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:976
4051 msgid "TMPDIR"
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:978
4056 msgid "Location of temporary directory, defaults to C</tmp>."
4057 msgstr ""
4058
4059 # type: textblock
4060 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:980
4061 msgid ""
4062 "If libguestfs was compiled to use the supermin appliance then the real "
4063 "appliance is cached in this directory, shared between all handles belonging "
4064 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4065 "use in case C</tmp> is not large enough."
4066 msgstr ""
4067
4068 # type: =head1
4069 #: ../src/guestfs.pod:2084 ../fish/guestfish.pod:1038
4070 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4071 #: ../inspector/virt-inspector.pl:452 ../tools/virt-edit.pl:350
4072 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
4073 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
4074 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-tar.pl:281
4075 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
4076 #: ../tools/virt-list-partitions.pl:254
4077 msgid "SEE ALSO"
4078 msgstr ""
4079
4080 # type: textblock
4081 #: ../src/guestfs.pod:2086
4082 msgid ""
4083 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
4084 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
4085 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
4086 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
4087 "L<http://libguestfs.org/>."
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs.pod:2104
4092 msgid ""
4093 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4094 "(8)>, L<disktype(1)>."
4095 msgstr ""
4096
4097 # type: =head1
4098 #: ../src/guestfs.pod:2111 ../tools/virt-win-reg.pl:499
4099 #: ../tools/virt-make-fs.pl:548
4100 msgid "BUGS"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2113
4105 msgid "To get a list of bugs against libguestfs use this link:"
4106 msgstr ""
4107
4108 # type: textblock
4109 #: ../src/guestfs.pod:2115
4110 msgid ""
4111 "L<https://bugzilla.redhat.com/buglist.cgi?"
4112 "component=libguestfs&product=Virtualization+Tools>"
4113 msgstr ""
4114
4115 # type: textblock
4116 #: ../src/guestfs.pod:2117
4117 msgid "To report a new bug against libguestfs use this link:"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2119
4122 msgid ""
4123 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4124 "component=libguestfs&product=Virtualization+Tools>"
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs.pod:2121
4129 msgid "When reporting a bug, please check:"
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs.pod:2127
4134 msgid "That the bug hasn't been reported already."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs.pod:2131
4139 msgid "That you are testing a recent version."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs.pod:2135
4144 msgid "Describe the bug accurately, and give a way to reproduce it."
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs.pod:2139
4149 msgid ""
4150 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4151 "bug report."
4152 msgstr ""
4153
4154 # type: =head1
4155 #: ../src/guestfs.pod:2144 ../fish/guestfish.pod:1055
4156 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4157 #: ../inspector/virt-inspector.pl:462
4158 msgid "AUTHORS"
4159 msgstr ""
4160
4161 # type: textblock
4162 #: ../src/guestfs.pod:2146 ../fish/guestfish.pod:1057
4163 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4164 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4165 msgstr ""
4166
4167 # type: =head1
4168 #: ../src/guestfs.pod:2148 ../fish/guestfish.pod:1059
4169 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4170 #: ../inspector/virt-inspector.pl:476 ../tools/virt-edit.pl:366
4171 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
4172 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
4173 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:296
4174 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
4175 #: ../tools/virt-list-partitions.pl:269
4176 msgid "COPYRIGHT"
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs.pod:2150 ../fish/guestfish.pod:1061
4181 #: ../fuse/guestmount.pod:250
4182 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4183 msgstr ""
4184
4185 # type: textblock
4186 #: ../src/guestfs.pod:2153
4187 msgid ""
4188 "This library is free software; you can redistribute it and/or modify it "
4189 "under the terms of the GNU Lesser General Public License as published by the "
4190 "Free Software Foundation; either version 2 of the License, or (at your "
4191 "option) any later version."
4192 msgstr ""
4193
4194 # type: textblock
4195 #: ../src/guestfs.pod:2158
4196 msgid ""
4197 "This library is distributed in the hope that it will be useful, but WITHOUT "
4198 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4199 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4200 "for more details."
4201 msgstr ""
4202
4203 # type: textblock
4204 #: ../src/guestfs.pod:2163
4205 msgid ""
4206 "You should have received a copy of the GNU Lesser General Public License "
4207 "along with this library; if not, write to the Free Software Foundation, "
4208 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4209 msgstr ""
4210
4211 # type: =head2
4212 #: ../src/guestfs-actions.pod:1
4213 msgid "guestfs_add_cdrom"
4214 msgstr ""
4215
4216 # type: verbatim
4217 #: ../src/guestfs-actions.pod:3
4218 #, no-wrap
4219 msgid ""
4220 " int\n"
4221 " guestfs_add_cdrom (guestfs_h *g,\n"
4222 "                    const char *filename);\n"
4223 "\n"
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4228 msgid "This function adds a virtual CD-ROM disk image to the guest."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4233 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4234 msgstr ""
4235
4236 # type: textblock
4237 #: ../src/guestfs-actions.pod:17
4238 msgid ""
4239 "This call checks for the existence of C<filename>.  This stops you from "
4240 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4241 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4242 "instead."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:24
4247 msgid ""
4248 "If you just want to add an ISO file (often you use this as an efficient way "
4249 "to transfer large files into the guest), then you should probably use "
4250 "C<guestfs_add_drive_ro> instead."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4255 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4256 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4257 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4258 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4259 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4260 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4261 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4262 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4263 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4264 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4265 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4266 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4267 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4268 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4269 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4270 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4271 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4272 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4273 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4274 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4275 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3182
4276 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3217
4277 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3356
4278 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3383
4279 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3434
4280 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3526
4281 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3566
4282 #: ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3621
4283 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3659
4284 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3706
4285 #: ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3758
4286 #: ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3786
4287 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:3896
4288 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3929
4289 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3998
4290 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4032
4291 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060
4292 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4092
4293 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4161
4294 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4211
4295 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4242
4296 #: ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4272
4297 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302
4298 #: ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4352
4299 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4386
4300 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4452
4301 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
4302 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4548
4303 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4700
4304 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4779
4305 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4829
4306 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4912
4307 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4939
4308 #: ../src/guestfs-actions.pod:5228 ../src/guestfs-actions.pod:5247
4309 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5273
4310 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5299
4311 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5329
4312 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5369
4313 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5406
4314 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5447
4315 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5487
4316 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5523
4317 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5575
4318 #: ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618
4319 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5648
4320 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5704
4321 #: ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5753
4322 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5982
4323 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6007
4324 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6042
4325 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6068
4326 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6096
4327 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6172
4328 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6204
4329 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6234
4330 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6290
4331 #: ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6345
4332 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6376
4333 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6436
4334 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6573
4335 #: ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6642
4336 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6700
4337 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6787
4338 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6879
4339 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6927
4340 msgid "This function returns 0 on success or -1 on error."
4341 msgstr ""
4342
4343 # type: textblock
4344 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4345 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4346 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4347 msgid ""
4348 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4349 "instead."
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4354 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4355 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4356 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6990
4357 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4358 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4359 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4360 #: ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4361 msgid ""
4362 "Deprecated functions will not be removed from the API, but the fact that "
4363 "they are deprecated indicates that there are problems with correct use of "
4364 "these functions."
4365 msgstr ""
4366
4367 # type: textblock
4368 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4369 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4370 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4371 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3199
4372 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:5408
4373 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5635
4374 #: ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6223
4375 #: ../src/guestfs-actions.pod:6735
4376 msgid "(Added in 0.3)"
4377 msgstr ""
4378
4379 # type: =head2
4380 #: ../src/guestfs-actions.pod:41
4381 msgid "guestfs_add_domain"
4382 msgstr ""
4383
4384 # type: verbatim
4385 #: ../src/guestfs-actions.pod:43
4386 #, no-wrap
4387 msgid ""
4388 " int\n"
4389 " guestfs_add_domain (guestfs_h *g,\n"
4390 "                     const char *dom,\n"
4391 "                     ...);\n"
4392 "\n"
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4397 msgid ""
4398 "You may supply a list of optional arguments to this call.  Use zero or more "
4399 "of the following pairs of parameters, and terminate the list with C<-1> on "
4400 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4401 msgstr ""
4402
4403 # type: verbatim
4404 #: ../src/guestfs-actions.pod:53
4405 #, no-wrap
4406 msgid ""
4407 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4408 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4409 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4410 "\n"
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:57
4415 msgid ""
4416 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4417 "It works by connecting to libvirt, requesting the domain and domain XML from "
4418 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4419 "one."
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4424 msgid ""
4425 "The number of disks added is returned.  This operation is atomic: if an "
4426 "error is returned, then no disks are added."
4427 msgstr ""
4428
4429 # type: textblock
4430 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4431 msgid ""
4432 "This function does some minimal checks to make sure the libvirt domain is "
4433 "not running (unless C<readonly> is true).  In a future version we will try "
4434 "to acquire the libvirt lock on each disk."
4435 msgstr ""
4436
4437 # type: textblock
4438 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4439 msgid ""
4440 "Disks must be accessible locally.  This often means that adding disks from a "
4441 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4442 "unless those disks are accessible via the same device path locally too."
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:74
4447 msgid ""
4448 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4449 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4450 "libvirt URI (or one set through an environment variable, see the libvirt "
4451 "documentation for full details).  If you are using the C API directly then "
4452 "it is more flexible to create the libvirt connection object yourself, get "
4453 "the domain object, and call C<guestfs_add_libvirt_dom>."
4454 msgstr ""
4455
4456 # type: textblock
4457 #: ../src/guestfs-actions.pod:82
4458 msgid ""
4459 "The other optional parameters are passed directly through to "
4460 "C<guestfs_add_drive_opts>."
4461 msgstr ""
4462
4463 # type: textblock
4464 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4465 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4466 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4467 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4468 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4469 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4470 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4471 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2630
4472 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:4475
4473 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5009
4474 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:6331
4475 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-actions.pod:6759
4476 #: ../src/guestfs-actions.pod:6772
4477 msgid "On error this function returns -1."
4478 msgstr ""
4479
4480 # type: =head2
4481 #: ../src/guestfs-actions.pod:87
4482 msgid "guestfs_add_domain_va"
4483 msgstr ""
4484
4485 # type: verbatim
4486 #: ../src/guestfs-actions.pod:89
4487 #, no-wrap
4488 msgid ""
4489 " int\n"
4490 " guestfs_add_domain_va (guestfs_h *g,\n"
4491 "                        const char *dom,\n"
4492 "                        va_list args);\n"
4493 "\n"
4494 msgstr ""
4495
4496 # type: textblock
4497 #: ../src/guestfs-actions.pod:94
4498 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4499 msgstr ""
4500
4501 # type: textblock
4502 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4503 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4504 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4505 msgstr ""
4506
4507 # type: =head2
4508 #: ../src/guestfs-actions.pod:98
4509 msgid "guestfs_add_domain_argv"
4510 msgstr ""
4511
4512 # type: verbatim
4513 #: ../src/guestfs-actions.pod:100
4514 #, no-wrap
4515 msgid ""
4516 " int\n"
4517 " guestfs_add_domain_argv (guestfs_h *g,\n"
4518 "                          const char *dom,\n"
4519 "                          const struct guestfs_add_domain_argv *optargs);\n"
4520 "\n"
4521 msgstr ""
4522
4523 # type: textblock
4524 #: ../src/guestfs-actions.pod:105
4525 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4526 msgstr ""
4527
4528 # type: =head2
4529 #: ../src/guestfs-actions.pod:109
4530 msgid "guestfs_add_drive"
4531 msgstr ""
4532
4533 # type: verbatim
4534 #: ../src/guestfs-actions.pod:111
4535 #, no-wrap
4536 msgid ""
4537 " int\n"
4538 " guestfs_add_drive (guestfs_h *g,\n"
4539 "                    const char *filename);\n"
4540 "\n"
4541 msgstr ""
4542
4543 # type: textblock
4544 #: ../src/guestfs-actions.pod:115
4545 msgid ""
4546 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4547 "optional parameters, so the disk is added writable, with the format being "
4548 "detected automatically."
4549 msgstr ""
4550
4551 # type: textblock
4552 #: ../src/guestfs-actions.pod:119
4553 msgid ""
4554 "Automatic detection of the format opens you up to a potential security hole "
4555 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4556 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4557 "you should think about replacing calls to this function with calls to "
4558 "C<guestfs_add_drive_opts>, and specifying the format."
4559 msgstr ""
4560
4561 # type: =head2
4562 #: ../src/guestfs-actions.pod:130
4563 msgid "guestfs_add_drive_opts"
4564 msgstr ""
4565
4566 # type: verbatim
4567 #: ../src/guestfs-actions.pod:132
4568 #, no-wrap
4569 msgid ""
4570 " int\n"
4571 " guestfs_add_drive_opts (guestfs_h *g,\n"
4572 "                         const char *filename,\n"
4573 "                         ...);\n"
4574 "\n"
4575 msgstr ""
4576
4577 # type: verbatim
4578 #: ../src/guestfs-actions.pod:142
4579 #, no-wrap
4580 msgid ""
4581 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4582 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4583 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4584 "\n"
4585 msgstr ""
4586
4587 # type: textblock
4588 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4589 msgid ""
4590 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4591 "The first time you call this function, the disk appears as C</dev/sda>, the "
4592 "second time as C</dev/sdb>, and so on."
4593 msgstr ""
4594
4595 # type: textblock
4596 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4597 msgid ""
4598 "You don't necessarily need to be root when using libguestfs.  However you "
4599 "obviously do need sufficient permissions to access the filename for whatever "
4600 "operations you want to perform (ie. read access if you just want to read the "
4601 "image or write access if you want to modify the image)."
4602 msgstr ""
4603
4604 # type: textblock
4605 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4606 msgid "This call checks that C<filename> exists."
4607 msgstr ""
4608
4609 # type: textblock
4610 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4611 msgid "The optional arguments are:"
4612 msgstr ""
4613
4614 # type: =item
4615 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4616 msgid "C<readonly>"
4617 msgstr ""
4618
4619 # type: textblock
4620 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4621 msgid ""
4622 "If true then the image is treated as read-only.  Writes are still allowed, "
4623 "but they are stored in a temporary snapshot overlay which is discarded at "
4624 "the end.  The disk that you add is not modified."
4625 msgstr ""
4626
4627 # type: =item
4628 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4629 msgid "C<format>"
4630 msgstr ""
4631
4632 # type: textblock
4633 #: ../src/guestfs-actions.pod:171
4634 msgid ""
4635 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4636 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4637 "Possible formats include C<raw> and C<qcow2>."
4638 msgstr ""
4639
4640 # type: textblock
4641 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4642 msgid ""
4643 "Automatic detection of the format opens you up to a potential security hole "
4644 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4645 "RHBZ#642934.  Specifying the format closes this security hole."
4646 msgstr ""
4647
4648 # type: =item
4649 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4650 msgid "C<iface>"
4651 msgstr ""
4652
4653 # type: textblock
4654 #: ../src/guestfs-actions.pod:182
4655 msgid ""
4656 "This rarely-used option lets you emulate the behaviour of the deprecated "
4657 "C<guestfs_add_drive_with_if> call (q.v.)"
4658 msgstr ""
4659
4660 # type: textblock
4661 #: ../src/guestfs-actions.pod:189
4662 msgid "(Added in 1.5.23)"
4663 msgstr ""
4664
4665 # type: =head2
4666 #: ../src/guestfs-actions.pod:191
4667 msgid "guestfs_add_drive_opts_va"
4668 msgstr ""
4669
4670 # type: verbatim
4671 #: ../src/guestfs-actions.pod:193
4672 #, no-wrap
4673 msgid ""
4674 " int\n"
4675 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4676 "                            const char *filename,\n"
4677 "                            va_list args);\n"
4678 "\n"
4679 msgstr ""
4680
4681 # type: textblock
4682 #: ../src/guestfs-actions.pod:198
4683 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4684 msgstr ""
4685
4686 # type: =head2
4687 #: ../src/guestfs-actions.pod:202
4688 msgid "guestfs_add_drive_opts_argv"
4689 msgstr ""
4690
4691 # type: verbatim
4692 #: ../src/guestfs-actions.pod:204
4693 #, no-wrap
4694 msgid ""
4695 " int\n"
4696 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4697 "                              const char *filename,\n"
4698 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4699 "\n"
4700 msgstr ""
4701
4702 # type: textblock
4703 #: ../src/guestfs-actions.pod:209
4704 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:213
4709 msgid "guestfs_add_drive_ro"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:215
4714 #, no-wrap
4715 msgid ""
4716 " int\n"
4717 " guestfs_add_drive_ro (guestfs_h *g,\n"
4718 "                       const char *filename);\n"
4719 "\n"
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:219
4724 msgid ""
4725 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4726 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4727 "disk is added read-only, with the format being detected automatically."
4728 msgstr ""
4729
4730 # type: textblock
4731 #: ../src/guestfs-actions.pod:226
4732 msgid "(Added in 1.0.38)"
4733 msgstr ""
4734
4735 # type: =head2
4736 #: ../src/guestfs-actions.pod:228
4737 msgid "guestfs_add_drive_ro_with_if"
4738 msgstr ""
4739
4740 # type: verbatim
4741 #: ../src/guestfs-actions.pod:230
4742 #, no-wrap
4743 msgid ""
4744 " int\n"
4745 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4746 "                               const char *filename,\n"
4747 "                               const char *iface);\n"
4748 "\n"
4749 msgstr ""
4750
4751 # type: textblock
4752 #: ../src/guestfs-actions.pod:235
4753 msgid ""
4754 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4755 "QEMU interface emulation to use at run time."
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4760 #: ../src/guestfs-actions.pod:2303
4761 msgid "(Added in 1.0.84)"
4762 msgstr ""
4763
4764 # type: =head2
4765 #: ../src/guestfs-actions.pod:249
4766 msgid "guestfs_add_drive_with_if"
4767 msgstr ""
4768
4769 # type: verbatim
4770 #: ../src/guestfs-actions.pod:251
4771 #, no-wrap
4772 msgid ""
4773 " int\n"
4774 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4775 "                            const char *filename,\n"
4776 "                            const char *iface);\n"
4777 "\n"
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:256
4782 msgid ""
4783 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4784 "QEMU interface emulation to use at run time."
4785 msgstr ""
4786
4787 # type: =head2
4788 #: ../src/guestfs-actions.pod:270
4789 msgid "guestfs_aug_clear"
4790 msgstr ""
4791
4792 # type: verbatim
4793 #: ../src/guestfs-actions.pod:272
4794 #, no-wrap
4795 msgid ""
4796 " int\n"
4797 " guestfs_aug_clear (guestfs_h *g,\n"
4798 "                    const char *augpath);\n"
4799 "\n"
4800 msgstr ""
4801
4802 # type: textblock
4803 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4804 msgid ""
4805 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4806 "L<augtool(1)> C<clear> command."
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4811 msgid "(Added in 1.3.4)"
4812 msgstr ""
4813
4814 # type: =head2
4815 #: ../src/guestfs-actions.pod:283
4816 msgid "guestfs_aug_close"
4817 msgstr ""
4818
4819 # type: verbatim
4820 #: ../src/guestfs-actions.pod:285
4821 #, no-wrap
4822 msgid ""
4823 " int\n"
4824 " guestfs_aug_close (guestfs_h *g);\n"
4825 "\n"
4826 msgstr ""
4827
4828 # type: textblock
4829 #: ../src/guestfs-actions.pod:288
4830 msgid ""
4831 "Close the current Augeas handle and free up any resources used by it.  After "
4832 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4833 "any other Augeas functions."
4834 msgstr ""
4835
4836 # type: textblock
4837 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4838 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4839 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4840 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4841 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4842 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4843 #: ../src/guestfs-actions.pod:5086
4844 msgid "(Added in 0.7)"
4845 msgstr ""
4846
4847 # type: =head2
4848 #: ../src/guestfs-actions.pod:297
4849 msgid "guestfs_aug_defnode"
4850 msgstr ""
4851
4852 # type: verbatim
4853 #: ../src/guestfs-actions.pod:299
4854 #, no-wrap
4855 msgid ""
4856 " struct guestfs_int_bool *\n"
4857 " guestfs_aug_defnode (guestfs_h *g,\n"
4858 "                      const char *name,\n"
4859 "                      const char *expr,\n"
4860 "                      const char *val);\n"
4861 "\n"
4862 msgstr ""
4863
4864 # type: textblock
4865 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4866 msgid ""
4867 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:308
4872 msgid ""
4873 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4874 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4875 "containing that single node."
4876 msgstr ""
4877
4878 # type: textblock
4879 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4880 msgid ""
4881 "On success this returns a pair containing the number of nodes in the "
4882 "nodeset, and a boolean flag if a node was created."
4883 msgstr ""
4884
4885 # type: textblock
4886 #: ../src/guestfs-actions.pod:316
4887 msgid ""
4888 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4889 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4890 msgstr ""
4891
4892 # type: =head2
4893 #: ../src/guestfs-actions.pod:322
4894 msgid "guestfs_aug_defvar"
4895 msgstr ""
4896
4897 # type: verbatim
4898 #: ../src/guestfs-actions.pod:324
4899 #, no-wrap
4900 msgid ""
4901 " int\n"
4902 " guestfs_aug_defvar (guestfs_h *g,\n"
4903 "                     const char *name,\n"
4904 "                     const char *expr);\n"
4905 "\n"
4906 msgstr ""
4907
4908 # type: textblock
4909 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4910 msgid ""
4911 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4912 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4913 msgstr ""
4914
4915 # type: textblock
4916 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4917 msgid ""
4918 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4919 "evaluates to something which is not a nodeset."
4920 msgstr ""
4921
4922 # type: =head2
4923 #: ../src/guestfs-actions.pod:340
4924 msgid "guestfs_aug_get"
4925 msgstr ""
4926
4927 # type: verbatim
4928 #: ../src/guestfs-actions.pod:342
4929 #, no-wrap
4930 msgid ""
4931 " char *\n"
4932 " guestfs_aug_get (guestfs_h *g,\n"
4933 "                  const char *augpath);\n"
4934 "\n"
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4939 msgid ""
4940 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4941 "node, the C<value> is returned."
4942 msgstr ""
4943
4944 # type: textblock
4945 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4946 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4947 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4948 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4949 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4950 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4951 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4952 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4953 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4954 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4955 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2712
4956 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763
4957 #: ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2846
4958 #: ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3678
4959 #: ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3958
4960 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4814
4961 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5162
4962 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5774
4963 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5807
4964 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:6495
4965 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6532
4966 #: ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6984
4967 msgid ""
4968 "This function returns a string, or NULL on error.  I<The caller must free "
4969 "the returned string after use>."
4970 msgstr ""
4971
4972 # type: =head2
4973 #: ../src/guestfs-actions.pod:354
4974 msgid "guestfs_aug_init"
4975 msgstr ""
4976
4977 # type: verbatim
4978 #: ../src/guestfs-actions.pod:356
4979 #, no-wrap
4980 msgid ""
4981 " int\n"
4982 " guestfs_aug_init (guestfs_h *g,\n"
4983 "                   const char *root,\n"
4984 "                   int flags);\n"
4985 "\n"
4986 msgstr ""
4987
4988 # type: textblock
4989 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4990 msgid ""
4991 "Create a new Augeas handle for editing configuration files.  If there was "
4992 "any previous Augeas handle associated with this guestfs session, then it is "
4993 "closed."
4994 msgstr ""
4995
4996 # type: textblock
4997 #: ../src/guestfs-actions.pod:365
4998 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4999 msgstr ""
5000
5001 # type: textblock
5002 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
5003 msgid ""
5004 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5005 msgstr ""
5006
5007 # type: textblock
5008 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
5009 msgid ""
5010 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5011 "logical I<or> of the following integers:"
5012 msgstr ""
5013
5014 # type: =item
5015 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5016 msgid "C<AUG_SAVE_BACKUP> = 1"
5017 msgstr ""
5018
5019 # type: textblock
5020 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5021 msgid "Keep the original file with a C<.augsave> extension."
5022 msgstr ""
5023
5024 # type: =item
5025 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5026 msgid "C<AUG_SAVE_NEWFILE> = 2"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5031 msgid ""
5032 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5033 "original.  Overrides C<AUG_SAVE_BACKUP>."
5034 msgstr ""
5035
5036 # type: =item
5037 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5038 msgid "C<AUG_TYPE_CHECK> = 4"
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5043 msgid "Typecheck lenses (can be expensive)."
5044 msgstr ""
5045
5046 # type: =item
5047 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5048 msgid "C<AUG_NO_STDINC> = 8"
5049 msgstr ""
5050
5051 # type: textblock
5052 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5053 msgid "Do not use standard load path for modules."
5054 msgstr ""
5055
5056 # type: =item
5057 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5058 msgid "C<AUG_SAVE_NOOP> = 16"
5059 msgstr ""
5060
5061 # type: textblock
5062 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5063 msgid "Make save a no-op, just record what would have been changed."
5064 msgstr ""
5065
5066 # type: =item
5067 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5068 msgid "C<AUG_NO_LOAD> = 32"
5069 msgstr ""
5070
5071 # type: textblock
5072 #: ../src/guestfs-actions.pod:400
5073 msgid "Do not load the tree in C<guestfs_aug_init>."
5074 msgstr ""
5075
5076 # type: textblock
5077 #: ../src/guestfs-actions.pod:404
5078 msgid "To close the handle, you can call C<guestfs_aug_close>."
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5083 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5084 msgstr ""
5085
5086 # type: =head2
5087 #: ../src/guestfs-actions.pod:412
5088 msgid "guestfs_aug_insert"
5089 msgstr ""
5090
5091 # type: verbatim
5092 #: ../src/guestfs-actions.pod:414
5093 #, no-wrap
5094 msgid ""
5095 " int\n"
5096 " guestfs_aug_insert (guestfs_h *g,\n"
5097 "                     const char *augpath,\n"
5098 "                     const char *label,\n"
5099 "                     int before);\n"
5100 "\n"
5101 msgstr ""
5102
5103 # type: textblock
5104 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5105 msgid ""
5106 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5107 "or after C<path> (depending on the boolean flag C<before>)."
5108 msgstr ""
5109
5110 # type: textblock
5111 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5112 msgid ""
5113 "C<path> must match exactly one existing node in the tree, and C<label> must "
5114 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5115 msgstr ""
5116
5117 # type: =head2
5118 #: ../src/guestfs-actions.pod:432
5119 msgid "guestfs_aug_load"
5120 msgstr ""
5121
5122 # type: verbatim
5123 #: ../src/guestfs-actions.pod:434
5124 #, no-wrap
5125 msgid ""
5126 " int\n"
5127 " guestfs_aug_load (guestfs_h *g);\n"
5128 "\n"
5129 msgstr ""
5130
5131 # type: textblock
5132 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5133 msgid "Load files into the tree."
5134 msgstr ""
5135
5136 # type: textblock
5137 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5138 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5139 msgstr ""
5140
5141 # type: =head2
5142 #: ../src/guestfs-actions.pod:446
5143 msgid "guestfs_aug_ls"
5144 msgstr ""
5145
5146 # type: verbatim
5147 #: ../src/guestfs-actions.pod:448
5148 #, no-wrap
5149 msgid ""
5150 " char **\n"
5151 " guestfs_aug_ls (guestfs_h *g,\n"
5152 "                 const char *augpath);\n"
5153 "\n"
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:452
5158 msgid ""
5159 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5160 "sorting the resulting nodes into alphabetical order."
5161 msgstr ""
5162
5163 # type: textblock
5164 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5165 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5166 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5167 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5168 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5169 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5170 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5171 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5172 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2782
5173 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3248
5174 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3415
5175 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:4436
5176 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5082
5177 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5847
5178 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5963
5179 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6133
5180 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6625
5181 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6837
5182 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6941
5183 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7006
5184 #: ../src/guestfs-actions.pod:7025
5185 msgid ""
5186 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5187 ">), or NULL if there was an error.  I<The caller must free the strings and "
5188 "the array after use>."
5189 msgstr ""
5190
5191 # type: textblock
5192 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5193 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5194 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3102
5195 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3711
5196 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3931
5197 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4440
5198 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:5275
5199 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5301
5200 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:6347
5201 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6589
5202 #: ../src/guestfs-actions.pod:6792 ../src/guestfs-actions.pod:6825
5203 msgid "(Added in 0.8)"
5204 msgstr ""
5205
5206 # type: =head2
5207 #: ../src/guestfs-actions.pod:461
5208 msgid "guestfs_aug_match"
5209 msgstr ""
5210
5211 # type: verbatim
5212 #: ../src/guestfs-actions.pod:463
5213 #, no-wrap
5214 msgid ""
5215 " char **\n"
5216 " guestfs_aug_match (guestfs_h *g,\n"
5217 "                    const char *augpath);\n"
5218 "\n"
5219 msgstr ""
5220
5221 # type: textblock
5222 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5223 msgid ""
5224 "Returns a list of paths which match the path expression C<path>.  The "
5225 "returned paths are sufficiently qualified so that they match exactly one "
5226 "node in the current tree."
5227 msgstr ""
5228
5229 # type: =head2
5230 #: ../src/guestfs-actions.pod:477
5231 msgid "guestfs_aug_mv"
5232 msgstr ""
5233
5234 # type: verbatim
5235 #: ../src/guestfs-actions.pod:479
5236 #, no-wrap
5237 msgid ""
5238 " int\n"
5239 " guestfs_aug_mv (guestfs_h *g,\n"
5240 "                 const char *src,\n"
5241 "                 const char *dest);\n"
5242 "\n"
5243 msgstr ""
5244
5245 # type: textblock
5246 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5247 msgid ""
5248 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5249 "C<dest> is overwritten if it exists."
5250 msgstr ""
5251
5252 # type: =head2
5253 #: ../src/guestfs-actions.pod:491
5254 msgid "guestfs_aug_rm"
5255 msgstr ""
5256
5257 # type: verbatim
5258 #: ../src/guestfs-actions.pod:493
5259 #, no-wrap
5260 msgid ""
5261 " int\n"
5262 " guestfs_aug_rm (guestfs_h *g,\n"
5263 "                 const char *augpath);\n"
5264 "\n"
5265 msgstr ""
5266
5267 # type: textblock
5268 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5269 msgid "Remove C<path> and all of its children."
5270 msgstr ""
5271
5272 # type: textblock
5273 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5274 msgid "On success this returns the number of entries which were removed."
5275 msgstr ""
5276
5277 # type: =head2
5278 #: ../src/guestfs-actions.pod:505
5279 msgid "guestfs_aug_save"
5280 msgstr ""
5281
5282 # type: verbatim
5283 #: ../src/guestfs-actions.pod:507
5284 #, no-wrap
5285 msgid ""
5286 " int\n"
5287 " guestfs_aug_save (guestfs_h *g);\n"
5288 "\n"
5289 msgstr ""
5290
5291 # type: textblock
5292 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5293 msgid "This writes all pending changes to disk."
5294 msgstr ""
5295
5296 # type: textblock
5297 #: ../src/guestfs-actions.pod:512
5298 msgid ""
5299 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5300 "are saved."
5301 msgstr ""
5302
5303 # type: =head2
5304 #: ../src/guestfs-actions.pod:519
5305 msgid "guestfs_aug_set"
5306 msgstr ""
5307
5308 # type: verbatim
5309 #: ../src/guestfs-actions.pod:521
5310 #, no-wrap
5311 msgid ""
5312 " int\n"
5313 " guestfs_aug_set (guestfs_h *g,\n"
5314 "                  const char *augpath,\n"
5315 "                  const char *val);\n"
5316 "\n"
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5321 msgid "Set the value associated with C<path> to C<val>."
5322 msgstr ""
5323
5324 # type: textblock
5325 #: ../src/guestfs-actions.pod:528
5326 msgid ""
5327 "In the Augeas API, it is possible to clear a node by setting the value to "
5328 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5329 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5330 msgstr ""
5331
5332 # type: =head2
5333 #: ../src/guestfs-actions.pod:537
5334 msgid "guestfs_available"
5335 msgstr ""
5336
5337 # type: verbatim
5338 #: ../src/guestfs-actions.pod:539
5339 #, no-wrap
5340 msgid ""
5341 " int\n"
5342 " guestfs_available (guestfs_h *g,\n"
5343 "                    char *const *groups);\n"
5344 "\n"
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5349 msgid ""
5350 "This command is used to check the availability of some groups of "
5351 "functionality in the appliance, which not all builds of the libguestfs "
5352 "appliance will be able to provide."
5353 msgstr ""
5354
5355 # type: textblock
5356 #: ../src/guestfs-actions.pod:547
5357 msgid ""
5358 "The libguestfs groups, and the functions that those groups correspond to, "
5359 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5360 "runtime by calling C<guestfs_available_all_groups>."
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5365 msgid ""
5366 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5367 "\"]> would check for the availability of the Linux inotify functions and "
5368 "Augeas (configuration file editing) functions."
5369 msgstr ""
5370
5371 # type: textblock
5372 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5373 msgid "The command returns no error if I<all> requested groups are available."
5374 msgstr ""
5375
5376 # type: textblock
5377 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5378 msgid ""
5379 "It fails with an error if one or more of the requested groups is unavailable "
5380 "in the appliance."
5381 msgstr ""
5382
5383 # type: textblock
5384 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5385 msgid ""
5386 "If an unknown group name is included in the list of groups then an error is "
5387 "always returned."
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5392 msgid "I<Notes:>"
5393 msgstr ""
5394
5395 # type: textblock
5396 #: ../src/guestfs-actions.pod:571
5397 msgid "You must call C<guestfs_launch> before calling this function."
5398 msgstr ""
5399
5400 # type: textblock
5401 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5402 msgid ""
5403 "The reason is because we don't know what groups are supported by the "
5404 "appliance/daemon until it is running and can be queried."
5405 msgstr ""
5406
5407 # type: textblock
5408 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5409 msgid ""
5410 "If a group of functions is available, this does not necessarily mean that "
5411 "they will work.  You still have to check for errors when calling individual "
5412 "API functions even if they are available."
5413 msgstr ""
5414
5415 # type: textblock
5416 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5417 msgid ""
5418 "It is usually the job of distro packagers to build complete functionality "
5419 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5420 "with all requirements satisfied, will support everything."
5421 msgstr ""
5422
5423 # type: textblock
5424 #: ../src/guestfs-actions.pod:593
5425 msgid ""
5426 "This call was added in version C<1.0.80>.  In previous versions of "
5427 "libguestfs all you could do would be to speculatively execute a command to "
5428 "find out if the daemon implemented it.  See also C<guestfs_version>."
5429 msgstr ""
5430
5431 # type: textblock
5432 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5433 msgid "(Added in 1.0.80)"
5434 msgstr ""
5435
5436 # type: =head2
5437 #: ../src/guestfs-actions.pod:604
5438 msgid "guestfs_available_all_groups"
5439 msgstr ""
5440
5441 # type: verbatim
5442 #: ../src/guestfs-actions.pod:606
5443 #, no-wrap
5444 msgid ""
5445 " char **\n"
5446 " guestfs_available_all_groups (guestfs_h *g);\n"
5447 "\n"
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:609
5452 msgid ""
5453 "This command returns a list of all optional groups that this daemon knows "
5454 "about.  Note this returns both supported and unsupported groups.  To find "
5455 "out which ones the daemon can actually support you have to call "
5456 "C<guestfs_available> on each member of the returned list."
5457 msgstr ""
5458
5459 # type: textblock
5460 #: ../src/guestfs-actions.pod:615
5461 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5462 msgstr ""
5463
5464 # type: textblock
5465 #: ../src/guestfs-actions.pod:621
5466 msgid "(Added in 1.3.15)"
5467 msgstr ""
5468
5469 # type: =head2
5470 #: ../src/guestfs-actions.pod:623
5471 msgid "guestfs_base64_in"
5472 msgstr ""
5473
5474 # type: verbatim
5475 #: ../src/guestfs-actions.pod:625
5476 #, no-wrap
5477 msgid ""
5478 " int\n"
5479 " guestfs_base64_in (guestfs_h *g,\n"
5480 "                    const char *base64file,\n"
5481 "                    const char *filename);\n"
5482 "\n"
5483 msgstr ""
5484
5485 # type: textblock
5486 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5487 msgid ""
5488 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5489 msgstr ""
5490
5491 # type: textblock
5492 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5493 msgid "(Added in 1.3.5)"
5494 msgstr ""
5495
5496 # type: =head2
5497 #: ../src/guestfs-actions.pod:637
5498 msgid "guestfs_base64_out"
5499 msgstr ""
5500
5501 # type: verbatim
5502 #: ../src/guestfs-actions.pod:639
5503 #, no-wrap
5504 msgid ""
5505 " int\n"
5506 " guestfs_base64_out (guestfs_h *g,\n"
5507 "                     const char *filename,\n"
5508 "                     const char *base64file);\n"
5509 "\n"
5510 msgstr ""
5511
5512 # type: textblock
5513 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5514 msgid ""
5515 "This command downloads the contents of C<filename>, writing it out to local "
5516 "file C<base64file> encoded as base64."
5517 msgstr ""
5518
5519 # type: =head2
5520 #: ../src/guestfs-actions.pod:651
5521 msgid "guestfs_blockdev_flushbufs"
5522 msgstr ""
5523
5524 # type: verbatim
5525 #: ../src/guestfs-actions.pod:653
5526 #, no-wrap
5527 msgid ""
5528 " int\n"
5529 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5530 "                             const char *device);\n"
5531 "\n"
5532 msgstr ""
5533
5534 # type: textblock
5535 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5536 msgid ""
5537 "This tells the kernel to flush internal buffers associated with C<device>."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5542 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5543 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5544 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5545 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5546 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5547 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5548 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5549 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5550 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5551 msgid "This uses the L<blockdev(8)> command."
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5556 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5557 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5558 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5559 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5560 msgid "(Added in 0.9.3)"
5561 msgstr ""
5562
5563 # type: =head2
5564 #: ../src/guestfs-actions.pod:666
5565 msgid "guestfs_blockdev_getbsz"
5566 msgstr ""
5567
5568 # type: verbatim
5569 #: ../src/guestfs-actions.pod:668
5570 #, no-wrap
5571 msgid ""
5572 " int\n"
5573 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5574 "                          const char *device);\n"
5575 "\n"
5576 msgstr ""
5577
5578 # type: textblock
5579 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5580 msgid "This returns the block size of a device."
5581 msgstr ""
5582
5583 # type: textblock
5584 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5585 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5586 msgid ""
5587 "(Note this is different from both I<size in blocks> and I<filesystem block "
5588 "size>)."
5589 msgstr ""
5590
5591 # type: =head2
5592 #: ../src/guestfs-actions.pod:683
5593 msgid "guestfs_blockdev_getro"
5594 msgstr ""
5595
5596 # type: verbatim
5597 #: ../src/guestfs-actions.pod:685
5598 #, no-wrap
5599 msgid ""
5600 " int\n"
5601 " guestfs_blockdev_getro (guestfs_h *g,\n"
5602 "                         const char *device);\n"
5603 "\n"
5604 msgstr ""
5605
5606 # type: textblock
5607 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5608 msgid ""
5609 "Returns a boolean indicating if the block device is read-only (true if read-"
5610 "only, false if not)."
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5615 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5616 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5617 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5618 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5619 #: ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3024
5620 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3053
5621 #: ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:3084
5622 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3114
5623 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3141
5624 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3171
5625 #: ../src/guestfs-actions.pod:4585
5626 msgid "This function returns a C truth value on success or -1 on error."
5627 msgstr ""
5628
5629 # type: =head2
5630 #: ../src/guestfs-actions.pod:698
5631 msgid "guestfs_blockdev_getsize64"
5632 msgstr ""
5633
5634 # type: verbatim
5635 #: ../src/guestfs-actions.pod:700
5636 #, no-wrap
5637 msgid ""
5638 " int64_t\n"
5639 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5640 "                             const char *device);\n"
5641 "\n"
5642 msgstr ""
5643
5644 # type: textblock
5645 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5646 msgid "This returns the size of the device in bytes."
5647 msgstr ""
5648
5649 # type: textblock
5650 #: ../src/guestfs-actions.pod:706
5651 msgid "See also C<guestfs_blockdev_getsz>."
5652 msgstr ""
5653
5654 # type: =head2
5655 #: ../src/guestfs-actions.pod:714
5656 msgid "guestfs_blockdev_getss"
5657 msgstr ""
5658
5659 # type: verbatim
5660 #: ../src/guestfs-actions.pod:716
5661 #, no-wrap
5662 msgid ""
5663 " int\n"
5664 " guestfs_blockdev_getss (guestfs_h *g,\n"
5665 "                         const char *device);\n"
5666 "\n"
5667 msgstr ""
5668
5669 # type: textblock
5670 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5671 msgid ""
5672 "This returns the size of sectors on a block device.  Usually 512, but can be "
5673 "larger for modern devices."
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:723
5678 msgid ""
5679 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5680 "that)."
5681 msgstr ""
5682
5683 # type: =head2
5684 #: ../src/guestfs-actions.pod:732
5685 msgid "guestfs_blockdev_getsz"
5686 msgstr ""
5687
5688 # type: verbatim
5689 #: ../src/guestfs-actions.pod:734
5690 #, no-wrap
5691 msgid ""
5692 " int64_t\n"
5693 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5694 "                         const char *device);\n"
5695 "\n"
5696 msgstr ""
5697
5698 # type: textblock
5699 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5700 msgid ""
5701 "This returns the size of the device in units of 512-byte sectors (even if "
5702 "the sectorsize isn't 512 bytes ... weird)."
5703 msgstr ""
5704
5705 # type: textblock
5706 #: ../src/guestfs-actions.pod:741
5707 msgid ""
5708 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5709 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5710 msgstr ""
5711
5712 # type: =head2
5713 #: ../src/guestfs-actions.pod:751
5714 msgid "guestfs_blockdev_rereadpt"
5715 msgstr ""
5716
5717 # type: verbatim
5718 #: ../src/guestfs-actions.pod:753
5719 #, no-wrap
5720 msgid ""
5721 " int\n"
5722 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5723 "                            const char *device);\n"
5724 "\n"
5725 msgstr ""
5726
5727 # type: textblock
5728 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5729 msgid "Reread the partition table on C<device>."
5730 msgstr ""
5731
5732 # type: =head2
5733 #: ../src/guestfs-actions.pod:765
5734 msgid "guestfs_blockdev_setbsz"
5735 msgstr ""
5736
5737 # type: verbatim
5738 #: ../src/guestfs-actions.pod:767
5739 #, no-wrap
5740 msgid ""
5741 " int\n"
5742 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5743 "                          const char *device,\n"
5744 "                          int blocksize);\n"
5745 "\n"
5746 msgstr ""
5747
5748 # type: textblock
5749 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5750 msgid "This sets the block size of a device."
5751 msgstr ""
5752
5753 # type: =head2
5754 #: ../src/guestfs-actions.pod:783
5755 msgid "guestfs_blockdev_setro"
5756 msgstr ""
5757
5758 # type: verbatim
5759 #: ../src/guestfs-actions.pod:785
5760 #, no-wrap
5761 msgid ""
5762 " int\n"
5763 " guestfs_blockdev_setro (guestfs_h *g,\n"
5764 "                         const char *device);\n"
5765 "\n"
5766 msgstr ""
5767
5768 # type: textblock
5769 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5770 msgid "Sets the block device named C<device> to read-only."
5771 msgstr ""
5772
5773 # type: =head2
5774 #: ../src/guestfs-actions.pod:797
5775 msgid "guestfs_blockdev_setrw"
5776 msgstr ""
5777
5778 # type: verbatim
5779 #: ../src/guestfs-actions.pod:799
5780 #, no-wrap
5781 msgid ""
5782 " int\n"
5783 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5784 "                         const char *device);\n"
5785 "\n"
5786 msgstr ""
5787
5788 # type: textblock
5789 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5790 msgid "Sets the block device named C<device> to read-write."
5791 msgstr ""
5792
5793 # type: =head2
5794 #: ../src/guestfs-actions.pod:811
5795 msgid "guestfs_case_sensitive_path"
5796 msgstr ""
5797
5798 # type: verbatim
5799 #: ../src/guestfs-actions.pod:813
5800 #, no-wrap
5801 msgid ""
5802 " char *\n"
5803 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5804 "                              const char *path);\n"
5805 "\n"
5806 msgstr ""
5807
5808 # type: textblock
5809 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5810 msgid ""
5811 "This can be used to resolve case insensitive paths on a filesystem which is "
5812 "case sensitive.  The use case is to resolve paths which you have read from "
5813 "Windows configuration files or the Windows Registry, to the true path."
5814 msgstr ""
5815
5816 # type: textblock
5817 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5818 msgid ""
5819 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5820 "(and probably others), which is that although the underlying filesystem is "
5821 "case-insensitive, the driver exports the filesystem to Linux as case-"
5822 "sensitive."
5823 msgstr ""
5824
5825 # type: textblock
5826 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5827 msgid ""
5828 "One consequence of this is that special directories such as C<c:\\windows> "
5829 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5830 "precise details of how they were created.  In Windows itself this would not "
5831 "be a problem."
5832 msgstr ""
5833
5834 # type: textblock
5835 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5836 msgid ""
5837 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5838 "#posixfilenames1>"
5839 msgstr ""
5840
5841 # type: textblock
5842 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5843 msgid ""
5844 "This function resolves the true case of each element in the path and returns "
5845 "the case-sensitive path."
5846 msgstr ""
5847
5848 # type: textblock
5849 #: ../src/guestfs-actions.pod:839
5850 msgid ""
5851 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5852 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5853 "how the directories were originally created under Windows)."
5854 msgstr ""
5855
5856 # type: textblock
5857 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5858 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5859 msgstr ""
5860
5861 # type: textblock
5862 #: ../src/guestfs-actions.pod:847
5863 msgid "See also C<guestfs_realpath>."
5864 msgstr ""
5865
5866 # type: textblock
5867 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6517
5868 msgid "(Added in 1.0.75)"
5869 msgstr ""
5870
5871 # type: =head2
5872 #: ../src/guestfs-actions.pod:854
5873 msgid "guestfs_cat"
5874 msgstr ""
5875
5876 # type: verbatim
5877 #: ../src/guestfs-actions.pod:856
5878 #, no-wrap
5879 msgid ""
5880 " char *\n"
5881 " guestfs_cat (guestfs_h *g,\n"
5882 "              const char *path);\n"
5883 "\n"
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5072
5888 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5889 msgid "Return the contents of the file named C<path>."
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:862
5894 msgid ""
5895 "Note that this function cannot correctly handle binary files (specifically, "
5896 "files containing C<\\0> character which is treated as end of string).  For "
5897 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5898 "functions which have a more complex interface."
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5903 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5904 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5905 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5906 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5907 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5908 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5909 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4880
5910 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5037
5911 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5912
5912 #: ../src/guestfs-actions.pod:5967 ../src/guestfs-actions.pod:6113
5913 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6789
5914 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6841
5915 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:6945
5916 #: ../src/guestfs-actions.pod:6964 ../src/guestfs-actions.pod:7010
5917 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:582
5918 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5919 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5920 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5921 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5922 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5923 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5924 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263
5925 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354
5926 #: ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386
5927 #: ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015
5928 #: ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115
5929 #: ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543
5930 #: ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570
5931 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628
5932 #: ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5933 msgid ""
5934 "Because of the message protocol, there is a transfer limit of somewhere "
5935 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5936 msgstr ""
5937
5938 # type: textblock
5939 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3252
5940 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3331
5941 #: ../src/guestfs-actions.pod:3419 ../src/guestfs-actions.pod:3824
5942 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:4960
5943 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:6676
5944 #: ../src/guestfs-actions.pod:6690
5945 msgid "(Added in 0.4)"
5946 msgstr ""
5947
5948 # type: =head2
5949 #: ../src/guestfs-actions.pod:875
5950 msgid "guestfs_checksum"
5951 msgstr ""
5952
5953 # type: verbatim
5954 #: ../src/guestfs-actions.pod:877
5955 #, no-wrap
5956 msgid ""
5957 " char *\n"
5958 " guestfs_checksum (guestfs_h *g,\n"
5959 "                   const char *csumtype,\n"
5960 "                   const char *path);\n"
5961 "\n"
5962 msgstr ""
5963
5964 # type: textblock
5965 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5966 msgid ""
5967 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5968 msgstr ""
5969
5970 # type: textblock
5971 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5972 msgid ""
5973 "The type of checksum to compute is given by the C<csumtype> parameter which "
5974 "must have one of the following values:"
5975 msgstr ""
5976
5977 # type: =item
5978 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5979 msgid "C<crc>"
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5984 msgid ""
5985 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5986 "C<cksum> command."
5987 msgstr ""
5988
5989 # type: =item
5990 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5991 msgid "C<md5>"
5992 msgstr ""
5993
5994 # type: textblock
5995 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5996 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5997 msgstr ""
5998
5999 # type: =item
6000 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
6001 msgid "C<sha1>"
6002 msgstr ""
6003
6004 # type: textblock
6005 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
6006 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6007 msgstr ""
6008
6009 # type: =item
6010 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
6011 msgid "C<sha224>"
6012 msgstr ""
6013
6014 # type: textblock
6015 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6016 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6017 msgstr ""
6018
6019 # type: =item
6020 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6021 msgid "C<sha256>"
6022 msgstr ""
6023
6024 # type: textblock
6025 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6026 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6027 msgstr ""
6028
6029 # type: =item
6030 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6031 msgid "C<sha384>"
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6036 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6037 msgstr ""
6038
6039 # type: =item
6040 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6041 msgid "C<sha512>"
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6046 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6047 msgstr ""
6048
6049 # type: textblock
6050 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6051 msgid "The checksum is returned as a printable string."
6052 msgstr ""
6053
6054 # type: textblock
6055 #: ../src/guestfs-actions.pod:923
6056 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6057 msgstr ""
6058
6059 # type: textblock
6060 #: ../src/guestfs-actions.pod:925
6061 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6062 msgstr ""
6063
6064 # type: textblock
6065 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6066 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3026
6067 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3116
6068 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:6378
6069 msgid "(Added in 1.0.2)"
6070 msgstr ""
6071
6072 # type: =head2
6073 #: ../src/guestfs-actions.pod:932
6074 msgid "guestfs_checksum_device"
6075 msgstr ""
6076
6077 # type: verbatim
6078 #: ../src/guestfs-actions.pod:934
6079 #, no-wrap
6080 msgid ""
6081 " char *\n"
6082 " guestfs_checksum_device (guestfs_h *g,\n"
6083 "                          const char *csumtype,\n"
6084 "                          const char *device);\n"
6085 "\n"
6086 msgstr ""
6087
6088 # type: textblock
6089 #: ../src/guestfs-actions.pod:939
6090 msgid ""
6091 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6092 "device named C<device>.  For the types of checksums supported see the "
6093 "C<guestfs_checksum> command."
6094 msgstr ""
6095
6096 # type: textblock
6097 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4491
6098 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4587
6099 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4781
6100 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6306
6101 #: ../src/guestfs-actions.pod:6702
6102 msgid "(Added in 1.3.2)"
6103 msgstr ""
6104
6105 # type: =head2
6106 #: ../src/guestfs-actions.pod:948
6107 msgid "guestfs_checksums_out"
6108 msgstr ""
6109
6110 # type: verbatim
6111 #: ../src/guestfs-actions.pod:950
6112 #, no-wrap
6113 msgid ""
6114 " int\n"
6115 " guestfs_checksums_out (guestfs_h *g,\n"
6116 "                        const char *csumtype,\n"
6117 "                        const char *directory,\n"
6118 "                        const char *sumsfile);\n"
6119 "\n"
6120 msgstr ""
6121
6122 # type: textblock
6123 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6124 msgid ""
6125 "This command computes the checksums of all regular files in C<directory> and "
6126 "then emits a list of those checksums to the local output file C<sumsfile>."
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6131 msgid ""
6132 "This can be used for verifying the integrity of a virtual machine.  However "
6133 "to be properly secure you should pay attention to the output of the checksum "
6134 "command (it uses the ones from GNU coreutils).  In particular when the "
6135 "filename is not printable, coreutils uses a special backslash syntax.  For "
6136 "more information, see the GNU coreutils info file."
6137 msgstr ""
6138
6139 # type: textblock
6140 #: ../src/guestfs-actions.pod:970
6141 msgid "(Added in 1.3.7)"
6142 msgstr ""
6143
6144 # type: =head2
6145 #: ../src/guestfs-actions.pod:972
6146 msgid "guestfs_chmod"
6147 msgstr ""
6148
6149 # type: verbatim
6150 #: ../src/guestfs-actions.pod:974
6151 #, no-wrap
6152 msgid ""
6153 " int\n"
6154 " guestfs_chmod (guestfs_h *g,\n"
6155 "                int mode,\n"
6156 "                const char *path);\n"
6157 "\n"
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6162 msgid ""
6163 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6164 "supported."
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6169 msgid ""
6170 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6171 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6172 "C<700>."
6173 msgstr ""
6174
6175 # type: textblock
6176 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4075
6177 #: ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4209
6178 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:671
6179 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838
6180 #: ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
6181 msgid "The mode actually set is affected by the umask."
6182 msgstr ""
6183
6184 # type: =head2
6185 #: ../src/guestfs-actions.pod:992
6186 msgid "guestfs_chown"
6187 msgstr ""
6188
6189 # type: verbatim
6190 #: ../src/guestfs-actions.pod:994
6191 #, no-wrap
6192 msgid ""
6193 " int\n"
6194 " guestfs_chown (guestfs_h *g,\n"
6195 "                int owner,\n"
6196 "                int group,\n"
6197 "                const char *path);\n"
6198 "\n"
6199 msgstr ""
6200
6201 # type: textblock
6202 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6203 msgid "Change the file owner to C<owner> and group to C<group>."
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3213
6208 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6209 msgid ""
6210 "Only numeric uid and gid are supported.  If you want to use names, you will "
6211 "need to locate and parse the password file yourself (Augeas support makes "
6212 "this relatively easy)."
6213 msgstr ""
6214
6215 # type: =head2
6216 #: ../src/guestfs-actions.pod:1010
6217 msgid "guestfs_command"
6218 msgstr ""
6219
6220 # type: verbatim
6221 #: ../src/guestfs-actions.pod:1012
6222 #, no-wrap
6223 msgid ""
6224 " char *\n"
6225 " guestfs_command (guestfs_h *g,\n"
6226 "                  char *const *arguments);\n"
6227 "\n"
6228 msgstr ""
6229
6230 # type: textblock
6231 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6232 msgid ""
6233 "This call runs a command from the guest filesystem.  The filesystem must be "
6234 "mounted, and must contain a compatible operating system (ie. something "
6235 "Linux, with the same or compatible processor architecture)."
6236 msgstr ""
6237
6238 # type: textblock
6239 #: ../src/guestfs-actions.pod:1021
6240 msgid ""
6241 "The single parameter is an argv-style list of arguments.  The first element "
6242 "is the name of the program to run.  Subsequent elements are parameters.  The "
6243 "list must be non-empty (ie. must contain a program name).  Note that the "
6244 "command runs directly, and is I<not> invoked via the shell (see "
6245 "C<guestfs_sh>)."
6246 msgstr ""
6247
6248 # type: textblock
6249 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6250 msgid "The return value is anything printed to I<stdout> by the command."
6251 msgstr ""
6252
6253 # type: textblock
6254 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6255 msgid ""
6256 "If the command returns a non-zero exit status, then this function returns an "
6257 "error message.  The error message string is the content of I<stderr> from "
6258 "the command."
6259 msgstr ""
6260
6261 # type: textblock
6262 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6263 msgid ""
6264 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6265 "bin>.  If you require a program from another location, you should provide "
6266 "the full path in the first parameter."
6267 msgstr ""
6268
6269 # type: textblock
6270 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6271 msgid ""
6272 "Shared libraries and data files required by the program must be available on "
6273 "filesystems which are mounted in the correct places.  It is the caller's "
6274 "responsibility to ensure all filesystems that are needed are mounted at the "
6275 "right locations."
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6280 #: ../src/guestfs-actions.pod:1535
6281 msgid "(Added in 0.9.1)"
6282 msgstr ""
6283
6284 # type: =head2
6285 #: ../src/guestfs-actions.pod:1054
6286 msgid "guestfs_command_lines"
6287 msgstr ""
6288
6289 # type: verbatim
6290 #: ../src/guestfs-actions.pod:1056
6291 #, no-wrap
6292 msgid ""
6293 " char **\n"
6294 " guestfs_command_lines (guestfs_h *g,\n"
6295 "                        char *const *arguments);\n"
6296 "\n"
6297 msgstr ""
6298
6299 # type: textblock
6300 #: ../src/guestfs-actions.pod:1060
6301 msgid ""
6302 "This is the same as C<guestfs_command>, but splits the result into a list of "
6303 "lines."
6304 msgstr ""
6305
6306 # type: textblock
6307 #: ../src/guestfs-actions.pod:1063
6308 msgid "See also: C<guestfs_sh_lines>"
6309 msgstr ""
6310
6311 # type: =head2
6312 #: ../src/guestfs-actions.pod:1074
6313 msgid "guestfs_config"
6314 msgstr ""
6315
6316 # type: verbatim
6317 #: ../src/guestfs-actions.pod:1076
6318 #, no-wrap
6319 msgid ""
6320 " int\n"
6321 " guestfs_config (guestfs_h *g,\n"
6322 "                 const char *qemuparam,\n"
6323 "                 const char *qemuvalue);\n"
6324 "\n"
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6329 msgid ""
6330 "This can be used to add arbitrary qemu command line parameters of the form "
6331 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6332 "setting some parameters which would interfere with parameters that we use."
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6337 msgid "The first character of C<param> string must be a C<-> (dash)."
6338 msgstr ""
6339
6340 # type: textblock
6341 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6342 msgid "C<value> can be NULL."
6343 msgstr ""
6344
6345 # type: =head2
6346 #: ../src/guestfs-actions.pod:1094
6347 msgid "guestfs_copy_size"
6348 msgstr ""
6349
6350 # type: verbatim
6351 #: ../src/guestfs-actions.pod:1096
6352 #, no-wrap
6353 msgid ""
6354 " int\n"
6355 " guestfs_copy_size (guestfs_h *g,\n"
6356 "                    const char *src,\n"
6357 "                    const char *dest,\n"
6358 "                    int64_t size);\n"
6359 "\n"
6360 msgstr ""
6361
6362 # type: textblock
6363 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6364 msgid ""
6365 "This command copies exactly C<size> bytes from one source device or file "
6366 "C<src> to another destination device or file C<dest>."
6367 msgstr ""
6368
6369 # type: textblock
6370 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6371 msgid ""
6372 "Note this will fail if the source is too short or if the destination is not "
6373 "large enough."
6374 msgstr ""
6375
6376 # type: textblock
6377 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6378 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6379 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6881
6380 #: ../src/guestfs-actions.pod:6900
6381 msgid ""
6382 "This long-running command can generate progress notification messages so "
6383 "that the caller can display a progress bar or indicator.  To receive these "
6384 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6385 "guestfs_set_progress_callback>."
6386 msgstr ""
6387
6388 # type: textblock
6389 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3851
6390 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:6609
6391 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6715
6392 msgid "(Added in 1.0.87)"
6393 msgstr ""
6394
6395 # type: =head2
6396 #: ../src/guestfs-actions.pod:1117
6397 msgid "guestfs_cp"
6398 msgstr ""
6399
6400 # type: verbatim
6401 #: ../src/guestfs-actions.pod:1119
6402 #, no-wrap
6403 msgid ""
6404 " int\n"
6405 " guestfs_cp (guestfs_h *g,\n"
6406 "             const char *src,\n"
6407 "             const char *dest);\n"
6408 "\n"
6409 msgstr ""
6410
6411 # type: textblock
6412 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6413 msgid ""
6414 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6415 "destination filename or destination directory."
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6420 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6421 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4454
6422 #: ../src/guestfs-actions.pod:4831
6423 msgid "(Added in 1.0.18)"
6424 msgstr ""
6425
6426 # type: =head2
6427 #: ../src/guestfs-actions.pod:1131
6428 msgid "guestfs_cp_a"
6429 msgstr ""
6430
6431 # type: verbatim
6432 #: ../src/guestfs-actions.pod:1133
6433 #, no-wrap
6434 msgid ""
6435 " int\n"
6436 " guestfs_cp_a (guestfs_h *g,\n"
6437 "               const char *src,\n"
6438 "               const char *dest);\n"
6439 "\n"
6440 msgstr ""
6441
6442 # type: textblock
6443 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6444 msgid ""
6445 "This copies a file or directory from C<src> to C<dest> recursively using the "
6446 "C<cp -a> command."
6447 msgstr ""
6448
6449 # type: =head2
6450 #: ../src/guestfs-actions.pod:1145
6451 msgid "guestfs_dd"
6452 msgstr ""
6453
6454 # type: verbatim
6455 #: ../src/guestfs-actions.pod:1147
6456 #, no-wrap
6457 msgid ""
6458 " int\n"
6459 " guestfs_dd (guestfs_h *g,\n"
6460 "             const char *src,\n"
6461 "             const char *dest);\n"
6462 "\n"
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6467 msgid ""
6468 "This command copies from one source device or file C<src> to another "
6469 "destination device or file C<dest>.  Normally you would use this to copy to "
6470 "or from a device or partition, for example to duplicate a filesystem."
6471 msgstr ""
6472
6473 # type: textblock
6474 #: ../src/guestfs-actions.pod:1157
6475 msgid ""
6476 "If the destination is a device, it must be as large or larger than the "
6477 "source file or device, otherwise the copy will fail.  This command cannot do "
6478 "partial copies (see C<guestfs_copy_size>)."
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1165
6483 msgid "guestfs_df"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1167
6488 #, no-wrap
6489 msgid ""
6490 " char *\n"
6491 " guestfs_df (guestfs_h *g);\n"
6492 "\n"
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6497 msgid "This command runs the C<df> command to report disk space used."
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6502 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6503 msgid ""
6504 "This command is mostly useful for interactive sessions.  It is I<not> "
6505 "intended that you try to parse the output string.  Use C<statvfs> from "
6506 "programs."
6507 msgstr ""
6508
6509 # type: textblock
6510 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6511 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6512 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6513 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:4354
6514 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6140
6515 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6761
6516 #: ../src/guestfs-actions.pod:6774
6517 msgid "(Added in 1.0.54)"
6518 msgstr ""
6519
6520 # type: =head2
6521 #: ../src/guestfs-actions.pod:1181
6522 msgid "guestfs_df_h"
6523 msgstr ""
6524
6525 # type: verbatim
6526 #: ../src/guestfs-actions.pod:1183
6527 #, no-wrap
6528 msgid ""
6529 " char *\n"
6530 " guestfs_df_h (guestfs_h *g);\n"
6531 "\n"
6532 msgstr ""
6533
6534 # type: textblock
6535 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6536 msgid ""
6537 "This command runs the C<df -h> command to report disk space used in human-"
6538 "readable format."
6539 msgstr ""
6540
6541 # type: =head2
6542 #: ../src/guestfs-actions.pod:1198
6543 msgid "guestfs_dmesg"
6544 msgstr ""
6545
6546 # type: verbatim
6547 #: ../src/guestfs-actions.pod:1200
6548 #, no-wrap
6549 msgid ""
6550 " char *\n"
6551 " guestfs_dmesg (guestfs_h *g);\n"
6552 "\n"
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6557 msgid ""
6558 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6559 "This is sometimes useful for extended debugging of problems."
6560 msgstr ""
6561
6562 # type: textblock
6563 #: ../src/guestfs-actions.pod:1207
6564 msgid ""
6565 "Another way to get the same information is to enable verbose messages with "
6566 "C<guestfs_set_verbose> or by setting the environment variable "
6567 "C<LIBGUESTFS_DEBUG=1> before running the program."
6568 msgstr ""
6569
6570 # type: =head2
6571 #: ../src/guestfs-actions.pod:1217
6572 msgid "guestfs_download"
6573 msgstr ""
6574
6575 # type: verbatim
6576 #: ../src/guestfs-actions.pod:1219
6577 #, no-wrap
6578 msgid ""
6579 " int\n"
6580 " guestfs_download (guestfs_h *g,\n"
6581 "                   const char *remotefilename,\n"
6582 "                   const char *filename);\n"
6583 "\n"
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6588 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6589 msgid ""
6590 "Download file C<remotefilename> and save it as C<filename> on the local "
6591 "machine."
6592 msgstr ""
6593
6594 # type: textblock
6595 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6372
6596 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6597 msgid "C<filename> can also be a named pipe."
6598 msgstr ""
6599
6600 # type: textblock
6601 #: ../src/guestfs-actions.pod:1229
6602 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6603 msgstr ""
6604
6605 # type: =head2
6606 #: ../src/guestfs-actions.pod:1240
6607 msgid "guestfs_download_offset"
6608 msgstr ""
6609
6610 # type: verbatim
6611 #: ../src/guestfs-actions.pod:1242
6612 #, no-wrap
6613 msgid ""
6614 " int\n"
6615 " guestfs_download_offset (guestfs_h *g,\n"
6616 "                          const char *remotefilename,\n"
6617 "                          const char *filename,\n"
6618 "                          int64_t offset,\n"
6619 "                          int64_t size);\n"
6620 "\n"
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6625 msgid ""
6626 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6627 "region must be within the file or device)."
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1255
6632 msgid ""
6633 "Note that there is no limit on the amount of data that can be downloaded "
6634 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6635 "full amount unless an error occurs."
6636 msgstr ""
6637
6638 # type: textblock
6639 #: ../src/guestfs-actions.pod:1260
6640 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6641 msgstr ""
6642
6643 # type: textblock
6644 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6407
6645 msgid "(Added in 1.5.17)"
6646 msgstr ""
6647
6648 # type: =head2
6649 #: ../src/guestfs-actions.pod:1271
6650 msgid "guestfs_drop_caches"
6651 msgstr ""
6652
6653 # type: verbatim
6654 #: ../src/guestfs-actions.pod:1273
6655 #, no-wrap
6656 msgid ""
6657 " int\n"
6658 " guestfs_drop_caches (guestfs_h *g,\n"
6659 "                      int whattodrop);\n"
6660 "\n"
6661 msgstr ""
6662
6663 # type: textblock
6664 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6665 msgid ""
6666 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6667 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6668 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6673 msgid "Setting C<whattodrop> to 3 should drop everything."
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6678 msgid ""
6679 "This automatically calls L<sync(2)> before the operation, so that the "
6680 "maximum guest memory is freed."
6681 msgstr ""
6682
6683 # type: =head2
6684 #: ../src/guestfs-actions.pod:1291
6685 msgid "guestfs_du"
6686 msgstr ""
6687
6688 # type: verbatim
6689 #: ../src/guestfs-actions.pod:1293
6690 #, no-wrap
6691 msgid ""
6692 " int64_t\n"
6693 " guestfs_du (guestfs_h *g,\n"
6694 "             const char *path);\n"
6695 "\n"
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6700 msgid ""
6701 "This command runs the C<du -s> command to estimate file space usage for "
6702 "C<path>."
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6707 msgid ""
6708 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6709 "estimate includes the contents of the directory and all subdirectories "
6710 "(recursively)."
6711 msgstr ""
6712
6713 # type: textblock
6714 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6715 msgid ""
6716 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6717 msgstr ""
6718
6719 # type: =head2
6720 #: ../src/guestfs-actions.pod:1311
6721 msgid "guestfs_e2fsck_f"
6722 msgstr ""
6723
6724 # type: verbatim
6725 #: ../src/guestfs-actions.pod:1313
6726 #, no-wrap
6727 msgid ""
6728 " int\n"
6729 " guestfs_e2fsck_f (guestfs_h *g,\n"
6730 "                   const char *device);\n"
6731 "\n"
6732 msgstr ""
6733
6734 # type: textblock
6735 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6736 msgid ""
6737 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6738 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6739 "clean (C<-f>)."
6740 msgstr ""
6741
6742 # type: textblock
6743 #: ../src/guestfs-actions.pod:1321
6744 msgid ""
6745 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6746 "Normally you should use C<guestfs_fsck>."
6747 msgstr ""
6748
6749 # type: textblock
6750 #: ../src/guestfs-actions.pod:1326
6751 msgid "(Added in 1.0.29)"
6752 msgstr ""
6753
6754 # type: =head2
6755 #: ../src/guestfs-actions.pod:1328
6756 msgid "guestfs_echo_daemon"
6757 msgstr ""
6758
6759 # type: verbatim
6760 #: ../src/guestfs-actions.pod:1330
6761 #, no-wrap
6762 msgid ""
6763 " char *\n"
6764 " guestfs_echo_daemon (guestfs_h *g,\n"
6765 "                      char *const *words);\n"
6766 "\n"
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6771 msgid ""
6772 "This command concatenates the list of C<words> passed with single spaces "
6773 "between them and returns the resulting string."
6774 msgstr ""
6775
6776 # type: textblock
6777 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6778 msgid "You can use this command to test the connection through to the daemon."
6779 msgstr ""
6780
6781 # type: textblock
6782 #: ../src/guestfs-actions.pod:1339
6783 msgid "See also C<guestfs_ping_daemon>."
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6788 #: ../src/guestfs-actions.pod:5620
6789 msgid "(Added in 1.0.69)"
6790 msgstr ""
6791
6792 # type: =head2
6793 #: ../src/guestfs-actions.pod:1346
6794 msgid "guestfs_egrep"
6795 msgstr ""
6796
6797 # type: verbatim
6798 #: ../src/guestfs-actions.pod:1348
6799 #, no-wrap
6800 msgid ""
6801 " char **\n"
6802 " guestfs_egrep (guestfs_h *g,\n"
6803 "                const char *regex,\n"
6804 "                const char *path);\n"
6805 "\n"
6806 msgstr ""
6807
6808 # type: textblock
6809 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6810 msgid ""
6811 "This calls the external C<egrep> program and returns the matching lines."
6812 msgstr ""
6813
6814 # type: textblock
6815 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6816 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6817 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6818 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6819 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6820 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6821 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3344
6822 #: ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3371
6823 #: ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:4289
6824 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5214
6825 #: ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:5996
6826 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6022
6827 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6057
6828 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6083
6829 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6863
6830 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967
6831 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7032
6832 msgid "(Added in 1.0.66)"
6833 msgstr ""
6834
6835 # type: =head2
6836 #: ../src/guestfs-actions.pod:1365
6837 msgid "guestfs_egrepi"
6838 msgstr ""
6839
6840 # type: verbatim
6841 #: ../src/guestfs-actions.pod:1367
6842 #, no-wrap
6843 msgid ""
6844 " char **\n"
6845 " guestfs_egrepi (guestfs_h *g,\n"
6846 "                 const char *regex,\n"
6847 "                 const char *path);\n"
6848 "\n"
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6853 msgid ""
6854 "This calls the external C<egrep -i> program and returns the matching lines."
6855 msgstr ""
6856
6857 # type: =head2
6858 #: ../src/guestfs-actions.pod:1384
6859 msgid "guestfs_equal"
6860 msgstr ""
6861
6862 # type: verbatim
6863 #: ../src/guestfs-actions.pod:1386
6864 #, no-wrap
6865 msgid ""
6866 " int\n"
6867 " guestfs_equal (guestfs_h *g,\n"
6868 "                const char *file1,\n"
6869 "                const char *file2);\n"
6870 "\n"
6871 msgstr ""
6872
6873 # type: textblock
6874 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6875 msgid ""
6876 "This compares the two files C<file1> and C<file2> and returns true if their "
6877 "content is exactly equal, or false otherwise."
6878 msgstr ""
6879
6880 # type: textblock
6881 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6882 msgid "The external L<cmp(1)> program is used for the comparison."
6883 msgstr ""
6884
6885 # type: =head2
6886 #: ../src/guestfs-actions.pod:1400
6887 msgid "guestfs_exists"
6888 msgstr ""
6889
6890 # type: verbatim
6891 #: ../src/guestfs-actions.pod:1402
6892 #, no-wrap
6893 msgid ""
6894 " int\n"
6895 " guestfs_exists (guestfs_h *g,\n"
6896 "                 const char *path);\n"
6897 "\n"
6898 msgstr ""
6899
6900 # type: textblock
6901 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6902 msgid ""
6903 "This returns C<true> if and only if there is a file, directory (or anything) "
6904 "with the given C<path> name."
6905 msgstr ""
6906
6907 # type: textblock
6908 #: ../src/guestfs-actions.pod:1409
6909 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6910 msgstr ""
6911
6912 # type: =head2
6913 #: ../src/guestfs-actions.pod:1415
6914 msgid "guestfs_fallocate"
6915 msgstr ""
6916
6917 # type: verbatim
6918 #: ../src/guestfs-actions.pod:1417
6919 #, no-wrap
6920 msgid ""
6921 " int\n"
6922 " guestfs_fallocate (guestfs_h *g,\n"
6923 "                    const char *path,\n"
6924 "                    int len);\n"
6925 "\n"
6926 msgstr ""
6927
6928 # type: textblock
6929 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6930 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6931 msgid ""
6932 "This command preallocates a file (containing zero bytes) named C<path> of "
6933 "size C<len> bytes.  If the file exists already, it is overwritten."
6934 msgstr ""
6935
6936 # type: textblock
6937 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6938 msgid ""
6939 "Do not confuse this with the guestfish-specific C<alloc> command which "
6940 "allocates a file in the host and attaches it as a device."
6941 msgstr ""
6942
6943 # type: textblock
6944 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6945 msgid ""
6946 "This function is deprecated.  In new code, use the C<fallocate64> call "
6947 "instead."
6948 msgstr ""
6949
6950 # type: =head2
6951 #: ../src/guestfs-actions.pod:1441
6952 msgid "guestfs_fallocate64"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #: ../src/guestfs-actions.pod:1443
6957 #, no-wrap
6958 msgid ""
6959 " int\n"
6960 " guestfs_fallocate64 (guestfs_h *g,\n"
6961 "                      const char *path,\n"
6962 "                      int64_t len);\n"
6963 "\n"
6964 msgstr ""
6965
6966 # type: textblock
6967 #: ../src/guestfs-actions.pod:1452
6968 msgid ""
6969 "Note that this call allocates disk blocks for the file.  To create a sparse "
6970 "file use C<guestfs_truncate_size> instead."
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1455
6975 msgid ""
6976 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6977 "oversight it only allowed 30 bit lengths to be specified, effectively "
6978 "limiting the maximum size of files created through that call to 1GB."
6979 msgstr ""
6980
6981 # type: textblock
6982 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6983 msgid ""
6984 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6985 "commands which create a file in the host and attach it as a device."
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1466
6990 msgid "(Added in 1.3.17)"
6991 msgstr ""
6992
6993 # type: =head2
6994 #: ../src/guestfs-actions.pod:1468
6995 msgid "guestfs_fgrep"
6996 msgstr ""
6997
6998 # type: verbatim
6999 #: ../src/guestfs-actions.pod:1470
7000 #, no-wrap
7001 msgid ""
7002 " char **\n"
7003 " guestfs_fgrep (guestfs_h *g,\n"
7004 "                const char *pattern,\n"
7005 "                const char *path);\n"
7006 "\n"
7007 msgstr ""
7008
7009 # type: textblock
7010 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
7011 msgid ""
7012 "This calls the external C<fgrep> program and returns the matching lines."
7013 msgstr ""
7014
7015 # type: =head2
7016 #: ../src/guestfs-actions.pod:1487
7017 msgid "guestfs_fgrepi"
7018 msgstr ""
7019
7020 # type: verbatim
7021 #: ../src/guestfs-actions.pod:1489
7022 #, no-wrap
7023 msgid ""
7024 " char **\n"
7025 " guestfs_fgrepi (guestfs_h *g,\n"
7026 "                 const char *pattern,\n"
7027 "                 const char *path);\n"
7028 "\n"
7029 msgstr ""
7030
7031 # type: textblock
7032 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7033 msgid ""
7034 "This calls the external C<fgrep -i> program and returns the matching lines."
7035 msgstr ""
7036
7037 # type: =head2
7038 #: ../src/guestfs-actions.pod:1506
7039 msgid "guestfs_file"
7040 msgstr ""
7041
7042 # type: verbatim
7043 #: ../src/guestfs-actions.pod:1508
7044 #, no-wrap
7045 msgid ""
7046 " char *\n"
7047 " guestfs_file (guestfs_h *g,\n"
7048 "               const char *path);\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7054 msgid ""
7055 "This call uses the standard L<file(1)> command to determine the type or "
7056 "contents of the file."
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7061 msgid ""
7062 "This call will also transparently look inside various types of compressed "
7063 "file."
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7068 msgid ""
7069 "The exact command which runs is C<file -zb path>.  Note in particular that "
7070 "the filename is not prepended to the output (the C<-b> option)."
7071 msgstr ""
7072
7073 # type: textblock
7074 #: ../src/guestfs-actions.pod:1522
7075 msgid ""
7076 "This command can also be used on C</dev/> devices (and partitions, LV "
7077 "names).  You can for example use this to determine if a device contains a "
7078 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7079 msgstr ""
7080
7081 # type: textblock
7082 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7083 msgid ""
7084 "If the C<path> does not begin with C</dev/> then this command only works for "
7085 "the content of regular files.  For other file types (directory, symbolic "
7086 "link etc) it will just return the string C<directory> etc."
7087 msgstr ""
7088
7089 # type: =head2
7090 #: ../src/guestfs-actions.pod:1537
7091 msgid "guestfs_file_architecture"
7092 msgstr ""
7093
7094 # type: verbatim
7095 #: ../src/guestfs-actions.pod:1539
7096 #, no-wrap
7097 msgid ""
7098 " char *\n"
7099 " guestfs_file_architecture (guestfs_h *g,\n"
7100 "                            const char *filename);\n"
7101 "\n"
7102 msgstr ""
7103
7104 # type: textblock
7105 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7106 msgid ""
7107 "This detects the architecture of the binary C<filename>, and returns it if "
7108 "known."
7109 msgstr ""
7110
7111 # type: textblock
7112 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7113 msgid "Currently defined architectures are:"
7114 msgstr ""
7115
7116 # type: =item
7117 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7118 msgid "\"i386\""
7119 msgstr ""
7120
7121 # type: textblock
7122 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7123 msgid ""
7124 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7125 "irrespective of the precise processor requirements of the binary."
7126 msgstr ""
7127
7128 # type: =item
7129 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7130 msgid "\"x86_64\""
7131 msgstr ""
7132
7133 # type: textblock
7134 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7135 msgid "64 bit x86-64."
7136 msgstr ""
7137
7138 # type: =item
7139 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7140 msgid "\"sparc\""
7141 msgstr ""
7142
7143 # type: textblock
7144 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7145 msgid "32 bit SPARC."
7146 msgstr ""
7147
7148 # type: =item
7149 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7150 msgid "\"sparc64\""
7151 msgstr ""
7152
7153 # type: textblock
7154 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7155 msgid "64 bit SPARC V9 and above."
7156 msgstr ""
7157
7158 # type: =item
7159 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7160 msgid "\"ia64\""
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7165 msgid "Intel Itanium."
7166 msgstr ""
7167
7168 # type: =item
7169 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7170 msgid "\"ppc\""
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7175 msgid "32 bit Power PC."
7176 msgstr ""
7177
7178 # type: =item
7179 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7180 msgid "\"ppc64\""
7181 msgstr ""
7182
7183 # type: textblock
7184 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7185 msgid "64 bit Power PC."
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7190 msgid "Libguestfs may return other architecture strings in future."
7191 msgstr ""
7192
7193 # type: textblock
7194 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7195 msgid "The function works on at least the following types of files:"
7196 msgstr ""
7197
7198 # type: textblock
7199 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7200 msgid "many types of Un*x and Linux binary"
7201 msgstr ""
7202
7203 # type: textblock
7204 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7205 msgid "many types of Un*x and Linux shared library"
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7210 msgid "Windows Win32 and Win64 binaries"
7211 msgstr ""
7212
7213 # type: textblock
7214 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7215 msgid "Windows Win32 and Win64 DLLs"
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7220 msgid "Win32 binaries and DLLs return C<i386>."
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7225 msgid "Win64 binaries and DLLs return C<x86_64>."
7226 msgstr ""
7227
7228 # type: textblock
7229 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7230 msgid "Linux kernel modules"
7231 msgstr ""
7232
7233 # type: textblock
7234 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7235 msgid "Linux new-style initrd images"
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7240 msgid "some non-x86 Linux vmlinuz kernels"
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7245 msgid "What it can't do currently:"
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7250 msgid "static libraries (libfoo.a)"
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7255 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7260 msgid "x86 Linux vmlinuz kernels"
7261 msgstr ""
7262
7263 # type: textblock
7264 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7265 msgid ""
7266 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7267 "compressed code, and are horribly hard to unpack.  If you want to find the "
7268 "architecture of a kernel, use the architecture of the associated initrd or "
7269 "kernel module(s) instead."
7270 msgstr ""
7271
7272 # type: textblock
7273 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7274 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7275 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7276 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2653
7277 #: ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2766
7278 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:2997
7279 #: ../src/guestfs-actions.pod:3129
7280 msgid "(Added in 1.5.3)"
7281 msgstr ""
7282
7283 # type: =head2
7284 #: ../src/guestfs-actions.pod:1649
7285 msgid "guestfs_filesize"
7286 msgstr ""
7287
7288 # type: verbatim
7289 #: ../src/guestfs-actions.pod:1651
7290 #, no-wrap
7291 msgid ""
7292 " int64_t\n"
7293 " guestfs_filesize (guestfs_h *g,\n"
7294 "                   const char *file);\n"
7295 "\n"
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7300 msgid "This command returns the size of C<file> in bytes."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:1657
7305 msgid ""
7306 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7307 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7308 "devices, use C<guestfs_blockdev_getsize64>."
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1663
7313 msgid "(Added in 1.0.82)"
7314 msgstr ""
7315
7316 # type: =head2
7317 #: ../src/guestfs-actions.pod:1665
7318 msgid "guestfs_fill"
7319 msgstr ""
7320
7321 # type: verbatim
7322 #: ../src/guestfs-actions.pod:1667
7323 #, no-wrap
7324 msgid ""
7325 " int\n"
7326 " guestfs_fill (guestfs_h *g,\n"
7327 "               int c,\n"
7328 "               int len,\n"
7329 "               const char *path);\n"
7330 "\n"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7335 msgid ""
7336 "This command creates a new file called C<path>.  The initial content of the "
7337 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7338 "[0..255]>."
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1677
7343 msgid ""
7344 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7345 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7346 "bytes use C<guestfs_fill_pattern>."
7347 msgstr ""
7348
7349 # type: textblock
7350 #: ../src/guestfs-actions.pod:1689
7351 msgid "(Added in 1.0.79)"
7352 msgstr ""
7353
7354 # type: =head2
7355 #: ../src/guestfs-actions.pod:1691
7356 msgid "guestfs_fill_pattern"
7357 msgstr ""
7358
7359 # type: verbatim
7360 #: ../src/guestfs-actions.pod:1693
7361 #, no-wrap
7362 msgid ""
7363 " int\n"
7364 " guestfs_fill_pattern (guestfs_h *g,\n"
7365 "                       const char *pattern,\n"
7366 "                       int len,\n"
7367 "                       const char *path);\n"
7368 "\n"
7369 msgstr ""
7370
7371 # type: textblock
7372 #: ../src/guestfs-actions.pod:1699
7373 msgid ""
7374 "This function is like C<guestfs_fill> except that it creates a new file of "
7375 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7376 "pattern is truncated if necessary to ensure the length of the file is "
7377 "exactly C<len> bytes."
7378 msgstr ""
7379
7380 # type: textblock
7381 #: ../src/guestfs-actions.pod:1711
7382 msgid "(Added in 1.3.12)"
7383 msgstr ""
7384
7385 # type: =head2
7386 #: ../src/guestfs-actions.pod:1713
7387 msgid "guestfs_find"
7388 msgstr ""
7389
7390 # type: verbatim
7391 #: ../src/guestfs-actions.pod:1715
7392 #, no-wrap
7393 msgid ""
7394 " char **\n"
7395 " guestfs_find (guestfs_h *g,\n"
7396 "               const char *directory);\n"
7397 "\n"
7398 msgstr ""
7399
7400 # type: textblock
7401 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7402 msgid ""
7403 "This command lists out all files and directories, recursively, starting at "
7404 "C<directory>.  It is essentially equivalent to running the shell command "
7405 "C<find directory -print> but some post-processing happens on the output, "
7406 "described below."
7407 msgstr ""
7408
7409 # type: textblock
7410 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7411 msgid ""
7412 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7413 "structure was:"
7414 msgstr ""
7415
7416 # type: verbatim
7417 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7418 #, no-wrap
7419 msgid ""
7420 " /tmp/a\n"
7421 " /tmp/b\n"
7422 " /tmp/c/d\n"
7423 "\n"
7424 msgstr ""
7425
7426 # type: textblock
7427 #: ../src/guestfs-actions.pod:1731
7428 msgid ""
7429 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7430 msgstr ""
7431
7432 # type: verbatim
7433 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7434 #, no-wrap
7435 msgid ""
7436 " a\n"
7437 " b\n"
7438 " c\n"
7439 " c/d\n"
7440 "\n"
7441 msgstr ""
7442
7443 # type: textblock
7444 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7445 msgid "If C<directory> is not a directory, then this command returns an error."
7446 msgstr ""
7447
7448 # type: textblock
7449 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7450 msgid "The returned list is sorted."
7451 msgstr ""
7452
7453 # type: textblock
7454 #: ../src/guestfs-actions.pod:1744
7455 msgid "See also C<guestfs_find0>."
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3788
7460 #: ../src/guestfs-actions.pod:5249
7461 msgid "(Added in 1.0.27)"
7462 msgstr ""
7463
7464 # type: =head2
7465 #: ../src/guestfs-actions.pod:1755
7466 msgid "guestfs_find0"
7467 msgstr ""
7468
7469 # type: verbatim
7470 #: ../src/guestfs-actions.pod:1757
7471 #, no-wrap
7472 msgid ""
7473 " int\n"
7474 " guestfs_find0 (guestfs_h *g,\n"
7475 "                const char *directory,\n"
7476 "                const char *files);\n"
7477 "\n"
7478 msgstr ""
7479
7480 # type: textblock
7481 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7482 msgid ""
7483 "This command lists out all files and directories, recursively, starting at "
7484 "C<directory>, placing the resulting list in the external file called "
7485 "C<files>."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1766
7490 msgid ""
7491 "This command works the same way as C<guestfs_find> with the following "
7492 "exceptions:"
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7497 msgid "The resulting list is written to an external file."
7498 msgstr ""
7499
7500 # type: textblock
7501 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7502 msgid ""
7503 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7504 "L<find(1)> option I<-print0>."
7505 msgstr ""
7506
7507 # type: textblock
7508 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7509 msgid "This command is not limited in the number of names that it can return."
7510 msgstr ""
7511
7512 # type: textblock
7513 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7514 msgid "The result list is not sorted."
7515 msgstr ""
7516
7517 # type: textblock
7518 #: ../src/guestfs-actions.pod:1793
7519 msgid "(Added in 1.0.74)"
7520 msgstr ""
7521
7522 # type: =head2
7523 #: ../src/guestfs-actions.pod:1795
7524 msgid "guestfs_findfs_label"
7525 msgstr ""
7526
7527 # type: verbatim
7528 #: ../src/guestfs-actions.pod:1797
7529 #, no-wrap
7530 msgid ""
7531 " char *\n"
7532 " guestfs_findfs_label (guestfs_h *g,\n"
7533 "                       const char *label);\n"
7534 "\n"
7535 msgstr ""
7536
7537 # type: textblock
7538 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7539 msgid ""
7540 "This command searches the filesystems and returns the one which has the "
7541 "given label.  An error is returned if no such filesystem can be found."
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:1805
7546 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7547 msgstr ""
7548
7549 # type: =head2
7550 #: ../src/guestfs-actions.pod:1812
7551 msgid "guestfs_findfs_uuid"
7552 msgstr ""
7553
7554 # type: verbatim
7555 #: ../src/guestfs-actions.pod:1814
7556 #, no-wrap
7557 msgid ""
7558 " char *\n"
7559 " guestfs_findfs_uuid (guestfs_h *g,\n"
7560 "                      const char *uuid);\n"
7561 "\n"
7562 msgstr ""
7563
7564 # type: textblock
7565 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7566 msgid ""
7567 "This command searches the filesystems and returns the one which has the "
7568 "given UUID.  An error is returned if no such filesystem can be found."
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../src/guestfs-actions.pod:1822
7573 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7574 msgstr ""
7575
7576 # type: =head2
7577 #: ../src/guestfs-actions.pod:1829
7578 msgid "guestfs_fsck"
7579 msgstr ""
7580
7581 # type: verbatim
7582 #: ../src/guestfs-actions.pod:1831
7583 #, no-wrap
7584 msgid ""
7585 " int\n"
7586 " guestfs_fsck (guestfs_h *g,\n"
7587 "               const char *fstype,\n"
7588 "               const char *device);\n"
7589 "\n"
7590 msgstr ""
7591
7592 # type: textblock
7593 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7594 msgid ""
7595 "This runs the filesystem checker (fsck) on C<device> which should have "
7596 "filesystem type C<fstype>."
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7601 msgid ""
7602 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7603 "codes from C<fsck>."
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7608 msgid "Multiple status codes can be summed together."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7613 msgid ""
7614 "A non-zero return code can mean \"success\", for example if errors have been "
7615 "corrected on the filesystem."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7620 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7621 msgstr ""
7622
7623 # type: textblock
7624 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7625 msgid ""
7626 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7627 msgstr ""
7628
7629 # type: textblock
7630 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6886
7631 msgid "(Added in 1.0.16)"
7632 msgstr ""
7633
7634 # type: =head2
7635 #: ../src/guestfs-actions.pod:1868
7636 msgid "guestfs_get_append"
7637 msgstr ""
7638
7639 # type: verbatim
7640 #: ../src/guestfs-actions.pod:1870
7641 #, no-wrap
7642 msgid ""
7643 " const char *\n"
7644 " guestfs_get_append (guestfs_h *g);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7650 msgid ""
7651 "Return the additional kernel options which are added to the guest kernel "
7652 "command line."
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7657 msgid "If C<NULL> then no options are added."
7658 msgstr ""
7659
7660 # type: textblock
7661 #: ../src/guestfs-actions.pod:1878
7662 msgid ""
7663 "This function returns a string which may be NULL.  There is no way to return "
7664 "an error from this function.  The string is owned by the guest handle and "
7665 "must I<not> be freed."
7666 msgstr ""
7667
7668 # type: textblock
7669 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4927
7670 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5758
7671 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5793
7672 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6557
7673 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6929
7674 msgid "(Added in 1.0.26)"
7675 msgstr ""
7676
7677 # type: =head2
7678 #: ../src/guestfs-actions.pod:1884
7679 msgid "guestfs_get_autosync"
7680 msgstr ""
7681
7682 # type: verbatim
7683 #: ../src/guestfs-actions.pod:1886
7684 #, no-wrap
7685 msgid ""
7686 " int\n"
7687 " guestfs_get_autosync (guestfs_h *g);\n"
7688 "\n"
7689 msgstr ""
7690
7691 # type: textblock
7692 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7693 msgid "Get the autosync flag."
7694 msgstr ""
7695
7696 # type: =head2
7697 #: ../src/guestfs-actions.pod:1895
7698 msgid "guestfs_get_direct"
7699 msgstr ""
7700
7701 # type: verbatim
7702 #: ../src/guestfs-actions.pod:1897
7703 #, no-wrap
7704 msgid ""
7705 " int\n"
7706 " guestfs_get_direct (guestfs_h *g);\n"
7707 "\n"
7708 msgstr ""
7709
7710 # type: textblock
7711 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7712 msgid "Return the direct appliance mode flag."
7713 msgstr ""
7714
7715 # type: textblock
7716 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5431
7717 msgid "(Added in 1.0.72)"
7718 msgstr ""
7719
7720 # type: =head2
7721 #: ../src/guestfs-actions.pod:1906
7722 msgid "guestfs_get_e2label"
7723 msgstr ""
7724
7725 # type: verbatim
7726 #: ../src/guestfs-actions.pod:1908
7727 #, no-wrap
7728 msgid ""
7729 " char *\n"
7730 " guestfs_get_e2label (guestfs_h *g,\n"
7731 "                      const char *device);\n"
7732 "\n"
7733 msgstr ""
7734
7735 # type: textblock
7736 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7737 msgid ""
7738 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7739 msgstr ""
7740
7741 # type: textblock
7742 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7743 msgid ""
7744 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7745 msgstr ""
7746
7747 # type: textblock
7748 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7749 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5468
7750 msgid "(Added in 1.0.15)"
7751 msgstr ""
7752
7753 # type: =head2
7754 #: ../src/guestfs-actions.pod:1927
7755 msgid "guestfs_get_e2uuid"
7756 msgstr ""
7757
7758 # type: verbatim
7759 #: ../src/guestfs-actions.pod:1929
7760 #, no-wrap
7761 msgid ""
7762 " char *\n"
7763 " guestfs_get_e2uuid (guestfs_h *g,\n"
7764 "                     const char *device);\n"
7765 "\n"
7766 msgstr ""
7767
7768 # type: textblock
7769 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7770 msgid ""
7771 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7772 msgstr ""
7773
7774 # type: textblock
7775 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7776 msgid ""
7777 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7778 msgstr ""
7779
7780 # type: =head2
7781 #: ../src/guestfs-actions.pod:1948
7782 msgid "guestfs_get_memsize"
7783 msgstr ""
7784
7785 # type: verbatim
7786 #: ../src/guestfs-actions.pod:1950
7787 #, no-wrap
7788 msgid ""
7789 " int\n"
7790 " guestfs_get_memsize (guestfs_h *g);\n"
7791 "\n"
7792 msgstr ""
7793
7794 # type: textblock
7795 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7796 msgid ""
7797 "This gets the memory size in megabytes allocated to the qemu subprocess."
7798 msgstr ""
7799
7800 # type: textblock
7801 #: ../src/guestfs-actions.pod:1956
7802 msgid ""
7803 "If C<guestfs_set_memsize> was not called on this handle, and if "
7804 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7805 "value for memsize."
7806 msgstr ""
7807
7808 # type: textblock
7809 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7810 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5591
7811 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7812 #: ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7813 msgid ""
7814 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7815 msgstr ""
7816
7817 # type: textblock
7818 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4079
7819 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4213
7820 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244
7821 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4274
7822 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5489
7823 #: ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:6333
7824 msgid "(Added in 1.0.55)"
7825 msgstr ""
7826
7827 # type: =head2
7828 #: ../src/guestfs-actions.pod:1967
7829 msgid "guestfs_get_network"
7830 msgstr ""
7831
7832 # type: verbatim
7833 #: ../src/guestfs-actions.pod:1969
7834 #, no-wrap
7835 msgid ""
7836 " int\n"
7837 " guestfs_get_network (guestfs_h *g);\n"
7838 "\n"
7839 msgstr ""
7840
7841 # type: textblock
7842 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7843 msgid "This returns the enable network flag."
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5508
7848 msgid "(Added in 1.5.4)"
7849 msgstr ""
7850
7851 # type: =head2
7852 #: ../src/guestfs-actions.pod:1978
7853 msgid "guestfs_get_path"
7854 msgstr ""
7855
7856 # type: verbatim
7857 #: ../src/guestfs-actions.pod:1980
7858 #, no-wrap
7859 msgid ""
7860 " const char *\n"
7861 " guestfs_get_path (guestfs_h *g);\n"
7862 "\n"
7863 msgstr ""
7864
7865 # type: textblock
7866 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7867 msgid "Return the current search path."
7868 msgstr ""
7869
7870 # type: textblock
7871 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7872 msgid ""
7873 "This is always non-NULL.  If it wasn't set already, then this will return "
7874 "the default path."
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7879 msgid ""
7880 "This function returns a string, or NULL on error.  The string is owned by "
7881 "the guest handle and must I<not> be freed."
7882 msgstr ""
7883
7884 # type: =head2
7885 #: ../src/guestfs-actions.pod:1993
7886 msgid "guestfs_get_pid"
7887 msgstr ""
7888
7889 # type: verbatim
7890 #: ../src/guestfs-actions.pod:1995
7891 #, no-wrap
7892 msgid ""
7893 " int\n"
7894 " guestfs_get_pid (guestfs_h *g);\n"
7895 "\n"
7896 msgstr ""
7897
7898 # type: textblock
7899 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7900 msgid ""
7901 "Return the process ID of the qemu subprocess.  If there is no qemu "
7902 "subprocess, then this will return an error."
7903 msgstr ""
7904
7905 # type: textblock
7906 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7907 msgid "This is an internal call used for debugging and testing."
7908 msgstr ""
7909
7910 # type: textblock
7911 #: ../src/guestfs-actions.pod:2005
7912 msgid "(Added in 1.0.56)"
7913 msgstr ""
7914
7915 # type: =head2
7916 #: ../src/guestfs-actions.pod:2007
7917 msgid "guestfs_get_qemu"
7918 msgstr ""
7919
7920 # type: verbatim
7921 #: ../src/guestfs-actions.pod:2009
7922 #, no-wrap
7923 msgid ""
7924 " const char *\n"
7925 " guestfs_get_qemu (guestfs_h *g);\n"
7926 "\n"
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7931 msgid "Return the current qemu binary."
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7936 msgid ""
7937 "This is always non-NULL.  If it wasn't set already, then this will return "
7938 "the default qemu binary name."
7939 msgstr ""
7940
7941 # type: textblock
7942 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5553
7943 msgid "(Added in 1.0.6)"
7944 msgstr ""
7945
7946 # type: =head2
7947 #: ../src/guestfs-actions.pod:2022
7948 msgid "guestfs_get_recovery_proc"
7949 msgstr ""
7950
7951 # type: verbatim
7952 #: ../src/guestfs-actions.pod:2024
7953 #, no-wrap
7954 msgid ""
7955 " int\n"
7956 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7957 "\n"
7958 msgstr ""
7959
7960 # type: textblock
7961 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7962 msgid "Return the recovery process enabled flag."
7963 msgstr ""
7964
7965 # type: textblock
7966 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3219
7967 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3886
7968 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4857
7969 #: ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5577
7970 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6256
7971 #: ../src/guestfs-actions.pod:6438
7972 msgid "(Added in 1.0.77)"
7973 msgstr ""
7974
7975 # type: =head2
7976 #: ../src/guestfs-actions.pod:2033
7977 msgid "guestfs_get_selinux"
7978 msgstr ""
7979
7980 # type: verbatim
7981 #: ../src/guestfs-actions.pod:2035
7982 #, no-wrap
7983 msgid ""
7984 " int\n"
7985 " guestfs_get_selinux (guestfs_h *g);\n"
7986 "\n"
7987 msgstr ""
7988
7989 # type: textblock
7990 #: ../src/guestfs-actions.pod:2038
7991 msgid ""
7992 "This returns the current setting of the selinux flag which is passed to the "
7993 "appliance at boot time.  See C<guestfs_set_selinux>."
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7998 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5650
7999 msgid "(Added in 1.0.67)"
8000 msgstr ""
8001
8002 # type: =head2
8003 #: ../src/guestfs-actions.pod:2048
8004 msgid "guestfs_get_state"
8005 msgstr ""
8006
8007 # type: verbatim
8008 #: ../src/guestfs-actions.pod:2050
8009 #, no-wrap
8010 msgid ""
8011 " int\n"
8012 " guestfs_get_state (guestfs_h *g);\n"
8013 "\n"
8014 msgstr ""
8015
8016 # type: textblock
8017 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8018 msgid ""
8019 "This returns the current state as an opaque integer.  This is only useful "
8020 "for printing debug and internal error messages."
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3022
8025 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3112
8026 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:1398
8027 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8028 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8029 msgid "For more information on states, see L<guestfs(3)>."
8030 msgstr ""
8031
8032 # type: =head2
8033 #: ../src/guestfs-actions.pod:2062
8034 msgid "guestfs_get_trace"
8035 msgstr ""
8036
8037 # type: verbatim
8038 #: ../src/guestfs-actions.pod:2064
8039 #, no-wrap
8040 msgid ""
8041 " int\n"
8042 " guestfs_get_trace (guestfs_h *g);\n"
8043 "\n"
8044 msgstr ""
8045
8046 # type: textblock
8047 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8048 msgid "Return the command trace flag."
8049 msgstr ""
8050
8051 # type: =head2
8052 #: ../src/guestfs-actions.pod:2073
8053 msgid "guestfs_get_umask"
8054 msgstr ""
8055
8056 # type: verbatim
8057 #: ../src/guestfs-actions.pod:2075
8058 #, no-wrap
8059 msgid ""
8060 " int\n"
8061 " guestfs_get_umask (guestfs_h *g);\n"
8062 "\n"
8063 msgstr ""
8064
8065 # type: textblock
8066 #: ../src/guestfs-actions.pod:2078
8067 msgid ""
8068 "Return the current umask.  By default the umask is C<022> unless it has been "
8069 "set by calling C<guestfs_umask>."
8070 msgstr ""
8071
8072 # type: =head2
8073 #: ../src/guestfs-actions.pod:2085
8074 msgid "guestfs_get_verbose"
8075 msgstr ""
8076
8077 # type: verbatim
8078 #: ../src/guestfs-actions.pod:2087
8079 #, no-wrap
8080 msgid ""
8081 " int\n"
8082 " guestfs_get_verbose (guestfs_h *g);\n"
8083 "\n"
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8088 msgid "This returns the verbose messages flag."
8089 msgstr ""
8090
8091 # type: =head2
8092 #: ../src/guestfs-actions.pod:2096
8093 msgid "guestfs_getcon"
8094 msgstr ""
8095
8096 # type: verbatim
8097 #: ../src/guestfs-actions.pod:2098
8098 #, no-wrap
8099 msgid ""
8100 " char *\n"
8101 " guestfs_getcon (guestfs_h *g);\n"
8102 "\n"
8103 msgstr ""
8104
8105 # type: textblock
8106 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8107 msgid "This gets the SELinux security context of the daemon."
8108 msgstr ""
8109
8110 # type: textblock
8111 #: ../src/guestfs-actions.pod:2103
8112 msgid ""
8113 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8114 msgstr ""
8115
8116 # type: =head2
8117 #: ../src/guestfs-actions.pod:2111
8118 msgid "guestfs_getxattrs"
8119 msgstr ""
8120
8121 # type: verbatim
8122 #: ../src/guestfs-actions.pod:2113
8123 #, no-wrap
8124 msgid ""
8125 " struct guestfs_xattr_list *\n"
8126 " guestfs_getxattrs (guestfs_h *g,\n"
8127 "                    const char *path);\n"
8128 "\n"
8129 msgstr ""
8130
8131 # type: textblock
8132 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8133 msgid ""
8134 "This call lists the extended attributes of the file or directory C<path>."
8135 msgstr ""
8136
8137 # type: textblock
8138 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8139 msgid ""
8140 "At the system call level, this is a combination of the L<listxattr(2)> and "
8141 "L<getxattr(2)> calls."
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2123
8146 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8147 msgstr ""
8148
8149 # type: textblock
8150 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3231
8151 #: ../src/guestfs-actions.pod:3882
8152 msgid ""
8153 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8154 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8155 msgstr ""
8156
8157 # type: textblock
8158 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3235
8159 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3436
8160 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5669
8161 #: ../src/guestfs-actions.pod:6994
8162 msgid "(Added in 1.0.59)"
8163 msgstr ""
8164
8165 # type: =head2
8166 #: ../src/guestfs-actions.pod:2131
8167 msgid "guestfs_glob_expand"
8168 msgstr ""
8169
8170 # type: verbatim
8171 #: ../src/guestfs-actions.pod:2133
8172 #, no-wrap
8173 msgid ""
8174 " char **\n"
8175 " guestfs_glob_expand (guestfs_h *g,\n"
8176 "                      const char *pattern);\n"
8177 "\n"
8178 msgstr ""
8179
8180 # type: textblock
8181 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8182 msgid ""
8183 "This command searches for all the pathnames matching C<pattern> according to "
8184 "the wildcard expansion rules used by the shell."
8185 msgstr ""
8186
8187 # type: textblock
8188 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8189 msgid ""
8190 "If no paths match, then this returns an empty list (note: not an error)."
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8195 msgid ""
8196 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8197 "GLOB_BRACE>.  See that manual page for more details."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5834
8202 #: ../src/guestfs-actions.pod:5851
8203 msgid "(Added in 1.0.50)"
8204 msgstr ""
8205
8206 # type: =head2
8207 #: ../src/guestfs-actions.pod:2154
8208 msgid "guestfs_grep"
8209 msgstr ""
8210
8211 # type: verbatim
8212 #: ../src/guestfs-actions.pod:2156
8213 #, no-wrap
8214 msgid ""
8215 " char **\n"
8216 " guestfs_grep (guestfs_h *g,\n"
8217 "               const char *regex,\n"
8218 "               const char *path);\n"
8219 "\n"
8220 msgstr ""
8221
8222 # type: textblock
8223 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8224 msgid "This calls the external C<grep> program and returns the matching lines."
8225 msgstr ""
8226
8227 # type: =head2
8228 #: ../src/guestfs-actions.pod:2173
8229 msgid "guestfs_grepi"
8230 msgstr ""
8231
8232 # type: verbatim
8233 #: ../src/guestfs-actions.pod:2175
8234 #, no-wrap
8235 msgid ""
8236 " char **\n"
8237 " guestfs_grepi (guestfs_h *g,\n"
8238 "                const char *regex,\n"
8239 "                const char *path);\n"
8240 "\n"
8241 msgstr ""
8242
8243 # type: textblock
8244 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8245 msgid ""
8246 "This calls the external C<grep -i> program and returns the matching lines."
8247 msgstr ""
8248
8249 # type: =head2
8250 #: ../src/guestfs-actions.pod:2192
8251 msgid "guestfs_grub_install"
8252 msgstr ""
8253
8254 # type: verbatim
8255 #: ../src/guestfs-actions.pod:2194
8256 #, no-wrap
8257 msgid ""
8258 " int\n"
8259 " guestfs_grub_install (guestfs_h *g,\n"
8260 "                       const char *root,\n"
8261 "                       const char *device);\n"
8262 "\n"
8263 msgstr ""
8264
8265 # type: textblock
8266 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8267 msgid ""
8268 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8269 "the root directory being C<root>."
8270 msgstr ""
8271
8272 # type: textblock
8273 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8274 msgid ""
8275 "Note: If grub-install reports the error \"No suitable drive was found in the "
8276 "generated device map.\" it may be that you need to create a C</boot/grub/"
8277 "device.map> file first that contains the mapping between grub device names "
8278 "and Linux device names.  It is usually sufficient to create a file "
8279 "containing:"
8280 msgstr ""
8281
8282 # type: verbatim
8283 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8284 #, no-wrap
8285 msgid ""
8286 " (hd0) /dev/vda\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8292 msgid "replacing C</dev/vda> with the name of the installation device."
8293 msgstr ""
8294
8295 # type: textblock
8296 #: ../src/guestfs-actions.pod:2215
8297 msgid "(Added in 1.0.17)"
8298 msgstr ""
8299
8300 # type: =head2
8301 #: ../src/guestfs-actions.pod:2217
8302 msgid "guestfs_head"
8303 msgstr ""
8304
8305 # type: verbatim
8306 #: ../src/guestfs-actions.pod:2219
8307 #, no-wrap
8308 msgid ""
8309 " char **\n"
8310 " guestfs_head (guestfs_h *g,\n"
8311 "               const char *path);\n"
8312 "\n"
8313 msgstr ""
8314
8315 # type: textblock
8316 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8317 msgid ""
8318 "This command returns up to the first 10 lines of a file as a list of strings."
8319 msgstr ""
8320
8321 # type: =head2
8322 #: ../src/guestfs-actions.pod:2235
8323 msgid "guestfs_head_n"
8324 msgstr ""
8325
8326 # type: verbatim
8327 #: ../src/guestfs-actions.pod:2237
8328 #, no-wrap
8329 msgid ""
8330 " char **\n"
8331 " guestfs_head_n (guestfs_h *g,\n"
8332 "                 int nrlines,\n"
8333 "                 const char *path);\n"
8334 "\n"
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8339 msgid ""
8340 "If the parameter C<nrlines> is a positive number, this returns the first "
8341 "C<nrlines> lines of the file C<path>."
8342 msgstr ""
8343
8344 # type: textblock
8345 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8346 msgid ""
8347 "If the parameter C<nrlines> is a negative number, this returns lines from "
8348 "the file C<path>, excluding the last C<nrlines> lines."
8349 msgstr ""
8350
8351 # type: textblock
8352 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6131
8353 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
8354 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8355 msgstr ""
8356
8357 # type: =head2
8358 #: ../src/guestfs-actions.pod:2259
8359 msgid "guestfs_hexdump"
8360 msgstr ""
8361
8362 # type: verbatim
8363 #: ../src/guestfs-actions.pod:2261
8364 #, no-wrap
8365 msgid ""
8366 " char *\n"
8367 " guestfs_hexdump (guestfs_h *g,\n"
8368 "                  const char *path);\n"
8369 "\n"
8370 msgstr ""
8371
8372 # type: textblock
8373 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8374 msgid ""
8375 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8376 "readable, canonical hex dump of the file."
8377 msgstr ""
8378
8379 # type: textblock
8380 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5915
8381 #: ../src/guestfs-actions.pod:5970
8382 msgid "(Added in 1.0.22)"
8383 msgstr ""
8384
8385 # type: =head2
8386 #: ../src/guestfs-actions.pod:2276
8387 msgid "guestfs_initrd_cat"
8388 msgstr ""
8389
8390 # type: verbatim
8391 #: ../src/guestfs-actions.pod:2278
8392 #, no-wrap
8393 msgid ""
8394 " char *\n"
8395 " guestfs_initrd_cat (guestfs_h *g,\n"
8396 "                     const char *initrdpath,\n"
8397 "                     const char *filename,\n"
8398 "                     size_t *size_r);\n"
8399 "\n"
8400 msgstr ""
8401
8402 # type: textblock
8403 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8404 msgid ""
8405 "This command unpacks the file C<filename> from the initrd file called "
8406 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8407 "character."
8408 msgstr ""
8409
8410 # type: textblock
8411 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8412 msgid ""
8413 "For example, in guestfish you could use the following command to examine the "
8414 "boot script (usually called C</init>)  contained in a Linux initrd or "
8415 "initramfs image:"
8416 msgstr ""
8417
8418 # type: verbatim
8419 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8420 #, no-wrap
8421 msgid ""
8422 " initrd-cat /boot/initrd-<version>.img init\n"
8423 "\n"
8424 msgstr ""
8425
8426 # type: textblock
8427 #: ../src/guestfs-actions.pod:2294
8428 msgid "See also C<guestfs_initrd_list>."
8429 msgstr ""
8430
8431 # type: textblock
8432 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4850
8433 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5057
8434 msgid ""
8435 "This function returns a buffer, or NULL on error.  The size of the returned "
8436 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8437 "after use>."
8438 msgstr ""
8439
8440 # type: =head2
8441 #: ../src/guestfs-actions.pod:2305
8442 msgid "guestfs_initrd_list"
8443 msgstr ""
8444
8445 # type: verbatim
8446 #: ../src/guestfs-actions.pod:2307
8447 #, no-wrap
8448 msgid ""
8449 " char **\n"
8450 " guestfs_initrd_list (guestfs_h *g,\n"
8451 "                      const char *path);\n"
8452 "\n"
8453 msgstr ""
8454
8455 # type: textblock
8456 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8457 msgid "This command lists out files contained in an initrd."
8458 msgstr ""
8459
8460 # type: textblock
8461 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8462 msgid ""
8463 "The files are listed without any initial C</> character.  The files are "
8464 "listed in the order they appear (not necessarily alphabetical).  Directory "
8465 "names are listed as separate items."
8466 msgstr ""
8467
8468 # type: textblock
8469 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8470 msgid ""
8471 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8472 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8473 "files)."
8474 msgstr ""
8475
8476 # type: =head2
8477 #: ../src/guestfs-actions.pod:2327
8478 msgid "guestfs_inotify_add_watch"
8479 msgstr ""
8480
8481 # type: verbatim
8482 #: ../src/guestfs-actions.pod:2329
8483 #, no-wrap
8484 msgid ""
8485 " int64_t\n"
8486 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8487 "                            const char *path,\n"
8488 "                            int mask);\n"
8489 "\n"
8490 msgstr ""
8491
8492 # type: textblock
8493 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8494 msgid "Watch C<path> for the events listed in C<mask>."
8495 msgstr ""
8496
8497 # type: textblock
8498 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8499 msgid ""
8500 "Note that if C<path> is a directory then events within that directory are "
8501 "watched, but this does I<not> happen recursively (in subdirectories)."
8502 msgstr ""
8503
8504 # type: textblock
8505 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8506 msgid ""
8507 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8508 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8509 msgstr ""
8510
8511 # type: =head2
8512 #: ../src/guestfs-actions.pod:2348
8513 msgid "guestfs_inotify_close"
8514 msgstr ""
8515
8516 # type: verbatim
8517 #: ../src/guestfs-actions.pod:2350
8518 #, no-wrap
8519 msgid ""
8520 " int\n"
8521 " guestfs_inotify_close (guestfs_h *g);\n"
8522 "\n"
8523 msgstr ""
8524
8525 # type: textblock
8526 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8527 msgid ""
8528 "This closes the inotify handle which was previously opened by inotify_init.  "
8529 "It removes all watches, throws away any pending events, and deallocates all "
8530 "resources."
8531 msgstr ""
8532
8533 # type: =head2
8534 #: ../src/guestfs-actions.pod:2361
8535 msgid "guestfs_inotify_files"
8536 msgstr ""
8537
8538 # type: verbatim
8539 #: ../src/guestfs-actions.pod:2363
8540 #, no-wrap
8541 msgid ""
8542 " char **\n"
8543 " guestfs_inotify_files (guestfs_h *g);\n"
8544 "\n"
8545 msgstr ""
8546
8547 # type: textblock
8548 #: ../src/guestfs-actions.pod:2366
8549 msgid ""
8550 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8551 "returns a list of pathnames of objects that were touched.  The returned "
8552 "pathnames are sorted and deduplicated."
8553 msgstr ""
8554
8555 # type: =head2
8556 #: ../src/guestfs-actions.pod:2376
8557 msgid "guestfs_inotify_init"
8558 msgstr ""
8559
8560 # type: verbatim
8561 #: ../src/guestfs-actions.pod:2378
8562 #, no-wrap
8563 msgid ""
8564 " int\n"
8565 " guestfs_inotify_init (guestfs_h *g,\n"
8566 "                       int maxevents);\n"
8567 "\n"
8568 msgstr ""
8569
8570 # type: textblock
8571 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8572 msgid ""
8573 "This command creates a new inotify handle.  The inotify subsystem can be "
8574 "used to notify events which happen to objects in the guest filesystem."
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2386
8579 msgid ""
8580 "C<maxevents> is the maximum number of events which will be queued up between "
8581 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8582 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8583 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8584 "throws away events, but records the fact that it threw them away by setting "
8585 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8586 "C<guestfs_inotify_read>)."
8587 msgstr ""
8588
8589 # type: textblock
8590 #: ../src/guestfs-actions.pod:2396
8591 msgid ""
8592 "Before any events are generated, you have to add some watches to the "
8593 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8594 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2402
8599 msgid ""
8600 "Queued up events should be read periodically by calling "
8601 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8602 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8603 "often enough then you risk the internal queue overflowing."
8604 msgstr ""
8605
8606 # type: textblock
8607 #: ../src/guestfs-actions.pod:2409
8608 msgid ""
8609 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8610 "This also removes any watches automatically."
8611 msgstr ""
8612
8613 # type: textblock
8614 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8615 msgid ""
8616 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8617 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8618 "that there is one global inotify handle per libguestfs instance."
8619 msgstr ""
8620
8621 # type: =head2
8622 #: ../src/guestfs-actions.pod:2422
8623 msgid "guestfs_inotify_read"
8624 msgstr ""
8625
8626 # type: verbatim
8627 #: ../src/guestfs-actions.pod:2424
8628 #, no-wrap
8629 msgid ""
8630 " struct guestfs_inotify_event_list *\n"
8631 " guestfs_inotify_read (guestfs_h *g);\n"
8632 "\n"
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8637 msgid ""
8638 "Return the complete queue of events that have happened since the previous "
8639 "read call."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8644 msgid "If no events have happened, this returns an empty list."
8645 msgstr ""
8646
8647 # type: textblock
8648 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8649 msgid ""
8650 "I<Note>: In order to make sure that all events have been read, you must call "
8651 "this function repeatedly until it returns an empty list.  The reason is that "
8652 "the call will read events up to the maximum appliance-to-host message size "
8653 "and leave remaining events in the queue."
8654 msgstr ""
8655
8656 # type: textblock
8657 #: ../src/guestfs-actions.pod:2438
8658 msgid ""
8659 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8660 "there was an error.  I<The caller must call "
8661 "C<guestfs_free_inotify_event_list> after use>."
8662 msgstr ""
8663
8664 # type: =head2
8665 #: ../src/guestfs-actions.pod:2444
8666 msgid "guestfs_inotify_rm_watch"
8667 msgstr ""
8668
8669 # type: verbatim
8670 #: ../src/guestfs-actions.pod:2446
8671 #, no-wrap
8672 msgid ""
8673 " int\n"
8674 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8675 "                           int wd);\n"
8676 "\n"
8677 msgstr ""
8678
8679 # type: textblock
8680 #: ../src/guestfs-actions.pod:2450
8681 msgid ""
8682 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8683 msgstr ""
8684
8685 # type: =head2
8686 #: ../src/guestfs-actions.pod:2457
8687 msgid "guestfs_inspect_get_arch"
8688 msgstr ""
8689
8690 # type: verbatim
8691 #: ../src/guestfs-actions.pod:2459
8692 #, no-wrap
8693 msgid ""
8694 " char *\n"
8695 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8696 "                           const char *root);\n"
8697 "\n"
8698 msgstr ""
8699
8700 # type: textblock
8701 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8702 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8703 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2640
8704 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2694
8705 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2750
8706 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2834
8707 #: ../src/guestfs-actions.pod:2857
8708 msgid ""
8709 "This function should only be called with a root device string as returned by "
8710 "C<guestfs_inspect_os>."
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2466
8715 msgid ""
8716 "This returns the architecture of the inspected operating system.  The "
8717 "possible return values are listed under C<guestfs_file_architecture>."
8718 msgstr ""
8719
8720 # type: textblock
8721 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8722 msgid ""
8723 "If the architecture could not be determined, then the string C<unknown> is "
8724 "returned."
8725 msgstr ""
8726
8727 # type: textblock
8728 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8729 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2628
8730 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2739
8731 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2780
8732 #: ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2844
8733 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2989
8734 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8735 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8736 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8737 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8738 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8739 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8740 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8741 msgstr ""
8742
8743 # type: =head2
8744 #: ../src/guestfs-actions.pod:2480
8745 msgid "guestfs_inspect_get_distro"
8746 msgstr ""
8747
8748 # type: verbatim
8749 #: ../src/guestfs-actions.pod:2482
8750 #, no-wrap
8751 msgid ""
8752 " char *\n"
8753 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8754 "                             const char *root);\n"
8755 "\n"
8756 msgstr ""
8757
8758 # type: textblock
8759 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8760 msgid ""
8761 "This returns the distro (distribution) of the inspected operating system."
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8766 msgid "Currently defined distros are:"
8767 msgstr ""
8768
8769 # type: =item
8770 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8771 msgid "\"archlinux\""
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8776 msgid "Arch Linux."
8777 msgstr ""
8778
8779 # type: =item
8780 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8781 msgid "\"debian\""
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8786 msgid "Debian."
8787 msgstr ""
8788
8789 # type: =item
8790 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8791 msgid "\"fedora\""
8792 msgstr ""
8793
8794 # type: textblock
8795 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8796 msgid "Fedora."
8797 msgstr ""
8798
8799 # type: =item
8800 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8801 msgid "\"gentoo\""
8802 msgstr ""
8803
8804 # type: textblock
8805 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8806 msgid "Gentoo."
8807 msgstr ""
8808
8809 # type: =item
8810 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8811 msgid "\"linuxmint\""
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8816 msgid "Linux Mint."
8817 msgstr ""
8818
8819 # type: =item
8820 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8821 msgid "\"mandriva\""
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8826 msgid "Mandriva."
8827 msgstr ""
8828
8829 # type: =item
8830 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8831 msgid "\"meego\""
8832 msgstr ""
8833
8834 # type: textblock
8835 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8836 msgid "MeeGo."
8837 msgstr ""
8838
8839 # type: =item
8840 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8841 msgid "\"pardus\""
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8846 msgid "Pardus."
8847 msgstr ""
8848
8849 # type: =item
8850 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8851 msgid "\"redhat-based\""
8852 msgstr ""
8853
8854 # type: textblock
8855 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8856 msgid "Some Red Hat-derived distro."
8857 msgstr ""
8858
8859 # type: =item
8860 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8861 msgid "\"rhel\""
8862 msgstr ""
8863
8864 # type: textblock
8865 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8866 msgid "Red Hat Enterprise Linux and some derivatives."
8867 msgstr ""
8868
8869 # type: =item
8870 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8871 msgid "\"ubuntu\""
8872 msgstr ""
8873
8874 # type: textblock
8875 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8876 msgid "Ubuntu."
8877 msgstr ""
8878
8879 # type: =item
8880 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2812
8881 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8882 msgid "\"unknown\""
8883 msgstr ""
8884
8885 # type: textblock
8886 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8887 msgid "The distro could not be determined."
8888 msgstr ""
8889
8890 # type: =item
8891 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2804
8892 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8893 msgid "\"windows\""
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8898 msgid ""
8899 "Windows does not have distributions.  This string is returned if the OS type "
8900 "is Windows."
8901 msgstr ""
8902
8903 # type: textblock
8904 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2818
8905 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8906 msgid ""
8907 "Future versions of libguestfs may return other strings here.  The caller "
8908 "should be prepared to handle any string."
8909 msgstr ""
8910
8911 # type: =head2
8912 #: ../src/guestfs-actions.pod:2561
8913 msgid "guestfs_inspect_get_filesystems"
8914 msgstr ""
8915
8916 # type: verbatim
8917 #: ../src/guestfs-actions.pod:2563
8918 #, no-wrap
8919 msgid ""
8920 " char **\n"
8921 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8922 "                                  const char *root);\n"
8923 "\n"
8924 msgstr ""
8925
8926 # type: textblock
8927 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8928 msgid ""
8929 "This returns a list of all the filesystems that we think are associated with "
8930 "this operating system.  This includes the root filesystem, other ordinary "
8931 "filesystems, and non-mounted devices like swap partitions."
8932 msgstr ""
8933
8934 # type: textblock
8935 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8936 msgid ""
8937 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8938 "to be shared between operating systems."
8939 msgstr ""
8940
8941 # type: textblock
8942 #: ../src/guestfs-actions.pod:2578
8943 msgid ""
8944 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8945 "C<guestfs_inspect_get_mountpoints>."
8946 msgstr ""
8947
8948 # type: =head2
8949 #: ../src/guestfs-actions.pod:2587
8950 msgid "guestfs_inspect_get_hostname"
8951 msgstr ""
8952
8953 # type: verbatim
8954 #: ../src/guestfs-actions.pod:2589
8955 #, no-wrap
8956 msgid ""
8957 " char *\n"
8958 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8959 "                               const char *root);\n"
8960 "\n"
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8965 msgid ""
8966 "This function returns the hostname of the operating system as found by "
8967 "inspection of the guest's configuration files."
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8972 msgid ""
8973 "If the hostname could not be determined, then the string C<unknown> is "
8974 "returned."
8975 msgstr ""
8976
8977 # type: =head2
8978 #: ../src/guestfs-actions.pod:2607
8979 msgid "guestfs_inspect_get_major_version"
8980 msgstr ""
8981
8982 # type: verbatim
8983 #: ../src/guestfs-actions.pod:2609
8984 #, no-wrap
8985 msgid ""
8986 " int\n"
8987 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8988 "                                    const char *root);\n"
8989 "\n"
8990 msgstr ""
8991
8992 # type: textblock
8993 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1783
8994 msgid ""
8995 "This returns the major version number of the inspected operating system."
8996 msgstr ""
8997
8998 # type: textblock
8999 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1786
9000 msgid ""
9001 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9002 "popular public names used by the operating system.  Notably the operating "
9003 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9004 "1).  You can find out the real versions corresponding to releases of Windows "
9005 "by consulting Wikipedia or MSDN."
9006 msgstr ""
9007
9008 # type: textblock
9009 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:2646
9010 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9011 msgid "If the version could not be determined, then C<0> is returned."
9012 msgstr ""
9013
9014 # type: =head2
9015 #: ../src/guestfs-actions.pod:2634
9016 msgid "guestfs_inspect_get_minor_version"
9017 msgstr ""
9018
9019 # type: verbatim
9020 #: ../src/guestfs-actions.pod:2636
9021 #, no-wrap
9022 msgid ""
9023 " int\n"
9024 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9025 "                                    const char *root);\n"
9026 "\n"
9027 msgstr ""
9028
9029 # type: textblock
9030 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1804
9031 msgid ""
9032 "This returns the minor version number of the inspected operating system."
9033 msgstr ""
9034
9035 # type: textblock
9036 #: ../src/guestfs-actions.pod:2648
9037 msgid ""
9038 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9039 "C<guestfs_inspect_get_major_version>."
9040 msgstr ""
9041
9042 # type: =head2
9043 #: ../src/guestfs-actions.pod:2655
9044 msgid "guestfs_inspect_get_mountpoints"
9045 msgstr ""
9046
9047 # type: verbatim
9048 #: ../src/guestfs-actions.pod:2657
9049 #, no-wrap
9050 msgid ""
9051 " char **\n"
9052 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9053 "                                  const char *root);\n"
9054 "\n"
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1819
9059 msgid ""
9060 "This returns a hash of where we think the filesystems associated with this "
9061 "operating system should be mounted.  Callers should note that this is at "
9062 "best an educated guess made by reading configuration files such as C</etc/"
9063 "fstab>."
9064 msgstr ""
9065
9066 # type: textblock
9067 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1824
9068 msgid ""
9069 "Each element in the returned hashtable has a key which is the path of the "
9070 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9071 "mounted there (eg. C</dev/sda1>)."
9072 msgstr ""
9073
9074 # type: textblock
9075 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1829
9076 msgid ""
9077 "Non-mounted devices such as swap devices are I<not> returned in this list."
9078 msgstr ""
9079
9080 # type: textblock
9081 #: ../src/guestfs-actions.pod:2677
9082 msgid ""
9083 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9084 "C<guestfs_inspect_get_filesystems>."
9085 msgstr ""
9086
9087 # type: textblock
9088 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:3288
9089 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:6272
9090 msgid ""
9091 "This function returns a NULL-terminated array of strings, or NULL if there "
9092 "was an error.  The array of strings will always have length C<2n+1>, where "
9093 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9094 "caller must free the strings and the array after use>."
9095 msgstr ""
9096
9097 # type: =head2
9098 #: ../src/guestfs-actions.pod:2688
9099 msgid "guestfs_inspect_get_package_format"
9100 msgstr ""
9101
9102 # type: verbatim
9103 #: ../src/guestfs-actions.pod:2690
9104 #, no-wrap
9105 msgid ""
9106 " char *\n"
9107 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9108 "                                     const char *root);\n"
9109 "\n"
9110 msgstr ""
9111
9112 # type: textblock
9113 #: ../src/guestfs-actions.pod:2697
9114 msgid ""
9115 "This function and C<guestfs_inspect_get_package_management> return the "
9116 "package format and package management tool used by the inspected operating "
9117 "system.  For example for Fedora these functions would return C<rpm> (package "
9118 "format) and C<yum> (package management)."
9119 msgstr ""
9120
9121 # type: textblock
9122 #: ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1848
9123 msgid ""
9124 "This returns the string C<unknown> if we could not determine the package "
9125 "format I<or> if the operating system does not have a real packaging system "
9126 "(eg. Windows)."
9127 msgstr ""
9128
9129 # type: textblock
9130 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1852
9131 msgid ""
9132 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9133 "Future versions of libguestfs may return other strings."
9134 msgstr ""
9135
9136 # type: =head2
9137 #: ../src/guestfs-actions.pod:2715
9138 msgid "guestfs_inspect_get_package_management"
9139 msgstr ""
9140
9141 # type: verbatim
9142 #: ../src/guestfs-actions.pod:2717
9143 #, no-wrap
9144 msgid ""
9145 " char *\n"
9146 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9147 "                                         const char *root);\n"
9148 "\n"
9149 msgstr ""
9150
9151 # type: textblock
9152 #: ../src/guestfs-actions.pod:2724
9153 msgid ""
9154 "C<guestfs_inspect_get_package_format> and this function return the package "
9155 "format and package management tool used by the inspected operating system.  "
9156 "For example for Fedora these functions would return C<rpm> (package format) "
9157 "and C<yum> (package management)."
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
9162 msgid ""
9163 "This returns the string C<unknown> if we could not determine the package "
9164 "management tool I<or> if the operating system does not have a real packaging "
9165 "system (eg. Windows)."
9166 msgstr ""
9167
9168 # type: textblock
9169 #: ../src/guestfs-actions.pod:2734 ../fish/guestfish-actions.pod:1874
9170 msgid ""
9171 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9172 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9173 "libguestfs may return other strings."
9174 msgstr ""
9175
9176 # type: =head2
9177 #: ../src/guestfs-actions.pod:2744
9178 msgid "guestfs_inspect_get_product_name"
9179 msgstr ""
9180
9181 # type: verbatim
9182 #: ../src/guestfs-actions.pod:2746
9183 #, no-wrap
9184 msgid ""
9185 " char *\n"
9186 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9187 "                                   const char *root);\n"
9188 "\n"
9189 msgstr ""
9190
9191 # type: textblock
9192 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1888
9193 msgid ""
9194 "This returns the product name of the inspected operating system.  The "
9195 "product name is generally some freeform string which can be displayed to the "
9196 "user, but should not be parsed by programs."
9197 msgstr ""
9198
9199 # type: textblock
9200 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1893
9201 msgid ""
9202 "If the product name could not be determined, then the string C<unknown> is "
9203 "returned."
9204 msgstr ""
9205
9206 # type: =head2
9207 #: ../src/guestfs-actions.pod:2768
9208 msgid "guestfs_inspect_get_roots"
9209 msgstr ""
9210
9211 # type: verbatim
9212 #: ../src/guestfs-actions.pod:2770
9213 #, no-wrap
9214 msgid ""
9215 " char **\n"
9216 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9217 "\n"
9218 msgstr ""
9219
9220 # type: textblock
9221 #: ../src/guestfs-actions.pod:2773
9222 msgid ""
9223 "This function is a convenient way to get the list of root devices, as "
9224 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9225 "the whole inspection process."
9226 msgstr ""
9227
9228 # type: textblock
9229 #: ../src/guestfs-actions.pod:2777
9230 msgid ""
9231 "This returns an empty list if either no root devices were found or the "
9232 "caller has not called C<guestfs_inspect_os>."
9233 msgstr ""
9234
9235 # type: =head2
9236 #: ../src/guestfs-actions.pod:2786
9237 msgid "guestfs_inspect_get_type"
9238 msgstr ""
9239
9240 # type: verbatim
9241 #: ../src/guestfs-actions.pod:2788
9242 #, no-wrap
9243 msgid ""
9244 " char *\n"
9245 " guestfs_inspect_get_type (guestfs_h *g,\n"
9246 "                           const char *root);\n"
9247 "\n"
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1918
9252 msgid ""
9253 "This returns the type of the inspected operating system.  Currently defined "
9254 "types are:"
9255 msgstr ""
9256
9257 # type: =item
9258 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1923
9259 msgid "\"linux\""
9260 msgstr ""
9261
9262 # type: textblock
9263 #: ../src/guestfs-actions.pod:2802 ../fish/guestfish-actions.pod:1925
9264 msgid "Any Linux-based operating system."
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1929
9269 msgid "Any Microsoft Windows operating system."
9270 msgstr ""
9271
9272 # type: =item
9273 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1931
9274 msgid "\"freebsd\""
9275 msgstr ""
9276
9277 # type: textblock
9278 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1933
9279 msgid "FreeBSD."
9280 msgstr ""
9281
9282 # type: textblock
9283 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1937
9284 msgid "The operating system type could not be determined."
9285 msgstr ""
9286
9287 # type: =head2
9288 #: ../src/guestfs-actions.pod:2828
9289 msgid "guestfs_inspect_get_windows_systemroot"
9290 msgstr ""
9291
9292 # type: verbatim
9293 #: ../src/guestfs-actions.pod:2830
9294 #, no-wrap
9295 msgid ""
9296 " char *\n"
9297 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9298 "                                         const char *root);\n"
9299 "\n"
9300 msgstr ""
9301
9302 # type: textblock
9303 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1953
9304 msgid ""
9305 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9306 "is a directory path such as C</WINDOWS>."
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1956
9311 msgid ""
9312 "This call assumes that the guest is Windows and that the systemroot could be "
9313 "determined by inspection.  If this is not the case then an error is returned."
9314 msgstr ""
9315
9316 # type: textblock
9317 #: ../src/guestfs-actions.pod:2849
9318 msgid "(Added in 1.5.25)"
9319 msgstr ""
9320
9321 # type: =head2
9322 #: ../src/guestfs-actions.pod:2851
9323 msgid "guestfs_inspect_list_applications"
9324 msgstr ""
9325
9326 # type: verbatim
9327 #: ../src/guestfs-actions.pod:2853
9328 #, no-wrap
9329 msgid ""
9330 " struct guestfs_application_list *\n"
9331 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9332 "                                    const char *root);\n"
9333 "\n"
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1969
9338 msgid "Return the list of applications installed in the operating system."
9339 msgstr ""
9340
9341 # type: textblock
9342 #: ../src/guestfs-actions.pod:2862
9343 msgid ""
9344 "I<Note:> This call works differently from other parts of the inspection "
9345 "API.  You have to call C<guestfs_inspect_os>, then "
9346 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9347 "this.  Listing applications is a significantly more difficult operation "
9348 "which requires access to the full filesystem.  Also note that unlike the "
9349 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9350 "the libguestfs handle, this call actually reads parts of the mounted "
9351 "filesystems during the call."
9352 msgstr ""
9353
9354 # type: textblock
9355 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1981
9356 msgid ""
9357 "This returns an empty list if the inspection code was not able to determine "
9358 "the list of applications."
9359 msgstr ""
9360
9361 # type: textblock
9362 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1984
9363 msgid "The application structure contains the following fields:"
9364 msgstr ""
9365
9366 # type: =item
9367 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1988
9368 msgid "C<app_name>"
9369 msgstr ""
9370
9371 # type: textblock
9372 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1990
9373 msgid ""
9374 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9375 "guests, this is the package name."
9376 msgstr ""
9377
9378 # type: =item
9379 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1993
9380 msgid "C<app_display_name>"
9381 msgstr ""
9382
9383 # type: textblock
9384 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1995
9385 msgid ""
9386 "The display name of the application, sometimes localized to the install "
9387 "language of the guest operating system."
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1998
9392 msgid ""
9393 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9394 "to display something can use C<app_name> instead."
9395 msgstr ""
9396
9397 # type: =item
9398 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:2001
9399 msgid "C<app_epoch>"
9400 msgstr ""
9401
9402 # type: textblock
9403 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:2003
9404 msgid ""
9405 "For package managers which use epochs, this contains the epoch of the "
9406 "package (an integer).  If unavailable, this is returned as C<0>."
9407 msgstr ""
9408
9409 # type: =item
9410 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2006
9411 msgid "C<app_version>"
9412 msgstr ""
9413
9414 # type: textblock
9415 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2008
9416 msgid ""
9417 "The version string of the application or package.  If unavailable this is "
9418 "returned as an empty string C<\"\">."
9419 msgstr ""
9420
9421 # type: =item
9422 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2011
9423 msgid "C<app_release>"
9424 msgstr ""
9425
9426 # type: textblock
9427 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2013
9428 msgid ""
9429 "The release string of the application or package, for package managers that "
9430 "use this.  If unavailable this is returned as an empty string C<\"\">."
9431 msgstr ""
9432
9433 # type: =item
9434 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2017
9435 msgid "C<app_install_path>"
9436 msgstr ""
9437
9438 # type: textblock
9439 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2019
9440 msgid ""
9441 "The installation path of the application (on operating systems such as "
9442 "Windows which use installation paths).  This path is in the format used by "
9443 "the guest operating system, it is not a libguestfs path."
9444 msgstr ""
9445
9446 # type: textblock
9447 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2024
9448 msgid "If unavailable this is returned as an empty string C<\"\">."
9449 msgstr ""
9450
9451 # type: =item
9452 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2026
9453 msgid "C<app_trans_path>"
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2028
9458 msgid ""
9459 "The install path translated into a libguestfs path.  If unavailable this is "
9460 "returned as an empty string C<\"\">."
9461 msgstr ""
9462
9463 # type: =item
9464 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2031
9465 msgid "C<app_publisher>"
9466 msgstr ""
9467
9468 # type: textblock
9469 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2033
9470 msgid ""
9471 "The name of the publisher of the application, for package managers that use "
9472 "this.  If unavailable this is returned as an empty string C<\"\">."
9473 msgstr ""
9474
9475 # type: =item
9476 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2037
9477 msgid "C<app_url>"
9478 msgstr ""
9479
9480 # type: textblock
9481 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2039
9482 msgid ""
9483 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9484 "returned as an empty string C<\"\">."
9485 msgstr ""
9486
9487 # type: =item
9488 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2042
9489 msgid "C<app_source_package>"
9490 msgstr ""
9491
9492 # type: textblock
9493 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2044
9494 msgid ""
9495 "For packaging systems which support this, the name of the source package.  "
9496 "If unavailable this is returned as an empty string C<\"\">."
9497 msgstr ""
9498
9499 # type: =item
9500 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2047
9501 msgid "C<app_summary>"
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2049
9506 msgid ""
9507 "A short (usually one line) description of the application or package.  If "
9508 "unavailable this is returned as an empty string C<\"\">."
9509 msgstr ""
9510
9511 # type: =item
9512 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2052
9513 msgid "C<app_description>"
9514 msgstr ""
9515
9516 # type: textblock
9517 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9518 msgid ""
9519 "A longer description of the application or package.  If unavailable this is "
9520 "returned as an empty string C<\"\">."
9521 msgstr ""
9522
9523 # type: textblock
9524 #: ../src/guestfs-actions.pod:2952
9525 msgid ""
9526 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9527 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9528 "after use>."
9529 msgstr ""
9530
9531 # type: =head2
9532 #: ../src/guestfs-actions.pod:2956
9533 msgid "guestfs_inspect_os"
9534 msgstr ""
9535
9536 # type: verbatim
9537 #: ../src/guestfs-actions.pod:2958
9538 #, no-wrap
9539 msgid ""
9540 " char **\n"
9541 " guestfs_inspect_os (guestfs_h *g);\n"
9542 "\n"
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2065
9547 msgid ""
9548 "This function uses other libguestfs functions and certain heuristics to "
9549 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9550 "for operating systems."
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2069
9555 msgid "The list returned is empty if no operating systems were found."
9556 msgstr ""
9557
9558 # type: textblock
9559 #: ../src/guestfs-actions.pod:2967 ../fish/guestfish-actions.pod:2071
9560 msgid ""
9561 "If one operating system was found, then this returns a list with a single "
9562 "element, which is the name of the root filesystem of this operating system.  "
9563 "It is also possible for this function to return a list containing more than "
9564 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9565 "element being the root filesystem of one of the operating systems."
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:2974
9570 msgid ""
9571 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9572 "functions in order to query further information about each operating system, "
9573 "such as the name and version."
9574 msgstr ""
9575
9576 # type: textblock
9577 #: ../src/guestfs-actions.pod:2979
9578 msgid ""
9579 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9580 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9581 "the contents.  This should be called with no disks currently mounted.  The "
9582 "function may also use Augeas, so any existing Augeas handle will be closed."
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2089
9587 msgid ""
9588 "This function cannot decrypt encrypted disks.  The caller must do that first "
9589 "(supplying the necessary keys) if the disk is encrypted."
9590 msgstr ""
9591
9592 # type: textblock
9593 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3246
9594 #: ../src/guestfs-actions.pod:3308
9595 msgid "See also C<guestfs_list_filesystems>."
9596 msgstr ""
9597
9598 # type: =head2
9599 #: ../src/guestfs-actions.pod:2999
9600 msgid "guestfs_is_blockdev"
9601 msgstr ""
9602
9603 # type: verbatim
9604 #: ../src/guestfs-actions.pod:3001
9605 #, no-wrap
9606 msgid ""
9607 " int\n"
9608 " guestfs_is_blockdev (guestfs_h *g,\n"
9609 "                      const char *path);\n"
9610 "\n"
9611 msgstr ""
9612
9613 # type: textblock
9614 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2101
9615 msgid ""
9616 "This returns C<true> if and only if there is a block device with the given "
9617 "C<path> name."
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:3008 ../src/guestfs-actions.pod:3037
9622 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3082
9623 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3154
9624 #: ../src/guestfs-actions.pod:3169
9625 msgid "See also C<guestfs_stat>."
9626 msgstr ""
9627
9628 # type: textblock
9629 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3041
9630 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3158
9631 #: ../src/guestfs-actions.pod:3173
9632 msgid "(Added in 1.5.10)"
9633 msgstr ""
9634
9635 # type: =head2
9636 #: ../src/guestfs-actions.pod:3014
9637 msgid "guestfs_is_busy"
9638 msgstr ""
9639
9640 # type: verbatim
9641 #: ../src/guestfs-actions.pod:3016
9642 #, no-wrap
9643 msgid ""
9644 " int\n"
9645 " guestfs_is_busy (guestfs_h *g);\n"
9646 "\n"
9647 msgstr ""
9648
9649 # type: textblock
9650 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2110
9651 msgid ""
9652 "This returns true iff this handle is busy processing a command (in the "
9653 "C<BUSY> state)."
9654 msgstr ""
9655
9656 # type: =head2
9657 #: ../src/guestfs-actions.pod:3028
9658 msgid "guestfs_is_chardev"
9659 msgstr ""
9660
9661 # type: verbatim
9662 #: ../src/guestfs-actions.pod:3030
9663 #, no-wrap
9664 msgid ""
9665 " int\n"
9666 " guestfs_is_chardev (guestfs_h *g,\n"
9667 "                     const char *path);\n"
9668 "\n"
9669 msgstr ""
9670
9671 # type: textblock
9672 #: ../src/guestfs-actions.pod:3034 ../fish/guestfish-actions.pod:2119
9673 msgid ""
9674 "This returns C<true> if and only if there is a character device with the "
9675 "given C<path> name."
9676 msgstr ""
9677
9678 # type: =head2
9679 #: ../src/guestfs-actions.pod:3043
9680 msgid "guestfs_is_config"
9681 msgstr ""
9682
9683 # type: verbatim
9684 #: ../src/guestfs-actions.pod:3045
9685 #, no-wrap
9686 msgid ""
9687 " int\n"
9688 " guestfs_is_config (guestfs_h *g);\n"
9689 "\n"
9690 msgstr ""
9691
9692 # type: textblock
9693 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2128
9694 msgid ""
9695 "This returns true iff this handle is being configured (in the C<CONFIG> "
9696 "state)."
9697 msgstr ""
9698
9699 # type: =head2
9700 #: ../src/guestfs-actions.pod:3057
9701 msgid "guestfs_is_dir"
9702 msgstr ""
9703
9704 # type: verbatim
9705 #: ../src/guestfs-actions.pod:3059
9706 #, no-wrap
9707 msgid ""
9708 " int\n"
9709 " guestfs_is_dir (guestfs_h *g,\n"
9710 "                 const char *path);\n"
9711 "\n"
9712 msgstr ""
9713
9714 # type: textblock
9715 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2137
9716 msgid ""
9717 "This returns C<true> if and only if there is a directory with the given "
9718 "C<path> name.  Note that it returns false for other objects like files."
9719 msgstr ""
9720
9721 # type: =head2
9722 #: ../src/guestfs-actions.pod:3073
9723 msgid "guestfs_is_fifo"
9724 msgstr ""
9725
9726 # type: verbatim
9727 #: ../src/guestfs-actions.pod:3075
9728 #, no-wrap
9729 msgid ""
9730 " int\n"
9731 " guestfs_is_fifo (guestfs_h *g,\n"
9732 "                  const char *path);\n"
9733 "\n"
9734 msgstr ""
9735
9736 # type: textblock
9737 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2147
9738 msgid ""
9739 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9740 "given C<path> name."
9741 msgstr ""
9742
9743 # type: =head2
9744 #: ../src/guestfs-actions.pod:3088
9745 msgid "guestfs_is_file"
9746 msgstr ""
9747
9748 # type: verbatim
9749 #: ../src/guestfs-actions.pod:3090
9750 #, no-wrap
9751 msgid ""
9752 " int\n"
9753 " guestfs_is_file (guestfs_h *g,\n"
9754 "                  const char *path);\n"
9755 "\n"
9756 msgstr ""
9757
9758 # type: textblock
9759 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2156
9760 msgid ""
9761 "This returns C<true> if and only if there is a regular file with the given "
9762 "C<path> name.  Note that it returns false for other objects like directories."
9763 msgstr ""
9764
9765 # type: =head2
9766 #: ../src/guestfs-actions.pod:3104
9767 msgid "guestfs_is_launching"
9768 msgstr ""
9769
9770 # type: verbatim
9771 #: ../src/guestfs-actions.pod:3106
9772 #, no-wrap
9773 msgid ""
9774 " int\n"
9775 " guestfs_is_launching (guestfs_h *g);\n"
9776 "\n"
9777 msgstr ""
9778
9779 # type: textblock
9780 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2166
9781 msgid ""
9782 "This returns true iff this handle is launching the subprocess (in the "
9783 "C<LAUNCHING> state)."
9784 msgstr ""
9785
9786 # type: =head2
9787 #: ../src/guestfs-actions.pod:3118
9788 msgid "guestfs_is_lv"
9789 msgstr ""
9790
9791 # type: verbatim
9792 #: ../src/guestfs-actions.pod:3120
9793 #, no-wrap
9794 msgid ""
9795 " int\n"
9796 " guestfs_is_lv (guestfs_h *g,\n"
9797 "                const char *device);\n"
9798 "\n"
9799 msgstr ""
9800
9801 # type: textblock
9802 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2175
9803 msgid ""
9804 "This command tests whether C<device> is a logical volume, and returns true "
9805 "iff this is the case."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3131
9810 msgid "guestfs_is_ready"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3133
9815 #, no-wrap
9816 msgid ""
9817 " int\n"
9818 " guestfs_is_ready (guestfs_h *g);\n"
9819 "\n"
9820 msgstr ""
9821
9822 # type: textblock
9823 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2182
9824 msgid ""
9825 "This returns true iff this handle is ready to accept commands (in the "
9826 "C<READY> state)."
9827 msgstr ""
9828
9829 # type: =head2
9830 #: ../src/guestfs-actions.pod:3145
9831 msgid "guestfs_is_socket"
9832 msgstr ""
9833
9834 # type: verbatim
9835 #: ../src/guestfs-actions.pod:3147
9836 #, no-wrap
9837 msgid ""
9838 " int\n"
9839 " guestfs_is_socket (guestfs_h *g,\n"
9840 "                    const char *path);\n"
9841 "\n"
9842 msgstr ""
9843
9844 # type: textblock
9845 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2191
9846 msgid ""
9847 "This returns C<true> if and only if there is a Unix domain socket with the "
9848 "given C<path> name."
9849 msgstr ""
9850
9851 # type: =head2
9852 #: ../src/guestfs-actions.pod:3160
9853 msgid "guestfs_is_symlink"
9854 msgstr ""
9855
9856 # type: verbatim
9857 #: ../src/guestfs-actions.pod:3162
9858 #, no-wrap
9859 msgid ""
9860 " int\n"
9861 " guestfs_is_symlink (guestfs_h *g,\n"
9862 "                     const char *path);\n"
9863 "\n"
9864 msgstr ""
9865
9866 # type: textblock
9867 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2200
9868 msgid ""
9869 "This returns C<true> if and only if there is a symbolic link with the given "
9870 "C<path> name."
9871 msgstr ""
9872
9873 # type: =head2
9874 #: ../src/guestfs-actions.pod:3175
9875 msgid "guestfs_kill_subprocess"
9876 msgstr ""
9877
9878 # type: verbatim
9879 #: ../src/guestfs-actions.pod:3177
9880 #, no-wrap
9881 msgid ""
9882 " int\n"
9883 " guestfs_kill_subprocess (guestfs_h *g);\n"
9884 "\n"
9885 msgstr ""
9886
9887 # type: textblock
9888 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2209
9889 msgid "This kills the qemu subprocess.  You should never need to call this."
9890 msgstr ""
9891
9892 # type: =head2
9893 #: ../src/guestfs-actions.pod:3186
9894 msgid "guestfs_launch"
9895 msgstr ""
9896
9897 # type: verbatim
9898 #: ../src/guestfs-actions.pod:3188
9899 #, no-wrap
9900 msgid ""
9901 " int\n"
9902 " guestfs_launch (guestfs_h *g);\n"
9903 "\n"
9904 msgstr ""
9905
9906 # type: textblock
9907 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2217
9908 msgid ""
9909 "Internally libguestfs is implemented by running a virtual machine using "
9910 "L<qemu(1)>."
9911 msgstr ""
9912
9913 # type: textblock
9914 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2220
9915 msgid ""
9916 "You should call this after configuring the handle (eg. adding drives) but "
9917 "before performing any actions."
9918 msgstr ""
9919
9920 # type: =head2
9921 #: ../src/guestfs-actions.pod:3201
9922 msgid "guestfs_lchown"
9923 msgstr ""
9924
9925 # type: verbatim
9926 #: ../src/guestfs-actions.pod:3203
9927 #, no-wrap
9928 msgid ""
9929 " int\n"
9930 " guestfs_lchown (guestfs_h *g,\n"
9931 "                 int owner,\n"
9932 "                 int group,\n"
9933 "                 const char *path);\n"
9934 "\n"
9935 msgstr ""
9936
9937 # type: textblock
9938 #: ../src/guestfs-actions.pod:3209
9939 msgid ""
9940 "Change the file owner to C<owner> and group to C<group>.  This is like "
9941 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9942 "changed, not the target."
9943 msgstr ""
9944
9945 # type: =head2
9946 #: ../src/guestfs-actions.pod:3221
9947 msgid "guestfs_lgetxattrs"
9948 msgstr ""
9949
9950 # type: verbatim
9951 #: ../src/guestfs-actions.pod:3223
9952 #, no-wrap
9953 msgid ""
9954 " struct guestfs_xattr_list *\n"
9955 " guestfs_lgetxattrs (guestfs_h *g,\n"
9956 "                     const char *path);\n"
9957 "\n"
9958 msgstr ""
9959
9960 # type: textblock
9961 #: ../src/guestfs-actions.pod:3227
9962 msgid ""
9963 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9964 "then it returns the extended attributes of the link itself."
9965 msgstr ""
9966
9967 # type: =head2
9968 #: ../src/guestfs-actions.pod:3237
9969 msgid "guestfs_list_devices"
9970 msgstr ""
9971
9972 # type: verbatim
9973 #: ../src/guestfs-actions.pod:3239
9974 #, no-wrap
9975 msgid ""
9976 " char **\n"
9977 " guestfs_list_devices (guestfs_h *g);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2247
9983 msgid "List all the block devices."
9984 msgstr ""
9985
9986 # type: textblock
9987 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
9988 msgid "The full block device names are returned, eg. C</dev/sda>."
9989 msgstr ""
9990
9991 # type: =head2
9992 #: ../src/guestfs-actions.pod:3254
9993 msgid "guestfs_list_filesystems"
9994 msgstr ""
9995
9996 # type: verbatim
9997 #: ../src/guestfs-actions.pod:3256
9998 #, no-wrap
9999 msgid ""
10000 " char **\n"
10001 " guestfs_list_filesystems (guestfs_h *g);\n"
10002 "\n"
10003 msgstr ""
10004
10005 # type: textblock
10006 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2257
10007 msgid ""
10008 "This inspection command looks for filesystems on partitions, block devices "
10009 "and logical volumes, returning a list of devices containing filesystems and "
10010 "their type."
10011 msgstr ""
10012
10013 # type: textblock
10014 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2261
10015 msgid ""
10016 "The return value is a hash, where the keys are the devices containing "
10017 "filesystems, and the values are the filesystem types.  For example:"
10018 msgstr ""
10019
10020 # type: verbatim
10021 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2265
10022 #, no-wrap
10023 msgid ""
10024 " \"/dev/sda1\" => \"ntfs\"\n"
10025 " \"/dev/sda2\" => \"ext2\"\n"
10026 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10027 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2270
10033 msgid ""
10034 "The value can have the special value \"unknown\", meaning the content of the "
10035 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3276
10040 msgid ""
10041 "This command runs other libguestfs commands, which might include "
10042 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10043 "soon after launch and only when nothing is mounted."
10044 msgstr ""
10045
10046 # type: textblock
10047 #: ../src/guestfs-actions.pod:3280
10048 msgid ""
10049 "Not all of the filesystems returned will be mountable.  In particular, swap "
10050 "partitions are returned in the list.  Also this command does not check that "
10051 "each filesystem found is valid and mountable, and some filesystems might be "
10052 "mountable but require special options.  Filesystems may not all belong to a "
10053 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10054 msgstr ""
10055
10056 # type: textblock
10057 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:4817
10058 msgid "(Added in 1.5.15)"
10059 msgstr ""
10060
10061 # type: =head2
10062 #: ../src/guestfs-actions.pod:3296
10063 msgid "guestfs_list_partitions"
10064 msgstr ""
10065
10066 # type: verbatim
10067 #: ../src/guestfs-actions.pod:3298
10068 #, no-wrap
10069 msgid ""
10070 " char **\n"
10071 " guestfs_list_partitions (guestfs_h *g);\n"
10072 "\n"
10073 msgstr ""
10074
10075 # type: textblock
10076 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2290
10077 msgid "List all the partitions detected on all block devices."
10078 msgstr ""
10079
10080 # type: textblock
10081 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2292
10082 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10083 msgstr ""
10084
10085 # type: textblock
10086 #: ../src/guestfs-actions.pod:3305
10087 msgid ""
10088 "This does not return logical volumes.  For that you will need to call "
10089 "C<guestfs_lvs>."
10090 msgstr ""
10091
10092 # type: =head2
10093 #: ../src/guestfs-actions.pod:3316
10094 msgid "guestfs_ll"
10095 msgstr ""
10096
10097 # type: verbatim
10098 #: ../src/guestfs-actions.pod:3318
10099 #, no-wrap
10100 msgid ""
10101 " char *\n"
10102 " guestfs_ll (guestfs_h *g,\n"
10103 "             const char *directory);\n"
10104 "\n"
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2303
10109 msgid ""
10110 "List the files in C<directory> (relative to the root directory, there is no "
10111 "cwd) in the format of 'ls -la'."
10112 msgstr ""
10113
10114 # type: textblock
10115 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2306
10116 msgid ""
10117 "This command is mostly useful for interactive sessions.  It is I<not> "
10118 "intended that you try to parse the output string."
10119 msgstr ""
10120
10121 # type: =head2
10122 #: ../src/guestfs-actions.pod:3333
10123 msgid "guestfs_ln"
10124 msgstr ""
10125
10126 # type: verbatim
10127 #: ../src/guestfs-actions.pod:3335
10128 #, no-wrap
10129 msgid ""
10130 " int\n"
10131 " guestfs_ln (guestfs_h *g,\n"
10132 "             const char *target,\n"
10133 "             const char *linkname);\n"
10134 "\n"
10135 msgstr ""
10136
10137 # type: textblock
10138 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2313
10139 msgid "This command creates a hard link using the C<ln> command."
10140 msgstr ""
10141
10142 # type: =head2
10143 #: ../src/guestfs-actions.pod:3346
10144 msgid "guestfs_ln_f"
10145 msgstr ""
10146
10147 # type: verbatim
10148 #: ../src/guestfs-actions.pod:3348
10149 #, no-wrap
10150 msgid ""
10151 " int\n"
10152 " guestfs_ln_f (guestfs_h *g,\n"
10153 "               const char *target,\n"
10154 "               const char *linkname);\n"
10155 "\n"
10156 msgstr ""
10157
10158 # type: textblock
10159 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2319
10160 msgid ""
10161 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10162 "option removes the link (C<linkname>) if it exists already."
10163 msgstr ""
10164
10165 # type: =head2
10166 #: ../src/guestfs-actions.pod:3360
10167 msgid "guestfs_ln_s"
10168 msgstr ""
10169
10170 # type: verbatim
10171 #: ../src/guestfs-actions.pod:3362
10172 #, no-wrap
10173 msgid ""
10174 " int\n"
10175 " guestfs_ln_s (guestfs_h *g,\n"
10176 "               const char *target,\n"
10177 "               const char *linkname);\n"
10178 "\n"
10179 msgstr ""
10180
10181 # type: textblock
10182 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2326
10183 msgid "This command creates a symbolic link using the C<ln -s> command."
10184 msgstr ""
10185
10186 # type: =head2
10187 #: ../src/guestfs-actions.pod:3373
10188 msgid "guestfs_ln_sf"
10189 msgstr ""
10190
10191 # type: verbatim
10192 #: ../src/guestfs-actions.pod:3375
10193 #, no-wrap
10194 msgid ""
10195 " int\n"
10196 " guestfs_ln_sf (guestfs_h *g,\n"
10197 "                const char *target,\n"
10198 "                const char *linkname);\n"
10199 "\n"
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2332
10204 msgid ""
10205 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10206 "option removes the link (C<linkname>) if it exists already."
10207 msgstr ""
10208
10209 # type: =head2
10210 #: ../src/guestfs-actions.pod:3387
10211 msgid "guestfs_lremovexattr"
10212 msgstr ""
10213
10214 # type: verbatim
10215 #: ../src/guestfs-actions.pod:3389
10216 #, no-wrap
10217 msgid ""
10218 " int\n"
10219 " guestfs_lremovexattr (guestfs_h *g,\n"
10220 "                       const char *xattr,\n"
10221 "                       const char *path);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3394
10227 msgid ""
10228 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10229 "link, then it removes an extended attribute of the link itself."
10230 msgstr ""
10231
10232 # type: =head2
10233 #: ../src/guestfs-actions.pod:3402
10234 msgid "guestfs_ls"
10235 msgstr ""
10236
10237 # type: verbatim
10238 #: ../src/guestfs-actions.pod:3404
10239 #, no-wrap
10240 msgid ""
10241 " char **\n"
10242 " guestfs_ls (guestfs_h *g,\n"
10243 "             const char *directory);\n"
10244 "\n"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2347
10249 msgid ""
10250 "List the files in C<directory> (relative to the root directory, there is no "
10251 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10252 msgstr ""
10253
10254 # type: textblock
10255 #: ../src/guestfs-actions.pod:3412
10256 msgid ""
10257 "This command is mostly useful for interactive sessions.  Programs should "
10258 "probably use C<guestfs_readdir> instead."
10259 msgstr ""
10260
10261 # type: =head2
10262 #: ../src/guestfs-actions.pod:3421
10263 msgid "guestfs_lsetxattr"
10264 msgstr ""
10265
10266 # type: verbatim
10267 #: ../src/guestfs-actions.pod:3423
10268 #, no-wrap
10269 msgid ""
10270 " int\n"
10271 " guestfs_lsetxattr (guestfs_h *g,\n"
10272 "                    const char *xattr,\n"
10273 "                    const char *val,\n"
10274 "                    int vallen,\n"
10275 "                    const char *path);\n"
10276 "\n"
10277 msgstr ""
10278
10279 # type: textblock
10280 #: ../src/guestfs-actions.pod:3430
10281 msgid ""
10282 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10283 "then it sets an extended attribute of the link itself."
10284 msgstr ""
10285
10286 # type: =head2
10287 #: ../src/guestfs-actions.pod:3438
10288 msgid "guestfs_lstat"
10289 msgstr ""
10290
10291 # type: verbatim
10292 #: ../src/guestfs-actions.pod:3440
10293 #, no-wrap
10294 msgid ""
10295 " struct guestfs_stat *\n"
10296 " guestfs_lstat (guestfs_h *g,\n"
10297 "                const char *path);\n"
10298 "\n"
10299 msgstr ""
10300
10301 # type: textblock
10302 #: ../src/guestfs-actions.pod:3444 ../src/guestfs-actions.pod:5871
10303 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
10304 msgid "Returns file information for the given C<path>."
10305 msgstr ""
10306
10307 # type: textblock
10308 #: ../src/guestfs-actions.pod:3446
10309 msgid ""
10310 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10311 "link, then the link is stat-ed, not the file it refers to."
10312 msgstr ""
10313
10314 # type: textblock
10315 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2372
10316 msgid "This is the same as the C<lstat(2)> system call."
10317 msgstr ""
10318
10319 # type: textblock
10320 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:5875
10321 msgid ""
10322 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10323 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10324 msgstr ""
10325
10326 # type: textblock
10327 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5879
10328 #: ../src/guestfs-actions.pod:5897 ../src/guestfs-actions.pod:6278
10329 msgid "(Added in 0.9.2)"
10330 msgstr ""
10331
10332 # type: =head2
10333 #: ../src/guestfs-actions.pod:3458
10334 msgid "guestfs_lstatlist"
10335 msgstr ""
10336
10337 # type: verbatim
10338 #: ../src/guestfs-actions.pod:3460
10339 #, no-wrap
10340 msgid ""
10341 " struct guestfs_stat_list *\n"
10342 " guestfs_lstatlist (guestfs_h *g,\n"
10343 "                    const char *path,\n"
10344 "                    char *const *names);\n"
10345 "\n"
10346 msgstr ""
10347
10348 # type: textblock
10349 #: ../src/guestfs-actions.pod:3465
10350 msgid ""
10351 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10352 "files, where all files are in the directory C<path>.  C<names> is the list "
10353 "of files from this directory."
10354 msgstr ""
10355
10356 # type: textblock
10357 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2382
10358 msgid ""
10359 "On return you get a list of stat structs, with a one-to-one correspondence "
10360 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10361 "then the C<ino> field of that structure is set to C<-1>."
10362 msgstr ""
10363
10364 # type: textblock
10365 #: ../src/guestfs-actions.pod:3474
10366 msgid ""
10367 "This call is intended for programs that want to efficiently list a directory "
10368 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10369 "for a similarly efficient call for getting extended attributes.  Very long "
10370 "directory listings might cause the protocol message size to be exceeded, "
10371 "causing this call to fail.  The caller must split up such requests into "
10372 "smaller groups of names."
10373 msgstr ""
10374
10375 # type: textblock
10376 #: ../src/guestfs-actions.pod:3482
10377 msgid ""
10378 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10379 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10380 msgstr ""
10381
10382 # type: =head2
10383 #: ../src/guestfs-actions.pod:3488
10384 msgid "guestfs_luks_add_key"
10385 msgstr ""
10386
10387 # type: verbatim
10388 #: ../src/guestfs-actions.pod:3490
10389 #, no-wrap
10390 msgid ""
10391 " int\n"
10392 " guestfs_luks_add_key (guestfs_h *g,\n"
10393 "                       const char *device,\n"
10394 "                       const char *key,\n"
10395 "                       const char *newkey,\n"
10396 "                       int keyslot);\n"
10397 "\n"
10398 msgstr ""
10399
10400 # type: textblock
10401 #: ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2399
10402 msgid ""
10403 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10404 "existing key, and is used to access the device.  C<newkey> is the new key to "
10405 "add.  C<keyslot> is the key slot that will be replaced."
10406 msgstr ""
10407
10408 # type: textblock
10409 #: ../src/guestfs-actions.pod:3502
10410 msgid ""
10411 "Note that if C<keyslot> already contains a key, then this command will "
10412 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10413 msgstr ""
10414
10415 # type: textblock
10416 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3548
10417 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3591
10418 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3642
10419 msgid ""
10420 "This function takes a key or passphrase parameter which could contain "
10421 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10422 "information."
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3552
10427 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3595
10428 msgid "(Added in 1.5.2)"
10429 msgstr ""
10430
10431 # type: =head2
10432 #: ../src/guestfs-actions.pod:3514
10433 msgid "guestfs_luks_close"
10434 msgstr ""
10435
10436 # type: verbatim
10437 #: ../src/guestfs-actions.pod:3516
10438 #, no-wrap
10439 msgid ""
10440 " int\n"
10441 " guestfs_luks_close (guestfs_h *g,\n"
10442 "                     const char *device);\n"
10443 "\n"
10444 msgstr ""
10445
10446 # type: textblock
10447 #: ../src/guestfs-actions.pod:3520
10448 msgid ""
10449 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10450 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10451 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10452 "underlying block device."
10453 msgstr ""
10454
10455 # type: textblock
10456 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3627
10457 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3696
10458 #: ../src/guestfs-actions.pod:3744
10459 msgid "(Added in 1.5.1)"
10460 msgstr ""
10461
10462 # type: =head2
10463 #: ../src/guestfs-actions.pod:3530
10464 msgid "guestfs_luks_format"
10465 msgstr ""
10466
10467 # type: verbatim
10468 #: ../src/guestfs-actions.pod:3532
10469 #, no-wrap
10470 msgid ""
10471 " int\n"
10472 " guestfs_luks_format (guestfs_h *g,\n"
10473 "                      const char *device,\n"
10474 "                      const char *key,\n"
10475 "                      int keyslot);\n"
10476 "\n"
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2425
10481 msgid ""
10482 "This command erases existing data on C<device> and formats the device as a "
10483 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10484 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10485 msgstr ""
10486
10487 # type: textblock
10488 #: ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:3568
10489 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:4568
10490 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5706
10491 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5755
10492 #: ../src/guestfs-actions.pod:6905 ../fish/guestfish-actions.pod:2433
10493 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10494 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567
10495 #: ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863
10496 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10497 msgid ""
10498 "B<This command is dangerous.  Without careful use you can easily destroy all "
10499 "your data>."
10500 msgstr ""
10501
10502 # type: =head2
10503 #: ../src/guestfs-actions.pod:3554
10504 msgid "guestfs_luks_format_cipher"
10505 msgstr ""
10506
10507 # type: verbatim
10508 #: ../src/guestfs-actions.pod:3556
10509 #, no-wrap
10510 msgid ""
10511 " int\n"
10512 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10513 "                             const char *device,\n"
10514 "                             const char *key,\n"
10515 "                             int keyslot,\n"
10516 "                             const char *cipher);\n"
10517 "\n"
10518 msgstr ""
10519
10520 # type: textblock
10521 #: ../src/guestfs-actions.pod:3563
10522 msgid ""
10523 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10524 "set the C<cipher> used."
10525 msgstr ""
10526
10527 # type: =head2
10528 #: ../src/guestfs-actions.pod:3577
10529 msgid "guestfs_luks_kill_slot"
10530 msgstr ""
10531
10532 # type: verbatim
10533 #: ../src/guestfs-actions.pod:3579
10534 #, no-wrap
10535 msgid ""
10536 " int\n"
10537 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10538 "                         const char *device,\n"
10539 "                         const char *key,\n"
10540 "                         int keyslot);\n"
10541 "\n"
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2453
10546 msgid ""
10547 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10548 "device C<device>.  C<key> must be one of the I<other> keys."
10549 msgstr ""
10550
10551 # type: =head2
10552 #: ../src/guestfs-actions.pod:3597
10553 msgid "guestfs_luks_open"
10554 msgstr ""
10555
10556 # type: verbatim
10557 #: ../src/guestfs-actions.pod:3599
10558 #, no-wrap
10559 msgid ""
10560 " int\n"
10561 " guestfs_luks_open (guestfs_h *g,\n"
10562 "                    const char *device,\n"
10563 "                    const char *key,\n"
10564 "                    const char *mapname);\n"
10565 "\n"
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2464
10570 msgid ""
10571 "This command opens a block device which has been encrypted according to the "
10572 "Linux Unified Key Setup (LUKS) standard."
10573 msgstr ""
10574
10575 # type: textblock
10576 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2467
10577 msgid "C<device> is the encrypted block device or partition."
10578 msgstr ""
10579
10580 # type: textblock
10581 #: ../src/guestfs-actions.pod:3610 ../fish/guestfish-actions.pod:2469
10582 msgid ""
10583 "The caller must supply one of the keys associated with the LUKS block "
10584 "device, in the C<key> parameter."
10585 msgstr ""
10586
10587 # type: textblock
10588 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2472
10589 msgid ""
10590 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10591 "writes to this block device are decrypted from and encrypted to the "
10592 "underlying C<device> respectively."
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3617
10597 msgid ""
10598 "If this block device contains LVM volume groups, then calling "
10599 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10600 "visible."
10601 msgstr ""
10602
10603 # type: =head2
10604 #: ../src/guestfs-actions.pod:3629
10605 msgid "guestfs_luks_open_ro"
10606 msgstr ""
10607
10608 # type: verbatim
10609 #: ../src/guestfs-actions.pod:3631
10610 #, no-wrap
10611 msgid ""
10612 " int\n"
10613 " guestfs_luks_open_ro (guestfs_h *g,\n"
10614 "                       const char *device,\n"
10615 "                       const char *key,\n"
10616 "                       const char *mapname);\n"
10617 "\n"
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3637
10622 msgid ""
10623 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10624 "created."
10625 msgstr ""
10626
10627 # type: =head2
10628 #: ../src/guestfs-actions.pod:3648
10629 msgid "guestfs_lvcreate"
10630 msgstr ""
10631
10632 # type: verbatim
10633 #: ../src/guestfs-actions.pod:3650
10634 #, no-wrap
10635 msgid ""
10636 " int\n"
10637 " guestfs_lvcreate (guestfs_h *g,\n"
10638 "                   const char *logvol,\n"
10639 "                   const char *volgroup,\n"
10640 "                   int mbytes);\n"
10641 "\n"
10642 msgstr ""
10643
10644 # type: textblock
10645 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2497
10646 msgid ""
10647 "This creates an LVM logical volume called C<logvol> on the volume group "
10648 "C<volgroup>, with C<size> megabytes."
10649 msgstr ""
10650
10651 # type: =head2
10652 #: ../src/guestfs-actions.pod:3663
10653 msgid "guestfs_lvm_canonical_lv_name"
10654 msgstr ""
10655
10656 # type: verbatim
10657 #: ../src/guestfs-actions.pod:3665
10658 #, no-wrap
10659 msgid ""
10660 " char *\n"
10661 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10662 "                                const char *lvname);\n"
10663 "\n"
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2504
10668 msgid ""
10669 "This converts alternative naming schemes for LVs that you might find to the "
10670 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10671 "LV>."
10672 msgstr ""
10673
10674 # type: textblock
10675 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2508
10676 msgid ""
10677 "This command returns an error if the C<lvname> parameter does not refer to a "
10678 "logical volume."
10679 msgstr ""
10680
10681 # type: textblock
10682 #: ../src/guestfs-actions.pod:3676
10683 msgid "See also C<guestfs_is_lv>."
10684 msgstr ""
10685
10686 # type: textblock
10687 #: ../src/guestfs-actions.pod:3681
10688 msgid "(Added in 1.5.24)"
10689 msgstr ""
10690
10691 # type: =head2
10692 #: ../src/guestfs-actions.pod:3683
10693 msgid "guestfs_lvm_clear_filter"
10694 msgstr ""
10695
10696 # type: verbatim
10697 #: ../src/guestfs-actions.pod:3685
10698 #, no-wrap
10699 msgid ""
10700 " int\n"
10701 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10702 "\n"
10703 msgstr ""
10704
10705 # type: textblock
10706 #: ../src/guestfs-actions.pod:3688
10707 msgid ""
10708 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10709 "see every block device."
10710 msgstr ""
10711
10712 # type: textblock
10713 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3733
10714 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10715 msgid ""
10716 "This command also clears the LVM cache and performs a volume group scan."
10717 msgstr ""
10718
10719 # type: =head2
10720 #: ../src/guestfs-actions.pod:3698
10721 msgid "guestfs_lvm_remove_all"
10722 msgstr ""
10723
10724 # type: verbatim
10725 #: ../src/guestfs-actions.pod:3700
10726 #, no-wrap
10727 msgid ""
10728 " int\n"
10729 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10730 "\n"
10731 msgstr ""
10732
10733 # type: textblock
10734 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2527
10735 msgid ""
10736 "This command removes all LVM logical volumes, volume groups and physical "
10737 "volumes."
10738 msgstr ""
10739
10740 # type: =head2
10741 #: ../src/guestfs-actions.pod:3713
10742 msgid "guestfs_lvm_set_filter"
10743 msgstr ""
10744
10745 # type: verbatim
10746 #: ../src/guestfs-actions.pod:3715
10747 #, no-wrap
10748 msgid ""
10749 " int\n"
10750 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10751 "                         char *const *devices);\n"
10752 "\n"
10753 msgstr ""
10754
10755 # type: textblock
10756 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2537
10757 msgid ""
10758 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10759 "block devices in the list C<devices>, and will ignore all other attached "
10760 "block devices."
10761 msgstr ""
10762
10763 # type: textblock
10764 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2541
10765 msgid ""
10766 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10767 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10768 "there are two types of duplication possible: either cloned PVs/VGs which "
10769 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10770 "same name.  In normal operation you cannot create this situation, but you "
10771 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10772 "inside the LVM metadata."
10773 msgstr ""
10774
10775 # type: textblock
10776 #: ../src/guestfs-actions.pod:3736 ../fish/guestfish-actions.pod:2554
10777 msgid "You can filter whole block devices or individual partitions."
10778 msgstr ""
10779
10780 # type: textblock
10781 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2556
10782 msgid ""
10783 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10784 "filesystem), even if you are not filtering out that VG."
10785 msgstr ""
10786
10787 # type: =head2
10788 #: ../src/guestfs-actions.pod:3746
10789 msgid "guestfs_lvremove"
10790 msgstr ""
10791
10792 # type: verbatim
10793 #: ../src/guestfs-actions.pod:3748
10794 #, no-wrap
10795 msgid ""
10796 " int\n"
10797 " guestfs_lvremove (guestfs_h *g,\n"
10798 "                   const char *device);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:3752 ../fish/guestfish-actions.pod:2564
10804 msgid ""
10805 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10806 "LV, such as C</dev/VG/LV>."
10807 msgstr ""
10808
10809 # type: textblock
10810 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2567
10811 msgid ""
10812 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10813 "dev/VG>."
10814 msgstr ""
10815
10816 # type: textblock
10817 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:4914
10818 #: ../src/guestfs-actions.pod:6644
10819 msgid "(Added in 1.0.13)"
10820 msgstr ""
10821
10822 # type: =head2
10823 #: ../src/guestfs-actions.pod:3762
10824 msgid "guestfs_lvrename"
10825 msgstr ""
10826
10827 # type: verbatim
10828 #: ../src/guestfs-actions.pod:3764
10829 #, no-wrap
10830 msgid ""
10831 " int\n"
10832 " guestfs_lvrename (guestfs_h *g,\n"
10833 "                   const char *logvol,\n"
10834 "                   const char *newlogvol);\n"
10835 "\n"
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2574
10840 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10841 msgstr ""
10842
10843 # type: textblock
10844 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:6657
10845 msgid "(Added in 1.0.83)"
10846 msgstr ""
10847
10848 # type: =head2
10849 #: ../src/guestfs-actions.pod:3775
10850 msgid "guestfs_lvresize"
10851 msgstr ""
10852
10853 # type: verbatim
10854 #: ../src/guestfs-actions.pod:3777
10855 #, no-wrap
10856 msgid ""
10857 " int\n"
10858 " guestfs_lvresize (guestfs_h *g,\n"
10859 "                   const char *device,\n"
10860 "                   int mbytes);\n"
10861 "\n"
10862 msgstr ""
10863
10864 # type: textblock
10865 #: ../src/guestfs-actions.pod:3782 ../fish/guestfish-actions.pod:2580
10866 msgid ""
10867 "This resizes (expands or shrinks) an existing LVM logical volume to "
10868 "C<mbytes>.  When reducing, data in the reduced part is lost."
10869 msgstr ""
10870
10871 # type: =head2
10872 #: ../src/guestfs-actions.pod:3790
10873 msgid "guestfs_lvresize_free"
10874 msgstr ""
10875
10876 # type: verbatim
10877 #: ../src/guestfs-actions.pod:3792
10878 #, no-wrap
10879 msgid ""
10880 " int\n"
10881 " guestfs_lvresize_free (guestfs_h *g,\n"
10882 "                        const char *lv,\n"
10883 "                        int percent);\n"
10884 "\n"
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2588
10889 msgid ""
10890 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10891 "remaining free space in the volume group.  Commonly you would call this with "
10892 "pc = 100 which expands the logical volume as much as possible, using all "
10893 "remaining free space in the volume group."
10894 msgstr ""
10895
10896 # type: textblock
10897 #: ../src/guestfs-actions.pod:3805
10898 msgid "(Added in 1.3.3)"
10899 msgstr ""
10900
10901 # type: =head2
10902 #: ../src/guestfs-actions.pod:3807
10903 msgid "guestfs_lvs"
10904 msgstr ""
10905
10906 # type: verbatim
10907 #: ../src/guestfs-actions.pod:3809
10908 #, no-wrap
10909 msgid ""
10910 " char **\n"
10911 " guestfs_lvs (guestfs_h *g);\n"
10912 "\n"
10913 msgstr ""
10914
10915 # type: textblock
10916 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
10917 msgid ""
10918 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10919 "(8)> command."
10920 msgstr ""
10921
10922 # type: textblock
10923 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2601
10924 msgid ""
10925 "This returns a list of the logical volume device names (eg. C</dev/"
10926 "VolGroup00/LogVol00>)."
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:3818
10931 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10932 msgstr ""
10933
10934 # type: =head2
10935 #: ../src/guestfs-actions.pod:3826
10936 msgid "guestfs_lvs_full"
10937 msgstr ""
10938
10939 # type: verbatim
10940 #: ../src/guestfs-actions.pod:3828
10941 #, no-wrap
10942 msgid ""
10943 " struct guestfs_lvm_lv_list *\n"
10944 " guestfs_lvs_full (guestfs_h *g);\n"
10945 "\n"
10946 msgstr ""
10947
10948 # type: textblock
10949 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
10950 msgid ""
10951 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10952 "(8)> command.  The \"full\" version includes all fields."
10953 msgstr ""
10954
10955 # type: textblock
10956 #: ../src/guestfs-actions.pod:3834
10957 msgid ""
10958 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10959 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10960 msgstr ""
10961
10962 # type: =head2
10963 #: ../src/guestfs-actions.pod:3840
10964 msgid "guestfs_lvuuid"
10965 msgstr ""
10966
10967 # type: verbatim
10968 #: ../src/guestfs-actions.pod:3842
10969 #, no-wrap
10970 msgid ""
10971 " char *\n"
10972 " guestfs_lvuuid (guestfs_h *g,\n"
10973 "                 const char *device);\n"
10974 "\n"
10975 msgstr ""
10976
10977 # type: textblock
10978 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
10979 msgid "This command returns the UUID of the LVM LV C<device>."
10980 msgstr ""
10981
10982 # type: =head2
10983 #: ../src/guestfs-actions.pod:3853
10984 msgid "guestfs_lxattrlist"
10985 msgstr ""
10986
10987 # type: verbatim
10988 #: ../src/guestfs-actions.pod:3855
10989 #, no-wrap
10990 msgid ""
10991 " struct guestfs_xattr_list *\n"
10992 " guestfs_lxattrlist (guestfs_h *g,\n"
10993 "                     const char *path,\n"
10994 "                     char *const *names);\n"
10995 "\n"
10996 msgstr ""
10997
10998 # type: textblock
10999 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2623
11000 msgid ""
11001 "This call allows you to get the extended attributes of multiple files, where "
11002 "all files are in the directory C<path>.  C<names> is the list of files from "
11003 "this directory."
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2627
11008 msgid ""
11009 "On return you get a flat list of xattr structs which must be interpreted "
11010 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11011 "C<attrval> in this struct is zero-length to indicate there was an error "
11012 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11013 "number (the number of following attributes for this file, which could be C<"
11014 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11015 "for the first named file.  This repeats for the second and subsequent files."
11016 msgstr ""
11017
11018 # type: textblock
11019 #: ../src/guestfs-actions.pod:3874
11020 msgid ""
11021 "This call is intended for programs that want to efficiently list a directory "
11022 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11023 "a similarly efficient call for getting standard stats.  Very long directory "
11024 "listings might cause the protocol message size to be exceeded, causing this "
11025 "call to fail.  The caller must split up such requests into smaller groups of "
11026 "names."
11027 msgstr ""
11028
11029 # type: =head2
11030 #: ../src/guestfs-actions.pod:3888
11031 msgid "guestfs_mkdir"
11032 msgstr ""
11033
11034 # type: verbatim
11035 #: ../src/guestfs-actions.pod:3890
11036 #, no-wrap
11037 msgid ""
11038 " int\n"
11039 " guestfs_mkdir (guestfs_h *g,\n"
11040 "                const char *path);\n"
11041 "\n"
11042 msgstr ""
11043
11044 # type: textblock
11045 #: ../src/guestfs-actions.pod:3894 ../fish/guestfish-actions.pod:2649
11046 msgid "Create a directory named C<path>."
11047 msgstr ""
11048
11049 # type: =head2
11050 #: ../src/guestfs-actions.pod:3900
11051 msgid "guestfs_mkdir_mode"
11052 msgstr ""
11053
11054 # type: verbatim
11055 #: ../src/guestfs-actions.pod:3902
11056 #, no-wrap
11057 msgid ""
11058 " int\n"
11059 " guestfs_mkdir_mode (guestfs_h *g,\n"
11060 "                     const char *path,\n"
11061 "                     int mode);\n"
11062 "\n"
11063 msgstr ""
11064
11065 # type: textblock
11066 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
11067 msgid ""
11068 "This command creates a directory, setting the initial permissions of the "
11069 "directory to C<mode>."
11070 msgstr ""
11071
11072 # type: textblock
11073 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2658
11074 msgid ""
11075 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11076 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11077 "other ways."
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3914
11082 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11083 msgstr ""
11084
11085 # type: =head2
11086 #: ../src/guestfs-actions.pod:3920
11087 msgid "guestfs_mkdir_p"
11088 msgstr ""
11089
11090 # type: verbatim
11091 #: ../src/guestfs-actions.pod:3922
11092 #, no-wrap
11093 msgid ""
11094 " int\n"
11095 " guestfs_mkdir_p (guestfs_h *g,\n"
11096 "                  const char *path);\n"
11097 "\n"
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2668
11102 msgid ""
11103 "Create a directory named C<path>, creating any parent directories as "
11104 "necessary.  This is like the C<mkdir -p> shell command."
11105 msgstr ""
11106
11107 # type: =head2
11108 #: ../src/guestfs-actions.pod:3933
11109 msgid "guestfs_mkdtemp"
11110 msgstr ""
11111
11112 # type: verbatim
11113 #: ../src/guestfs-actions.pod:3935
11114 #, no-wrap
11115 msgid ""
11116 " char *\n"
11117 " guestfs_mkdtemp (guestfs_h *g,\n"
11118 "                  const char *template);\n"
11119 "\n"
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2675
11124 msgid ""
11125 "This command creates a temporary directory.  The C<template> parameter "
11126 "should be a full pathname for the temporary directory name with the final "
11127 "six characters being \"XXXXXX\"."
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:2680
11132 msgid ""
11133 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11134 "being suitable for Windows filesystems."
11135 msgstr ""
11136
11137 # type: textblock
11138 #: ../src/guestfs-actions.pod:3947 ../fish/guestfish-actions.pod:2683
11139 msgid "The name of the temporary directory that was created is returned."
11140 msgstr ""
11141
11142 # type: textblock
11143 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2686
11144 msgid "The temporary directory is created with mode 0700 and is owned by root."
11145 msgstr ""
11146
11147 # type: textblock
11148 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2689
11149 msgid ""
11150 "The caller is responsible for deleting the temporary directory and its "
11151 "contents after use."
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2692
11156 msgid "See also: L<mkdtemp(3)>"
11157 msgstr ""
11158
11159 # type: =head2
11160 #: ../src/guestfs-actions.pod:3963
11161 msgid "guestfs_mke2fs_J"
11162 msgstr ""
11163
11164 # type: verbatim
11165 #: ../src/guestfs-actions.pod:3965
11166 #, no-wrap
11167 msgid ""
11168 " int\n"
11169 " guestfs_mke2fs_J (guestfs_h *g,\n"
11170 "                   const char *fstype,\n"
11171 "                   int blocksize,\n"
11172 "                   const char *device,\n"
11173 "                   const char *journal);\n"
11174 "\n"
11175 msgstr ""
11176
11177 # type: textblock
11178 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2698
11179 msgid ""
11180 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11181 "C<journal>.  It is equivalent to the command:"
11182 msgstr ""
11183
11184 # type: verbatim
11185 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2702
11186 #, no-wrap
11187 msgid ""
11188 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11189 "\n"
11190 msgstr ""
11191
11192 # type: textblock
11193 #: ../src/guestfs-actions.pod:3978
11194 msgid "See also C<guestfs_mke2journal>."
11195 msgstr ""
11196
11197 # type: textblock
11198 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:4000
11199 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4034
11200 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4062
11201 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4304
11202 msgid "(Added in 1.0.68)"
11203 msgstr ""
11204
11205 # type: =head2
11206 #: ../src/guestfs-actions.pod:3984
11207 msgid "guestfs_mke2fs_JL"
11208 msgstr ""
11209
11210 # type: verbatim
11211 #: ../src/guestfs-actions.pod:3986
11212 #, no-wrap
11213 msgid ""
11214 " int\n"
11215 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11216 "                    const char *fstype,\n"
11217 "                    int blocksize,\n"
11218 "                    const char *device,\n"
11219 "                    const char *label);\n"
11220 "\n"
11221 msgstr ""
11222
11223 # type: textblock
11224 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2710
11225 msgid ""
11226 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11227 "the journal labeled C<label>."
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:3996
11232 msgid "See also C<guestfs_mke2journal_L>."
11233 msgstr ""
11234
11235 # type: =head2
11236 #: ../src/guestfs-actions.pod:4002
11237 msgid "guestfs_mke2fs_JU"
11238 msgstr ""
11239
11240 # type: verbatim
11241 #: ../src/guestfs-actions.pod:4004
11242 #, no-wrap
11243 msgid ""
11244 " int\n"
11245 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11246 "                    const char *fstype,\n"
11247 "                    int blocksize,\n"
11248 "                    const char *device,\n"
11249 "                    const char *uuid);\n"
11250 "\n"
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2719
11255 msgid ""
11256 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11257 "the journal with UUID C<uuid>."
11258 msgstr ""
11259
11260 # type: textblock
11261 #: ../src/guestfs-actions.pod:4014
11262 msgid "See also C<guestfs_mke2journal_U>."
11263 msgstr ""
11264
11265 # type: =head2
11266 #: ../src/guestfs-actions.pod:4020
11267 msgid "guestfs_mke2journal"
11268 msgstr ""
11269
11270 # type: verbatim
11271 #: ../src/guestfs-actions.pod:4022
11272 #, no-wrap
11273 msgid ""
11274 " int\n"
11275 " guestfs_mke2journal (guestfs_h *g,\n"
11276 "                      int blocksize,\n"
11277 "                      const char *device);\n"
11278 "\n"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2728
11283 msgid ""
11284 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11285 "command:"
11286 msgstr ""
11287
11288 # type: verbatim
11289 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2731
11290 #, no-wrap
11291 msgid ""
11292 " mke2fs -O journal_dev -b blocksize device\n"
11293 "\n"
11294 msgstr ""
11295
11296 # type: =head2
11297 #: ../src/guestfs-actions.pod:4036
11298 msgid "guestfs_mke2journal_L"
11299 msgstr ""
11300
11301 # type: verbatim
11302 #: ../src/guestfs-actions.pod:4038
11303 #, no-wrap
11304 msgid ""
11305 " int\n"
11306 " guestfs_mke2journal_L (guestfs_h *g,\n"
11307 "                        int blocksize,\n"
11308 "                        const char *label,\n"
11309 "                        const char *device);\n"
11310 "\n"
11311 msgstr ""
11312
11313 # type: textblock
11314 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2737
11315 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11316 msgstr ""
11317
11318 # type: =head2
11319 #: ../src/guestfs-actions.pod:4050
11320 msgid "guestfs_mke2journal_U"
11321 msgstr ""
11322
11323 # type: verbatim
11324 #: ../src/guestfs-actions.pod:4052
11325 #, no-wrap
11326 msgid ""
11327 " int\n"
11328 " guestfs_mke2journal_U (guestfs_h *g,\n"
11329 "                        int blocksize,\n"
11330 "                        const char *uuid,\n"
11331 "                        const char *device);\n"
11332 "\n"
11333 msgstr ""
11334
11335 # type: textblock
11336 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2743
11337 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11338 msgstr ""
11339
11340 # type: =head2
11341 #: ../src/guestfs-actions.pod:4064
11342 msgid "guestfs_mkfifo"
11343 msgstr ""
11344
11345 # type: verbatim
11346 #: ../src/guestfs-actions.pod:4066
11347 #, no-wrap
11348 msgid ""
11349 " int\n"
11350 " guestfs_mkfifo (guestfs_h *g,\n"
11351 "                 int mode,\n"
11352 "                 const char *path);\n"
11353 "\n"
11354 msgstr ""
11355
11356 # type: textblock
11357 #: ../src/guestfs-actions.pod:4071
11358 msgid ""
11359 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11360 "is just a convenient wrapper around C<guestfs_mknod>."
11361 msgstr ""
11362
11363 # type: =head2
11364 #: ../src/guestfs-actions.pod:4081
11365 msgid "guestfs_mkfs"
11366 msgstr ""
11367
11368 # type: verbatim
11369 #: ../src/guestfs-actions.pod:4083
11370 #, no-wrap
11371 msgid ""
11372 " int\n"
11373 " guestfs_mkfs (guestfs_h *g,\n"
11374 "               const char *fstype,\n"
11375 "               const char *device);\n"
11376 "\n"
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4088 ../fish/guestfish-actions.pod:2759
11381 msgid ""
11382 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11383 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11384 msgstr ""
11385
11386 # type: =head2
11387 #: ../src/guestfs-actions.pod:4096
11388 msgid "guestfs_mkfs_b"
11389 msgstr ""
11390
11391 # type: verbatim
11392 #: ../src/guestfs-actions.pod:4098
11393 #, no-wrap
11394 msgid ""
11395 " int\n"
11396 " guestfs_mkfs_b (guestfs_h *g,\n"
11397 "                 const char *fstype,\n"
11398 "                 int blocksize,\n"
11399 "                 const char *device);\n"
11400 "\n"
11401 msgstr ""
11402
11403 # type: textblock
11404 #: ../src/guestfs-actions.pod:4104
11405 msgid ""
11406 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11407 "block size of the resulting filesystem.  Supported block sizes depend on the "
11408 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11409 msgstr ""
11410
11411 # type: textblock
11412 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2772
11413 msgid ""
11414 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11415 "cluster size."
11416 msgstr ""
11417
11418 # type: =head2
11419 #: ../src/guestfs-actions.pod:4116
11420 msgid "guestfs_mkmountpoint"
11421 msgstr ""
11422
11423 # type: verbatim
11424 #: ../src/guestfs-actions.pod:4118
11425 #, no-wrap
11426 msgid ""
11427 " int\n"
11428 " guestfs_mkmountpoint (guestfs_h *g,\n"
11429 "                       const char *exemptpath);\n"
11430 "\n"
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4122
11435 msgid ""
11436 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11437 "that can be used to create extra mountpoints before mounting the first "
11438 "filesystem."
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11443 msgid ""
11444 "These calls are I<only> necessary in some very limited circumstances, mainly "
11445 "the case where you want to mount a mix of unrelated and/or read-only "
11446 "filesystems together."
11447 msgstr ""
11448
11449 # type: textblock
11450 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2787
11451 msgid ""
11452 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11453 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11454 "inside that.  You can unpack this as follows in guestfish:"
11455 msgstr ""
11456
11457 # type: verbatim
11458 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2792
11459 #, no-wrap
11460 msgid ""
11461 " add-ro Fedora-11-i686-Live.iso\n"
11462 " run\n"
11463 " mkmountpoint /cd\n"
11464 " mkmountpoint /sqsh\n"
11465 " mkmountpoint /ext3fs\n"
11466 " mount /dev/sda /cd\n"
11467 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11468 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11469 "\n"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2801
11474 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4146
11479 msgid ""
11480 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11481 "may get unexpected errors if you try to mix these calls.  It is safest to "
11482 "manually unmount filesystems and remove mountpoints after use."
11483 msgstr ""
11484
11485 # type: textblock
11486 #: ../src/guestfs-actions.pod:4150
11487 msgid ""
11488 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11489 "first, so for this to work for manual mountpoints, you must ensure that the "
11490 "innermost mountpoints have the longest pathnames, as in the example code "
11491 "above."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2812
11496 msgid ""
11497 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11498 msgstr ""
11499
11500 # type: textblock
11501 #: ../src/guestfs-actions.pod:4157
11502 msgid ""
11503 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11504 "means that C<guestfs_umount_all> is called when the handle is closed which "
11505 "can also trigger these issues."
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4422
11510 #: ../src/guestfs-actions.pod:5315
11511 msgid "(Added in 1.0.62)"
11512 msgstr ""
11513
11514 # type: =head2
11515 #: ../src/guestfs-actions.pod:4165
11516 msgid "guestfs_mknod"
11517 msgstr ""
11518
11519 # type: verbatim
11520 #: ../src/guestfs-actions.pod:4167
11521 #, no-wrap
11522 msgid ""
11523 " int\n"
11524 " guestfs_mknod (guestfs_h *g,\n"
11525 "                int mode,\n"
11526 "                int devmajor,\n"
11527 "                int devminor,\n"
11528 "                const char *path);\n"
11529 "\n"
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:2822
11534 msgid ""
11535 "This call creates block or character special devices, or named pipes (FIFOs)."
11536 msgstr ""
11537
11538 # type: textblock
11539 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2825
11540 msgid ""
11541 "The C<mode> parameter should be the mode, using the standard constants.  "
11542 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11543 "used when creating block and character special devices."
11544 msgstr ""
11545
11546 # type: textblock
11547 #: ../src/guestfs-actions.pod:4182
11548 msgid ""
11549 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11550 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11551 "regular file).  These constants are available in the standard Linux header "
11552 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11553 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11554 "the appropriate constant for you."
11555 msgstr ""
11556
11557 # type: =head2
11558 #: ../src/guestfs-actions.pod:4196
11559 msgid "guestfs_mknod_b"
11560 msgstr ""
11561
11562 # type: verbatim
11563 #: ../src/guestfs-actions.pod:4198
11564 #, no-wrap
11565 msgid ""
11566 " int\n"
11567 " guestfs_mknod_b (guestfs_h *g,\n"
11568 "                  int mode,\n"
11569 "                  int devmajor,\n"
11570 "                  int devminor,\n"
11571 "                  const char *path);\n"
11572 "\n"
11573 msgstr ""
11574
11575 # type: textblock
11576 #: ../src/guestfs-actions.pod:4205
11577 msgid ""
11578 "This call creates a block device node called C<path> with mode C<mode> and "
11579 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11580 "wrapper around C<guestfs_mknod>."
11581 msgstr ""
11582
11583 # type: =head2
11584 #: ../src/guestfs-actions.pod:4215
11585 msgid "guestfs_mknod_c"
11586 msgstr ""
11587
11588 # type: verbatim
11589 #: ../src/guestfs-actions.pod:4217
11590 #, no-wrap
11591 msgid ""
11592 " int\n"
11593 " guestfs_mknod_c (guestfs_h *g,\n"
11594 "                  int mode,\n"
11595 "                  int devmajor,\n"
11596 "                  int devminor,\n"
11597 "                  const char *path);\n"
11598 "\n"
11599 msgstr ""
11600
11601 # type: textblock
11602 #: ../src/guestfs-actions.pod:4224
11603 msgid ""
11604 "This call creates a char device node called C<path> with mode C<mode> and "
11605 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11606 "wrapper around C<guestfs_mknod>."
11607 msgstr ""
11608
11609 # type: =head2
11610 #: ../src/guestfs-actions.pod:4234
11611 msgid "guestfs_mkswap"
11612 msgstr ""
11613
11614 # type: verbatim
11615 #: ../src/guestfs-actions.pod:4236
11616 #, no-wrap
11617 msgid ""
11618 " int\n"
11619 " guestfs_mkswap (guestfs_h *g,\n"
11620 "                 const char *device);\n"
11621 "\n"
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2864
11626 msgid "Create a swap partition on C<device>."
11627 msgstr ""
11628
11629 # type: =head2
11630 #: ../src/guestfs-actions.pod:4246
11631 msgid "guestfs_mkswap_L"
11632 msgstr ""
11633
11634 # type: verbatim
11635 #: ../src/guestfs-actions.pod:4248
11636 #, no-wrap
11637 msgid ""
11638 " int\n"
11639 " guestfs_mkswap_L (guestfs_h *g,\n"
11640 "                   const char *label,\n"
11641 "                   const char *device);\n"
11642 "\n"
11643 msgstr ""
11644
11645 # type: textblock
11646 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2870
11647 msgid "Create a swap partition on C<device> with label C<label>."
11648 msgstr ""
11649
11650 # type: textblock
11651 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2872
11652 msgid ""
11653 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11654 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11655 "or swap tools."
11656 msgstr ""
11657
11658 # type: =head2
11659 #: ../src/guestfs-actions.pod:4263
11660 msgid "guestfs_mkswap_U"
11661 msgstr ""
11662
11663 # type: verbatim
11664 #: ../src/guestfs-actions.pod:4265
11665 #, no-wrap
11666 msgid ""
11667 " int\n"
11668 " guestfs_mkswap_U (guestfs_h *g,\n"
11669 "                   const char *uuid,\n"
11670 "                   const char *device);\n"
11671 "\n"
11672 msgstr ""
11673
11674 # type: textblock
11675 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2880
11676 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11677 msgstr ""
11678
11679 # type: =head2
11680 #: ../src/guestfs-actions.pod:4276
11681 msgid "guestfs_mkswap_file"
11682 msgstr ""
11683
11684 # type: verbatim
11685 #: ../src/guestfs-actions.pod:4278
11686 #, no-wrap
11687 msgid ""
11688 " int\n"
11689 " guestfs_mkswap_file (guestfs_h *g,\n"
11690 "                      const char *path);\n"
11691 "\n"
11692 msgstr ""
11693
11694 # type: textblock
11695 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2886
11696 msgid "Create a swap file."
11697 msgstr ""
11698
11699 # type: textblock
11700 #: ../src/guestfs-actions.pod:4284
11701 msgid ""
11702 "This command just writes a swap file signature to an existing file.  To "
11703 "create the file itself, use something like C<guestfs_fallocate>."
11704 msgstr ""
11705
11706 # type: =head2
11707 #: ../src/guestfs-actions.pod:4291
11708 msgid "guestfs_modprobe"
11709 msgstr ""
11710
11711 # type: verbatim
11712 #: ../src/guestfs-actions.pod:4293
11713 #, no-wrap
11714 msgid ""
11715 " int\n"
11716 " guestfs_modprobe (guestfs_h *g,\n"
11717 "                   const char *modulename);\n"
11718 "\n"
11719 msgstr ""
11720
11721 # type: textblock
11722 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2895
11723 msgid "This loads a kernel module in the appliance."
11724 msgstr ""
11725
11726 # type: textblock
11727 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2897
11728 msgid ""
11729 "The kernel module must have been whitelisted when libguestfs was built (see "
11730 "C<appliance/kmod.whitelist.in> in the source)."
11731 msgstr ""
11732
11733 # type: =head2
11734 #: ../src/guestfs-actions.pod:4306
11735 msgid "guestfs_mount"
11736 msgstr ""
11737
11738 # type: verbatim
11739 #: ../src/guestfs-actions.pod:4308
11740 #, no-wrap
11741 msgid ""
11742 " int\n"
11743 " guestfs_mount (guestfs_h *g,\n"
11744 "                const char *device,\n"
11745 "                const char *mountpoint);\n"
11746 "\n"
11747 msgstr ""
11748
11749 # type: textblock
11750 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2904
11751 msgid ""
11752 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11753 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11754 "those block devices contain partitions, they will have the usual names (eg. "
11755 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2910
11760 msgid ""
11761 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11762 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11763 "mounted on directories which already exist."
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2915
11768 msgid ""
11769 "The mounted filesystem is writable, if we have sufficient permissions on the "
11770 "underlying device."
11771 msgstr ""
11772
11773 # type: textblock
11774 #: ../src/guestfs-actions.pod:4327
11775 msgid ""
11776 "B<Important note:> When you use this call, the filesystem options C<sync> "
11777 "and C<noatime> are set implicitly.  This was originally done because we "
11778 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11779 "very large negative performance impact and negligible effect on "
11780 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11781 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11782 "(use an empty string for the first parameter if you don't want any options)."
11783 msgstr ""
11784
11785 # type: =head2
11786 #: ../src/guestfs-actions.pod:4341
11787 msgid "guestfs_mount_loop"
11788 msgstr ""
11789
11790 # type: verbatim
11791 #: ../src/guestfs-actions.pod:4343
11792 #, no-wrap
11793 msgid ""
11794 " int\n"
11795 " guestfs_mount_loop (guestfs_h *g,\n"
11796 "                     const char *file,\n"
11797 "                     const char *mountpoint);\n"
11798 "\n"
11799 msgstr ""
11800
11801 # type: textblock
11802 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2932
11803 msgid ""
11804 "This command lets you mount C<file> (a filesystem image in a file) on a "
11805 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11806 "mountpoint>."
11807 msgstr ""
11808
11809 # type: =head2
11810 #: ../src/guestfs-actions.pod:4356
11811 msgid "guestfs_mount_options"
11812 msgstr ""
11813
11814 # type: verbatim
11815 #: ../src/guestfs-actions.pod:4358
11816 #, no-wrap
11817 msgid ""
11818 " int\n"
11819 " guestfs_mount_options (guestfs_h *g,\n"
11820 "                        const char *options,\n"
11821 "                        const char *device,\n"
11822 "                        const char *mountpoint);\n"
11823 "\n"
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4364
11828 msgid ""
11829 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11830 "the mount options as for the L<mount(8)> I<-o> flag."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2944
11835 msgid ""
11836 "If the C<options> parameter is an empty string, then no options are passed "
11837 "(all options default to whatever the filesystem uses)."
11838 msgstr ""
11839
11840 # type: textblock
11841 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4388
11842 #: ../src/guestfs-actions.pod:4405
11843 msgid "(Added in 1.0.10)"
11844 msgstr ""
11845
11846 # type: =head2
11847 #: ../src/guestfs-actions.pod:4376
11848 msgid "guestfs_mount_ro"
11849 msgstr ""
11850
11851 # type: verbatim
11852 #: ../src/guestfs-actions.pod:4378
11853 #, no-wrap
11854 msgid ""
11855 " int\n"
11856 " guestfs_mount_ro (guestfs_h *g,\n"
11857 "                   const char *device,\n"
11858 "                   const char *mountpoint);\n"
11859 "\n"
11860 msgstr ""
11861
11862 # type: textblock
11863 #: ../src/guestfs-actions.pod:4383
11864 msgid ""
11865 "This is the same as the C<guestfs_mount> command, but it mounts the "
11866 "filesystem with the read-only (I<-o ro>) flag."
11867 msgstr ""
11868
11869 # type: =head2
11870 #: ../src/guestfs-actions.pod:4390
11871 msgid "guestfs_mount_vfs"
11872 msgstr ""
11873
11874 # type: verbatim
11875 #: ../src/guestfs-actions.pod:4392
11876 #, no-wrap
11877 msgid ""
11878 " int\n"
11879 " guestfs_mount_vfs (guestfs_h *g,\n"
11880 "                    const char *options,\n"
11881 "                    const char *vfstype,\n"
11882 "                    const char *device,\n"
11883 "                    const char *mountpoint);\n"
11884 "\n"
11885 msgstr ""
11886
11887 # type: textblock
11888 #: ../src/guestfs-actions.pod:4399
11889 msgid ""
11890 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11891 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11892 "t> flags."
11893 msgstr ""
11894
11895 # type: =head2
11896 #: ../src/guestfs-actions.pod:4407
11897 msgid "guestfs_mountpoints"
11898 msgstr ""
11899
11900 # type: verbatim
11901 #: ../src/guestfs-actions.pod:4409
11902 #, no-wrap
11903 msgid ""
11904 " char **\n"
11905 " guestfs_mountpoints (guestfs_h *g);\n"
11906 "\n"
11907 msgstr ""
11908
11909 # type: textblock
11910 #: ../src/guestfs-actions.pod:4412
11911 msgid ""
11912 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11913 "devices.  This one returns a hash table (map) of device name to directory "
11914 "where the device is mounted."
11915 msgstr ""
11916
11917 # type: =head2
11918 #: ../src/guestfs-actions.pod:4424
11919 msgid "guestfs_mounts"
11920 msgstr ""
11921
11922 # type: verbatim
11923 #: ../src/guestfs-actions.pod:4426
11924 #, no-wrap
11925 msgid ""
11926 " char **\n"
11927 " guestfs_mounts (guestfs_h *g);\n"
11928 "\n"
11929 msgstr ""
11930
11931 # type: textblock
11932 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2975
11933 msgid ""
11934 "This returns the list of currently mounted filesystems.  It returns the list "
11935 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11936 msgstr ""
11937
11938 # type: textblock
11939 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2978
11940 msgid "Some internal mounts are not shown."
11941 msgstr ""
11942
11943 # type: textblock
11944 #: ../src/guestfs-actions.pod:4434
11945 msgid "See also: C<guestfs_mountpoints>"
11946 msgstr ""
11947
11948 # type: =head2
11949 #: ../src/guestfs-actions.pod:4442
11950 msgid "guestfs_mv"
11951 msgstr ""
11952
11953 # type: verbatim
11954 #: ../src/guestfs-actions.pod:4444
11955 #, no-wrap
11956 msgid ""
11957 " int\n"
11958 " guestfs_mv (guestfs_h *g,\n"
11959 "             const char *src,\n"
11960 "             const char *dest);\n"
11961 "\n"
11962 msgstr ""
11963
11964 # type: textblock
11965 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:2986
11966 msgid ""
11967 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11968 "destination filename or destination directory."
11969 msgstr ""
11970
11971 # type: =head2
11972 #: ../src/guestfs-actions.pod:4456
11973 msgid "guestfs_ntfs_3g_probe"
11974 msgstr ""
11975
11976 # type: verbatim
11977 #: ../src/guestfs-actions.pod:4458
11978 #, no-wrap
11979 msgid ""
11980 " int\n"
11981 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11982 "                        int rw,\n"
11983 "                        const char *device);\n"
11984 "\n"
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:2993
11989 msgid ""
11990 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11991 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11992 "write, and some cannot be mounted at all)."
11993 msgstr ""
11994
11995 # type: textblock
11996 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:2997
11997 msgid ""
11998 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11999 "can be mounted read-write.  Set it to false if you want to test if the "
12000 "volume can be mounted read-only."
12001 msgstr ""
12002
12003 # type: textblock
12004 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3001
12005 msgid ""
12006 "The return value is an integer which C<0> if the operation would succeed, or "
12007 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4477
12012 msgid "(Added in 1.0.43)"
12013 msgstr ""
12014
12015 # type: =head2
12016 #: ../src/guestfs-actions.pod:4479
12017 msgid "guestfs_ntfsresize"
12018 msgstr ""
12019
12020 # type: verbatim
12021 #: ../src/guestfs-actions.pod:4481
12022 #, no-wrap
12023 msgid ""
12024 " int\n"
12025 " guestfs_ntfsresize (guestfs_h *g,\n"
12026 "                     const char *device);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
12032 msgid ""
12033 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12034 "size of the underlying device.  See also L<ntfsresize(8)>."
12035 msgstr ""
12036
12037 # type: =head2
12038 #: ../src/guestfs-actions.pod:4493
12039 msgid "guestfs_ntfsresize_size"
12040 msgstr ""
12041
12042 # type: verbatim
12043 #: ../src/guestfs-actions.pod:4495
12044 #, no-wrap
12045 msgid ""
12046 " int\n"
12047 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12048 "                          const char *device,\n"
12049 "                          int64_t size);\n"
12050 "\n"
12051 msgstr ""
12052
12053 # type: textblock
12054 #: ../src/guestfs-actions.pod:4500
12055 msgid ""
12056 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12057 "to specify the new size (in bytes) explicitly."
12058 msgstr ""
12059
12060 # type: textblock
12061 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4941
12062 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5263
12063 msgid "(Added in 1.3.14)"
12064 msgstr ""
12065
12066 # type: =head2
12067 #: ../src/guestfs-actions.pod:4507
12068 msgid "guestfs_part_add"
12069 msgstr ""
12070
12071 # type: verbatim
12072 #: ../src/guestfs-actions.pod:4509
12073 #, no-wrap
12074 msgid ""
12075 " int\n"
12076 " guestfs_part_add (guestfs_h *g,\n"
12077 "                   const char *device,\n"
12078 "                   const char *prlogex,\n"
12079 "                   int64_t startsect,\n"
12080 "                   int64_t endsect);\n"
12081 "\n"
12082 msgstr ""
12083
12084 # type: textblock
12085 #: ../src/guestfs-actions.pod:4516
12086 msgid ""
12087 "This command adds a partition to C<device>.  If there is no partition table "
12088 "on the device, call C<guestfs_part_init> first."
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3027
12093 msgid ""
12094 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12095 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12096 "C<logical>) and C<e> (or C<extended>) partition types."
12097 msgstr ""
12098
12099 # type: textblock
12100 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3032
12101 msgid ""
12102 "C<startsect> and C<endsect> are the start and end of the partition in "
12103 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12104 "from the end of the disk (C<-1> is the last sector)."
12105 msgstr ""
12106
12107 # type: textblock
12108 #: ../src/guestfs-actions.pod:4528
12109 msgid ""
12110 "Creating a partition which covers the whole disk is not so easy.  Use "
12111 "C<guestfs_part_disk> to do that."
12112 msgstr ""
12113
12114 # type: textblock
12115 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4571
12116 #: ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4702
12117 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4759
12118 #: ../src/guestfs-actions.pod:4799
12119 msgid "(Added in 1.0.78)"
12120 msgstr ""
12121
12122 # type: =head2
12123 #: ../src/guestfs-actions.pod:4535
12124 msgid "guestfs_part_del"
12125 msgstr ""
12126
12127 # type: verbatim
12128 #: ../src/guestfs-actions.pod:4537
12129 #, no-wrap
12130 msgid ""
12131 " int\n"
12132 " guestfs_part_del (guestfs_h *g,\n"
12133 "                   const char *device,\n"
12134 "                   int partnum);\n"
12135 "\n"
12136 msgstr ""
12137
12138 # type: textblock
12139 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3043
12140 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12141 msgstr ""
12142
12143 # type: textblock
12144 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3045
12145 msgid ""
12146 "Note that in the case of MBR partitioning, deleting an extended partition "
12147 "also deletes any logical partitions it contains."
12148 msgstr ""
12149
12150 # type: =head2
12151 #: ../src/guestfs-actions.pod:4552
12152 msgid "guestfs_part_disk"
12153 msgstr ""
12154
12155 # type: verbatim
12156 #: ../src/guestfs-actions.pod:4554
12157 #, no-wrap
12158 msgid ""
12159 " int\n"
12160 " guestfs_part_disk (guestfs_h *g,\n"
12161 "                    const char *device,\n"
12162 "                    const char *parttype);\n"
12163 "\n"
12164 msgstr ""
12165
12166 # type: textblock
12167 #: ../src/guestfs-actions.pod:4559
12168 msgid ""
12169 "This command is simply a combination of C<guestfs_part_init> followed by "
12170 "C<guestfs_part_add> to create a single primary partition covering the whole "
12171 "disk."
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4563
12176 msgid ""
12177 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12178 "possible values are described in C<guestfs_part_init>."
12179 msgstr ""
12180
12181 # type: =head2
12182 #: ../src/guestfs-actions.pod:4573
12183 msgid "guestfs_part_get_bootable"
12184 msgstr ""
12185
12186 # type: verbatim
12187 #: ../src/guestfs-actions.pod:4575
12188 #, no-wrap
12189 msgid ""
12190 " int\n"
12191 " guestfs_part_get_bootable (guestfs_h *g,\n"
12192 "                            const char *device,\n"
12193 "                            int partnum);\n"
12194 "\n"
12195 msgstr ""
12196
12197 # type: textblock
12198 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3067
12199 msgid ""
12200 "This command returns true if the partition C<partnum> on C<device> has the "
12201 "bootable flag set."
12202 msgstr ""
12203
12204 # type: textblock
12205 #: ../src/guestfs-actions.pod:4583
12206 msgid "See also C<guestfs_part_set_bootable>."
12207 msgstr ""
12208
12209 # type: =head2
12210 #: ../src/guestfs-actions.pod:4589
12211 msgid "guestfs_part_get_mbr_id"
12212 msgstr ""
12213
12214 # type: verbatim
12215 #: ../src/guestfs-actions.pod:4591
12216 #, no-wrap
12217 msgid ""
12218 " int\n"
12219 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12220 "                          const char *device,\n"
12221 "                          int partnum);\n"
12222 "\n"
12223 msgstr ""
12224
12225 # type: textblock
12226 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3076
12227 msgid ""
12228 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12229 "partition C<partnum>."
12230 msgstr ""
12231
12232 # type: textblock
12233 #: ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4775
12234 msgid ""
12235 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12236 "undefined results for other partition table types (see "
12237 "C<guestfs_part_get_parttype>)."
12238 msgstr ""
12239
12240 # type: =head2
12241 #: ../src/guestfs-actions.pod:4607
12242 msgid "guestfs_part_get_parttype"
12243 msgstr ""
12244
12245 # type: verbatim
12246 #: ../src/guestfs-actions.pod:4609
12247 #, no-wrap
12248 msgid ""
12249 " char *\n"
12250 " guestfs_part_get_parttype (guestfs_h *g,\n"
12251 "                            const char *device);\n"
12252 "\n"
12253 msgstr ""
12254
12255 # type: textblock
12256 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3087
12257 msgid ""
12258 "This command examines the partition table on C<device> and returns the "
12259 "partition table type (format) being used."
12260 msgstr ""
12261
12262 # type: textblock
12263 #: ../src/guestfs-actions.pod:4616
12264 msgid ""
12265 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12266 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12267 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12268 msgstr ""
12269
12270 # type: =head2
12271 #: ../src/guestfs-actions.pod:4626
12272 msgid "guestfs_part_init"
12273 msgstr ""
12274
12275 # type: verbatim
12276 #: ../src/guestfs-actions.pod:4628
12277 #, no-wrap
12278 msgid ""
12279 " int\n"
12280 " guestfs_part_init (guestfs_h *g,\n"
12281 "                    const char *device,\n"
12282 "                    const char *parttype);\n"
12283 "\n"
12284 msgstr ""
12285
12286 # type: textblock
12287 #: ../src/guestfs-actions.pod:4633 ../fish/guestfish-actions.pod:3099
12288 msgid ""
12289 "This creates an empty partition table on C<device> of one of the partition "
12290 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12291 "(for large disks)."
12292 msgstr ""
12293
12294 # type: textblock
12295 #: ../src/guestfs-actions.pod:4637
12296 msgid ""
12297 "Initially there are no partitions.  Following this, you should call "
12298 "C<guestfs_part_add> for each partition required."
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3106
12303 msgid "Possible values for C<parttype> are:"
12304 msgstr ""
12305
12306 # type: =item
12307 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3110
12308 msgid "B<efi> | B<gpt>"
12309 msgstr ""
12310
12311 # type: textblock
12312 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3112
12313 msgid "Intel EFI / GPT partition table."
12314 msgstr ""
12315
12316 # type: textblock
12317 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3114
12318 msgid ""
12319 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12320 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12321 "the C<mbr> format."
12322 msgstr ""
12323
12324 # type: =item
12325 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3118
12326 msgid "B<mbr> | B<msdos>"
12327 msgstr ""
12328
12329 # type: textblock
12330 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3120
12331 msgid ""
12332 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12333 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12334 "TB.  For large disks we recommend using C<gpt>."
12335 msgstr ""
12336
12337 # type: textblock
12338 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3127
12339 msgid ""
12340 "Other partition table types that may work but are not supported include:"
12341 msgstr ""
12342
12343 # type: =item
12344 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3132
12345 msgid "B<aix>"
12346 msgstr ""
12347
12348 # type: textblock
12349 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3134
12350 msgid "AIX disk labels."
12351 msgstr ""
12352
12353 # type: =item
12354 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3136
12355 msgid "B<amiga> | B<rdb>"
12356 msgstr ""
12357
12358 # type: textblock
12359 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3138
12360 msgid "Amiga \"Rigid Disk Block\" format."
12361 msgstr ""
12362
12363 # type: =item
12364 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3140
12365 msgid "B<bsd>"
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3142
12370 msgid "BSD disk labels."
12371 msgstr ""
12372
12373 # type: =item
12374 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3144
12375 msgid "B<dasd>"
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3146
12380 msgid "DASD, used on IBM mainframes."
12381 msgstr ""
12382
12383 # type: =item
12384 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3148
12385 msgid "B<dvh>"
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3150
12390 msgid "MIPS/SGI volumes."
12391 msgstr ""
12392
12393 # type: =item
12394 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3152
12395 msgid "B<mac>"
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3154
12400 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12401 msgstr ""
12402
12403 # type: =item
12404 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3156
12405 msgid "B<pc98>"
12406 msgstr ""
12407
12408 # type: textblock
12409 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3158
12410 msgid "NEC PC-98 format, common in Japan apparently."
12411 msgstr ""
12412
12413 # type: =item
12414 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3160
12415 msgid "B<sun>"
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3162
12420 msgid "Sun disk labels."
12421 msgstr ""
12422
12423 # type: =head2
12424 #: ../src/guestfs-actions.pod:4704
12425 msgid "guestfs_part_list"
12426 msgstr ""
12427
12428 # type: verbatim
12429 #: ../src/guestfs-actions.pod:4706
12430 #, no-wrap
12431 msgid ""
12432 " struct guestfs_partition_list *\n"
12433 " guestfs_part_list (guestfs_h *g,\n"
12434 "                    const char *device);\n"
12435 "\n"
12436 msgstr ""
12437
12438 # type: textblock
12439 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3170
12440 msgid ""
12441 "This command parses the partition table on C<device> and returns the list of "
12442 "partitions found."
12443 msgstr ""
12444
12445 # type: textblock
12446 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3173
12447 msgid "The fields in the returned structure are:"
12448 msgstr ""
12449
12450 # type: =item
12451 #: ../src/guestfs-actions.pod:4717 ../fish/guestfish-actions.pod:3177
12452 msgid "B<part_num>"
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3179
12457 msgid "Partition number, counting from 1."
12458 msgstr ""
12459
12460 # type: =item
12461 #: ../src/guestfs-actions.pod:4721 ../fish/guestfish-actions.pod:3181
12462 msgid "B<part_start>"
12463 msgstr ""
12464
12465 # type: textblock
12466 #: ../src/guestfs-actions.pod:4723
12467 msgid ""
12468 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12469 "the device's sector size, see C<guestfs_blockdev_getss>."
12470 msgstr ""
12471
12472 # type: =item
12473 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3186
12474 msgid "B<part_end>"
12475 msgstr ""
12476
12477 # type: textblock
12478 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3188
12479 msgid "End of the partition in bytes."
12480 msgstr ""
12481
12482 # type: =item
12483 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3190
12484 msgid "B<part_size>"
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3192
12489 msgid "Size of the partition in bytes."
12490 msgstr ""
12491
12492 # type: textblock
12493 #: ../src/guestfs-actions.pod:4736
12494 msgid ""
12495 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12496 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12497 "use>."
12498 msgstr ""
12499
12500 # type: =head2
12501 #: ../src/guestfs-actions.pod:4742
12502 msgid "guestfs_part_set_bootable"
12503 msgstr ""
12504
12505 # type: verbatim
12506 #: ../src/guestfs-actions.pod:4744
12507 #, no-wrap
12508 msgid ""
12509 " int\n"
12510 " guestfs_part_set_bootable (guestfs_h *g,\n"
12511 "                            const char *device,\n"
12512 "                            int partnum,\n"
12513 "                            int bootable);\n"
12514 "\n"
12515 msgstr ""
12516
12517 # type: textblock
12518 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3200
12519 msgid ""
12520 "This sets the bootable flag on partition numbered C<partnum> on device "
12521 "C<device>.  Note that partitions are numbered from 1."
12522 msgstr ""
12523
12524 # type: textblock
12525 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3203
12526 msgid ""
12527 "The bootable flag is used by some operating systems (notably Windows) to "
12528 "determine which partition to boot from.  It is by no means universally "
12529 "recognized."
12530 msgstr ""
12531
12532 # type: =head2
12533 #: ../src/guestfs-actions.pod:4761
12534 msgid "guestfs_part_set_mbr_id"
12535 msgstr ""
12536
12537 # type: verbatim
12538 #: ../src/guestfs-actions.pod:4763
12539 #, no-wrap
12540 msgid ""
12541 " int\n"
12542 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12543 "                          const char *device,\n"
12544 "                          int partnum,\n"
12545 "                          int idbyte);\n"
12546 "\n"
12547 msgstr ""
12548
12549 # type: textblock
12550 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3211
12551 msgid ""
12552 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12553 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12554 "documentation are in fact hexadecimal numbers, but usually documented "
12555 "without any leading \"0x\" which might be confusing."
12556 msgstr ""
12557
12558 # type: =head2
12559 #: ../src/guestfs-actions.pod:4783
12560 msgid "guestfs_part_set_name"
12561 msgstr ""
12562
12563 # type: verbatim
12564 #: ../src/guestfs-actions.pod:4785
12565 #, no-wrap
12566 msgid ""
12567 " int\n"
12568 " guestfs_part_set_name (guestfs_h *g,\n"
12569 "                        const char *device,\n"
12570 "                        int partnum,\n"
12571 "                        const char *name);\n"
12572 "\n"
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3225
12577 msgid ""
12578 "This sets the partition name on partition numbered C<partnum> on device "
12579 "C<device>.  Note that partitions are numbered from 1."
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3228
12584 msgid ""
12585 "The partition name can only be set on certain types of partition table.  "
12586 "This works on C<gpt> but not on C<mbr> partitions."
12587 msgstr ""
12588
12589 # type: =head2
12590 #: ../src/guestfs-actions.pod:4801
12591 msgid "guestfs_part_to_dev"
12592 msgstr ""
12593
12594 # type: verbatim
12595 #: ../src/guestfs-actions.pod:4803
12596 #, no-wrap
12597 msgid ""
12598 " char *\n"
12599 " guestfs_part_to_dev (guestfs_h *g,\n"
12600 "                      const char *partition);\n"
12601 "\n"
12602 msgstr ""
12603
12604 # type: textblock
12605 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3235
12606 msgid ""
12607 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12608 "partition number, returning the device name (eg. \"/dev/sdb\")."
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:4811
12613 msgid ""
12614 "The named partition must exist, for example as a string returned from "
12615 "C<guestfs_list_partitions>."
12616 msgstr ""
12617
12618 # type: =head2
12619 #: ../src/guestfs-actions.pod:4819
12620 msgid "guestfs_ping_daemon"
12621 msgstr ""
12622
12623 # type: verbatim
12624 #: ../src/guestfs-actions.pod:4821
12625 #, no-wrap
12626 msgid ""
12627 " int\n"
12628 " guestfs_ping_daemon (guestfs_h *g);\n"
12629 "\n"
12630 msgstr ""
12631
12632 # type: textblock
12633 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3246
12634 msgid ""
12635 "This is a test probe into the guestfs daemon running inside the qemu "
12636 "subprocess.  Calling this function checks that the daemon responds to the "
12637 "ping message, without affecting the daemon or attached block device(s) in "
12638 "any other way."
12639 msgstr ""
12640
12641 # type: =head2
12642 #: ../src/guestfs-actions.pod:4833
12643 msgid "guestfs_pread"
12644 msgstr ""
12645
12646 # type: verbatim
12647 #: ../src/guestfs-actions.pod:4835
12648 #, no-wrap
12649 msgid ""
12650 " char *\n"
12651 " guestfs_pread (guestfs_h *g,\n"
12652 "                const char *path,\n"
12653 "                int count,\n"
12654 "                int64_t offset,\n"
12655 "                size_t *size_r);\n"
12656 "\n"
12657 msgstr ""
12658
12659 # type: textblock
12660 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3255
12661 msgid ""
12662 "This command lets you read part of a file.  It reads C<count> bytes of the "
12663 "file, starting at C<offset>, from file C<path>."
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4871
12668 #: ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12669 msgid ""
12670 "This may read fewer bytes than requested.  For further details see the "
12671 "L<pread(2)> system call."
12672 msgstr ""
12673
12674 # type: textblock
12675 #: ../src/guestfs-actions.pod:4848
12676 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12677 msgstr ""
12678
12679 # type: =head2
12680 #: ../src/guestfs-actions.pod:4859
12681 msgid "guestfs_pread_device"
12682 msgstr ""
12683
12684 # type: verbatim
12685 #: ../src/guestfs-actions.pod:4861
12686 #, no-wrap
12687 msgid ""
12688 " char *\n"
12689 " guestfs_pread_device (guestfs_h *g,\n"
12690 "                       const char *device,\n"
12691 "                       int count,\n"
12692 "                       int64_t offset,\n"
12693 "                       size_t *size_r);\n"
12694 "\n"
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3270
12699 msgid ""
12700 "This command lets you read part of a file.  It reads C<count> bytes of "
12701 "C<device>, starting at C<offset>."
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:4874
12706 msgid "See also C<guestfs_pread>."
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:4883
12711 msgid "(Added in 1.5.21)"
12712 msgstr ""
12713
12714 # type: =head2
12715 #: ../src/guestfs-actions.pod:4885
12716 msgid "guestfs_pvcreate"
12717 msgstr ""
12718
12719 # type: verbatim
12720 #: ../src/guestfs-actions.pod:4887
12721 #, no-wrap
12722 msgid ""
12723 " int\n"
12724 " guestfs_pvcreate (guestfs_h *g,\n"
12725 "                   const char *device);\n"
12726 "\n"
12727 msgstr ""
12728
12729 # type: textblock
12730 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3285
12731 msgid ""
12732 "This creates an LVM physical volume on the named C<device>, where C<device> "
12733 "should usually be a partition name such as C</dev/sda1>."
12734 msgstr ""
12735
12736 # type: =head2
12737 #: ../src/guestfs-actions.pod:4899
12738 msgid "guestfs_pvremove"
12739 msgstr ""
12740
12741 # type: verbatim
12742 #: ../src/guestfs-actions.pod:4901
12743 #, no-wrap
12744 msgid ""
12745 " int\n"
12746 " guestfs_pvremove (guestfs_h *g,\n"
12747 "                   const char *device);\n"
12748 "\n"
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
12753 msgid ""
12754 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12755 "it."
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3296
12760 msgid ""
12761 "The implementation uses the C<pvremove> command which refuses to wipe "
12762 "physical volumes that contain any volume groups, so you have to remove those "
12763 "first."
12764 msgstr ""
12765
12766 # type: =head2
12767 #: ../src/guestfs-actions.pod:4916
12768 msgid "guestfs_pvresize"
12769 msgstr ""
12770
12771 # type: verbatim
12772 #: ../src/guestfs-actions.pod:4918
12773 #, no-wrap
12774 msgid ""
12775 " int\n"
12776 " guestfs_pvresize (guestfs_h *g,\n"
12777 "                   const char *device);\n"
12778 "\n"
12779 msgstr ""
12780
12781 # type: textblock
12782 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3304
12783 msgid ""
12784 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12785 "the new size of the underlying device."
12786 msgstr ""
12787
12788 # type: =head2
12789 #: ../src/guestfs-actions.pod:4929
12790 msgid "guestfs_pvresize_size"
12791 msgstr ""
12792
12793 # type: verbatim
12794 #: ../src/guestfs-actions.pod:4931
12795 #, no-wrap
12796 msgid ""
12797 " int\n"
12798 " guestfs_pvresize_size (guestfs_h *g,\n"
12799 "                        const char *device,\n"
12800 "                        int64_t size);\n"
12801 "\n"
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4936
12806 msgid ""
12807 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12808 "specify the new size (in bytes) explicitly."
12809 msgstr ""
12810
12811 # type: =head2
12812 #: ../src/guestfs-actions.pod:4943
12813 msgid "guestfs_pvs"
12814 msgstr ""
12815
12816 # type: verbatim
12817 #: ../src/guestfs-actions.pod:4945
12818 #, no-wrap
12819 msgid ""
12820 " char **\n"
12821 " guestfs_pvs (guestfs_h *g);\n"
12822 "\n"
12823 msgstr ""
12824
12825 # type: textblock
12826 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3318
12827 msgid ""
12828 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12829 "(8)> command."
12830 msgstr ""
12831
12832 # type: textblock
12833 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3321
12834 msgid ""
12835 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12836 "sda2>)."
12837 msgstr ""
12838
12839 # type: textblock
12840 #: ../src/guestfs-actions.pod:4954
12841 msgid "See also C<guestfs_pvs_full>."
12842 msgstr ""
12843
12844 # type: =head2
12845 #: ../src/guestfs-actions.pod:4962
12846 msgid "guestfs_pvs_full"
12847 msgstr ""
12848
12849 # type: verbatim
12850 #: ../src/guestfs-actions.pod:4964
12851 #, no-wrap
12852 msgid ""
12853 " struct guestfs_lvm_pv_list *\n"
12854 " guestfs_pvs_full (guestfs_h *g);\n"
12855 "\n"
12856 msgstr ""
12857
12858 # type: textblock
12859 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3330
12860 msgid ""
12861 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12862 "(8)> command.  The \"full\" version includes all fields."
12863 msgstr ""
12864
12865 # type: textblock
12866 #: ../src/guestfs-actions.pod:4970
12867 msgid ""
12868 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12869 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12870 msgstr ""
12871
12872 # type: =head2
12873 #: ../src/guestfs-actions.pod:4976
12874 msgid "guestfs_pvuuid"
12875 msgstr ""
12876
12877 # type: verbatim
12878 #: ../src/guestfs-actions.pod:4978
12879 #, no-wrap
12880 msgid ""
12881 " char *\n"
12882 " guestfs_pvuuid (guestfs_h *g,\n"
12883 "                 const char *device);\n"
12884 "\n"
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3337
12889 msgid "This command returns the UUID of the LVM PV C<device>."
12890 msgstr ""
12891
12892 # type: =head2
12893 #: ../src/guestfs-actions.pod:4989
12894 msgid "guestfs_pwrite"
12895 msgstr ""
12896
12897 # type: verbatim
12898 #: ../src/guestfs-actions.pod:4991
12899 #, no-wrap
12900 msgid ""
12901 " int\n"
12902 " guestfs_pwrite (guestfs_h *g,\n"
12903 "                 const char *path,\n"
12904 "                 const char *content,\n"
12905 "                 size_t content_size,\n"
12906 "                 int64_t offset);\n"
12907 "\n"
12908 msgstr ""
12909
12910 # type: textblock
12911 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3343
12912 msgid ""
12913 "This command writes to part of a file.  It writes the data buffer C<content> "
12914 "to the file C<path> starting at offset C<offset>."
12915 msgstr ""
12916
12917 # type: textblock
12918 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3346
12919 msgid ""
12920 "This command implements the L<pwrite(2)> system call, and like that system "
12921 "call it may not write the full data requested.  The return value is the "
12922 "number of bytes that were actually written to the file.  This could even be "
12923 "0, although short writes are unlikely for regular files in ordinary "
12924 "circumstances."
12925 msgstr ""
12926
12927 # type: textblock
12928 #: ../src/guestfs-actions.pod:5007
12929 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12930 msgstr ""
12931
12932 # type: =head2
12933 #: ../src/guestfs-actions.pod:5016
12934 msgid "guestfs_pwrite_device"
12935 msgstr ""
12936
12937 # type: verbatim
12938 #: ../src/guestfs-actions.pod:5018
12939 #, no-wrap
12940 msgid ""
12941 " int\n"
12942 " guestfs_pwrite_device (guestfs_h *g,\n"
12943 "                        const char *device,\n"
12944 "                        const char *content,\n"
12945 "                        size_t content_size,\n"
12946 "                        int64_t offset);\n"
12947 "\n"
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3361
12952 msgid ""
12953 "This command writes to part of a device.  It writes the data buffer "
12954 "C<content> to C<device> starting at offset C<offset>."
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3364
12959 msgid ""
12960 "This command implements the L<pwrite(2)> system call, and like that system "
12961 "call it may not write the full data requested (although short writes to disk "
12962 "devices and partitions are probably impossible with standard Linux kernels)."
12963 msgstr ""
12964
12965 # type: textblock
12966 #: ../src/guestfs-actions.pod:5033
12967 msgid "See also C<guestfs_pwrite>."
12968 msgstr ""
12969
12970 # type: textblock
12971 #: ../src/guestfs-actions.pod:5040
12972 msgid "(Added in 1.5.20)"
12973 msgstr ""
12974
12975 # type: =head2
12976 #: ../src/guestfs-actions.pod:5042
12977 msgid "guestfs_read_file"
12978 msgstr ""
12979
12980 # type: verbatim
12981 #: ../src/guestfs-actions.pod:5044
12982 #, no-wrap
12983 msgid ""
12984 " char *\n"
12985 " guestfs_read_file (guestfs_h *g,\n"
12986 "                    const char *path,\n"
12987 "                    size_t *size_r);\n"
12988 "\n"
12989 msgstr ""
12990
12991 # type: textblock
12992 #: ../src/guestfs-actions.pod:5049 ../fish/guestfish-actions.pod:3378
12993 msgid "This calls returns the contents of the file C<path> as a buffer."
12994 msgstr ""
12995
12996 # type: textblock
12997 #: ../src/guestfs-actions.pod:5052
12998 msgid ""
12999 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13000 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13001 "function is limited in the total size of file that can be handled."
13002 msgstr ""
13003
13004 # type: textblock
13005 #: ../src/guestfs-actions.pod:5064
13006 msgid "(Added in 1.0.63)"
13007 msgstr ""
13008
13009 # type: =head2
13010 #: ../src/guestfs-actions.pod:5066
13011 msgid "guestfs_read_lines"
13012 msgstr ""
13013
13014 # type: verbatim
13015 #: ../src/guestfs-actions.pod:5068
13016 #, no-wrap
13017 msgid ""
13018 " char **\n"
13019 " guestfs_read_lines (guestfs_h *g,\n"
13020 "                     const char *path);\n"
13021 "\n"
13022 msgstr ""
13023
13024 # type: textblock
13025 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3395
13026 msgid ""
13027 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13028 "C<CRLF> character sequences are I<not> returned."
13029 msgstr ""
13030
13031 # type: textblock
13032 #: ../src/guestfs-actions.pod:5077
13033 msgid ""
13034 "Note that this function cannot correctly handle binary files (specifically, "
13035 "files containing C<\\0> character which is treated as end of line).  For "
13036 "those you need to use the C<guestfs_read_file> function which has a more "
13037 "complex interface."
13038 msgstr ""
13039
13040 # type: =head2
13041 #: ../src/guestfs-actions.pod:5088
13042 msgid "guestfs_readdir"
13043 msgstr ""
13044
13045 # type: verbatim
13046 #: ../src/guestfs-actions.pod:5090
13047 #, no-wrap
13048 msgid ""
13049 " struct guestfs_dirent_list *\n"
13050 " guestfs_readdir (guestfs_h *g,\n"
13051 "                  const char *dir);\n"
13052 "\n"
13053 msgstr ""
13054
13055 # type: textblock
13056 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3407
13057 msgid "This returns the list of directory entries in directory C<dir>."
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3409
13062 msgid ""
13063 "All entries in the directory are returned, including C<.> and C<..>.  The "
13064 "entries are I<not> sorted, but returned in the same order as the underlying "
13065 "filesystem."
13066 msgstr ""
13067
13068 # type: textblock
13069 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3413
13070 msgid ""
13071 "Also this call returns basic file type information about each file.  The "
13072 "C<ftyp> field will contain one of the following characters:"
13073 msgstr ""
13074
13075 # type: =item
13076 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3418
13077 msgid "'b'"
13078 msgstr ""
13079
13080 # type: textblock
13081 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3420
13082 msgid "Block special"
13083 msgstr ""
13084
13085 # type: =item
13086 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3422
13087 msgid "'c'"
13088 msgstr ""
13089
13090 # type: textblock
13091 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3424
13092 msgid "Char special"
13093 msgstr ""
13094
13095 # type: =item
13096 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3426
13097 msgid "'d'"
13098 msgstr ""
13099
13100 # type: textblock
13101 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3428
13102 msgid "Directory"
13103 msgstr ""
13104
13105 # type: =item
13106 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3430
13107 msgid "'f'"
13108 msgstr ""
13109
13110 # type: textblock
13111 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3432
13112 msgid "FIFO (named pipe)"
13113 msgstr ""
13114
13115 # type: =item
13116 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3434
13117 msgid "'l'"
13118 msgstr ""
13119
13120 # type: textblock
13121 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3436
13122 msgid "Symbolic link"
13123 msgstr ""
13124
13125 # type: =item
13126 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3438
13127 msgid "'r'"
13128 msgstr ""
13129
13130 # type: textblock
13131 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3440
13132 msgid "Regular file"
13133 msgstr ""
13134
13135 # type: =item
13136 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3442
13137 msgid "'s'"
13138 msgstr ""
13139
13140 # type: textblock
13141 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3444
13142 msgid "Socket"
13143 msgstr ""
13144
13145 # type: =item
13146 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3446
13147 msgid "'u'"
13148 msgstr ""
13149
13150 # type: textblock
13151 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3448
13152 msgid "Unknown file type"
13153 msgstr ""
13154
13155 # type: =item
13156 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3450
13157 msgid "'?'"
13158 msgstr ""
13159
13160 # type: textblock
13161 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3452
13162 msgid ""
13163 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5144
13168 msgid ""
13169 "This function is primarily intended for use by programs.  To get a simple "
13170 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13171 "consumption, use C<guestfs_ll>."
13172 msgstr ""
13173
13174 # type: textblock
13175 #: ../src/guestfs-actions.pod:5148
13176 msgid ""
13177 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13178 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13179 msgstr ""
13180
13181 # type: =head2
13182 #: ../src/guestfs-actions.pod:5154
13183 msgid "guestfs_readlink"
13184 msgstr ""
13185
13186 # type: verbatim
13187 #: ../src/guestfs-actions.pod:5156
13188 #, no-wrap
13189 msgid ""
13190 " char *\n"
13191 " guestfs_readlink (guestfs_h *g,\n"
13192 "                   const char *path);\n"
13193 "\n"
13194 msgstr ""
13195
13196 # type: textblock
13197 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3465
13198 msgid "This command reads the target of a symbolic link."
13199 msgstr ""
13200
13201 # type: =head2
13202 #: ../src/guestfs-actions.pod:5167
13203 msgid "guestfs_readlinklist"
13204 msgstr ""
13205
13206 # type: verbatim
13207 #: ../src/guestfs-actions.pod:5169
13208 #, no-wrap
13209 msgid ""
13210 " char **\n"
13211 " guestfs_readlinklist (guestfs_h *g,\n"
13212 "                       const char *path,\n"
13213 "                       char *const *names);\n"
13214 "\n"
13215 msgstr ""
13216
13217 # type: textblock
13218 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3471
13219 msgid ""
13220 "This call allows you to do a C<readlink> operation on multiple files, where "
13221 "all files are in the directory C<path>.  C<names> is the list of files from "
13222 "this directory."
13223 msgstr ""
13224
13225 # type: textblock
13226 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3475
13227 msgid ""
13228 "On return you get a list of strings, with a one-to-one correspondence to the "
13229 "C<names> list.  Each string is the value of the symbolic link."
13230 msgstr ""
13231
13232 # type: textblock
13233 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3479
13234 msgid ""
13235 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13236 "result string is the empty string C<\"\">.  However the whole operation is "
13237 "completed even if there were C<readlink(2)> errors, and so you can call this "
13238 "function with names where you don't know if they are symbolic links already "
13239 "(albeit slightly less efficient)."
13240 msgstr ""
13241
13242 # type: textblock
13243 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3486
13244 msgid ""
13245 "This call is intended for programs that want to efficiently list a directory "
13246 "contents without making many round-trips.  Very long directory listings "
13247 "might cause the protocol message size to be exceeded, causing this call to "
13248 "fail.  The caller must split up such requests into smaller groups of names."
13249 msgstr ""
13250
13251 # type: =head2
13252 #: ../src/guestfs-actions.pod:5202
13253 msgid "guestfs_realpath"
13254 msgstr ""
13255
13256 # type: verbatim
13257 #: ../src/guestfs-actions.pod:5204
13258 #, no-wrap
13259 msgid ""
13260 " char *\n"
13261 " guestfs_realpath (guestfs_h *g,\n"
13262 "                   const char *path);\n"
13263 "\n"
13264 msgstr ""
13265
13266 # type: textblock
13267 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3497
13268 msgid ""
13269 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13270 "has no C<.>, C<..> or symbolic link path elements."
13271 msgstr ""
13272
13273 # type: =head2
13274 #: ../src/guestfs-actions.pod:5216
13275 msgid "guestfs_removexattr"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #: ../src/guestfs-actions.pod:5218
13280 #, no-wrap
13281 msgid ""
13282 " int\n"
13283 " guestfs_removexattr (guestfs_h *g,\n"
13284 "                      const char *xattr,\n"
13285 "                      const char *path);\n"
13286 "\n"
13287 msgstr ""
13288
13289 # type: textblock
13290 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
13291 msgid ""
13292 "This call removes the extended attribute named C<xattr> of the file C<path>."
13293 msgstr ""
13294
13295 # type: textblock
13296 #: ../src/guestfs-actions.pod:5226
13297 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13298 msgstr ""
13299
13300 # type: =head2
13301 #: ../src/guestfs-actions.pod:5232
13302 msgid "guestfs_resize2fs"
13303 msgstr ""
13304
13305 # type: verbatim
13306 #: ../src/guestfs-actions.pod:5234
13307 #, no-wrap
13308 msgid ""
13309 " int\n"
13310 " guestfs_resize2fs (guestfs_h *g,\n"
13311 "                    const char *device);\n"
13312 "\n"
13313 msgstr ""
13314
13315 # type: textblock
13316 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3513
13317 msgid ""
13318 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13319 "underlying device."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5241
13324 msgid ""
13325 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13326 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13327 "sometimes gives an error about this and sometimes not.  In any case, it is "
13328 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13329 msgstr ""
13330
13331 # type: =head2
13332 #: ../src/guestfs-actions.pod:5251
13333 msgid "guestfs_resize2fs_size"
13334 msgstr ""
13335
13336 # type: verbatim
13337 #: ../src/guestfs-actions.pod:5253
13338 #, no-wrap
13339 msgid ""
13340 " int\n"
13341 " guestfs_resize2fs_size (guestfs_h *g,\n"
13342 "                         const char *device,\n"
13343 "                         int64_t size);\n"
13344 "\n"
13345 msgstr ""
13346
13347 # type: textblock
13348 #: ../src/guestfs-actions.pod:5258
13349 msgid ""
13350 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13351 "to specify the new size (in bytes) explicitly."
13352 msgstr ""
13353
13354 # type: =head2
13355 #: ../src/guestfs-actions.pod:5265
13356 msgid "guestfs_rm"
13357 msgstr ""
13358
13359 # type: verbatim
13360 #: ../src/guestfs-actions.pod:5267
13361 #, no-wrap
13362 msgid ""
13363 " int\n"
13364 " guestfs_rm (guestfs_h *g,\n"
13365 "             const char *path);\n"
13366 "\n"
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3533
13371 msgid "Remove the single file C<path>."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5277
13376 msgid "guestfs_rm_rf"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5279
13381 #, no-wrap
13382 msgid ""
13383 " int\n"
13384 " guestfs_rm_rf (guestfs_h *g,\n"
13385 "                const char *path);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3539
13391 msgid ""
13392 "Remove the file or directory C<path>, recursively removing the contents if "
13393 "its a directory.  This is like the C<rm -rf> shell command."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5291
13398 msgid "guestfs_rmdir"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5293
13403 #, no-wrap
13404 msgid ""
13405 " int\n"
13406 " guestfs_rmdir (guestfs_h *g,\n"
13407 "                const char *path);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3547
13413 msgid "Remove the single directory C<path>."
13414 msgstr ""
13415
13416 # type: =head2
13417 #: ../src/guestfs-actions.pod:5303
13418 msgid "guestfs_rmmountpoint"
13419 msgstr ""
13420
13421 # type: verbatim
13422 #: ../src/guestfs-actions.pod:5305
13423 #, no-wrap
13424 msgid ""
13425 " int\n"
13426 " guestfs_rmmountpoint (guestfs_h *g,\n"
13427 "                       const char *exemptpath);\n"
13428 "\n"
13429 msgstr ""
13430
13431 # type: textblock
13432 #: ../src/guestfs-actions.pod:5309
13433 msgid ""
13434 "This calls removes a mountpoint that was previously created with "
13435 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13436 msgstr ""
13437
13438 # type: =head2
13439 #: ../src/guestfs-actions.pod:5317
13440 msgid "guestfs_scrub_device"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #: ../src/guestfs-actions.pod:5319
13445 #, no-wrap
13446 msgid ""
13447 " int\n"
13448 " guestfs_scrub_device (guestfs_h *g,\n"
13449 "                       const char *device);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3561
13455 msgid ""
13456 "This command writes patterns over C<device> to make data retrieval more "
13457 "difficult."
13458 msgstr ""
13459
13460 # type: textblock
13461 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5347
13462 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3564
13463 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13464 msgid ""
13465 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13466 "more details."
13467 msgstr ""
13468
13469 # type: textblock
13470 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5352
13471 #: ../src/guestfs-actions.pod:5371
13472 msgid "(Added in 1.0.52)"
13473 msgstr ""
13474
13475 # type: =head2
13476 #: ../src/guestfs-actions.pod:5336
13477 msgid "guestfs_scrub_file"
13478 msgstr ""
13479
13480 # type: verbatim
13481 #: ../src/guestfs-actions.pod:5338
13482 #, no-wrap
13483 msgid ""
13484 " int\n"
13485 " guestfs_scrub_file (guestfs_h *g,\n"
13486 "                     const char *file);\n"
13487 "\n"
13488 msgstr ""
13489
13490 # type: textblock
13491 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3574
13492 msgid ""
13493 "This command writes patterns over a file to make data retrieval more "
13494 "difficult."
13495 msgstr ""
13496
13497 # type: textblock
13498 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3577
13499 msgid "The file is I<removed> after scrubbing."
13500 msgstr ""
13501
13502 # type: =head2
13503 #: ../src/guestfs-actions.pod:5354
13504 msgid "guestfs_scrub_freespace"
13505 msgstr ""
13506
13507 # type: verbatim
13508 #: ../src/guestfs-actions.pod:5356
13509 #, no-wrap
13510 msgid ""
13511 " int\n"
13512 " guestfs_scrub_freespace (guestfs_h *g,\n"
13513 "                          const char *dir);\n"
13514 "\n"
13515 msgstr ""
13516
13517 # type: textblock
13518 #: ../src/guestfs-actions.pod:5360
13519 msgid ""
13520 "This command creates the directory C<dir> and then fills it with files until "
13521 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13522 "and deletes them.  The intention is to scrub any free space on the partition "
13523 "containing C<dir>."
13524 msgstr ""
13525
13526 # type: =head2
13527 #: ../src/guestfs-actions.pod:5373
13528 msgid "guestfs_set_append"
13529 msgstr ""
13530
13531 # type: verbatim
13532 #: ../src/guestfs-actions.pod:5375
13533 #, no-wrap
13534 msgid ""
13535 " int\n"
13536 " guestfs_set_append (guestfs_h *g,\n"
13537 "                     const char *append);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3601
13543 msgid ""
13544 "This function is used to add additional options to the guest kernel command "
13545 "line."
13546 msgstr ""
13547
13548 # type: textblock
13549 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3604
13550 msgid ""
13551 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13552 "environment variable."
13553 msgstr ""
13554
13555 # type: textblock
13556 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3607
13557 msgid ""
13558 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13559 "(libguestfs always adds a few of its own)."
13560 msgstr ""
13561
13562 # type: =head2
13563 #: ../src/guestfs-actions.pod:5392
13564 msgid "guestfs_set_autosync"
13565 msgstr ""
13566
13567 # type: verbatim
13568 #: ../src/guestfs-actions.pod:5394
13569 #, no-wrap
13570 msgid ""
13571 " int\n"
13572 " guestfs_set_autosync (guestfs_h *g,\n"
13573 "                       int autosync);\n"
13574 "\n"
13575 msgstr ""
13576
13577 # type: textblock
13578 #: ../src/guestfs-actions.pod:5398
13579 msgid ""
13580 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13581 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13582 "the handle is closed (also if the program exits without closing handles)."
13583 msgstr ""
13584
13585 # type: textblock
13586 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3621
13587 msgid ""
13588 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13589 "disabled by default)."
13590 msgstr ""
13591
13592 # type: =head2
13593 #: ../src/guestfs-actions.pod:5410
13594 msgid "guestfs_set_direct"
13595 msgstr ""
13596
13597 # type: verbatim
13598 #: ../src/guestfs-actions.pod:5412
13599 #, no-wrap
13600 msgid ""
13601 " int\n"
13602 " guestfs_set_direct (guestfs_h *g,\n"
13603 "                     int direct);\n"
13604 "\n"
13605 msgstr ""
13606
13607 # type: textblock
13608 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3630
13609 msgid ""
13610 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13611 "passed directly through to the appliance once it is launched."
13612 msgstr ""
13613
13614 # type: textblock
13615 #: ../src/guestfs-actions.pod:5420
13616 msgid ""
13617 "One consequence of this is that log messages aren't caught by the library "
13618 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13619 "stdout."
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3638
13624 msgid "You probably don't want to use this unless you know what you are doing."
13625 msgstr ""
13626
13627 # type: textblock
13628 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3641
13629 msgid "The default is disabled."
13630 msgstr ""
13631
13632 # type: =head2
13633 #: ../src/guestfs-actions.pod:5433
13634 msgid "guestfs_set_e2label"
13635 msgstr ""
13636
13637 # type: verbatim
13638 #: ../src/guestfs-actions.pod:5435
13639 #, no-wrap
13640 msgid ""
13641 " int\n"
13642 " guestfs_set_e2label (guestfs_h *g,\n"
13643 "                      const char *device,\n"
13644 "                      const char *label);\n"
13645 "\n"
13646 msgstr ""
13647
13648 # type: textblock
13649 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3647
13650 msgid ""
13651 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13652 "C<label>.  Filesystem labels are limited to 16 characters."
13653 msgstr ""
13654
13655 # type: textblock
13656 #: ../src/guestfs-actions.pod:5444
13657 msgid ""
13658 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13659 "the existing label on a filesystem."
13660 msgstr ""
13661
13662 # type: =head2
13663 #: ../src/guestfs-actions.pod:5451
13664 msgid "guestfs_set_e2uuid"
13665 msgstr ""
13666
13667 # type: verbatim
13668 #: ../src/guestfs-actions.pod:5453
13669 #, no-wrap
13670 msgid ""
13671 " int\n"
13672 " guestfs_set_e2uuid (guestfs_h *g,\n"
13673 "                     const char *device,\n"
13674 "                     const char *uuid);\n"
13675 "\n"
13676 msgstr ""
13677
13678 # type: textblock
13679 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3658
13680 msgid ""
13681 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13682 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13683 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5463
13688 msgid ""
13689 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13690 "the existing UUID of a filesystem."
13691 msgstr ""
13692
13693 # type: =head2
13694 #: ../src/guestfs-actions.pod:5470
13695 msgid "guestfs_set_memsize"
13696 msgstr ""
13697
13698 # type: verbatim
13699 #: ../src/guestfs-actions.pod:5472
13700 #, no-wrap
13701 msgid ""
13702 " int\n"
13703 " guestfs_set_memsize (guestfs_h *g,\n"
13704 "                      int memsize);\n"
13705 "\n"
13706 msgstr ""
13707
13708 # type: textblock
13709 #: ../src/guestfs-actions.pod:5476
13710 msgid ""
13711 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13712 "This only has any effect if called before C<guestfs_launch>."
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3676
13717 msgid ""
13718 "You can also change this by setting the environment variable "
13719 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13720 msgstr ""
13721
13722 # type: =head2
13723 #: ../src/guestfs-actions.pod:5491
13724 msgid "guestfs_set_network"
13725 msgstr ""
13726
13727 # type: verbatim
13728 #: ../src/guestfs-actions.pod:5493
13729 #, no-wrap
13730 msgid ""
13731 " int\n"
13732 " guestfs_set_network (guestfs_h *g,\n"
13733 "                      int network);\n"
13734 "\n"
13735 msgstr ""
13736
13737 # type: textblock
13738 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3689
13739 msgid ""
13740 "If C<network> is true, then the network is enabled in the libguestfs "
13741 "appliance.  The default is false."
13742 msgstr ""
13743
13744 # type: textblock
13745 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
13746 msgid ""
13747 "This affects whether commands are able to access the network (see L<guestfs"
13748 "(3)/RUNNING COMMANDS>)."
13749 msgstr ""
13750
13751 # type: textblock
13752 #: ../src/guestfs-actions.pod:5503
13753 msgid ""
13754 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13755 "effect."
13756 msgstr ""
13757
13758 # type: =head2
13759 #: ../src/guestfs-actions.pod:5510
13760 msgid "guestfs_set_path"
13761 msgstr ""
13762
13763 # type: verbatim
13764 #: ../src/guestfs-actions.pod:5512
13765 #, no-wrap
13766 msgid ""
13767 " int\n"
13768 " guestfs_set_path (guestfs_h *g,\n"
13769 "                   const char *searchpath);\n"
13770 "\n"
13771 msgstr ""
13772
13773 # type: textblock
13774 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3704
13775 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13776 msgstr ""
13777
13778 # type: textblock
13779 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3706
13780 msgid ""
13781 "The default is C<$libdir/guestfs> unless overridden by setting "
13782 "C<LIBGUESTFS_PATH> environment variable."
13783 msgstr ""
13784
13785 # type: textblock
13786 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3709
13787 msgid "Setting C<path> to C<NULL> restores the default path."
13788 msgstr ""
13789
13790 # type: =head2
13791 #: ../src/guestfs-actions.pod:5527
13792 msgid "guestfs_set_qemu"
13793 msgstr ""
13794
13795 # type: verbatim
13796 #: ../src/guestfs-actions.pod:5529
13797 #, no-wrap
13798 msgid ""
13799 " int\n"
13800 " guestfs_set_qemu (guestfs_h *g,\n"
13801 "                   const char *qemu);\n"
13802 "\n"
13803 msgstr ""
13804
13805 # type: textblock
13806 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3717
13807 msgid "Set the qemu binary that we will use."
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3719
13812 msgid ""
13813 "The default is chosen when the library was compiled by the configure script."
13814 msgstr ""
13815
13816 # type: textblock
13817 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3722
13818 msgid ""
13819 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13820 "variable."
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3725
13825 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3727
13830 msgid ""
13831 "Note that you should call this function as early as possible after creating "
13832 "the handle.  This is because some pre-launch operations depend on testing "
13833 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13834 "don't retest features, and so you might see inconsistent results.  Using the "
13835 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13836 "the qemu binary at the same time as the handle is created."
13837 msgstr ""
13838
13839 # type: =head2
13840 #: ../src/guestfs-actions.pod:5555
13841 msgid "guestfs_set_recovery_proc"
13842 msgstr ""
13843
13844 # type: verbatim
13845 #: ../src/guestfs-actions.pod:5557
13846 #, no-wrap
13847 msgid ""
13848 " int\n"
13849 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13850 "                            int recoveryproc);\n"
13851 "\n"
13852 msgstr ""
13853
13854 # type: textblock
13855 #: ../src/guestfs-actions.pod:5561
13856 msgid ""
13857 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13858 "not create a recovery process.  The purpose of the recovery process is to "
13859 "stop runaway qemu processes in the case where the main program aborts "
13860 "abruptly."
13861 msgstr ""
13862
13863 # type: textblock
13864 #: ../src/guestfs-actions.pod:5566
13865 msgid ""
13866 "This only has any effect if called before C<guestfs_launch>, and the default "
13867 "is true."
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3749
13872 msgid ""
13873 "About the only time when you would want to disable this is if the main "
13874 "process will fork itself into the background (\"daemonize\" itself).  In "
13875 "this case the recovery process thinks that the main program has disappeared "
13876 "and so kills qemu, which is not very helpful."
13877 msgstr ""
13878
13879 # type: =head2
13880 #: ../src/guestfs-actions.pod:5579
13881 msgid "guestfs_set_selinux"
13882 msgstr ""
13883
13884 # type: verbatim
13885 #: ../src/guestfs-actions.pod:5581
13886 #, no-wrap
13887 msgid ""
13888 " int\n"
13889 " guestfs_set_selinux (guestfs_h *g,\n"
13890 "                      int selinux);\n"
13891 "\n"
13892 msgstr ""
13893
13894 # type: textblock
13895 #: ../src/guestfs-actions.pod:5585 ../fish/guestfish-actions.pod:3761
13896 msgid ""
13897 "This sets the selinux flag that is passed to the appliance at boot time.  "
13898 "The default is C<selinux=0> (disabled)."
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3764
13903 msgid ""
13904 "Note that if SELinux is enabled, it is always in Permissive mode "
13905 "(C<enforcing=0>)."
13906 msgstr ""
13907
13908 # type: =head2
13909 #: ../src/guestfs-actions.pod:5598
13910 msgid "guestfs_set_trace"
13911 msgstr ""
13912
13913 # type: verbatim
13914 #: ../src/guestfs-actions.pod:5600
13915 #, no-wrap
13916 msgid ""
13917 " int\n"
13918 " guestfs_set_trace (guestfs_h *g,\n"
13919 "                    int trace);\n"
13920 "\n"
13921 msgstr ""
13922
13923 # type: textblock
13924 #: ../src/guestfs-actions.pod:5604 ../fish/guestfish-actions.pod:3776
13925 msgid ""
13926 "If the command trace flag is set to 1, then commands are printed on stderr "
13927 "before they are executed in a format which is very similar to the one used "
13928 "by guestfish.  In other words, you can run a program with this enabled, and "
13929 "you will get out a script which you can feed to guestfish to perform the "
13930 "same set of actions."
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3783
13935 msgid ""
13936 "If you want to trace C API calls into libguestfs (and other libraries) then "
13937 "possibly a better way is to use the external ltrace(1) command."
13938 msgstr ""
13939
13940 # type: textblock
13941 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3787
13942 msgid ""
13943 "Command traces are disabled unless the environment variable "
13944 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13945 msgstr ""
13946
13947 # type: =head2
13948 #: ../src/guestfs-actions.pod:5622
13949 msgid "guestfs_set_verbose"
13950 msgstr ""
13951
13952 # type: verbatim
13953 #: ../src/guestfs-actions.pod:5624
13954 #, no-wrap
13955 msgid ""
13956 " int\n"
13957 " guestfs_set_verbose (guestfs_h *g,\n"
13958 "                      int verbose);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3796
13964 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13965 msgstr ""
13966
13967 # type: textblock
13968 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3798
13969 msgid ""
13970 "Verbose messages are disabled unless the environment variable "
13971 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13972 msgstr ""
13973
13974 # type: =head2
13975 #: ../src/guestfs-actions.pod:5637
13976 msgid "guestfs_setcon"
13977 msgstr ""
13978
13979 # type: verbatim
13980 #: ../src/guestfs-actions.pod:5639
13981 #, no-wrap
13982 msgid ""
13983 " int\n"
13984 " guestfs_setcon (guestfs_h *g,\n"
13985 "                 const char *context);\n"
13986 "\n"
13987 msgstr ""
13988
13989 # type: textblock
13990 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3805
13991 msgid ""
13992 "This sets the SELinux security context of the daemon to the string "
13993 "C<context>."
13994 msgstr ""
13995
13996 # type: textblock
13997 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3808
13998 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13999 msgstr ""
14000
14001 # type: =head2
14002 #: ../src/guestfs-actions.pod:5652
14003 msgid "guestfs_setxattr"
14004 msgstr ""
14005
14006 # type: verbatim
14007 #: ../src/guestfs-actions.pod:5654
14008 #, no-wrap
14009 msgid ""
14010 " int\n"
14011 " guestfs_setxattr (guestfs_h *g,\n"
14012 "                   const char *xattr,\n"
14013 "                   const char *val,\n"
14014 "                   int vallen,\n"
14015 "                   const char *path);\n"
14016 "\n"
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3814
14021 msgid ""
14022 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14023 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14024 msgstr ""
14025
14026 # type: textblock
14027 #: ../src/guestfs-actions.pod:5665
14028 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14029 msgstr ""
14030
14031 # type: =head2
14032 #: ../src/guestfs-actions.pod:5671
14033 msgid "guestfs_sfdisk"
14034 msgstr ""
14035
14036 # type: verbatim
14037 #: ../src/guestfs-actions.pod:5673
14038 #, no-wrap
14039 msgid ""
14040 " int\n"
14041 " guestfs_sfdisk (guestfs_h *g,\n"
14042 "                 const char *device,\n"
14043 "                 int cyls,\n"
14044 "                 int heads,\n"
14045 "                 int sectors,\n"
14046 "                 char *const *lines);\n"
14047 "\n"
14048 msgstr ""
14049
14050 # type: textblock
14051 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3824
14052 msgid ""
14053 "This is a direct interface to the L<sfdisk(8)> program for creating "
14054 "partitions on block devices."
14055 msgstr ""
14056
14057 # type: textblock
14058 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3827
14059 msgid "C<device> should be a block device, for example C</dev/sda>."
14060 msgstr ""
14061
14062 # type: textblock
14063 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3829
14064 msgid ""
14065 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14066 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14067 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14068 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14069 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14070 "the kernel) cannot work out the right geometry and you will need to tell it."
14071 msgstr ""
14072
14073 # type: textblock
14074 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3837
14075 msgid ""
14076 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14077 "refer to the L<sfdisk(8)> manpage."
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3840
14082 msgid ""
14083 "To create a single partition occupying the whole disk, you would pass "
14084 "C<lines> as a single element list, when the single element being the string "
14085 "C<,> (comma)."
14086 msgstr ""
14087
14088 # type: textblock
14089 #: ../src/guestfs-actions.pod:5701
14090 msgid ""
14091 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14092 msgstr ""
14093
14094 # type: =head2
14095 #: ../src/guestfs-actions.pod:5711
14096 msgid "guestfs_sfdiskM"
14097 msgstr ""
14098
14099 # type: verbatim
14100 #: ../src/guestfs-actions.pod:5713
14101 #, no-wrap
14102 msgid ""
14103 " int\n"
14104 " guestfs_sfdiskM (guestfs_h *g,\n"
14105 "                  const char *device,\n"
14106 "                  char *const *lines);\n"
14107 "\n"
14108 msgstr ""
14109
14110 # type: textblock
14111 #: ../src/guestfs-actions.pod:5718
14112 msgid ""
14113 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14114 "partition sizes are specified in megabytes only (rounded to the nearest "
14115 "cylinder) and you don't need to specify the cyls, heads and sectors "
14116 "parameters which were rarely if ever used anyway."
14117 msgstr ""
14118
14119 # type: textblock
14120 #: ../src/guestfs-actions.pod:5724
14121 msgid ""
14122 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14123 "C<guestfs_part_disk>"
14124 msgstr ""
14125
14126 # type: =head2
14127 #: ../src/guestfs-actions.pod:5734
14128 msgid "guestfs_sfdisk_N"
14129 msgstr ""
14130
14131 # type: verbatim
14132 #: ../src/guestfs-actions.pod:5736
14133 #, no-wrap
14134 msgid ""
14135 " int\n"
14136 " guestfs_sfdisk_N (guestfs_h *g,\n"
14137 "                   const char *device,\n"
14138 "                   int partnum,\n"
14139 "                   int cyls,\n"
14140 "                   int heads,\n"
14141 "                   int sectors,\n"
14142 "                   const char *line);\n"
14143 "\n"
14144 msgstr ""
14145
14146 # type: textblock
14147 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3870
14148 msgid ""
14149 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14150 "(note: C<n> counts from 1)."
14151 msgstr ""
14152
14153 # type: textblock
14154 #: ../src/guestfs-actions.pod:5748
14155 msgid ""
14156 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14157 "for the cyls/heads/sectors parameters."
14158 msgstr ""
14159
14160 # type: textblock
14161 #: ../src/guestfs-actions.pod:5751
14162 msgid "See also: C<guestfs_part_add>"
14163 msgstr ""
14164
14165 # type: =head2
14166 #: ../src/guestfs-actions.pod:5760
14167 msgid "guestfs_sfdisk_disk_geometry"
14168 msgstr ""
14169
14170 # type: verbatim
14171 #: ../src/guestfs-actions.pod:5762
14172 #, no-wrap
14173 msgid ""
14174 " char *\n"
14175 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14176 "                               const char *device);\n"
14177 "\n"
14178 msgstr ""
14179
14180 # type: textblock
14181 #: ../src/guestfs-actions.pod:5766
14182 msgid ""
14183 "This displays the disk geometry of C<device> read from the partition table.  "
14184 "Especially in the case where the underlying block device has been resized, "
14185 "this can be different from the kernel's idea of the geometry (see "
14186 "C<guestfs_sfdisk_kernel_geometry>)."
14187 msgstr ""
14188
14189 # type: textblock
14190 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5787
14191 #: ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
14192 msgid "The result is in human-readable format, and not designed to be parsed."
14193 msgstr ""
14194
14195 # type: =head2
14196 #: ../src/guestfs-actions.pod:5779
14197 msgid "guestfs_sfdisk_kernel_geometry"
14198 msgstr ""
14199
14200 # type: verbatim
14201 #: ../src/guestfs-actions.pod:5781
14202 #, no-wrap
14203 msgid ""
14204 " char *\n"
14205 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14206 "                                 const char *device);\n"
14207 "\n"
14208 msgstr ""
14209
14210 # type: textblock
14211 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3897
14212 msgid "This displays the kernel's idea of the geometry of C<device>."
14213 msgstr ""
14214
14215 # type: =head2
14216 #: ../src/guestfs-actions.pod:5795
14217 msgid "guestfs_sfdisk_l"
14218 msgstr ""
14219
14220 # type: verbatim
14221 #: ../src/guestfs-actions.pod:5797
14222 #, no-wrap
14223 msgid ""
14224 " char *\n"
14225 " guestfs_sfdisk_l (guestfs_h *g,\n"
14226 "                   const char *device);\n"
14227 "\n"
14228 msgstr ""
14229
14230 # type: textblock
14231 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3906
14232 msgid ""
14233 "This displays the partition table on C<device>, in the human-readable output "
14234 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14235 msgstr ""
14236
14237 # type: textblock
14238 #: ../src/guestfs-actions.pod:5805
14239 msgid "See also: C<guestfs_part_list>"
14240 msgstr ""
14241
14242 # type: =head2
14243 #: ../src/guestfs-actions.pod:5812
14244 msgid "guestfs_sh"
14245 msgstr ""
14246
14247 # type: verbatim
14248 #: ../src/guestfs-actions.pod:5814
14249 #, no-wrap
14250 msgid ""
14251 " char *\n"
14252 " guestfs_sh (guestfs_h *g,\n"
14253 "             const char *command);\n"
14254 "\n"
14255 msgstr ""
14256
14257 # type: textblock
14258 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3916
14259 msgid ""
14260 "This call runs a command from the guest filesystem via the guest's C</bin/"
14261 "sh>."
14262 msgstr ""
14263
14264 # type: textblock
14265 #: ../src/guestfs-actions.pod:5821
14266 msgid "This is like C<guestfs_command>, but passes the command to:"
14267 msgstr ""
14268
14269 # type: verbatim
14270 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3921
14271 #, no-wrap
14272 msgid ""
14273 " /bin/sh -c \"command\"\n"
14274 "\n"
14275 msgstr ""
14276
14277 # type: textblock
14278 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3923
14279 msgid ""
14280 "Depending on the guest's shell, this usually results in wildcards being "
14281 "expanded, shell expressions being interpolated and so on."
14282 msgstr ""
14283
14284 # type: textblock
14285 #: ../src/guestfs-actions.pod:5829
14286 msgid "All the provisos about C<guestfs_command> apply to this call."
14287 msgstr ""
14288
14289 # type: =head2
14290 #: ../src/guestfs-actions.pod:5836
14291 msgid "guestfs_sh_lines"
14292 msgstr ""
14293
14294 # type: verbatim
14295 #: ../src/guestfs-actions.pod:5838
14296 #, no-wrap
14297 msgid ""
14298 " char **\n"
14299 " guestfs_sh_lines (guestfs_h *g,\n"
14300 "                   const char *command);\n"
14301 "\n"
14302 msgstr ""
14303
14304 # type: textblock
14305 #: ../src/guestfs-actions.pod:5842
14306 msgid ""
14307 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14308 "lines."
14309 msgstr ""
14310
14311 # type: textblock
14312 #: ../src/guestfs-actions.pod:5845
14313 msgid "See also: C<guestfs_command_lines>"
14314 msgstr ""
14315
14316 # type: =head2
14317 #: ../src/guestfs-actions.pod:5853
14318 msgid "guestfs_sleep"
14319 msgstr ""
14320
14321 # type: verbatim
14322 #: ../src/guestfs-actions.pod:5855
14323 #, no-wrap
14324 msgid ""
14325 " int\n"
14326 " guestfs_sleep (guestfs_h *g,\n"
14327 "                int secs);\n"
14328 "\n"
14329 msgstr ""
14330
14331 # type: textblock
14332 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3942
14333 msgid "Sleep for C<secs> seconds."
14334 msgstr ""
14335
14336 # type: textblock
14337 #: ../src/guestfs-actions.pod:5863
14338 msgid "(Added in 1.0.41)"
14339 msgstr ""
14340
14341 # type: =head2
14342 #: ../src/guestfs-actions.pod:5865 ../src/guestfs-structs.pod:109
14343 msgid "guestfs_stat"
14344 msgstr ""
14345
14346 # type: verbatim
14347 #: ../src/guestfs-actions.pod:5867
14348 #, no-wrap
14349 msgid ""
14350 " struct guestfs_stat *\n"
14351 " guestfs_stat (guestfs_h *g,\n"
14352 "               const char *path);\n"
14353 "\n"
14354 msgstr ""
14355
14356 # type: textblock
14357 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3950
14358 msgid "This is the same as the C<stat(2)> system call."
14359 msgstr ""
14360
14361 # type: =head2
14362 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-structs.pod:135
14363 msgid "guestfs_statvfs"
14364 msgstr ""
14365
14366 # type: verbatim
14367 #: ../src/guestfs-actions.pod:5883
14368 #, no-wrap
14369 msgid ""
14370 " struct guestfs_statvfs *\n"
14371 " guestfs_statvfs (guestfs_h *g,\n"
14372 "                  const char *path);\n"
14373 "\n"
14374 msgstr ""
14375
14376 # type: textblock
14377 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3956
14378 msgid ""
14379 "Returns file system statistics for any mounted file system.  C<path> should "
14380 "be a file or directory in the mounted file system (typically it is the mount "
14381 "point itself, but it doesn't need to be)."
14382 msgstr ""
14383
14384 # type: textblock
14385 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3960
14386 msgid "This is the same as the C<statvfs(2)> system call."
14387 msgstr ""
14388
14389 # type: textblock
14390 #: ../src/guestfs-actions.pod:5893
14391 msgid ""
14392 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14393 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14394 msgstr ""
14395
14396 # type: =head2
14397 #: ../src/guestfs-actions.pod:5899
14398 msgid "guestfs_strings"
14399 msgstr ""
14400
14401 # type: verbatim
14402 #: ../src/guestfs-actions.pod:5901
14403 #, no-wrap
14404 msgid ""
14405 " char **\n"
14406 " guestfs_strings (guestfs_h *g,\n"
14407 "                  const char *path);\n"
14408 "\n"
14409 msgstr ""
14410
14411 # type: textblock
14412 #: ../src/guestfs-actions.pod:5905 ../fish/guestfish-actions.pod:3966
14413 msgid ""
14414 "This runs the L<strings(1)> command on a file and returns the list of "
14415 "printable strings found."
14416 msgstr ""
14417
14418 # type: =head2
14419 #: ../src/guestfs-actions.pod:5917
14420 msgid "guestfs_strings_e"
14421 msgstr ""
14422
14423 # type: verbatim
14424 #: ../src/guestfs-actions.pod:5919
14425 #, no-wrap
14426 msgid ""
14427 " char **\n"
14428 " guestfs_strings_e (guestfs_h *g,\n"
14429 "                    const char *encoding,\n"
14430 "                    const char *path);\n"
14431 "\n"
14432 msgstr ""
14433
14434 # type: textblock
14435 #: ../src/guestfs-actions.pod:5924
14436 msgid ""
14437 "This is like the C<guestfs_strings> command, but allows you to specify the "
14438 "encoding of strings that are looked for in the source file C<path>."
14439 msgstr ""
14440
14441 # type: textblock
14442 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3980
14443 msgid "Allowed encodings are:"
14444 msgstr ""
14445
14446 # type: =item
14447 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3984
14448 msgid "s"
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:5934
14453 msgid ""
14454 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14455 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14456 msgstr ""
14457
14458 # type: =item
14459 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3989
14460 msgid "S"
14461 msgstr ""
14462
14463 # type: textblock
14464 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3991
14465 msgid "Single 8-bit-byte characters."
14466 msgstr ""
14467
14468 # type: =item
14469 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3993
14470 msgid "b"
14471 msgstr ""
14472
14473 # type: textblock
14474 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3995
14475 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14476 msgstr ""
14477
14478 # type: =item
14479 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
14480 msgid "l (lower case letter L)"
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4000
14485 msgid ""
14486 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14487 "examining binaries in Windows guests."
14488 msgstr ""
14489
14490 # type: =item
14491 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
14492 msgid "B"
14493 msgstr ""
14494
14495 # type: textblock
14496 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4005
14497 msgid "32-bit big endian such as UCS-4BE."
14498 msgstr ""
14499
14500 # type: =item
14501 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4007
14502 msgid "L"
14503 msgstr ""
14504
14505 # type: textblock
14506 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4009
14507 msgid "32-bit little endian such as UCS-4LE."
14508 msgstr ""
14509
14510 # type: textblock
14511 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4013
14512 msgid "The returned strings are transcoded to UTF-8."
14513 msgstr ""
14514
14515 # type: =head2
14516 #: ../src/guestfs-actions.pod:5972
14517 msgid "guestfs_swapoff_device"
14518 msgstr ""
14519
14520 # type: verbatim
14521 #: ../src/guestfs-actions.pod:5974
14522 #, no-wrap
14523 msgid ""
14524 " int\n"
14525 " guestfs_swapoff_device (guestfs_h *g,\n"
14526 "                         const char *device);\n"
14527 "\n"
14528 msgstr ""
14529
14530 # type: textblock
14531 #: ../src/guestfs-actions.pod:5978
14532 msgid ""
14533 "This command disables the libguestfs appliance swap device or partition "
14534 "named C<device>.  See C<guestfs_swapon_device>."
14535 msgstr ""
14536
14537 # type: =head2
14538 #: ../src/guestfs-actions.pod:5986
14539 msgid "guestfs_swapoff_file"
14540 msgstr ""
14541
14542 # type: verbatim
14543 #: ../src/guestfs-actions.pod:5988
14544 #, no-wrap
14545 msgid ""
14546 " int\n"
14547 " guestfs_swapoff_file (guestfs_h *g,\n"
14548 "                       const char *file);\n"
14549 "\n"
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:4030
14554 msgid "This command disables the libguestfs appliance swap on file."
14555 msgstr ""
14556
14557 # type: =head2
14558 #: ../src/guestfs-actions.pod:5998
14559 msgid "guestfs_swapoff_label"
14560 msgstr ""
14561
14562 # type: verbatim
14563 #: ../src/guestfs-actions.pod:6000
14564 #, no-wrap
14565 msgid ""
14566 " int\n"
14567 " guestfs_swapoff_label (guestfs_h *g,\n"
14568 "                        const char *label);\n"
14569 "\n"
14570 msgstr ""
14571
14572 # type: textblock
14573 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4036
14574 msgid ""
14575 "This command disables the libguestfs appliance swap on labeled swap "
14576 "partition."
14577 msgstr ""
14578
14579 # type: =head2
14580 #: ../src/guestfs-actions.pod:6011
14581 msgid "guestfs_swapoff_uuid"
14582 msgstr ""
14583
14584 # type: verbatim
14585 #: ../src/guestfs-actions.pod:6013
14586 #, no-wrap
14587 msgid ""
14588 " int\n"
14589 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14590 "                       const char *uuid);\n"
14591 "\n"
14592 msgstr ""
14593
14594 # type: textblock
14595 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4043
14596 msgid ""
14597 "This command disables the libguestfs appliance swap partition with the given "
14598 "UUID."
14599 msgstr ""
14600
14601 # type: =head2
14602 #: ../src/guestfs-actions.pod:6024
14603 msgid "guestfs_swapon_device"
14604 msgstr ""
14605
14606 # type: verbatim
14607 #: ../src/guestfs-actions.pod:6026
14608 #, no-wrap
14609 msgid ""
14610 " int\n"
14611 " guestfs_swapon_device (guestfs_h *g,\n"
14612 "                        const char *device);\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:6030
14618 msgid ""
14619 "This command enables the libguestfs appliance to use the swap device or "
14620 "partition named C<device>.  The increased memory is made available for all "
14621 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14622 msgstr ""
14623
14624 # type: textblock
14625 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4055
14626 msgid ""
14627 "Note that you should not swap to existing guest swap partitions unless you "
14628 "know what you are doing.  They may contain hibernation information, or other "
14629 "information that the guest doesn't want you to trash.  You also risk leaking "
14630 "information about the host to the guest this way.  Instead, attach a new "
14631 "host device to the guest and swap on that."
14632 msgstr ""
14633
14634 # type: =head2
14635 #: ../src/guestfs-actions.pod:6046
14636 msgid "guestfs_swapon_file"
14637 msgstr ""
14638
14639 # type: verbatim
14640 #: ../src/guestfs-actions.pod:6048
14641 #, no-wrap
14642 msgid ""
14643 " int\n"
14644 " guestfs_swapon_file (guestfs_h *g,\n"
14645 "                      const char *file);\n"
14646 "\n"
14647 msgstr ""
14648
14649 # type: textblock
14650 #: ../src/guestfs-actions.pod:6052
14651 msgid ""
14652 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14653 "notes."
14654 msgstr ""
14655
14656 # type: =head2
14657 #: ../src/guestfs-actions.pod:6059
14658 msgid "guestfs_swapon_label"
14659 msgstr ""
14660
14661 # type: verbatim
14662 #: ../src/guestfs-actions.pod:6061
14663 #, no-wrap
14664 msgid ""
14665 " int\n"
14666 " guestfs_swapon_label (guestfs_h *g,\n"
14667 "                       const char *label);\n"
14668 "\n"
14669 msgstr ""
14670
14671 # type: textblock
14672 #: ../src/guestfs-actions.pod:6065
14673 msgid ""
14674 "This command enables swap to a labeled swap partition.  See "
14675 "C<guestfs_swapon_device> for other notes."
14676 msgstr ""
14677
14678 # type: =head2
14679 #: ../src/guestfs-actions.pod:6072
14680 msgid "guestfs_swapon_uuid"
14681 msgstr ""
14682
14683 # type: verbatim
14684 #: ../src/guestfs-actions.pod:6074
14685 #, no-wrap
14686 msgid ""
14687 " int\n"
14688 " guestfs_swapon_uuid (guestfs_h *g,\n"
14689 "                      const char *uuid);\n"
14690 "\n"
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../src/guestfs-actions.pod:6078
14695 msgid ""
14696 "This command enables swap to a swap partition with the given UUID.  See "
14697 "C<guestfs_swapon_device> for other notes."
14698 msgstr ""
14699
14700 # type: =head2
14701 #: ../src/guestfs-actions.pod:6085
14702 msgid "guestfs_sync"
14703 msgstr ""
14704
14705 # type: verbatim
14706 #: ../src/guestfs-actions.pod:6087
14707 #, no-wrap
14708 msgid ""
14709 " int\n"
14710 " guestfs_sync (guestfs_h *g);\n"
14711 "\n"
14712 msgstr ""
14713
14714 # type: textblock
14715 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4087
14716 msgid ""
14717 "This syncs the disk, so that any writes are flushed through to the "
14718 "underlying disk image."
14719 msgstr ""
14720
14721 # type: textblock
14722 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4090
14723 msgid ""
14724 "You should always call this if you have modified a disk image, before "
14725 "closing the handle."
14726 msgstr ""
14727
14728 # type: =head2
14729 #: ../src/guestfs-actions.pod:6100
14730 msgid "guestfs_tail"
14731 msgstr ""
14732
14733 # type: verbatim
14734 #: ../src/guestfs-actions.pod:6102
14735 #, no-wrap
14736 msgid ""
14737 " char **\n"
14738 " guestfs_tail (guestfs_h *g,\n"
14739 "               const char *path);\n"
14740 "\n"
14741 msgstr ""
14742
14743 # type: textblock
14744 #: ../src/guestfs-actions.pod:6106 ../fish/guestfish-actions.pod:4097
14745 msgid ""
14746 "This command returns up to the last 10 lines of a file as a list of strings."
14747 msgstr ""
14748
14749 # type: =head2
14750 #: ../src/guestfs-actions.pod:6118
14751 msgid "guestfs_tail_n"
14752 msgstr ""
14753
14754 # type: verbatim
14755 #: ../src/guestfs-actions.pod:6120
14756 #, no-wrap
14757 msgid ""
14758 " char **\n"
14759 " guestfs_tail_n (guestfs_h *g,\n"
14760 "                 int nrlines,\n"
14761 "                 const char *path);\n"
14762 "\n"
14763 msgstr ""
14764
14765 # type: textblock
14766 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4107
14767 msgid ""
14768 "If the parameter C<nrlines> is a positive number, this returns the last "
14769 "C<nrlines> lines of the file C<path>."
14770 msgstr ""
14771
14772 # type: textblock
14773 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4110
14774 msgid ""
14775 "If the parameter C<nrlines> is a negative number, this returns lines from "
14776 "the file C<path>, starting with the C<-nrlines>th line."
14777 msgstr ""
14778
14779 # type: =head2
14780 #: ../src/guestfs-actions.pod:6142
14781 msgid "guestfs_tar_in"
14782 msgstr ""
14783
14784 # type: verbatim
14785 #: ../src/guestfs-actions.pod:6144
14786 #, no-wrap
14787 msgid ""
14788 " int\n"
14789 " guestfs_tar_in (guestfs_h *g,\n"
14790 "                 const char *tarfile,\n"
14791 "                 const char *directory);\n"
14792 "\n"
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4122
14797 msgid ""
14798 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14799 "tar file) into C<directory>."
14800 msgstr ""
14801
14802 # type: textblock
14803 #: ../src/guestfs-actions.pod:6152
14804 msgid ""
14805 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14806 msgstr ""
14807
14808 # type: textblock
14809 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6174
14810 #: ../src/guestfs-actions.pod:6190 ../src/guestfs-actions.pod:6206
14811 msgid "(Added in 1.0.3)"
14812 msgstr ""
14813
14814 # type: =head2
14815 #: ../src/guestfs-actions.pod:6159
14816 msgid "guestfs_tar_out"
14817 msgstr ""
14818
14819 # type: verbatim
14820 #: ../src/guestfs-actions.pod:6161
14821 #, no-wrap
14822 msgid ""
14823 " int\n"
14824 " guestfs_tar_out (guestfs_h *g,\n"
14825 "                  const char *directory,\n"
14826 "                  const char *tarfile);\n"
14827 "\n"
14828 msgstr ""
14829
14830 # type: textblock
14831 #: ../src/guestfs-actions.pod:6166 ../fish/guestfish-actions.pod:4134
14832 msgid ""
14833 "This command packs the contents of C<directory> and downloads it to local "
14834 "file C<tarfile>."
14835 msgstr ""
14836
14837 # type: textblock
14838 #: ../src/guestfs-actions.pod:6169
14839 msgid ""
14840 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14841 "C<guestfs_txz_out>."
14842 msgstr ""
14843
14844 # type: =head2
14845 #: ../src/guestfs-actions.pod:6176
14846 msgid "guestfs_tgz_in"
14847 msgstr ""
14848
14849 # type: verbatim
14850 #: ../src/guestfs-actions.pod:6178
14851 #, no-wrap
14852 msgid ""
14853 " int\n"
14854 " guestfs_tgz_in (guestfs_h *g,\n"
14855 "                 const char *tarball,\n"
14856 "                 const char *directory);\n"
14857 "\n"
14858 msgstr ""
14859
14860 # type: textblock
14861 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4146
14862 msgid ""
14863 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14864 "tar file) into C<directory>."
14865 msgstr ""
14866
14867 # type: textblock
14868 #: ../src/guestfs-actions.pod:6186
14869 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14870 msgstr ""
14871
14872 # type: =head2
14873 #: ../src/guestfs-actions.pod:6192
14874 msgid "guestfs_tgz_out"
14875 msgstr ""
14876
14877 # type: verbatim
14878 #: ../src/guestfs-actions.pod:6194
14879 #, no-wrap
14880 msgid ""
14881 " int\n"
14882 " guestfs_tgz_out (guestfs_h *g,\n"
14883 "                  const char *directory,\n"
14884 "                  const char *tarball);\n"
14885 "\n"
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4157
14890 msgid ""
14891 "This command packs the contents of C<directory> and downloads it to local "
14892 "file C<tarball>."
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../src/guestfs-actions.pod:6202
14897 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14898 msgstr ""
14899
14900 # type: =head2
14901 #: ../src/guestfs-actions.pod:6208
14902 msgid "guestfs_touch"
14903 msgstr ""
14904
14905 # type: verbatim
14906 #: ../src/guestfs-actions.pod:6210
14907 #, no-wrap
14908 msgid ""
14909 " int\n"
14910 " guestfs_touch (guestfs_h *g,\n"
14911 "                const char *path);\n"
14912 "\n"
14913 msgstr ""
14914
14915 # type: textblock
14916 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4168
14917 msgid ""
14918 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14919 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14920 "length file."
14921 msgstr ""
14922
14923 # type: textblock
14924 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4172
14925 msgid ""
14926 "This command only works on regular files, and will fail on other file types "
14927 "such as directories, symbolic links, block special etc."
14928 msgstr ""
14929
14930 # type: =head2
14931 #: ../src/guestfs-actions.pod:6225
14932 msgid "guestfs_truncate"
14933 msgstr ""
14934
14935 # type: verbatim
14936 #: ../src/guestfs-actions.pod:6227
14937 #, no-wrap
14938 msgid ""
14939 " int\n"
14940 " guestfs_truncate (guestfs_h *g,\n"
14941 "                   const char *path);\n"
14942 "\n"
14943 msgstr ""
14944
14945 # type: textblock
14946 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4179
14947 msgid ""
14948 "This command truncates C<path> to a zero-length file.  The file must exist "
14949 "already."
14950 msgstr ""
14951
14952 # type: =head2
14953 #: ../src/guestfs-actions.pod:6238
14954 msgid "guestfs_truncate_size"
14955 msgstr ""
14956
14957 # type: verbatim
14958 #: ../src/guestfs-actions.pod:6240
14959 #, no-wrap
14960 msgid ""
14961 " int\n"
14962 " guestfs_truncate_size (guestfs_h *g,\n"
14963 "                        const char *path,\n"
14964 "                        int64_t size);\n"
14965 "\n"
14966 msgstr ""
14967
14968 # type: textblock
14969 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4186
14970 msgid ""
14971 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14972 "already."
14973 msgstr ""
14974
14975 # type: textblock
14976 #: ../src/guestfs-actions.pod:6248
14977 msgid ""
14978 "If the current file size is less than C<size> then the file is extended to "
14979 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14980 "blocks are not allocated for the file until you write to it).  To create a "
14981 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14982 msgstr ""
14983
14984 # type: =head2
14985 #: ../src/guestfs-actions.pod:6258
14986 msgid "guestfs_tune2fs_l"
14987 msgstr ""
14988
14989 # type: verbatim
14990 #: ../src/guestfs-actions.pod:6260
14991 #, no-wrap
14992 msgid ""
14993 " char **\n"
14994 " guestfs_tune2fs_l (guestfs_h *g,\n"
14995 "                    const char *device);\n"
14996 "\n"
14997 msgstr ""
14998
14999 # type: textblock
15000 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4199
15001 msgid ""
15002 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15003 "C<device>."
15004 msgstr ""
15005
15006 # type: textblock
15007 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4202
15008 msgid ""
15009 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15010 "for more details.  The list of fields returned isn't clearly defined, and "
15011 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15012 "and the filesystem itself."
15013 msgstr ""
15014
15015 # type: =head2
15016 #: ../src/guestfs-actions.pod:6280
15017 msgid "guestfs_txz_in"
15018 msgstr ""
15019
15020 # type: verbatim
15021 #: ../src/guestfs-actions.pod:6282
15022 #, no-wrap
15023 msgid ""
15024 " int\n"
15025 " guestfs_txz_in (guestfs_h *g,\n"
15026 "                 const char *tarball,\n"
15027 "                 const char *directory);\n"
15028 "\n"
15029 msgstr ""
15030
15031 # type: textblock
15032 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4211
15033 msgid ""
15034 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15035 "tar file) into C<directory>."
15036 msgstr ""
15037
15038 # type: =head2
15039 #: ../src/guestfs-actions.pod:6294
15040 msgid "guestfs_txz_out"
15041 msgstr ""
15042
15043 # type: verbatim
15044 #: ../src/guestfs-actions.pod:6296
15045 #, no-wrap
15046 msgid ""
15047 " int\n"
15048 " guestfs_txz_out (guestfs_h *g,\n"
15049 "                  const char *directory,\n"
15050 "                  const char *tarball);\n"
15051 "\n"
15052 msgstr ""
15053
15054 # type: textblock
15055 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4220
15056 msgid ""
15057 "This command packs the contents of C<directory> and downloads it to local "
15058 "file C<tarball> (as an xz compressed tar archive)."
15059 msgstr ""
15060
15061 # type: =head2
15062 #: ../src/guestfs-actions.pod:6308
15063 msgid "guestfs_umask"
15064 msgstr ""
15065
15066 # type: verbatim
15067 #: ../src/guestfs-actions.pod:6310
15068 #, no-wrap
15069 msgid ""
15070 " int\n"
15071 " guestfs_umask (guestfs_h *g,\n"
15072 "                int mask);\n"
15073 "\n"
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:4229
15078 msgid ""
15079 "This function sets the mask used for creating new files and device nodes to "
15080 "C<mask & 0777>."
15081 msgstr ""
15082
15083 # type: textblock
15084 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4232
15085 msgid ""
15086 "Typical umask values would be C<022> which creates new files with "
15087 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15088 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4237
15093 msgid ""
15094 "The default umask is C<022>.  This is important because it means that "
15095 "directories and device nodes will be created with C<0644> or C<0755> mode "
15096 "even if you specify C<0777>."
15097 msgstr ""
15098
15099 # type: textblock
15100 #: ../src/guestfs-actions.pod:6326
15101 msgid ""
15102 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15103 "C<guestfs_mkdir>."
15104 msgstr ""
15105
15106 # type: textblock
15107 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4244
15108 msgid "This call returns the previous umask."
15109 msgstr ""
15110
15111 # type: =head2
15112 #: ../src/guestfs-actions.pod:6335
15113 msgid "guestfs_umount"
15114 msgstr ""
15115
15116 # type: verbatim
15117 #: ../src/guestfs-actions.pod:6337
15118 #, no-wrap
15119 msgid ""
15120 " int\n"
15121 " guestfs_umount (guestfs_h *g,\n"
15122 "                 const char *pathordevice);\n"
15123 "\n"
15124 msgstr ""
15125
15126 # type: textblock
15127 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4252
15128 msgid ""
15129 "This unmounts the given filesystem.  The filesystem may be specified either "
15130 "by its mountpoint (path) or the device which contains the filesystem."
15131 msgstr ""
15132
15133 # type: =head2
15134 #: ../src/guestfs-actions.pod:6349
15135 msgid "guestfs_umount_all"
15136 msgstr ""
15137
15138 # type: verbatim
15139 #: ../src/guestfs-actions.pod:6351
15140 #, no-wrap
15141 msgid ""
15142 " int\n"
15143 " guestfs_umount_all (guestfs_h *g);\n"
15144 "\n"
15145 msgstr ""
15146
15147 # type: textblock
15148 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4262
15149 msgid "This unmounts all mounted filesystems."
15150 msgstr ""
15151
15152 # type: textblock
15153 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4264
15154 msgid "Some internal mounts are not unmounted by this call."
15155 msgstr ""
15156
15157 # type: =head2
15158 #: ../src/guestfs-actions.pod:6362
15159 msgid "guestfs_upload"
15160 msgstr ""
15161
15162 # type: verbatim
15163 #: ../src/guestfs-actions.pod:6364
15164 #, no-wrap
15165 msgid ""
15166 " int\n"
15167 " guestfs_upload (guestfs_h *g,\n"
15168 "                 const char *filename,\n"
15169 "                 const char *remotefilename);\n"
15170 "\n"
15171 msgstr ""
15172
15173 # type: textblock
15174 #: ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6388
15175 #: ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
15176 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15177 msgstr ""
15178
15179 # type: textblock
15180 #: ../src/guestfs-actions.pod:6374
15181 msgid "See also C<guestfs_download>."
15182 msgstr ""
15183
15184 # type: =head2
15185 #: ../src/guestfs-actions.pod:6380
15186 msgid "guestfs_upload_offset"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #: ../src/guestfs-actions.pod:6382
15191 #, no-wrap
15192 msgid ""
15193 " int\n"
15194 " guestfs_upload_offset (guestfs_h *g,\n"
15195 "                        const char *filename,\n"
15196 "                        const char *remotefilename,\n"
15197 "                        int64_t offset);\n"
15198 "\n"
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4286
15203 msgid ""
15204 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15205 "The intention is to overwrite parts of existing files or devices, although "
15206 "if a non-existant file is specified then it is created with a \"hole\" "
15207 "before C<offset>.  The size of the data written is implicit in the size of "
15208 "the source C<filename>."
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../src/guestfs-actions.pod:6398
15213 msgid ""
15214 "Note that there is no limit on the amount of data that can be uploaded with "
15215 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15216 "full amount unless an error occurs."
15217 msgstr ""
15218
15219 # type: textblock
15220 #: ../src/guestfs-actions.pod:6403
15221 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15222 msgstr ""
15223
15224 # type: =head2
15225 #: ../src/guestfs-actions.pod:6409
15226 msgid "guestfs_utimens"
15227 msgstr ""
15228
15229 # type: verbatim
15230 #: ../src/guestfs-actions.pod:6411
15231 #, no-wrap
15232 msgid ""
15233 " int\n"
15234 " guestfs_utimens (guestfs_h *g,\n"
15235 "                  const char *path,\n"
15236 "                  int64_t atsecs,\n"
15237 "                  int64_t atnsecs,\n"
15238 "                  int64_t mtsecs,\n"
15239 "                  int64_t mtnsecs);\n"
15240 "\n"
15241 msgstr ""
15242
15243 # type: textblock
15244 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4306
15245 msgid "This command sets the timestamps of a file with nanosecond precision."
15246 msgstr ""
15247
15248 # type: textblock
15249 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4309
15250 msgid ""
15251 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15252 "from the epoch."
15253 msgstr ""
15254
15255 # type: textblock
15256 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15257 msgid ""
15258 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15259 "nanoseconds from the epoch."
15260 msgstr ""
15261
15262 # type: textblock
15263 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15264 msgid ""
15265 "If the C<*nsecs> field contains the special value C<-1> then the "
15266 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15267 "ignored in this case)."
15268 msgstr ""
15269
15270 # type: textblock
15271 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4319
15272 msgid ""
15273 "If the C<*nsecs> field contains the special value C<-2> then the "
15274 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15275 "in this case)."
15276 msgstr ""
15277
15278 # type: =head2
15279 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-structs.pod:175
15280 msgid "guestfs_version"
15281 msgstr ""
15282
15283 # type: verbatim
15284 #: ../src/guestfs-actions.pod:6442
15285 #, no-wrap
15286 msgid ""
15287 " struct guestfs_version *\n"
15288 " guestfs_version (guestfs_h *g);\n"
15289 "\n"
15290 msgstr ""
15291
15292 # type: textblock
15293 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4327
15294 msgid ""
15295 "Return the libguestfs version number that the program is linked against."
15296 msgstr ""
15297
15298 # type: textblock
15299 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4330
15300 msgid ""
15301 "Note that because of dynamic linking this is not necessarily the version of "
15302 "libguestfs that you compiled against.  You can compile the program, and then "
15303 "at runtime dynamically link against a completely different C<libguestfs.so> "
15304 "library."
15305 msgstr ""
15306
15307 # type: textblock
15308 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4335
15309 msgid ""
15310 "This call was added in version C<1.0.58>.  In previous versions of "
15311 "libguestfs there was no way to get the version number.  From C code you can "
15312 "use dynamic linker functions to find out if this symbol exists (if it "
15313 "doesn't, then it's an earlier version)."
15314 msgstr ""
15315
15316 # type: textblock
15317 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4341
15318 msgid ""
15319 "The call returns a structure with four elements.  The first three (C<major>, "
15320 "C<minor> and C<release>) are numbers and correspond to the usual version "
15321 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15322 "but may be used for distro-specific information."
15323 msgstr ""
15324
15325 # type: textblock
15326 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4347
15327 msgid ""
15328 "To construct the original version string: C<$major.$minor.$release$extra>"
15329 msgstr ""
15330
15331 # type: textblock
15332 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4350
15333 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15334 msgstr ""
15335
15336 # type: textblock
15337 #: ../src/guestfs-actions.pod:6470
15338 msgid ""
15339 "I<Note:> Don't use this call to test for availability of features.  In "
15340 "enterprise distributions we backport features from later versions into "
15341 "earlier versions, making this an unreliable way to test for features.  Use "
15342 "C<guestfs_available> instead."
15343 msgstr ""
15344
15345 # type: textblock
15346 #: ../src/guestfs-actions.pod:6476
15347 msgid ""
15348 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15349 "error.  I<The caller must call C<guestfs_free_version> after use>."
15350 msgstr ""
15351
15352 # type: textblock
15353 #: ../src/guestfs-actions.pod:6480
15354 msgid "(Added in 1.0.58)"
15355 msgstr ""
15356
15357 # type: =head2
15358 #: ../src/guestfs-actions.pod:6482
15359 msgid "guestfs_vfs_label"
15360 msgstr ""
15361
15362 # type: verbatim
15363 #: ../src/guestfs-actions.pod:6484
15364 #, no-wrap
15365 msgid ""
15366 " char *\n"
15367 " guestfs_vfs_label (guestfs_h *g,\n"
15368 "                    const char *device);\n"
15369 "\n"
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4362
15374 msgid "This returns the filesystem label of the filesystem on C<device>."
15375 msgstr ""
15376
15377 # type: textblock
15378 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4365
15379 msgid "If the filesystem is unlabeled, this returns the empty string."
15380 msgstr ""
15381
15382 # type: textblock
15383 #: ../src/guestfs-actions.pod:6493
15384 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15385 msgstr ""
15386
15387 # type: textblock
15388 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6535
15389 msgid "(Added in 1.3.18)"
15390 msgstr ""
15391
15392 # type: =head2
15393 #: ../src/guestfs-actions.pod:6500
15394 msgid "guestfs_vfs_type"
15395 msgstr ""
15396
15397 # type: verbatim
15398 #: ../src/guestfs-actions.pod:6502
15399 #, no-wrap
15400 msgid ""
15401 " char *\n"
15402 " guestfs_vfs_type (guestfs_h *g,\n"
15403 "                   const char *device);\n"
15404 "\n"
15405 msgstr ""
15406
15407 # type: textblock
15408 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4373
15409 msgid ""
15410 "This command gets the filesystem type corresponding to the filesystem on "
15411 "C<device>."
15412 msgstr ""
15413
15414 # type: textblock
15415 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4376
15416 msgid ""
15417 "For most filesystems, the result is the name of the Linux VFS module which "
15418 "would be used to mount this filesystem if you mounted it without specifying "
15419 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15420 msgstr ""
15421
15422 # type: =head2
15423 #: ../src/guestfs-actions.pod:6519
15424 msgid "guestfs_vfs_uuid"
15425 msgstr ""
15426
15427 # type: verbatim
15428 #: ../src/guestfs-actions.pod:6521
15429 #, no-wrap
15430 msgid ""
15431 " char *\n"
15432 " guestfs_vfs_uuid (guestfs_h *g,\n"
15433 "                   const char *device);\n"
15434 "\n"
15435 msgstr ""
15436
15437 # type: textblock
15438 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4385
15439 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4388
15444 msgid "If the filesystem does not have a UUID, this returns the empty string."
15445 msgstr ""
15446
15447 # type: textblock
15448 #: ../src/guestfs-actions.pod:6530
15449 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15450 msgstr ""
15451
15452 # type: =head2
15453 #: ../src/guestfs-actions.pod:6537
15454 msgid "guestfs_vg_activate"
15455 msgstr ""
15456
15457 # type: verbatim
15458 #: ../src/guestfs-actions.pod:6539
15459 #, no-wrap
15460 msgid ""
15461 " int\n"
15462 " guestfs_vg_activate (guestfs_h *g,\n"
15463 "                      int activate,\n"
15464 "                      char *const *volgroups);\n"
15465 "\n"
15466 msgstr ""
15467
15468 # type: textblock
15469 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4396
15470 msgid ""
15471 "This command activates or (if C<activate> is false) deactivates all logical "
15472 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15473 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15474 "deactivated, then those devices disappear."
15475 msgstr ""
15476
15477 # type: textblock
15478 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4402
15479 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15480 msgstr ""
15481
15482 # type: textblock
15483 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4404
15484 msgid ""
15485 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15486 "activated or deactivated."
15487 msgstr ""
15488
15489 # type: =head2
15490 #: ../src/guestfs-actions.pod:6559
15491 msgid "guestfs_vg_activate_all"
15492 msgstr ""
15493
15494 # type: verbatim
15495 #: ../src/guestfs-actions.pod:6561
15496 #, no-wrap
15497 msgid ""
15498 " int\n"
15499 " guestfs_vg_activate_all (guestfs_h *g,\n"
15500 "                          int activate);\n"
15501 "\n"
15502 msgstr ""
15503
15504 # type: textblock
15505 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4411
15506 msgid ""
15507 "This command activates or (if C<activate> is false) deactivates all logical "
15508 "volumes in all volume groups.  If activated, then they are made known to the "
15509 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15510 "those devices disappear."
15511 msgstr ""
15512
15513 # type: textblock
15514 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4417
15515 msgid "This command is the same as running C<vgchange -a y|n>"
15516 msgstr ""
15517
15518 # type: =head2
15519 #: ../src/guestfs-actions.pod:6577
15520 msgid "guestfs_vgcreate"
15521 msgstr ""
15522
15523 # type: verbatim
15524 #: ../src/guestfs-actions.pod:6579
15525 #, no-wrap
15526 msgid ""
15527 " int\n"
15528 " guestfs_vgcreate (guestfs_h *g,\n"
15529 "                   const char *volgroup,\n"
15530 "                   char *const *physvols);\n"
15531 "\n"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4423
15536 msgid ""
15537 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15538 "of physical volumes C<physvols>."
15539 msgstr ""
15540
15541 # type: =head2
15542 #: ../src/guestfs-actions.pod:6591
15543 msgid "guestfs_vglvuuids"
15544 msgstr ""
15545
15546 # type: verbatim
15547 #: ../src/guestfs-actions.pod:6593
15548 #, no-wrap
15549 msgid ""
15550 " char **\n"
15551 " guestfs_vglvuuids (guestfs_h *g,\n"
15552 "                    const char *vgname);\n"
15553 "\n"
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4430
15558 msgid ""
15559 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15560 "volumes created in this volume group."
15561 msgstr ""
15562
15563 # type: textblock
15564 #: ../src/guestfs-actions.pod:6600
15565 msgid ""
15566 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15567 "associate logical volumes and volume groups."
15568 msgstr ""
15569
15570 # type: textblock
15571 #: ../src/guestfs-actions.pod:6603
15572 msgid "See also C<guestfs_vgpvuuids>."
15573 msgstr ""
15574
15575 # type: =head2
15576 #: ../src/guestfs-actions.pod:6611
15577 msgid "guestfs_vgpvuuids"
15578 msgstr ""
15579
15580 # type: verbatim
15581 #: ../src/guestfs-actions.pod:6613
15582 #, no-wrap
15583 msgid ""
15584 " char **\n"
15585 " guestfs_vgpvuuids (guestfs_h *g,\n"
15586 "                    const char *vgname);\n"
15587 "\n"
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4442
15592 msgid ""
15593 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15594 "volumes that this volume group resides on."
15595 msgstr ""
15596
15597 # type: textblock
15598 #: ../src/guestfs-actions.pod:6620
15599 msgid ""
15600 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15601 "associate physical volumes and volume groups."
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../src/guestfs-actions.pod:6623
15606 msgid "See also C<guestfs_vglvuuids>."
15607 msgstr ""
15608
15609 # type: =head2
15610 #: ../src/guestfs-actions.pod:6631
15611 msgid "guestfs_vgremove"
15612 msgstr ""
15613
15614 # type: verbatim
15615 #: ../src/guestfs-actions.pod:6633
15616 #, no-wrap
15617 msgid ""
15618 " int\n"
15619 " guestfs_vgremove (guestfs_h *g,\n"
15620 "                   const char *vgname);\n"
15621 "\n"
15622 msgstr ""
15623
15624 # type: textblock
15625 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
15626 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15627 msgstr ""
15628
15629 # type: textblock
15630 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4456
15631 msgid ""
15632 "This also forcibly removes all logical volumes in the volume group (if any)."
15633 msgstr ""
15634
15635 # type: =head2
15636 #: ../src/guestfs-actions.pod:6646
15637 msgid "guestfs_vgrename"
15638 msgstr ""
15639
15640 # type: verbatim
15641 #: ../src/guestfs-actions.pod:6648
15642 #, no-wrap
15643 msgid ""
15644 " int\n"
15645 " guestfs_vgrename (guestfs_h *g,\n"
15646 "                   const char *volgroup,\n"
15647 "                   const char *newvolgroup);\n"
15648 "\n"
15649 msgstr ""
15650
15651 # type: textblock
15652 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4463
15653 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15654 msgstr ""
15655
15656 # type: =head2
15657 #: ../src/guestfs-actions.pod:6659
15658 msgid "guestfs_vgs"
15659 msgstr ""
15660
15661 # type: verbatim
15662 #: ../src/guestfs-actions.pod:6661
15663 #, no-wrap
15664 msgid ""
15665 " char **\n"
15666 " guestfs_vgs (guestfs_h *g);\n"
15667 "\n"
15668 msgstr ""
15669
15670 # type: textblock
15671 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4469
15672 msgid ""
15673 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15674 "> command."
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4472
15679 msgid ""
15680 "This returns a list of just the volume group names that were detected (eg. "
15681 "C<VolGroup00>)."
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../src/guestfs-actions.pod:6670
15686 msgid "See also C<guestfs_vgs_full>."
15687 msgstr ""
15688
15689 # type: =head2
15690 #: ../src/guestfs-actions.pod:6678
15691 msgid "guestfs_vgs_full"
15692 msgstr ""
15693
15694 # type: verbatim
15695 #: ../src/guestfs-actions.pod:6680
15696 #, no-wrap
15697 msgid ""
15698 " struct guestfs_lvm_vg_list *\n"
15699 " guestfs_vgs_full (guestfs_h *g);\n"
15700 "\n"
15701 msgstr ""
15702
15703 # type: textblock
15704 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4481
15705 msgid ""
15706 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15707 "> command.  The \"full\" version includes all fields."
15708 msgstr ""
15709
15710 # type: textblock
15711 #: ../src/guestfs-actions.pod:6686
15712 msgid ""
15713 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15714 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15715 msgstr ""
15716
15717 # type: =head2
15718 #: ../src/guestfs-actions.pod:6692
15719 msgid "guestfs_vgscan"
15720 msgstr ""
15721
15722 # type: verbatim
15723 #: ../src/guestfs-actions.pod:6694
15724 #, no-wrap
15725 msgid ""
15726 " int\n"
15727 " guestfs_vgscan (guestfs_h *g);\n"
15728 "\n"
15729 msgstr ""
15730
15731 # type: textblock
15732 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4488
15733 msgid ""
15734 "This rescans all block devices and rebuilds the list of LVM physical "
15735 "volumes, volume groups and logical volumes."
15736 msgstr ""
15737
15738 # type: =head2
15739 #: ../src/guestfs-actions.pod:6704
15740 msgid "guestfs_vguuid"
15741 msgstr ""
15742
15743 # type: verbatim
15744 #: ../src/guestfs-actions.pod:6706
15745 #, no-wrap
15746 msgid ""
15747 " char *\n"
15748 " guestfs_vguuid (guestfs_h *g,\n"
15749 "                 const char *vgname);\n"
15750 "\n"
15751 msgstr ""
15752
15753 # type: textblock
15754 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4495
15755 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15756 msgstr ""
15757
15758 # type: =head2
15759 #: ../src/guestfs-actions.pod:6717
15760 msgid "guestfs_wait_ready"
15761 msgstr ""
15762
15763 # type: verbatim
15764 #: ../src/guestfs-actions.pod:6719
15765 #, no-wrap
15766 msgid ""
15767 " int\n"
15768 " guestfs_wait_ready (guestfs_h *g);\n"
15769 "\n"
15770 msgstr ""
15771
15772 # type: textblock
15773 #: ../src/guestfs-actions.pod:6722
15774 msgid "This function is a no op."
15775 msgstr ""
15776
15777 # type: textblock
15778 #: ../src/guestfs-actions.pod:6724
15779 msgid ""
15780 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15781 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15782 "is no longer necessary because C<guestfs_launch> now does the waiting."
15783 msgstr ""
15784
15785 # type: textblock
15786 #: ../src/guestfs-actions.pod:6729
15787 msgid ""
15788 "If you see any calls to this function in code then you can just remove them, "
15789 "unless you want to retain compatibility with older versions of the API."
15790 msgstr ""
15791
15792 # type: =head2
15793 #: ../src/guestfs-actions.pod:6737
15794 msgid "guestfs_wc_c"
15795 msgstr ""
15796
15797 # type: verbatim
15798 #: ../src/guestfs-actions.pod:6739
15799 #, no-wrap
15800 msgid ""
15801 " int\n"
15802 " guestfs_wc_c (guestfs_h *g,\n"
15803 "               const char *path);\n"
15804 "\n"
15805 msgstr ""
15806
15807 # type: textblock
15808 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4501
15809 msgid ""
15810 "This command counts the characters in a file, using the C<wc -c> external "
15811 "command."
15812 msgstr ""
15813
15814 # type: =head2
15815 #: ../src/guestfs-actions.pod:6750
15816 msgid "guestfs_wc_l"
15817 msgstr ""
15818
15819 # type: verbatim
15820 #: ../src/guestfs-actions.pod:6752
15821 #, no-wrap
15822 msgid ""
15823 " int\n"
15824 " guestfs_wc_l (guestfs_h *g,\n"
15825 "               const char *path);\n"
15826 "\n"
15827 msgstr ""
15828
15829 # type: textblock
15830 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4508
15831 msgid ""
15832 "This command counts the lines in a file, using the C<wc -l> external command."
15833 msgstr ""
15834
15835 # type: =head2
15836 #: ../src/guestfs-actions.pod:6763
15837 msgid "guestfs_wc_w"
15838 msgstr ""
15839
15840 # type: verbatim
15841 #: ../src/guestfs-actions.pod:6765
15842 #, no-wrap
15843 msgid ""
15844 " int\n"
15845 " guestfs_wc_w (guestfs_h *g,\n"
15846 "               const char *path);\n"
15847 "\n"
15848 msgstr ""
15849
15850 # type: textblock
15851 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
15852 msgid ""
15853 "This command counts the words in a file, using the C<wc -w> external command."
15854 msgstr ""
15855
15856 # type: =head2
15857 #: ../src/guestfs-actions.pod:6776
15858 msgid "guestfs_write"
15859 msgstr ""
15860
15861 # type: verbatim
15862 #: ../src/guestfs-actions.pod:6778
15863 #, no-wrap
15864 msgid ""
15865 " int\n"
15866 " guestfs_write (guestfs_h *g,\n"
15867 "                const char *path,\n"
15868 "                const char *content,\n"
15869 "                size_t content_size);\n"
15870 "\n"
15871 msgstr ""
15872
15873 # type: textblock
15874 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4522
15875 msgid ""
15876 "This call creates a file called C<path>.  The content of the file is the "
15877 "string C<content> (which can contain any 8 bit data)."
15878 msgstr ""
15879
15880 # type: =head2
15881 #: ../src/guestfs-actions.pod:6794
15882 msgid "guestfs_write_file"
15883 msgstr ""
15884
15885 # type: verbatim
15886 #: ../src/guestfs-actions.pod:6796
15887 #, no-wrap
15888 msgid ""
15889 " int\n"
15890 " guestfs_write_file (guestfs_h *g,\n"
15891 "                     const char *path,\n"
15892 "                     const char *content,\n"
15893 "                     int size);\n"
15894 "\n"
15895 msgstr ""
15896
15897 # type: textblock
15898 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4532
15899 msgid ""
15900 "This call creates a file called C<path>.  The contents of the file is the "
15901 "string C<content> (which can contain any 8 bit data), with length C<size>."
15902 msgstr ""
15903
15904 # type: textblock
15905 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4536
15906 msgid ""
15907 "As a special case, if C<size> is C<0> then the length is calculated using "
15908 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15909 msgstr ""
15910
15911 # type: textblock
15912 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4540
15913 msgid ""
15914 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15915 "I<not> work, even if the length is specified."
15916 msgstr ""
15917
15918 # type: textblock
15919 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4546
15920 msgid ""
15921 "This function is deprecated.  In new code, use the C<write> call instead."
15922 msgstr ""
15923
15924 # type: =head2
15925 #: ../src/guestfs-actions.pod:6827
15926 msgid "guestfs_zegrep"
15927 msgstr ""
15928
15929 # type: verbatim
15930 #: ../src/guestfs-actions.pod:6829
15931 #, no-wrap
15932 msgid ""
15933 " char **\n"
15934 " guestfs_zegrep (guestfs_h *g,\n"
15935 "                 const char *regex,\n"
15936 "                 const char *path);\n"
15937 "\n"
15938 msgstr ""
15939
15940 # type: textblock
15941 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4557
15942 msgid ""
15943 "This calls the external C<zegrep> program and returns the matching lines."
15944 msgstr ""
15945
15946 # type: =head2
15947 #: ../src/guestfs-actions.pod:6846
15948 msgid "guestfs_zegrepi"
15949 msgstr ""
15950
15951 # type: verbatim
15952 #: ../src/guestfs-actions.pod:6848
15953 #, no-wrap
15954 msgid ""
15955 " char **\n"
15956 " guestfs_zegrepi (guestfs_h *g,\n"
15957 "                  const char *regex,\n"
15958 "                  const char *path);\n"
15959 "\n"
15960 msgstr ""
15961
15962 # type: textblock
15963 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4567
15964 msgid ""
15965 "This calls the external C<zegrep -i> program and returns the matching lines."
15966 msgstr ""
15967
15968 # type: =head2
15969 #: ../src/guestfs-actions.pod:6865
15970 msgid "guestfs_zero"
15971 msgstr ""
15972
15973 # type: verbatim
15974 #: ../src/guestfs-actions.pod:6867
15975 #, no-wrap
15976 msgid ""
15977 " int\n"
15978 " guestfs_zero (guestfs_h *g,\n"
15979 "               const char *device);\n"
15980 "\n"
15981 msgstr ""
15982
15983 # type: textblock
15984 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4577
15985 msgid "This command writes zeroes over the first few blocks of C<device>."
15986 msgstr ""
15987
15988 # type: textblock
15989 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4579
15990 msgid ""
15991 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15992 "securely wipe the device).  It should be sufficient to remove any partition "
15993 "tables, filesystem superblocks and so on."
15994 msgstr ""
15995
15996 # type: textblock
15997 #: ../src/guestfs-actions.pod:6877
15998 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15999 msgstr ""
16000
16001 # type: =head2
16002 #: ../src/guestfs-actions.pod:6888
16003 msgid "guestfs_zero_device"
16004 msgstr ""
16005
16006 # type: verbatim
16007 #: ../src/guestfs-actions.pod:6890
16008 #, no-wrap
16009 msgid ""
16010 " int\n"
16011 " guestfs_zero_device (guestfs_h *g,\n"
16012 "                      const char *device);\n"
16013 "\n"
16014 msgstr ""
16015
16016 # type: textblock
16017 #: ../src/guestfs-actions.pod:6894
16018 msgid ""
16019 "This command writes zeroes over the entire C<device>.  Compare with "
16020 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16021 msgstr ""
16022
16023 # type: textblock
16024 #: ../src/guestfs-actions.pod:6908
16025 msgid "(Added in 1.3.1)"
16026 msgstr ""
16027
16028 # type: =head2
16029 #: ../src/guestfs-actions.pod:6910
16030 msgid "guestfs_zerofree"
16031 msgstr ""
16032
16033 # type: verbatim
16034 #: ../src/guestfs-actions.pod:6912
16035 #, no-wrap
16036 msgid ""
16037 " int\n"
16038 " guestfs_zerofree (guestfs_h *g,\n"
16039 "                   const char *device);\n"
16040 "\n"
16041 msgstr ""
16042
16043 # type: textblock
16044 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4600
16045 msgid ""
16046 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16047 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16048 "possible to compress the filesystem more effectively."
16049 msgstr ""
16050
16051 # type: textblock
16052 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4605
16053 msgid "You should B<not> run this program if the filesystem is mounted."
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4608
16058 msgid ""
16059 "It is possible that using this program can damage the filesystem or data on "
16060 "the filesystem."
16061 msgstr ""
16062
16063 # type: =head2
16064 #: ../src/guestfs-actions.pod:6931
16065 msgid "guestfs_zfgrep"
16066 msgstr ""
16067
16068 # type: verbatim
16069 #: ../src/guestfs-actions.pod:6933
16070 #, no-wrap
16071 msgid ""
16072 " char **\n"
16073 " guestfs_zfgrep (guestfs_h *g,\n"
16074 "                 const char *pattern,\n"
16075 "                 const char *path);\n"
16076 "\n"
16077 msgstr ""
16078
16079 # type: textblock
16080 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4615
16081 msgid ""
16082 "This calls the external C<zfgrep> program and returns the matching lines."
16083 msgstr ""
16084
16085 # type: =head2
16086 #: ../src/guestfs-actions.pod:6950
16087 msgid "guestfs_zfgrepi"
16088 msgstr ""
16089
16090 # type: verbatim
16091 #: ../src/guestfs-actions.pod:6952
16092 #, no-wrap
16093 msgid ""
16094 " char **\n"
16095 " guestfs_zfgrepi (guestfs_h *g,\n"
16096 "                  const char *pattern,\n"
16097 "                  const char *path);\n"
16098 "\n"
16099 msgstr ""
16100
16101 # type: textblock
16102 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4625
16103 msgid ""
16104 "This calls the external C<zfgrep -i> program and returns the matching lines."
16105 msgstr ""
16106
16107 # type: =head2
16108 #: ../src/guestfs-actions.pod:6969
16109 msgid "guestfs_zfile"
16110 msgstr ""
16111
16112 # type: verbatim
16113 #: ../src/guestfs-actions.pod:6971
16114 #, no-wrap
16115 msgid ""
16116 " char *\n"
16117 " guestfs_zfile (guestfs_h *g,\n"
16118 "                const char *meth,\n"
16119 "                const char *path);\n"
16120 "\n"
16121 msgstr ""
16122
16123 # type: textblock
16124 #: ../src/guestfs-actions.pod:6976 ../fish/guestfish-actions.pod:4635
16125 msgid ""
16126 "This command runs C<file> after first decompressing C<path> using C<method>."
16127 msgstr ""
16128
16129 # type: textblock
16130 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4638
16131 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16132 msgstr ""
16133
16134 # type: textblock
16135 #: ../src/guestfs-actions.pod:6981
16136 msgid ""
16137 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16138 "files."
16139 msgstr ""
16140
16141 # type: textblock
16142 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4643
16143 msgid ""
16144 "This function is deprecated.  In new code, use the C<file> call instead."
16145 msgstr ""
16146
16147 # type: =head2
16148 #: ../src/guestfs-actions.pod:6996
16149 msgid "guestfs_zgrep"
16150 msgstr ""
16151
16152 # type: verbatim
16153 #: ../src/guestfs-actions.pod:6998
16154 #, no-wrap
16155 msgid ""
16156 " char **\n"
16157 " guestfs_zgrep (guestfs_h *g,\n"
16158 "                const char *regex,\n"
16159 "                const char *path);\n"
16160 "\n"
16161 msgstr ""
16162
16163 # type: textblock
16164 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4654
16165 msgid ""
16166 "This calls the external C<zgrep> program and returns the matching lines."
16167 msgstr ""
16168
16169 # type: =head2
16170 #: ../src/guestfs-actions.pod:7015
16171 msgid "guestfs_zgrepi"
16172 msgstr ""
16173
16174 # type: verbatim
16175 #: ../src/guestfs-actions.pod:7017
16176 #, no-wrap
16177 msgid ""
16178 " char **\n"
16179 " guestfs_zgrepi (guestfs_h *g,\n"
16180 "                 const char *regex,\n"
16181 "                 const char *path);\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: textblock
16186 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4664
16187 msgid ""
16188 "This calls the external C<zgrep -i> program and returns the matching lines."
16189 msgstr ""
16190
16191 # type: =item
16192 #: ../src/guestfs-availability.pod:3
16193 msgid "B<augeas>"
16194 msgstr ""
16195
16196 # type: textblock
16197 #: ../src/guestfs-availability.pod:5
16198 msgid ""
16199 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16200 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16201 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16202 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16203 "L</guestfs_aug_save> L</guestfs_aug_set>"
16204 msgstr ""
16205
16206 # type: =item
16207 #: ../src/guestfs-availability.pod:21
16208 msgid "B<inotify>"
16209 msgstr ""
16210
16211 # type: textblock
16212 #: ../src/guestfs-availability.pod:23
16213 msgid ""
16214 "The following functions: L</guestfs_inotify_add_watch> L</"
16215 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16216 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16217 msgstr ""
16218
16219 # type: =item
16220 #: ../src/guestfs-availability.pod:31
16221 msgid "B<linuxfsuuid>"
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../src/guestfs-availability.pod:33
16226 msgid ""
16227 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16228 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16229 msgstr ""
16230
16231 # type: =item
16232 #: ../src/guestfs-availability.pod:40
16233 msgid "B<linuxmodules>"
16234 msgstr ""
16235
16236 # type: textblock
16237 #: ../src/guestfs-availability.pod:42
16238 msgid "The following functions: L</guestfs_modprobe>"
16239 msgstr ""
16240
16241 # type: =item
16242 #: ../src/guestfs-availability.pod:45
16243 msgid "B<linuxxattrs>"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../src/guestfs-availability.pod:47
16248 msgid ""
16249 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16250 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16251 "guestfs_removexattr> L</guestfs_setxattr>"
16252 msgstr ""
16253
16254 # type: =item
16255 #: ../src/guestfs-availability.pod:56
16256 msgid "B<luks>"
16257 msgstr ""
16258
16259 # type: textblock
16260 #: ../src/guestfs-availability.pod:58
16261 msgid ""
16262 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16263 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16264 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16265 msgstr ""
16266
16267 # type: =item
16268 #: ../src/guestfs-availability.pod:67
16269 msgid "B<lvm2>"
16270 msgstr ""
16271
16272 # type: textblock
16273 #: ../src/guestfs-availability.pod:69
16274 msgid ""
16275 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16276 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16277 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16278 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16279 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16280 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16281 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16282 msgstr ""
16283
16284 # type: =item
16285 #: ../src/guestfs-availability.pod:92
16286 msgid "B<mknod>"
16287 msgstr ""
16288
16289 # type: textblock
16290 #: ../src/guestfs-availability.pod:94
16291 msgid ""
16292 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16293 "guestfs_mknod_b> L</guestfs_mknod_c>"
16294 msgstr ""
16295
16296 # type: =item
16297 #: ../src/guestfs-availability.pod:100
16298 msgid "B<ntfs3g>"
16299 msgstr ""
16300
16301 # type: textblock
16302 #: ../src/guestfs-availability.pod:102
16303 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16304 msgstr ""
16305
16306 # type: =item
16307 #: ../src/guestfs-availability.pod:105
16308 msgid "B<ntfsprogs>"
16309 msgstr ""
16310
16311 # type: textblock
16312 #: ../src/guestfs-availability.pod:107
16313 msgid ""
16314 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16315 msgstr ""
16316
16317 # type: =item
16318 #: ../src/guestfs-availability.pod:111
16319 msgid "B<realpath>"
16320 msgstr ""
16321
16322 # type: textblock
16323 #: ../src/guestfs-availability.pod:113
16324 msgid "The following functions: L</guestfs_realpath>"
16325 msgstr ""
16326
16327 # type: =item
16328 #: ../src/guestfs-availability.pod:116
16329 msgid "B<scrub>"
16330 msgstr ""
16331
16332 # type: textblock
16333 #: ../src/guestfs-availability.pod:118
16334 msgid ""
16335 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16336 "guestfs_scrub_freespace>"
16337 msgstr ""
16338
16339 # type: =item
16340 #: ../src/guestfs-availability.pod:123
16341 msgid "B<selinux>"
16342 msgstr ""
16343
16344 # type: textblock
16345 #: ../src/guestfs-availability.pod:125
16346 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16347 msgstr ""
16348
16349 # type: =item
16350 #: ../src/guestfs-availability.pod:129
16351 msgid "B<xz>"
16352 msgstr ""
16353
16354 # type: textblock
16355 #: ../src/guestfs-availability.pod:131
16356 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16357 msgstr ""
16358
16359 # type: =item
16360 #: ../src/guestfs-availability.pod:135
16361 msgid "B<zerofree>"
16362 msgstr ""
16363
16364 # type: textblock
16365 #: ../src/guestfs-availability.pod:137
16366 msgid "The following functions: L</guestfs_zerofree>"
16367 msgstr ""
16368
16369 # type: =head2
16370 #: ../src/guestfs-structs.pod:1
16371 msgid "guestfs_int_bool"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #: ../src/guestfs-structs.pod:3
16376 #, no-wrap
16377 msgid ""
16378 " struct guestfs_int_bool {\n"
16379 "   int32_t i;\n"
16380 "   int32_t b;\n"
16381 " };\n"
16382 " \n"
16383 msgstr ""
16384
16385 # type: verbatim
16386 #: ../src/guestfs-structs.pod:8
16387 #, no-wrap
16388 msgid ""
16389 " struct guestfs_int_bool_list {\n"
16390 "   uint32_t len; /* Number of elements in list. */\n"
16391 "   struct guestfs_int_bool *val; /* Elements. */\n"
16392 " };\n"
16393 " \n"
16394 msgstr ""
16395
16396 # type: verbatim
16397 #: ../src/guestfs-structs.pod:13
16398 #, no-wrap
16399 msgid ""
16400 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16401 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16402 "\n"
16403 msgstr ""
16404
16405 # type: =head2
16406 #: ../src/guestfs-structs.pod:16
16407 msgid "guestfs_lvm_pv"
16408 msgstr ""
16409
16410 # type: verbatim
16411 #: ../src/guestfs-structs.pod:18
16412 #, no-wrap
16413 msgid ""
16414 " struct guestfs_lvm_pv {\n"
16415 "   char *pv_name;\n"
16416 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16417 "   char pv_uuid[32];\n"
16418 "   char *pv_fmt;\n"
16419 "   uint64_t pv_size;\n"
16420 "   uint64_t dev_size;\n"
16421 "   uint64_t pv_free;\n"
16422 "   uint64_t pv_used;\n"
16423 "   char *pv_attr;\n"
16424 "   int64_t pv_pe_count;\n"
16425 "   int64_t pv_pe_alloc_count;\n"
16426 "   char *pv_tags;\n"
16427 "   uint64_t pe_start;\n"
16428 "   int64_t pv_mda_count;\n"
16429 "   uint64_t pv_mda_free;\n"
16430 " };\n"
16431 " \n"
16432 msgstr ""
16433
16434 # type: verbatim
16435 #: ../src/guestfs-structs.pod:36
16436 #, no-wrap
16437 msgid ""
16438 " struct guestfs_lvm_pv_list {\n"
16439 "   uint32_t len; /* Number of elements in list. */\n"
16440 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16441 " };\n"
16442 " \n"
16443 msgstr ""
16444
16445 # type: verbatim
16446 #: ../src/guestfs-structs.pod:41
16447 #, no-wrap
16448 msgid ""
16449 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16450 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16451 "\n"
16452 msgstr ""
16453
16454 # type: =head2
16455 #: ../src/guestfs-structs.pod:44
16456 msgid "guestfs_lvm_vg"
16457 msgstr ""
16458
16459 # type: verbatim
16460 #: ../src/guestfs-structs.pod:46
16461 #, no-wrap
16462 msgid ""
16463 " struct guestfs_lvm_vg {\n"
16464 "   char *vg_name;\n"
16465 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16466 "   char vg_uuid[32];\n"
16467 "   char *vg_fmt;\n"
16468 "   char *vg_attr;\n"
16469 "   uint64_t vg_size;\n"
16470 "   uint64_t vg_free;\n"
16471 "   char *vg_sysid;\n"
16472 "   uint64_t vg_extent_size;\n"
16473 "   int64_t vg_extent_count;\n"
16474 "   int64_t vg_free_count;\n"
16475 "   int64_t max_lv;\n"
16476 "   int64_t max_pv;\n"
16477 "   int64_t pv_count;\n"
16478 "   int64_t lv_count;\n"
16479 "   int64_t snap_count;\n"
16480 "   int64_t vg_seqno;\n"
16481 "   char *vg_tags;\n"
16482 "   int64_t vg_mda_count;\n"
16483 "   uint64_t vg_mda_free;\n"
16484 " };\n"
16485 " \n"
16486 msgstr ""
16487
16488 # type: verbatim
16489 #: ../src/guestfs-structs.pod:69
16490 #, no-wrap
16491 msgid ""
16492 " struct guestfs_lvm_vg_list {\n"
16493 "   uint32_t len; /* Number of elements in list. */\n"
16494 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16495 " };\n"
16496 " \n"
16497 msgstr ""
16498
16499 # type: verbatim
16500 #: ../src/guestfs-structs.pod:74
16501 #, no-wrap
16502 msgid ""
16503 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16504 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: =head2
16509 #: ../src/guestfs-structs.pod:77
16510 msgid "guestfs_lvm_lv"
16511 msgstr ""
16512
16513 # type: verbatim
16514 #: ../src/guestfs-structs.pod:79
16515 #, no-wrap
16516 msgid ""
16517 " struct guestfs_lvm_lv {\n"
16518 "   char *lv_name;\n"
16519 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16520 "   char lv_uuid[32];\n"
16521 "   char *lv_attr;\n"
16522 "   int64_t lv_major;\n"
16523 "   int64_t lv_minor;\n"
16524 "   int64_t lv_kernel_major;\n"
16525 "   int64_t lv_kernel_minor;\n"
16526 "   uint64_t lv_size;\n"
16527 "   int64_t seg_count;\n"
16528 "   char *origin;\n"
16529 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16530 "   float snap_percent;\n"
16531 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16532 "   float copy_percent;\n"
16533 "   char *move_pv;\n"
16534 "   char *lv_tags;\n"
16535 "   char *mirror_log;\n"
16536 "   char *modules;\n"
16537 " };\n"
16538 " \n"
16539 msgstr ""
16540
16541 # type: verbatim
16542 #: ../src/guestfs-structs.pod:101
16543 #, no-wrap
16544 msgid ""
16545 " struct guestfs_lvm_lv_list {\n"
16546 "   uint32_t len; /* Number of elements in list. */\n"
16547 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16548 " };\n"
16549 " \n"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #: ../src/guestfs-structs.pod:106
16554 #, no-wrap
16555 msgid ""
16556 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16557 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16558 "\n"
16559 msgstr ""
16560
16561 # type: verbatim
16562 #: ../src/guestfs-structs.pod:111
16563 #, no-wrap
16564 msgid ""
16565 " struct guestfs_stat {\n"
16566 "   int64_t dev;\n"
16567 "   int64_t ino;\n"
16568 "   int64_t mode;\n"
16569 "   int64_t nlink;\n"
16570 "   int64_t uid;\n"
16571 "   int64_t gid;\n"
16572 "   int64_t rdev;\n"
16573 "   int64_t size;\n"
16574 "   int64_t blksize;\n"
16575 "   int64_t blocks;\n"
16576 "   int64_t atime;\n"
16577 "   int64_t mtime;\n"
16578 "   int64_t ctime;\n"
16579 " };\n"
16580 " \n"
16581 msgstr ""
16582
16583 # type: verbatim
16584 #: ../src/guestfs-structs.pod:127
16585 #, no-wrap
16586 msgid ""
16587 " struct guestfs_stat_list {\n"
16588 "   uint32_t len; /* Number of elements in list. */\n"
16589 "   struct guestfs_stat *val; /* Elements. */\n"
16590 " };\n"
16591 " \n"
16592 msgstr ""
16593
16594 # type: verbatim
16595 #: ../src/guestfs-structs.pod:132
16596 #, no-wrap
16597 msgid ""
16598 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16599 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16600 "\n"
16601 msgstr ""
16602
16603 # type: verbatim
16604 #: ../src/guestfs-structs.pod:137
16605 #, no-wrap
16606 msgid ""
16607 " struct guestfs_statvfs {\n"
16608 "   int64_t bsize;\n"
16609 "   int64_t frsize;\n"
16610 "   int64_t blocks;\n"
16611 "   int64_t bfree;\n"
16612 "   int64_t bavail;\n"
16613 "   int64_t files;\n"
16614 "   int64_t ffree;\n"
16615 "   int64_t favail;\n"
16616 "   int64_t fsid;\n"
16617 "   int64_t flag;\n"
16618 "   int64_t namemax;\n"
16619 " };\n"
16620 " \n"
16621 msgstr ""
16622
16623 # type: verbatim
16624 #: ../src/guestfs-structs.pod:151
16625 #, no-wrap
16626 msgid ""
16627 " struct guestfs_statvfs_list {\n"
16628 "   uint32_t len; /* Number of elements in list. */\n"
16629 "   struct guestfs_statvfs *val; /* Elements. */\n"
16630 " };\n"
16631 " \n"
16632 msgstr ""
16633
16634 # type: verbatim
16635 #: ../src/guestfs-structs.pod:156
16636 #, no-wrap
16637 msgid ""
16638 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16639 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16640 "\n"
16641 msgstr ""
16642
16643 # type: =head2
16644 #: ../src/guestfs-structs.pod:159
16645 msgid "guestfs_dirent"
16646 msgstr ""
16647
16648 # type: verbatim
16649 #: ../src/guestfs-structs.pod:161
16650 #, no-wrap
16651 msgid ""
16652 " struct guestfs_dirent {\n"
16653 "   int64_t ino;\n"
16654 "   char ftyp;\n"
16655 "   char *name;\n"
16656 " };\n"
16657 " \n"
16658 msgstr ""
16659
16660 # type: verbatim
16661 #: ../src/guestfs-structs.pod:167
16662 #, no-wrap
16663 msgid ""
16664 " struct guestfs_dirent_list {\n"
16665 "   uint32_t len; /* Number of elements in list. */\n"
16666 "   struct guestfs_dirent *val; /* Elements. */\n"
16667 " };\n"
16668 " \n"
16669 msgstr ""
16670
16671 # type: verbatim
16672 #: ../src/guestfs-structs.pod:172
16673 #, no-wrap
16674 msgid ""
16675 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16676 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16677 "\n"
16678 msgstr ""
16679
16680 # type: verbatim
16681 #: ../src/guestfs-structs.pod:177
16682 #, no-wrap
16683 msgid ""
16684 " struct guestfs_version {\n"
16685 "   int64_t major;\n"
16686 "   int64_t minor;\n"
16687 "   int64_t release;\n"
16688 "   char *extra;\n"
16689 " };\n"
16690 " \n"
16691 msgstr ""
16692
16693 # type: verbatim
16694 #: ../src/guestfs-structs.pod:184
16695 #, no-wrap
16696 msgid ""
16697 " struct guestfs_version_list {\n"
16698 "   uint32_t len; /* Number of elements in list. */\n"
16699 "   struct guestfs_version *val; /* Elements. */\n"
16700 " };\n"
16701 " \n"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../src/guestfs-structs.pod:189
16706 #, no-wrap
16707 msgid ""
16708 " void guestfs_free_version (struct guestfs_free_version *);\n"
16709 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16710 "\n"
16711 msgstr ""
16712
16713 # type: =head2
16714 #: ../src/guestfs-structs.pod:192
16715 msgid "guestfs_xattr"
16716 msgstr ""
16717
16718 # type: verbatim
16719 #: ../src/guestfs-structs.pod:194
16720 #, no-wrap
16721 msgid ""
16722 " struct guestfs_xattr {\n"
16723 "   char *attrname;\n"
16724 "   /* The next two fields describe a byte array. */\n"
16725 "   uint32_t attrval_len;\n"
16726 "   char *attrval;\n"
16727 " };\n"
16728 " \n"
16729 msgstr ""
16730
16731 # type: verbatim
16732 #: ../src/guestfs-structs.pod:201
16733 #, no-wrap
16734 msgid ""
16735 " struct guestfs_xattr_list {\n"
16736 "   uint32_t len; /* Number of elements in list. */\n"
16737 "   struct guestfs_xattr *val; /* Elements. */\n"
16738 " };\n"
16739 " \n"
16740 msgstr ""
16741
16742 # type: verbatim
16743 #: ../src/guestfs-structs.pod:206
16744 #, no-wrap
16745 msgid ""
16746 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16747 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16748 "\n"
16749 msgstr ""
16750
16751 # type: =head2
16752 #: ../src/guestfs-structs.pod:209
16753 msgid "guestfs_inotify_event"
16754 msgstr ""
16755
16756 # type: verbatim
16757 #: ../src/guestfs-structs.pod:211
16758 #, no-wrap
16759 msgid ""
16760 " struct guestfs_inotify_event {\n"
16761 "   int64_t in_wd;\n"
16762 "   uint32_t in_mask;\n"
16763 "   uint32_t in_cookie;\n"
16764 "   char *in_name;\n"
16765 " };\n"
16766 " \n"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../src/guestfs-structs.pod:218
16771 #, no-wrap
16772 msgid ""
16773 " struct guestfs_inotify_event_list {\n"
16774 "   uint32_t len; /* Number of elements in list. */\n"
16775 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16776 " };\n"
16777 " \n"
16778 msgstr ""
16779
16780 # type: verbatim
16781 #: ../src/guestfs-structs.pod:223
16782 #, no-wrap
16783 msgid ""
16784 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16785 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16786 "\n"
16787 msgstr ""
16788
16789 # type: =head2
16790 #: ../src/guestfs-structs.pod:226
16791 msgid "guestfs_partition"
16792 msgstr ""
16793
16794 # type: verbatim
16795 #: ../src/guestfs-structs.pod:228
16796 #, no-wrap
16797 msgid ""
16798 " struct guestfs_partition {\n"
16799 "   int32_t part_num;\n"
16800 "   uint64_t part_start;\n"
16801 "   uint64_t part_end;\n"
16802 "   uint64_t part_size;\n"
16803 " };\n"
16804 " \n"
16805 msgstr ""
16806
16807 # type: verbatim
16808 #: ../src/guestfs-structs.pod:235
16809 #, no-wrap
16810 msgid ""
16811 " struct guestfs_partition_list {\n"
16812 "   uint32_t len; /* Number of elements in list. */\n"
16813 "   struct guestfs_partition *val; /* Elements. */\n"
16814 " };\n"
16815 " \n"
16816 msgstr ""
16817
16818 # type: verbatim
16819 #: ../src/guestfs-structs.pod:240
16820 #, no-wrap
16821 msgid ""
16822 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16823 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16824 "\n"
16825 msgstr ""
16826
16827 # type: =head2
16828 #: ../src/guestfs-structs.pod:243
16829 msgid "guestfs_application"
16830 msgstr ""
16831
16832 # type: verbatim
16833 #: ../src/guestfs-structs.pod:245
16834 #, no-wrap
16835 msgid ""
16836 " struct guestfs_application {\n"
16837 "   char *app_name;\n"
16838 "   char *app_display_name;\n"
16839 "   int32_t app_epoch;\n"
16840 "   char *app_version;\n"
16841 "   char *app_release;\n"
16842 "   char *app_install_path;\n"
16843 "   char *app_trans_path;\n"
16844 "   char *app_publisher;\n"
16845 "   char *app_url;\n"
16846 "   char *app_source_package;\n"
16847 "   char *app_summary;\n"
16848 "   char *app_description;\n"
16849 " };\n"
16850 " \n"
16851 msgstr ""
16852
16853 # type: verbatim
16854 #: ../src/guestfs-structs.pod:260
16855 #, no-wrap
16856 msgid ""
16857 " struct guestfs_application_list {\n"
16858 "   uint32_t len; /* Number of elements in list. */\n"
16859 "   struct guestfs_application *val; /* Elements. */\n"
16860 " };\n"
16861 " \n"
16862 msgstr ""
16863
16864 # type: verbatim
16865 #: ../src/guestfs-structs.pod:265
16866 #, no-wrap
16867 msgid ""
16868 " void guestfs_free_application (struct guestfs_free_application *);\n"
16869 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16870 "\n"
16871 msgstr ""
16872
16873 # type: textblock
16874 #: ../fish/guestfish.pod:5
16875 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16876 msgstr ""
16877
16878 # type: verbatim
16879 #: ../fish/guestfish.pod:9
16880 #, no-wrap
16881 msgid ""
16882 " guestfish [--options] [commands]\n"
16883 "\n"
16884 msgstr ""
16885
16886 # type: verbatim
16887 #: ../fish/guestfish.pod:11
16888 #, no-wrap
16889 msgid ""
16890 " guestfish\n"
16891 "\n"
16892 msgstr ""
16893
16894 # type: verbatim
16895 #: ../fish/guestfish.pod:13
16896 #, no-wrap
16897 msgid ""
16898 " guestfish [--ro|--rw] -a disk.img\n"
16899 "\n"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish.pod:15
16904 #, no-wrap
16905 msgid ""
16906 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16907 "\n"
16908 msgstr ""
16909
16910 # type: verbatim
16911 #: ../fish/guestfish.pod:17
16912 #, no-wrap
16913 msgid ""
16914 " guestfish -d libvirt-domain\n"
16915 "\n"
16916 msgstr ""
16917
16918 # type: verbatim
16919 #: ../fish/guestfish.pod:19
16920 #, no-wrap
16921 msgid ""
16922 " guestfish [--ro|--rw] -a disk.img -i\n"
16923 "\n"
16924 msgstr ""
16925
16926 # type: verbatim
16927 #: ../fish/guestfish.pod:21
16928 #, no-wrap
16929 msgid ""
16930 " guestfish -d libvirt-domain -i\n"
16931 "\n"
16932 msgstr ""
16933
16934 # type: =head1
16935 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16936 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16937 #: ../tools/virt-rescue.pl:41
16938 msgid "WARNING"
16939 msgstr ""
16940
16941 # type: textblock
16942 #: ../fish/guestfish.pod:25
16943 msgid ""
16944 "Using guestfish in read/write mode on live virtual machines can be "
16945 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16946 "option to use guestfish safely if the disk image or virtual machine might be "
16947 "live."
16948 msgstr ""
16949
16950 # type: textblock
16951 #: ../fish/guestfish.pod:32
16952 msgid ""
16953 "Guestfish is a shell and command-line tool for examining and modifying "
16954 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16955 "functionality of the guestfs API, see L<guestfs(3)>."
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:36
16960 msgid ""
16961 "Guestfish gives you structured access to the libguestfs API, from shell "
16962 "scripts or the command line or interactively.  If you want to rescue a "
16963 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16964 "command."
16965 msgstr ""
16966
16967 # type: =head1
16968 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16969 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16970 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16971 msgid "EXAMPLES"
16972 msgstr ""
16973
16974 # type: =head2
16975 #: ../fish/guestfish.pod:43
16976 msgid "As an interactive shell"
16977 msgstr ""
16978
16979 # type: verbatim
16980 #: ../fish/guestfish.pod:45
16981 #, no-wrap
16982 msgid ""
16983 " $ guestfish\n"
16984 " \n"
16985 msgstr ""
16986
16987 # type: verbatim
16988 #: ../fish/guestfish.pod:47
16989 #, no-wrap
16990 msgid ""
16991 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16992 " editing virtual machine filesystems.\n"
16993 " \n"
16994 msgstr ""
16995
16996 # type: verbatim
16997 #: ../fish/guestfish.pod:50
16998 #, no-wrap
16999 msgid ""
17000 " Type: 'help' for a list of commands\n"
17001 "       'man' to read the manual\n"
17002 "       'quit' to quit the shell\n"
17003 " \n"
17004 msgstr ""
17005
17006 # type: verbatim
17007 #: ../fish/guestfish.pod:54
17008 #, no-wrap
17009 msgid ""
17010 " ><fs> add-ro disk.img\n"
17011 " ><fs> run\n"
17012 " ><fs> list-filesystems\n"
17013 " /dev/sda1: ext4\n"
17014 " /dev/vg_guest/lv_root: ext4\n"
17015 " /dev/vg_guest/lv_swap: swap\n"
17016 " ><fs> mount /dev/vg_guest/lv_root /\n"
17017 " ><fs> cat /etc/fstab\n"
17018 " # /etc/fstab\n"
17019 " # Created by anaconda\n"
17020 " [...]\n"
17021 " ><fs> exit\n"
17022 "\n"
17023 msgstr ""
17024
17025 # type: =head2
17026 #: ../fish/guestfish.pod:67
17027 msgid "From shell scripts"
17028 msgstr ""
17029
17030 # type: textblock
17031 #: ../fish/guestfish.pod:69
17032 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17033 msgstr ""
17034
17035 # type: verbatim
17036 #: ../fish/guestfish.pod:71
17037 #, no-wrap
17038 msgid ""
17039 " guestfish <<_EOF_\n"
17040 " add disk.img\n"
17041 " run\n"
17042 " mount /dev/vg_guest/lv_root /\n"
17043 " write /etc/motd \"Welcome, new users\"\n"
17044 " _EOF_\n"
17045 "\n"
17046 msgstr ""
17047
17048 # type: textblock
17049 #: ../fish/guestfish.pod:78
17050 msgid "List the LVM logical volumes in a disk image:"
17051 msgstr ""
17052
17053 # type: verbatim
17054 #: ../fish/guestfish.pod:80
17055 #, no-wrap
17056 msgid ""
17057 " guestfish -a disk.img --ro <<_EOF_\n"
17058 " run\n"
17059 " lvs\n"
17060 " _EOF_\n"
17061 "\n"
17062 msgstr ""
17063
17064 # type: textblock
17065 #: ../fish/guestfish.pod:85
17066 msgid "List all the filesystems in a disk image:"
17067 msgstr ""
17068
17069 # type: verbatim
17070 #: ../fish/guestfish.pod:87
17071 #, no-wrap
17072 msgid ""
17073 " guestfish -a disk.img --ro <<_EOF_\n"
17074 " run\n"
17075 " list-filesystems\n"
17076 " _EOF_\n"
17077 "\n"
17078 msgstr ""
17079
17080 # type: =head2
17081 #: ../fish/guestfish.pod:92
17082 msgid "On one command line"
17083 msgstr ""
17084
17085 # type: textblock
17086 #: ../fish/guestfish.pod:94
17087 msgid "Update C</etc/resolv.conf> in a guest:"
17088 msgstr ""
17089
17090 # type: verbatim
17091 #: ../fish/guestfish.pod:96
17092 #, no-wrap
17093 msgid ""
17094 " guestfish \\\n"
17095 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17096 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17097 "\n"
17098 msgstr ""
17099
17100 # type: textblock
17101 #: ../fish/guestfish.pod:100
17102 msgid "Edit C</boot/grub/grub.conf> interactively:"
17103 msgstr ""
17104
17105 # type: verbatim
17106 #: ../fish/guestfish.pod:102
17107 #, no-wrap
17108 msgid ""
17109 " guestfish --rw --add disk.img \\\n"
17110 "   --mount /dev/vg_guest/lv_root \\\n"
17111 "   --mount /dev/sda1:/boot \\\n"
17112 "   edit /boot/grub/grub.conf\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: =head2
17117 #: ../fish/guestfish.pod:107
17118 msgid "Mount disks automatically"
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:109
17123 msgid ""
17124 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17125 msgstr ""
17126
17127 # type: verbatim
17128 #: ../fish/guestfish.pod:112
17129 #, no-wrap
17130 msgid ""
17131 " guestfish --ro -a disk.img -i cat /etc/group\n"
17132 "\n"
17133 msgstr ""
17134
17135 # type: verbatim
17136 #: ../fish/guestfish.pod:114
17137 #, no-wrap
17138 msgid ""
17139 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17140 "\n"
17141 msgstr ""
17142
17143 # type: textblock
17144 #: ../fish/guestfish.pod:116
17145 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17146 msgstr ""
17147
17148 # type: verbatim
17149 #: ../fish/guestfish.pod:118
17150 #, no-wrap
17151 msgid ""
17152 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17153 "\n"
17154 msgstr ""
17155
17156 # type: =head2
17157 #: ../fish/guestfish.pod:120
17158 msgid "As a script interpreter"
17159 msgstr ""
17160
17161 # type: textblock
17162 #: ../fish/guestfish.pod:122
17163 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17164 msgstr ""
17165
17166 # type: verbatim
17167 #: ../fish/guestfish.pod:124
17168 #, no-wrap
17169 msgid ""
17170 " #!/usr/bin/guestfish -f\n"
17171 " sparse test1.img 100M\n"
17172 " run\n"
17173 " part-disk /dev/sda mbr\n"
17174 " mkfs ext2 /dev/sda1\n"
17175 "\n"
17176 msgstr ""
17177
17178 # type: =head2
17179 #: ../fish/guestfish.pod:130
17180 msgid "Start with a prepared disk"
17181 msgstr ""
17182
17183 # type: textblock
17184 #: ../fish/guestfish.pod:132
17185 msgid ""
17186 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17187 "single ext2-formatted partition:"
17188 msgstr ""
17189
17190 # type: verbatim
17191 #: ../fish/guestfish.pod:135
17192 #, no-wrap
17193 msgid ""
17194 " guestfish -N fs\n"
17195 "\n"
17196 msgstr ""
17197
17198 # type: textblock
17199 #: ../fish/guestfish.pod:137
17200 msgid "To list what is available do:"
17201 msgstr ""
17202
17203 # type: verbatim
17204 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
17205 #, no-wrap
17206 msgid ""
17207 " guestfish -N help | less\n"
17208 "\n"
17209 msgstr ""
17210
17211 # type: =head2
17212 #: ../fish/guestfish.pod:141
17213 msgid "Remote control"
17214 msgstr ""
17215
17216 # type: verbatim
17217 #: ../fish/guestfish.pod:143
17218 #, no-wrap
17219 msgid ""
17220 " eval \"`guestfish --listen`\"\n"
17221 " guestfish --remote add-ro disk.img\n"
17222 " guestfish --remote run\n"
17223 " guestfish --remote lvs\n"
17224 "\n"
17225 msgstr ""
17226
17227 # type: =head1
17228 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17229 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
17230 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
17231 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
17232 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98
17233 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
17234 #: ../tools/virt-list-partitions.pl:51
17235 msgid "OPTIONS"
17236 msgstr ""
17237
17238 # type: =item
17239 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17240 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
17241 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
17242 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
17243 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
17244 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
17245 msgid "B<--help>"
17246 msgstr ""
17247
17248 # type: textblock
17249 #: ../fish/guestfish.pod:154
17250 msgid "Displays general help on options."
17251 msgstr ""
17252
17253 # type: =item
17254 #: ../fish/guestfish.pod:156
17255 msgid "B<-h> | B<--cmd-help>"
17256 msgstr ""
17257
17258 # type: textblock
17259 #: ../fish/guestfish.pod:158
17260 msgid "Lists all available guestfish commands."
17261 msgstr ""
17262
17263 # type: =item
17264 #: ../fish/guestfish.pod:160
17265 msgid "B<-h cmd> | B<--cmd-help cmd>"
17266 msgstr ""
17267
17268 # type: textblock
17269 #: ../fish/guestfish.pod:162
17270 msgid "Displays detailed help on a single command C<cmd>."
17271 msgstr ""
17272
17273 # type: =item
17274 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17275 msgid "B<-a image> | B<--add image>"
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:166
17280 msgid "Add a block device or virtual machine image to the shell."
17281 msgstr ""
17282
17283 # type: textblock
17284 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17285 msgid ""
17286 "The format of the disk image is auto-detected.  To override this and force a "
17287 "particular format use the I<--format=..> option."
17288 msgstr ""
17289
17290 # type: =item
17291 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17292 msgid "B<-c URI> | B<--connect URI>"
17293 msgstr ""
17294
17295 # type: textblock
17296 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17297 msgid ""
17298 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17299 "URI to use.  The default is to use the default libvirt connection."
17300 msgstr ""
17301
17302 # type: =item
17303 #: ../fish/guestfish.pod:177
17304 msgid "B<--csh>"
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:179
17309 msgid ""
17310 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17311 "section L</REMOTE CONTROL AND CSH> below."
17312 msgstr ""
17313
17314 # type: =item
17315 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17316 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17321 msgid ""
17322 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17323 "used, then any libvirt domain can be used.  However in write mode, only "
17324 "libvirt domains which are shut down can be named here."
17325 msgstr ""
17326
17327 # type: =item
17328 #: ../fish/guestfish.pod:188
17329 msgid "B<-D> | B<--no-dest-paths>"
17330 msgstr ""
17331
17332 # type: textblock
17333 #: ../fish/guestfish.pod:190
17334 msgid ""
17335 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17336 "to hit the tab key to complete paths on the guest filesystem, but this "
17337 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17338 "allow this feature to be disabled."
17339 msgstr ""
17340
17341 # type: =item
17342 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17343 msgid "B<--echo-keys>"
17344 msgstr ""
17345
17346 # type: textblock
17347 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17348 msgid ""
17349 "When prompting for keys and passphrases, guestfish normally turns echoing "
17350 "off so you cannot see what you are typing.  If you are not worried about "
17351 "Tempest attacks and there is no one else in the room you can specify this "
17352 "flag to see what you are typing."
17353 msgstr ""
17354
17355 # type: =item
17356 #: ../fish/guestfish.pod:202
17357 msgid "B<-f file> | B<--file file>"
17358 msgstr ""
17359
17360 # type: textblock
17361 #: ../fish/guestfish.pod:204
17362 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17363 msgstr ""
17364
17365 # type: verbatim
17366 #: ../fish/guestfish.pod:207
17367 #, no-wrap
17368 msgid ""
17369 " #!/usr/bin/guestfish -f\n"
17370 "\n"
17371 msgstr ""
17372
17373 # type: =item
17374 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17375 msgid "B<--format=raw|qcow2|..> | B<--format>"
17376 msgstr ""
17377
17378 # type: textblock
17379 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17380 msgid ""
17381 "The default for the I<-a> option is to auto-detect the format of the disk "
17382 "image.  Using this forces the disk format for I<-a> options which follow on "
17383 "the command line.  Using I<--format> with no argument switches back to auto-"
17384 "detection for subsequent I<-a> options."
17385 msgstr ""
17386
17387 # type: textblock
17388 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
17389 #: ../inspector/virt-inspector.pl:431
17390 msgid "For example:"
17391 msgstr ""
17392
17393 # type: verbatim
17394 #: ../fish/guestfish.pod:218
17395 #, no-wrap
17396 msgid ""
17397 " guestfish --format=raw -a disk.img\n"
17398 "\n"
17399 msgstr ""
17400
17401 # type: textblock
17402 #: ../fish/guestfish.pod:220
17403 msgid "forces raw format (no auto-detection) for C<disk.img>."
17404 msgstr ""
17405
17406 # type: verbatim
17407 #: ../fish/guestfish.pod:222
17408 #, no-wrap
17409 msgid ""
17410 " guestfish --format=raw -a disk.img --format -a another.img\n"
17411 "\n"
17412 msgstr ""
17413
17414 # type: textblock
17415 #: ../fish/guestfish.pod:224
17416 msgid ""
17417 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17418 "detection for C<another.img>."
17419 msgstr ""
17420
17421 # type: textblock
17422 #: ../fish/guestfish.pod:227
17423 msgid ""
17424 "If you have untrusted raw-format guest disk images, you should use this "
17425 "option to specify the disk format.  This avoids a possible security problem "
17426 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17427 msgstr ""
17428
17429 # type: =item
17430 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17431 msgid "B<-i> | B<--inspector>"
17432 msgstr ""
17433
17434 # type: textblock
17435 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17436 msgid ""
17437 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17438 "system and mount filesystems as they would be mounted on the real virtual "
17439 "machine."
17440 msgstr ""
17441
17442 # type: textblock
17443 #: ../fish/guestfish.pod:238
17444 msgid "Typical usage is either:"
17445 msgstr ""
17446
17447 # type: verbatim
17448 #: ../fish/guestfish.pod:240
17449 #, no-wrap
17450 msgid ""
17451 " guestfish -d myguest -i\n"
17452 "\n"
17453 msgstr ""
17454
17455 # type: textblock
17456 #: ../fish/guestfish.pod:242
17457 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17458 msgstr ""
17459
17460 # type: verbatim
17461 #: ../fish/guestfish.pod:244
17462 #, no-wrap
17463 msgid ""
17464 " guestfish --ro -d myguest -i\n"
17465 "\n"
17466 msgstr ""
17467
17468 # type: textblock
17469 #: ../fish/guestfish.pod:246
17470 msgid "(for active domains, readonly), or specify the block device directly:"
17471 msgstr ""
17472
17473 # type: verbatim
17474 #: ../fish/guestfish.pod:248
17475 #, no-wrap
17476 msgid ""
17477 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17478 "\n"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:250
17483 msgid ""
17484 "Note that the command line syntax changed slightly over older versions of "
17485 "guestfish.  You can still use the old syntax:"
17486 msgstr ""
17487
17488 # type: verbatim
17489 #: ../fish/guestfish.pod:253
17490 #, no-wrap
17491 msgid ""
17492 " guestfish [--ro] -i disk.img\n"
17493 "\n"
17494 msgstr ""
17495
17496 # type: verbatim
17497 #: ../fish/guestfish.pod:255
17498 #, no-wrap
17499 msgid ""
17500 " guestfish [--ro] -i libvirt-domain\n"
17501 "\n"
17502 msgstr ""
17503
17504 # type: =item
17505 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17506 msgid "B<--keys-from-stdin>"
17507 msgstr ""
17508
17509 # type: textblock
17510 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17511 msgid ""
17512 "Read key or passphrase parameters from stdin.  The default is to try to read "
17513 "passphrases from the user by opening C</dev/tty>."
17514 msgstr ""
17515
17516 # type: =item
17517 #: ../fish/guestfish.pod:262
17518 msgid "B<--listen>"
17519 msgstr ""
17520
17521 # type: textblock
17522 #: ../fish/guestfish.pod:264
17523 msgid ""
17524 "Fork into the background and listen for remote commands.  See section L</"
17525 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17526 msgstr ""
17527
17528 # type: =item
17529 #: ../fish/guestfish.pod:267
17530 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17531 msgstr ""
17532
17533 # type: textblock
17534 #: ../fish/guestfish.pod:269
17535 msgid "Mount the named partition or logical volume on the given mountpoint."
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:271
17540 msgid "If the mountpoint is omitted, it defaults to C</>."
17541 msgstr ""
17542
17543 # type: textblock
17544 #: ../fish/guestfish.pod:273
17545 msgid "You have to mount something on C</> before most commands will work."
17546 msgstr ""
17547
17548 # type: textblock
17549 #: ../fish/guestfish.pod:275
17550 msgid ""
17551 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17552 "launched."
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish.pod:278
17557 msgid ""
17558 "If you don't know what filesystems a disk image contains, you can either run "
17559 "guestfish without this option, then list the partitions and LVs available "
17560 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
17561 "list-filesystems(1)> program."
17562 msgstr ""
17563
17564 # type: =item
17565 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17566 msgid "B<-n> | B<--no-sync>"
17567 msgstr ""
17568
17569 # type: textblock
17570 #: ../fish/guestfish.pod:285
17571 msgid ""
17572 "Disable autosync.  This is enabled by default.  See the discussion of "
17573 "autosync in the L<guestfs(3)> manpage."
17574 msgstr ""
17575
17576 # type: =item
17577 #: ../fish/guestfish.pod:288
17578 msgid "B<-N type> | B<--new type> | B<-N help>"
17579 msgstr ""
17580
17581 # type: textblock
17582 #: ../fish/guestfish.pod:290
17583 msgid ""
17584 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17585 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17586 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17587 "IMAGES> below."
17588 msgstr ""
17589
17590 # type: =item
17591 #: ../fish/guestfish.pod:295
17592 msgid "B<--progress-bars>"
17593 msgstr ""
17594
17595 # type: textblock
17596 #: ../fish/guestfish.pod:297
17597 msgid "Enable progress bars, even when guestfish is used non-interactively."
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish.pod:299
17602 msgid ""
17603 "Progress bars are enabled by default when guestfish is used as an "
17604 "interactive shell."
17605 msgstr ""
17606
17607 # type: =item
17608 #: ../fish/guestfish.pod:302
17609 msgid "B<--no-progress-bars>"
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish.pod:304
17614 msgid "Disable progress bars."
17615 msgstr ""
17616
17617 # type: =item
17618 #: ../fish/guestfish.pod:306
17619 msgid "B<--remote[=pid]>"
17620 msgstr ""
17621
17622 # type: textblock
17623 #: ../fish/guestfish.pod:308
17624 msgid ""
17625 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17626 "CONTROL GUESTFISH OVER A SOCKET> below."
17627 msgstr ""
17628
17629 # type: =item
17630 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17631 msgid "B<-r> | B<--ro>"
17632 msgstr ""
17633
17634 # type: textblock
17635 #: ../fish/guestfish.pod:313
17636 msgid ""
17637 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17638 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17639 msgstr ""
17640
17641 # type: textblock
17642 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17643 msgid ""
17644 "The option must always be used if the disk image or virtual machine might be "
17645 "running, and is generally recommended in cases where you don't need write "
17646 "access to the disk."
17647 msgstr ""
17648
17649 # type: textblock
17650 #: ../fish/guestfish.pod:320
17651 msgid ""
17652 "Note that prepared disk images created with I<-N> are not affected by the "
17653 "I<--ro> option."
17654 msgstr ""
17655
17656 # type: textblock
17657 #: ../fish/guestfish.pod:323
17658 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17659 msgstr ""
17660
17661 # type: =item
17662 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17663 #: ../tools/virt-rescue.pl:195
17664 msgid "B<--selinux>"
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:327
17669 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17670 msgstr ""
17671
17672 # type: =item
17673 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17674 msgid "B<-v> | B<--verbose>"
17675 msgstr ""
17676
17677 # type: textblock
17678 #: ../fish/guestfish.pod:331
17679 msgid ""
17680 "Enable very verbose messages.  This is particularly useful if you find a bug."
17681 msgstr ""
17682
17683 # type: =item
17684 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17685 msgid "B<-V> | B<--version>"
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish.pod:336
17690 msgid "Display the guestfish / libguestfs version number and exit."
17691 msgstr ""
17692
17693 # type: =item
17694 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17695 msgid "B<-w> | B<--rw>"
17696 msgstr ""
17697
17698 # type: textblock
17699 #: ../fish/guestfish.pod:340
17700 msgid ""
17701 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17702 "WRITE> below."
17703 msgstr ""
17704
17705 # type: =item
17706 #: ../fish/guestfish.pod:343
17707 msgid "B<-x>"
17708 msgstr ""
17709
17710 # type: textblock
17711 #: ../fish/guestfish.pod:345
17712 msgid "Echo each command before executing it."
17713 msgstr ""
17714
17715 # type: =head1
17716 #: ../fish/guestfish.pod:349
17717 msgid "COMMANDS ON COMMAND LINE"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:351
17722 msgid ""
17723 "Any additional (non-option) arguments are treated as commands to execute."
17724 msgstr ""
17725
17726 # type: textblock
17727 #: ../fish/guestfish.pod:354
17728 msgid ""
17729 "Commands to execute should be separated by a colon (C<:>), where the colon "
17730 "is a separate parameter.  Thus:"
17731 msgstr ""
17732
17733 # type: verbatim
17734 #: ../fish/guestfish.pod:357
17735 #, no-wrap
17736 msgid ""
17737 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17738 "\n"
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish.pod:359
17743 msgid ""
17744 "If there are no additional arguments, then we enter a shell, either an "
17745 "interactive shell with a prompt (if the input is a terminal) or a non-"
17746 "interactive shell."
17747 msgstr ""
17748
17749 # type: textblock
17750 #: ../fish/guestfish.pod:363
17751 msgid ""
17752 "In either command line mode or non-interactive shell, the first command that "
17753 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17754 "prompt) if a command fails, you can continue to enter commands."
17755 msgstr ""
17756
17757 # type: =head1
17758 #: ../fish/guestfish.pod:368
17759 msgid "USING launch (OR run)"
17760 msgstr ""
17761
17762 # type: textblock
17763 #: ../fish/guestfish.pod:370
17764 msgid ""
17765 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17766 "then launch it, then mount any disks you need, and finally issue actions/"
17767 "commands.  So the general order of the day is:"
17768 msgstr ""
17769
17770 # type: textblock
17771 #: ../fish/guestfish.pod:378
17772 msgid "add or -a/--add"
17773 msgstr ""
17774
17775 # type: textblock
17776 #: ../fish/guestfish.pod:382
17777 msgid "launch (aka run)"
17778 msgstr ""
17779
17780 # type: textblock
17781 #: ../fish/guestfish.pod:386
17782 msgid "mount or -m/--mount"
17783 msgstr ""
17784
17785 # type: textblock
17786 #: ../fish/guestfish.pod:390
17787 msgid "any other commands"
17788 msgstr ""
17789
17790 # type: textblock
17791 #: ../fish/guestfish.pod:394
17792 msgid ""
17793 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17794 "guest before mounting or performing any other commands."
17795 msgstr ""
17796
17797 # type: textblock
17798 #: ../fish/guestfish.pod:397
17799 msgid ""
17800 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17801 "I<--new> options were given then C<run> is done automatically, simply "
17802 "because guestfish can't perform the action you asked for without doing this."
17803 msgstr ""
17804
17805 # type: =head1
17806 #: ../fish/guestfish.pod:402
17807 msgid "OPENING DISKS FOR READ AND WRITE"
17808 msgstr ""
17809
17810 # type: textblock
17811 #: ../fish/guestfish.pod:404
17812 msgid ""
17813 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17814 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17815 "open disk images read-only or for writing."
17816 msgstr ""
17817
17818 # type: textblock
17819 #: ../fish/guestfish.pod:408
17820 msgid ""
17821 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17822 "disk images supplied on the command line for write.  To open a disk image "
17823 "read-only you have to do I<-a image --ro>."
17824 msgstr ""
17825
17826 # type: textblock
17827 #: ../fish/guestfish.pod:412
17828 msgid ""
17829 "This matters: If you accidentally open a live VM disk image writable then "
17830 "you will cause irreversible disk corruption."
17831 msgstr ""
17832
17833 # type: textblock
17834 #: ../fish/guestfish.pod:415
17835 msgid ""
17836 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17837 "images will be opened read-only.  You will have to either specify "
17838 "I<guestfish --rw> or change a configuration file in order to get write "
17839 "access for disk images specified by those other command line options."
17840 msgstr ""
17841
17842 # type: textblock
17843 #: ../fish/guestfish.pod:420
17844 msgid ""
17845 "This version of guestfish has a I<--rw> option which does nothing (it is "
17846 "already the default).  However it is highly recommended that you use this "
17847 "option to indicate that guestfish needs write access, and to prepare your "
17848 "scripts for the day when this option will be required for write access."
17849 msgstr ""
17850
17851 # type: textblock
17852 #: ../fish/guestfish.pod:426
17853 msgid ""
17854 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17855 "other libguestfs program apart from guestfish and guestmount."
17856 msgstr ""
17857
17858 # type: =head1
17859 #: ../fish/guestfish.pod:429
17860 msgid "QUOTING"
17861 msgstr ""
17862
17863 # type: textblock
17864 #: ../fish/guestfish.pod:431
17865 msgid ""
17866 "You can quote ordinary parameters using either single or double quotes.  For "
17867 "example:"
17868 msgstr ""
17869
17870 # type: verbatim
17871 #: ../fish/guestfish.pod:434
17872 #, no-wrap
17873 msgid ""
17874 " add \"file with a space.img\"\n"
17875 "\n"
17876 msgstr ""
17877
17878 # type: verbatim
17879 #: ../fish/guestfish.pod:436
17880 #, no-wrap
17881 msgid ""
17882 " rm '/file name'\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: verbatim
17887 #: ../fish/guestfish.pod:438
17888 #, no-wrap
17889 msgid ""
17890 " rm '/\"'\n"
17891 "\n"
17892 msgstr ""
17893
17894 # type: textblock
17895 #: ../fish/guestfish.pod:440
17896 msgid ""
17897 "A few commands require a list of strings to be passed.  For these, use a "
17898 "whitespace-separated list, enclosed in quotes.  Strings containing "
17899 "whitespace to be passed through must be enclosed in single quotes.  A "
17900 "literal single quote must be escaped with a backslash."
17901 msgstr ""
17902
17903 # type: verbatim
17904 #: ../fish/guestfish.pod:445
17905 #, no-wrap
17906 msgid ""
17907 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17908 " command \"/bin/echo 'foo      bar'\"\n"
17909 " command \"/bin/echo \\'foo\\'\"\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: =head1
17914 #: ../fish/guestfish.pod:449
17915 msgid "OPTIONAL ARGUMENTS"
17916 msgstr ""
17917
17918 # type: textblock
17919 #: ../fish/guestfish.pod:451
17920 msgid ""
17921 "Some commands take optional arguments.  These arguments appear in this "
17922 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17923 msgstr ""
17924
17925 # type: verbatim
17926 #: ../fish/guestfish.pod:455
17927 #, no-wrap
17928 msgid ""
17929 " add-drive-opts filename\n"
17930 "\n"
17931 msgstr ""
17932
17933 # type: verbatim
17934 #: ../fish/guestfish.pod:457
17935 #, no-wrap
17936 msgid ""
17937 " add-drive-opts filename readonly:true\n"
17938 "\n"
17939 msgstr ""
17940
17941 # type: verbatim
17942 #: ../fish/guestfish.pod:459
17943 #, no-wrap
17944 msgid ""
17945 " add-drive-opts filename format:qcow2 readonly:false\n"
17946 "\n"
17947 msgstr ""
17948
17949 # type: textblock
17950 #: ../fish/guestfish.pod:461
17951 msgid ""
17952 "Each optional argument can appear at most once.  All optional arguments must "
17953 "appear after the required ones."
17954 msgstr ""
17955
17956 # type: =head1
17957 #: ../fish/guestfish.pod:464
17958 msgid "NUMBERS"
17959 msgstr ""
17960
17961 # type: textblock
17962 #: ../fish/guestfish.pod:466
17963 msgid ""
17964 "This section applies to all commands which can take integers as parameters."
17965 msgstr ""
17966
17967 # type: =head2
17968 #: ../fish/guestfish.pod:469
17969 msgid "SIZE SUFFIX"
17970 msgstr ""
17971
17972 # type: textblock
17973 #: ../fish/guestfish.pod:471
17974 msgid ""
17975 "When the command takes a parameter measured in bytes, you can use one of the "
17976 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17977 msgstr ""
17978
17979 # type: =item
17980 #: ../fish/guestfish.pod:477
17981 msgid "B<k> or B<K> or B<KiB>"
17982 msgstr ""
17983
17984 # type: textblock
17985 #: ../fish/guestfish.pod:479
17986 msgid "The size in kilobytes (multiplied by 1024)."
17987 msgstr ""
17988
17989 # type: =item
17990 #: ../fish/guestfish.pod:481
17991 msgid "B<KB>"
17992 msgstr ""
17993
17994 # type: textblock
17995 #: ../fish/guestfish.pod:483
17996 msgid "The size in SI 1000 byte units."
17997 msgstr ""
17998
17999 # type: =item
18000 #: ../fish/guestfish.pod:485
18001 msgid "B<M> or B<MiB>"
18002 msgstr ""
18003
18004 # type: textblock
18005 #: ../fish/guestfish.pod:487
18006 msgid "The size in megabytes (multiplied by 1048576)."
18007 msgstr ""
18008
18009 # type: =item
18010 #: ../fish/guestfish.pod:489
18011 msgid "B<MB>"
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish.pod:491
18016 msgid "The size in SI 1000000 byte units."
18017 msgstr ""
18018
18019 # type: =item
18020 #: ../fish/guestfish.pod:493
18021 msgid "B<G> or B<GiB>"
18022 msgstr ""
18023
18024 # type: textblock
18025 #: ../fish/guestfish.pod:495
18026 msgid "The size in gigabytes (multiplied by 2**30)."
18027 msgstr ""
18028
18029 # type: =item
18030 #: ../fish/guestfish.pod:497
18031 msgid "B<GB>"
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:499
18036 msgid "The size in SI 10**9 byte units."
18037 msgstr ""
18038
18039 # type: =item
18040 #: ../fish/guestfish.pod:501
18041 msgid "B<T> or B<TiB>"
18042 msgstr ""
18043
18044 # type: textblock
18045 #: ../fish/guestfish.pod:503
18046 msgid "The size in terabytes (multiplied by 2**40)."
18047 msgstr ""
18048
18049 # type: =item
18050 #: ../fish/guestfish.pod:505
18051 msgid "B<TB>"
18052 msgstr ""
18053
18054 # type: textblock
18055 #: ../fish/guestfish.pod:507
18056 msgid "The size in SI 10**12 byte units."
18057 msgstr ""
18058
18059 # type: =item
18060 #: ../fish/guestfish.pod:509
18061 msgid "B<P> or B<PiB>"
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish.pod:511
18066 msgid "The size in petabytes (multiplied by 2**50)."
18067 msgstr ""
18068
18069 # type: =item
18070 #: ../fish/guestfish.pod:513
18071 msgid "B<PB>"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish.pod:515
18076 msgid "The size in SI 10**15 byte units."
18077 msgstr ""
18078
18079 # type: =item
18080 #: ../fish/guestfish.pod:517
18081 msgid "B<E> or B<EiB>"
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish.pod:519
18086 msgid "The size in exabytes (multiplied by 2**60)."
18087 msgstr ""
18088
18089 # type: =item
18090 #: ../fish/guestfish.pod:521
18091 msgid "B<EB>"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish.pod:523
18096 msgid "The size in SI 10**18 byte units."
18097 msgstr ""
18098
18099 # type: =item
18100 #: ../fish/guestfish.pod:525
18101 msgid "B<Z> or B<ZiB>"
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish.pod:527
18106 msgid "The size in zettabytes (multiplied by 2**70)."
18107 msgstr ""
18108
18109 # type: =item
18110 #: ../fish/guestfish.pod:529
18111 msgid "B<ZB>"
18112 msgstr ""
18113
18114 # type: textblock
18115 #: ../fish/guestfish.pod:531
18116 msgid "The size in SI 10**21 byte units."
18117 msgstr ""
18118
18119 # type: =item
18120 #: ../fish/guestfish.pod:533
18121 msgid "B<Y> or B<YiB>"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:535
18126 msgid "The size in yottabytes (multiplied by 2**80)."
18127 msgstr ""
18128
18129 # type: =item
18130 #: ../fish/guestfish.pod:537
18131 msgid "B<YB>"
18132 msgstr ""
18133
18134 # type: textblock
18135 #: ../fish/guestfish.pod:539
18136 msgid "The size in SI 10**24 byte units."
18137 msgstr ""
18138
18139 # type: verbatim
18140 #: ../fish/guestfish.pod:545
18141 #, no-wrap
18142 msgid ""
18143 " truncate-size /file 1G\n"
18144 "\n"
18145 msgstr ""
18146
18147 # type: textblock
18148 #: ../fish/guestfish.pod:547
18149 msgid "would truncate the file to 1 gigabyte."
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish.pod:549
18154 msgid ""
18155 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18156 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18157 "suffix will probably not do what you expect."
18158 msgstr ""
18159
18160 # type: =head2
18161 #: ../fish/guestfish.pod:553
18162 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18163 msgstr ""
18164
18165 # type: textblock
18166 #: ../fish/guestfish.pod:555
18167 msgid ""
18168 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18169 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18170 msgstr ""
18171
18172 # type: verbatim
18173 #: ../fish/guestfish.pod:558
18174 #, no-wrap
18175 msgid ""
18176 " 1234      decimal number 1234\n"
18177 " 02322     octal number, equivalent to decimal 1234\n"
18178 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18179 "\n"
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish.pod:562
18184 msgid ""
18185 "When using the C<chmod> command, you almost always want to specify an octal "
18186 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18187 "L<chmod(1)> program):"
18188 msgstr ""
18189
18190 # type: verbatim
18191 #: ../fish/guestfish.pod:566
18192 #, no-wrap
18193 msgid ""
18194 " chmod 0777 /public  # OK\n"
18195 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:569
18201 msgid ""
18202 "Commands that return numbers usually print them in decimal, but some "
18203 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18204 "octal, preceeded by C<0>)."
18205 msgstr ""
18206
18207 # type: =head1
18208 #: ../fish/guestfish.pod:573
18209 msgid "WILDCARDS AND GLOBBING"
18210 msgstr ""
18211
18212 # type: textblock
18213 #: ../fish/guestfish.pod:575
18214 msgid ""
18215 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18216 "(globbing) by default.  So for example the following will not do what you "
18217 "expect:"
18218 msgstr ""
18219
18220 # type: verbatim
18221 #: ../fish/guestfish.pod:579
18222 #, no-wrap
18223 msgid ""
18224 " rm-rf /home/*\n"
18225 "\n"
18226 msgstr ""
18227
18228 # type: textblock
18229 #: ../fish/guestfish.pod:581
18230 msgid ""
18231 "Assuming you don't have a directory called literally C</home/*> then the "
18232 "above command will return an error."
18233 msgstr ""
18234
18235 # type: textblock
18236 #: ../fish/guestfish.pod:584
18237 msgid "To perform wildcard expansion, use the C<glob> command."
18238 msgstr ""
18239
18240 # type: verbatim
18241 #: ../fish/guestfish.pod:586
18242 #, no-wrap
18243 msgid ""
18244 " glob rm-rf /home/*\n"
18245 "\n"
18246 msgstr ""
18247
18248 # type: textblock
18249 #: ../fish/guestfish.pod:588
18250 msgid ""
18251 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18252 "many times), equivalent to:"
18253 msgstr ""
18254
18255 # type: verbatim
18256 #: ../fish/guestfish.pod:591
18257 #, no-wrap
18258 msgid ""
18259 " rm-rf /home/jim\n"
18260 " rm-rf /home/joe\n"
18261 " rm-rf /home/mary\n"
18262 "\n"
18263 msgstr ""
18264
18265 # type: textblock
18266 #: ../fish/guestfish.pod:595
18267 msgid "C<glob> only works on simple guest paths and not on device names."
18268 msgstr ""
18269
18270 # type: textblock
18271 #: ../fish/guestfish.pod:597
18272 msgid ""
18273 "If you have several parameters, each containing a wildcard, then glob will "
18274 "perform a Cartesian product."
18275 msgstr ""
18276
18277 # type: =head1
18278 #: ../fish/guestfish.pod:600
18279 msgid "COMMENTS"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:602
18284 msgid ""
18285 "Any line which starts with a I<#> character is treated as a comment and "
18286 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18287 "a command.  For example:"
18288 msgstr ""
18289
18290 # type: verbatim
18291 #: ../fish/guestfish.pod:606
18292 #, no-wrap
18293 msgid ""
18294 " # this is a comment\n"
18295 "         # this is a comment\n"
18296 " foo # NOT a comment\n"
18297 "\n"
18298 msgstr ""
18299
18300 # type: textblock
18301 #: ../fish/guestfish.pod:610
18302 msgid "Blank lines are also ignored."
18303 msgstr ""
18304
18305 # type: =head1
18306 #: ../fish/guestfish.pod:612
18307 msgid "RUNNING COMMANDS LOCALLY"
18308 msgstr ""
18309
18310 # type: textblock
18311 #: ../fish/guestfish.pod:614
18312 msgid ""
18313 "Any line which starts with a I<!> character is treated as a command sent to "
18314 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18315 msgstr ""
18316
18317 # type: verbatim
18318 #: ../fish/guestfish.pod:618
18319 #, no-wrap
18320 msgid ""
18321 " !mkdir local\n"
18322 " tgz-out /remote local/remote-data.tar.gz\n"
18323 "\n"
18324 msgstr ""
18325
18326 # type: textblock
18327 #: ../fish/guestfish.pod:621
18328 msgid ""
18329 "will create a directory C<local> on the host, and then export the contents "
18330 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18331 "(See C<tgz-out>)."
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:625
18336 msgid ""
18337 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18338 "effect, due to the way that subprocesses work in Unix."
18339 msgstr ""
18340
18341 # type: =head1
18342 #: ../fish/guestfish.pod:628
18343 msgid "PIPES"
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../fish/guestfish.pod:630
18348 msgid ""
18349 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18350 "command (a guestfish command) to the second command (any host command).  For "
18351 "example:"
18352 msgstr ""
18353
18354 # type: verbatim
18355 #: ../fish/guestfish.pod:634
18356 #, no-wrap
18357 msgid ""
18358 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18359 "\n"
18360 msgstr ""
18361
18362 # type: textblock
18363 #: ../fish/guestfish.pod:636
18364 msgid ""
18365 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18366 "program).  The above command would list all accounts in the guest filesystem "
18367 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18368 msgstr ""
18369
18370 # type: verbatim
18371 #: ../fish/guestfish.pod:641
18372 #, no-wrap
18373 msgid ""
18374 " hexdump /bin/ls | head\n"
18375 " list-devices | tail -1\n"
18376 " tgz-out / - | tar ztf -\n"
18377 "\n"
18378 msgstr ""
18379
18380 # type: textblock
18381 #: ../fish/guestfish.pod:645
18382 msgid ""
18383 "The space before the pipe symbol is required, any space after the pipe "
18384 "symbol is optional.  Everything after the pipe symbol is just passed "
18385 "straight to the host shell, so it can contain redirections, globs and "
18386 "anything else that makes sense on the host side."
18387 msgstr ""
18388
18389 # type: textblock
18390 #: ../fish/guestfish.pod:650
18391 msgid ""
18392 "To use a literal argument which begins with a pipe symbol, you have to quote "
18393 "it, eg:"
18394 msgstr ""
18395
18396 # type: verbatim
18397 #: ../fish/guestfish.pod:653
18398 #, no-wrap
18399 msgid ""
18400 " echo \"|\"\n"
18401 "\n"
18402 msgstr ""
18403
18404 # type: =head1
18405 #: ../fish/guestfish.pod:655
18406 msgid "HOME DIRECTORIES"
18407 msgstr ""
18408
18409 # type: textblock
18410 #: ../fish/guestfish.pod:657
18411 msgid ""
18412 "If a parameter starts with the character C<~> then the tilde may be expanded "
18413 "as a home directory path (either C<~> for the current user's home directory, "
18414 "or C<~user> for another user)."
18415 msgstr ""
18416
18417 # type: textblock
18418 #: ../fish/guestfish.pod:661
18419 msgid ""
18420 "Note that home directory expansion happens for users known I<on the host>, "
18421 "not in the guest filesystem."
18422 msgstr ""
18423
18424 # type: textblock
18425 #: ../fish/guestfish.pod:664
18426 msgid ""
18427 "To use a literal argument which begins with a tilde, you have to quote it, "
18428 "eg:"
18429 msgstr ""
18430
18431 # type: verbatim
18432 #: ../fish/guestfish.pod:667
18433 #, no-wrap
18434 msgid ""
18435 " echo \"~\"\n"
18436 "\n"
18437 msgstr ""
18438
18439 # type: textblock
18440 #: ../fish/guestfish.pod:671
18441 msgid ""
18442 "Libguestfs has some support for Linux guests encrypted according to the "
18443 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18444 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18445 "LUKS is supported."
18446 msgstr ""
18447
18448 # type: textblock
18449 #: ../fish/guestfish.pod:676
18450 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18451 msgstr ""
18452
18453 # type: verbatim
18454 #: ../fish/guestfish.pod:678
18455 #, no-wrap
18456 msgid ""
18457 " ><fs> vfs-type /dev/sda2\n"
18458 " crypto_LUKS\n"
18459 "\n"
18460 msgstr ""
18461
18462 # type: textblock
18463 #: ../fish/guestfish.pod:681
18464 msgid ""
18465 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18466 "device called C</dev/mapper/luksdev>."
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish.pod:684
18471 #, no-wrap
18472 msgid ""
18473 " ><fs> luks-open /dev/sda2 luksdev\n"
18474 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: textblock
18479 #: ../fish/guestfish.pod:687
18480 msgid ""
18481 "Finally you have to tell LVM to scan for volume groups on the newly created "
18482 "mapper device:"
18483 msgstr ""
18484
18485 # type: verbatim
18486 #: ../fish/guestfish.pod:690
18487 #, no-wrap
18488 msgid ""
18489 " vgscan\n"
18490 " vg-activate-all true\n"
18491 "\n"
18492 msgstr ""
18493
18494 # type: textblock
18495 #: ../fish/guestfish.pod:693
18496 msgid "The logical volume(s) can now be mounted in the usual way."
18497 msgstr ""
18498
18499 # type: textblock
18500 #: ../fish/guestfish.pod:695
18501 msgid ""
18502 "Before closing a LUKS device you must unmount any logical volumes on it and "
18503 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18504 "one.  Then you can close the mapper device:"
18505 msgstr ""
18506
18507 # type: verbatim
18508 #: ../fish/guestfish.pod:699
18509 #, no-wrap
18510 msgid ""
18511 " vg-activate false /dev/VG\n"
18512 " luks-close /dev/mapper/luksdev\n"
18513 "\n"
18514 msgstr ""
18515
18516 # type: =head1
18517 #: ../fish/guestfish.pod:702
18518 msgid "WINDOWS PATHS"
18519 msgstr ""
18520
18521 # type: textblock
18522 #: ../fish/guestfish.pod:704
18523 msgid ""
18524 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18525 "(with some limitations).  The following commands are equivalent:"
18526 msgstr ""
18527
18528 # type: verbatim
18529 #: ../fish/guestfish.pod:707
18530 #, no-wrap
18531 msgid ""
18532 " file /WINDOWS/system32/config/system.LOG\n"
18533 "\n"
18534 msgstr ""
18535
18536 # type: verbatim
18537 #: ../fish/guestfish.pod:709
18538 #, no-wrap
18539 msgid ""
18540 " file win:/windows/system32/config/system.log\n"
18541 "\n"
18542 msgstr ""
18543
18544 # type: verbatim
18545 #: ../fish/guestfish.pod:711
18546 #, no-wrap
18547 msgid ""
18548 " file win:\\windows\\system32\\config\\system.log\n"
18549 "\n"
18550 msgstr ""
18551
18552 # type: verbatim
18553 #: ../fish/guestfish.pod:713
18554 #, no-wrap
18555 msgid ""
18556 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18557 "\n"
18558 msgstr ""
18559
18560 # type: textblock
18561 #: ../fish/guestfish.pod:715
18562 msgid ""
18563 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18564 "handles case insensitivity like Windows would.  This only works in argument "
18565 "positions that expect a path."
18566 msgstr ""
18567
18568 # type: =head1
18569 #: ../fish/guestfish.pod:719
18570 msgid "UPLOADING AND DOWNLOADING FILES"
18571 msgstr ""
18572
18573 # type: textblock
18574 #: ../fish/guestfish.pod:721
18575 msgid ""
18576 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18577 "others which upload from or download to a local file, you can use the "
18578 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18579 msgstr ""
18580
18581 # type: verbatim
18582 #: ../fish/guestfish.pod:725
18583 #, no-wrap
18584 msgid ""
18585 " upload - /foo\n"
18586 "\n"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:727
18591 msgid ""
18592 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18593 msgstr ""
18594
18595 # type: verbatim
18596 #: ../fish/guestfish.pod:730
18597 #, no-wrap
18598 msgid ""
18599 " tar-out /etc - | tar tf -\n"
18600 "\n"
18601 msgstr ""
18602
18603 # type: textblock
18604 #: ../fish/guestfish.pod:732
18605 msgid ""
18606 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18607 "command (see L</PIPES>)."
18608 msgstr ""
18609
18610 # type: textblock
18611 #: ../fish/guestfish.pod:735
18612 msgid ""
18613 "When using C<-> to read from stdin, the input is read up to the end of "
18614 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18615 "some arbitrary end marker:"
18616 msgstr ""
18617
18618 # type: verbatim
18619 #: ../fish/guestfish.pod:739
18620 #, no-wrap
18621 msgid ""
18622 " upload -<<END /foo\n"
18623 " input line 1\n"
18624 " input line 2\n"
18625 " input line 3\n"
18626 " END\n"
18627 "\n"
18628 msgstr ""
18629
18630 # type: textblock
18631 #: ../fish/guestfish.pod:745
18632 msgid ""
18633 "Any string of characters can be used instead of C<END>.  The end marker must "
18634 "appear on a line of its own, without any preceeding or following characters "
18635 "(not even spaces)."
18636 msgstr ""
18637
18638 # type: textblock
18639 #: ../fish/guestfish.pod:749
18640 msgid ""
18641 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18642 "upload local files (so-called \"FileIn\" parameters in the generator)."
18643 msgstr ""
18644
18645 # type: =head1
18646 #: ../fish/guestfish.pod:752
18647 msgid "EXIT ON ERROR BEHAVIOUR"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../fish/guestfish.pod:754
18652 msgid ""
18653 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18654 "taking commands from a human over a tty), and will exit on the first error "
18655 "in non-interactive mode (scripts, commands given on the command line)."
18656 msgstr ""
18657
18658 # type: textblock
18659 #: ../fish/guestfish.pod:759
18660 msgid ""
18661 "If you prefix a command with a I<-> character, then that command will not "
18662 "cause guestfish to exit, even if that (one) command returns an error."
18663 msgstr ""
18664
18665 # type: =head1
18666 #: ../fish/guestfish.pod:763
18667 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18668 msgstr ""
18669
18670 # type: textblock
18671 #: ../fish/guestfish.pod:765
18672 msgid ""
18673 "Guestfish can be remote-controlled over a socket.  This is useful "
18674 "particularly in shell scripts where you want to make several different "
18675 "changes to a filesystem, but you don't want the overhead of starting up a "
18676 "guestfish process each time."
18677 msgstr ""
18678
18679 # type: textblock
18680 #: ../fish/guestfish.pod:770
18681 msgid "Start a guestfish server process using:"
18682 msgstr ""
18683
18684 # type: verbatim
18685 #: ../fish/guestfish.pod:772
18686 #, no-wrap
18687 msgid ""
18688 " eval \"`guestfish --listen`\"\n"
18689 "\n"
18690 msgstr ""
18691
18692 # type: textblock
18693 #: ../fish/guestfish.pod:774
18694 msgid "and then send it commands by doing:"
18695 msgstr ""
18696
18697 # type: verbatim
18698 #: ../fish/guestfish.pod:776
18699 #, no-wrap
18700 msgid ""
18701 " guestfish --remote cmd [...]\n"
18702 "\n"
18703 msgstr ""
18704
18705 # type: textblock
18706 #: ../fish/guestfish.pod:778
18707 msgid "To cause the server to exit, send it the exit command:"
18708 msgstr ""
18709
18710 # type: verbatim
18711 #: ../fish/guestfish.pod:780
18712 #, no-wrap
18713 msgid ""
18714 " guestfish --remote exit\n"
18715 "\n"
18716 msgstr ""
18717
18718 # type: textblock
18719 #: ../fish/guestfish.pod:782
18720 msgid ""
18721 "Note that the server will normally exit if there is an error in a command.  "
18722 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18723 "BEHAVIOUR>."
18724 msgstr ""
18725
18726 # type: =head2
18727 #: ../fish/guestfish.pod:786
18728 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18729 msgstr ""
18730
18731 # type: textblock
18732 #: ../fish/guestfish.pod:788
18733 msgid ""
18734 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18735 "is how the I<--remote> option knows where to send the commands.  You can "
18736 "have several guestfish listener processes running using:"
18737 msgstr ""
18738
18739 # type: verbatim
18740 #: ../fish/guestfish.pod:792
18741 #, no-wrap
18742 msgid ""
18743 " eval \"`guestfish --listen`\"\n"
18744 " pid1=$GUESTFISH_PID\n"
18745 " eval \"`guestfish --listen`\"\n"
18746 " pid2=$GUESTFISH_PID\n"
18747 " ...\n"
18748 " guestfish --remote=$pid1 cmd\n"
18749 " guestfish --remote=$pid2 cmd\n"
18750 "\n"
18751 msgstr ""
18752
18753 # type: =head2
18754 #: ../fish/guestfish.pod:800
18755 msgid "REMOTE CONTROL AND CSH"
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish.pod:802
18760 msgid ""
18761 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18762 "option:"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish.pod:805
18767 #, no-wrap
18768 msgid ""
18769 " eval \"`guestfish --listen --csh`\"\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: =head2
18774 #: ../fish/guestfish.pod:807
18775 msgid "REMOTE CONTROL DETAILS"
18776 msgstr ""
18777
18778 # type: textblock
18779 #: ../fish/guestfish.pod:809
18780 msgid ""
18781 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18782 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18783 "and C<$PID> is the process ID of the server."
18784 msgstr ""
18785
18786 # type: textblock
18787 #: ../fish/guestfish.pod:813
18788 msgid "Guestfish client and server versions must match exactly."
18789 msgstr ""
18790
18791 # type: =head1
18792 #: ../fish/guestfish.pod:815
18793 msgid "PREPARED DISK IMAGES"
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:817
18798 msgid ""
18799 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18800 "preformatted disk images that guestfish can make for you to save typing.  "
18801 "This is particularly useful for testing purposes.  This option is used "
18802 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18803 "can be mixed with I<-a>)."
18804 msgstr ""
18805
18806 # type: textblock
18807 #: ../fish/guestfish.pod:823
18808 msgid ""
18809 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18810 "the second and so on.  Existing files in the current directory are "
18811 "I<overwritten>."
18812 msgstr ""
18813
18814 # type: textblock
18815 #: ../fish/guestfish.pod:827
18816 msgid ""
18817 "The type briefly describes how the disk should be sized, partitioned, how "
18818 "filesystem(s) should be created, and how content should be added.  "
18819 "Optionally the type can be followed by extra parameters, separated by C<:> "
18820 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18821 "allocated disk, containing a single partition, with the partition formatted "
18822 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18823 "disk instead."
18824 msgstr ""
18825
18826 # type: textblock
18827 #: ../fish/guestfish.pod:835
18828 msgid "To list the available types and any extra parameters they take, run:"
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish.pod:839
18833 msgid ""
18834 "Note that the prepared filesystem is not mounted.  You would usually have to "
18835 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18836 msgstr ""
18837
18838 # type: textblock
18839 #: ../fish/guestfish.pod:843
18840 msgid ""
18841 "If any I<-N> or I<--new> options are given, the guest is automatically "
18842 "launched."
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish.pod:848
18847 msgid "Create a 100MB disk with an ext4-formatted partition:"
18848 msgstr ""
18849
18850 # type: verbatim
18851 #: ../fish/guestfish.pod:850
18852 #, no-wrap
18853 msgid ""
18854 " guestfish -N fs:ext4\n"
18855 "\n"
18856 msgstr ""
18857
18858 # type: textblock
18859 #: ../fish/guestfish.pod:852
18860 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18861 msgstr ""
18862
18863 # type: verbatim
18864 #: ../fish/guestfish.pod:854
18865 #, no-wrap
18866 msgid ""
18867 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18868 "\n"
18869 msgstr ""
18870
18871 # type: textblock
18872 #: ../fish/guestfish.pod:856
18873 msgid "Create a blank 200MB disk:"
18874 msgstr ""
18875
18876 # type: verbatim
18877 #: ../fish/guestfish.pod:858
18878 #, no-wrap
18879 msgid ""
18880 " guestfish -N disk:200M\n"
18881 "\n"
18882 msgstr ""
18883
18884 # type: =head1
18885 #: ../fish/guestfish.pod:860
18886 msgid "PROGRESS BARS"
18887 msgstr ""
18888
18889 # type: textblock
18890 #: ../fish/guestfish.pod:862
18891 msgid ""
18892 "Some (not all) long-running commands send progress notification messages as "
18893 "they are running.  Guestfish turns these messages into progress bars."
18894 msgstr ""
18895
18896 # type: textblock
18897 #: ../fish/guestfish.pod:866
18898 msgid ""
18899 "When a command that supports progress bars takes longer than two seconds to "
18900 "run, and if progress bars are enabled, then you will see one appearing below "
18901 "the command:"
18902 msgstr ""
18903
18904 # type: verbatim
18905 #: ../fish/guestfish.pod:870
18906 #, no-wrap
18907 msgid ""
18908 " ><fs> copy-size /large-file /another-file 2048M\n"
18909 " / 10% [#####-----------------------------------------] 00:30\n"
18910 "\n"
18911 msgstr ""
18912
18913 # type: textblock
18914 #: ../fish/guestfish.pod:873
18915 msgid ""
18916 "The spinner on the left hand side moves round once for every progress "
18917 "notification received from the backend.  This is a (reasonably) golden "
18918 "assurance that the command is \"doing something\" even if the progress bar "
18919 "is not moving, because the command is able to send the progress "
18920 "notifications.  When the bar reaches 100% and the command finishes, the "
18921 "spinner disappears."
18922 msgstr ""
18923
18924 # type: textblock
18925 #: ../fish/guestfish.pod:880
18926 msgid ""
18927 "Progress bars are enabled by default when guestfish is used interactively.  "
18928 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18929 "and you can disable them completely using I<--no-progress-bars>."
18930 msgstr ""
18931
18932 # type: =head1
18933 #: ../fish/guestfish.pod:885
18934 msgid "GUESTFISH COMMANDS"
18935 msgstr ""
18936
18937 # type: textblock
18938 #: ../fish/guestfish.pod:887
18939 msgid ""
18940 "The commands in this section are guestfish convenience commands, in other "
18941 "words, they are not part of the L<guestfs(3)> API."
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish.pod:890
18946 msgid "help"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish.pod:892
18951 #, no-wrap
18952 msgid ""
18953 " help\n"
18954 " help cmd\n"
18955 "\n"
18956 msgstr ""
18957
18958 # type: textblock
18959 #: ../fish/guestfish.pod:895
18960 msgid "Without any parameter, this provides general help."
18961 msgstr ""
18962
18963 # type: textblock
18964 #: ../fish/guestfish.pod:897
18965 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18966 msgstr ""
18967
18968 # type: =head2
18969 #: ../fish/guestfish.pod:899
18970 msgid "quit | exit"
18971 msgstr ""
18972
18973 # type: textblock
18974 #: ../fish/guestfish.pod:901
18975 msgid "This exits guestfish.  You can also use C<^D> key."
18976 msgstr ""
18977
18978 # type: textblock
18979 #: ../fish/guestfish.pod:903
18980 msgid "@FISH_COMMANDS@"
18981 msgstr ""
18982
18983 # type: =head1
18984 #: ../fish/guestfish.pod:905
18985 msgid "COMMANDS"
18986 msgstr ""
18987
18988 # type: =head1
18989 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18990 msgid "EXIT CODE"
18991 msgstr ""
18992
18993 # type: textblock
18994 #: ../fish/guestfish.pod:911
18995 msgid ""
18996 "guestfish returns 0 if the commands completed without error, or 1 if there "
18997 "was an error."
18998 msgstr ""
18999
19000 # type: =item
19001 #: ../fish/guestfish.pod:918
19002 msgid "EDITOR"
19003 msgstr ""
19004
19005 # type: textblock
19006 #: ../fish/guestfish.pod:920
19007 msgid ""
19008 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19009 "C<vi>."
19010 msgstr ""
19011
19012 # type: =item
19013 #: ../fish/guestfish.pod:923
19014 msgid "GUESTFISH_PID"
19015 msgstr ""
19016
19017 # type: textblock
19018 #: ../fish/guestfish.pod:925
19019 msgid ""
19020 "Used with the I<--remote> option to specify the remote guestfish process to "
19021 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19022 msgstr ""
19023
19024 # type: =item
19025 #: ../fish/guestfish.pod:929
19026 msgid "HEXEDITOR"
19027 msgstr ""
19028
19029 # type: textblock
19030 #: ../fish/guestfish.pod:931
19031 msgid ""
19032 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19033 "not specified, the external L<hexedit(1)> program is used."
19034 msgstr ""
19035
19036 # type: =item
19037 #: ../fish/guestfish.pod:935
19038 msgid "HOME"
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish.pod:937
19043 msgid ""
19044 "If compiled with GNU readline support, various files in the home directory "
19045 "can be used.  See L</FILES>."
19046 msgstr ""
19047
19048 # type: textblock
19049 #: ../fish/guestfish.pod:946
19050 msgid ""
19051 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19052 "effect as using the B<-v> option."
19053 msgstr ""
19054
19055 # type: textblock
19056 #: ../fish/guestfish.pod:958
19057 msgid ""
19058 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19059 "the discussion of paths in L<guestfs(3)>."
19060 msgstr ""
19061
19062 # type: textblock
19063 #: ../fish/guestfish.pod:969
19064 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19065 msgstr ""
19066
19067 # type: =item
19068 #: ../fish/guestfish.pod:971
19069 msgid "PAGER"
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish.pod:973
19074 msgid ""
19075 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19076 "C<more>."
19077 msgstr ""
19078
19079 # type: =head1
19080 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
19081 msgid "FILES"
19082 msgstr ""
19083
19084 # type: =item
19085 #: ../fish/guestfish.pod:992
19086 msgid "$HOME/.guestfish"
19087 msgstr ""
19088
19089 # type: textblock
19090 #: ../fish/guestfish.pod:994
19091 msgid ""
19092 "If compiled with GNU readline support, then the command history is saved in "
19093 "this file."
19094 msgstr ""
19095
19096 # type: =item
19097 #: ../fish/guestfish.pod:997
19098 msgid "$HOME/.inputrc"
19099 msgstr ""
19100
19101 # type: =item
19102 #: ../fish/guestfish.pod:999
19103 msgid "/etc/inputrc"
19104 msgstr ""
19105
19106 # type: textblock
19107 #: ../fish/guestfish.pod:1001
19108 msgid ""
19109 "If compiled with GNU readline support, then these files can be used to "
19110 "configure readline.  For further information, please see L<readline(3)/"
19111 "INITIALIZATION FILE>."
19112 msgstr ""
19113
19114 # type: textblock
19115 #: ../fish/guestfish.pod:1005
19116 msgid "To write rules which only apply to guestfish, use:"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish.pod:1007
19121 #, no-wrap
19122 msgid ""
19123 " $if guestfish\n"
19124 " ...\n"
19125 " $endif\n"
19126 "\n"
19127 msgstr ""
19128
19129 # type: textblock
19130 #: ../fish/guestfish.pod:1011
19131 msgid ""
19132 "Variables that you can set in inputrc that change the behaviour of guestfish "
19133 "in useful ways include:"
19134 msgstr ""
19135
19136 # type: =item
19137 #: ../fish/guestfish.pod:1016
19138 msgid "completion-ignore-case (default: on)"
19139 msgstr ""
19140
19141 # type: textblock
19142 #: ../fish/guestfish.pod:1018
19143 msgid ""
19144 "By default, guestfish will ignore case when tab-completing paths on the "
19145 "disk.  Use:"
19146 msgstr ""
19147
19148 # type: verbatim
19149 #: ../fish/guestfish.pod:1021
19150 #, no-wrap
19151 msgid ""
19152 " set completion-ignore-case off\n"
19153 "\n"
19154 msgstr ""
19155
19156 # type: textblock
19157 #: ../fish/guestfish.pod:1023
19158 msgid "to make guestfish case sensitive."
19159 msgstr ""
19160
19161 # type: =item
19162 #: ../fish/guestfish.pod:1027
19163 msgid "test1.img"
19164 msgstr ""
19165
19166 # type: =item
19167 #: ../fish/guestfish.pod:1029
19168 msgid "test2.img (etc)"
19169 msgstr ""
19170
19171 # type: textblock
19172 #: ../fish/guestfish.pod:1031
19173 msgid ""
19174 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19175 "will be created in the file C<test1.img> in the current directory.  The "
19176 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19177 "the same name will be overwritten."
19178 msgstr ""
19179
19180 # type: textblock
19181 #: ../fish/guestfish.pod:1040
19182 msgid ""
19183 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19184 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
19185 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19186 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
19187 msgstr ""
19188
19189 # type: textblock
19190 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
19191 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:480
19192 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
19193 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
19194 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
19195 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
19196 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
19197 msgid ""
19198 "This program is free software; you can redistribute it and/or modify it "
19199 "under the terms of the GNU General Public License as published by the Free "
19200 "Software Foundation; either version 2 of the License, or (at your option) "
19201 "any later version."
19202 msgstr ""
19203
19204 # type: textblock
19205 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
19206 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:485
19207 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
19208 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
19209 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
19210 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
19211 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
19212 msgid ""
19213 "This program is distributed in the hope that it will be useful, but WITHOUT "
19214 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19215 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19216 "more details."
19217 msgstr ""
19218
19219 # type: textblock
19220 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
19221 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:490
19222 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
19223 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
19224 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
19225 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
19226 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
19227 msgid ""
19228 "You should have received a copy of the GNU General Public License along with "
19229 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19230 "Ave, Cambridge, MA 02139, USA."
19231 msgstr ""
19232
19233 # type: =head2
19234 #: ../fish/guestfish-actions.pod:1
19235 msgid "add-cdrom"
19236 msgstr ""
19237
19238 # type: verbatim
19239 #: ../fish/guestfish-actions.pod:3
19240 #, no-wrap
19241 msgid ""
19242 " add-cdrom filename\n"
19243 "\n"
19244 msgstr ""
19245
19246 # type: textblock
19247 #: ../fish/guestfish-actions.pod:15
19248 msgid ""
19249 "This call checks for the existence of C<filename>.  This stops you from "
19250 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19251 "and C<http:> URLs.  To specify those, use the general L</config> call "
19252 "instead."
19253 msgstr ""
19254
19255 # type: textblock
19256 #: ../fish/guestfish-actions.pod:22
19257 msgid ""
19258 "If you just want to add an ISO file (often you use this as an efficient way "
19259 "to transfer large files into the guest), then you should probably use L</add-"
19260 "drive-ro> instead."
19261 msgstr ""
19262
19263 # type: =head2
19264 #: ../fish/guestfish-actions.pod:35
19265 msgid "add-domain"
19266 msgstr ""
19267
19268 # type: =head2
19269 #: ../fish/guestfish-actions.pod:37
19270 msgid "domain"
19271 msgstr ""
19272
19273 # type: verbatim
19274 #: ../fish/guestfish-actions.pod:39
19275 #, no-wrap
19276 msgid ""
19277 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: textblock
19282 #: ../fish/guestfish-actions.pod:41
19283 msgid ""
19284 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19285 "It works by connecting to libvirt, requesting the domain and domain XML from "
19286 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19287 msgstr ""
19288
19289 # type: textblock
19290 #: ../fish/guestfish-actions.pod:58
19291 msgid ""
19292 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19293 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19294 "libvirt URI (or one set through an environment variable, see the libvirt "
19295 "documentation for full details).  If you are using the C API directly then "
19296 "it is more flexible to create the libvirt connection object yourself, get "
19297 "the domain object, and call L</add-libvirt-dom>."
19298 msgstr ""
19299
19300 # type: textblock
19301 #: ../fish/guestfish-actions.pod:66
19302 msgid ""
19303 "The other optional parameters are passed directly through to L</add-drive-"
19304 "opts>."
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19309 msgid ""
19310 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19311 msgstr ""
19312
19313 # type: =head2
19314 #: ../fish/guestfish-actions.pod:71
19315 msgid "add-drive"
19316 msgstr ""
19317
19318 # type: verbatim
19319 #: ../fish/guestfish-actions.pod:73
19320 #, no-wrap
19321 msgid ""
19322 " add-drive filename\n"
19323 "\n"
19324 msgstr ""
19325
19326 # type: textblock
19327 #: ../fish/guestfish-actions.pod:75
19328 msgid ""
19329 "This function is the equivalent of calling L</add-drive-opts> with no "
19330 "optional parameters, so the disk is added writable, with the format being "
19331 "detected automatically."
19332 msgstr ""
19333
19334 # type: textblock
19335 #: ../fish/guestfish-actions.pod:79
19336 msgid ""
19337 "Automatic detection of the format opens you up to a potential security hole "
19338 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19339 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19340 "you should think about replacing calls to this function with calls to L</add-"
19341 "drive-opts>, and specifying the format."
19342 msgstr ""
19343
19344 # type: =head2
19345 #: ../fish/guestfish-actions.pod:86
19346 msgid "add-drive-opts"
19347 msgstr ""
19348
19349 # type: =head2
19350 #: ../fish/guestfish-actions.pod:88
19351 msgid "add"
19352 msgstr ""
19353
19354 # type: verbatim
19355 #: ../fish/guestfish-actions.pod:90
19356 #, no-wrap
19357 msgid ""
19358 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19359 "\n"
19360 msgstr ""
19361
19362 # type: textblock
19363 #: ../fish/guestfish-actions.pod:117
19364 msgid ""
19365 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19366 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19367 "include C<raw> and C<qcow2>."
19368 msgstr ""
19369
19370 # type: textblock
19371 #: ../fish/guestfish-actions.pod:128
19372 msgid ""
19373 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19374 "add-drive-with-if> call (q.v.)"
19375 msgstr ""
19376
19377 # type: =head2
19378 #: ../fish/guestfish-actions.pod:135
19379 msgid "add-drive-ro"
19380 msgstr ""
19381
19382 # type: =head2
19383 #: ../fish/guestfish-actions.pod:137
19384 msgid "add-ro"
19385 msgstr ""
19386
19387 # type: verbatim
19388 #: ../fish/guestfish-actions.pod:139
19389 #, no-wrap
19390 msgid ""
19391 " add-drive-ro filename\n"
19392 "\n"
19393 msgstr ""
19394
19395 # type: textblock
19396 #: ../fish/guestfish-actions.pod:141
19397 msgid ""
19398 "This function is the equivalent of calling L</add-drive-opts> with the "
19399 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19400 "is added read-only, with the format being detected automatically."
19401 msgstr ""
19402
19403 # type: =head2
19404 #: ../fish/guestfish-actions.pod:146
19405 msgid "add-drive-ro-with-if"
19406 msgstr ""
19407
19408 # type: verbatim
19409 #: ../fish/guestfish-actions.pod:148
19410 #, no-wrap
19411 msgid ""
19412 " add-drive-ro-with-if filename iface\n"
19413 "\n"
19414 msgstr ""
19415
19416 # type: textblock
19417 #: ../fish/guestfish-actions.pod:150
19418 msgid ""
19419 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19420 "interface emulation to use at run time."
19421 msgstr ""
19422
19423 # type: =head2
19424 #: ../fish/guestfish-actions.pod:160
19425 msgid "add-drive-with-if"
19426 msgstr ""
19427
19428 # type: verbatim
19429 #: ../fish/guestfish-actions.pod:162
19430 #, no-wrap
19431 msgid ""
19432 " add-drive-with-if filename iface\n"
19433 "\n"
19434 msgstr ""
19435
19436 # type: textblock
19437 #: ../fish/guestfish-actions.pod:164
19438 msgid ""
19439 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19440 "interface emulation to use at run time."
19441 msgstr ""
19442
19443 # type: =head2
19444 #: ../fish/guestfish-actions.pod:174
19445 msgid "aug-clear"
19446 msgstr ""
19447
19448 # type: verbatim
19449 #: ../fish/guestfish-actions.pod:176
19450 #, no-wrap
19451 msgid ""
19452 " aug-clear augpath\n"
19453 "\n"
19454 msgstr ""
19455
19456 # type: =head2
19457 #: ../fish/guestfish-actions.pod:181
19458 msgid "aug-close"
19459 msgstr ""
19460
19461 # type: verbatim
19462 #: ../fish/guestfish-actions.pod:183
19463 #, no-wrap
19464 msgid ""
19465 " aug-close\n"
19466 "\n"
19467 msgstr ""
19468
19469 # type: textblock
19470 #: ../fish/guestfish-actions.pod:185
19471 msgid ""
19472 "Close the current Augeas handle and free up any resources used by it.  After "
19473 "calling this, you have to call L</aug-init> again before you can use any "
19474 "other Augeas functions."
19475 msgstr ""
19476
19477 # type: =head2
19478 #: ../fish/guestfish-actions.pod:190
19479 msgid "aug-defnode"
19480 msgstr ""
19481
19482 # type: verbatim
19483 #: ../fish/guestfish-actions.pod:192
19484 #, no-wrap
19485 msgid ""
19486 " aug-defnode name expr val\n"
19487 "\n"
19488 msgstr ""
19489
19490 # type: textblock
19491 #: ../fish/guestfish-actions.pod:197
19492 msgid ""
19493 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19494 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19495 "containing that single node."
19496 msgstr ""
19497
19498 # type: =head2
19499 #: ../fish/guestfish-actions.pod:205
19500 msgid "aug-defvar"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #: ../fish/guestfish-actions.pod:207
19505 #, no-wrap
19506 msgid ""
19507 " aug-defvar name expr\n"
19508 "\n"
19509 msgstr ""
19510
19511 # type: =head2
19512 #: ../fish/guestfish-actions.pod:216
19513 msgid "aug-get"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #: ../fish/guestfish-actions.pod:218
19518 #, no-wrap
19519 msgid ""
19520 " aug-get augpath\n"
19521 "\n"
19522 msgstr ""
19523
19524 # type: =head2
19525 #: ../fish/guestfish-actions.pod:223
19526 msgid "aug-init"
19527 msgstr ""
19528
19529 # type: verbatim
19530 #: ../fish/guestfish-actions.pod:225
19531 #, no-wrap
19532 msgid ""
19533 " aug-init root flags\n"
19534 "\n"
19535 msgstr ""
19536
19537 # type: textblock
19538 #: ../fish/guestfish-actions.pod:231
19539 msgid "You must call this before using any other L</aug-*> commands."
19540 msgstr ""
19541
19542 # type: textblock
19543 #: ../fish/guestfish-actions.pod:266
19544 msgid "Do not load the tree in L</aug-init>."
19545 msgstr ""
19546
19547 # type: textblock
19548 #: ../fish/guestfish-actions.pod:270
19549 msgid "To close the handle, you can call L</aug-close>."
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:274
19554 msgid "aug-insert"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:276
19559 #, no-wrap
19560 msgid ""
19561 " aug-insert augpath label true|false\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: =head2
19566 #: ../fish/guestfish-actions.pod:286
19567 msgid "aug-load"
19568 msgstr ""
19569
19570 # type: verbatim
19571 #: ../fish/guestfish-actions.pod:288
19572 #, no-wrap
19573 msgid ""
19574 " aug-load\n"
19575 "\n"
19576 msgstr ""
19577
19578 # type: =head2
19579 #: ../fish/guestfish-actions.pod:295
19580 msgid "aug-ls"
19581 msgstr ""
19582
19583 # type: verbatim
19584 #: ../fish/guestfish-actions.pod:297
19585 #, no-wrap
19586 msgid ""
19587 " aug-ls augpath\n"
19588 "\n"
19589 msgstr ""
19590
19591 # type: textblock
19592 #: ../fish/guestfish-actions.pod:299
19593 msgid ""
19594 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19595 "resulting nodes into alphabetical order."
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:302
19600 msgid "aug-match"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:304
19605 #, no-wrap
19606 msgid ""
19607 " aug-match augpath\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:310
19613 msgid "aug-mv"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:312
19618 #, no-wrap
19619 msgid ""
19620 " aug-mv src dest\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:317
19626 msgid "aug-rm"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:319
19631 #, no-wrap
19632 msgid ""
19633 " aug-rm augpath\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:325
19639 msgid "aug-save"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:327
19644 #, no-wrap
19645 msgid ""
19646 " aug-save\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: textblock
19651 #: ../fish/guestfish-actions.pod:331
19652 msgid ""
19653 "The flags which were passed to L</aug-init> affect exactly how files are "
19654 "saved."
19655 msgstr ""
19656
19657 # type: =head2
19658 #: ../fish/guestfish-actions.pod:334
19659 msgid "aug-set"
19660 msgstr ""
19661
19662 # type: verbatim
19663 #: ../fish/guestfish-actions.pod:336
19664 #, no-wrap
19665 msgid ""
19666 " aug-set augpath val\n"
19667 "\n"
19668 msgstr ""
19669
19670 # type: textblock
19671 #: ../fish/guestfish-actions.pod:340
19672 msgid ""
19673 "In the Augeas API, it is possible to clear a node by setting the value to "
19674 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19675 "this call.  Instead you must use the L</aug-clear> call."
19676 msgstr ""
19677
19678 # type: =head2
19679 #: ../fish/guestfish-actions.pod:345
19680 msgid "available"
19681 msgstr ""
19682
19683 # type: verbatim
19684 #: ../fish/guestfish-actions.pod:347
19685 #, no-wrap
19686 msgid ""
19687 " available 'groups ...'\n"
19688 "\n"
19689 msgstr ""
19690
19691 # type: textblock
19692 #: ../fish/guestfish-actions.pod:353
19693 msgid ""
19694 "The libguestfs groups, and the functions that those groups correspond to, "
19695 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19696 "runtime by calling L</available-all-groups>."
19697 msgstr ""
19698
19699 # type: textblock
19700 #: ../fish/guestfish-actions.pod:377
19701 msgid "You must call L</launch> before calling this function."
19702 msgstr ""
19703
19704 # type: textblock
19705 #: ../fish/guestfish-actions.pod:399
19706 msgid ""
19707 "This call was added in version C<1.0.80>.  In previous versions of "
19708 "libguestfs all you could do would be to speculatively execute a command to "
19709 "find out if the daemon implemented it.  See also L</version>."
19710 msgstr ""
19711
19712 # type: =head2
19713 #: ../fish/guestfish-actions.pod:406
19714 msgid "available-all-groups"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #: ../fish/guestfish-actions.pod:408
19719 #, no-wrap
19720 msgid ""
19721 " available-all-groups\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #: ../fish/guestfish-actions.pod:410
19727 msgid ""
19728 "This command returns a list of all optional groups that this daemon knows "
19729 "about.  Note this returns both supported and unsupported groups.  To find "
19730 "out which ones the daemon can actually support you have to call L</"
19731 "available> on each member of the returned list."
19732 msgstr ""
19733
19734 # type: textblock
19735 #: ../fish/guestfish-actions.pod:416
19736 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19737 msgstr ""
19738
19739 # type: =head2
19740 #: ../fish/guestfish-actions.pod:418
19741 msgid "base64-in"
19742 msgstr ""
19743
19744 # type: verbatim
19745 #: ../fish/guestfish-actions.pod:420
19746 #, no-wrap
19747 msgid ""
19748 " base64-in (base64file|-) filename\n"
19749 "\n"
19750 msgstr ""
19751
19752 # type: textblock
19753 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19754 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19755 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19756 #: ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140
19757 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162
19758 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223
19759 #: ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19760 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19761 msgstr ""
19762
19763 # type: =head2
19764 #: ../fish/guestfish-actions.pod:427
19765 msgid "base64-out"
19766 msgstr ""
19767
19768 # type: verbatim
19769 #: ../fish/guestfish-actions.pod:429
19770 #, no-wrap
19771 msgid ""
19772 " base64-out filename (base64file|-)\n"
19773 "\n"
19774 msgstr ""
19775
19776 # type: =head2
19777 #: ../fish/guestfish-actions.pod:436
19778 msgid "blockdev-flushbufs"
19779 msgstr ""
19780
19781 # type: verbatim
19782 #: ../fish/guestfish-actions.pod:438
19783 #, no-wrap
19784 msgid ""
19785 " blockdev-flushbufs device\n"
19786 "\n"
19787 msgstr ""
19788
19789 # type: =head2
19790 #: ../fish/guestfish-actions.pod:445
19791 msgid "blockdev-getbsz"
19792 msgstr ""
19793
19794 # type: verbatim
19795 #: ../fish/guestfish-actions.pod:447
19796 #, no-wrap
19797 msgid ""
19798 " blockdev-getbsz device\n"
19799 "\n"
19800 msgstr ""
19801
19802 # type: =head2
19803 #: ../fish/guestfish-actions.pod:456
19804 msgid "blockdev-getro"
19805 msgstr ""
19806
19807 # type: verbatim
19808 #: ../fish/guestfish-actions.pod:458
19809 #, no-wrap
19810 msgid ""
19811 " blockdev-getro device\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: =head2
19816 #: ../fish/guestfish-actions.pod:465
19817 msgid "blockdev-getsize64"
19818 msgstr ""
19819
19820 # type: verbatim
19821 #: ../fish/guestfish-actions.pod:467
19822 #, no-wrap
19823 msgid ""
19824 " blockdev-getsize64 device\n"
19825 "\n"
19826 msgstr ""
19827
19828 # type: textblock
19829 #: ../fish/guestfish-actions.pod:471
19830 msgid "See also L</blockdev-getsz>."
19831 msgstr ""
19832
19833 # type: =head2
19834 #: ../fish/guestfish-actions.pod:475
19835 msgid "blockdev-getss"
19836 msgstr ""
19837
19838 # type: verbatim
19839 #: ../fish/guestfish-actions.pod:477
19840 #, no-wrap
19841 msgid ""
19842 " blockdev-getss device\n"
19843 "\n"
19844 msgstr ""
19845
19846 # type: textblock
19847 #: ../fish/guestfish-actions.pod:482
19848 msgid ""
19849 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:487
19854 msgid "blockdev-getsz"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:489
19859 #, no-wrap
19860 msgid ""
19861 " blockdev-getsz device\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: textblock
19866 #: ../fish/guestfish-actions.pod:494
19867 msgid ""
19868 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19869 "blockdev-getsize64> for the more useful I<size in bytes>."
19870 msgstr ""
19871
19872 # type: =head2
19873 #: ../fish/guestfish-actions.pod:500
19874 msgid "blockdev-rereadpt"
19875 msgstr ""
19876
19877 # type: verbatim
19878 #: ../fish/guestfish-actions.pod:502
19879 #, no-wrap
19880 msgid ""
19881 " blockdev-rereadpt device\n"
19882 "\n"
19883 msgstr ""
19884
19885 # type: =head2
19886 #: ../fish/guestfish-actions.pod:508
19887 msgid "blockdev-setbsz"
19888 msgstr ""
19889
19890 # type: verbatim
19891 #: ../fish/guestfish-actions.pod:510
19892 #, no-wrap
19893 msgid ""
19894 " blockdev-setbsz device blocksize\n"
19895 "\n"
19896 msgstr ""
19897
19898 # type: =head2
19899 #: ../fish/guestfish-actions.pod:519
19900 msgid "blockdev-setro"
19901 msgstr ""
19902
19903 # type: verbatim
19904 #: ../fish/guestfish-actions.pod:521
19905 #, no-wrap
19906 msgid ""
19907 " blockdev-setro device\n"
19908 "\n"
19909 msgstr ""
19910
19911 # type: =head2
19912 #: ../fish/guestfish-actions.pod:527
19913 msgid "blockdev-setrw"
19914 msgstr ""
19915
19916 # type: verbatim
19917 #: ../fish/guestfish-actions.pod:529
19918 #, no-wrap
19919 msgid ""
19920 " blockdev-setrw device\n"
19921 "\n"
19922 msgstr ""
19923
19924 # type: =head2
19925 #: ../fish/guestfish-actions.pod:535
19926 msgid "case-sensitive-path"
19927 msgstr ""
19928
19929 # type: verbatim
19930 #: ../fish/guestfish-actions.pod:537
19931 #, no-wrap
19932 msgid ""
19933 " case-sensitive-path path\n"
19934 "\n"
19935 msgstr ""
19936
19937 # type: textblock
19938 #: ../fish/guestfish-actions.pod:561
19939 msgid ""
19940 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19941 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19942 "the directories were originally created under Windows)."
19943 msgstr ""
19944
19945 # type: textblock
19946 #: ../fish/guestfish-actions.pod:569
19947 msgid "See also L</realpath>."
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:571
19952 msgid "cat"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:573
19957 #, no-wrap
19958 msgid ""
19959 " cat path\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #: ../fish/guestfish-actions.pod:577
19965 msgid ""
19966 "Note that this function cannot correctly handle binary files (specifically, "
19967 "files containing C<\\0> character which is treated as end of string).  For "
19968 "those you need to use the L</read-file> or L</download> functions which have "
19969 "a more complex interface."
19970 msgstr ""
19971
19972 # type: =head2
19973 #: ../fish/guestfish-actions.pod:585
19974 msgid "checksum"
19975 msgstr ""
19976
19977 # type: verbatim
19978 #: ../fish/guestfish-actions.pod:587
19979 #, no-wrap
19980 msgid ""
19981 " checksum csumtype path\n"
19982 "\n"
19983 msgstr ""
19984
19985 # type: textblock
19986 #: ../fish/guestfish-actions.pod:630
19987 msgid "To get the checksum for a device, use L</checksum-device>."
19988 msgstr ""
19989
19990 # type: textblock
19991 #: ../fish/guestfish-actions.pod:632
19992 msgid "To get the checksums for many files, use L</checksums-out>."
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:634
19997 msgid "checksum-device"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:636
20002 #, no-wrap
20003 msgid ""
20004 " checksum-device csumtype device\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: textblock
20009 #: ../fish/guestfish-actions.pod:638
20010 msgid ""
20011 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20012 "device named C<device>.  For the types of checksums supported see the L</"
20013 "checksum> command."
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:642
20018 msgid "checksums-out"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:644
20023 #, no-wrap
20024 msgid ""
20025 " checksums-out csumtype directory (sumsfile|-)\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: =head2
20030 #: ../fish/guestfish-actions.pod:660
20031 msgid "chmod"
20032 msgstr ""
20033
20034 # type: verbatim
20035 #: ../fish/guestfish-actions.pod:662
20036 #, no-wrap
20037 msgid ""
20038 " chmod mode path\n"
20039 "\n"
20040 msgstr ""
20041
20042 # type: =head2
20043 #: ../fish/guestfish-actions.pod:673
20044 msgid "chown"
20045 msgstr ""
20046
20047 # type: verbatim
20048 #: ../fish/guestfish-actions.pod:675
20049 #, no-wrap
20050 msgid ""
20051 " chown owner group path\n"
20052 "\n"
20053 msgstr ""
20054
20055 # type: =head2
20056 #: ../fish/guestfish-actions.pod:683
20057 msgid "command"
20058 msgstr ""
20059
20060 # type: verbatim
20061 #: ../fish/guestfish-actions.pod:685
20062 #, no-wrap
20063 msgid ""
20064 " command 'arguments ...'\n"
20065 "\n"
20066 msgstr ""
20067
20068 # type: textblock
20069 #: ../fish/guestfish-actions.pod:692
20070 msgid ""
20071 "The single parameter is an argv-style list of arguments.  The first element "
20072 "is the name of the program to run.  Subsequent elements are parameters.  The "
20073 "list must be non-empty (ie. must contain a program name).  Note that the "
20074 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20075 msgstr ""
20076
20077 # type: =head2
20078 #: ../fish/guestfish-actions.pod:720
20079 msgid "command-lines"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #: ../fish/guestfish-actions.pod:722
20084 #, no-wrap
20085 msgid ""
20086 " command-lines 'arguments ...'\n"
20087 "\n"
20088 msgstr ""
20089
20090 # type: textblock
20091 #: ../fish/guestfish-actions.pod:724
20092 msgid ""
20093 "This is the same as L</command>, but splits the result into a list of lines."
20094 msgstr ""
20095
20096 # type: textblock
20097 #: ../fish/guestfish-actions.pod:727
20098 msgid "See also: L</sh-lines>"
20099 msgstr ""
20100
20101 # type: =head2
20102 #: ../fish/guestfish-actions.pod:732
20103 msgid "config"
20104 msgstr ""
20105
20106 # type: verbatim
20107 #: ../fish/guestfish-actions.pod:734
20108 #, no-wrap
20109 msgid ""
20110 " config qemuparam qemuvalue\n"
20111 "\n"
20112 msgstr ""
20113
20114 # type: =head2
20115 #: ../fish/guestfish-actions.pod:745
20116 msgid "copy-size"
20117 msgstr ""
20118
20119 # type: verbatim
20120 #: ../fish/guestfish-actions.pod:747
20121 #, no-wrap
20122 msgid ""
20123 " copy-size src dest size\n"
20124 "\n"
20125 msgstr ""
20126
20127 # type: =head2
20128 #: ../fish/guestfish-actions.pod:755
20129 msgid "cp"
20130 msgstr ""
20131
20132 # type: verbatim
20133 #: ../fish/guestfish-actions.pod:757
20134 #, no-wrap
20135 msgid ""
20136 " cp src dest\n"
20137 "\n"
20138 msgstr ""
20139
20140 # type: =head2
20141 #: ../fish/guestfish-actions.pod:762
20142 msgid "cp-a"
20143 msgstr ""
20144
20145 # type: verbatim
20146 #: ../fish/guestfish-actions.pod:764
20147 #, no-wrap
20148 msgid ""
20149 " cp-a src dest\n"
20150 "\n"
20151 msgstr ""
20152
20153 # type: =head2
20154 #: ../fish/guestfish-actions.pod:769
20155 msgid "dd"
20156 msgstr ""
20157
20158 # type: verbatim
20159 #: ../fish/guestfish-actions.pod:771
20160 #, no-wrap
20161 msgid ""
20162 " dd src dest\n"
20163 "\n"
20164 msgstr ""
20165
20166 # type: textblock
20167 #: ../fish/guestfish-actions.pod:778
20168 msgid ""
20169 "If the destination is a device, it must be as large or larger than the "
20170 "source file or device, otherwise the copy will fail.  This command cannot do "
20171 "partial copies (see L</copy-size>)."
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:782
20176 msgid "df"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #: ../fish/guestfish-actions.pod:784
20181 #, no-wrap
20182 msgid ""
20183 " df\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: =head2
20188 #: ../fish/guestfish-actions.pod:792
20189 msgid "df-h"
20190 msgstr ""
20191
20192 # type: verbatim
20193 #: ../fish/guestfish-actions.pod:794
20194 #, no-wrap
20195 msgid ""
20196 " df-h\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: =head2
20201 #: ../fish/guestfish-actions.pod:803
20202 msgid "dmesg"
20203 msgstr ""
20204
20205 # type: verbatim
20206 #: ../fish/guestfish-actions.pod:805
20207 #, no-wrap
20208 msgid ""
20209 " dmesg\n"
20210 "\n"
20211 msgstr ""
20212
20213 # type: textblock
20214 #: ../fish/guestfish-actions.pod:811
20215 msgid ""
20216 "Another way to get the same information is to enable verbose messages with "
20217 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20218 "before running the program."
20219 msgstr ""
20220
20221 # type: =head2
20222 #: ../fish/guestfish-actions.pod:816
20223 msgid "download"
20224 msgstr ""
20225
20226 # type: verbatim
20227 #: ../fish/guestfish-actions.pod:818
20228 #, no-wrap
20229 msgid ""
20230 " download remotefilename (filename|-)\n"
20231 "\n"
20232 msgstr ""
20233
20234 # type: textblock
20235 #: ../fish/guestfish-actions.pod:825
20236 msgid "See also L</upload>, L</cat>."
20237 msgstr ""
20238
20239 # type: =head2
20240 #: ../fish/guestfish-actions.pod:829
20241 msgid "download-offset"
20242 msgstr ""
20243
20244 # type: verbatim
20245 #: ../fish/guestfish-actions.pod:831
20246 #, no-wrap
20247 msgid ""
20248 " download-offset remotefilename (filename|-) offset size\n"
20249 "\n"
20250 msgstr ""
20251
20252 # type: textblock
20253 #: ../fish/guestfish-actions.pod:839
20254 msgid ""
20255 "Note that there is no limit on the amount of data that can be downloaded "
20256 "with this call, unlike with L</pread>, and this call always reads the full "
20257 "amount unless an error occurs."
20258 msgstr ""
20259
20260 # type: textblock
20261 #: ../fish/guestfish-actions.pod:844
20262 msgid "See also L</download>, L</pread>."
20263 msgstr ""
20264
20265 # type: =head2
20266 #: ../fish/guestfish-actions.pod:848
20267 msgid "drop-caches"
20268 msgstr ""
20269
20270 # type: verbatim
20271 #: ../fish/guestfish-actions.pod:850
20272 #, no-wrap
20273 msgid ""
20274 " drop-caches whattodrop\n"
20275 "\n"
20276 msgstr ""
20277
20278 # type: =head2
20279 #: ../fish/guestfish-actions.pod:862
20280 msgid "du"
20281 msgstr ""
20282
20283 # type: verbatim
20284 #: ../fish/guestfish-actions.pod:864
20285 #, no-wrap
20286 msgid ""
20287 " du path\n"
20288 "\n"
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:876
20293 msgid "e2fsck-f"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:878
20298 #, no-wrap
20299 msgid ""
20300 " e2fsck-f device\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: textblock
20305 #: ../fish/guestfish-actions.pod:884
20306 msgid ""
20307 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20308 "should use L</fsck>."
20309 msgstr ""
20310
20311 # type: =head2
20312 #: ../fish/guestfish-actions.pod:887
20313 msgid "echo-daemon"
20314 msgstr ""
20315
20316 # type: verbatim
20317 #: ../fish/guestfish-actions.pod:889
20318 #, no-wrap
20319 msgid ""
20320 " echo-daemon 'words ...'\n"
20321 "\n"
20322 msgstr ""
20323
20324 # type: textblock
20325 #: ../fish/guestfish-actions.pod:896
20326 msgid "See also L</ping-daemon>."
20327 msgstr ""
20328
20329 # type: =head2
20330 #: ../fish/guestfish-actions.pod:898
20331 msgid "egrep"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #: ../fish/guestfish-actions.pod:900
20336 #, no-wrap
20337 msgid ""
20338 " egrep regex path\n"
20339 "\n"
20340 msgstr ""
20341
20342 # type: =head2
20343 #: ../fish/guestfish-actions.pod:908
20344 msgid "egrepi"
20345 msgstr ""
20346
20347 # type: verbatim
20348 #: ../fish/guestfish-actions.pod:910
20349 #, no-wrap
20350 msgid ""
20351 " egrepi regex path\n"
20352 "\n"
20353 msgstr ""
20354
20355 # type: =head2
20356 #: ../fish/guestfish-actions.pod:918
20357 msgid "equal"
20358 msgstr ""
20359
20360 # type: verbatim
20361 #: ../fish/guestfish-actions.pod:920
20362 #, no-wrap
20363 msgid ""
20364 " equal file1 file2\n"
20365 "\n"
20366 msgstr ""
20367
20368 # type: =head2
20369 #: ../fish/guestfish-actions.pod:927
20370 msgid "exists"
20371 msgstr ""
20372
20373 # type: verbatim
20374 #: ../fish/guestfish-actions.pod:929
20375 #, no-wrap
20376 msgid ""
20377 " exists path\n"
20378 "\n"
20379 msgstr ""
20380
20381 # type: textblock
20382 #: ../fish/guestfish-actions.pod:934
20383 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20384 msgstr ""
20385
20386 # type: =head2
20387 #: ../fish/guestfish-actions.pod:936
20388 msgid "fallocate"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #: ../fish/guestfish-actions.pod:938
20393 #, no-wrap
20394 msgid ""
20395 " fallocate path len\n"
20396 "\n"
20397 msgstr ""
20398
20399 # type: =head2
20400 #: ../fish/guestfish-actions.pod:955
20401 msgid "fallocate64"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #: ../fish/guestfish-actions.pod:957
20406 #, no-wrap
20407 msgid ""
20408 " fallocate64 path len\n"
20409 "\n"
20410 msgstr ""
20411
20412 # type: textblock
20413 #: ../fish/guestfish-actions.pod:963
20414 msgid ""
20415 "Note that this call allocates disk blocks for the file.  To create a sparse "
20416 "file use L</truncate-size> instead."
20417 msgstr ""
20418
20419 # type: textblock
20420 #: ../fish/guestfish-actions.pod:966
20421 msgid ""
20422 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20423 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20424 "maximum size of files created through that call to 1GB."
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:975
20429 msgid "fgrep"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:977
20434 #, no-wrap
20435 msgid ""
20436 " fgrep pattern path\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:985
20442 msgid "fgrepi"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:987
20447 #, no-wrap
20448 msgid ""
20449 " fgrepi pattern path\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: =head2
20454 #: ../fish/guestfish-actions.pod:995
20455 msgid "file"
20456 msgstr ""
20457
20458 # type: verbatim
20459 #: ../fish/guestfish-actions.pod:997
20460 #, no-wrap
20461 msgid ""
20462 " file path\n"
20463 "\n"
20464 msgstr ""
20465
20466 # type: textblock
20467 #: ../fish/guestfish-actions.pod:1009
20468 msgid ""
20469 "This command can also be used on C</dev/> devices (and partitions, LV "
20470 "names).  You can for example use this to determine if a device contains a "
20471 "filesystem, although it's usually better to use L</vfs-type>."
20472 msgstr ""
20473
20474 # type: =head2
20475 #: ../fish/guestfish-actions.pod:1019
20476 msgid "file-architecture"
20477 msgstr ""
20478
20479 # type: verbatim
20480 #: ../fish/guestfish-actions.pod:1021
20481 #, no-wrap
20482 msgid ""
20483 " file-architecture filename\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: =head2
20488 #: ../fish/guestfish-actions.pod:1124
20489 msgid "filesize"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #: ../fish/guestfish-actions.pod:1126
20494 #, no-wrap
20495 msgid ""
20496 " filesize file\n"
20497 "\n"
20498 msgstr ""
20499
20500 # type: textblock
20501 #: ../fish/guestfish-actions.pod:1130
20502 msgid ""
20503 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20504 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20505 msgstr ""
20506
20507 # type: =head2
20508 #: ../fish/guestfish-actions.pod:1134
20509 msgid "fill"
20510 msgstr ""
20511
20512 # type: verbatim
20513 #: ../fish/guestfish-actions.pod:1136
20514 #, no-wrap
20515 msgid ""
20516 " fill c len path\n"
20517 "\n"
20518 msgstr ""
20519
20520 # type: textblock
20521 #: ../fish/guestfish-actions.pod:1142
20522 msgid ""
20523 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20524 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20525 "L</fill-pattern>."
20526 msgstr ""
20527
20528 # type: =head2
20529 #: ../fish/guestfish-actions.pod:1147
20530 msgid "fill-pattern"
20531 msgstr ""
20532
20533 # type: verbatim
20534 #: ../fish/guestfish-actions.pod:1149
20535 #, no-wrap
20536 msgid ""
20537 " fill-pattern pattern len path\n"
20538 "\n"
20539 msgstr ""
20540
20541 # type: textblock
20542 #: ../fish/guestfish-actions.pod:1151
20543 msgid ""
20544 "This function is like L</fill> except that it creates a new file of length "
20545 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20546 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20547 "bytes."
20548 msgstr ""
20549
20550 # type: =head2
20551 #: ../fish/guestfish-actions.pod:1156
20552 msgid "find"
20553 msgstr ""
20554
20555 # type: verbatim
20556 #: ../fish/guestfish-actions.pod:1158
20557 #, no-wrap
20558 msgid ""
20559 " find directory\n"
20560 "\n"
20561 msgstr ""
20562
20563 # type: textblock
20564 #: ../fish/guestfish-actions.pod:1172
20565 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20566 msgstr ""
20567
20568 # type: textblock
20569 #: ../fish/guestfish-actions.pod:1185
20570 msgid "See also L</find0>."
20571 msgstr ""
20572
20573 # type: =head2
20574 #: ../fish/guestfish-actions.pod:1190
20575 msgid "find0"
20576 msgstr ""
20577
20578 # type: verbatim
20579 #: ../fish/guestfish-actions.pod:1192
20580 #, no-wrap
20581 msgid ""
20582 " find0 directory (files|-)\n"
20583 "\n"
20584 msgstr ""
20585
20586 # type: textblock
20587 #: ../fish/guestfish-actions.pod:1198
20588 msgid ""
20589 "This command works the same way as L</find> with the following exceptions:"
20590 msgstr ""
20591
20592 # type: =head2
20593 #: ../fish/guestfish-actions.pod:1225
20594 msgid "findfs-label"
20595 msgstr ""
20596
20597 # type: verbatim
20598 #: ../fish/guestfish-actions.pod:1227
20599 #, no-wrap
20600 msgid ""
20601 " findfs-label label\n"
20602 "\n"
20603 msgstr ""
20604
20605 # type: textblock
20606 #: ../fish/guestfish-actions.pod:1233
20607 msgid "To find the label of a filesystem, use L</vfs-label>."
20608 msgstr ""
20609
20610 # type: =head2
20611 #: ../fish/guestfish-actions.pod:1235
20612 msgid "findfs-uuid"
20613 msgstr ""
20614
20615 # type: verbatim
20616 #: ../fish/guestfish-actions.pod:1237
20617 #, no-wrap
20618 msgid ""
20619 " findfs-uuid uuid\n"
20620 "\n"
20621 msgstr ""
20622
20623 # type: textblock
20624 #: ../fish/guestfish-actions.pod:1243
20625 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20626 msgstr ""
20627
20628 # type: =head2
20629 #: ../fish/guestfish-actions.pod:1245
20630 msgid "fsck"
20631 msgstr ""
20632
20633 # type: verbatim
20634 #: ../fish/guestfish-actions.pod:1247
20635 #, no-wrap
20636 msgid ""
20637 " fsck fstype device\n"
20638 "\n"
20639 msgstr ""
20640
20641 # type: =head2
20642 #: ../fish/guestfish-actions.pod:1277
20643 msgid "get-append"
20644 msgstr ""
20645
20646 # type: verbatim
20647 #: ../fish/guestfish-actions.pod:1279
20648 #, no-wrap
20649 msgid ""
20650 " get-append\n"
20651 "\n"
20652 msgstr ""
20653
20654 # type: =head2
20655 #: ../fish/guestfish-actions.pod:1286
20656 msgid "get-autosync"
20657 msgstr ""
20658
20659 # type: verbatim
20660 #: ../fish/guestfish-actions.pod:1288
20661 #, no-wrap
20662 msgid ""
20663 " get-autosync\n"
20664 "\n"
20665 msgstr ""
20666
20667 # type: =head2
20668 #: ../fish/guestfish-actions.pod:1292
20669 msgid "get-direct"
20670 msgstr ""
20671
20672 # type: verbatim
20673 #: ../fish/guestfish-actions.pod:1294
20674 #, no-wrap
20675 msgid ""
20676 " get-direct\n"
20677 "\n"
20678 msgstr ""
20679
20680 # type: =head2
20681 #: ../fish/guestfish-actions.pod:1298
20682 msgid "get-e2label"
20683 msgstr ""
20684
20685 # type: verbatim
20686 #: ../fish/guestfish-actions.pod:1300
20687 #, no-wrap
20688 msgid ""
20689 " get-e2label device\n"
20690 "\n"
20691 msgstr ""
20692
20693 # type: =head2
20694 #: ../fish/guestfish-actions.pod:1312
20695 msgid "get-e2uuid"
20696 msgstr ""
20697
20698 # type: verbatim
20699 #: ../fish/guestfish-actions.pod:1314
20700 #, no-wrap
20701 msgid ""
20702 " get-e2uuid device\n"
20703 "\n"
20704 msgstr ""
20705
20706 # type: =head2
20707 #: ../fish/guestfish-actions.pod:1326
20708 msgid "get-memsize"
20709 msgstr ""
20710
20711 # type: verbatim
20712 #: ../fish/guestfish-actions.pod:1328
20713 #, no-wrap
20714 msgid ""
20715 " get-memsize\n"
20716 "\n"
20717 msgstr ""
20718
20719 # type: textblock
20720 #: ../fish/guestfish-actions.pod:1333
20721 msgid ""
20722 "If L</set-memsize> was not called on this handle, and if "
20723 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20724 "value for memsize."
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:1340
20729 msgid "get-network"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:1342
20734 #, no-wrap
20735 msgid ""
20736 " get-network\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: =head2
20741 #: ../fish/guestfish-actions.pod:1346
20742 msgid "get-path"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #: ../fish/guestfish-actions.pod:1348
20747 #, no-wrap
20748 msgid ""
20749 " get-path\n"
20750 "\n"
20751 msgstr ""
20752
20753 # type: =head2
20754 #: ../fish/guestfish-actions.pod:1355
20755 msgid "get-pid"
20756 msgstr ""
20757
20758 # type: =head2
20759 #: ../fish/guestfish-actions.pod:1357
20760 msgid "pid"
20761 msgstr ""
20762
20763 # type: verbatim
20764 #: ../fish/guestfish-actions.pod:1359
20765 #, no-wrap
20766 msgid ""
20767 " get-pid\n"
20768 "\n"
20769 msgstr ""
20770
20771 # type: =head2
20772 #: ../fish/guestfish-actions.pod:1366
20773 msgid "get-qemu"
20774 msgstr ""
20775
20776 # type: verbatim
20777 #: ../fish/guestfish-actions.pod:1368
20778 #, no-wrap
20779 msgid ""
20780 " get-qemu\n"
20781 "\n"
20782 msgstr ""
20783
20784 # type: =head2
20785 #: ../fish/guestfish-actions.pod:1375
20786 msgid "get-recovery-proc"
20787 msgstr ""
20788
20789 # type: verbatim
20790 #: ../fish/guestfish-actions.pod:1377
20791 #, no-wrap
20792 msgid ""
20793 " get-recovery-proc\n"
20794 "\n"
20795 msgstr ""
20796
20797 # type: =head2
20798 #: ../fish/guestfish-actions.pod:1381
20799 msgid "get-selinux"
20800 msgstr ""
20801
20802 # type: verbatim
20803 #: ../fish/guestfish-actions.pod:1383
20804 #, no-wrap
20805 msgid ""
20806 " get-selinux\n"
20807 "\n"
20808 msgstr ""
20809
20810 # type: textblock
20811 #: ../fish/guestfish-actions.pod:1385
20812 msgid ""
20813 "This returns the current setting of the selinux flag which is passed to the "
20814 "appliance at boot time.  See L</set-selinux>."
20815 msgstr ""
20816
20817 # type: =head2
20818 #: ../fish/guestfish-actions.pod:1391
20819 msgid "get-state"
20820 msgstr ""
20821
20822 # type: verbatim
20823 #: ../fish/guestfish-actions.pod:1393
20824 #, no-wrap
20825 msgid ""
20826 " get-state\n"
20827 "\n"
20828 msgstr ""
20829
20830 # type: =head2
20831 #: ../fish/guestfish-actions.pod:1400
20832 msgid "get-trace"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #: ../fish/guestfish-actions.pod:1402
20837 #, no-wrap
20838 msgid ""
20839 " get-trace\n"
20840 "\n"
20841 msgstr ""
20842
20843 # type: =head2
20844 #: ../fish/guestfish-actions.pod:1406
20845 msgid "get-umask"
20846 msgstr ""
20847
20848 # type: verbatim
20849 #: ../fish/guestfish-actions.pod:1408
20850 #, no-wrap
20851 msgid ""
20852 " get-umask\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: textblock
20857 #: ../fish/guestfish-actions.pod:1410
20858 msgid ""
20859 "Return the current umask.  By default the umask is C<022> unless it has been "
20860 "set by calling L</umask>."
20861 msgstr ""
20862
20863 # type: =head2
20864 #: ../fish/guestfish-actions.pod:1413
20865 msgid "get-verbose"
20866 msgstr ""
20867
20868 # type: verbatim
20869 #: ../fish/guestfish-actions.pod:1415
20870 #, no-wrap
20871 msgid ""
20872 " get-verbose\n"
20873 "\n"
20874 msgstr ""
20875
20876 # type: =head2
20877 #: ../fish/guestfish-actions.pod:1419
20878 msgid "getcon"
20879 msgstr ""
20880
20881 # type: verbatim
20882 #: ../fish/guestfish-actions.pod:1421
20883 #, no-wrap
20884 msgid ""
20885 " getcon\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: textblock
20890 #: ../fish/guestfish-actions.pod:1425
20891 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20892 msgstr ""
20893
20894 # type: =head2
20895 #: ../fish/guestfish-actions.pod:1428
20896 msgid "getxattrs"
20897 msgstr ""
20898
20899 # type: verbatim
20900 #: ../fish/guestfish-actions.pod:1430
20901 #, no-wrap
20902 msgid ""
20903 " getxattrs path\n"
20904 "\n"
20905 msgstr ""
20906
20907 # type: textblock
20908 #: ../fish/guestfish-actions.pod:1438
20909 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20910 msgstr ""
20911
20912 # type: =head2
20913 #: ../fish/guestfish-actions.pod:1440
20914 msgid "glob-expand"
20915 msgstr ""
20916
20917 # type: verbatim
20918 #: ../fish/guestfish-actions.pod:1442
20919 #, no-wrap
20920 msgid ""
20921 " glob-expand pattern\n"
20922 "\n"
20923 msgstr ""
20924
20925 # type: =head2
20926 #: ../fish/guestfish-actions.pod:1455
20927 msgid "grep"
20928 msgstr ""
20929
20930 # type: verbatim
20931 #: ../fish/guestfish-actions.pod:1457
20932 #, no-wrap
20933 msgid ""
20934 " grep regex path\n"
20935 "\n"
20936 msgstr ""
20937
20938 # type: =head2
20939 #: ../fish/guestfish-actions.pod:1465
20940 msgid "grepi"
20941 msgstr ""
20942
20943 # type: verbatim
20944 #: ../fish/guestfish-actions.pod:1467
20945 #, no-wrap
20946 msgid ""
20947 " grepi regex path\n"
20948 "\n"
20949 msgstr ""
20950
20951 # type: =head2
20952 #: ../fish/guestfish-actions.pod:1475
20953 msgid "grub-install"
20954 msgstr ""
20955
20956 # type: verbatim
20957 #: ../fish/guestfish-actions.pod:1477
20958 #, no-wrap
20959 msgid ""
20960 " grub-install root device\n"
20961 "\n"
20962 msgstr ""
20963
20964 # type: =head2
20965 #: ../fish/guestfish-actions.pod:1493
20966 msgid "head"
20967 msgstr ""
20968
20969 # type: verbatim
20970 #: ../fish/guestfish-actions.pod:1495
20971 #, no-wrap
20972 msgid ""
20973 " head path\n"
20974 "\n"
20975 msgstr ""
20976
20977 # type: =head2
20978 #: ../fish/guestfish-actions.pod:1503
20979 msgid "head-n"
20980 msgstr ""
20981
20982 # type: verbatim
20983 #: ../fish/guestfish-actions.pod:1505
20984 #, no-wrap
20985 msgid ""
20986 " head-n nrlines path\n"
20987 "\n"
20988 msgstr ""
20989
20990 # type: =head2
20991 #: ../fish/guestfish-actions.pod:1518
20992 msgid "hexdump"
20993 msgstr ""
20994
20995 # type: verbatim
20996 #: ../fish/guestfish-actions.pod:1520
20997 #, no-wrap
20998 msgid ""
20999 " hexdump path\n"
21000 "\n"
21001 msgstr ""
21002
21003 # type: =head2
21004 #: ../fish/guestfish-actions.pod:1528
21005 msgid "initrd-cat"
21006 msgstr ""
21007
21008 # type: verbatim
21009 #: ../fish/guestfish-actions.pod:1530
21010 #, no-wrap
21011 msgid ""
21012 " initrd-cat initrdpath filename\n"
21013 "\n"
21014 msgstr ""
21015
21016 # type: textblock
21017 #: ../fish/guestfish-actions.pod:1542
21018 msgid "See also L</initrd-list>."
21019 msgstr ""
21020
21021 # type: =head2
21022 #: ../fish/guestfish-actions.pod:1547
21023 msgid "initrd-list"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #: ../fish/guestfish-actions.pod:1549
21028 #, no-wrap
21029 msgid ""
21030 " initrd-list path\n"
21031 "\n"
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:1561
21036 msgid "inotify-add-watch"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:1563
21041 #, no-wrap
21042 msgid ""
21043 " inotify-add-watch path mask\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:1575
21049 msgid "inotify-close"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:1577
21054 #, no-wrap
21055 msgid ""
21056 " inotify-close\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:1583
21062 msgid "inotify-files"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:1585
21067 #, no-wrap
21068 msgid ""
21069 " inotify-files\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: textblock
21074 #: ../fish/guestfish-actions.pod:1587
21075 msgid ""
21076 "This function is a helpful wrapper around L</inotify-read> which just "
21077 "returns a list of pathnames of objects that were touched.  The returned "
21078 "pathnames are sorted and deduplicated."
21079 msgstr ""
21080
21081 # type: =head2
21082 #: ../fish/guestfish-actions.pod:1591
21083 msgid "inotify-init"
21084 msgstr ""
21085
21086 # type: verbatim
21087 #: ../fish/guestfish-actions.pod:1593
21088 #, no-wrap
21089 msgid ""
21090 " inotify-init maxevents\n"
21091 "\n"
21092 msgstr ""
21093
21094 # type: textblock
21095 #: ../fish/guestfish-actions.pod:1599
21096 msgid ""
21097 "C<maxevents> is the maximum number of events which will be queued up between "
21098 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21099 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21100 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21101 "but records the fact that it threw them away by setting a flag "
21102 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21103 msgstr ""
21104
21105 # type: textblock
21106 #: ../fish/guestfish-actions.pod:1609
21107 msgid ""
21108 "Before any events are generated, you have to add some watches to the "
21109 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21110 "L</inotify-watch-all>."
21111 msgstr ""
21112
21113 # type: textblock
21114 #: ../fish/guestfish-actions.pod:1615
21115 msgid ""
21116 "Queued up events should be read periodically by calling L</inotify-read> (or "
21117 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21118 "If you don't read the events out often enough then you risk the internal "
21119 "queue overflowing."
21120 msgstr ""
21121
21122 # type: textblock
21123 #: ../fish/guestfish-actions.pod:1622
21124 msgid ""
21125 "The handle should be closed after use by calling L</inotify-close>.  This "
21126 "also removes any watches automatically."
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:1631
21131 msgid "inotify-read"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:1633
21136 #, no-wrap
21137 msgid ""
21138 " inotify-read\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: =head2
21143 #: ../fish/guestfish-actions.pod:1646
21144 msgid "inotify-rm-watch"
21145 msgstr ""
21146
21147 # type: verbatim
21148 #: ../fish/guestfish-actions.pod:1648
21149 #, no-wrap
21150 msgid ""
21151 " inotify-rm-watch wd\n"
21152 "\n"
21153 msgstr ""
21154
21155 # type: textblock
21156 #: ../fish/guestfish-actions.pod:1650
21157 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21158 msgstr ""
21159
21160 # type: =head2
21161 #: ../fish/guestfish-actions.pod:1653
21162 msgid "inspect-get-arch"
21163 msgstr ""
21164
21165 # type: verbatim
21166 #: ../fish/guestfish-actions.pod:1655
21167 #, no-wrap
21168 msgid ""
21169 " inspect-get-arch root\n"
21170 "\n"
21171 msgstr ""
21172
21173 # type: textblock
21174 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21175 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21176 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21177 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21178 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21179 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21180 #: ../fish/guestfish-actions.pod:1966
21181 msgid ""
21182 "This function should only be called with a root device string as returned by "
21183 "L</inspect-os>."
21184 msgstr ""
21185
21186 # type: textblock
21187 #: ../fish/guestfish-actions.pod:1660
21188 msgid ""
21189 "This returns the architecture of the inspected operating system.  The "
21190 "possible return values are listed under L</file-architecture>."
21191 msgstr ""
21192
21193 # type: =head2
21194 #: ../fish/guestfish-actions.pod:1669
21195 msgid "inspect-get-distro"
21196 msgstr ""
21197
21198 # type: verbatim
21199 #: ../fish/guestfish-actions.pod:1671
21200 #, no-wrap
21201 msgid ""
21202 " inspect-get-distro root\n"
21203 "\n"
21204 msgstr ""
21205
21206 # type: =head2
21207 #: ../fish/guestfish-actions.pod:1743
21208 msgid "inspect-get-filesystems"
21209 msgstr ""
21210
21211 # type: verbatim
21212 #: ../fish/guestfish-actions.pod:1745
21213 #, no-wrap
21214 msgid ""
21215 " inspect-get-filesystems root\n"
21216 "\n"
21217 msgstr ""
21218
21219 # type: textblock
21220 #: ../fish/guestfish-actions.pod:1758
21221 msgid ""
21222 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21223 "get-mountpoints>."
21224 msgstr ""
21225
21226 # type: =head2
21227 #: ../fish/guestfish-actions.pod:1761
21228 msgid "inspect-get-hostname"
21229 msgstr ""
21230
21231 # type: verbatim
21232 #: ../fish/guestfish-actions.pod:1763
21233 #, no-wrap
21234 msgid ""
21235 " inspect-get-hostname root\n"
21236 "\n"
21237 msgstr ""
21238
21239 # type: =head2
21240 #: ../fish/guestfish-actions.pod:1776
21241 msgid "inspect-get-major-version"
21242 msgstr ""
21243
21244 # type: verbatim
21245 #: ../fish/guestfish-actions.pod:1778
21246 #, no-wrap
21247 msgid ""
21248 " inspect-get-major-version root\n"
21249 "\n"
21250 msgstr ""
21251
21252 # type: =head2
21253 #: ../fish/guestfish-actions.pod:1797
21254 msgid "inspect-get-minor-version"
21255 msgstr ""
21256
21257 # type: verbatim
21258 #: ../fish/guestfish-actions.pod:1799
21259 #, no-wrap
21260 msgid ""
21261 " inspect-get-minor-version root\n"
21262 "\n"
21263 msgstr ""
21264
21265 # type: textblock
21266 #: ../fish/guestfish-actions.pod:1809
21267 msgid ""
21268 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21269 "get-major-version>."
21270 msgstr ""
21271
21272 # type: =head2
21273 #: ../fish/guestfish-actions.pod:1812
21274 msgid "inspect-get-mountpoints"
21275 msgstr ""
21276
21277 # type: verbatim
21278 #: ../fish/guestfish-actions.pod:1814
21279 #, no-wrap
21280 msgid ""
21281 " inspect-get-mountpoints root\n"
21282 "\n"
21283 msgstr ""
21284
21285 # type: textblock
21286 #: ../fish/guestfish-actions.pod:1832
21287 msgid ""
21288 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21289 "get-filesystems>."
21290 msgstr ""
21291
21292 # type: =head2
21293 #: ../fish/guestfish-actions.pod:1835
21294 msgid "inspect-get-package-format"
21295 msgstr ""
21296
21297 # type: verbatim
21298 #: ../fish/guestfish-actions.pod:1837
21299 #, no-wrap
21300 msgid ""
21301 " inspect-get-package-format root\n"
21302 "\n"
21303 msgstr ""
21304
21305 # type: textblock
21306 #: ../fish/guestfish-actions.pod:1842
21307 msgid ""
21308 "This function and L</inspect-get-package-management> return the package "
21309 "format and package management tool used by the inspected operating system.  "
21310 "For example for Fedora these functions would return C<rpm> (package format) "
21311 "and C<yum> (package management)."
21312 msgstr ""
21313
21314 # type: =head2
21315 #: ../fish/guestfish-actions.pod:1857
21316 msgid "inspect-get-package-management"
21317 msgstr ""
21318
21319 # type: verbatim
21320 #: ../fish/guestfish-actions.pod:1859
21321 #, no-wrap
21322 msgid ""
21323 " inspect-get-package-management root\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: textblock
21328 #: ../fish/guestfish-actions.pod:1864
21329 msgid ""
21330 "L</inspect-get-package-format> and this function return the package format "
21331 "and package management tool used by the inspected operating system.  For "
21332 "example for Fedora these functions would return C<rpm> (package format) and "
21333 "C<yum> (package management)."
21334 msgstr ""
21335
21336 # type: =head2
21337 #: ../fish/guestfish-actions.pod:1881
21338 msgid "inspect-get-product-name"
21339 msgstr ""
21340
21341 # type: verbatim
21342 #: ../fish/guestfish-actions.pod:1883
21343 #, no-wrap
21344 msgid ""
21345 " inspect-get-product-name root\n"
21346 "\n"
21347 msgstr ""
21348
21349 # type: =head2
21350 #: ../fish/guestfish-actions.pod:1898
21351 msgid "inspect-get-roots"
21352 msgstr ""
21353
21354 # type: verbatim
21355 #: ../fish/guestfish-actions.pod:1900
21356 #, no-wrap
21357 msgid ""
21358 " inspect-get-roots\n"
21359 "\n"
21360 msgstr ""
21361
21362 # type: textblock
21363 #: ../fish/guestfish-actions.pod:1902
21364 msgid ""
21365 "This function is a convenient way to get the list of root devices, as "
21366 "returned from a previous call to L</inspect-os>, but without redoing the "
21367 "whole inspection process."
21368 msgstr ""
21369
21370 # type: textblock
21371 #: ../fish/guestfish-actions.pod:1906
21372 msgid ""
21373 "This returns an empty list if either no root devices were found or the "
21374 "caller has not called L</inspect-os>."
21375 msgstr ""
21376
21377 # type: =head2
21378 #: ../fish/guestfish-actions.pod:1911
21379 msgid "inspect-get-type"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #: ../fish/guestfish-actions.pod:1913
21384 #, no-wrap
21385 msgid ""
21386 " inspect-get-type root\n"
21387 "\n"
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:1946
21392 msgid "inspect-get-windows-systemroot"
21393 msgstr ""
21394
21395 # type: verbatim
21396 #: ../fish/guestfish-actions.pod:1948
21397 #, no-wrap
21398 msgid ""
21399 " inspect-get-windows-systemroot root\n"
21400 "\n"
21401 msgstr ""
21402
21403 # type: =head2
21404 #: ../fish/guestfish-actions.pod:1962
21405 msgid "inspect-list-applications"
21406 msgstr ""
21407
21408 # type: verbatim
21409 #: ../fish/guestfish-actions.pod:1964
21410 #, no-wrap
21411 msgid ""
21412 " inspect-list-applications root\n"
21413 "\n"
21414 msgstr ""
21415
21416 # type: textblock
21417 #: ../fish/guestfish-actions.pod:1971
21418 msgid ""
21419 "I<Note:> This call works differently from other parts of the inspection "
21420 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21421 "then mount up the disks, before calling this.  Listing applications is a "
21422 "significantly more difficult operation which requires access to the full "
21423 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21424 "are just returning data cached in the libguestfs handle, this call actually "
21425 "reads parts of the mounted filesystems during the call."
21426 msgstr ""
21427
21428 # type: =head2
21429 #: ../fish/guestfish-actions.pod:2061
21430 msgid "inspect-os"
21431 msgstr ""
21432
21433 # type: verbatim
21434 #: ../fish/guestfish-actions.pod:2063
21435 #, no-wrap
21436 msgid ""
21437 " inspect-os\n"
21438 "\n"
21439 msgstr ""
21440
21441 # type: textblock
21442 #: ../fish/guestfish-actions.pod:2078
21443 msgid ""
21444 "You can pass the root string(s) returned to other L</inspect-get-*> "
21445 "functions in order to query further information about each operating system, "
21446 "such as the name and version."
21447 msgstr ""
21448
21449 # type: textblock
21450 #: ../fish/guestfish-actions.pod:2083
21451 msgid ""
21452 "This function uses other libguestfs features such as L</mount-ro> and L</"
21453 "umount-all> in order to mount and unmount filesystems and look at the "
21454 "contents.  This should be called with no disks currently mounted.  The "
21455 "function may also use Augeas, so any existing Augeas handle will be closed."
21456 msgstr ""
21457
21458 # type: textblock
21459 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21460 #: ../fish/guestfish-actions.pod:2297
21461 msgid "See also L</list-filesystems>."
21462 msgstr ""
21463
21464 # type: =head2
21465 #: ../fish/guestfish-actions.pod:2097
21466 msgid "is-blockdev"
21467 msgstr ""
21468
21469 # type: verbatim
21470 #: ../fish/guestfish-actions.pod:2099
21471 #, no-wrap
21472 msgid ""
21473 " is-blockdev path\n"
21474 "\n"
21475 msgstr ""
21476
21477 # type: textblock
21478 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21479 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21480 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21481 #: ../fish/guestfish-actions.pod:2203
21482 msgid "See also L</stat>."
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:2106
21487 msgid "is-busy"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:2108
21492 #, no-wrap
21493 msgid ""
21494 " is-busy\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:2115
21500 msgid "is-chardev"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:2117
21505 #, no-wrap
21506 msgid ""
21507 " is-chardev path\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: =head2
21512 #: ../fish/guestfish-actions.pod:2124
21513 msgid "is-config"
21514 msgstr ""
21515
21516 # type: verbatim
21517 #: ../fish/guestfish-actions.pod:2126
21518 #, no-wrap
21519 msgid ""
21520 " is-config\n"
21521 "\n"
21522 msgstr ""
21523
21524 # type: =head2
21525 #: ../fish/guestfish-actions.pod:2133
21526 msgid "is-dir"
21527 msgstr ""
21528
21529 # type: verbatim
21530 #: ../fish/guestfish-actions.pod:2135
21531 #, no-wrap
21532 msgid ""
21533 " is-dir path\n"
21534 "\n"
21535 msgstr ""
21536
21537 # type: =head2
21538 #: ../fish/guestfish-actions.pod:2143
21539 msgid "is-fifo"
21540 msgstr ""
21541
21542 # type: verbatim
21543 #: ../fish/guestfish-actions.pod:2145
21544 #, no-wrap
21545 msgid ""
21546 " is-fifo path\n"
21547 "\n"
21548 msgstr ""
21549
21550 # type: =head2
21551 #: ../fish/guestfish-actions.pod:2152
21552 msgid "is-file"
21553 msgstr ""
21554
21555 # type: verbatim
21556 #: ../fish/guestfish-actions.pod:2154
21557 #, no-wrap
21558 msgid ""
21559 " is-file path\n"
21560 "\n"
21561 msgstr ""
21562
21563 # type: =head2
21564 #: ../fish/guestfish-actions.pod:2162
21565 msgid "is-launching"
21566 msgstr ""
21567
21568 # type: verbatim
21569 #: ../fish/guestfish-actions.pod:2164
21570 #, no-wrap
21571 msgid ""
21572 " is-launching\n"
21573 "\n"
21574 msgstr ""
21575
21576 # type: =head2
21577 #: ../fish/guestfish-actions.pod:2171
21578 msgid "is-lv"
21579 msgstr ""
21580
21581 # type: verbatim
21582 #: ../fish/guestfish-actions.pod:2173
21583 #, no-wrap
21584 msgid ""
21585 " is-lv device\n"
21586 "\n"
21587 msgstr ""
21588
21589 # type: =head2
21590 #: ../fish/guestfish-actions.pod:2178
21591 msgid "is-ready"
21592 msgstr ""
21593
21594 # type: verbatim
21595 #: ../fish/guestfish-actions.pod:2180
21596 #, no-wrap
21597 msgid ""
21598 " is-ready\n"
21599 "\n"
21600 msgstr ""
21601
21602 # type: =head2
21603 #: ../fish/guestfish-actions.pod:2187
21604 msgid "is-socket"
21605 msgstr ""
21606
21607 # type: verbatim
21608 #: ../fish/guestfish-actions.pod:2189
21609 #, no-wrap
21610 msgid ""
21611 " is-socket path\n"
21612 "\n"
21613 msgstr ""
21614
21615 # type: =head2
21616 #: ../fish/guestfish-actions.pod:2196
21617 msgid "is-symlink"
21618 msgstr ""
21619
21620 # type: verbatim
21621 #: ../fish/guestfish-actions.pod:2198
21622 #, no-wrap
21623 msgid ""
21624 " is-symlink path\n"
21625 "\n"
21626 msgstr ""
21627
21628 # type: =head2
21629 #: ../fish/guestfish-actions.pod:2205
21630 msgid "kill-subprocess"
21631 msgstr ""
21632
21633 # type: verbatim
21634 #: ../fish/guestfish-actions.pod:2207
21635 #, no-wrap
21636 msgid ""
21637 " kill-subprocess\n"
21638 "\n"
21639 msgstr ""
21640
21641 # type: =head2
21642 #: ../fish/guestfish-actions.pod:2211
21643 msgid "launch"
21644 msgstr ""
21645
21646 # type: =head2
21647 #: ../fish/guestfish-actions.pod:2213
21648 msgid "run"
21649 msgstr ""
21650
21651 # type: verbatim
21652 #: ../fish/guestfish-actions.pod:2215
21653 #, no-wrap
21654 msgid ""
21655 " launch\n"
21656 "\n"
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:2223
21661 msgid "lchown"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:2225
21666 #, no-wrap
21667 msgid ""
21668 " lchown owner group path\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: textblock
21673 #: ../fish/guestfish-actions.pod:2227
21674 msgid ""
21675 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21676 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21677 "target."
21678 msgstr ""
21679
21680 # type: =head2
21681 #: ../fish/guestfish-actions.pod:2235
21682 msgid "lgetxattrs"
21683 msgstr ""
21684
21685 # type: verbatim
21686 #: ../fish/guestfish-actions.pod:2237
21687 #, no-wrap
21688 msgid ""
21689 " lgetxattrs path\n"
21690 "\n"
21691 msgstr ""
21692
21693 # type: textblock
21694 #: ../fish/guestfish-actions.pod:2239
21695 msgid ""
21696 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21697 "it returns the extended attributes of the link itself."
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:2243
21702 msgid "list-devices"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #: ../fish/guestfish-actions.pod:2245
21707 #, no-wrap
21708 msgid ""
21709 " list-devices\n"
21710 "\n"
21711 msgstr ""
21712
21713 # type: =head2
21714 #: ../fish/guestfish-actions.pod:2253
21715 msgid "list-filesystems"
21716 msgstr ""
21717
21718 # type: verbatim
21719 #: ../fish/guestfish-actions.pod:2255
21720 #, no-wrap
21721 msgid ""
21722 " list-filesystems\n"
21723 "\n"
21724 msgstr ""
21725
21726 # type: textblock
21727 #: ../fish/guestfish-actions.pod:2274
21728 msgid ""
21729 "This command runs other libguestfs commands, which might include L</mount> "
21730 "and L</umount>, and therefore you should use this soon after launch and only "
21731 "when nothing is mounted."
21732 msgstr ""
21733
21734 # type: textblock
21735 #: ../fish/guestfish-actions.pod:2278
21736 msgid ""
21737 "Not all of the filesystems returned will be mountable.  In particular, swap "
21738 "partitions are returned in the list.  Also this command does not check that "
21739 "each filesystem found is valid and mountable, and some filesystems might be "
21740 "mountable but require special options.  Filesystems may not all belong to a "
21741 "single logical operating system (use L</inspect-os> to look for OSes)."
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:2286
21746 msgid "list-partitions"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:2288
21751 #, no-wrap
21752 msgid ""
21753 " list-partitions\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: textblock
21758 #: ../fish/guestfish-actions.pod:2294
21759 msgid ""
21760 "This does not return logical volumes.  For that you will need to call L</"
21761 "lvs>."
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:2299
21766 msgid "ll"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:2301
21771 #, no-wrap
21772 msgid ""
21773 " ll directory\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: =head2
21778 #: ../fish/guestfish-actions.pod:2309
21779 msgid "ln"
21780 msgstr ""
21781
21782 # type: verbatim
21783 #: ../fish/guestfish-actions.pod:2311
21784 #, no-wrap
21785 msgid ""
21786 " ln target linkname\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:2315
21792 msgid "ln-f"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:2317
21797 #, no-wrap
21798 msgid ""
21799 " ln-f target linkname\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:2322
21805 msgid "ln-s"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:2324
21810 #, no-wrap
21811 msgid ""
21812 " ln-s target linkname\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: =head2
21817 #: ../fish/guestfish-actions.pod:2328
21818 msgid "ln-sf"
21819 msgstr ""
21820
21821 # type: verbatim
21822 #: ../fish/guestfish-actions.pod:2330
21823 #, no-wrap
21824 msgid ""
21825 " ln-sf target linkname\n"
21826 "\n"
21827 msgstr ""
21828
21829 # type: =head2
21830 #: ../fish/guestfish-actions.pod:2335
21831 msgid "lremovexattr"
21832 msgstr ""
21833
21834 # type: verbatim
21835 #: ../fish/guestfish-actions.pod:2337
21836 #, no-wrap
21837 msgid ""
21838 " lremovexattr xattr path\n"
21839 "\n"
21840 msgstr ""
21841
21842 # type: textblock
21843 #: ../fish/guestfish-actions.pod:2339
21844 msgid ""
21845 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21846 "it removes an extended attribute of the link itself."
21847 msgstr ""
21848
21849 # type: =head2
21850 #: ../fish/guestfish-actions.pod:2343
21851 msgid "ls"
21852 msgstr ""
21853
21854 # type: verbatim
21855 #: ../fish/guestfish-actions.pod:2345
21856 #, no-wrap
21857 msgid ""
21858 " ls directory\n"
21859 "\n"
21860 msgstr ""
21861
21862 # type: textblock
21863 #: ../fish/guestfish-actions.pod:2351
21864 msgid ""
21865 "This command is mostly useful for interactive sessions.  Programs should "
21866 "probably use L</readdir> instead."
21867 msgstr ""
21868
21869 # type: =head2
21870 #: ../fish/guestfish-actions.pod:2354
21871 msgid "lsetxattr"
21872 msgstr ""
21873
21874 # type: verbatim
21875 #: ../fish/guestfish-actions.pod:2356
21876 #, no-wrap
21877 msgid ""
21878 " lsetxattr xattr val vallen path\n"
21879 "\n"
21880 msgstr ""
21881
21882 # type: textblock
21883 #: ../fish/guestfish-actions.pod:2358
21884 msgid ""
21885 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21886 "sets an extended attribute of the link itself."
21887 msgstr ""
21888
21889 # type: =head2
21890 #: ../fish/guestfish-actions.pod:2362
21891 msgid "lstat"
21892 msgstr ""
21893
21894 # type: verbatim
21895 #: ../fish/guestfish-actions.pod:2364
21896 #, no-wrap
21897 msgid ""
21898 " lstat path\n"
21899 "\n"
21900 msgstr ""
21901
21902 # type: textblock
21903 #: ../fish/guestfish-actions.pod:2368
21904 msgid ""
21905 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21906 "the link is stat-ed, not the file it refers to."
21907 msgstr ""
21908
21909 # type: =head2
21910 #: ../fish/guestfish-actions.pod:2374
21911 msgid "lstatlist"
21912 msgstr ""
21913
21914 # type: verbatim
21915 #: ../fish/guestfish-actions.pod:2376
21916 #, no-wrap
21917 msgid ""
21918 " lstatlist path 'names ...'\n"
21919 "\n"
21920 msgstr ""
21921
21922 # type: textblock
21923 #: ../fish/guestfish-actions.pod:2378
21924 msgid ""
21925 "This call allows you to perform the L</lstat> operation on multiple files, "
21926 "where all files are in the directory C<path>.  C<names> is the list of files "
21927 "from this directory."
21928 msgstr ""
21929
21930 # type: textblock
21931 #: ../fish/guestfish-actions.pod:2387
21932 msgid ""
21933 "This call is intended for programs that want to efficiently list a directory "
21934 "contents without making many round-trips.  See also L</lxattrlist> for a "
21935 "similarly efficient call for getting extended attributes.  Very long "
21936 "directory listings might cause the protocol message size to be exceeded, "
21937 "causing this call to fail.  The caller must split up such requests into "
21938 "smaller groups of names."
21939 msgstr ""
21940
21941 # type: =head2
21942 #: ../fish/guestfish-actions.pod:2395
21943 msgid "luks-add-key"
21944 msgstr ""
21945
21946 # type: verbatim
21947 #: ../fish/guestfish-actions.pod:2397
21948 #, no-wrap
21949 msgid ""
21950 " luks-add-key device keyslot\n"
21951 "\n"
21952 msgstr ""
21953
21954 # type: textblock
21955 #: ../fish/guestfish-actions.pod:2404
21956 msgid ""
21957 "Note that if C<keyslot> already contains a key, then this command will "
21958 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21959 msgstr ""
21960
21961 # type: textblock
21962 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
21963 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
21964 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21965 msgid ""
21966 "This command has one or more key or passphrase parameters.  Guestfish will "
21967 "prompt for these separately."
21968 msgstr ""
21969
21970 # type: =head2
21971 #: ../fish/guestfish-actions.pod:2411
21972 msgid "luks-close"
21973 msgstr ""
21974
21975 # type: verbatim
21976 #: ../fish/guestfish-actions.pod:2413
21977 #, no-wrap
21978 msgid ""
21979 " luks-close device\n"
21980 "\n"
21981 msgstr ""
21982
21983 # type: textblock
21984 #: ../fish/guestfish-actions.pod:2415
21985 msgid ""
21986 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21987 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21988 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21989 "block device."
21990 msgstr ""
21991
21992 # type: =head2
21993 #: ../fish/guestfish-actions.pod:2421
21994 msgid "luks-format"
21995 msgstr ""
21996
21997 # type: verbatim
21998 #: ../fish/guestfish-actions.pod:2423
21999 #, no-wrap
22000 msgid ""
22001 " luks-format device keyslot\n"
22002 "\n"
22003 msgstr ""
22004
22005 # type: =head2
22006 #: ../fish/guestfish-actions.pod:2436
22007 msgid "luks-format-cipher"
22008 msgstr ""
22009
22010 # type: verbatim
22011 #: ../fish/guestfish-actions.pod:2438
22012 #, no-wrap
22013 msgid ""
22014 " luks-format-cipher device keyslot cipher\n"
22015 "\n"
22016 msgstr ""
22017
22018 # type: textblock
22019 #: ../fish/guestfish-actions.pod:2440
22020 msgid ""
22021 "This command is the same as L</luks-format> but it also allows you to set "
22022 "the C<cipher> used."
22023 msgstr ""
22024
22025 # type: =head2
22026 #: ../fish/guestfish-actions.pod:2449
22027 msgid "luks-kill-slot"
22028 msgstr ""
22029
22030 # type: verbatim
22031 #: ../fish/guestfish-actions.pod:2451
22032 #, no-wrap
22033 msgid ""
22034 " luks-kill-slot device keyslot\n"
22035 "\n"
22036 msgstr ""
22037
22038 # type: =head2
22039 #: ../fish/guestfish-actions.pod:2460
22040 msgid "luks-open"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #: ../fish/guestfish-actions.pod:2462
22045 #, no-wrap
22046 msgid ""
22047 " luks-open device mapname\n"
22048 "\n"
22049 msgstr ""
22050
22051 # type: textblock
22052 #: ../fish/guestfish-actions.pod:2476
22053 msgid ""
22054 "If this block device contains LVM volume groups, then calling L</vgscan> "
22055 "followed by L</vg-activate-all> will make them visible."
22056 msgstr ""
22057
22058 # type: =head2
22059 #: ../fish/guestfish-actions.pod:2483
22060 msgid "luks-open-ro"
22061 msgstr ""
22062
22063 # type: verbatim
22064 #: ../fish/guestfish-actions.pod:2485
22065 #, no-wrap
22066 msgid ""
22067 " luks-open-ro device mapname\n"
22068 "\n"
22069 msgstr ""
22070
22071 # type: textblock
22072 #: ../fish/guestfish-actions.pod:2487
22073 msgid ""
22074 "This is the same as L</luks-open> except that a read-only mapping is created."
22075 msgstr ""
22076
22077 # type: =head2
22078 #: ../fish/guestfish-actions.pod:2493
22079 msgid "lvcreate"
22080 msgstr ""
22081
22082 # type: verbatim
22083 #: ../fish/guestfish-actions.pod:2495
22084 #, no-wrap
22085 msgid ""
22086 " lvcreate logvol volgroup mbytes\n"
22087 "\n"
22088 msgstr ""
22089
22090 # type: =head2
22091 #: ../fish/guestfish-actions.pod:2500
22092 msgid "lvm-canonical-lv-name"
22093 msgstr ""
22094
22095 # type: verbatim
22096 #: ../fish/guestfish-actions.pod:2502
22097 #, no-wrap
22098 msgid ""
22099 " lvm-canonical-lv-name lvname\n"
22100 "\n"
22101 msgstr ""
22102
22103 # type: textblock
22104 #: ../fish/guestfish-actions.pod:2511
22105 msgid "See also L</is-lv>."
22106 msgstr ""
22107
22108 # type: =head2
22109 #: ../fish/guestfish-actions.pod:2513
22110 msgid "lvm-clear-filter"
22111 msgstr ""
22112
22113 # type: verbatim
22114 #: ../fish/guestfish-actions.pod:2515
22115 #, no-wrap
22116 msgid ""
22117 " lvm-clear-filter\n"
22118 "\n"
22119 msgstr ""
22120
22121 # type: textblock
22122 #: ../fish/guestfish-actions.pod:2517
22123 msgid ""
22124 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22125 "block device."
22126 msgstr ""
22127
22128 # type: =head2
22129 #: ../fish/guestfish-actions.pod:2523
22130 msgid "lvm-remove-all"
22131 msgstr ""
22132
22133 # type: verbatim
22134 #: ../fish/guestfish-actions.pod:2525
22135 #, no-wrap
22136 msgid ""
22137 " lvm-remove-all\n"
22138 "\n"
22139 msgstr ""
22140
22141 # type: =head2
22142 #: ../fish/guestfish-actions.pod:2533
22143 msgid "lvm-set-filter"
22144 msgstr ""
22145
22146 # type: verbatim
22147 #: ../fish/guestfish-actions.pod:2535
22148 #, no-wrap
22149 msgid ""
22150 " lvm-set-filter 'devices ...'\n"
22151 "\n"
22152 msgstr ""
22153
22154 # type: =head2
22155 #: ../fish/guestfish-actions.pod:2560
22156 msgid "lvremove"
22157 msgstr ""
22158
22159 # type: verbatim
22160 #: ../fish/guestfish-actions.pod:2562
22161 #, no-wrap
22162 msgid ""
22163 " lvremove device\n"
22164 "\n"
22165 msgstr ""
22166
22167 # type: =head2
22168 #: ../fish/guestfish-actions.pod:2570
22169 msgid "lvrename"
22170 msgstr ""
22171
22172 # type: verbatim
22173 #: ../fish/guestfish-actions.pod:2572
22174 #, no-wrap
22175 msgid ""
22176 " lvrename logvol newlogvol\n"
22177 "\n"
22178 msgstr ""
22179
22180 # type: =head2
22181 #: ../fish/guestfish-actions.pod:2576
22182 msgid "lvresize"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #: ../fish/guestfish-actions.pod:2578
22187 #, no-wrap
22188 msgid ""
22189 " lvresize device mbytes\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: =head2
22194 #: ../fish/guestfish-actions.pod:2584
22195 msgid "lvresize-free"
22196 msgstr ""
22197
22198 # type: verbatim
22199 #: ../fish/guestfish-actions.pod:2586
22200 #, no-wrap
22201 msgid ""
22202 " lvresize-free lv percent\n"
22203 "\n"
22204 msgstr ""
22205
22206 # type: =head2
22207 #: ../fish/guestfish-actions.pod:2594
22208 msgid "lvs"
22209 msgstr ""
22210
22211 # type: verbatim
22212 #: ../fish/guestfish-actions.pod:2596
22213 #, no-wrap
22214 msgid ""
22215 " lvs\n"
22216 "\n"
22217 msgstr ""
22218
22219 # type: textblock
22220 #: ../fish/guestfish-actions.pod:2604
22221 msgid "See also L</lvs-full>, L</list-filesystems>."
22222 msgstr ""
22223
22224 # type: =head2
22225 #: ../fish/guestfish-actions.pod:2606
22226 msgid "lvs-full"
22227 msgstr ""
22228
22229 # type: verbatim
22230 #: ../fish/guestfish-actions.pod:2608
22231 #, no-wrap
22232 msgid ""
22233 " lvs-full\n"
22234 "\n"
22235 msgstr ""
22236
22237 # type: =head2
22238 #: ../fish/guestfish-actions.pod:2613
22239 msgid "lvuuid"
22240 msgstr ""
22241
22242 # type: verbatim
22243 #: ../fish/guestfish-actions.pod:2615
22244 #, no-wrap
22245 msgid ""
22246 " lvuuid device\n"
22247 "\n"
22248 msgstr ""
22249
22250 # type: =head2
22251 #: ../fish/guestfish-actions.pod:2619
22252 msgid "lxattrlist"
22253 msgstr ""
22254
22255 # type: verbatim
22256 #: ../fish/guestfish-actions.pod:2621
22257 #, no-wrap
22258 msgid ""
22259 " lxattrlist path 'names ...'\n"
22260 "\n"
22261 msgstr ""
22262
22263 # type: textblock
22264 #: ../fish/guestfish-actions.pod:2637
22265 msgid ""
22266 "This call is intended for programs that want to efficiently list a directory "
22267 "contents without making many round-trips.  See also L</lstatlist> for a "
22268 "similarly efficient call for getting standard stats.  Very long directory "
22269 "listings might cause the protocol message size to be exceeded, causing this "
22270 "call to fail.  The caller must split up such requests into smaller groups of "
22271 "names."
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:2645
22276 msgid "mkdir"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:2647
22281 #, no-wrap
22282 msgid ""
22283 " mkdir path\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:2651
22289 msgid "mkdir-mode"
22290 msgstr ""
22291
22292 # type: verbatim
22293 #: ../fish/guestfish-actions.pod:2653
22294 #, no-wrap
22295 msgid ""
22296 " mkdir-mode path mode\n"
22297 "\n"
22298 msgstr ""
22299
22300 # type: textblock
22301 #: ../fish/guestfish-actions.pod:2662
22302 msgid "See also L</mkdir>, L</umask>"
22303 msgstr ""
22304
22305 # type: =head2
22306 #: ../fish/guestfish-actions.pod:2664
22307 msgid "mkdir-p"
22308 msgstr ""
22309
22310 # type: verbatim
22311 #: ../fish/guestfish-actions.pod:2666
22312 #, no-wrap
22313 msgid ""
22314 " mkdir-p path\n"
22315 "\n"
22316 msgstr ""
22317
22318 # type: =head2
22319 #: ../fish/guestfish-actions.pod:2671
22320 msgid "mkdtemp"
22321 msgstr ""
22322
22323 # type: verbatim
22324 #: ../fish/guestfish-actions.pod:2673
22325 #, no-wrap
22326 msgid ""
22327 " mkdtemp template\n"
22328 "\n"
22329 msgstr ""
22330
22331 # type: =head2
22332 #: ../fish/guestfish-actions.pod:2694
22333 msgid "mke2fs-J"
22334 msgstr ""
22335
22336 # type: verbatim
22337 #: ../fish/guestfish-actions.pod:2696
22338 #, no-wrap
22339 msgid ""
22340 " mke2fs-J fstype blocksize device journal\n"
22341 "\n"
22342 msgstr ""
22343
22344 # type: textblock
22345 #: ../fish/guestfish-actions.pod:2704
22346 msgid "See also L</mke2journal>."
22347 msgstr ""
22348
22349 # type: =head2
22350 #: ../fish/guestfish-actions.pod:2706
22351 msgid "mke2fs-JL"
22352 msgstr ""
22353
22354 # type: verbatim
22355 #: ../fish/guestfish-actions.pod:2708
22356 #, no-wrap
22357 msgid ""
22358 " mke2fs-JL fstype blocksize device label\n"
22359 "\n"
22360 msgstr ""
22361
22362 # type: textblock
22363 #: ../fish/guestfish-actions.pod:2713
22364 msgid "See also L</mke2journal-L>."
22365 msgstr ""
22366
22367 # type: =head2
22368 #: ../fish/guestfish-actions.pod:2715
22369 msgid "mke2fs-JU"
22370 msgstr ""
22371
22372 # type: verbatim
22373 #: ../fish/guestfish-actions.pod:2717
22374 #, no-wrap
22375 msgid ""
22376 " mke2fs-JU fstype blocksize device uuid\n"
22377 "\n"
22378 msgstr ""
22379
22380 # type: textblock
22381 #: ../fish/guestfish-actions.pod:2722
22382 msgid "See also L</mke2journal-U>."
22383 msgstr ""
22384
22385 # type: =head2
22386 #: ../fish/guestfish-actions.pod:2724
22387 msgid "mke2journal"
22388 msgstr ""
22389
22390 # type: verbatim
22391 #: ../fish/guestfish-actions.pod:2726
22392 #, no-wrap
22393 msgid ""
22394 " mke2journal blocksize device\n"
22395 "\n"
22396 msgstr ""
22397
22398 # type: =head2
22399 #: ../fish/guestfish-actions.pod:2733
22400 msgid "mke2journal-L"
22401 msgstr ""
22402
22403 # type: verbatim
22404 #: ../fish/guestfish-actions.pod:2735
22405 #, no-wrap
22406 msgid ""
22407 " mke2journal-L blocksize label device\n"
22408 "\n"
22409 msgstr ""
22410
22411 # type: =head2
22412 #: ../fish/guestfish-actions.pod:2739
22413 msgid "mke2journal-U"
22414 msgstr ""
22415
22416 # type: verbatim
22417 #: ../fish/guestfish-actions.pod:2741
22418 #, no-wrap
22419 msgid ""
22420 " mke2journal-U blocksize uuid device\n"
22421 "\n"
22422 msgstr ""
22423
22424 # type: =head2
22425 #: ../fish/guestfish-actions.pod:2745
22426 msgid "mkfifo"
22427 msgstr ""
22428
22429 # type: verbatim
22430 #: ../fish/guestfish-actions.pod:2747
22431 #, no-wrap
22432 msgid ""
22433 " mkfifo mode path\n"
22434 "\n"
22435 msgstr ""
22436
22437 # type: textblock
22438 #: ../fish/guestfish-actions.pod:2749
22439 msgid ""
22440 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22441 "is just a convenient wrapper around L</mknod>."
22442 msgstr ""
22443
22444 # type: =head2
22445 #: ../fish/guestfish-actions.pod:2755
22446 msgid "mkfs"
22447 msgstr ""
22448
22449 # type: verbatim
22450 #: ../fish/guestfish-actions.pod:2757
22451 #, no-wrap
22452 msgid ""
22453 " mkfs fstype device\n"
22454 "\n"
22455 msgstr ""
22456
22457 # type: =head2
22458 #: ../fish/guestfish-actions.pod:2763
22459 msgid "mkfs-b"
22460 msgstr ""
22461
22462 # type: verbatim
22463 #: ../fish/guestfish-actions.pod:2765
22464 #, no-wrap
22465 msgid ""
22466 " mkfs-b fstype blocksize device\n"
22467 "\n"
22468 msgstr ""
22469
22470 # type: textblock
22471 #: ../fish/guestfish-actions.pod:2767
22472 msgid ""
22473 "This call is similar to L</mkfs>, but it allows you to control the block "
22474 "size of the resulting filesystem.  Supported block sizes depend on the "
22475 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22476 msgstr ""
22477
22478 # type: =head2
22479 #: ../fish/guestfish-actions.pod:2775
22480 msgid "mkmountpoint"
22481 msgstr ""
22482
22483 # type: verbatim
22484 #: ../fish/guestfish-actions.pod:2777
22485 #, no-wrap
22486 msgid ""
22487 " mkmountpoint exemptpath\n"
22488 "\n"
22489 msgstr ""
22490
22491 # type: textblock
22492 #: ../fish/guestfish-actions.pod:2779
22493 msgid ""
22494 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22495 "to create extra mountpoints before mounting the first filesystem."
22496 msgstr ""
22497
22498 # type: textblock
22499 #: ../fish/guestfish-actions.pod:2803
22500 msgid ""
22501 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22502 "unexpected errors if you try to mix these calls.  It is safest to manually "
22503 "unmount filesystems and remove mountpoints after use."
22504 msgstr ""
22505
22506 # type: textblock
22507 #: ../fish/guestfish-actions.pod:2807
22508 msgid ""
22509 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22510 "for this to work for manual mountpoints, you must ensure that the innermost "
22511 "mountpoints have the longest pathnames, as in the example code above."
22512 msgstr ""
22513
22514 # type: textblock
22515 #: ../fish/guestfish-actions.pod:2814
22516 msgid ""
22517 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22518 "that L</umount-all> is called when the handle is closed which can also "
22519 "trigger these issues."
22520 msgstr ""
22521
22522 # type: =head2
22523 #: ../fish/guestfish-actions.pod:2818
22524 msgid "mknod"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #: ../fish/guestfish-actions.pod:2820
22529 #, no-wrap
22530 msgid ""
22531 " mknod mode devmajor devminor path\n"
22532 "\n"
22533 msgstr ""
22534
22535 # type: textblock
22536 #: ../fish/guestfish-actions.pod:2830
22537 msgid ""
22538 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22539 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22540 "regular file).  These constants are available in the standard Linux header "
22541 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22542 "wrappers around this command which bitwise OR in the appropriate constant "
22543 "for you."
22544 msgstr ""
22545
22546 # type: =head2
22547 #: ../fish/guestfish-actions.pod:2840
22548 msgid "mknod-b"
22549 msgstr ""
22550
22551 # type: verbatim
22552 #: ../fish/guestfish-actions.pod:2842
22553 #, no-wrap
22554 msgid ""
22555 " mknod-b mode devmajor devminor path\n"
22556 "\n"
22557 msgstr ""
22558
22559 # type: textblock
22560 #: ../fish/guestfish-actions.pod:2844
22561 msgid ""
22562 "This call creates a block device node called C<path> with mode C<mode> and "
22563 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22564 "wrapper around L</mknod>."
22565 msgstr ""
22566
22567 # type: =head2
22568 #: ../fish/guestfish-actions.pod:2850
22569 msgid "mknod-c"
22570 msgstr ""
22571
22572 # type: verbatim
22573 #: ../fish/guestfish-actions.pod:2852
22574 #, no-wrap
22575 msgid ""
22576 " mknod-c mode devmajor devminor path\n"
22577 "\n"
22578 msgstr ""
22579
22580 # type: textblock
22581 #: ../fish/guestfish-actions.pod:2854
22582 msgid ""
22583 "This call creates a char device node called C<path> with mode C<mode> and "
22584 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22585 "wrapper around L</mknod>."
22586 msgstr ""
22587
22588 # type: =head2
22589 #: ../fish/guestfish-actions.pod:2860
22590 msgid "mkswap"
22591 msgstr ""
22592
22593 # type: verbatim
22594 #: ../fish/guestfish-actions.pod:2862
22595 #, no-wrap
22596 msgid ""
22597 " mkswap device\n"
22598 "\n"
22599 msgstr ""
22600
22601 # type: =head2
22602 #: ../fish/guestfish-actions.pod:2866
22603 msgid "mkswap-L"
22604 msgstr ""
22605
22606 # type: verbatim
22607 #: ../fish/guestfish-actions.pod:2868
22608 #, no-wrap
22609 msgid ""
22610 " mkswap-L label device\n"
22611 "\n"
22612 msgstr ""
22613
22614 # type: =head2
22615 #: ../fish/guestfish-actions.pod:2876
22616 msgid "mkswap-U"
22617 msgstr ""
22618
22619 # type: verbatim
22620 #: ../fish/guestfish-actions.pod:2878
22621 #, no-wrap
22622 msgid ""
22623 " mkswap-U uuid device\n"
22624 "\n"
22625 msgstr ""
22626
22627 # type: =head2
22628 #: ../fish/guestfish-actions.pod:2882
22629 msgid "mkswap-file"
22630 msgstr ""
22631
22632 # type: verbatim
22633 #: ../fish/guestfish-actions.pod:2884
22634 #, no-wrap
22635 msgid ""
22636 " mkswap-file path\n"
22637 "\n"
22638 msgstr ""
22639
22640 # type: textblock
22641 #: ../fish/guestfish-actions.pod:2888
22642 msgid ""
22643 "This command just writes a swap file signature to an existing file.  To "
22644 "create the file itself, use something like L</fallocate>."
22645 msgstr ""
22646
22647 # type: =head2
22648 #: ../fish/guestfish-actions.pod:2891
22649 msgid "modprobe"
22650 msgstr ""
22651
22652 # type: verbatim
22653 #: ../fish/guestfish-actions.pod:2893
22654 #, no-wrap
22655 msgid ""
22656 " modprobe modulename\n"
22657 "\n"
22658 msgstr ""
22659
22660 # type: =head2
22661 #: ../fish/guestfish-actions.pod:2900
22662 msgid "mount"
22663 msgstr ""
22664
22665 # type: verbatim
22666 #: ../fish/guestfish-actions.pod:2902
22667 #, no-wrap
22668 msgid ""
22669 " mount device mountpoint\n"
22670 "\n"
22671 msgstr ""
22672
22673 # type: textblock
22674 #: ../fish/guestfish-actions.pod:2918
22675 msgid ""
22676 "B<Important note:> When you use this call, the filesystem options C<sync> "
22677 "and C<noatime> are set implicitly.  This was originally done because we "
22678 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22679 "very large negative performance impact and negligible effect on "
22680 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22681 "code that needs performance, and instead use L</mount-options> (use an empty "
22682 "string for the first parameter if you don't want any options)."
22683 msgstr ""
22684
22685 # type: =head2
22686 #: ../fish/guestfish-actions.pod:2928
22687 msgid "mount-loop"
22688 msgstr ""
22689
22690 # type: verbatim
22691 #: ../fish/guestfish-actions.pod:2930
22692 #, no-wrap
22693 msgid ""
22694 " mount-loop file mountpoint\n"
22695 "\n"
22696 msgstr ""
22697
22698 # type: =head2
22699 #: ../fish/guestfish-actions.pod:2936
22700 msgid "mount-options"
22701 msgstr ""
22702
22703 # type: verbatim
22704 #: ../fish/guestfish-actions.pod:2938
22705 #, no-wrap
22706 msgid ""
22707 " mount-options options device mountpoint\n"
22708 "\n"
22709 msgstr ""
22710
22711 # type: textblock
22712 #: ../fish/guestfish-actions.pod:2940
22713 msgid ""
22714 "This is the same as the L</mount> command, but it allows you to set the "
22715 "mount options as for the L<mount(8)> I<-o> flag."
22716 msgstr ""
22717
22718 # type: =head2
22719 #: ../fish/guestfish-actions.pod:2948
22720 msgid "mount-ro"
22721 msgstr ""
22722
22723 # type: verbatim
22724 #: ../fish/guestfish-actions.pod:2950
22725 #, no-wrap
22726 msgid ""
22727 " mount-ro device mountpoint\n"
22728 "\n"
22729 msgstr ""
22730
22731 # type: textblock
22732 #: ../fish/guestfish-actions.pod:2952
22733 msgid ""
22734 "This is the same as the L</mount> command, but it mounts the filesystem with "
22735 "the read-only (I<-o ro>) flag."
22736 msgstr ""
22737
22738 # type: =head2
22739 #: ../fish/guestfish-actions.pod:2955
22740 msgid "mount-vfs"
22741 msgstr ""
22742
22743 # type: verbatim
22744 #: ../fish/guestfish-actions.pod:2957
22745 #, no-wrap
22746 msgid ""
22747 " mount-vfs options vfstype device mountpoint\n"
22748 "\n"
22749 msgstr ""
22750
22751 # type: textblock
22752 #: ../fish/guestfish-actions.pod:2959
22753 msgid ""
22754 "This is the same as the L</mount> command, but it allows you to set both the "
22755 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:2963
22760 msgid "mountpoints"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:2965
22765 #, no-wrap
22766 msgid ""
22767 " mountpoints\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: textblock
22772 #: ../fish/guestfish-actions.pod:2967
22773 msgid ""
22774 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22775 "This one returns a hash table (map) of device name to directory where the "
22776 "device is mounted."
22777 msgstr ""
22778
22779 # type: =head2
22780 #: ../fish/guestfish-actions.pod:2971
22781 msgid "mounts"
22782 msgstr ""
22783
22784 # type: verbatim
22785 #: ../fish/guestfish-actions.pod:2973
22786 #, no-wrap
22787 msgid ""
22788 " mounts\n"
22789 "\n"
22790 msgstr ""
22791
22792 # type: textblock
22793 #: ../fish/guestfish-actions.pod:2980
22794 msgid "See also: L</mountpoints>"
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:2982
22799 msgid "mv"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-actions.pod:2984
22804 #, no-wrap
22805 msgid ""
22806 " mv src dest\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: =head2
22811 #: ../fish/guestfish-actions.pod:2989
22812 msgid "ntfs-3g-probe"
22813 msgstr ""
22814
22815 # type: verbatim
22816 #: ../fish/guestfish-actions.pod:2991
22817 #, no-wrap
22818 msgid ""
22819 " ntfs-3g-probe true|false device\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: =head2
22824 #: ../fish/guestfish-actions.pod:3005
22825 msgid "ntfsresize"
22826 msgstr ""
22827
22828 # type: verbatim
22829 #: ../fish/guestfish-actions.pod:3007
22830 #, no-wrap
22831 msgid ""
22832 " ntfsresize device\n"
22833 "\n"
22834 msgstr ""
22835
22836 # type: =head2
22837 #: ../fish/guestfish-actions.pod:3013
22838 msgid "ntfsresize-size"
22839 msgstr ""
22840
22841 # type: verbatim
22842 #: ../fish/guestfish-actions.pod:3015
22843 #, no-wrap
22844 msgid ""
22845 " ntfsresize-size device size\n"
22846 "\n"
22847 msgstr ""
22848
22849 # type: textblock
22850 #: ../fish/guestfish-actions.pod:3017
22851 msgid ""
22852 "This command is the same as L</ntfsresize> except that it allows you to "
22853 "specify the new size (in bytes) explicitly."
22854 msgstr ""
22855
22856 # type: =head2
22857 #: ../fish/guestfish-actions.pod:3020
22858 msgid "part-add"
22859 msgstr ""
22860
22861 # type: verbatim
22862 #: ../fish/guestfish-actions.pod:3022
22863 #, no-wrap
22864 msgid ""
22865 " part-add device prlogex startsect endsect\n"
22866 "\n"
22867 msgstr ""
22868
22869 # type: textblock
22870 #: ../fish/guestfish-actions.pod:3024
22871 msgid ""
22872 "This command adds a partition to C<device>.  If there is no partition table "
22873 "on the device, call L</part-init> first."
22874 msgstr ""
22875
22876 # type: textblock
22877 #: ../fish/guestfish-actions.pod:3036
22878 msgid ""
22879 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22880 "part-disk> to do that."
22881 msgstr ""
22882
22883 # type: =head2
22884 #: ../fish/guestfish-actions.pod:3039
22885 msgid "part-del"
22886 msgstr ""
22887
22888 # type: verbatim
22889 #: ../fish/guestfish-actions.pod:3041
22890 #, no-wrap
22891 msgid ""
22892 " part-del device partnum\n"
22893 "\n"
22894 msgstr ""
22895
22896 # type: =head2
22897 #: ../fish/guestfish-actions.pod:3049
22898 msgid "part-disk"
22899 msgstr ""
22900
22901 # type: verbatim
22902 #: ../fish/guestfish-actions.pod:3051
22903 #, no-wrap
22904 msgid ""
22905 " part-disk device parttype\n"
22906 "\n"
22907 msgstr ""
22908
22909 # type: textblock
22910 #: ../fish/guestfish-actions.pod:3053
22911 msgid ""
22912 "This command is simply a combination of L</part-init> followed by L</part-"
22913 "add> to create a single primary partition covering the whole disk."
22914 msgstr ""
22915
22916 # type: textblock
22917 #: ../fish/guestfish-actions.pod:3057
22918 msgid ""
22919 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22920 "possible values are described in L</part-init>."
22921 msgstr ""
22922
22923 # type: =head2
22924 #: ../fish/guestfish-actions.pod:3063
22925 msgid "part-get-bootable"
22926 msgstr ""
22927
22928 # type: verbatim
22929 #: ../fish/guestfish-actions.pod:3065
22930 #, no-wrap
22931 msgid ""
22932 " part-get-bootable device partnum\n"
22933 "\n"
22934 msgstr ""
22935
22936 # type: textblock
22937 #: ../fish/guestfish-actions.pod:3070
22938 msgid "See also L</part-set-bootable>."
22939 msgstr ""
22940
22941 # type: =head2
22942 #: ../fish/guestfish-actions.pod:3072
22943 msgid "part-get-mbr-id"
22944 msgstr ""
22945
22946 # type: verbatim
22947 #: ../fish/guestfish-actions.pod:3074
22948 #, no-wrap
22949 msgid ""
22950 " part-get-mbr-id device partnum\n"
22951 "\n"
22952 msgstr ""
22953
22954 # type: textblock
22955 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22956 msgid ""
22957 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22958 "undefined results for other partition table types (see L</part-get-"
22959 "parttype>)."
22960 msgstr ""
22961
22962 # type: =head2
22963 #: ../fish/guestfish-actions.pod:3083
22964 msgid "part-get-parttype"
22965 msgstr ""
22966
22967 # type: verbatim
22968 #: ../fish/guestfish-actions.pod:3085
22969 #, no-wrap
22970 msgid ""
22971 " part-get-parttype device\n"
22972 "\n"
22973 msgstr ""
22974
22975 # type: textblock
22976 #: ../fish/guestfish-actions.pod:3090
22977 msgid ""
22978 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22979 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22980 "possible, although unusual.  See L</part-init> for a full list."
22981 msgstr ""
22982
22983 # type: =head2
22984 #: ../fish/guestfish-actions.pod:3095
22985 msgid "part-init"
22986 msgstr ""
22987
22988 # type: verbatim
22989 #: ../fish/guestfish-actions.pod:3097
22990 #, no-wrap
22991 msgid ""
22992 " part-init device parttype\n"
22993 "\n"
22994 msgstr ""
22995
22996 # type: textblock
22997 #: ../fish/guestfish-actions.pod:3103
22998 msgid ""
22999 "Initially there are no partitions.  Following this, you should call L</part-"
23000 "add> for each partition required."
23001 msgstr ""
23002
23003 # type: =head2
23004 #: ../fish/guestfish-actions.pod:3166
23005 msgid "part-list"
23006 msgstr ""
23007
23008 # type: verbatim
23009 #: ../fish/guestfish-actions.pod:3168
23010 #, no-wrap
23011 msgid ""
23012 " part-list device\n"
23013 "\n"
23014 msgstr ""
23015
23016 # type: textblock
23017 #: ../fish/guestfish-actions.pod:3183
23018 msgid ""
23019 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23020 "the device's sector size, see L</blockdev-getss>."
23021 msgstr ""
23022
23023 # type: =head2
23024 #: ../fish/guestfish-actions.pod:3196
23025 msgid "part-set-bootable"
23026 msgstr ""
23027
23028 # type: verbatim
23029 #: ../fish/guestfish-actions.pod:3198
23030 #, no-wrap
23031 msgid ""
23032 " part-set-bootable device partnum true|false\n"
23033 "\n"
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:3207
23038 msgid "part-set-mbr-id"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:3209
23043 #, no-wrap
23044 msgid ""
23045 " part-set-mbr-id device partnum idbyte\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:3221
23051 msgid "part-set-name"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-actions.pod:3223
23056 #, no-wrap
23057 msgid ""
23058 " part-set-name device partnum name\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: =head2
23063 #: ../fish/guestfish-actions.pod:3231
23064 msgid "part-to-dev"
23065 msgstr ""
23066
23067 # type: verbatim
23068 #: ../fish/guestfish-actions.pod:3233
23069 #, no-wrap
23070 msgid ""
23071 " part-to-dev partition\n"
23072 "\n"
23073 msgstr ""
23074
23075 # type: textblock
23076 #: ../fish/guestfish-actions.pod:3239
23077 msgid ""
23078 "The named partition must exist, for example as a string returned from L</"
23079 "list-partitions>."
23080 msgstr ""
23081
23082 # type: =head2
23083 #: ../fish/guestfish-actions.pod:3242
23084 msgid "ping-daemon"
23085 msgstr ""
23086
23087 # type: verbatim
23088 #: ../fish/guestfish-actions.pod:3244
23089 #, no-wrap
23090 msgid ""
23091 " ping-daemon\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: =head2
23096 #: ../fish/guestfish-actions.pod:3251
23097 msgid "pread"
23098 msgstr ""
23099
23100 # type: verbatim
23101 #: ../fish/guestfish-actions.pod:3253
23102 #, no-wrap
23103 msgid ""
23104 " pread path count offset\n"
23105 "\n"
23106 msgstr ""
23107
23108 # type: textblock
23109 #: ../fish/guestfish-actions.pod:3261
23110 msgid "See also L</pwrite>, L</pread-device>."
23111 msgstr ""
23112
23113 # type: =head2
23114 #: ../fish/guestfish-actions.pod:3266
23115 msgid "pread-device"
23116 msgstr ""
23117
23118 # type: verbatim
23119 #: ../fish/guestfish-actions.pod:3268
23120 #, no-wrap
23121 msgid ""
23122 " pread-device device count offset\n"
23123 "\n"
23124 msgstr ""
23125
23126 # type: textblock
23127 #: ../fish/guestfish-actions.pod:3276
23128 msgid "See also L</pread>."
23129 msgstr ""
23130
23131 # type: =head2
23132 #: ../fish/guestfish-actions.pod:3281
23133 msgid "pvcreate"
23134 msgstr ""
23135
23136 # type: verbatim
23137 #: ../fish/guestfish-actions.pod:3283
23138 #, no-wrap
23139 msgid ""
23140 " pvcreate device\n"
23141 "\n"
23142 msgstr ""
23143
23144 # type: =head2
23145 #: ../fish/guestfish-actions.pod:3289
23146 msgid "pvremove"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #: ../fish/guestfish-actions.pod:3291
23151 #, no-wrap
23152 msgid ""
23153 " pvremove device\n"
23154 "\n"
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-actions.pod:3300
23159 msgid "pvresize"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-actions.pod:3302
23164 #, no-wrap
23165 msgid ""
23166 " pvresize device\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: =head2
23171 #: ../fish/guestfish-actions.pod:3307
23172 msgid "pvresize-size"
23173 msgstr ""
23174
23175 # type: verbatim
23176 #: ../fish/guestfish-actions.pod:3309
23177 #, no-wrap
23178 msgid ""
23179 " pvresize-size device size\n"
23180 "\n"
23181 msgstr ""
23182
23183 # type: textblock
23184 #: ../fish/guestfish-actions.pod:3311
23185 msgid ""
23186 "This command is the same as L</pvresize> except that it allows you to "
23187 "specify the new size (in bytes) explicitly."
23188 msgstr ""
23189
23190 # type: =head2
23191 #: ../fish/guestfish-actions.pod:3314
23192 msgid "pvs"
23193 msgstr ""
23194
23195 # type: verbatim
23196 #: ../fish/guestfish-actions.pod:3316
23197 #, no-wrap
23198 msgid ""
23199 " pvs\n"
23200 "\n"
23201 msgstr ""
23202
23203 # type: textblock
23204 #: ../fish/guestfish-actions.pod:3324
23205 msgid "See also L</pvs-full>."
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:3326
23210 msgid "pvs-full"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:3328
23215 #, no-wrap
23216 msgid ""
23217 " pvs-full\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: =head2
23222 #: ../fish/guestfish-actions.pod:3333
23223 msgid "pvuuid"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../fish/guestfish-actions.pod:3335
23228 #, no-wrap
23229 msgid ""
23230 " pvuuid device\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: =head2
23235 #: ../fish/guestfish-actions.pod:3339
23236 msgid "pwrite"
23237 msgstr ""
23238
23239 # type: verbatim
23240 #: ../fish/guestfish-actions.pod:3341
23241 #, no-wrap
23242 msgid ""
23243 " pwrite path content offset\n"
23244 "\n"
23245 msgstr ""
23246
23247 # type: textblock
23248 #: ../fish/guestfish-actions.pod:3352
23249 msgid "See also L</pread>, L</pwrite-device>."
23250 msgstr ""
23251
23252 # type: =head2
23253 #: ../fish/guestfish-actions.pod:3357
23254 msgid "pwrite-device"
23255 msgstr ""
23256
23257 # type: verbatim
23258 #: ../fish/guestfish-actions.pod:3359
23259 #, no-wrap
23260 msgid ""
23261 " pwrite-device device content offset\n"
23262 "\n"
23263 msgstr ""
23264
23265 # type: textblock
23266 #: ../fish/guestfish-actions.pod:3369
23267 msgid "See also L</pwrite>."
23268 msgstr ""
23269
23270 # type: =head2
23271 #: ../fish/guestfish-actions.pod:3374
23272 msgid "read-file"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #: ../fish/guestfish-actions.pod:3376
23277 #, no-wrap
23278 msgid ""
23279 " read-file path\n"
23280 "\n"
23281 msgstr ""
23282
23283 # type: textblock
23284 #: ../fish/guestfish-actions.pod:3381
23285 msgid ""
23286 "Unlike L</cat>, this function can correctly handle files that contain "
23287 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23288 "is limited in the total size of file that can be handled."
23289 msgstr ""
23290
23291 # type: =head2
23292 #: ../fish/guestfish-actions.pod:3389
23293 msgid "read-lines"
23294 msgstr ""
23295
23296 # type: verbatim
23297 #: ../fish/guestfish-actions.pod:3391
23298 #, no-wrap
23299 msgid ""
23300 " read-lines path\n"
23301 "\n"
23302 msgstr ""
23303
23304 # type: textblock
23305 #: ../fish/guestfish-actions.pod:3398
23306 msgid ""
23307 "Note that this function cannot correctly handle binary files (specifically, "
23308 "files containing C<\\0> character which is treated as end of line).  For "
23309 "those you need to use the L</read-file> function which has a more complex "
23310 "interface."
23311 msgstr ""
23312
23313 # type: =head2
23314 #: ../fish/guestfish-actions.pod:3403
23315 msgid "readdir"
23316 msgstr ""
23317
23318 # type: verbatim
23319 #: ../fish/guestfish-actions.pod:3405
23320 #, no-wrap
23321 msgid ""
23322 " readdir dir\n"
23323 "\n"
23324 msgstr ""
23325
23326 # type: textblock
23327 #: ../fish/guestfish-actions.pod:3457
23328 msgid ""
23329 "This function is primarily intended for use by programs.  To get a simple "
23330 "list of names, use L</ls>.  To get a printable directory for human "
23331 "consumption, use L</ll>."
23332 msgstr ""
23333
23334 # type: =head2
23335 #: ../fish/guestfish-actions.pod:3461
23336 msgid "readlink"
23337 msgstr ""
23338
23339 # type: verbatim
23340 #: ../fish/guestfish-actions.pod:3463
23341 #, no-wrap
23342 msgid ""
23343 " readlink path\n"
23344 "\n"
23345 msgstr ""
23346
23347 # type: =head2
23348 #: ../fish/guestfish-actions.pod:3467
23349 msgid "readlinklist"
23350 msgstr ""
23351
23352 # type: verbatim
23353 #: ../fish/guestfish-actions.pod:3469
23354 #, no-wrap
23355 msgid ""
23356 " readlinklist path 'names ...'\n"
23357 "\n"
23358 msgstr ""
23359
23360 # type: =head2
23361 #: ../fish/guestfish-actions.pod:3493
23362 msgid "realpath"
23363 msgstr ""
23364
23365 # type: verbatim
23366 #: ../fish/guestfish-actions.pod:3495
23367 #, no-wrap
23368 msgid ""
23369 " realpath path\n"
23370 "\n"
23371 msgstr ""
23372
23373 # type: =head2
23374 #: ../fish/guestfish-actions.pod:3500
23375 msgid "removexattr"
23376 msgstr ""
23377
23378 # type: verbatim
23379 #: ../fish/guestfish-actions.pod:3502
23380 #, no-wrap
23381 msgid ""
23382 " removexattr xattr path\n"
23383 "\n"
23384 msgstr ""
23385
23386 # type: textblock
23387 #: ../fish/guestfish-actions.pod:3507
23388 msgid "See also: L</lremovexattr>, L<attr(5)>."
23389 msgstr ""
23390
23391 # type: =head2
23392 #: ../fish/guestfish-actions.pod:3509
23393 msgid "resize2fs"
23394 msgstr ""
23395
23396 # type: verbatim
23397 #: ../fish/guestfish-actions.pod:3511
23398 #, no-wrap
23399 msgid ""
23400 " resize2fs device\n"
23401 "\n"
23402 msgstr ""
23403
23404 # type: textblock
23405 #: ../fish/guestfish-actions.pod:3516
23406 msgid ""
23407 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23408 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23409 "gives an error about this and sometimes not.  In any case, it is always safe "
23410 "to call L</e2fsck-f> before calling this function."
23411 msgstr ""
23412
23413 # type: =head2
23414 #: ../fish/guestfish-actions.pod:3522
23415 msgid "resize2fs-size"
23416 msgstr ""
23417
23418 # type: verbatim
23419 #: ../fish/guestfish-actions.pod:3524
23420 #, no-wrap
23421 msgid ""
23422 " resize2fs-size device size\n"
23423 "\n"
23424 msgstr ""
23425
23426 # type: textblock
23427 #: ../fish/guestfish-actions.pod:3526
23428 msgid ""
23429 "This command is the same as L</resize2fs> except that it allows you to "
23430 "specify the new size (in bytes) explicitly."
23431 msgstr ""
23432
23433 # type: =head2
23434 #: ../fish/guestfish-actions.pod:3529
23435 msgid "rm"
23436 msgstr ""
23437
23438 # type: verbatim
23439 #: ../fish/guestfish-actions.pod:3531
23440 #, no-wrap
23441 msgid ""
23442 " rm path\n"
23443 "\n"
23444 msgstr ""
23445
23446 # type: =head2
23447 #: ../fish/guestfish-actions.pod:3535
23448 msgid "rm-rf"
23449 msgstr ""
23450
23451 # type: verbatim
23452 #: ../fish/guestfish-actions.pod:3537
23453 #, no-wrap
23454 msgid ""
23455 " rm-rf path\n"
23456 "\n"
23457 msgstr ""
23458
23459 # type: =head2
23460 #: ../fish/guestfish-actions.pod:3543
23461 msgid "rmdir"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #: ../fish/guestfish-actions.pod:3545
23466 #, no-wrap
23467 msgid ""
23468 " rmdir path\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: =head2
23473 #: ../fish/guestfish-actions.pod:3549
23474 msgid "rmmountpoint"
23475 msgstr ""
23476
23477 # type: verbatim
23478 #: ../fish/guestfish-actions.pod:3551
23479 #, no-wrap
23480 msgid ""
23481 " rmmountpoint exemptpath\n"
23482 "\n"
23483 msgstr ""
23484
23485 # type: textblock
23486 #: ../fish/guestfish-actions.pod:3553
23487 msgid ""
23488 "This calls removes a mountpoint that was previously created with L</"
23489 "mkmountpoint>.  See L</mkmountpoint> for full details."
23490 msgstr ""
23491
23492 # type: =head2
23493 #: ../fish/guestfish-actions.pod:3557
23494 msgid "scrub-device"
23495 msgstr ""
23496
23497 # type: verbatim
23498 #: ../fish/guestfish-actions.pod:3559
23499 #, no-wrap
23500 msgid ""
23501 " scrub-device device\n"
23502 "\n"
23503 msgstr ""
23504
23505 # type: =head2
23506 #: ../fish/guestfish-actions.pod:3570
23507 msgid "scrub-file"
23508 msgstr ""
23509
23510 # type: verbatim
23511 #: ../fish/guestfish-actions.pod:3572
23512 #, no-wrap
23513 msgid ""
23514 " scrub-file file\n"
23515 "\n"
23516 msgstr ""
23517
23518 # type: =head2
23519 #: ../fish/guestfish-actions.pod:3582
23520 msgid "scrub-freespace"
23521 msgstr ""
23522
23523 # type: verbatim
23524 #: ../fish/guestfish-actions.pod:3584
23525 #, no-wrap
23526 msgid ""
23527 " scrub-freespace dir\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: textblock
23532 #: ../fish/guestfish-actions.pod:3586
23533 msgid ""
23534 "This command creates the directory C<dir> and then fills it with files until "
23535 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23536 "deletes them.  The intention is to scrub any free space on the partition "
23537 "containing C<dir>."
23538 msgstr ""
23539
23540 # type: =head2
23541 #: ../fish/guestfish-actions.pod:3595
23542 msgid "set-append"
23543 msgstr ""
23544
23545 # type: =head2
23546 #: ../fish/guestfish-actions.pod:3597
23547 msgid "append"
23548 msgstr ""
23549
23550 # type: verbatim
23551 #: ../fish/guestfish-actions.pod:3599
23552 #, no-wrap
23553 msgid ""
23554 " set-append append\n"
23555 "\n"
23556 msgstr ""
23557
23558 # type: =head2
23559 #: ../fish/guestfish-actions.pod:3610
23560 msgid "set-autosync"
23561 msgstr ""
23562
23563 # type: =head2
23564 #: ../fish/guestfish-actions.pod:3612
23565 msgid "autosync"
23566 msgstr ""
23567
23568 # type: verbatim
23569 #: ../fish/guestfish-actions.pod:3614
23570 #, no-wrap
23571 msgid ""
23572 " set-autosync true|false\n"
23573 "\n"
23574 msgstr ""
23575
23576 # type: textblock
23577 #: ../fish/guestfish-actions.pod:3616
23578 msgid ""
23579 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23580 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23581 "closed (also if the program exits without closing handles)."
23582 msgstr ""
23583
23584 # type: =head2
23585 #: ../fish/guestfish-actions.pod:3624
23586 msgid "set-direct"
23587 msgstr ""
23588
23589 # type: =head2
23590 #: ../fish/guestfish-actions.pod:3626
23591 msgid "direct"
23592 msgstr ""
23593
23594 # type: verbatim
23595 #: ../fish/guestfish-actions.pod:3628
23596 #, no-wrap
23597 msgid ""
23598 " set-direct true|false\n"
23599 "\n"
23600 msgstr ""
23601
23602 # type: textblock
23603 #: ../fish/guestfish-actions.pod:3634
23604 msgid ""
23605 "One consequence of this is that log messages aren't caught by the library "
23606 "and handled by L</set-log-message-callback>, but go straight to stdout."
23607 msgstr ""
23608
23609 # type: =head2
23610 #: ../fish/guestfish-actions.pod:3643
23611 msgid "set-e2label"
23612 msgstr ""
23613
23614 # type: verbatim
23615 #: ../fish/guestfish-actions.pod:3645
23616 #, no-wrap
23617 msgid ""
23618 " set-e2label device label\n"
23619 "\n"
23620 msgstr ""
23621
23622 # type: textblock
23623 #: ../fish/guestfish-actions.pod:3651
23624 msgid ""
23625 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23626 "label on a filesystem."
23627 msgstr ""
23628
23629 # type: =head2
23630 #: ../fish/guestfish-actions.pod:3654
23631 msgid "set-e2uuid"
23632 msgstr ""
23633
23634 # type: verbatim
23635 #: ../fish/guestfish-actions.pod:3656
23636 #, no-wrap
23637 msgid ""
23638 " set-e2uuid device uuid\n"
23639 "\n"
23640 msgstr ""
23641
23642 # type: textblock
23643 #: ../fish/guestfish-actions.pod:3663
23644 msgid ""
23645 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23646 "UUID of a filesystem."
23647 msgstr ""
23648
23649 # type: =head2
23650 #: ../fish/guestfish-actions.pod:3666
23651 msgid "set-memsize"
23652 msgstr ""
23653
23654 # type: =head2
23655 #: ../fish/guestfish-actions.pod:3668
23656 msgid "memsize"
23657 msgstr ""
23658
23659 # type: verbatim
23660 #: ../fish/guestfish-actions.pod:3670
23661 #, no-wrap
23662 msgid ""
23663 " set-memsize memsize\n"
23664 "\n"
23665 msgstr ""
23666
23667 # type: textblock
23668 #: ../fish/guestfish-actions.pod:3672
23669 msgid ""
23670 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23671 "This only has any effect if called before L</launch>."
23672 msgstr ""
23673
23674 # type: =head2
23675 #: ../fish/guestfish-actions.pod:3683
23676 msgid "set-network"
23677 msgstr ""
23678
23679 # type: =head2
23680 #: ../fish/guestfish-actions.pod:3685
23681 msgid "network"
23682 msgstr ""
23683
23684 # type: verbatim
23685 #: ../fish/guestfish-actions.pod:3687
23686 #, no-wrap
23687 msgid ""
23688 " set-network true|false\n"
23689 "\n"
23690 msgstr ""
23691
23692 # type: textblock
23693 #: ../fish/guestfish-actions.pod:3695
23694 msgid ""
23695 "You must call this before calling L</launch>, otherwise it has no effect."
23696 msgstr ""
23697
23698 # type: =head2
23699 #: ../fish/guestfish-actions.pod:3698
23700 msgid "set-path"
23701 msgstr ""
23702
23703 # type: =head2
23704 #: ../fish/guestfish-actions.pod:3700
23705 msgid "path"
23706 msgstr ""
23707
23708 # type: verbatim
23709 #: ../fish/guestfish-actions.pod:3702
23710 #, no-wrap
23711 msgid ""
23712 " set-path searchpath\n"
23713 "\n"
23714 msgstr ""
23715
23716 # type: =head2
23717 #: ../fish/guestfish-actions.pod:3711
23718 msgid "set-qemu"
23719 msgstr ""
23720
23721 # type: =head2
23722 #: ../fish/guestfish-actions.pod:3713
23723 msgid "qemu"
23724 msgstr ""
23725
23726 # type: verbatim
23727 #: ../fish/guestfish-actions.pod:3715
23728 #, no-wrap
23729 msgid ""
23730 " set-qemu qemu\n"
23731 "\n"
23732 msgstr ""
23733
23734 # type: =head2
23735 #: ../fish/guestfish-actions.pod:3735
23736 msgid "set-recovery-proc"
23737 msgstr ""
23738
23739 # type: =head2
23740 #: ../fish/guestfish-actions.pod:3737
23741 msgid "recovery-proc"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../fish/guestfish-actions.pod:3739
23746 #, no-wrap
23747 msgid ""
23748 " set-recovery-proc true|false\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../fish/guestfish-actions.pod:3741
23754 msgid ""
23755 "If this is called with the parameter C<false> then L</launch> does not "
23756 "create a recovery process.  The purpose of the recovery process is to stop "
23757 "runaway qemu processes in the case where the main program aborts abruptly."
23758 msgstr ""
23759
23760 # type: textblock
23761 #: ../fish/guestfish-actions.pod:3746
23762 msgid ""
23763 "This only has any effect if called before L</launch>, and the default is "
23764 "true."
23765 msgstr ""
23766
23767 # type: =head2
23768 #: ../fish/guestfish-actions.pod:3755
23769 msgid "set-selinux"
23770 msgstr ""
23771
23772 # type: =head2
23773 #: ../fish/guestfish-actions.pod:3757
23774 msgid "selinux"
23775 msgstr ""
23776
23777 # type: verbatim
23778 #: ../fish/guestfish-actions.pod:3759
23779 #, no-wrap
23780 msgid ""
23781 " set-selinux true|false\n"
23782 "\n"
23783 msgstr ""
23784
23785 # type: =head2
23786 #: ../fish/guestfish-actions.pod:3770
23787 msgid "set-trace"
23788 msgstr ""
23789
23790 # type: =head2
23791 #: ../fish/guestfish-actions.pod:3772
23792 msgid "trace"
23793 msgstr ""
23794
23795 # type: verbatim
23796 #: ../fish/guestfish-actions.pod:3774
23797 #, no-wrap
23798 msgid ""
23799 " set-trace true|false\n"
23800 "\n"
23801 msgstr ""
23802
23803 # type: =head2
23804 #: ../fish/guestfish-actions.pod:3790
23805 msgid "set-verbose"
23806 msgstr ""
23807
23808 # type: =head2
23809 #: ../fish/guestfish-actions.pod:3792
23810 msgid "verbose"
23811 msgstr ""
23812
23813 # type: verbatim
23814 #: ../fish/guestfish-actions.pod:3794
23815 #, no-wrap
23816 msgid ""
23817 " set-verbose true|false\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: =head2
23822 #: ../fish/guestfish-actions.pod:3801
23823 msgid "setcon"
23824 msgstr ""
23825
23826 # type: verbatim
23827 #: ../fish/guestfish-actions.pod:3803
23828 #, no-wrap
23829 msgid ""
23830 " setcon context\n"
23831 "\n"
23832 msgstr ""
23833
23834 # type: =head2
23835 #: ../fish/guestfish-actions.pod:3810
23836 msgid "setxattr"
23837 msgstr ""
23838
23839 # type: verbatim
23840 #: ../fish/guestfish-actions.pod:3812
23841 #, no-wrap
23842 msgid ""
23843 " setxattr xattr val vallen path\n"
23844 "\n"
23845 msgstr ""
23846
23847 # type: textblock
23848 #: ../fish/guestfish-actions.pod:3818
23849 msgid "See also: L</lsetxattr>, L<attr(5)>."
23850 msgstr ""
23851
23852 # type: =head2
23853 #: ../fish/guestfish-actions.pod:3820
23854 msgid "sfdisk"
23855 msgstr ""
23856
23857 # type: verbatim
23858 #: ../fish/guestfish-actions.pod:3822
23859 #, no-wrap
23860 msgid ""
23861 " sfdisk device cyls heads sectors 'lines ...'\n"
23862 "\n"
23863 msgstr ""
23864
23865 # type: textblock
23866 #: ../fish/guestfish-actions.pod:3844
23867 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23868 msgstr ""
23869
23870 # type: =head2
23871 #: ../fish/guestfish-actions.pod:3850
23872 msgid "sfdiskM"
23873 msgstr ""
23874
23875 # type: verbatim
23876 #: ../fish/guestfish-actions.pod:3852
23877 #, no-wrap
23878 msgid ""
23879 " sfdiskM device 'lines ...'\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../fish/guestfish-actions.pod:3854
23885 msgid ""
23886 "This is a simplified interface to the L</sfdisk> command, where partition "
23887 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23888 "you don't need to specify the cyls, heads and sectors parameters which were "
23889 "rarely if ever used anyway."
23890 msgstr ""
23891
23892 # type: textblock
23893 #: ../fish/guestfish-actions.pod:3860
23894 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23895 msgstr ""
23896
23897 # type: =head2
23898 #: ../fish/guestfish-actions.pod:3866
23899 msgid "sfdisk-N"
23900 msgstr ""
23901
23902 # type: verbatim
23903 #: ../fish/guestfish-actions.pod:3868
23904 #, no-wrap
23905 msgid ""
23906 " sfdisk-N device partnum cyls heads sectors line\n"
23907 "\n"
23908 msgstr ""
23909
23910 # type: textblock
23911 #: ../fish/guestfish-actions.pod:3873
23912 msgid ""
23913 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23914 "cyls/heads/sectors parameters."
23915 msgstr ""
23916
23917 # type: textblock
23918 #: ../fish/guestfish-actions.pod:3876
23919 msgid "See also: L</part-add>"
23920 msgstr ""
23921
23922 # type: =head2
23923 #: ../fish/guestfish-actions.pod:3881
23924 msgid "sfdisk-disk-geometry"
23925 msgstr ""
23926
23927 # type: verbatim
23928 #: ../fish/guestfish-actions.pod:3883
23929 #, no-wrap
23930 msgid ""
23931 " sfdisk-disk-geometry device\n"
23932 "\n"
23933 msgstr ""
23934
23935 # type: textblock
23936 #: ../fish/guestfish-actions.pod:3885
23937 msgid ""
23938 "This displays the disk geometry of C<device> read from the partition table.  "
23939 "Especially in the case where the underlying block device has been resized, "
23940 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23941 "kernel-geometry>)."
23942 msgstr ""
23943
23944 # type: =head2
23945 #: ../fish/guestfish-actions.pod:3893
23946 msgid "sfdisk-kernel-geometry"
23947 msgstr ""
23948
23949 # type: verbatim
23950 #: ../fish/guestfish-actions.pod:3895
23951 #, no-wrap
23952 msgid ""
23953 " sfdisk-kernel-geometry device\n"
23954 "\n"
23955 msgstr ""
23956
23957 # type: =head2
23958 #: ../fish/guestfish-actions.pod:3902
23959 msgid "sfdisk-l"
23960 msgstr ""
23961
23962 # type: verbatim
23963 #: ../fish/guestfish-actions.pod:3904
23964 #, no-wrap
23965 msgid ""
23966 " sfdisk-l device\n"
23967 "\n"
23968 msgstr ""
23969
23970 # type: textblock
23971 #: ../fish/guestfish-actions.pod:3910
23972 msgid "See also: L</part-list>"
23973 msgstr ""
23974
23975 # type: =head2
23976 #: ../fish/guestfish-actions.pod:3912
23977 msgid "sh"
23978 msgstr ""
23979
23980 # type: verbatim
23981 #: ../fish/guestfish-actions.pod:3914
23982 #, no-wrap
23983 msgid ""
23984 " sh command\n"
23985 "\n"
23986 msgstr ""
23987
23988 # type: textblock
23989 #: ../fish/guestfish-actions.pod:3919
23990 msgid "This is like L</command>, but passes the command to:"
23991 msgstr ""
23992
23993 # type: textblock
23994 #: ../fish/guestfish-actions.pod:3927
23995 msgid "All the provisos about L</command> apply to this call."
23996 msgstr ""
23997
23998 # type: =head2
23999 #: ../fish/guestfish-actions.pod:3929
24000 msgid "sh-lines"
24001 msgstr ""
24002
24003 # type: verbatim
24004 #: ../fish/guestfish-actions.pod:3931
24005 #, no-wrap
24006 msgid ""
24007 " sh-lines command\n"
24008 "\n"
24009 msgstr ""
24010
24011 # type: textblock
24012 #: ../fish/guestfish-actions.pod:3933
24013 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../fish/guestfish-actions.pod:3936
24018 msgid "See also: L</command-lines>"
24019 msgstr ""
24020
24021 # type: =head2
24022 #: ../fish/guestfish-actions.pod:3938
24023 msgid "sleep"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #: ../fish/guestfish-actions.pod:3940
24028 #, no-wrap
24029 msgid ""
24030 " sleep secs\n"
24031 "\n"
24032 msgstr ""
24033
24034 # type: =head2
24035 #: ../fish/guestfish-actions.pod:3944
24036 msgid "stat"
24037 msgstr ""
24038
24039 # type: verbatim
24040 #: ../fish/guestfish-actions.pod:3946
24041 #, no-wrap
24042 msgid ""
24043 " stat path\n"
24044 "\n"
24045 msgstr ""
24046
24047 # type: =head2
24048 #: ../fish/guestfish-actions.pod:3952
24049 msgid "statvfs"
24050 msgstr ""
24051
24052 # type: verbatim
24053 #: ../fish/guestfish-actions.pod:3954
24054 #, no-wrap
24055 msgid ""
24056 " statvfs path\n"
24057 "\n"
24058 msgstr ""
24059
24060 # type: =head2
24061 #: ../fish/guestfish-actions.pod:3962
24062 msgid "strings"
24063 msgstr ""
24064
24065 # type: verbatim
24066 #: ../fish/guestfish-actions.pod:3964
24067 #, no-wrap
24068 msgid ""
24069 " strings path\n"
24070 "\n"
24071 msgstr ""
24072
24073 # type: =head2
24074 #: ../fish/guestfish-actions.pod:3972
24075 msgid "strings-e"
24076 msgstr ""
24077
24078 # type: verbatim
24079 #: ../fish/guestfish-actions.pod:3974
24080 #, no-wrap
24081 msgid ""
24082 " strings-e encoding path\n"
24083 "\n"
24084 msgstr ""
24085
24086 # type: textblock
24087 #: ../fish/guestfish-actions.pod:3976
24088 msgid ""
24089 "This is like the L</strings> command, but allows you to specify the encoding "
24090 "of strings that are looked for in the source file C<path>."
24091 msgstr ""
24092
24093 # type: textblock
24094 #: ../fish/guestfish-actions.pod:3986
24095 msgid ""
24096 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24097 "ISO-8859-X (this is what L</strings> uses)."
24098 msgstr ""
24099
24100 # type: =head2
24101 #: ../fish/guestfish-actions.pod:4018
24102 msgid "swapoff-device"
24103 msgstr ""
24104
24105 # type: verbatim
24106 #: ../fish/guestfish-actions.pod:4020
24107 #, no-wrap
24108 msgid ""
24109 " swapoff-device device\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: textblock
24114 #: ../fish/guestfish-actions.pod:4022
24115 msgid ""
24116 "This command disables the libguestfs appliance swap device or partition "
24117 "named C<device>.  See L</swapon-device>."
24118 msgstr ""
24119
24120 # type: =head2
24121 #: ../fish/guestfish-actions.pod:4026
24122 msgid "swapoff-file"
24123 msgstr ""
24124
24125 # type: verbatim
24126 #: ../fish/guestfish-actions.pod:4028
24127 #, no-wrap
24128 msgid ""
24129 " swapoff-file file\n"
24130 "\n"
24131 msgstr ""
24132
24133 # type: =head2
24134 #: ../fish/guestfish-actions.pod:4032
24135 msgid "swapoff-label"
24136 msgstr ""
24137
24138 # type: verbatim
24139 #: ../fish/guestfish-actions.pod:4034
24140 #, no-wrap
24141 msgid ""
24142 " swapoff-label label\n"
24143 "\n"
24144 msgstr ""
24145
24146 # type: =head2
24147 #: ../fish/guestfish-actions.pod:4039
24148 msgid "swapoff-uuid"
24149 msgstr ""
24150
24151 # type: verbatim
24152 #: ../fish/guestfish-actions.pod:4041
24153 #, no-wrap
24154 msgid ""
24155 " swapoff-uuid uuid\n"
24156 "\n"
24157 msgstr ""
24158
24159 # type: =head2
24160 #: ../fish/guestfish-actions.pod:4046
24161 msgid "swapon-device"
24162 msgstr ""
24163
24164 # type: verbatim
24165 #: ../fish/guestfish-actions.pod:4048
24166 #, no-wrap
24167 msgid ""
24168 " swapon-device device\n"
24169 "\n"
24170 msgstr ""
24171
24172 # type: textblock
24173 #: ../fish/guestfish-actions.pod:4050
24174 msgid ""
24175 "This command enables the libguestfs appliance to use the swap device or "
24176 "partition named C<device>.  The increased memory is made available for all "
24177 "commands, for example those run using L</command> or L</sh>."
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4062
24182 msgid "swapon-file"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../fish/guestfish-actions.pod:4064
24187 #, no-wrap
24188 msgid ""
24189 " swapon-file file\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../fish/guestfish-actions.pod:4066
24195 msgid ""
24196 "This command enables swap to a file.  See L</swapon-device> for other notes."
24197 msgstr ""
24198
24199 # type: =head2
24200 #: ../fish/guestfish-actions.pod:4069
24201 msgid "swapon-label"
24202 msgstr ""
24203
24204 # type: verbatim
24205 #: ../fish/guestfish-actions.pod:4071
24206 #, no-wrap
24207 msgid ""
24208 " swapon-label label\n"
24209 "\n"
24210 msgstr ""
24211
24212 # type: textblock
24213 #: ../fish/guestfish-actions.pod:4073
24214 msgid ""
24215 "This command enables swap to a labeled swap partition.  See L</swapon-"
24216 "device> for other notes."
24217 msgstr ""
24218
24219 # type: =head2
24220 #: ../fish/guestfish-actions.pod:4076
24221 msgid "swapon-uuid"
24222 msgstr ""
24223
24224 # type: verbatim
24225 #: ../fish/guestfish-actions.pod:4078
24226 #, no-wrap
24227 msgid ""
24228 " swapon-uuid uuid\n"
24229 "\n"
24230 msgstr ""
24231
24232 # type: textblock
24233 #: ../fish/guestfish-actions.pod:4080
24234 msgid ""
24235 "This command enables swap to a swap partition with the given UUID.  See L</"
24236 "swapon-device> for other notes."
24237 msgstr ""
24238
24239 # type: =head2
24240 #: ../fish/guestfish-actions.pod:4083
24241 msgid "sync"
24242 msgstr ""
24243
24244 # type: verbatim
24245 #: ../fish/guestfish-actions.pod:4085
24246 #, no-wrap
24247 msgid ""
24248 " sync\n"
24249 "\n"
24250 msgstr ""
24251
24252 # type: =head2
24253 #: ../fish/guestfish-actions.pod:4093
24254 msgid "tail"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #: ../fish/guestfish-actions.pod:4095
24259 #, no-wrap
24260 msgid ""
24261 " tail path\n"
24262 "\n"
24263 msgstr ""
24264
24265 # type: =head2
24266 #: ../fish/guestfish-actions.pod:4103
24267 msgid "tail-n"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #: ../fish/guestfish-actions.pod:4105
24272 #, no-wrap
24273 msgid ""
24274 " tail-n nrlines path\n"
24275 "\n"
24276 msgstr ""
24277
24278 # type: =head2
24279 #: ../fish/guestfish-actions.pod:4118
24280 msgid "tar-in"
24281 msgstr ""
24282
24283 # type: verbatim
24284 #: ../fish/guestfish-actions.pod:4120
24285 #, no-wrap
24286 msgid ""
24287 " tar-in (tarfile|-) directory\n"
24288 "\n"
24289 msgstr ""
24290
24291 # type: textblock
24292 #: ../fish/guestfish-actions.pod:4125
24293 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24294 msgstr ""
24295
24296 # type: =head2
24297 #: ../fish/guestfish-actions.pod:4130
24298 msgid "tar-out"
24299 msgstr ""
24300
24301 # type: verbatim
24302 #: ../fish/guestfish-actions.pod:4132
24303 #, no-wrap
24304 msgid ""
24305 " tar-out directory (tarfile|-)\n"
24306 "\n"
24307 msgstr ""
24308
24309 # type: textblock
24310 #: ../fish/guestfish-actions.pod:4137
24311 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24312 msgstr ""
24313
24314 # type: =head2
24315 #: ../fish/guestfish-actions.pod:4142
24316 msgid "tgz-in"
24317 msgstr ""
24318
24319 # type: verbatim
24320 #: ../fish/guestfish-actions.pod:4144
24321 #, no-wrap
24322 msgid ""
24323 " tgz-in (tarball|-) directory\n"
24324 "\n"
24325 msgstr ""
24326
24327 # type: textblock
24328 #: ../fish/guestfish-actions.pod:4149
24329 msgid "To upload an uncompressed tarball, use L</tar-in>."
24330 msgstr ""
24331
24332 # type: =head2
24333 #: ../fish/guestfish-actions.pod:4153
24334 msgid "tgz-out"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #: ../fish/guestfish-actions.pod:4155
24339 #, no-wrap
24340 msgid ""
24341 " tgz-out directory (tarball|-)\n"
24342 "\n"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../fish/guestfish-actions.pod:4160
24347 msgid "To download an uncompressed tarball, use L</tar-out>."
24348 msgstr ""
24349
24350 # type: =head2
24351 #: ../fish/guestfish-actions.pod:4164
24352 msgid "touch"
24353 msgstr ""
24354
24355 # type: verbatim
24356 #: ../fish/guestfish-actions.pod:4166
24357 #, no-wrap
24358 msgid ""
24359 " touch path\n"
24360 "\n"
24361 msgstr ""
24362
24363 # type: =head2
24364 #: ../fish/guestfish-actions.pod:4175
24365 msgid "truncate"
24366 msgstr ""
24367
24368 # type: verbatim
24369 #: ../fish/guestfish-actions.pod:4177
24370 #, no-wrap
24371 msgid ""
24372 " truncate path\n"
24373 "\n"
24374 msgstr ""
24375
24376 # type: =head2
24377 #: ../fish/guestfish-actions.pod:4182
24378 msgid "truncate-size"
24379 msgstr ""
24380
24381 # type: verbatim
24382 #: ../fish/guestfish-actions.pod:4184
24383 #, no-wrap
24384 msgid ""
24385 " truncate-size path size\n"
24386 "\n"
24387 msgstr ""
24388
24389 # type: textblock
24390 #: ../fish/guestfish-actions.pod:4189
24391 msgid ""
24392 "If the current file size is less than C<size> then the file is extended to "
24393 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24394 "blocks are not allocated for the file until you write to it).  To create a "
24395 "non-sparse file of zeroes, use L</fallocate64> instead."
24396 msgstr ""
24397
24398 # type: =head2
24399 #: ../fish/guestfish-actions.pod:4195
24400 msgid "tune2fs-l"
24401 msgstr ""
24402
24403 # type: verbatim
24404 #: ../fish/guestfish-actions.pod:4197
24405 #, no-wrap
24406 msgid ""
24407 " tune2fs-l device\n"
24408 "\n"
24409 msgstr ""
24410
24411 # type: =head2
24412 #: ../fish/guestfish-actions.pod:4207
24413 msgid "txz-in"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #: ../fish/guestfish-actions.pod:4209
24418 #, no-wrap
24419 msgid ""
24420 " txz-in (tarball|-) directory\n"
24421 "\n"
24422 msgstr ""
24423
24424 # type: =head2
24425 #: ../fish/guestfish-actions.pod:4216
24426 msgid "txz-out"
24427 msgstr ""
24428
24429 # type: verbatim
24430 #: ../fish/guestfish-actions.pod:4218
24431 #, no-wrap
24432 msgid ""
24433 " txz-out directory (tarball|-)\n"
24434 "\n"
24435 msgstr ""
24436
24437 # type: =head2
24438 #: ../fish/guestfish-actions.pod:4225
24439 msgid "umask"
24440 msgstr ""
24441
24442 # type: verbatim
24443 #: ../fish/guestfish-actions.pod:4227
24444 #, no-wrap
24445 msgid ""
24446 " umask mask\n"
24447 "\n"
24448 msgstr ""
24449
24450 # type: textblock
24451 #: ../fish/guestfish-actions.pod:4241
24452 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24453 msgstr ""
24454
24455 # type: =head2
24456 #: ../fish/guestfish-actions.pod:4246
24457 msgid "umount"
24458 msgstr ""
24459
24460 # type: =head2
24461 #: ../fish/guestfish-actions.pod:4248
24462 msgid "unmount"
24463 msgstr ""
24464
24465 # type: verbatim
24466 #: ../fish/guestfish-actions.pod:4250
24467 #, no-wrap
24468 msgid ""
24469 " umount pathordevice\n"
24470 "\n"
24471 msgstr ""
24472
24473 # type: =head2
24474 #: ../fish/guestfish-actions.pod:4256
24475 msgid "umount-all"
24476 msgstr ""
24477
24478 # type: =head2
24479 #: ../fish/guestfish-actions.pod:4258
24480 msgid "unmount-all"
24481 msgstr ""
24482
24483 # type: verbatim
24484 #: ../fish/guestfish-actions.pod:4260
24485 #, no-wrap
24486 msgid ""
24487 " umount-all\n"
24488 "\n"
24489 msgstr ""
24490
24491 # type: =head2
24492 #: ../fish/guestfish-actions.pod:4266
24493 msgid "upload"
24494 msgstr ""
24495
24496 # type: verbatim
24497 #: ../fish/guestfish-actions.pod:4268
24498 #, no-wrap
24499 msgid ""
24500 " upload (filename|-) remotefilename\n"
24501 "\n"
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-actions.pod:4275
24506 msgid "See also L</download>."
24507 msgstr ""
24508
24509 # type: =head2
24510 #: ../fish/guestfish-actions.pod:4279
24511 msgid "upload-offset"
24512 msgstr ""
24513
24514 # type: verbatim
24515 #: ../fish/guestfish-actions.pod:4281
24516 #, no-wrap
24517 msgid ""
24518 " upload-offset (filename|-) remotefilename offset\n"
24519 "\n"
24520 msgstr ""
24521
24522 # type: textblock
24523 #: ../fish/guestfish-actions.pod:4293
24524 msgid ""
24525 "Note that there is no limit on the amount of data that can be uploaded with "
24526 "this call, unlike with L</pwrite>, and this call always writes the full "
24527 "amount unless an error occurs."
24528 msgstr ""
24529
24530 # type: textblock
24531 #: ../fish/guestfish-actions.pod:4298
24532 msgid "See also L</upload>, L</pwrite>."
24533 msgstr ""
24534
24535 # type: =head2
24536 #: ../fish/guestfish-actions.pod:4302
24537 msgid "utimens"
24538 msgstr ""
24539
24540 # type: verbatim
24541 #: ../fish/guestfish-actions.pod:4304
24542 #, no-wrap
24543 msgid ""
24544 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24545 "\n"
24546 msgstr ""
24547
24548 # type: =head2
24549 #: ../fish/guestfish-actions.pod:4323
24550 msgid "version"
24551 msgstr ""
24552
24553 # type: verbatim
24554 #: ../fish/guestfish-actions.pod:4325
24555 #, no-wrap
24556 msgid ""
24557 " version\n"
24558 "\n"
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../fish/guestfish-actions.pod:4352
24563 msgid ""
24564 "I<Note:> Don't use this call to test for availability of features.  In "
24565 "enterprise distributions we backport features from later versions into "
24566 "earlier versions, making this an unreliable way to test for features.  Use "
24567 "L</available> instead."
24568 msgstr ""
24569
24570 # type: =head2
24571 #: ../fish/guestfish-actions.pod:4358
24572 msgid "vfs-label"
24573 msgstr ""
24574
24575 # type: verbatim
24576 #: ../fish/guestfish-actions.pod:4360
24577 #, no-wrap
24578 msgid ""
24579 " vfs-label device\n"
24580 "\n"
24581 msgstr ""
24582
24583 # type: textblock
24584 #: ../fish/guestfish-actions.pod:4367
24585 msgid "To find a filesystem from the label, use L</findfs-label>."
24586 msgstr ""
24587
24588 # type: =head2
24589 #: ../fish/guestfish-actions.pod:4369
24590 msgid "vfs-type"
24591 msgstr ""
24592
24593 # type: verbatim
24594 #: ../fish/guestfish-actions.pod:4371
24595 #, no-wrap
24596 msgid ""
24597 " vfs-type device\n"
24598 "\n"
24599 msgstr ""
24600
24601 # type: =head2
24602 #: ../fish/guestfish-actions.pod:4381
24603 msgid "vfs-uuid"
24604 msgstr ""
24605
24606 # type: verbatim
24607 #: ../fish/guestfish-actions.pod:4383
24608 #, no-wrap
24609 msgid ""
24610 " vfs-uuid device\n"
24611 "\n"
24612 msgstr ""
24613
24614 # type: textblock
24615 #: ../fish/guestfish-actions.pod:4390
24616 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24617 msgstr ""
24618
24619 # type: =head2
24620 #: ../fish/guestfish-actions.pod:4392
24621 msgid "vg-activate"
24622 msgstr ""
24623
24624 # type: verbatim
24625 #: ../fish/guestfish-actions.pod:4394
24626 #, no-wrap
24627 msgid ""
24628 " vg-activate true|false 'volgroups ...'\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: =head2
24633 #: ../fish/guestfish-actions.pod:4407
24634 msgid "vg-activate-all"
24635 msgstr ""
24636
24637 # type: verbatim
24638 #: ../fish/guestfish-actions.pod:4409
24639 #, no-wrap
24640 msgid ""
24641 " vg-activate-all true|false\n"
24642 "\n"
24643 msgstr ""
24644
24645 # type: =head2
24646 #: ../fish/guestfish-actions.pod:4419
24647 msgid "vgcreate"
24648 msgstr ""
24649
24650 # type: verbatim
24651 #: ../fish/guestfish-actions.pod:4421
24652 #, no-wrap
24653 msgid ""
24654 " vgcreate volgroup 'physvols ...'\n"
24655 "\n"
24656 msgstr ""
24657
24658 # type: =head2
24659 #: ../fish/guestfish-actions.pod:4426
24660 msgid "vglvuuids"
24661 msgstr ""
24662
24663 # type: verbatim
24664 #: ../fish/guestfish-actions.pod:4428
24665 #, no-wrap
24666 msgid ""
24667 " vglvuuids vgname\n"
24668 "\n"
24669 msgstr ""
24670
24671 # type: textblock
24672 #: ../fish/guestfish-actions.pod:4433
24673 msgid ""
24674 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24675 "logical volumes and volume groups."
24676 msgstr ""
24677
24678 # type: textblock
24679 #: ../fish/guestfish-actions.pod:4436
24680 msgid "See also L</vgpvuuids>."
24681 msgstr ""
24682
24683 # type: =head2
24684 #: ../fish/guestfish-actions.pod:4438
24685 msgid "vgpvuuids"
24686 msgstr ""
24687
24688 # type: verbatim
24689 #: ../fish/guestfish-actions.pod:4440
24690 #, no-wrap
24691 msgid ""
24692 " vgpvuuids vgname\n"
24693 "\n"
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../fish/guestfish-actions.pod:4445
24698 msgid ""
24699 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24700 "physical volumes and volume groups."
24701 msgstr ""
24702
24703 # type: textblock
24704 #: ../fish/guestfish-actions.pod:4448
24705 msgid "See also L</vglvuuids>."
24706 msgstr ""
24707
24708 # type: =head2
24709 #: ../fish/guestfish-actions.pod:4450
24710 msgid "vgremove"
24711 msgstr ""
24712
24713 # type: verbatim
24714 #: ../fish/guestfish-actions.pod:4452
24715 #, no-wrap
24716 msgid ""
24717 " vgremove vgname\n"
24718 "\n"
24719 msgstr ""
24720
24721 # type: =head2
24722 #: ../fish/guestfish-actions.pod:4459
24723 msgid "vgrename"
24724 msgstr ""
24725
24726 # type: verbatim
24727 #: ../fish/guestfish-actions.pod:4461
24728 #, no-wrap
24729 msgid ""
24730 " vgrename volgroup newvolgroup\n"
24731 "\n"
24732 msgstr ""
24733
24734 # type: =head2
24735 #: ../fish/guestfish-actions.pod:4465
24736 msgid "vgs"
24737 msgstr ""
24738
24739 # type: verbatim
24740 #: ../fish/guestfish-actions.pod:4467
24741 #, no-wrap
24742 msgid ""
24743 " vgs\n"
24744 "\n"
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../fish/guestfish-actions.pod:4475
24749 msgid "See also L</vgs-full>."
24750 msgstr ""
24751
24752 # type: =head2
24753 #: ../fish/guestfish-actions.pod:4477
24754 msgid "vgs-full"
24755 msgstr ""
24756
24757 # type: verbatim
24758 #: ../fish/guestfish-actions.pod:4479
24759 #, no-wrap
24760 msgid ""
24761 " vgs-full\n"
24762 "\n"
24763 msgstr ""
24764
24765 # type: =head2
24766 #: ../fish/guestfish-actions.pod:4484
24767 msgid "vgscan"
24768 msgstr ""
24769
24770 # type: verbatim
24771 #: ../fish/guestfish-actions.pod:4486
24772 #, no-wrap
24773 msgid ""
24774 " vgscan\n"
24775 "\n"
24776 msgstr ""
24777
24778 # type: =head2
24779 #: ../fish/guestfish-actions.pod:4491
24780 msgid "vguuid"
24781 msgstr ""
24782
24783 # type: verbatim
24784 #: ../fish/guestfish-actions.pod:4493
24785 #, no-wrap
24786 msgid ""
24787 " vguuid vgname\n"
24788 "\n"
24789 msgstr ""
24790
24791 # type: =head2
24792 #: ../fish/guestfish-actions.pod:4497
24793 msgid "wc-c"
24794 msgstr ""
24795
24796 # type: verbatim
24797 #: ../fish/guestfish-actions.pod:4499
24798 #, no-wrap
24799 msgid ""
24800 " wc-c path\n"
24801 "\n"
24802 msgstr ""
24803
24804 # type: =head2
24805 #: ../fish/guestfish-actions.pod:4504
24806 msgid "wc-l"
24807 msgstr ""
24808
24809 # type: verbatim
24810 #: ../fish/guestfish-actions.pod:4506
24811 #, no-wrap
24812 msgid ""
24813 " wc-l path\n"
24814 "\n"
24815 msgstr ""
24816
24817 # type: =head2
24818 #: ../fish/guestfish-actions.pod:4511
24819 msgid "wc-w"
24820 msgstr ""
24821
24822 # type: verbatim
24823 #: ../fish/guestfish-actions.pod:4513
24824 #, no-wrap
24825 msgid ""
24826 " wc-w path\n"
24827 "\n"
24828 msgstr ""
24829
24830 # type: =head2
24831 #: ../fish/guestfish-actions.pod:4518
24832 msgid "write"
24833 msgstr ""
24834
24835 # type: verbatim
24836 #: ../fish/guestfish-actions.pod:4520
24837 #, no-wrap
24838 msgid ""
24839 " write path content\n"
24840 "\n"
24841 msgstr ""
24842
24843 # type: =head2
24844 #: ../fish/guestfish-actions.pod:4528
24845 msgid "write-file"
24846 msgstr ""
24847
24848 # type: verbatim
24849 #: ../fish/guestfish-actions.pod:4530
24850 #, no-wrap
24851 msgid ""
24852 " write-file path content size\n"
24853 "\n"
24854 msgstr ""
24855
24856 # type: =head2
24857 #: ../fish/guestfish-actions.pod:4553
24858 msgid "zegrep"
24859 msgstr ""
24860
24861 # type: verbatim
24862 #: ../fish/guestfish-actions.pod:4555
24863 #, no-wrap
24864 msgid ""
24865 " zegrep regex path\n"
24866 "\n"
24867 msgstr ""
24868
24869 # type: =head2
24870 #: ../fish/guestfish-actions.pod:4563
24871 msgid "zegrepi"
24872 msgstr ""
24873
24874 # type: verbatim
24875 #: ../fish/guestfish-actions.pod:4565
24876 #, no-wrap
24877 msgid ""
24878 " zegrepi regex path\n"
24879 "\n"
24880 msgstr ""
24881
24882 # type: =head2
24883 #: ../fish/guestfish-actions.pod:4573
24884 msgid "zero"
24885 msgstr ""
24886
24887 # type: verbatim
24888 #: ../fish/guestfish-actions.pod:4575
24889 #, no-wrap
24890 msgid ""
24891 " zero device\n"
24892 "\n"
24893 msgstr ""
24894
24895 # type: textblock
24896 #: ../fish/guestfish-actions.pod:4583
24897 msgid "See also: L</zero-device>, L</scrub-device>."
24898 msgstr ""
24899
24900 # type: =head2
24901 #: ../fish/guestfish-actions.pod:4585
24902 msgid "zero-device"
24903 msgstr ""
24904
24905 # type: verbatim
24906 #: ../fish/guestfish-actions.pod:4587
24907 #, no-wrap
24908 msgid ""
24909 " zero-device device\n"
24910 "\n"
24911 msgstr ""
24912
24913 # type: textblock
24914 #: ../fish/guestfish-actions.pod:4589
24915 msgid ""
24916 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24917 "which just zeroes the first few blocks of a device."
24918 msgstr ""
24919
24920 # type: =head2
24921 #: ../fish/guestfish-actions.pod:4596
24922 msgid "zerofree"
24923 msgstr ""
24924
24925 # type: verbatim
24926 #: ../fish/guestfish-actions.pod:4598
24927 #, no-wrap
24928 msgid ""
24929 " zerofree device\n"
24930 "\n"
24931 msgstr ""
24932
24933 # type: =head2
24934 #: ../fish/guestfish-actions.pod:4611
24935 msgid "zfgrep"
24936 msgstr ""
24937
24938 # type: verbatim
24939 #: ../fish/guestfish-actions.pod:4613
24940 #, no-wrap
24941 msgid ""
24942 " zfgrep pattern path\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: =head2
24947 #: ../fish/guestfish-actions.pod:4621
24948 msgid "zfgrepi"
24949 msgstr ""
24950
24951 # type: verbatim
24952 #: ../fish/guestfish-actions.pod:4623
24953 #, no-wrap
24954 msgid ""
24955 " zfgrepi pattern path\n"
24956 "\n"
24957 msgstr ""
24958
24959 # type: =head2
24960 #: ../fish/guestfish-actions.pod:4631
24961 msgid "zfile"
24962 msgstr ""
24963
24964 # type: verbatim
24965 #: ../fish/guestfish-actions.pod:4633
24966 #, no-wrap
24967 msgid ""
24968 " zfile meth path\n"
24969 "\n"
24970 msgstr ""
24971
24972 # type: textblock
24973 #: ../fish/guestfish-actions.pod:4640
24974 msgid ""
24975 "Since 1.0.63, use L</file> instead which can now process compressed files."
24976 msgstr ""
24977
24978 # type: =head2
24979 #: ../fish/guestfish-actions.pod:4650
24980 msgid "zgrep"
24981 msgstr ""
24982
24983 # type: verbatim
24984 #: ../fish/guestfish-actions.pod:4652
24985 #, no-wrap
24986 msgid ""
24987 " zgrep regex path\n"
24988 "\n"
24989 msgstr ""
24990
24991 # type: =head2
24992 #: ../fish/guestfish-actions.pod:4660
24993 msgid "zgrepi"
24994 msgstr ""
24995
24996 # type: verbatim
24997 #: ../fish/guestfish-actions.pod:4662
24998 #, no-wrap
24999 msgid ""
25000 " zgrepi regex path\n"
25001 "\n"
25002 msgstr ""
25003
25004 # type: =head2
25005 #: ../fish/guestfish-commands.pod:1
25006 msgid "alloc"
25007 msgstr ""
25008
25009 # type: =head2
25010 #: ../fish/guestfish-commands.pod:3
25011 msgid "allocate"
25012 msgstr ""
25013
25014 # type: verbatim
25015 #: ../fish/guestfish-commands.pod:5
25016 #, no-wrap
25017 msgid ""
25018 " alloc filename size\n"
25019 "\n"
25020 msgstr ""
25021
25022 # type: textblock
25023 #: ../fish/guestfish-commands.pod:7
25024 msgid ""
25025 "This creates an empty (zeroed) file of the given size, and then adds so it "
25026 "can be further examined."
25027 msgstr ""
25028
25029 # type: textblock
25030 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25031 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25032 msgstr ""
25033
25034 # type: textblock
25035 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25036 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../fish/guestfish-commands.pod:14
25041 msgid ""
25042 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25043 "image, see L</PREPARED DISK IMAGES>."
25044 msgstr ""
25045
25046 # type: =head2
25047 #: ../fish/guestfish-commands.pod:17
25048 msgid "copy-in"
25049 msgstr ""
25050
25051 # type: verbatim
25052 #: ../fish/guestfish-commands.pod:19
25053 #, no-wrap
25054 msgid ""
25055 " copy-in local [local ...] /remotedir\n"
25056 "\n"
25057 msgstr ""
25058
25059 # type: textblock
25060 #: ../fish/guestfish-commands.pod:21
25061 msgid ""
25062 "C<copy-in> copies local files or directories recursively into the disk "
25063 "image, placing them in the directory called C</remotedir> (which must "
25064 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25065 "other commands as necessary."
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../fish/guestfish-commands.pod:26
25070 msgid ""
25071 "Multiple local files and directories can be specified, but the last "
25072 "parameter must always be a remote directory.  Wildcards cannot be used."
25073 msgstr ""
25074
25075 # type: =head2
25076 #: ../fish/guestfish-commands.pod:30
25077 msgid "copy-out"
25078 msgstr ""
25079
25080 # type: verbatim
25081 #: ../fish/guestfish-commands.pod:32
25082 #, no-wrap
25083 msgid ""
25084 " copy-out remote [remote ...] localdir\n"
25085 "\n"
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../fish/guestfish-commands.pod:34
25090 msgid ""
25091 "C<copy-out> copies remote files or directories recursively out of the disk "
25092 "image, placing them on the host disk in a local directory called C<localdir> "
25093 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25094 "download>, L</tar-out> and other commands as necessary."
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../fish/guestfish-commands.pod:40
25099 msgid ""
25100 "Multiple remote files and directories can be specified, but the last "
25101 "parameter must always be a local directory.  To download to the current "
25102 "directory, use C<.> as in:"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #: ../fish/guestfish-commands.pod:44
25107 #, no-wrap
25108 msgid ""
25109 " copy-out /home .\n"
25110 "\n"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../fish/guestfish-commands.pod:46
25115 msgid ""
25116 "Wildcards cannot be used in the ordinary command, but you can use them with "
25117 "the help of L</glob> like this:"
25118 msgstr ""
25119
25120 # type: verbatim
25121 #: ../fish/guestfish-commands.pod:49
25122 #, no-wrap
25123 msgid ""
25124 " glob copy-out /home/* .\n"
25125 "\n"
25126 msgstr ""
25127
25128 # type: =head2
25129 #: ../fish/guestfish-commands.pod:51
25130 msgid "echo"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #: ../fish/guestfish-commands.pod:53
25135 #, no-wrap
25136 msgid ""
25137 " echo [params ...]\n"
25138 "\n"
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../fish/guestfish-commands.pod:55
25143 msgid "This echos the parameters to the terminal."
25144 msgstr ""
25145
25146 # type: =head2
25147 #: ../fish/guestfish-commands.pod:57
25148 msgid "edit"
25149 msgstr ""
25150
25151 # type: =head2
25152 #: ../fish/guestfish-commands.pod:59
25153 msgid "vi"
25154 msgstr ""
25155
25156 # type: =head2
25157 #: ../fish/guestfish-commands.pod:61
25158 msgid "emacs"
25159 msgstr ""
25160
25161 # type: verbatim
25162 #: ../fish/guestfish-commands.pod:63
25163 #, no-wrap
25164 msgid ""
25165 " edit filename\n"
25166 "\n"
25167 msgstr ""
25168
25169 # type: textblock
25170 #: ../fish/guestfish-commands.pod:65
25171 msgid ""
25172 "This is used to edit a file.  It downloads the file, edits it locally using "
25173 "your editor, then uploads the result."
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../fish/guestfish-commands.pod:68
25178 msgid ""
25179 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25180 "or C<emacs> you will get those corresponding editors."
25181 msgstr ""
25182
25183 # type: =head2
25184 #: ../fish/guestfish-commands.pod:72
25185 msgid "glob"
25186 msgstr ""
25187
25188 # type: verbatim
25189 #: ../fish/guestfish-commands.pod:74
25190 #, no-wrap
25191 msgid ""
25192 " glob command args...\n"
25193 "\n"
25194 msgstr ""
25195
25196 # type: textblock
25197 #: ../fish/guestfish-commands.pod:76
25198 msgid ""
25199 "Expand wildcards in any paths in the args list, and run C<command> "
25200 "repeatedly on each matching path."
25201 msgstr ""
25202
25203 # type: textblock
25204 #: ../fish/guestfish-commands.pod:79
25205 msgid "See L</WILDCARDS AND GLOBBING>."
25206 msgstr ""
25207
25208 # type: =head2
25209 #: ../fish/guestfish-commands.pod:81
25210 msgid "hexedit"
25211 msgstr ""
25212
25213 # type: verbatim
25214 #: ../fish/guestfish-commands.pod:83
25215 #, no-wrap
25216 msgid ""
25217 " hexedit <filename|device>\n"
25218 " hexedit <filename|device> <max>\n"
25219 " hexedit <filename|device> <start> <max>\n"
25220 "\n"
25221 msgstr ""
25222
25223 # type: textblock
25224 #: ../fish/guestfish-commands.pod:87
25225 msgid ""
25226 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25227 "device."
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../fish/guestfish-commands.pod:90
25232 msgid ""
25233 "This command works by downloading potentially the whole file or device, "
25234 "editing it locally, then uploading it.  If the file or device is large, you "
25235 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25236 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25237 "usual modifiers allowed such as C<1M> (1 megabyte)."
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../fish/guestfish-commands.pod:97
25242 msgid "For example to edit the first few sectors of a disk you might do:"
25243 msgstr ""
25244
25245 # type: verbatim
25246 #: ../fish/guestfish-commands.pod:100
25247 #, no-wrap
25248 msgid ""
25249 " hexedit /dev/sda 1M\n"
25250 "\n"
25251 msgstr ""
25252
25253 # type: textblock
25254 #: ../fish/guestfish-commands.pod:102
25255 msgid ""
25256 "which would allow you to edit anywhere within the first megabyte of the disk."
25257 msgstr ""
25258
25259 # type: textblock
25260 #: ../fish/guestfish-commands.pod:105
25261 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25262 msgstr ""
25263
25264 # type: verbatim
25265 #: ../fish/guestfish-commands.pod:107
25266 #, no-wrap
25267 msgid ""
25268 " hexedit /dev/sda1 0x400 0x400\n"
25269 "\n"
25270 msgstr ""
25271
25272 # type: textblock
25273 #: ../fish/guestfish-commands.pod:109
25274 msgid "(assuming the superblock is in the standard location)."
25275 msgstr ""
25276
25277 # type: textblock
25278 #: ../fish/guestfish-commands.pod:111
25279 msgid ""
25280 "This command requires the external L<hexedit(1)> program.  You can specify "
25281 "another program to use by setting the C<HEXEDITOR> environment variable."
25282 msgstr ""
25283
25284 # type: textblock
25285 #: ../fish/guestfish-commands.pod:115
25286 msgid "See also L</hexdump>."
25287 msgstr ""
25288
25289 # type: =head2
25290 #: ../fish/guestfish-commands.pod:117
25291 msgid "lcd"
25292 msgstr ""
25293
25294 # type: verbatim
25295 #: ../fish/guestfish-commands.pod:119
25296 #, no-wrap
25297 msgid ""
25298 " lcd directory\n"
25299 "\n"
25300 msgstr ""
25301
25302 # type: textblock
25303 #: ../fish/guestfish-commands.pod:121
25304 msgid ""
25305 "Change the local directory, ie. the current directory of guestfish itself."
25306 msgstr ""
25307
25308 # type: textblock
25309 #: ../fish/guestfish-commands.pod:124
25310 msgid "Note that C<!cd> won't do what you might expect."
25311 msgstr ""
25312
25313 # type: =head2
25314 #: ../fish/guestfish-commands.pod:126
25315 msgid "man"
25316 msgstr ""
25317
25318 # type: =head2
25319 #: ../fish/guestfish-commands.pod:128
25320 msgid "manual"
25321 msgstr ""
25322
25323 # type: verbatim
25324 #: ../fish/guestfish-commands.pod:130
25325 #, no-wrap
25326 msgid ""
25327 "  man\n"
25328 "\n"
25329 msgstr ""
25330
25331 # type: textblock
25332 #: ../fish/guestfish-commands.pod:132
25333 msgid "Opens the manual page for guestfish."
25334 msgstr ""
25335
25336 # type: =head2
25337 #: ../fish/guestfish-commands.pod:134
25338 msgid "more"
25339 msgstr ""
25340
25341 # type: =head2
25342 #: ../fish/guestfish-commands.pod:136
25343 msgid "less"
25344 msgstr ""
25345
25346 # type: verbatim
25347 #: ../fish/guestfish-commands.pod:138
25348 #, no-wrap
25349 msgid ""
25350 " more filename\n"
25351 "\n"
25352 msgstr ""
25353
25354 # type: verbatim
25355 #: ../fish/guestfish-commands.pod:140
25356 #, no-wrap
25357 msgid ""
25358 " less filename\n"
25359 "\n"
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../fish/guestfish-commands.pod:142
25364 msgid "This is used to view a file."
25365 msgstr ""
25366
25367 # type: textblock
25368 #: ../fish/guestfish-commands.pod:144
25369 msgid ""
25370 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25371 "C<less> you will get the C<less> command specifically."
25372 msgstr ""
25373
25374 # type: =head2
25375 #: ../fish/guestfish-commands.pod:147
25376 msgid "reopen"
25377 msgstr ""
25378
25379 # type: verbatim
25380 #: ../fish/guestfish-commands.pod:149
25381 #, no-wrap
25382 msgid ""
25383 "  reopen\n"
25384 "\n"
25385 msgstr ""
25386
25387 # type: textblock
25388 #: ../fish/guestfish-commands.pod:151
25389 msgid ""
25390 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25391 "normally, because the handle is closed properly when guestfish exits.  "
25392 "However this is occasionally useful for testing."
25393 msgstr ""
25394
25395 # type: =head2
25396 #: ../fish/guestfish-commands.pod:155
25397 msgid "sparse"
25398 msgstr ""
25399
25400 # type: verbatim
25401 #: ../fish/guestfish-commands.pod:157
25402 #, no-wrap
25403 msgid ""
25404 " sparse filename size\n"
25405 "\n"
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../fish/guestfish-commands.pod:159
25410 msgid ""
25411 "This creates an empty sparse file of the given size, and then adds so it can "
25412 "be further examined."
25413 msgstr ""
25414
25415 # type: textblock
25416 #: ../fish/guestfish-commands.pod:162
25417 msgid ""
25418 "In all respects it works the same as the L</alloc> command, except that the "
25419 "image file is allocated sparsely, which means that disk blocks are not "
25420 "assigned to the file until they are needed.  Sparse disk files only use "
25421 "space when written to, but they are slower and there is a danger you could "
25422 "run out of real disk space during a write operation."
25423 msgstr ""
25424
25425 # type: =head2
25426 #: ../fish/guestfish-commands.pod:172
25427 msgid "supported"
25428 msgstr ""
25429
25430 # type: verbatim
25431 #: ../fish/guestfish-commands.pod:174
25432 #, no-wrap
25433 msgid ""
25434 " supported\n"
25435 "\n"
25436 msgstr ""
25437
25438 # type: textblock
25439 #: ../fish/guestfish-commands.pod:176
25440 msgid ""
25441 "This command returns a list of the optional groups known to the daemon, and "
25442 "indicates which ones are supported by this build of the libguestfs appliance."
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../fish/guestfish-commands.pod:180
25447 msgid "See also L<guestfs(3)/AVAILABILITY>."
25448 msgstr ""
25449
25450 # type: =head2
25451 #: ../fish/guestfish-commands.pod:182
25452 msgid "time"
25453 msgstr ""
25454
25455 # type: verbatim
25456 #: ../fish/guestfish-commands.pod:184
25457 #, no-wrap
25458 msgid ""
25459 " time command args...\n"
25460 "\n"
25461 msgstr ""
25462
25463 # type: textblock
25464 #: ../fish/guestfish-commands.pod:186
25465 msgid ""
25466 "Run the command as usual, but print the elapsed time afterwards.  This can "
25467 "be useful for benchmarking operations."
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../test-tool/libguestfs-test-tool.pod:5
25472 msgid "libguestfs-test-tool - End user tests for libguestfs"
25473 msgstr ""
25474
25475 # type: verbatim
25476 #: ../test-tool/libguestfs-test-tool.pod:9
25477 #, no-wrap
25478 msgid ""
25479 " libguestfs-test-tool [--options]\n"
25480 "\n"
25481 msgstr ""
25482
25483 # type: textblock
25484 #: ../test-tool/libguestfs-test-tool.pod:13
25485 msgid ""
25486 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25487 "and developers, to allow them to check basic libguestfs functionality is "
25488 "working.  This is needed because libguestfs occasionally breaks for reasons "
25489 "beyond our control: usually because of changes in the underlying qemu or "
25490 "kernel packages, or the host environment."
25491 msgstr ""
25492
25493 # type: textblock
25494 #: ../test-tool/libguestfs-test-tool.pod:20
25495 msgid "If you suspect a problem in libguestfs, then just run:"
25496 msgstr ""
25497
25498 # type: verbatim
25499 #: ../test-tool/libguestfs-test-tool.pod:22
25500 #, no-wrap
25501 msgid ""
25502 " libguestfs-test-tool\n"
25503 "\n"
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../test-tool/libguestfs-test-tool.pod:24
25508 msgid "It will print lots of diagnostic messages."
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../test-tool/libguestfs-test-tool.pod:26
25513 msgid "If it runs to completion successfully, you will see this near the end:"
25514 msgstr ""
25515
25516 # type: verbatim
25517 #: ../test-tool/libguestfs-test-tool.pod:28
25518 #, no-wrap
25519 msgid ""
25520 " ===== TEST FINISHED OK =====\n"
25521 "\n"
25522 msgstr ""
25523
25524 # type: textblock
25525 #: ../test-tool/libguestfs-test-tool.pod:30
25526 msgid "and the test tool will exit with code 0."
25527 msgstr ""
25528
25529 # type: textblock
25530 #: ../test-tool/libguestfs-test-tool.pod:32
25531 msgid ""
25532 "If it fails (and/or exits with non-zero error code), please paste the "
25533 "B<complete, unedited> output of the test tool into a bug report.  More "
25534 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25535 "> website."
25536 msgstr ""
25537
25538 # type: =item
25539 #: ../test-tool/libguestfs-test-tool.pod:41
25540 msgid "I<--help>"
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../test-tool/libguestfs-test-tool.pod:43
25545 msgid "Display short usage information and exit."
25546 msgstr ""
25547
25548 # type: =item
25549 #: ../test-tool/libguestfs-test-tool.pod:45
25550 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25551 msgstr ""
25552
25553 # type: textblock
25554 #: ../test-tool/libguestfs-test-tool.pod:47
25555 msgid ""
25556 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25557 "normally look in the C<$libexec> directory that was configured when the tool "
25558 "was built."
25559 msgstr ""
25560
25561 # type: =item
25562 #: ../test-tool/libguestfs-test-tool.pod:51
25563 msgid "I<--qemu qemu_binary>"
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../test-tool/libguestfs-test-tool.pod:53
25568 msgid ""
25569 "If you have downloaded another qemu binary, point this option at the full "
25570 "path of the binary to try it."
25571 msgstr ""
25572
25573 # type: =item
25574 #: ../test-tool/libguestfs-test-tool.pod:56
25575 msgid "I<--qemudir qemu_source_dir>"
25576 msgstr ""
25577
25578 # type: textblock
25579 #: ../test-tool/libguestfs-test-tool.pod:58
25580 msgid ""
25581 "If you have compiled qemu from source, point this option at the source "
25582 "directory to try it."
25583 msgstr ""
25584
25585 # type: =item
25586 #: ../test-tool/libguestfs-test-tool.pod:61
25587 msgid "I<--timeout N>"
25588 msgstr ""
25589
25590 # type: textblock
25591 #: ../test-tool/libguestfs-test-tool.pod:63
25592 msgid ""
25593 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25594 "does not usually need to be adjusted unless your machine is very slow."
25595 msgstr ""
25596
25597 # type: =head1
25598 #: ../test-tool/libguestfs-test-tool.pod:69
25599 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../test-tool/libguestfs-test-tool.pod:71
25604 msgid ""
25605 "If you have compiled another version of qemu from source and would like to "
25606 "try that, then you can use the I<--qemudir> option to point to the qemu "
25607 "source directory."
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../test-tool/libguestfs-test-tool.pod:75
25612 msgid ""
25613 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25614 "option to point to the binary."
25615 msgstr ""
25616
25617 # type: textblock
25618 #: ../test-tool/libguestfs-test-tool.pod:78
25619 msgid ""
25620 "When using an alternate qemu with libguestfs, usually you would need to "
25621 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25622 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25623 "use either of the I<--qemudir> or I<--qemu> options."
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../test-tool/libguestfs-test-tool.pod:85
25628 msgid ""
25629 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25630 "I<1> if there was an error."
25631 msgstr ""
25632
25633 # type: =item
25634 #: ../test-tool/libguestfs-test-tool.pod:92
25635 msgid "/usr/libexec/libguestfs-test-tool-helper"
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../test-tool/libguestfs-test-tool.pod:94
25640 msgid ""
25641 "This helper program is run inside the appliance and provides additional "
25642 "tests."
25643 msgstr ""
25644
25645 # type: =item
25646 #: ../test-tool/libguestfs-test-tool.pod:97
25647 msgid "/usr/bin/mkisofs"
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../test-tool/libguestfs-test-tool.pod:99
25652 msgid ""
25653 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25654 "which is used as part of the tests."
25655 msgstr ""
25656
25657 # type: textblock
25658 #: ../test-tool/libguestfs-test-tool.pod:106
25659 msgid ""
25660 "For the full list of environment variables which may affect libguestfs, "
25661 "please see the L<guestfs(3)> manual page."
25662 msgstr ""
25663
25664 # type: textblock
25665 #: ../test-tool/libguestfs-test-tool.pod:111
25666 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25667 msgstr ""
25668
25669 # type: textblock
25670 #: ../test-tool/libguestfs-test-tool.pod:121
25671 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25672 msgstr ""
25673
25674 # type: textblock
25675 #: ../fuse/guestmount.pod:5
25676 msgid ""
25677 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25678 msgstr ""
25679
25680 # type: verbatim
25681 #: ../fuse/guestmount.pod:9
25682 #, no-wrap
25683 msgid ""
25684 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25685 "\n"
25686 msgstr ""
25687
25688 # type: verbatim
25689 #: ../fuse/guestmount.pod:11
25690 #, no-wrap
25691 msgid ""
25692 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25693 "\n"
25694 msgstr ""
25695
25696 # type: verbatim
25697 #: ../fuse/guestmount.pod:13
25698 #, no-wrap
25699 msgid ""
25700 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25701 "\n"
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../fuse/guestmount.pod:17
25706 msgid ""
25707 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25708 "machines.  If you do this, you risk disk corruption in the VM."
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../fuse/guestmount.pod:22
25713 msgid ""
25714 "The guestmount program can be used to mount virtual machine filesystems and "
25715 "other disk images on the host.  It uses libguestfs for access to the guest "
25716 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25717 "a mountable device."
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../fuse/guestmount.pod:27
25722 msgid ""
25723 "Along with other options, you have to give at least one device (I<-a> "
25724 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25725 "option) or use the I<-i> inspection option.  How this works is better "
25726 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25727 "below."
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../fuse/guestmount.pod:33
25732 msgid ""
25733 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25734 "by you, and the filesystem will not be visible to any other users unless you "
25735 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25736 "the filesystem, use the C<fusermount -u> command."
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../fuse/guestmount.pod:41
25741 msgid ""
25742 "For a typical Windows guest which has its main filesystem on the first "
25743 "partition:"
25744 msgstr ""
25745
25746 # type: verbatim
25747 #: ../fuse/guestmount.pod:44
25748 #, no-wrap
25749 msgid ""
25750 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25751 "\n"
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../fuse/guestmount.pod:46
25756 msgid ""
25757 "For a typical Linux guest which has a /boot filesystem on the first "
25758 "partition, and the root filesystem on a logical volume:"
25759 msgstr ""
25760
25761 # type: verbatim
25762 #: ../fuse/guestmount.pod:49
25763 #, no-wrap
25764 msgid ""
25765 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25766 "\n"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../fuse/guestmount.pod:51
25771 msgid "To get libguestfs to detect guest mountpoints for you:"
25772 msgstr ""
25773
25774 # type: verbatim
25775 #: ../fuse/guestmount.pod:53
25776 #, no-wrap
25777 msgid ""
25778 " guestmount -a guest.img -i --ro /mnt\n"
25779 "\n"
25780 msgstr ""
25781
25782 # type: textblock
25783 #: ../fuse/guestmount.pod:55
25784 msgid "For a libvirt guest called \"Guest\" you could do:"
25785 msgstr ""
25786
25787 # type: verbatim
25788 #: ../fuse/guestmount.pod:57
25789 #, no-wrap
25790 msgid ""
25791 " guestmount -d Guest -i --ro /mnt\n"
25792 "\n"
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../fuse/guestmount.pod:59
25797 msgid ""
25798 "If you don't know what filesystems are contained in a guest or disk image, "
25799 "use L<virt-list-filesystems(1)> first:"
25800 msgstr ""
25801
25802 # type: verbatim
25803 #: ../fuse/guestmount.pod:62
25804 #, no-wrap
25805 msgid ""
25806 " virt-list-filesystems MyGuest\n"
25807 "\n"
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../fuse/guestmount.pod:64
25812 msgid ""
25813 "If you want to trace the libguestfs calls but without excessive debugging "
25814 "information, we recommend:"
25815 msgstr ""
25816
25817 # type: verbatim
25818 #: ../fuse/guestmount.pod:67
25819 #, no-wrap
25820 msgid ""
25821 " guestmount [...] --trace /mnt\n"
25822 "\n"
25823 msgstr ""
25824
25825 # type: textblock
25826 #: ../fuse/guestmount.pod:69
25827 msgid "If you want to debug the program, we recommend:"
25828 msgstr ""
25829
25830 # type: verbatim
25831 #: ../fuse/guestmount.pod:71
25832 #, no-wrap
25833 msgid ""
25834 " guestmount [...] --trace --verbose /mnt\n"
25835 "\n"
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../fuse/guestmount.pod:79
25840 msgid "Add a block device or virtual machine image."
25841 msgstr ""
25842
25843 # type: =item
25844 #: ../fuse/guestmount.pod:96
25845 msgid "B<--dir-cache-timeout N>"
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../fuse/guestmount.pod:98
25850 msgid ""
25851 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25852 "seconds.  The readdir cache [actually, there are several semi-independent "
25853 "caches] is populated after a readdir(2) call with the stat and extended "
25854 "attributes of the files in the directory, in anticipation that they will be "
25855 "requested soon after."
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../fuse/guestmount.pod:104
25860 msgid ""
25861 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25862 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25863 "requests, only cache existing ones."
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../fuse/guestmount.pod:122
25868 msgid ""
25869 "If you have untrusted raw-format guest disk images, you should use this "
25870 "option to specify the disk format.  This avoids a possible security problem "
25871 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25872 "guestfs_add_drive_opts>."
25873 msgstr ""
25874
25875 # type: =item
25876 #: ../fuse/guestmount.pod:127
25877 msgid "B<--fuse-help>"
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../fuse/guestmount.pod:129
25882 msgid "Display help on special FUSE options (see I<-o> below)."
25883 msgstr ""
25884
25885 # type: textblock
25886 #: ../fuse/guestmount.pod:133
25887 msgid "Display brief help and exit."
25888 msgstr ""
25889
25890 # type: =item
25891 #: ../fuse/guestmount.pod:146
25892 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25893 msgstr ""
25894
25895 # type: textblock
25896 #: ../fuse/guestmount.pod:148
25897 msgid ""
25898 "Mount the named partition or logical volume on the given mountpoint B<in the "
25899 "guest> (this has nothing to do with mountpoints in the host)."
25900 msgstr ""
25901
25902 # type: textblock
25903 #: ../fuse/guestmount.pod:151
25904 msgid ""
25905 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25906 "something on C</>."
25907 msgstr ""
25908
25909 # type: textblock
25910 #: ../fuse/guestmount.pod:156
25911 msgid ""
25912 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25913 "unmounted.  If you specify this option, then we don't attempt to sync the "
25914 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25915 msgstr ""
25916
25917 # type: =item
25918 #: ../fuse/guestmount.pod:161
25919 msgid "B<-o option> | B<--option option>"
25920 msgstr ""
25921
25922 # type: textblock
25923 #: ../fuse/guestmount.pod:163
25924 msgid "Pass extra options to FUSE."
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../fuse/guestmount.pod:165
25929 msgid ""
25930 "To get a list of all the extra options supported by FUSE, use the command "
25931 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25932 "of them are a good idea."
25933 msgstr ""
25934
25935 # type: verbatim
25936 #: ../fuse/guestmount.pod:169
25937 #, no-wrap
25938 msgid ""
25939 " guestmount --fuse-help\n"
25940 "\n"
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../fuse/guestmount.pod:171
25945 msgid "Some potentially useful FUSE options:"
25946 msgstr ""
25947
25948 # type: =item
25949 #: ../fuse/guestmount.pod:175
25950 msgid "B<-o allow_other>"
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../fuse/guestmount.pod:177
25955 msgid "Allow other users to see the filesystem."
25956 msgstr ""
25957
25958 # type: =item
25959 #: ../fuse/guestmount.pod:179
25960 msgid "B<-o attr_timeout=N>"
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../fuse/guestmount.pod:181
25965 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25966 msgstr ""
25967
25968 # type: =item
25969 #: ../fuse/guestmount.pod:183
25970 msgid "B<-o kernel_cache>"
25971 msgstr ""
25972
25973 # type: textblock
25974 #: ../fuse/guestmount.pod:185
25975 msgid ""
25976 "Allow the kernel to cache files (reduces the number of reads that have to go "
25977 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25978 "afford the extra memory usage."
25979 msgstr ""
25980
25981 # type: =item
25982 #: ../fuse/guestmount.pod:189
25983 msgid "B<-o uid=N> B<-o gid=N>"
25984 msgstr ""
25985
25986 # type: textblock
25987 #: ../fuse/guestmount.pod:191
25988 msgid ""
25989 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25990 "the chosen values."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../fuse/guestmount.pod:198
25995 msgid ""
25996 "Add devices and mount everything read-only.  Also disallow writes and make "
25997 "the disk appear read-only to FUSE."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../fuse/guestmount.pod:201
26002 msgid ""
26003 "This is highly recommended if you are not going to edit the guest disk.  If "
26004 "the guest is running and this option is I<not> supplied, then there is a "
26005 "strong risk of disk corruption in the guest.  We try to prevent this from "
26006 "happening, but it is not always possible."
26007 msgstr ""
26008
26009 # type: textblock
26010 #: ../fuse/guestmount.pod:206
26011 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../fuse/guestmount.pod:210
26016 msgid "Enable SELinux support for the guest."
26017 msgstr ""
26018
26019 # type: textblock
26020 #: ../fuse/guestmount.pod:214
26021 msgid "Enable verbose messages from underlying libguestfs."
26022 msgstr ""
26023
26024 # type: textblock
26025 #: ../fuse/guestmount.pod:218
26026 msgid "Display the program version and exit."
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../fuse/guestmount.pod:222
26031 msgid ""
26032 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26033 "FOR READ AND WRITE>."
26034 msgstr ""
26035
26036 # type: =item
26037 #: ../fuse/guestmount.pod:225
26038 msgid "B<-x> | B<--trace>"
26039 msgstr ""
26040
26041 # type: textblock
26042 #: ../fuse/guestmount.pod:227
26043 msgid "Trace libguestfs calls."
26044 msgstr ""
26045
26046 # type: textblock
26047 #: ../fuse/guestmount.pod:229
26048 msgid "This also stops the daemon from forking into the background."
26049 msgstr ""
26050
26051 # type: textblock
26052 #: ../fuse/guestmount.pod:235
26053 msgid ""
26054 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26055 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26056 "net/>."
26057 msgstr ""
26058
26059 # type: textblock
26060 #: ../inspector/virt-inspector.pl:35
26061 msgid ""
26062 "virt-inspector - Display operating system version and other information "
26063 "about a virtual machine"
26064 msgstr ""
26065
26066 # type: verbatim
26067 #: ../inspector/virt-inspector.pl:39
26068 #, no-wrap
26069 msgid ""
26070 " virt-inspector [--connect URI] domname\n"
26071 "\n"
26072 msgstr ""
26073
26074 # type: verbatim
26075 #: ../inspector/virt-inspector.pl:41
26076 #, no-wrap
26077 msgid ""
26078 " virt-inspector guest.img [guest.img ...]\n"
26079 "\n"
26080 msgstr ""
26081
26082 # type: textblock
26083 #: ../inspector/virt-inspector.pl:45
26084 msgid ""
26085 "B<virt-inspector> examines a virtual machine or disk image and tries to "
26086 "determine the version of the operating system and other information about "
26087 "the virtual machine."
26088 msgstr ""
26089
26090 # type: textblock
26091 #: ../inspector/virt-inspector.pl:49
26092 msgid "Virt-inspector produces XML output for feeding into other programs."
26093 msgstr ""
26094
26095 # type: textblock
26096 #: ../inspector/virt-inspector.pl:51
26097 msgid ""
26098 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
26099 "libvirt domain (see: C<virsh list --all>)."
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../inspector/virt-inspector.pl:54
26104 msgid ""
26105 "You can also run virt-inspector directly on disk images from a single "
26106 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
26107 "has several block devices, in which case you should list them one after "
26108 "another, with the first corresponding to the guest's C</dev/sda>, the second "
26109 "to the guest's C</dev/sdb> and so on."
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../inspector/virt-inspector.pl:60
26114 msgid ""
26115 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
26116 "inspect several virtual machines, you have to run virt-inspector several "
26117 "times (for example, from a shell script for-loop)."
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../inspector/virt-inspector.pl:65
26122 msgid ""
26123 "Because virt-inspector needs direct access to guest images, it won't "
26124 "normally work over remote libvirt connections."
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
26129 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
26130 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
26131 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
26132 #: ../tools/virt-list-partitions.pl:61
26133 msgid "Display brief help."
26134 msgstr ""
26135
26136 # type: =item
26137 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
26138 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
26139 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
26140 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
26141 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
26142 msgid "B<--version>"
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
26147 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
26148 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
26149 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
26150 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
26151 msgid "Display version number and exit."
26152 msgstr ""
26153
26154 # type: =item
26155 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
26156 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
26157 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
26158 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
26159 msgid "B<--connect URI> | B<-c URI>"
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
26164 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
26165 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
26166 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
26167 msgid ""
26168 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26169 "to the default libvirt hypervisor."
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../inspector/virt-inspector.pl:97
26174 msgid ""
26175 "Libvirt is only used if you specify a C<domname> on the command line.  If "
26176 "you specify guest block devices directly, then libvirt is not used at all."
26177 msgstr ""
26178
26179 # type: =item
26180 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
26181 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
26182 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
26183 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
26184 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
26185 msgid "B<--format> raw"
26186 msgstr ""
26187
26188 # type: textblock
26189 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
26190 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
26191 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
26192 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
26193 #: ../tools/virt-list-partitions.pl:89
26194 msgid ""
26195 "Specify the format of disk images given on the command line.  If this is "
26196 "omitted then the format is autodetected from the content of the disk image."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
26201 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
26202 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
26203 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
26204 #: ../tools/virt-list-partitions.pl:93
26205 msgid ""
26206 "If disk images are requested from libvirt, then this program asks libvirt "
26207 "for this information.  In this case, the value of the format parameter is "
26208 "ignored."
26209 msgstr ""
26210
26211 # type: textblock
26212 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
26213 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
26214 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
26215 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
26216 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
26217 #: ../tools/virt-list-partitions.pl:97
26218 msgid ""
26219 "If working with untrusted raw-format guest disk images, you should ensure "
26220 "the format is always specified."
26221 msgstr ""
26222
26223 # type: =head1
26224 #: ../inspector/virt-inspector.pl:149
26225 msgid "XML FORMAT"
26226 msgstr ""
26227
26228 # type: textblock
26229 #: ../inspector/virt-inspector.pl:151
26230 msgid ""
26231 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
26232 "supplied with libguestfs.  This section is just an overview."
26233 msgstr ""
26234
26235 # type: textblock
26236 #: ../inspector/virt-inspector.pl:154
26237 msgid ""
26238 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
26239 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
26240 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
26241 "which is vanishingly rare in real world VMs."
26242 msgstr ""
26243
26244 # type: =head2
26245 #: ../inspector/virt-inspector.pl:159
26246 msgid "E<lt>operatingsystemE<gt>"
26247 msgstr ""
26248
26249 # type: textblock
26250 #: ../inspector/virt-inspector.pl:161
26251 msgid ""
26252 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
26253 "describe the operating system, its architecture, the descriptive \"product "
26254 "name\" string, the type of OS and so on, as in this example:"
26255 msgstr ""
26256
26257 # type: verbatim
26258 #: ../inspector/virt-inspector.pl:165
26259 #, no-wrap
26260 msgid ""
26261 " <operatingsystems>\n"
26262 "   <operatingsystem>\n"
26263 "     <root>/dev/sda2</root>\n"
26264 "     <name>windows</name>\n"
26265 "     <arch>i386</arch>\n"
26266 "     <distro>windows</distro>\n"
26267 "     <product_name>Windows 7 Enterprise</product_name>\n"
26268 "     <major_version>6</major_version>\n"
26269 "     <minor_version>1</minor_version>\n"
26270 "     <windows_systemroot>/Windows</windows_systemroot>\n"
26271 "\n"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../inspector/virt-inspector.pl:176
26276 msgid ""
26277 "These fields are derived from the libguestfs inspection API, and you can "
26278 "find more details in L<guestfs(3)/INSPECTION>."
26279 msgstr ""
26280
26281 # type: textblock
26282 #: ../inspector/virt-inspector.pl:179
26283 msgid ""
26284 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
26285 "of view of libguestfs (block devices may have completely different names "
26286 "inside the VM itself)."
26287 msgstr ""
26288
26289 # type: =head2
26290 #: ../inspector/virt-inspector.pl:246
26291 msgid "E<lt>mountpointsE<gt>"
26292 msgstr ""
26293
26294 # type: textblock
26295 #: ../inspector/virt-inspector.pl:248
26296 msgid ""
26297 "Un*x-like guests typically have multiple filesystems which are mounted at "
26298 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
26299 "element which looks like this:"
26300 msgstr ""
26301
26302 # type: verbatim
26303 #: ../inspector/virt-inspector.pl:252
26304 #, no-wrap
26305 msgid ""
26306 " <operatingsystems>\n"
26307 "   <operatingsystem>\n"
26308 "     ...\n"
26309 "     <mountpoints>\n"
26310 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
26311 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
26312 "     </mountpoints>\n"
26313 "\n"
26314 msgstr ""
26315
26316 # type: textblock
26317 #: ../inspector/virt-inspector.pl:260
26318 msgid ""
26319 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
26320 "and may have completely different names inside the guest.  Only mountable "
26321 "filesystems appear in this list, not things like swap devices."
26322 msgstr ""
26323
26324 # type: =head2
26325 #: ../inspector/virt-inspector.pl:282
26326 msgid "E<lt>filesystemsE<gt>"
26327 msgstr ""
26328
26329 # type: textblock
26330 #: ../inspector/virt-inspector.pl:284
26331 msgid ""
26332 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
26333 "filesystems belonging to the guest, including swap and empty partitions.  "
26334 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
26335 "this OS or shared by this OS and other OSes)."
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../inspector/virt-inspector.pl:289
26340 msgid "You might see something like this:"
26341 msgstr ""
26342
26343 # type: verbatim
26344 #: ../inspector/virt-inspector.pl:291
26345 #, no-wrap
26346 msgid ""
26347 " <operatingsystems>\n"
26348 "   <operatingsystem>\n"
26349 "     ...\n"
26350 "     <filesystems>\n"
26351 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
26352 "         <type>ext4</type>\n"
26353 "         <label>Fedora-13-x86_64</label>\n"
26354 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
26355 "       </filesystem>\n"
26356 "\n"
26357 msgstr ""
26358
26359 # type: textblock
26360 #: ../inspector/virt-inspector.pl:301
26361 msgid ""
26362 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
26363 "the label, and the UUID."
26364 msgstr ""
26365
26366 # type: =head2
26367 #: ../inspector/virt-inspector.pl:343
26368 msgid "E<lt>applicationsE<gt>"
26369 msgstr ""
26370
26371 # type: textblock
26372 #: ../inspector/virt-inspector.pl:345
26373 msgid ""
26374 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
26375 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
26376 "machine.  At the moment we are only able to list RPMs and Debian packages "
26377 "installed, but in future we will support other Linux distros and Windows."
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../inspector/virt-inspector.pl:351
26382 msgid ""
26383 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
26384 "Typical values would be C<rpm> and C<deb>."
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../inspector/virt-inspector.pl:354
26389 msgid ""
26390 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
26391 "Typical values include C<yum>, C<up2date> and C<apt>"
26392 msgstr ""
26393
26394 # type: textblock
26395 #: ../inspector/virt-inspector.pl:357
26396 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
26397 msgstr ""
26398
26399 # type: verbatim
26400 #: ../inspector/virt-inspector.pl:360
26401 #, no-wrap
26402 msgid ""
26403 " <operatingsystems>\n"
26404 "   <operatingsystem>\n"
26405 "     ...\n"
26406 "     <applications>\n"
26407 "       <application>\n"
26408 "         <name>coreutils</name>\n"
26409 "         <version>8.5</version>\n"
26410 "         <release>1</release>\n"
26411 "       </application>\n"
26412 "\n"
26413 msgstr ""
26414
26415 # type: textblock
26416 #: ../inspector/virt-inspector.pl:370
26417 msgid ""
26418 "The version and release fields may not be available for some types guests.  "
26419 "Other fields are possible, see L<guestfs(3)/"
26420 "guestfs_inspect_list_applications>."
26421 msgstr ""
26422
26423 # type: =head1
26424 #: ../inspector/virt-inspector.pl:426
26425 msgid "USING XPATH"
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../inspector/virt-inspector.pl:428
26430 msgid ""
26431 "You can use the XPath query language, and/or the xpath tool, in order to "
26432 "select parts of the XML."
26433 msgstr ""
26434
26435 # type: verbatim
26436 #: ../inspector/virt-inspector.pl:433
26437 #, no-wrap
26438 msgid ""
26439 " $ virt-inspector Guest | xpath //filesystems\n"
26440 " Found 1 nodes:\n"
26441 " -- NODE --\n"
26442 " <filesystems>\n"
26443 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
26444 "        <type>ext4</type>\n"
26445 " [etc]\n"
26446 "\n"
26447 msgstr ""
26448
26449 # type: verbatim
26450 #: ../inspector/virt-inspector.pl:441
26451 #, no-wrap
26452 msgid ""
26453 " $ virt-inspector Guest | \\\n"
26454 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
26455 " Query didn't return a nodeset. Value: ext4\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: =head2
26460 #: ../inspector/virt-inspector.pl:445 ../tools/virt-edit.pl:343
26461 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
26462 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
26463 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
26464 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
26465 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
26466 msgid "SHELL QUOTING"
26467 msgstr ""
26468
26469 # type: textblock
26470 #: ../inspector/virt-inspector.pl:447 ../tools/virt-edit.pl:345
26471 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
26472 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
26473 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276
26474 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
26475 #: ../tools/virt-list-partitions.pl:249
26476 msgid ""
26477 "Libvirt guest names can contain arbitrary characters, some of which have "
26478 "meaning to the shell such as C<#> and space.  You may need to quote or "
26479 "escape these characters on the command line.  See the shell manual page L<sh"
26480 "(1)> for details."
26481 msgstr ""
26482
26483 # type: textblock
26484 #: ../inspector/virt-inspector.pl:454
26485 msgid ""
26486 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26487 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../inspector/virt-inspector.pl:468 ../tools/virt-edit.pl:364
26492 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
26493 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
26494 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294
26495 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
26496 #: ../tools/virt-list-partitions.pl:267
26497 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../inspector/virt-inspector.pl:472
26502 msgid "Matthew Booth L<mbooth@redhat.com>"
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../inspector/virt-inspector.pl:478 ../tools/virt-win-reg.pl:516
26507 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
26508 msgid "Copyright (C) 2010 Red Hat Inc."
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-edit.pl:34
26513 msgid "virt-edit - Edit a file in a virtual machine"
26514 msgstr ""
26515
26516 # type: verbatim
26517 #: ../tools/virt-edit.pl:38
26518 #, no-wrap
26519 msgid ""
26520 " virt-edit [--options] domname file\n"
26521 "\n"
26522 msgstr ""
26523
26524 # type: verbatim
26525 #: ../tools/virt-edit.pl:40
26526 #, no-wrap
26527 msgid ""
26528 " virt-edit [--options] disk.img [disk.img ...] file\n"
26529 "\n"
26530 msgstr ""
26531
26532 # type: verbatim
26533 #: ../tools/virt-edit.pl:42
26534 #, no-wrap
26535 msgid ""
26536 " virt-edit [domname|disk.img] file -e 'expr'\n"
26537 "\n"
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-edit.pl:46
26542 msgid ""
26543 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26544 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26545 "doing this, but doesn't catch all cases."
26546 msgstr ""
26547
26548 # type: textblock
26549 #: ../tools/virt-edit.pl:52
26550 msgid ""
26551 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26552 "the named virtual machine (or disk image)."
26553 msgstr ""
26554
26555 # type: textblock
26556 #: ../tools/virt-edit.pl:55
26557 msgid ""
26558 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26559 "you should look at the L<guestfish(1)> tool."
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-edit.pl:60
26564 msgid "Edit the named files interactively:"
26565 msgstr ""
26566
26567 # type: verbatim
26568 #: ../tools/virt-edit.pl:62
26569 #, no-wrap
26570 msgid ""
26571 " virt-edit mydomain /boot/grub/grub.conf\n"
26572 "\n"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #: ../tools/virt-edit.pl:64
26577 #, no-wrap
26578 msgid ""
26579 " virt-edit mydomain /etc/passwd\n"
26580 "\n"
26581 msgstr ""
26582
26583 # type: textblock
26584 #: ../tools/virt-edit.pl:66
26585 msgid ""
26586 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26587 "below).  To change the init default level to 5:"
26588 msgstr ""
26589
26590 # type: verbatim
26591 #: ../tools/virt-edit.pl:70
26592 #, no-wrap
26593 msgid ""
26594 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26595 "\n"
26596 msgstr ""
26597
26598 # type: =item
26599 #: ../tools/virt-edit.pl:96
26600 msgid "B<--backup extension> | B<-b extension>"
26601 msgstr ""
26602
26603 # type: textblock
26604 #: ../tools/virt-edit.pl:98
26605 msgid ""
26606 "Create a backup of the original file I<in the guest disk image>.  The backup "
26607 "has the original filename with C<extension> added."
26608 msgstr ""
26609
26610 # type: textblock
26611 #: ../tools/virt-edit.pl:101
26612 msgid ""
26613 "Usually the first character of C<extension> would be a dot C<.> so you would "
26614 "write:"
26615 msgstr ""
26616
26617 # type: verbatim
26618 #: ../tools/virt-edit.pl:104
26619 #, no-wrap
26620 msgid ""
26621 " virt-edit -b .orig [etc]\n"
26622 "\n"
26623 msgstr ""
26624
26625 # type: textblock
26626 #: ../tools/virt-edit.pl:106
26627 msgid "By default, no backup file is made."
26628 msgstr ""
26629
26630 # type: textblock
26631 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26632 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
26633 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
26634 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
26635 msgid ""
26636 "If you specify guest block devices directly, then libvirt is not used at all."
26637 msgstr ""
26638
26639 # type: =item
26640 #: ../tools/virt-edit.pl:141
26641 msgid "B<--expr EXPR> | B<-e EXPR>"
26642 msgstr ""
26643
26644 # type: textblock
26645 #: ../tools/virt-edit.pl:143
26646 msgid ""
26647 "Instead of launching the external editor, non-interactively apply the Perl "
26648 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26649 "EDITING> below."
26650 msgstr ""
26651
26652 # type: textblock
26653 #: ../tools/virt-edit.pl:147
26654 msgid ""
26655 "Be careful to properly quote the expression to prevent it from being altered "
26656 "by the shell."
26657 msgstr ""
26658
26659 # type: =head1
26660 #: ../tools/virt-edit.pl:268
26661 msgid "NON-INTERACTIVE EDITING"
26662 msgstr ""
26663
26664 # type: textblock
26665 #: ../tools/virt-edit.pl:270
26666 msgid ""
26667 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26668 "administrator can interactively edit the file."
26669 msgstr ""
26670
26671 # type: textblock
26672 #: ../tools/virt-edit.pl:273
26673 msgid ""
26674 "There are two ways also to use C<virt-edit> from scripts in order to make "
26675 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26676 "like this, it's less error-prone to write scripts directly using the "
26677 "libguestfs API and Augeas for configuration file editing.)"
26678 msgstr ""
26679
26680 # type: textblock
26681 #: ../tools/virt-edit.pl:279
26682 msgid ""
26683 "The first method is to temporarily set C<$EDITOR> to any script or program "
26684 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26685 "update C<tmpfile> in place however it likes."
26686 msgstr ""
26687
26688 # type: textblock
26689 #: ../tools/virt-edit.pl:283
26690 msgid ""
26691 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26692 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26693 "instances of C<foo> with C<bar> in a file:"
26694 msgstr ""
26695
26696 # type: verbatim
26697 #: ../tools/virt-edit.pl:287
26698 #, no-wrap
26699 msgid ""
26700 " virt-edit domname filename -e 's/foo/bar/'\n"
26701 "\n"
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-edit.pl:289
26706 msgid ""
26707 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26708 "For example to delete root's password you could do:"
26709 msgstr ""
26710
26711 # type: verbatim
26712 #: ../tools/virt-edit.pl:292
26713 #, no-wrap
26714 msgid ""
26715 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26716 "\n"
26717 msgstr ""
26718
26719 # type: textblock
26720 #: ../tools/virt-edit.pl:294
26721 msgid ""
26722 "What really happens is that the snippet is evaluated as a Perl expression "
26723 "for each line of the file.  The line, including the final C<\\n>, is passed "
26724 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-edit.pl:299
26729 msgid ""
26730 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26731 "C<apache> user account from the password file you can do:"
26732 msgstr ""
26733
26734 # type: verbatim
26735 #: ../tools/virt-edit.pl:302
26736 #, no-wrap
26737 msgid ""
26738 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26739 "\n"
26740 msgstr ""
26741
26742 # type: textblock
26743 #: ../tools/virt-edit.pl:304
26744 msgid ""
26745 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26746 "the end of the file is rather difficult this way since there is no concept "
26747 "of \"last line of the file\" - your expression just doesn't get called "
26748 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26749 "want to do this."
26750 msgstr ""
26751
26752 # type: textblock
26753 #: ../tools/virt-edit.pl:310
26754 msgid ""
26755 "The variable C<$lineno> contains the current line number.  As is "
26756 "traditional, the first line in the file is number C<1>."
26757 msgstr ""
26758
26759 # type: textblock
26760 #: ../tools/virt-edit.pl:313
26761 msgid ""
26762 "The return value from the expression is ignored, but the expression may call "
26763 "C<die> in order to abort the whole program, leaving the original file "
26764 "untouched."
26765 msgstr ""
26766
26767 # type: textblock
26768 #: ../tools/virt-edit.pl:317
26769 msgid ""
26770 "Remember when matching the end of a line that C<$_> may contain the final C<"
26771 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26772 "newline then neither of these.  Thus to match or substitute some text at the "
26773 "end of a line, use this regular expression:"
26774 msgstr ""
26775
26776 # type: verbatim
26777 #: ../tools/virt-edit.pl:322
26778 #, no-wrap
26779 msgid ""
26780 " /some text(\\r?\\n)?$/\n"
26781 "\n"
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-edit.pl:324
26786 msgid ""
26787 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26788 "$_> itself (since that would remove all newlines from the file):"
26789 msgstr ""
26790
26791 # type: verbatim
26792 #: ../tools/virt-edit.pl:328
26793 #, no-wrap
26794 msgid ""
26795 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26796 "\n"
26797 msgstr ""
26798
26799 # type: =item
26800 #: ../tools/virt-edit.pl:334
26801 msgid "C<EDITOR>"
26802 msgstr ""
26803
26804 # type: textblock
26805 #: ../tools/virt-edit.pl:336
26806 msgid ""
26807 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26808 "\"emacs -nw\">"
26809 msgstr ""
26810
26811 # type: textblock
26812 #: ../tools/virt-edit.pl:339
26813 msgid "If not set, C<vi> is used."
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-edit.pl:352
26818 msgid ""
26819 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26820 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26821 "L<perlre(1)>."
26822 msgstr ""
26823
26824 # type: =head1
26825 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26826 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26827 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26828 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26829 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26830 msgid "AUTHOR"
26831 msgstr ""
26832
26833 # type: textblock
26834 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26835 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26836 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26837 msgstr ""
26838
26839 # type: textblock
26840 #: ../tools/virt-win-reg.pl:37
26841 msgid ""
26842 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26843 msgstr ""
26844
26845 # type: verbatim
26846 #: ../tools/virt-win-reg.pl:41
26847 #, no-wrap
26848 msgid ""
26849 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26850 "\n"
26851 msgstr ""
26852
26853 # type: verbatim
26854 #: ../tools/virt-win-reg.pl:43
26855 #, no-wrap
26856 msgid ""
26857 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26858 "\n"
26859 msgstr ""
26860
26861 # type: verbatim
26862 #: ../tools/virt-win-reg.pl:45
26863 #, no-wrap
26864 msgid ""
26865 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26866 "\n"
26867 msgstr ""
26868
26869 # type: verbatim
26870 #: ../tools/virt-win-reg.pl:47
26871 #, no-wrap
26872 msgid ""
26873 " virt-win-reg --merge domname [input.reg ...]\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: verbatim
26878 #: ../tools/virt-win-reg.pl:49
26879 #, no-wrap
26880 msgid ""
26881 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26882 "\n"
26883 msgstr ""
26884
26885 # type: textblock
26886 #: ../tools/virt-win-reg.pl:53
26887 msgid ""
26888 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26889 "virtual machines.  If you do this, you I<will> get irreversible disk "
26890 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26891 "but doesn't catch all cases."
26892 msgstr ""
26893
26894 # type: textblock
26895 #: ../tools/virt-win-reg.pl:58
26896 msgid ""
26897 "Modifying the Windows Registry is an inherently risky operation.  The format "
26898 "is deliberately obscure and undocumented, and Registry changes can leave the "
26899 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26900 "you have a reliable backup first."
26901 msgstr ""
26902
26903 # type: textblock
26904 #: ../tools/virt-win-reg.pl:65
26905 msgid ""
26906 "This program can export and merge Windows Registry entries from a Windows "
26907 "guest."
26908 msgstr ""
26909
26910 # type: textblock
26911 #: ../tools/virt-win-reg.pl:68
26912 msgid ""
26913 "The first parameter is the libvirt guest name or the raw disk image of a "
26914 "Windows guest."
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-win-reg.pl:71
26919 msgid ""
26920 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26921 "exported (recursively).  For example:"
26922 msgstr ""
26923
26924 # type: verbatim
26925 #: ../tools/virt-win-reg.pl:74
26926 #, no-wrap
26927 msgid ""
26928 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26929 "\n"
26930 msgstr ""
26931
26932 # type: textblock
26933 #: ../tools/virt-win-reg.pl:76
26934 msgid ""
26935 "You can also display single values from within registry keys, for example:"
26936 msgstr ""
26937
26938 # type: verbatim
26939 #: ../tools/virt-win-reg.pl:79
26940 #, no-wrap
26941 msgid ""
26942 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26943 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26944 " Windows 7 Enterprise\n"
26945 "\n"
26946 msgstr ""
26947
26948 # type: textblock
26949 #: ../tools/virt-win-reg.pl:83
26950 msgid ""
26951 "With C<--merge>, you can merge a textual regedit file into the Windows "
26952 "Registry:"
26953 msgstr ""
26954
26955 # type: verbatim
26956 #: ../tools/virt-win-reg.pl:86
26957 #, no-wrap
26958 msgid ""
26959 " $ virt-win-reg --merge Windows7 changes.reg\n"
26960 "\n"
26961 msgstr ""
26962
26963 # type: =head2
26964 #: ../tools/virt-win-reg.pl:88
26965 msgid "SUPPORTED SYSTEMS"
26966 msgstr ""
26967
26968 # type: textblock
26969 #: ../tools/virt-win-reg.pl:90
26970 msgid ""
26971 "The program currently supports Windows NT-derived guests starting with "
26972 "Windows XP through to at least Windows 7."
26973 msgstr ""
26974
26975 # type: textblock
26976 #: ../tools/virt-win-reg.pl:93
26977 msgid ""
26978 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26979 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26980 "and C<HKEY_USERS\\.DEFAULT>."
26981 msgstr ""
26982
26983 # type: textblock
26984 #: ../tools/virt-win-reg.pl:97
26985 msgid ""
26986 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26987 "C<HKEY_USERS>."
26988 msgstr ""
26989
26990 # type: textblock
26991 #: ../tools/virt-win-reg.pl:100
26992 msgid ""
26993 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26994 "time."
26995 msgstr ""
26996
26997 # type: =head2
26998 #: ../tools/virt-win-reg.pl:103
26999 msgid "NOTE"
27000 msgstr ""
27001
27002 # type: textblock
27003 #: ../tools/virt-win-reg.pl:105
27004 msgid ""
27005 "This program is only meant for simple access to the registry.  If you want "
27006 "to do complicated things with the registry, we suggest you download the "
27007 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
27008 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
27009 "L<hivexregedit(1)>."
27010 msgstr ""
27011
27012 # type: =head2
27013 #: ../tools/virt-win-reg.pl:111
27014 msgid "ENCODING"
27015 msgstr ""
27016
27017 # type: textblock
27018 #: ../tools/virt-win-reg.pl:113
27019 msgid ""
27020 "C<virt-win-reg> expects that regedit files have already been reencoded in "
27021 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
27022 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
27023 "Windows-style line endings, you may need to reencode the whole file before "
27024 "or after processing."
27025 msgstr ""
27026
27027 # type: textblock
27028 #: ../tools/virt-win-reg.pl:119
27029 msgid ""
27030 "To reencode a file from Windows format to Linux (before processing it with "
27031 "the C<--merge> option), you would do something like this:"
27032 msgstr ""
27033
27034 # type: verbatim
27035 #: ../tools/virt-win-reg.pl:122
27036 #, no-wrap
27037 msgid ""
27038 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
27039 "\n"
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-win-reg.pl:124
27044 msgid ""
27045 "To go in the opposite direction, after exporting and before sending the file "
27046 "to a Windows user, do something like this:"
27047 msgstr ""
27048
27049 # type: verbatim
27050 #: ../tools/virt-win-reg.pl:127
27051 #, no-wrap
27052 msgid ""
27053 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
27054 "\n"
27055 msgstr ""
27056
27057 # type: textblock
27058 #: ../tools/virt-win-reg.pl:129
27059 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27060 msgstr ""
27061
27062 # type: textblock
27063 #: ../tools/virt-win-reg.pl:131
27064 msgid ""
27065 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27066 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
27067 "style (CRLF) line endings, like this:"
27068 msgstr ""
27069
27070 # type: verbatim
27071 #: ../tools/virt-win-reg.pl:135
27072 #, no-wrap
27073 msgid ""
27074 " $ file software.reg\n"
27075 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27076 " with CRLF line terminators\n"
27077 "\n"
27078 msgstr ""
27079
27080 # type: textblock
27081 #: ../tools/virt-win-reg.pl:139
27082 msgid "This file would need conversion before you could C<--merge> it."
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-win-reg.pl:143
27087 msgid ""
27088 "Be careful when passing parameters containing C<\\> (backslash) in the "
27089 "shell.  Usually you will have to use 'single quotes' or double backslashes "
27090 "(but not both) to protect them from the shell."
27091 msgstr ""
27092
27093 # type: textblock
27094 #: ../tools/virt-win-reg.pl:147
27095 msgid "Paths and value names are case-insensitive."
27096 msgstr ""
27097
27098 # type: =head2
27099 #: ../tools/virt-win-reg.pl:149
27100 msgid "CurrentControlSet etc."
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-win-reg.pl:151
27105 msgid ""
27106 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27107 "Registry at the level of the hive file, and therefore you cannot modify "
27108 "these."
27109 msgstr ""
27110
27111 # type: textblock
27112 #: ../tools/virt-win-reg.pl:155
27113 msgid ""
27114 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27115 "circumstances it might refer to another control set.  The way to find out is "
27116 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27117 msgstr ""
27118
27119 # type: verbatim
27120 #: ../tools/virt-win-reg.pl:159
27121 #, no-wrap
27122 msgid ""
27123 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27124 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27125 " \"Current\"=dword:00000001\n"
27126 " \"Default\"=dword:00000001\n"
27127 " \"Failed\"=dword:00000000\n"
27128 " \"LastKnownGood\"=dword:00000002\n"
27129 "\n"
27130 msgstr ""
27131
27132 # type: textblock
27133 #: ../tools/virt-win-reg.pl:166
27134 msgid "\"Current\" is the one which Windows will choose when it boots."
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-win-reg.pl:168
27139 msgid ""
27140 "Similarly, other C<Current...> keys in the path may need to be replaced."
27141 msgstr ""
27142
27143 # type: =item
27144 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
27145 msgid "B<--debug>"
27146 msgstr ""
27147
27148 # type: textblock
27149 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
27150 msgid "Enable debugging messages."
27151 msgstr ""
27152
27153 # type: =item
27154 #: ../tools/virt-win-reg.pl:232
27155 msgid "B<--merge>"
27156 msgstr ""
27157
27158 # type: textblock
27159 #: ../tools/virt-win-reg.pl:234
27160 msgid ""
27161 "In merge mode, this merges a textual regedit file into the Windows Registry "
27162 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
27163 "displays or exports Registry entries instead."
27164 msgstr ""
27165
27166 # type: textblock
27167 #: ../tools/virt-win-reg.pl:238
27168 msgid ""
27169 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
27170 "result in disk corruption.  However exporting (without this flag)  is always "
27171 "safe."
27172 msgstr ""
27173
27174 # type: =item
27175 #: ../tools/virt-win-reg.pl:246
27176 msgid "B<--encoding> UTF-16LE|ASCII"
27177 msgstr ""
27178
27179 # type: textblock
27180 #: ../tools/virt-win-reg.pl:248
27181 msgid ""
27182 "When merging (only), you may need to specify the encoding for strings to be "
27183 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
27184 "(3)/ENCODING STRINGS>."
27185 msgstr ""
27186
27187 # type: textblock
27188 #: ../tools/virt-win-reg.pl:252
27189 msgid ""
27190 "The default is to use UTF-16LE, which should work with recent versions of "
27191 "Windows."
27192 msgstr ""
27193
27194 # type: textblock
27195 #: ../tools/virt-win-reg.pl:486
27196 msgid ""
27197 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
27198 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
27199 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27200 msgstr ""
27201
27202 # type: textblock
27203 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
27204 msgid ""
27205 "When reporting bugs, please enable debugging and capture the I<complete> "
27206 "output:"
27207 msgstr ""
27208
27209 # type: verbatim
27210 #: ../tools/virt-win-reg.pl:504
27211 #, no-wrap
27212 msgid ""
27213 " export LIBGUESTFS_DEBUG=1\n"
27214 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27215 "\n"
27216 msgstr ""
27217
27218 # type: textblock
27219 #: ../tools/virt-win-reg.pl:507
27220 msgid ""
27221 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
27222 "redhat.com/>"
27223 msgstr ""
27224
27225 # type: textblock
27226 #: ../tools/virt-df.pl:36
27227 msgid "virt-df - Display free space on virtual filesystems"
27228 msgstr ""
27229
27230 # type: verbatim
27231 #: ../tools/virt-df.pl:40
27232 #, no-wrap
27233 msgid ""
27234 " virt-df [--options]\n"
27235 "\n"
27236 msgstr ""
27237
27238 # type: verbatim
27239 #: ../tools/virt-df.pl:42
27240 #, no-wrap
27241 msgid ""
27242 " virt-df [--options] domname\n"
27243 "\n"
27244 msgstr ""
27245
27246 # type: verbatim
27247 #: ../tools/virt-df.pl:44
27248 #, no-wrap
27249 msgid ""
27250 " virt-df [--options] disk.img [disk.img ...]\n"
27251 "\n"
27252 msgstr ""
27253
27254 # type: textblock
27255 #: ../tools/virt-df.pl:48
27256 msgid ""
27257 "C<virt-df> is a command line tool to display free space on virtual machine "
27258 "filesystems.  Unlike other tools, it doesn't just display the amount of "
27259 "space allocated to a virtual machine, but can look inside the virtual "
27260 "machine to see how much space is really being used."
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-df.pl:53
27265 msgid ""
27266 "It is like the L<df(1)> command, but for virtual machines, except that it "
27267 "also works for Windows virtual machines."
27268 msgstr ""
27269
27270 # type: textblock
27271 #: ../tools/virt-df.pl:56
27272 msgid ""
27273 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
27274 "of all active and inactive guests, and performs a C<df>-type operation on "
27275 "each one in turn, printing out the results."
27276 msgstr ""
27277
27278 # type: textblock
27279 #: ../tools/virt-df.pl:60
27280 msgid ""
27281 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
27282 "either the single named libvirt domain, or on the disk image(s) listed on "
27283 "the command line (which must all belong to a single VM).  In this mode (with "
27284 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
27285 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
27286 msgstr ""
27287
27288 # type: textblock
27289 #: ../tools/virt-df.pl:67
27290 msgid ""
27291 "Use the C<--csv> option to get a format which can be easily parsed by other "
27292 "programs.  Other options are mostly similar to standard C<df> options.  See "
27293 "below for the complete list."
27294 msgstr ""
27295
27296 # type: =item
27297 #: ../tools/virt-df.pl:107
27298 msgid "B<--csv>"
27299 msgstr ""
27300
27301 # type: textblock
27302 #: ../tools/virt-df.pl:109
27303 msgid ""
27304 "Write out the results in CSV format (comma-separated values).  This format "
27305 "can be imported easily into databases and spreadsheets, but read L</NOTE "
27306 "ABOUT CSV FORMAT> below."
27307 msgstr ""
27308
27309 # type: =item
27310 #: ../tools/virt-df.pl:134
27311 msgid "B<--human-readable> | B<-h>"
27312 msgstr ""
27313
27314 # type: textblock
27315 #: ../tools/virt-df.pl:136
27316 msgid "Print sizes in human-readable format."
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-df.pl:138
27321 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
27322 msgstr ""
27323
27324 # type: =item
27325 #: ../tools/virt-df.pl:144
27326 msgid "B<--inodes> | B<-i>"
27327 msgstr ""
27328
27329 # type: textblock
27330 #: ../tools/virt-df.pl:146
27331 msgid "Print inodes instead of blocks."
27332 msgstr ""
27333
27334 # type: =item
27335 #: ../tools/virt-df.pl:152
27336 msgid "B<--one-per-guest>"
27337 msgstr ""
27338
27339 # type: textblock
27340 #: ../tools/virt-df.pl:154
27341 msgid ""
27342 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
27343 "disks from several guests to a single libguestfs appliance."
27344 msgstr ""
27345
27346 # type: textblock
27347 #: ../tools/virt-df.pl:157
27348 msgid "You might use this option in the following circumstances:"
27349 msgstr ""
27350
27351 # type: textblock
27352 #: ../tools/virt-df.pl:163
27353 msgid ""
27354 "If you think an untrusted guest might actively try to exploit the libguestfs "
27355 "appliance kernel, then this prevents one guest from interfering with the "
27356 "stats printed for another guest."
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-df.pl:169
27361 msgid ""
27362 "If the kernel has a bug which stops it from accessing a filesystem in one "
27363 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27364 "and report stats for further guests."
27365 msgstr ""
27366
27367 # type: =item
27368 #: ../tools/virt-df.pl:180
27369 msgid "B<--uuid>"
27370 msgstr ""
27371
27372 # type: textblock
27373 #: ../tools/virt-df.pl:182
27374 msgid ""
27375 "Print UUIDs instead of names.  This is useful for following a guest even "
27376 "when the guest is migrated or renamed, or when two guests happen to have the "
27377 "same name."
27378 msgstr ""
27379
27380 # type: textblock
27381 #: ../tools/virt-df.pl:186
27382 msgid ""
27383 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27384 "images, we still print the disk image name even when this option is "
27385 "specified."
27386 msgstr ""
27387
27388 # type: =head1
27389 #: ../tools/virt-df.pl:609
27390 msgid "NOTE ABOUT CSV FORMAT"
27391 msgstr ""
27392
27393 # type: textblock
27394 #: ../tools/virt-df.pl:611
27395 msgid ""
27396 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27397 "should be easy to parse, but it is definitely not easy to parse."
27398 msgstr ""
27399
27400 # type: textblock
27401 #: ../tools/virt-df.pl:614
27402 msgid ""
27403 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27404 "reliably.  This example has two columns:"
27405 msgstr ""
27406
27407 # type: verbatim
27408 #: ../tools/virt-df.pl:617
27409 #, no-wrap
27410 msgid ""
27411 " \"foo,bar\",baz\n"
27412 "\n"
27413 msgstr ""
27414
27415 # type: textblock
27416 #: ../tools/virt-df.pl:619
27417 msgid ""
27418 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27419 "reliably.  This example has one row:"
27420 msgstr ""
27421
27422 # type: verbatim
27423 #: ../tools/virt-df.pl:622
27424 #, no-wrap
27425 msgid ""
27426 " \"foo\n"
27427 " bar\",baz\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-df.pl:625
27433 msgid ""
27434 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27435 "packaged in major Linux distributions)."
27436 msgstr ""
27437
27438 # type: textblock
27439 #: ../tools/virt-df.pl:628
27440 msgid ""
27441 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27442 "or Python's built-in csv library)."
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-df.pl:631
27447 msgid "Most spreadsheets and databases can import CSV directly."
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-df.pl:642
27452 msgid ""
27453 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27454 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27455 msgstr ""
27456
27457 # type: textblock
27458 #: ../tools/virt-ls.pl:34
27459 msgid "virt-ls - List files in a virtual machine"
27460 msgstr ""
27461
27462 # type: verbatim
27463 #: ../tools/virt-ls.pl:38
27464 #, no-wrap
27465 msgid ""
27466 " virt-ls [--options] domname directory\n"
27467 "\n"
27468 msgstr ""
27469
27470 # type: verbatim
27471 #: ../tools/virt-ls.pl:40
27472 #, no-wrap
27473 msgid ""
27474 " virt-ls [--options] disk.img [disk.img ...] directory\n"
27475 "\n"
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-ls.pl:44
27480 msgid ""
27481 "C<virt-ls> is a command line tool to list the names of files in a directory "
27482 "inside a virtual machine or disk image."
27483 msgstr ""
27484
27485 # type: textblock
27486 #: ../tools/virt-ls.pl:47
27487 msgid ""
27488 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
27489 "For more complex cases you should look at the L<guestfish(1)> tool."
27490 msgstr ""
27491
27492 # type: textblock
27493 #: ../tools/virt-ls.pl:51
27494 msgid ""
27495 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
27496 "simple listing is like the ordinary L<ls(1)> command:"
27497 msgstr ""
27498
27499 # type: verbatim
27500 #: ../tools/virt-ls.pl:54
27501 #, no-wrap
27502 msgid ""
27503 " $ virt-ls myguest /\n"
27504 " bin\n"
27505 " boot\n"
27506 " [etc.]\n"
27507 "\n"
27508 msgstr ""
27509
27510 # type: textblock
27511 #: ../tools/virt-ls.pl:59
27512 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
27513 msgstr ""
27514
27515 # type: verbatim
27516 #: ../tools/virt-ls.pl:61
27517 #, no-wrap
27518 msgid ""
27519 " $ virt-ls -l myguest /\n"
27520 " total 204\n"
27521 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
27522 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
27523 " [etc.]\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: textblock
27528 #: ../tools/virt-ls.pl:67
27529 msgid ""
27530 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
27531 "and directories recursively:"
27532 msgstr ""
27533
27534 # type: verbatim
27535 #: ../tools/virt-ls.pl:70
27536 #, no-wrap
27537 msgid ""
27538 " $ virt-ls -R myguest /tmp\n"
27539 " foo\n"
27540 " foo/bar\n"
27541 " [etc.]\n"
27542 "\n"
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-ls.pl:75
27547 msgid ""
27548 "You I<cannot> combine these options.  To do more complicated things, use "
27549 "L<guestfish(1)>."
27550 msgstr ""
27551
27552 # type: =item
27553 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
27554 #: ../tools/virt-list-partitions.pl:112
27555 msgid "B<-l> | B<--long>"
27556 msgstr ""
27557
27558 # type: =item
27559 #: ../tools/virt-ls.pl:133
27560 msgid "B<-R> | B<--recursive>"
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-ls.pl:135
27565 msgid ""
27566 "Select the mode.  With neither of these options, C<virt-ls> produces a "
27567 "simple, flat list of the files in the named directory."
27568 msgstr ""
27569
27570 # type: textblock
27571 #: ../tools/virt-ls.pl:138
27572 msgid ""
27573 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
27574 "like the plain C<ls -l> command)."
27575 msgstr ""
27576
27577 # type: textblock
27578 #: ../tools/virt-ls.pl:141
27579 msgid ""
27580 "C<virt-ls -R> produces a recursive list of files starting at the named "
27581 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
27582 "details."
27583 msgstr ""
27584
27585 # type: textblock
27586 #: ../tools/virt-ls.pl:145
27587 msgid "You cannot combine these options."
27588 msgstr ""
27589
27590 # type: textblock
27591 #: ../tools/virt-ls.pl:234
27592 msgid ""
27593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
27594 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27595 "org/>."
27596 msgstr ""
27597
27598 # type: textblock
27599 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
27600 #: ../tools/virt-tar.pl:298
27601 msgid "Copyright (C) 2009 Red Hat Inc."
27602 msgstr ""
27603
27604 # type: textblock
27605 #: ../tools/virt-resize.pl:42
27606 msgid "virt-resize - Resize a virtual machine disk"
27607 msgstr ""
27608
27609 # type: verbatim
27610 #: ../tools/virt-resize.pl:46
27611 #, no-wrap
27612 msgid ""
27613 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27614 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27615 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27616 "\n"
27617 msgstr ""
27618
27619 # type: textblock
27620 #: ../tools/virt-resize.pl:52
27621 msgid ""
27622 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27623 "larger or smaller overall, and resizing or deleting any partitions contained "
27624 "within."
27625 msgstr ""
27626
27627 # type: textblock
27628 #: ../tools/virt-resize.pl:56
27629 msgid ""
27630 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27631 "not> be used on live virtual machines - for consistent results, shut the "
27632 "virtual machine down before resizing it."
27633 msgstr ""
27634
27635 # type: textblock
27636 #: ../tools/virt-resize.pl:60
27637 msgid ""
27638 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
27639 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
27640 "read those manual pages first."
27641 msgstr ""
27642
27643 # type: textblock
27644 #: ../tools/virt-resize.pl:68
27645 msgid ""
27646 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27647 "fill the extra 5GB of space."
27648 msgstr ""
27649
27650 # type: verbatim
27651 #: ../tools/virt-resize.pl:71
27652 #, no-wrap
27653 msgid ""
27654 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27655 " virt-list-partitions -lht olddisk\n"
27656 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27657 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27658 "\n"
27659 msgstr ""
27660
27661 # type: textblock
27662 #: ../tools/virt-resize.pl:76
27663 msgid ""
27664 "As above, but make the /boot partition 200MB bigger, while giving the "
27665 "remaining space to /dev/sda2:"
27666 msgstr ""
27667
27668 # type: verbatim
27669 #: ../tools/virt-resize.pl:79
27670 #, no-wrap
27671 msgid ""
27672 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27673 "\n"
27674 msgstr ""
27675
27676 # type: textblock
27677 #: ../tools/virt-resize.pl:81
27678 msgid "As above, but the output format will be uncompressed qcow2:"
27679 msgstr ""
27680
27681 # type: verbatim
27682 #: ../tools/virt-resize.pl:83
27683 #, no-wrap
27684 msgid ""
27685 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27686 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27687 "\n"
27688 msgstr ""
27689
27690 # type: =head1
27691 #: ../tools/virt-resize.pl:86
27692 msgid "DETAILED USAGE"
27693 msgstr ""
27694
27695 # type: =head2
27696 #: ../tools/virt-resize.pl:88
27697 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27698 msgstr ""
27699
27700 # type: =item
27701 #: ../tools/virt-resize.pl:92
27702 msgid "1. Shut down the virtual machine"
27703 msgstr ""
27704
27705 # type: =item
27706 #: ../tools/virt-resize.pl:94
27707 msgid "2. Locate input disk image"
27708 msgstr ""
27709
27710 # type: textblock
27711 #: ../tools/virt-resize.pl:96
27712 msgid ""
27713 "Locate the input disk image (ie. the file or device on the host containing "
27714 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27715 "dumpxml> like this to find the disk image name:"
27716 msgstr ""
27717
27718 # type: verbatim
27719 #: ../tools/virt-resize.pl:100
27720 #, no-wrap
27721 msgid ""
27722 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27723 " Found 1 nodes:\n"
27724 " -- NODE --\n"
27725 " <source dev=\"/dev/vg/lv_guest\" />\n"
27726 "\n"
27727 msgstr ""
27728
27729 # type: =item
27730 #: ../tools/virt-resize.pl:105
27731 msgid "3. Look at current sizing"
27732 msgstr ""
27733
27734 # type: textblock
27735 #: ../tools/virt-resize.pl:107
27736 msgid ""
27737 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27738 msgstr ""
27739
27740 # type: verbatim
27741 #: ../tools/virt-resize.pl:110
27742 #, no-wrap
27743 msgid ""
27744 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27745 " /dev/sda1 ext3 101.9M\n"
27746 " /dev/sda2 pv 7.9G\n"
27747 " /dev/sda device 8.0G\n"
27748 "\n"
27749 msgstr ""
27750
27751 # type: textblock
27752 #: ../tools/virt-resize.pl:115
27753 msgid ""
27754 "(This example is a virtual machine with an 8 GB disk which we would like to "
27755 "expand up to 10 GB)."
27756 msgstr ""
27757
27758 # type: =item
27759 #: ../tools/virt-resize.pl:118
27760 msgid "4. Create output disk"
27761 msgstr ""
27762
27763 # type: textblock
27764 #: ../tools/virt-resize.pl:120
27765 msgid ""
27766 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27767 "to store the resized output disk."
27768 msgstr ""
27769
27770 # type: textblock
27771 #: ../tools/virt-resize.pl:123
27772 msgid ""
27773 "To store the resized disk image in a file, create a file of a suitable size:"
27774 msgstr ""
27775
27776 # type: verbatim
27777 #: ../tools/virt-resize.pl:126
27778 #, no-wrap
27779 msgid ""
27780 " # rm -f outdisk\n"
27781 " # truncate -s 10G outdisk\n"
27782 "\n"
27783 msgstr ""
27784
27785 # type: textblock
27786 #: ../tools/virt-resize.pl:129
27787 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27788 msgstr ""
27789
27790 # type: verbatim
27791 #: ../tools/virt-resize.pl:131
27792 #, no-wrap
27793 msgid ""
27794 " # lvcreate -L 10G -n lv_name vg_name\n"
27795 "\n"
27796 msgstr ""
27797
27798 # type: textblock
27799 #: ../tools/virt-resize.pl:133
27800 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27801 msgstr ""
27802
27803 # type: verbatim
27804 #: ../tools/virt-resize.pl:135
27805 #, no-wrap
27806 msgid ""
27807 " # virsh pool-list\n"
27808 " # virsh vol-create-as poolname newvol 10G\n"
27809 "\n"
27810 msgstr ""
27811
27812 # type: =item
27813 #: ../tools/virt-resize.pl:138
27814 msgid "5. Resize"
27815 msgstr ""
27816
27817 # type: textblock
27818 #: ../tools/virt-resize.pl:140
27819 msgid ""
27820 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27821 "file) and the output disk.  The output disk is the one created in the "
27822 "previous step."
27823 msgstr ""
27824
27825 # type: verbatim
27826 #: ../tools/virt-resize.pl:144
27827 #, no-wrap
27828 msgid ""
27829 " # virt-resize indisk outdisk\n"
27830 "\n"
27831 msgstr ""
27832
27833 # type: textblock
27834 #: ../tools/virt-resize.pl:146
27835 msgid ""
27836 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27837 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27838 "larger, then an extra, empty partition is created at the end of the disk "
27839 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27840 "error."
27841 msgstr ""
27842
27843 # type: textblock
27844 #: ../tools/virt-resize.pl:152
27845 msgid ""
27846 "More realistically you'd want to expand existing partitions in the disk "
27847 "image by passing extra options (for the full list see the L</OPTIONS> "
27848 "section below)."
27849 msgstr ""
27850
27851 # type: textblock
27852 #: ../tools/virt-resize.pl:156
27853 msgid ""
27854 "L</--expand> is the most useful option.  It expands the named partition "
27855 "within the disk to fill any extra space:"
27856 msgstr ""
27857
27858 # type: verbatim
27859 #: ../tools/virt-resize.pl:159
27860 #, no-wrap
27861 msgid ""
27862 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27863 "\n"
27864 msgstr ""
27865
27866 # type: textblock
27867 #: ../tools/virt-resize.pl:161
27868 msgid ""
27869 "(In this case, an extra partition is I<not> created at the end of the disk, "
27870 "because there will be no unused space)."
27871 msgstr ""
27872
27873 # type: textblock
27874 #: ../tools/virt-resize.pl:164
27875 msgid ""
27876 "L</--resize> is the other commonly used option.  The following would "
27877 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27878 "rest of the available space:"
27879 msgstr ""
27880
27881 # type: verbatim
27882 #: ../tools/virt-resize.pl:168
27883 #, no-wrap
27884 msgid ""
27885 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27886 "     indisk outdisk\n"
27887 "\n"
27888 msgstr ""
27889
27890 # type: textblock
27891 #: ../tools/virt-resize.pl:171
27892 msgid ""
27893 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27894 "if virt-resize knows how, it will resize the contents, the equivalent of "
27895 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27896 ">.  However virt-resize does not know how to resize some filesystems, so you "
27897 "would have to online resize them after booting the guest.  And virt-resize "
27898 "also does not resize anything inside an LVM PV, it just resizes the PV "
27899 "itself and leaves the user to resize any LVs inside that PV as desired."
27900 msgstr ""
27901
27902 # type: textblock
27903 #: ../tools/virt-resize.pl:180
27904 msgid "Other options are covered below."
27905 msgstr ""
27906
27907 # type: =item
27908 #: ../tools/virt-resize.pl:182
27909 msgid "6. Test"
27910 msgstr ""
27911
27912 # type: textblock
27913 #: ../tools/virt-resize.pl:184
27914 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27915 msgstr ""
27916
27917 # type: textblock
27918 #: ../tools/virt-resize.pl:186
27919 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27920 msgstr ""
27921
27922 # type: verbatim
27923 #: ../tools/virt-resize.pl:188
27924 #, no-wrap
27925 msgid ""
27926 " # virsh edit guestname\n"
27927 "\n"
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-resize.pl:190
27932 msgid ""
27933 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27934 "html#elementsDisks>"
27935 msgstr ""
27936
27937 # type: textblock
27938 #: ../tools/virt-resize.pl:193
27939 msgid "Then start up the domain with the new, resized disk:"
27940 msgstr ""
27941
27942 # type: verbatim
27943 #: ../tools/virt-resize.pl:195
27944 #, no-wrap
27945 msgid ""
27946 " # virsh start guestname\n"
27947 "\n"
27948 msgstr ""
27949
27950 # type: textblock
27951 #: ../tools/virt-resize.pl:197
27952 msgid ""
27953 "and check that it still works.  See also the L</NOTES> section below for "
27954 "additional information."
27955 msgstr ""
27956
27957 # type: =item
27958 #: ../tools/virt-resize.pl:200
27959 msgid "7. Resize LVs etc inside the guest"
27960 msgstr ""
27961
27962 # type: textblock
27963 #: ../tools/virt-resize.pl:202
27964 msgid "(This can also be done offline using L<guestfish(1)>)"
27965 msgstr ""
27966
27967 # type: textblock
27968 #: ../tools/virt-resize.pl:204
27969 msgid ""
27970 "Once the guest has booted you should see the new space available, at least "
27971 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27972 "may need to resize LVs inside PVs, and also resize filesystem types that "
27973 "virt-resize does not know how to expand."
27974 msgstr ""
27975
27976 # type: =head2
27977 #: ../tools/virt-resize.pl:211
27978 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27979 msgstr ""
27980
27981 # type: textblock
27982 #: ../tools/virt-resize.pl:213
27983 msgid ""
27984 "Shrinking is somewhat more complex than expanding, and only an overview is "
27985 "given here."
27986 msgstr ""
27987
27988 # type: textblock
27989 #: ../tools/virt-resize.pl:216
27990 msgid ""
27991 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27992 "filesystems).  The user has to shrink content before passing the disk image "
27993 "to virt-resize, and virt-resize will check that the content has been shrunk "
27994 "properly."
27995 msgstr ""
27996
27997 # type: textblock
27998 #: ../tools/virt-resize.pl:221
27999 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-resize.pl:223
28004 msgid ""
28005 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
28006 "steps 3 and 4 above to allocate a new disk image."
28007 msgstr ""
28008
28009 # type: textblock
28010 #: ../tools/virt-resize.pl:226
28011 msgid ""
28012 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
28013 msgstr ""
28014
28015 # type: =head2
28016 #: ../tools/virt-resize.pl:229
28017 msgid "IGNORING OR DELETING PARTITIONS"
28018 msgstr ""
28019
28020 # type: textblock
28021 #: ../tools/virt-resize.pl:231
28022 msgid ""
28023 "virt-resize also gives a convenient way to ignore or delete partitions when "
28024 "copying from the input disk to the output disk.  Ignoring a partition speeds "
28025 "up the copy where you don't care about the existing contents of a "
28026 "partition.  Deleting a partition removes it completely, but note that it "
28027 "also renumbers any partitions after the one which is deleted, which can "
28028 "leave some guests unbootable."
28029 msgstr ""
28030
28031 # type: =head2
28032 #: ../tools/virt-resize.pl:238
28033 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
28034 msgstr ""
28035
28036 # type: textblock
28037 #: ../tools/virt-resize.pl:240
28038 msgid ""
28039 "If the input disk is in qcow2 format, then you may prefer that the output is "
28040 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
28041 "the fly.  The output format is simply determined by the format of the empty "
28042 "output container that you provide.  Thus to create qcow2 output, use:"
28043 msgstr ""
28044
28045 # type: verbatim
28046 #: ../tools/virt-resize.pl:246
28047 #, no-wrap
28048 msgid ""
28049 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
28050 "\n"
28051 msgstr ""
28052
28053 # type: textblock
28054 #: ../tools/virt-resize.pl:248
28055 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
28056 msgstr ""
28057
28058 # type: textblock
28059 #: ../tools/virt-resize.pl:250
28060 msgid "Similarly, to get non-sparse raw output use:"
28061 msgstr ""
28062
28063 # type: verbatim
28064 #: ../tools/virt-resize.pl:252
28065 #, no-wrap
28066 msgid ""
28067 " fallocate -l size outdisk\n"
28068 "\n"
28069 msgstr ""
28070
28071 # type: textblock
28072 #: ../tools/virt-resize.pl:254
28073 msgid ""
28074 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
28075 "dev/zero of=outdisk bs=1M count=..>)"
28076 msgstr ""
28077
28078 # type: textblock
28079 #: ../tools/virt-resize.pl:267
28080 msgid "Display help."
28081 msgstr ""
28082
28083 # type: =item
28084 #: ../tools/virt-resize.pl:281
28085 msgid "B<--resize part=size>"
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-resize.pl:283
28090 msgid ""
28091 "Resize the named partition (expanding or shrinking it) so that it has the "
28092 "given size."
28093 msgstr ""
28094
28095 # type: textblock
28096 #: ../tools/virt-resize.pl:286
28097 msgid ""
28098 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
28099 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
28100 "Exabytes; or as a percentage of the current size; or as a relative number or "
28101 "percentage.  For example:"
28102 msgstr ""
28103
28104 # type: verbatim
28105 #: ../tools/virt-resize.pl:291
28106 #, no-wrap
28107 msgid ""
28108 " --resize /dev/sda2=10G\n"
28109 "\n"
28110 msgstr ""
28111
28112 # type: verbatim
28113 #: ../tools/virt-resize.pl:293
28114 #, no-wrap
28115 msgid ""
28116 " --resize /dev/sda4=90%\n"
28117 "\n"
28118 msgstr ""
28119
28120 # type: verbatim
28121 #: ../tools/virt-resize.pl:295
28122 #, no-wrap
28123 msgid ""
28124 " --resize /dev/sda2=+1G\n"
28125 "\n"
28126 msgstr ""
28127
28128 # type: verbatim
28129 #: ../tools/virt-resize.pl:297
28130 #, no-wrap
28131 msgid ""
28132 " --resize /dev/sda2=-200M\n"
28133 "\n"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #: ../tools/virt-resize.pl:299
28138 #, no-wrap
28139 msgid ""
28140 " --resize /dev/sda1=+128K\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: verbatim
28145 #: ../tools/virt-resize.pl:301
28146 #, no-wrap
28147 msgid ""
28148 " --resize /dev/sda1=+10%\n"
28149 "\n"
28150 msgstr ""
28151
28152 # type: verbatim
28153 #: ../tools/virt-resize.pl:303
28154 #, no-wrap
28155 msgid ""
28156 " --resize /dev/sda1=-10%\n"
28157 "\n"
28158 msgstr ""
28159
28160 # type: textblock
28161 #: ../tools/virt-resize.pl:305
28162 msgid ""
28163 "You can increase the size of any partition.  Virt-resize will expand the "
28164 "direct content of the partition if it knows how (see C<--expand> below)."
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-resize.pl:309
28169 msgid ""
28170 "You can only I<decrease> the size of partitions that contain filesystems or "
28171 "PVs which have already been shrunk.  Virt-resize will check this has been "
28172 "done before proceeding, or else will print an error (see also C<--resize-"
28173 "force>)."
28174 msgstr ""
28175
28176 # type: textblock
28177 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
28178 #: ../tools/virt-resize.pl:423
28179 msgid "You can give this option multiple times."
28180 msgstr ""
28181
28182 # type: =item
28183 #: ../tools/virt-resize.pl:320
28184 msgid "B<--resize-force part=size>"
28185 msgstr ""
28186
28187 # type: textblock
28188 #: ../tools/virt-resize.pl:322
28189 msgid ""
28190 "This is the same as C<--resize> except that it will let you decrease the "
28191 "size of any partition.  Generally this means you will lose any data which "
28192 "was at the end of the partition you shrink, but you may not care about that "
28193 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
28194 "as a swap partition)."
28195 msgstr ""
28196
28197 # type: textblock
28198 #: ../tools/virt-resize.pl:328
28199 msgid "See also the C<--ignore> option."
28200 msgstr ""
28201
28202 # type: =item
28203 #: ../tools/virt-resize.pl:334
28204 msgid "B<--expand part>"
28205 msgstr ""
28206
28207 # type: textblock
28208 #: ../tools/virt-resize.pl:336
28209 msgid ""
28210 "Expand the named partition so it uses up all extra space (space left over "
28211 "after any other resize changes that you request have been done)."
28212 msgstr ""
28213
28214 # type: textblock
28215 #: ../tools/virt-resize.pl:339
28216 msgid ""
28217 "If virt-resize knows how, it will expand the direct content of the "
28218 "partition.  For example, if the partition is an LVM PV, it will expand the "
28219 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
28220 "content it doesn't know about alone."
28221 msgstr ""
28222
28223 # type: textblock
28224 #: ../tools/virt-resize.pl:344
28225 msgid "Currently virt-resize can resize:"
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-resize.pl:350
28230 msgid ""
28231 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
28232 "partition."
28233 msgstr ""
28234
28235 # type: textblock
28236 #: ../tools/virt-resize.pl:355
28237 msgid ""
28238 "NTFS filesystems contained directly in a partition, if libguestfs was "
28239 "compiled with support for NTFS."
28240 msgstr ""
28241
28242 # type: textblock
28243 #: ../tools/virt-resize.pl:358
28244 msgid ""
28245 "The filesystem must have been shut down consistently last time it was used.  "
28246 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
28247 "consistency check, so at the first boot after resizing Windows will check "
28248 "the disk."
28249 msgstr ""
28250
28251 # type: textblock
28252 #: ../tools/virt-resize.pl:365
28253 msgid ""
28254 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
28255 "inside the PV.  The user will have to resize LVs as desired."
28256 msgstr ""
28257
28258 # type: textblock
28259 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
28260 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
28261 msgstr ""
28262
28263 # type: =item
28264 #: ../tools/virt-resize.pl:377
28265 msgid "B<--shrink part>"
28266 msgstr ""
28267
28268 # type: textblock
28269 #: ../tools/virt-resize.pl:379
28270 msgid ""
28271 "Shrink the named partition until the overall disk image fits in the "
28272 "destination.  The named partition B<must> contain a filesystem or PV which "
28273 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28274 "online tools).  Virt-resize will check this and give an error if it has not "
28275 "been done."
28276 msgstr ""
28277
28278 # type: textblock
28279 #: ../tools/virt-resize.pl:385
28280 msgid ""
28281 "The amount by which the overall disk must be shrunk (after carrying out all "
28282 "other operations requested by the user) is called the \"deficit\".  For "
28283 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28284 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28285 "would give an error unless the user specified a partition to shrink and that "
28286 "partition had more than a gigabyte of free space."
28287 msgstr ""
28288
28289 # type: =item
28290 #: ../tools/virt-resize.pl:399
28291 msgid "B<--ignore part>"
28292 msgstr ""
28293
28294 # type: textblock
28295 #: ../tools/virt-resize.pl:401
28296 msgid ""
28297 "Ignore the named partition.  Effectively this means the partition is "
28298 "allocated on the destination disk, but the content is not copied across from "
28299 "the source disk.  The content of the partition will be blank (all zero "
28300 "bytes)."
28301 msgstr ""
28302
28303 # type: =item
28304 #: ../tools/virt-resize.pl:412
28305 msgid "B<--delete part>"
28306 msgstr ""
28307
28308 # type: textblock
28309 #: ../tools/virt-resize.pl:414
28310 msgid ""
28311 "Delete the named partition.  It would be more accurate to describe this as "
28312 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28313 "the original disk image is left intact."
28314 msgstr ""
28315
28316 # type: textblock
28317 #: ../tools/virt-resize.pl:418
28318 msgid ""
28319 "Note that when you delete a partition, then anything contained in the "
28320 "partition is also deleted.  Furthermore, this causes any partitions that "
28321 "come after to be I<renumbered>, which can easily make your guest unbootable."
28322 msgstr ""
28323
28324 # type: =item
28325 #: ../tools/virt-resize.pl:429
28326 msgid "B<--LV-expand logvol>"
28327 msgstr ""
28328
28329 # type: textblock
28330 #: ../tools/virt-resize.pl:431
28331 msgid ""
28332 "This takes the logical volume and, as a final step, expands it to fill all "
28333 "the space available in its volume group.  A typical usage, assuming a Linux "
28334 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28335 "lv_root> would be:"
28336 msgstr ""
28337
28338 # type: verbatim
28339 #: ../tools/virt-resize.pl:436
28340 #, no-wrap
28341 msgid ""
28342 " virt-resize indisk outdisk \\\n"
28343 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28344 "\n"
28345 msgstr ""
28346
28347 # type: textblock
28348 #: ../tools/virt-resize.pl:439
28349 msgid ""
28350 "This would first expand the partition (and PV), and then expand the root "
28351 "device to fill the extra space in the PV."
28352 msgstr ""
28353
28354 # type: textblock
28355 #: ../tools/virt-resize.pl:442
28356 msgid ""
28357 "The contents of the LV are also resized if virt-resize knows how to do "
28358 "that.  You can stop virt-resize from trying to expand the content by using "
28359 "the option C<--no-expand-content>."
28360 msgstr ""
28361
28362 # type: textblock
28363 #: ../tools/virt-resize.pl:446
28364 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
28365 msgstr ""
28366
28367 # type: textblock
28368 #: ../tools/virt-resize.pl:449
28369 msgid ""
28370 "You can give this option multiple times, I<but> it doesn't make sense to do "
28371 "this unless the logical volumes you specify are all in different volume "
28372 "groups."
28373 msgstr ""
28374
28375 # type: =item
28376 #: ../tools/virt-resize.pl:457
28377 msgid "B<--no-copy-boot-loader>"
28378 msgstr ""
28379
28380 # type: textblock
28381 #: ../tools/virt-resize.pl:459
28382 msgid ""
28383 "By default, virt-resize copies over some sectors at the start of the disk "
28384 "(up to the beginning of the first partition).  Commonly these sectors "
28385 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28386 "in order for the guest to boot correctly."
28387 msgstr ""
28388
28389 # type: textblock
28390 #: ../tools/virt-resize.pl:464
28391 msgid ""
28392 "If you specify this flag, then this initial copy is not done.  You may need "
28393 "to reinstall the boot loader in this case."
28394 msgstr ""
28395
28396 # type: =item
28397 #: ../tools/virt-resize.pl:472
28398 msgid "B<--no-extra-partition>"
28399 msgstr ""
28400
28401 # type: textblock
28402 #: ../tools/virt-resize.pl:474
28403 msgid ""
28404 "By default, virt-resize creates an extra partition if there is any extra, "
28405 "unused space after all resizing has happened.  Use this option to prevent "
28406 "the extra partition from being created.  If you do this then the extra space "
28407 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28408 "tool in the guest."
28409 msgstr ""
28410
28411 # type: textblock
28412 #: ../tools/virt-resize.pl:480
28413 msgid ""
28414 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28415 "will be created."
28416 msgstr ""
28417
28418 # type: =item
28419 #: ../tools/virt-resize.pl:487
28420 msgid "B<--no-expand-content>"
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-resize.pl:489
28425 msgid ""
28426 "By default, virt-resize will try to expand the direct contents of "
28427 "partitions, if it knows how (see C<--expand> option above)."
28428 msgstr ""
28429
28430 # type: textblock
28431 #: ../tools/virt-resize.pl:492
28432 msgid ""
28433 "If you give the C<--no-expand-content> option then virt-resize will not "
28434 "attempt this."
28435 msgstr ""
28436
28437 # type: =item
28438 #: ../tools/virt-resize.pl:499
28439 msgid "B<-d> | B<--debug>"
28440 msgstr ""
28441
28442 # type: =item
28443 #: ../tools/virt-resize.pl:507
28444 msgid "B<-n> | B<--dryrun>"
28445 msgstr ""
28446
28447 # type: textblock
28448 #: ../tools/virt-resize.pl:509
28449 msgid "Print a summary of what would be done, but don't do anything."
28450 msgstr ""
28451
28452 # type: =item
28453 #: ../tools/virt-resize.pl:515
28454 msgid "B<-q> | B<--quiet>"
28455 msgstr ""
28456
28457 # type: textblock
28458 #: ../tools/virt-resize.pl:517
28459 msgid "Don't print the summary."
28460 msgstr ""
28461
28462 # type: textblock
28463 #: ../tools/virt-resize.pl:525
28464 msgid ""
28465 "Specify the format of the input disk image.  If this flag is not given then "
28466 "it is auto-detected from the image itself."
28467 msgstr ""
28468
28469 # type: textblock
28470 #: ../tools/virt-resize.pl:531
28471 msgid ""
28472 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28473 "AND NON-SPARSE RAW FORMATS>."
28474 msgstr ""
28475
28476 # type: =item
28477 #: ../tools/virt-resize.pl:538
28478 msgid "B<--output-format> raw"
28479 msgstr ""
28480
28481 # type: textblock
28482 #: ../tools/virt-resize.pl:540
28483 msgid ""
28484 "Specify the format of the output disk image.  If this flag is not given then "
28485 "it is auto-detected from the image itself."
28486 msgstr ""
28487
28488 # type: textblock
28489 #: ../tools/virt-resize.pl:546
28490 msgid ""
28491 "Note that you still need to create the output disk with the right format.  "
28492 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28493 msgstr ""
28494
28495 # type: =head1
28496 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
28497 msgid "NOTES"
28498 msgstr ""
28499
28500 # type: =head2
28501 #: ../tools/virt-resize.pl:1424
28502 msgid "\"Partition 1 does not end on cylinder boundary.\""
28503 msgstr ""
28504
28505 # type: textblock
28506 #: ../tools/virt-resize.pl:1426
28507 msgid ""
28508 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28509 "means the partitions will not be aligned to the ancient CHS geometry.  "
28510 "However CHS geometry is meaningless for disks manufactured since the early "
28511 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28512 "cylinders is not required by any modern operating system."
28513 msgstr ""
28514
28515 # type: =head2
28516 #: ../tools/virt-resize.pl:1433
28517 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28518 msgstr ""
28519
28520 # type: textblock
28521 #: ../tools/virt-resize.pl:1435
28522 msgid ""
28523 "In Windows Vista and later versions, Microsoft switched to using a separate "
28524 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28525 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28526 "the boot partition.  Doing so seems to break the guest completely.  However "
28527 "expanding the second partition (ie. C: drive) should work."
28528 msgstr ""
28529
28530 # type: textblock
28531 #: ../tools/virt-resize.pl:1442
28532 msgid ""
28533 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28534 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28535 "it find errors) is nothing to worry about."
28536 msgstr ""
28537
28538 # type: =head2
28539 #: ../tools/virt-resize.pl:1446
28540 msgid "GUEST BOOT STUCK AT \"GRUB\""
28541 msgstr ""
28542
28543 # type: textblock
28544 #: ../tools/virt-resize.pl:1448
28545 msgid ""
28546 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28547 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28548 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28549 "although we think is to do with partition alignment."
28550 msgstr ""
28551
28552 # type: verbatim
28553 #: ../tools/virt-resize.pl:1453
28554 #, no-wrap
28555 msgid ""
28556 " guestfish -i -a newdisk\n"
28557 " ><fs> cat /boot/grub/device.map\n"
28558 " # check the contents of this file are sensible or\n"
28559 " # edit the file if necessary\n"
28560 " ><fs> grub-install / /dev/vda\n"
28561 " ><fs> exit\n"
28562 "\n"
28563 msgstr ""
28564
28565 # type: textblock
28566 #: ../tools/virt-resize.pl:1460
28567 msgid ""
28568 "For more flexible guest reconfiguration, including if you need to specify "
28569 "other parameters to grub-install, use L<virt-rescue(1)>."
28570 msgstr ""
28571
28572 # type: =head1
28573 #: ../tools/virt-resize.pl:1463
28574 msgid "ALTERNATIVE TOOLS"
28575 msgstr ""
28576
28577 # type: textblock
28578 #: ../tools/virt-resize.pl:1465
28579 msgid ""
28580 "There are several proprietary tools for resizing partitions.  We won't "
28581 "mention any here."
28582 msgstr ""
28583
28584 # type: textblock
28585 #: ../tools/virt-resize.pl:1468
28586 msgid ""
28587 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28588 "operations on disk images.  They can resize and move partitions, but I don't "
28589 "think they can do anything with the contents, and they certainly don't "
28590 "understand LVM."
28591 msgstr ""
28592
28593 # type: textblock
28594 #: ../tools/virt-resize.pl:1473
28595 msgid ""
28596 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28597 "but at a much lower level.  You will probably end up hand-calculating sector "
28598 "offsets, which is something that virt-resize was designed to avoid.  If you "
28599 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28600 "C<--debug> flag."
28601 msgstr ""
28602
28603 # type: textblock
28604 #: ../tools/virt-resize.pl:1488
28605 msgid ""
28606 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
28607 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
28608 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
28609 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
28610 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28611 msgstr ""
28612
28613 # type: textblock
28614 #: ../tools/virt-list-filesystems.pl:32
28615 msgid ""
28616 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28617 msgstr ""
28618
28619 # type: verbatim
28620 #: ../tools/virt-list-filesystems.pl:36
28621 #, no-wrap
28622 msgid ""
28623 " virt-list-filesystems [--options] domname\n"
28624 "\n"
28625 msgstr ""
28626
28627 # type: verbatim
28628 #: ../tools/virt-list-filesystems.pl:38
28629 #, no-wrap
28630 msgid ""
28631 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28632 "\n"
28633 msgstr ""
28634
28635 # type: textblock
28636 #: ../tools/virt-list-filesystems.pl:42
28637 msgid ""
28638 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28639 "are contained in a virtual machine or disk image."
28640 msgstr ""
28641
28642 # type: textblock
28643 #: ../tools/virt-list-filesystems.pl:46
28644 msgid ""
28645 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28646 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28647 "> tool."
28648 msgstr ""
28649
28650 # type: textblock
28651 #: ../tools/virt-list-filesystems.pl:105
28652 msgid ""
28653 "With this option, C<virt-list-filesystems> displays the type of each "
28654 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28655 msgstr ""
28656
28657 # type: =item
28658 #: ../tools/virt-list-filesystems.pl:112
28659 msgid "B<-a> | B<--all>"
28660 msgstr ""
28661
28662 # type: textblock
28663 #: ../tools/virt-list-filesystems.pl:114
28664 msgid ""
28665 "Normally we only show mountable filesystems.  If this option is given then "
28666 "swap devices are shown too."
28667 msgstr ""
28668
28669 # type: textblock
28670 #: ../tools/virt-list-filesystems.pl:188
28671 msgid ""
28672 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
28673 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
28674 ">, L<http://libguestfs.org/>."
28675 msgstr ""
28676
28677 # type: textblock
28678 #: ../tools/virt-tar.pl:33
28679 msgid "virt-tar - Extract or upload files to a virtual machine"
28680 msgstr ""
28681
28682 # type: verbatim
28683 #: ../tools/virt-tar.pl:37
28684 #, no-wrap
28685 msgid ""
28686 " virt-tar [--options] -x domname directory tarball\n"
28687 "\n"
28688 msgstr ""
28689
28690 # type: verbatim
28691 #: ../tools/virt-tar.pl:39
28692 #, no-wrap
28693 msgid ""
28694 " virt-tar [--options] -u domname tarball directory\n"
28695 "\n"
28696 msgstr ""
28697
28698 # type: verbatim
28699 #: ../tools/virt-tar.pl:41
28700 #, no-wrap
28701 msgid ""
28702 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28703 "\n"
28704 msgstr ""
28705
28706 # type: verbatim
28707 #: ../tools/virt-tar.pl:43
28708 #, no-wrap
28709 msgid ""
28710 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28711 "\n"
28712 msgstr ""
28713
28714 # type: textblock
28715 #: ../tools/virt-tar.pl:47
28716 msgid "Download C</home> from the VM into a local tarball:"
28717 msgstr ""
28718
28719 # type: verbatim
28720 #: ../tools/virt-tar.pl:49
28721 #, no-wrap
28722 msgid ""
28723 " virt-tar -x domname /home home.tar\n"
28724 "\n"
28725 msgstr ""
28726
28727 # type: verbatim
28728 #: ../tools/virt-tar.pl:51
28729 #, no-wrap
28730 msgid ""
28731 " virt-tar -zx domname /home home.tar.gz\n"
28732 "\n"
28733 msgstr ""
28734
28735 # type: textblock
28736 #: ../tools/virt-tar.pl:53
28737 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28738 msgstr ""
28739
28740 # type: verbatim
28741 #: ../tools/virt-tar.pl:55
28742 #, no-wrap
28743 msgid ""
28744 " virt-tar -u domname uploadstuff.tar /tmp\n"
28745 "\n"
28746 msgstr ""
28747
28748 # type: verbatim
28749 #: ../tools/virt-tar.pl:57
28750 #, no-wrap
28751 msgid ""
28752 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28753 "\n"
28754 msgstr ""
28755
28756 # type: textblock
28757 #: ../tools/virt-tar.pl:61
28758 msgid ""
28759 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28760 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28761 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28762 msgstr ""
28763
28764 # type: textblock
28765 #: ../tools/virt-tar.pl:66
28766 msgid ""
28767 "You can use C<-x> (extract) on live virtual machines, but you might get "
28768 "inconsistent results or errors if there is filesystem activity inside the "
28769 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28770 "work, but the only way to guarantee consistent results is if the virtual "
28771 "machine is shut down."
28772 msgstr ""
28773
28774 # type: textblock
28775 #: ../tools/virt-tar.pl:74
28776 msgid ""
28777 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28778 "parts of a guest filesystem.  There are many possibilities: making backups, "
28779 "uploading data files, snooping on guest activity, fixing or customizing "
28780 "guests, etc."
28781 msgstr ""
28782
28783 # type: textblock
28784 #: ../tools/virt-tar.pl:79
28785 msgid ""
28786 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28787 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28788 "should look at the L<guestfish(1)> tool."
28789 msgstr ""
28790
28791 # type: textblock
28792 #: ../tools/virt-tar.pl:83
28793 msgid ""
28794 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28795 "its contents (recursively) from the virtual machine into a local tarball.  "
28796 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28797 "virtual machine.  You cannot use these two options together."
28798 msgstr ""
28799
28800 # type: textblock
28801 #: ../tools/virt-tar.pl:89
28802 msgid ""
28803 "In addition, you may need to use the C<-z> (gZip) option to enable "
28804 "compression.  When uploading, you have to specify C<-z> if the upload file "
28805 "is compressed because virt-tar won't detect this on its own."
28806 msgstr ""
28807
28808 # type: textblock
28809 #: ../tools/virt-tar.pl:93
28810 msgid ""
28811 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28812 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28813 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28814 "the L<libguestfs(3)> API)."
28815 msgstr ""
28816
28817 # type: =item
28818 #: ../tools/virt-tar.pl:151
28819 msgid "B<-x> | B<--extract> | B<--download>"
28820 msgstr ""
28821
28822 # type: =item
28823 #: ../tools/virt-tar.pl:153
28824 msgid "B<-u> | B<--upload>"
28825 msgstr ""
28826
28827 # type: textblock
28828 #: ../tools/virt-tar.pl:155
28829 msgid ""
28830 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28831 "local tarball."
28832 msgstr ""
28833
28834 # type: textblock
28835 #: ../tools/virt-tar.pl:158
28836 msgid ""
28837 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28838 "Please read the L</WARNING> section above before using this option."
28839 msgstr ""
28840
28841 # type: textblock
28842 #: ../tools/virt-tar.pl:162
28843 msgid "You must specify exactly one of these options."
28844 msgstr ""
28845
28846 # type: =item
28847 #: ../tools/virt-tar.pl:168
28848 msgid "B<-z> | B<--gzip>"
28849 msgstr ""
28850
28851 # type: textblock
28852 #: ../tools/virt-tar.pl:170
28853 msgid "Specify that the input or output tarball is gzip-compressed."
28854 msgstr ""
28855
28856 # type: textblock
28857 #: ../tools/virt-tar.pl:283
28858 msgid ""
28859 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28860 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28861 "org/>."
28862 msgstr ""
28863
28864 # type: textblock
28865 #: ../tools/virt-rescue.pl:33
28866 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28867 msgstr ""
28868
28869 # type: verbatim
28870 #: ../tools/virt-rescue.pl:37
28871 #, no-wrap
28872 msgid ""
28873 " virt-rescue [--options] domname\n"
28874 "\n"
28875 msgstr ""
28876
28877 # type: verbatim
28878 #: ../tools/virt-rescue.pl:39
28879 #, no-wrap
28880 msgid ""
28881 " virt-rescue [--options] disk.img [disk.img ...]\n"
28882 "\n"
28883 msgstr ""
28884
28885 # type: textblock
28886 #: ../tools/virt-rescue.pl:43
28887 msgid ""
28888 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28889 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28890 "you from doing this, but doesn't catch all cases."
28891 msgstr ""
28892
28893 # type: textblock
28894 #: ../tools/virt-rescue.pl:47
28895 msgid ""
28896 "However if you use the I<--ro> (read only) option, then you can attach a "
28897 "shell to a live virtual machine.  The results might be strange or "
28898 "inconsistent at times but you won't get disk corruption."
28899 msgstr ""
28900
28901 # type: textblock
28902 #: ../tools/virt-rescue.pl:53
28903 msgid ""
28904 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28905 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28906 "recovery tools which you can use to examine or rescue a virtual machine or "
28907 "disk image."
28908 msgstr ""
28909
28910 # type: textblock
28911 #: ../tools/virt-rescue.pl:58
28912 msgid ""
28913 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28914 "on disk image(s):"
28915 msgstr ""
28916
28917 # type: verbatim
28918 #: ../tools/virt-rescue.pl:61
28919 #, no-wrap
28920 msgid ""
28921 " virt-rescue GuestName\n"
28922 "\n"
28923 msgstr ""
28924
28925 # type: verbatim
28926 #: ../tools/virt-rescue.pl:63
28927 #, no-wrap
28928 msgid ""
28929 " virt-rescue --ro /path/to/disk.img\n"
28930 "\n"
28931 msgstr ""
28932
28933 # type: verbatim
28934 #: ../tools/virt-rescue.pl:65
28935 #, no-wrap
28936 msgid ""
28937 " virt-rescue /dev/sdc\n"
28938 "\n"
28939 msgstr ""
28940
28941 # type: textblock
28942 #: ../tools/virt-rescue.pl:67
28943 msgid "For live VMs you I<must> use the --ro option."
28944 msgstr ""
28945
28946 # type: textblock
28947 #: ../tools/virt-rescue.pl:69
28948 msgid ""
28949 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28950 "in an interactive bash shell where you can use many ordinary Linux "
28951 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28952 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28953 "is an empty directory called C</sysroot> where you can mount filesystems."
28954 msgstr ""
28955
28956 # type: textblock
28957 #: ../tools/virt-rescue.pl:76
28958 msgid ""
28959 "In the example below, we list logical volumes, then choose one to mount "
28960 "under C</sysroot>:"
28961 msgstr ""
28962
28963 # type: verbatim
28964 #: ../tools/virt-rescue.pl:79
28965 #, no-wrap
28966 msgid ""
28967 " ><rescue> lvs\n"
28968 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28969 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28970 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28971 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28972 " ><rescue> ls /sysroot\n"
28973 "\n"
28974 msgstr ""
28975
28976 # type: textblock
28977 #: ../tools/virt-rescue.pl:86
28978 msgid ""
28979 "If you don't know what filesystems are available on the virtual machine then "
28980 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28981 msgstr ""
28982
28983 # type: textblock
28984 #: ../tools/virt-rescue.pl:92
28985 msgid ""
28986 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28987 "virtual machine.  For example you can use it on a blank file if you want to "
28988 "partition that file (although we would recommend using L<guestfish(1)> "
28989 "instead as it is more suitable for this purpose).  You can even use virt-"
28990 "rescue on things like SD cards."
28991 msgstr ""
28992
28993 # type: textblock
28994 #: ../tools/virt-rescue.pl:98
28995 msgid ""
28996 "This tool is just designed for quick interactive hacking on a virtual "
28997 "machine.  For more structured access to a virtual machine disk image, you "
28998 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28999 "make scripted changes to guests, use L<guestfish(1)>."
29000 msgstr ""
29001
29002 # type: =item
29003 #: ../tools/virt-rescue.pl:127
29004 msgid "B<--append kernelopts>"
29005 msgstr ""
29006
29007 # type: textblock
29008 #: ../tools/virt-rescue.pl:129
29009 msgid "Pass additional options to the rescue kernel."
29010 msgstr ""
29011
29012 # type: =item
29013 #: ../tools/virt-rescue.pl:164
29014 msgid "B<--memsize MB> | B<-m MB>"
29015 msgstr ""
29016
29017 # type: textblock
29018 #: ../tools/virt-rescue.pl:166
29019 msgid ""
29020 "Change the amount of memory allocated to the rescue system.  The default is "
29021 "set by libguestfs and is small but adequate for running system tools.  The "
29022 "occasional program might need more memory.  The parameter is specified in "
29023 "megabytes."
29024 msgstr ""
29025
29026 # type: =item
29027 #: ../tools/virt-rescue.pl:175
29028 msgid "B<--network>"
29029 msgstr ""
29030
29031 # type: textblock
29032 #: ../tools/virt-rescue.pl:177
29033 msgid "Enable QEMU user networking in the guest."
29034 msgstr ""
29035
29036 # type: =item
29037 #: ../tools/virt-rescue.pl:183
29038 msgid "B<--ro> | B<-r>"
29039 msgstr ""
29040
29041 # type: textblock
29042 #: ../tools/virt-rescue.pl:185
29043 msgid "Open the image read-only."
29044 msgstr ""
29045
29046 # type: textblock
29047 #: ../tools/virt-rescue.pl:197
29048 msgid ""
29049 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
29050 "SELINUX> before using this option."
29051 msgstr ""
29052
29053 # type: textblock
29054 #: ../tools/virt-rescue.pl:257
29055 msgid ""
29056 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
29057 "ENVIRONMENT VARIABLES> for the complete list."
29058 msgstr ""
29059
29060 # type: textblock
29061 #: ../tools/virt-rescue.pl:269
29062 msgid ""
29063 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29064 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29065 msgstr ""
29066
29067 # type: textblock
29068 #: ../tools/virt-make-fs.pl:37
29069 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29070 msgstr ""
29071
29072 # type: verbatim
29073 #: ../tools/virt-make-fs.pl:41
29074 #, no-wrap
29075 msgid ""
29076 " virt-make-fs [--options] input.tar output.img\n"
29077 "\n"
29078 msgstr ""
29079
29080 # type: verbatim
29081 #: ../tools/virt-make-fs.pl:43
29082 #, no-wrap
29083 msgid ""
29084 " virt-make-fs [--options] input.tar.gz output.img\n"
29085 "\n"
29086 msgstr ""
29087
29088 # type: verbatim
29089 #: ../tools/virt-make-fs.pl:45
29090 #, no-wrap
29091 msgid ""
29092 " virt-make-fs [--options] directory output.img\n"
29093 "\n"
29094 msgstr ""
29095
29096 # type: textblock
29097 #: ../tools/virt-make-fs.pl:49
29098 msgid ""
29099 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29100 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
29101 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
29102 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
29103 "you want to attach these filesystems to existing virtual machines (eg. to "
29104 "import large amounts of read-only data to a VM)."
29105 msgstr ""
29106
29107 # type: textblock
29108 #: ../tools/virt-make-fs.pl:57
29109 msgid "Basic usage is:"
29110 msgstr ""
29111
29112 # type: verbatim
29113 #: ../tools/virt-make-fs.pl:59
29114 #, no-wrap
29115 msgid ""
29116 " virt-make-fs input output\n"
29117 "\n"
29118 msgstr ""
29119
29120 # type: textblock
29121 #: ../tools/virt-make-fs.pl:61
29122 msgid ""
29123 "where C<input> is either a directory containing files that you want to add, "
29124 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29125 "C<output> is a disk image.  The input type is detected automatically.  The "
29126 "output disk image defaults to a raw ext2 image unless you specify extra "
29127 "flags (see L</OPTIONS> below)."
29128 msgstr ""
29129
29130 # type: =head2
29131 #: ../tools/virt-make-fs.pl:67
29132 msgid "EXTRA SPACE"
29133 msgstr ""
29134
29135 # type: textblock
29136 #: ../tools/virt-make-fs.pl:69
29137 msgid ""
29138 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29139 "the files that it contains, but might have extra space.  Depending on how "
29140 "you are going to use the output, you might think this extra space is wasted "
29141 "and want to minimize it, or you might want to leave space so that more files "
29142 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29143 "but you can use the C<--size> flag to leave space in the filesystem if you "
29144 "want it."
29145 msgstr ""
29146
29147 # type: textblock
29148 #: ../tools/virt-make-fs.pl:77
29149 msgid ""
29150 "An alternative way to leave extra space but not make the output image any "
29151 "bigger is to use an alternative disk image format (instead of the default "
29152 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
29153 "image format (check your hypervisor supports this before using it).  This "
29154 "allows you to choose a large C<--size> but the extra space won't actually be "
29155 "allocated in the image until you try to store something in it."
29156 msgstr ""
29157
29158 # type: textblock
29159 #: ../tools/virt-make-fs.pl:85
29160 msgid ""
29161 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29162 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
29163 "resize to build another image from scratch."
29164 msgstr ""
29165
29166 # type: =head3
29167 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
29168 #: ../tools/virt-make-fs.pl:142
29169 msgid "EXAMPLE"
29170 msgstr ""
29171
29172 # type: verbatim
29173 #: ../tools/virt-make-fs.pl:91
29174 #, no-wrap
29175 msgid ""
29176 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29177 "\n"
29178 msgstr ""
29179
29180 # type: =head2
29181 #: ../tools/virt-make-fs.pl:93
29182 msgid "FILESYSTEM TYPE"
29183 msgstr ""
29184
29185 # type: textblock
29186 #: ../tools/virt-make-fs.pl:95
29187 msgid ""
29188 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
29189 "libguestfs supports can be used (but I<not> read-only formats like "
29190 "ISO9660).  Here are some of the more common choices:"
29191 msgstr ""
29192
29193 # type: =item
29194 #: ../tools/virt-make-fs.pl:101
29195 msgid "I<ext3>"
29196 msgstr ""
29197
29198 # type: textblock
29199 #: ../tools/virt-make-fs.pl:103
29200 msgid ""
29201 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29202 "you are not going to use the filesystem in a way that requires the journal, "
29203 "then this is just wasted overhead."
29204 msgstr ""
29205
29206 # type: =item
29207 #: ../tools/virt-make-fs.pl:107
29208 msgid "I<ntfs> or I<vfat>"
29209 msgstr ""
29210
29211 # type: textblock
29212 #: ../tools/virt-make-fs.pl:109
29213 msgid "Useful if exporting data to a Windows guest."
29214 msgstr ""
29215
29216 # type: textblock
29217 #: ../tools/virt-make-fs.pl:111
29218 msgid ""
29219 "I<Note for vfat>: The tar archive or local directory must only contain files "
29220 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29221 "program running within libguestfs is unable to change the ownership of non-"
29222 "root files, since vfat itself does not support this."
29223 msgstr ""
29224
29225 # type: =item
29226 #: ../tools/virt-make-fs.pl:116
29227 msgid "I<minix>"
29228 msgstr ""
29229
29230 # type: textblock
29231 #: ../tools/virt-make-fs.pl:118
29232 msgid ""
29233 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29234 "total filesystem size."
29235 msgstr ""
29236
29237 # type: verbatim
29238 #: ../tools/virt-make-fs.pl:125
29239 #, no-wrap
29240 msgid ""
29241 " virt-make-fs --type=minix input minixfs.img\n"
29242 "\n"
29243 msgstr ""
29244
29245 # type: =head2
29246 #: ../tools/virt-make-fs.pl:127
29247 msgid "TO PARTITION OR NOT TO PARTITION"
29248 msgstr ""
29249
29250 # type: textblock
29251 #: ../tools/virt-make-fs.pl:129
29252 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29253 msgstr ""
29254
29255 # type: textblock
29256 #: ../tools/virt-make-fs.pl:131
29257 msgid ""
29258 "Adding a partition can make the disk image more compatible with certain "
29259 "virtualized operating systems which don't expect to see a filesystem "
29260 "directly located on a block device (Linux doesn't care and will happily "
29261 "handle both types)."
29262 msgstr ""
29263
29264 # type: textblock
29265 #: ../tools/virt-make-fs.pl:136
29266 msgid ""
29267 "On the other hand, if you have a partition table then the output image is no "
29268 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29269 "directly on a partitioned disk image.  (However libguestfs tools such as "
29270 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29271 msgstr ""
29272
29273 # type: textblock
29274 #: ../tools/virt-make-fs.pl:144
29275 msgid "Add an MBR partition:"
29276 msgstr ""
29277
29278 # type: verbatim
29279 #: ../tools/virt-make-fs.pl:146
29280 #, no-wrap
29281 msgid ""
29282 " virt-make-fs --partition -- input disk.img\n"
29283 "\n"
29284 msgstr ""
29285
29286 # type: textblock
29287 #: ../tools/virt-make-fs.pl:148
29288 msgid ""
29289 "If the output disk image could be terabyte-sized or larger, it's better to "
29290 "use an EFI/GPT-compatible partition table:"
29291 msgstr ""
29292
29293 # type: verbatim
29294 #: ../tools/virt-make-fs.pl:151
29295 #, no-wrap
29296 msgid ""
29297 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29298 "\n"
29299 msgstr ""
29300
29301 # type: textblock
29302 #: ../tools/virt-make-fs.pl:179
29303 msgid "Enable debugging information."
29304 msgstr ""
29305
29306 # type: =item
29307 #: ../tools/virt-make-fs.pl:185
29308 msgid "B<--size=E<lt>NE<gt>>"
29309 msgstr ""
29310
29311 # type: =item
29312 #: ../tools/virt-make-fs.pl:187
29313 msgid "B<--size=+E<lt>NE<gt>>"
29314 msgstr ""
29315
29316 # type: =item
29317 #: ../tools/virt-make-fs.pl:189
29318 msgid "B<-s E<lt>NE<gt>>"
29319 msgstr ""
29320
29321 # type: =item
29322 #: ../tools/virt-make-fs.pl:191
29323 msgid "B<-s +E<lt>NE<gt>>"
29324 msgstr ""
29325
29326 # type: textblock
29327 #: ../tools/virt-make-fs.pl:193
29328 msgid ""
29329 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29330 msgstr ""
29331
29332 # type: textblock
29333 #: ../tools/virt-make-fs.pl:196
29334 msgid ""
29335 "If this option is I<not> given, then the output image will be just large "
29336 "enough to contain all the files, with not much wasted space."
29337 msgstr ""
29338
29339 # type: textblock
29340 #: ../tools/virt-make-fs.pl:199
29341 msgid ""
29342 "To choose a fixed size output disk, specify an absolute number followed by b/"
29343 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29344 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29345 "files, else you will get an error."
29346 msgstr ""
29347
29348 # type: textblock
29349 #: ../tools/virt-make-fs.pl:204
29350 msgid ""
29351 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
29352 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29353 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29354 "the input files, and (approximately) an extra 200 MB free space."
29355 msgstr ""
29356
29357 # type: textblock
29358 #: ../tools/virt-make-fs.pl:210
29359 msgid ""
29360 "Note that virt-make-fs estimates free space, and therefore will not produce "
29361 "filesystems containing precisely the free space requested.  (It is much more "
29362 "expensive and time-consuming to produce a filesystem which has precisely the "
29363 "desired free space)."
29364 msgstr ""
29365
29366 # type: =item
29367 #: ../tools/virt-make-fs.pl:219
29368 msgid "B<--format=E<lt>fmtE<gt>>"
29369 msgstr ""
29370
29371 # type: =item
29372 #: ../tools/virt-make-fs.pl:221
29373 msgid "B<-F E<lt>fmtE<gt>>"
29374 msgstr ""
29375
29376 # type: textblock
29377 #: ../tools/virt-make-fs.pl:223
29378 msgid "Choose the output disk image format."
29379 msgstr ""
29380
29381 # type: textblock
29382 #: ../tools/virt-make-fs.pl:225
29383 msgid "The default is C<raw> (raw disk image)."
29384 msgstr ""
29385
29386 # type: textblock
29387 #: ../tools/virt-make-fs.pl:227
29388 msgid ""
29389 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29390 "that would really make sense here is C<qcow2>."
29391 msgstr ""
29392
29393 # type: =item
29394 #: ../tools/virt-make-fs.pl:234
29395 msgid "B<--type=E<lt>fsE<gt>>"
29396 msgstr ""
29397
29398 # type: =item
29399 #: ../tools/virt-make-fs.pl:236
29400 msgid "B<-t E<lt>fsE<gt>>"
29401 msgstr ""
29402
29403 # type: textblock
29404 #: ../tools/virt-make-fs.pl:238
29405 msgid "Choose the output filesystem type."
29406 msgstr ""
29407
29408 # type: textblock
29409 #: ../tools/virt-make-fs.pl:240
29410 msgid "The default is C<ext2>."
29411 msgstr ""
29412
29413 # type: textblock
29414 #: ../tools/virt-make-fs.pl:242
29415 msgid ""
29416 "Any filesystem which is supported read-write by libguestfs can be used here."
29417 msgstr ""
29418
29419 # type: =item
29420 #: ../tools/virt-make-fs.pl:249
29421 msgid "B<--partition>"
29422 msgstr ""
29423
29424 # type: =item
29425 #: ../tools/virt-make-fs.pl:251
29426 msgid "B<--partition=E<lt>parttypeE<gt>>"
29427 msgstr ""
29428
29429 # type: textblock
29430 #: ../tools/virt-make-fs.pl:253
29431 msgid ""
29432 "If specified, this flag adds an MBR partition table to the output disk image."
29433 msgstr ""
29434
29435 # type: textblock
29436 #: ../tools/virt-make-fs.pl:256
29437 msgid ""
29438 "You can change the partition table type, eg. C<--partition=gpt> for large "
29439 "disks."
29440 msgstr ""
29441
29442 # type: textblock
29443 #: ../tools/virt-make-fs.pl:259
29444 msgid ""
29445 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29446 "might consider the next parameter to be the partition type.  For example:"
29447 msgstr ""
29448
29449 # type: verbatim
29450 #: ../tools/virt-make-fs.pl:263
29451 #, no-wrap
29452 msgid ""
29453 " virt-make-fs --partition input.tar ...\n"
29454 "\n"
29455 msgstr ""
29456
29457 # type: textblock
29458 #: ../tools/virt-make-fs.pl:265
29459 msgid ""
29460 "would cause virt-make-fs to think you wanted to use a partition type of "
29461 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29462 "dash) between options and the input file argument:"
29463 msgstr ""
29464
29465 # type: verbatim
29466 #: ../tools/virt-make-fs.pl:269
29467 #, no-wrap
29468 msgid ""
29469 " virt-make-fs --partition -- input.tar ...\n"
29470 "\n"
29471 msgstr ""
29472
29473 # type: textblock
29474 #: ../tools/virt-make-fs.pl:536
29475 msgid ""
29476 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29477 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29478 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29479 msgstr ""
29480
29481 # type: verbatim
29482 #: ../tools/virt-make-fs.pl:553
29483 #, no-wrap
29484 msgid ""
29485 " export LIBGUESTFS_DEBUG=1\n"
29486 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29487 "\n"
29488 msgstr ""
29489
29490 # type: textblock
29491 #: ../tools/virt-make-fs.pl:556
29492 msgid ""
29493 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29494 "redhat.com/>"
29495 msgstr ""
29496
29497 # type: textblock
29498 #: ../tools/virt-list-partitions.pl:32
29499 msgid ""
29500 "virt-list-partitions - List partitions in a virtual machine or disk image"
29501 msgstr ""
29502
29503 # type: verbatim
29504 #: ../tools/virt-list-partitions.pl:36
29505 #, no-wrap
29506 msgid ""
29507 " virt-list-partitions [--options] domname\n"
29508 "\n"
29509 msgstr ""
29510
29511 # type: verbatim
29512 #: ../tools/virt-list-partitions.pl:38
29513 #, no-wrap
29514 msgid ""
29515 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29516 "\n"
29517 msgstr ""
29518
29519 # type: textblock
29520 #: ../tools/virt-list-partitions.pl:42
29521 msgid ""
29522 "C<virt-list-partitions> is a command line tool to list the partitions that "
29523 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29524 "first step to using L<virt-resize(1)>."
29525 msgstr ""
29526
29527 # type: textblock
29528 #: ../tools/virt-list-partitions.pl:47
29529 msgid ""
29530 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29531 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29532 "> tool."
29533 msgstr ""
29534
29535 # type: =item
29536 #: ../tools/virt-list-partitions.pl:104
29537 msgid "B<-h> | B<--human-readable>"
29538 msgstr ""
29539
29540 # type: textblock
29541 #: ../tools/virt-list-partitions.pl:106
29542 msgid "Show sizes in human-readable form (eg. \"1G\")."
29543 msgstr ""
29544
29545 # type: textblock
29546 #: ../tools/virt-list-partitions.pl:114
29547 msgid ""
29548 "With this option, C<virt-list-partitions> displays the type and size of each "
29549 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29550 msgstr ""
29551
29552 # type: =item
29553 #: ../tools/virt-list-partitions.pl:121
29554 msgid "B<-t> | B<--total>"
29555 msgstr ""
29556
29557 # type: textblock
29558 #: ../tools/virt-list-partitions.pl:123
29559 msgid ""
29560 "Display the total size of each block device (as a separate row or rows)."
29561 msgstr ""
29562
29563 # type: textblock
29564 #: ../tools/virt-list-partitions.pl:256
29565 msgid ""
29566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
29567 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
29568 "libguestfs.org/>."
29569 msgstr ""