Version 1.7.8.
[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-15 23:02+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:1521 ../src/guestfs.pod:1526 ../src/guestfs.pod:1530
787 #: ../src/guestfs.pod:1640 ../src/guestfs.pod:1645 ../src/guestfs.pod:1649
788 #: ../src/guestfs.pod:1993 ../src/guestfs.pod:1999 ../src/guestfs.pod:2004
789 #: ../src/guestfs.pod:2010 ../src/guestfs.pod:2117 ../src/guestfs.pod:2121
790 #: ../src/guestfs.pod:2125 ../src/guestfs.pod:2129
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:1142 ../src/guestfs.pod:1273
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:1146 ../src/guestfs.pod:1277
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:1283
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 "The inspection API parses guest configuration using two external libraries: "
2170 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2171 "designed to be robust in the face of malicious data, although denial of "
2172 "service attacks are still possible, for example with oversized configuration "
2173 "files."
2174 msgstr ""
2175
2176 # type: =head2
2177 #: ../src/guestfs.pod:1104
2178 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1106
2183 msgid ""
2184 "Be very cautious about running commands from the guest.  By running a "
2185 "command in the guest, you are giving CPU time to a binary that you do not "
2186 "control, under the same user account as the library, albeit wrapped in qemu "
2187 "virtualization.  More information and alternatives can be found in the "
2188 "section L</RUNNING COMMANDS>."
2189 msgstr ""
2190
2191 # type: =head2
2192 #: ../src/guestfs.pod:1112
2193 msgid "CVE-2010-3851"
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1114
2198 msgid "https://bugzilla.redhat.com/642934"
2199 msgstr ""
2200
2201 # type: textblock
2202 #: ../src/guestfs.pod:1116
2203 msgid ""
2204 "This security bug concerns the automatic disk format detection that qemu "
2205 "does on disk images."
2206 msgstr ""
2207
2208 # type: textblock
2209 #: ../src/guestfs.pod:1119
2210 msgid ""
2211 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2212 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2213 "for one of the known headers, and if none is found then assuming the disk "
2214 "image must be raw."
2215 msgstr ""
2216
2217 # type: textblock
2218 #: ../src/guestfs.pod:1124
2219 msgid ""
2220 "This allows a guest which has been given a raw disk image to write some "
2221 "other header.  At next boot (or when the disk image is accessed by "
2222 "libguestfs) qemu would do autodetection and think the disk image format was, "
2223 "say, qcow2 based on the header written by the guest."
2224 msgstr ""
2225
2226 # type: textblock
2227 #: ../src/guestfs.pod:1129
2228 msgid ""
2229 "This in itself would not be a problem, but qcow2 offers many features, one "
2230 "of which is to allow a disk image to refer to another image (called the "
2231 "\"backing disk\").  It does this by placing the path to the backing disk "
2232 "into the qcow2 header.  This path is not validated and could point to any "
2233 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2234 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2235 "control of the attacker."
2236 msgstr ""
2237
2238 # type: textblock
2239 #: ../src/guestfs.pod:1137
2240 msgid ""
2241 "In libguestfs this is rather hard to exploit except under two circumstances:"
2242 msgstr ""
2243
2244 # type: textblock
2245 #: ../src/guestfs.pod:1144
2246 msgid "You have enabled the network or have opened the disk in write mode."
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1148
2251 msgid ""
2252 "You are also running untrusted code from the guest (see L</RUNNING "
2253 "COMMANDS>)."
2254 msgstr ""
2255
2256 # type: textblock
2257 #: ../src/guestfs.pod:1153
2258 msgid ""
2259 "The way to avoid this is to specify the expected disk format when adding "
2260 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2261 "should always do this if the disk is raw format, and it's a good idea for "
2262 "other cases too."
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1158
2267 msgid ""
2268 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2269 "format is fetched from libvirt and passed through."
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1161
2274 msgid ""
2275 "For libguestfs tools, use the I<--format> command line parameter as "
2276 "appropriate."
2277 msgstr ""
2278
2279 # type: =head1
2280 #: ../src/guestfs.pod:1164
2281 msgid "CONNECTION MANAGEMENT"
2282 msgstr ""
2283
2284 # type: =head2
2285 #: ../src/guestfs.pod:1166
2286 msgid "guestfs_h *"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1168
2291 msgid ""
2292 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2293 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2294 "handle and release all resources used."
2295 msgstr ""
2296
2297 # type: textblock
2298 #: ../src/guestfs.pod:1172
2299 msgid ""
2300 "For information on using multiple handles and threads, see the section L</"
2301 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2302 msgstr ""
2303
2304 # type: =head2
2305 #: ../src/guestfs.pod:1175
2306 msgid "guestfs_create"
2307 msgstr ""
2308
2309 # type: verbatim
2310 #: ../src/guestfs.pod:1177
2311 #, no-wrap
2312 msgid ""
2313 " guestfs_h *guestfs_create (void);\n"
2314 "\n"
2315 msgstr ""
2316
2317 # type: textblock
2318 #: ../src/guestfs.pod:1179
2319 msgid "Create a connection handle."
2320 msgstr ""
2321
2322 # type: textblock
2323 #: ../src/guestfs.pod:1181
2324 msgid ""
2325 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2326 "on the handle at least once."
2327 msgstr ""
2328
2329 # type: textblock
2330 #: ../src/guestfs.pod:1184
2331 msgid ""
2332 "This function returns a non-NULL pointer to a handle on success or NULL on "
2333 "error."
2334 msgstr ""
2335
2336 # type: textblock
2337 #: ../src/guestfs.pod:1187
2338 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2339 msgstr ""
2340
2341 # type: textblock
2342 #: ../src/guestfs.pod:1189
2343 msgid ""
2344 "You may also want to configure error handling for the handle.  See L</ERROR "
2345 "HANDLING> section below."
2346 msgstr ""
2347
2348 # type: =head2
2349 #: ../src/guestfs.pod:1192
2350 msgid "guestfs_close"
2351 msgstr ""
2352
2353 # type: verbatim
2354 #: ../src/guestfs.pod:1194
2355 #, no-wrap
2356 msgid ""
2357 " void guestfs_close (guestfs_h *g);\n"
2358 "\n"
2359 msgstr ""
2360
2361 # type: textblock
2362 #: ../src/guestfs.pod:1196
2363 msgid "This closes the connection handle and frees up all resources used."
2364 msgstr ""
2365
2366 # type: =head1
2367 #: ../src/guestfs.pod:1198
2368 msgid "ERROR HANDLING"
2369 msgstr ""
2370
2371 # type: textblock
2372 #: ../src/guestfs.pod:1200
2373 msgid ""
2374 "API functions can return errors.  For example, almost all functions that "
2375 "return C<int> will return C<-1> to indicate an error."
2376 msgstr ""
2377
2378 # type: textblock
2379 #: ../src/guestfs.pod:1203
2380 msgid ""
2381 "Additional information is available for errors: an error message string and "
2382 "optionally an error number (errno) if the thing that failed was a system "
2383 "call."
2384 msgstr ""
2385
2386 # type: textblock
2387 #: ../src/guestfs.pod:1207
2388 msgid ""
2389 "You can get at the additional information about the last error on the handle "
2390 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2391 "up an error handler with L</guestfs_set_error_handler>."
2392 msgstr ""
2393
2394 # type: textblock
2395 #: ../src/guestfs.pod:1212
2396 msgid ""
2397 "When the handle is created, a default error handler is installed which "
2398 "prints the error message string to C<stderr>.  For small short-running "
2399 "command line programs it is sufficient to do:"
2400 msgstr ""
2401
2402 # type: verbatim
2403 #: ../src/guestfs.pod:1216
2404 #, no-wrap
2405 msgid ""
2406 " if (guestfs_launch (g) == -1)\n"
2407 "   exit (EXIT_FAILURE);\n"
2408 "\n"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1219
2413 msgid ""
2414 "since the default error handler will ensure that an error message has been "
2415 "printed to C<stderr> before the program exits."
2416 msgstr ""
2417
2418 # type: textblock
2419 #: ../src/guestfs.pod:1222
2420 msgid ""
2421 "For other programs the caller will almost certainly want to install an "
2422 "alternate error handler or do error handling in-line like this:"
2423 msgstr ""
2424
2425 # type: verbatim
2426 #: ../src/guestfs.pod:1225
2427 #, no-wrap
2428 msgid ""
2429 " g = guestfs_create ();\n"
2430 " \n"
2431 msgstr ""
2432
2433 # type: verbatim
2434 #: ../src/guestfs.pod:1227
2435 #, no-wrap
2436 msgid ""
2437 " /* This disables the default behaviour of printing errors\n"
2438 "    on stderr. */\n"
2439 " guestfs_set_error_handler (g, NULL, NULL);\n"
2440 " \n"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1231
2445 #, no-wrap
2446 msgid ""
2447 " if (guestfs_launch (g) == -1) {\n"
2448 "   /* Examine the error message and print it etc. */\n"
2449 "   char *msg = guestfs_last_error (g);\n"
2450 "   int errnum = guestfs_last_errno (g);\n"
2451 "   fprintf (stderr, \"%s\\n\", msg);\n"
2452 "   /* ... */\n"
2453 "  }\n"
2454 "\n"
2455 msgstr ""
2456
2457 # type: textblock
2458 #: ../src/guestfs.pod:1239
2459 msgid ""
2460 "Out of memory errors are handled differently.  The default action is to call "
2461 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2462 "guestfs_set_out_of_memory_handler>."
2463 msgstr ""
2464
2465 # type: textblock
2466 #: ../src/guestfs.pod:1243
2467 msgid ""
2468 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2469 "because there is no handle if this happens there is no way to get additional "
2470 "error information.  However L</guestfs_create> is supposed to be a "
2471 "lightweight operation which can only fail because of insufficient memory (it "
2472 "returns NULL in this case)."
2473 msgstr ""
2474
2475 # type: =head2
2476 #: ../src/guestfs.pod:1249
2477 msgid "guestfs_last_error"
2478 msgstr ""
2479
2480 # type: verbatim
2481 #: ../src/guestfs.pod:1251
2482 #, no-wrap
2483 msgid ""
2484 " const char *guestfs_last_error (guestfs_h *g);\n"
2485 "\n"
2486 msgstr ""
2487
2488 # type: textblock
2489 #: ../src/guestfs.pod:1253
2490 msgid ""
2491 "This returns the last error message that happened on C<g>.  If there has not "
2492 "been an error since the handle was created, then this returns C<NULL>."
2493 msgstr ""
2494
2495 # type: textblock
2496 #: ../src/guestfs.pod:1257
2497 msgid ""
2498 "The lifetime of the returned string is until the next error occurs, or L</"
2499 "guestfs_close> is called."
2500 msgstr ""
2501
2502 # type: =head2
2503 #: ../src/guestfs.pod:1260
2504 msgid "guestfs_last_errno"
2505 msgstr ""
2506
2507 # type: verbatim
2508 #: ../src/guestfs.pod:1262
2509 #, no-wrap
2510 msgid ""
2511 " int guestfs_last_errno (guestfs_h *g);\n"
2512 "\n"
2513 msgstr ""
2514
2515 # type: textblock
2516 #: ../src/guestfs.pod:1264
2517 msgid "This returns the last error number (errno) that happened on C<g>."
2518 msgstr ""
2519
2520 # type: textblock
2521 #: ../src/guestfs.pod:1266
2522 msgid "If successful, an errno integer not equal to zero is returned."
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1268
2527 msgid ""
2528 "If no error, this returns 0.  This call can return 0 in three situations:"
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1275
2533 msgid "There has not been any error on the handle."
2534 msgstr ""
2535
2536 # type: textblock
2537 #: ../src/guestfs.pod:1279
2538 msgid ""
2539 "There has been an error but the errno was meaningless.  This corresponds to "
2540 "the case where the error did not come from a failed system call, but for "
2541 "some other reason."
2542 msgstr ""
2543
2544 # type: textblock
2545 #: ../src/guestfs.pod:1285
2546 msgid ""
2547 "There was an error from a failed system call, but for some reason the errno "
2548 "was not captured and returned.  This usually indicates a bug in libguestfs."
2549 msgstr ""
2550
2551 # type: textblock
2552 #: ../src/guestfs.pod:1291
2553 msgid ""
2554 "Libguestfs tries to convert the errno from inside the applicance into a "
2555 "corresponding errno for the caller (not entirely trivial: the appliance "
2556 "might be running a completely different operating system from the library "
2557 "and error numbers are not standardized across Un*xen).  If this could not be "
2558 "done, then the error is translated to C<EINVAL>.  In practice this should "
2559 "only happen in very rare circumstances."
2560 msgstr ""
2561
2562 # type: =head2
2563 #: ../src/guestfs.pod:1299
2564 msgid "guestfs_set_error_handler"
2565 msgstr ""
2566
2567 # type: verbatim
2568 #: ../src/guestfs.pod:1301
2569 #, no-wrap
2570 msgid ""
2571 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2572 "                                           void *opaque,\n"
2573 "                                           const char *msg);\n"
2574 " void guestfs_set_error_handler (guestfs_h *g,\n"
2575 "                                 guestfs_error_handler_cb cb,\n"
2576 "                                 void *opaque);\n"
2577 "\n"
2578 msgstr ""
2579
2580 # type: textblock
2581 #: ../src/guestfs.pod:1308
2582 msgid ""
2583 "The callback C<cb> will be called if there is an error.  The parameters "
2584 "passed to the callback are an opaque data pointer and the error message "
2585 "string."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1312
2590 msgid ""
2591 "C<errno> is not passed to the callback.  To get that the callback must call "
2592 "L</guestfs_last_errno>."
2593 msgstr ""
2594
2595 # type: textblock
2596 #: ../src/guestfs.pod:1315
2597 msgid ""
2598 "Note that the message string C<msg> is freed as soon as the callback "
2599 "function returns, so if you want to stash it somewhere you must make your "
2600 "own copy."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1319
2605 msgid "The default handler prints messages on C<stderr>."
2606 msgstr ""
2607
2608 # type: textblock
2609 #: ../src/guestfs.pod:1321
2610 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2611 msgstr ""
2612
2613 # type: =head2
2614 #: ../src/guestfs.pod:1323
2615 msgid "guestfs_get_error_handler"
2616 msgstr ""
2617
2618 # type: verbatim
2619 #: ../src/guestfs.pod:1325
2620 #, no-wrap
2621 msgid ""
2622 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2623 "                                                     void **opaque_rtn);\n"
2624 "\n"
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1328
2629 msgid "Returns the current error handler callback."
2630 msgstr ""
2631
2632 # type: =head2
2633 #: ../src/guestfs.pod:1330
2634 msgid "guestfs_set_out_of_memory_handler"
2635 msgstr ""
2636
2637 # type: verbatim
2638 #: ../src/guestfs.pod:1332
2639 #, no-wrap
2640 msgid ""
2641 " typedef void (*guestfs_abort_cb) (void);\n"
2642 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2643 "                                        guestfs_abort_cb);\n"
2644 "\n"
2645 msgstr ""
2646
2647 # type: textblock
2648 #: ../src/guestfs.pod:1336
2649 msgid ""
2650 "The callback C<cb> will be called if there is an out of memory situation.  "
2651 "I<Note this callback must not return>."
2652 msgstr ""
2653
2654 # type: textblock
2655 #: ../src/guestfs.pod:1339
2656 msgid "The default is to call L<abort(3)>."
2657 msgstr ""
2658
2659 # type: textblock
2660 #: ../src/guestfs.pod:1341
2661 msgid ""
2662 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2663 msgstr ""
2664
2665 # type: =head2
2666 #: ../src/guestfs.pod:1344
2667 msgid "guestfs_get_out_of_memory_handler"
2668 msgstr ""
2669
2670 # type: verbatim
2671 #: ../src/guestfs.pod:1346
2672 #, no-wrap
2673 msgid ""
2674 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2675 "\n"
2676 msgstr ""
2677
2678 # type: textblock
2679 #: ../src/guestfs.pod:1348
2680 msgid "This returns the current out of memory handler."
2681 msgstr ""
2682
2683 # type: =head1
2684 #: ../src/guestfs.pod:1350
2685 msgid "API CALLS"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1352 ../fish/guestfish.pod:907
2690 msgid "@ACTIONS@"
2691 msgstr ""
2692
2693 # type: =head1
2694 #: ../src/guestfs.pod:1354
2695 msgid "STRUCTURES"
2696 msgstr ""
2697
2698 # type: textblock
2699 #: ../src/guestfs.pod:1356
2700 msgid "@STRUCTS@"
2701 msgstr ""
2702
2703 # type: =head1
2704 #: ../src/guestfs.pod:1358
2705 msgid "AVAILABILITY"
2706 msgstr ""
2707
2708 # type: =head2
2709 #: ../src/guestfs.pod:1360
2710 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1362
2715 msgid ""
2716 "Using L</guestfs_available> you can test availability of the following "
2717 "groups of functions.  This test queries the appliance to see if the "
2718 "appliance you are currently using supports the functionality."
2719 msgstr ""
2720
2721 # type: textblock
2722 #: ../src/guestfs.pod:1367
2723 msgid "@AVAILABILITY@"
2724 msgstr ""
2725
2726 # type: =head2
2727 #: ../src/guestfs.pod:1369
2728 msgid "GUESTFISH supported COMMAND"
2729 msgstr ""
2730
2731 # type: textblock
2732 #: ../src/guestfs.pod:1371
2733 msgid ""
2734 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2735 "prints out the available groups and whether they are supported by this build "
2736 "of libguestfs.  Note however that you have to do C<run> first."
2737 msgstr ""
2738
2739 # type: =head2
2740 #: ../src/guestfs.pod:1376
2741 msgid "SINGLE CALLS AT COMPILE TIME"
2742 msgstr ""
2743
2744 # type: textblock
2745 #: ../src/guestfs.pod:1378
2746 msgid ""
2747 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2748 "function, such as:"
2749 msgstr ""
2750
2751 # type: verbatim
2752 #: ../src/guestfs.pod:1381
2753 #, no-wrap
2754 msgid ""
2755 " #define LIBGUESTFS_HAVE_DD 1\n"
2756 "\n"
2757 msgstr ""
2758
2759 # type: textblock
2760 #: ../src/guestfs.pod:1383
2761 msgid "if L</guestfs_dd> is available."
2762 msgstr ""
2763
2764 # type: textblock
2765 #: ../src/guestfs.pod:1385
2766 msgid ""
2767 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2768 "function is available at compile time, we recommended using build tools such "
2769 "as autoconf or cmake.  For example in autotools you could use:"
2770 msgstr ""
2771
2772 # type: verbatim
2773 #: ../src/guestfs.pod:1390
2774 #, no-wrap
2775 msgid ""
2776 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2777 " AC_CHECK_FUNCS([guestfs_dd])\n"
2778 "\n"
2779 msgstr ""
2780
2781 # type: textblock
2782 #: ../src/guestfs.pod:1393
2783 msgid ""
2784 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2785 "in your program."
2786 msgstr ""
2787
2788 # type: =head2
2789 #: ../src/guestfs.pod:1396
2790 msgid "SINGLE CALLS AT RUN TIME"
2791 msgstr ""
2792
2793 # type: textblock
2794 #: ../src/guestfs.pod:1398
2795 msgid ""
2796 "Testing at compile time doesn't guarantee that a function really exists in "
2797 "the library.  The reason is that you might be dynamically linked against a "
2798 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2799 "This situation unfortunately results in a segmentation fault, which is a "
2800 "shortcoming of the C dynamic linking system itself."
2801 msgstr ""
2802
2803 # type: textblock
2804 #: ../src/guestfs.pod:1405
2805 msgid ""
2806 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2807 "in this example program (note that you still need the compile time check as "
2808 "well):"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1409
2813 #, no-wrap
2814 msgid ""
2815 " #include <stdio.h>\n"
2816 " #include <stdlib.h>\n"
2817 " #include <unistd.h>\n"
2818 " #include <dlfcn.h>\n"
2819 " #include <guestfs.h>\n"
2820 " \n"
2821 msgstr ""
2822
2823 # type: verbatim
2824 #: ../src/guestfs.pod:1415
2825 #, no-wrap
2826 msgid ""
2827 " main ()\n"
2828 " {\n"
2829 " #ifdef LIBGUESTFS_HAVE_DD\n"
2830 "   void *dl;\n"
2831 "   int has_function;\n"
2832 " \n"
2833 msgstr ""
2834
2835 # type: verbatim
2836 #: ../src/guestfs.pod:1421
2837 #, no-wrap
2838 msgid ""
2839 "   /* Test if the function guestfs_dd is really available. */\n"
2840 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2841 "   if (!dl) {\n"
2842 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2843 "     exit (EXIT_FAILURE);\n"
2844 "   }\n"
2845 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2846 "   dlclose (dl);\n"
2847 " \n"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1430
2852 #, no-wrap
2853 msgid ""
2854 "   if (!has_function)\n"
2855 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2856 "   else {\n"
2857 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2858 "     /* Now it's safe to call\n"
2859 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2860 "     */\n"
2861 "   }\n"
2862 " #else\n"
2863 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2864 " #endif\n"
2865 "  }\n"
2866 "\n"
2867 msgstr ""
2868
2869 # type: textblock
2870 #: ../src/guestfs.pod:1443
2871 msgid ""
2872 "You may think the above is an awful lot of hassle, and it is.  There are "
2873 "other ways outside of the C linking system to ensure that this kind of "
2874 "incompatibility never arises, such as using package versioning:"
2875 msgstr ""
2876
2877 # type: verbatim
2878 #: ../src/guestfs.pod:1448
2879 #, no-wrap
2880 msgid ""
2881 " Requires: libguestfs >= 1.0.80\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: =head1
2886 #: ../src/guestfs.pod:1450
2887 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2888 msgstr ""
2889
2890 # type: textblock
2891 #: ../src/guestfs.pod:1452
2892 msgid ""
2893 "A recent feature of the API is the introduction of calls which take optional "
2894 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2895 "takes variable arguments (ie. C<...>), as in this example:"
2896 msgstr ""
2897
2898 # type: verbatim
2899 #: ../src/guestfs.pod:1457
2900 #, no-wrap
2901 msgid ""
2902 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2903 "\n"
2904 msgstr ""
2905
2906 # type: textblock
2907 #: ../src/guestfs.pod:1459
2908 msgid ""
2909 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2910 "call with no optional arguments specified:"
2911 msgstr ""
2912
2913 # type: verbatim
2914 #: ../src/guestfs.pod:1462
2915 #, no-wrap
2916 msgid ""
2917 " guestfs_add_drive_opts (g, filename, -1);\n"
2918 "\n"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1464
2923 msgid "With a single optional argument:"
2924 msgstr ""
2925
2926 # type: verbatim
2927 #: ../src/guestfs.pod:1466
2928 #, no-wrap
2929 msgid ""
2930 " guestfs_add_drive_opts (g, filename,\n"
2931 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2932 "                         -1);\n"
2933 "\n"
2934 msgstr ""
2935
2936 # type: textblock
2937 #: ../src/guestfs.pod:1470
2938 msgid "With two:"
2939 msgstr ""
2940
2941 # type: verbatim
2942 #: ../src/guestfs.pod:1472
2943 #, no-wrap
2944 msgid ""
2945 " guestfs_add_drive_opts (g, filename,\n"
2946 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2948 "                         -1);\n"
2949 "\n"
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1477
2954 msgid ""
2955 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2956 "happen!"
2957 msgstr ""
2958
2959 # type: =head2
2960 #: ../src/guestfs.pod:1480
2961 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2962 msgstr ""
2963
2964 # type: textblock
2965 #: ../src/guestfs.pod:1482
2966 msgid ""
2967 "The second variant has the same name with the suffix C<_va>, which works the "
2968 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2969 "example function, this is declared:"
2970 msgstr ""
2971
2972 # type: verbatim
2973 #: ../src/guestfs.pod:1486
2974 #, no-wrap
2975 msgid ""
2976 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2977 "                                va_list args);\n"
2978 "\n"
2979 msgstr ""
2980
2981 # type: =head2
2982 #: ../src/guestfs.pod:1489
2983 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1491
2988 msgid ""
2989 "The third variant is useful where you need to construct these calls.  You "
2990 "pass in a structure where you fill in the optional fields.  The structure "
2991 "has a bitmask as the first element which you must set to indicate which "
2992 "fields you have filled in.  For our example function the structure and call "
2993 "are declared:"
2994 msgstr ""
2995
2996 # type: verbatim
2997 #: ../src/guestfs.pod:1497
2998 #, no-wrap
2999 msgid ""
3000 " struct guestfs_add_drive_opts_argv {\n"
3001 "   uint64_t bitmask;\n"
3002 "   int readonly;\n"
3003 "   const char *format;\n"
3004 "   /* ... */\n"
3005 " };\n"
3006 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3007 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3008 "\n"
3009 msgstr ""
3010
3011 # type: textblock
3012 #: ../src/guestfs.pod:1506
3013 msgid "You could call it like this:"
3014 msgstr ""
3015
3016 # type: verbatim
3017 #: ../src/guestfs.pod:1508
3018 #, no-wrap
3019 msgid ""
3020 " struct guestfs_add_drive_opts_argv optargs = {\n"
3021 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3022 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3023 "   .readonly = 1,\n"
3024 "   .format = \"qcow2\"\n"
3025 " };\n"
3026 " \n"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #: ../src/guestfs.pod:1515
3031 #, no-wrap
3032 msgid ""
3033 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1517 ../src/guestfs-actions.pod:11
3039 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3040 #: ../fish/guestfish-actions.pod:1255
3041 msgid "Notes:"
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1523
3046 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1528
3051 msgid "You do not need to fill in all fields of the structure."
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1532
3056 msgid ""
3057 "There must be a one-to-one correspondence between fields of the structure "
3058 "that are filled in, and bits set in the bitmask."
3059 msgstr ""
3060
3061 # type: =head2
3062 #: ../src/guestfs.pod:1537
3063 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3064 msgstr ""
3065
3066 # type: textblock
3067 #: ../src/guestfs.pod:1539
3068 msgid ""
3069 "In other languages, optional arguments are expressed in the way that is "
3070 "natural for that language.  We refer you to the language-specific "
3071 "documentation for more details on that."
3072 msgstr ""
3073
3074 # type: textblock
3075 #: ../src/guestfs.pod:1543
3076 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3077 msgstr ""
3078
3079 # type: =head2
3080 #: ../src/guestfs.pod:1545
3081 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3082 msgstr ""
3083
3084 # type: textblock
3085 #: ../src/guestfs.pod:1547
3086 msgid ""
3087 "The child process generates events in some situations.  Current events "
3088 "include: receiving a log message, the child process exits."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1550
3093 msgid ""
3094 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3095 "types of events."
3096 msgstr ""
3097
3098 # type: textblock
3099 #: ../src/guestfs.pod:1553
3100 msgid ""
3101 "Only I<one callback of each type> can be registered for each handle.  "
3102 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3103 "that type.  Cancel all callbacks of this type by calling this function with "
3104 "C<cb> set to C<NULL>."
3105 msgstr ""
3106
3107 # type: =head2
3108 #: ../src/guestfs.pod:1558
3109 msgid "guestfs_set_log_message_callback"
3110 msgstr ""
3111
3112 # type: verbatim
3113 #: ../src/guestfs.pod:1560
3114 #, no-wrap
3115 msgid ""
3116 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3117 "                                         char *buf, int len);\n"
3118 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3119 "                                        guestfs_log_message_cb cb,\n"
3120 "                                        void *opaque);\n"
3121 "\n"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1566
3126 msgid ""
3127 "The callback function C<cb> will be called whenever qemu or the guest writes "
3128 "anything to the console."
3129 msgstr ""
3130
3131 # type: textblock
3132 #: ../src/guestfs.pod:1569
3133 msgid "Use this function to capture kernel messages and similar."
3134 msgstr ""
3135
3136 # type: textblock
3137 #: ../src/guestfs.pod:1571
3138 msgid ""
3139 "Normally there is no log message handler, and log messages are just "
3140 "discarded."
3141 msgstr ""
3142
3143 # type: =head2
3144 #: ../src/guestfs.pod:1574
3145 msgid "guestfs_set_subprocess_quit_callback"
3146 msgstr ""
3147
3148 # type: verbatim
3149 #: ../src/guestfs.pod:1576
3150 #, no-wrap
3151 msgid ""
3152 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3153 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3154 "                                            guestfs_subprocess_quit_cb cb,\n"
3155 "                                            void *opaque);\n"
3156 "\n"
3157 msgstr ""
3158
3159 # type: textblock
3160 #: ../src/guestfs.pod:1581
3161 msgid ""
3162 "The callback function C<cb> will be called when the child process quits, "
3163 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3164 "corresponds to a transition from any state to the CONFIG state)."
3165 msgstr ""
3166
3167 # type: =head2
3168 #: ../src/guestfs.pod:1586
3169 msgid "guestfs_set_launch_done_callback"
3170 msgstr ""
3171
3172 # type: verbatim
3173 #: ../src/guestfs.pod:1588
3174 #, no-wrap
3175 msgid ""
3176 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3177 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3178 "                                        guestfs_launch_done_cb cb,\n"
3179 "                                        void *opaque);\n"
3180 "\n"
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1593
3185 msgid ""
3186 "The callback function C<cb> will be called when the child process becomes "
3187 "ready first time after it has been launched.  (This corresponds to a "
3188 "transition from LAUNCHING to the READY state)."
3189 msgstr ""
3190
3191 # type: =head2
3192 #: ../src/guestfs.pod:1597
3193 msgid "guestfs_set_close_callback"
3194 msgstr ""
3195
3196 # type: verbatim
3197 #: ../src/guestfs.pod:1599
3198 #, no-wrap
3199 msgid ""
3200 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3201 " void guestfs_set_close_callback (guestfs_h *g,\n"
3202 "                                  guestfs_close_cb cb,\n"
3203 "                                  void *opaque);\n"
3204 "\n"
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1604
3209 msgid ""
3210 "The callback function C<cb> will be called while the handle is being closed "
3211 "(synchronously from L</guestfs_close>)."
3212 msgstr ""
3213
3214 # type: textblock
3215 #: ../src/guestfs.pod:1607
3216 msgid ""
3217 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3218 "handles that are open when the program exits.  This means that this callback "
3219 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3220 "problems in higher-level languages (eg. if your HLL interpreter has already "
3221 "been cleaned up by the time this is called, and if your callback then jumps "
3222 "into some HLL function)."
3223 msgstr ""
3224
3225 # type: =head2
3226 #: ../src/guestfs.pod:1615
3227 msgid "guestfs_set_progress_callback"
3228 msgstr ""
3229
3230 # type: verbatim
3231 #: ../src/guestfs.pod:1617
3232 #, no-wrap
3233 msgid ""
3234 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3235 "                                      int proc_nr, int serial,\n"
3236 "                                      uint64_t position, uint64_t total);\n"
3237 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3238 "                                     guestfs_progress_cb cb,\n"
3239 "                                     void *opaque);\n"
3240 "\n"
3241 msgstr ""
3242
3243 # type: textblock
3244 #: ../src/guestfs.pod:1624
3245 msgid ""
3246 "Some long-running operations can generate progress messages.  If this "
3247 "callback is registered, then it will be called each time a progress message "
3248 "is generated (usually two seconds after the operation started, and three "
3249 "times per second thereafter until it completes, although the frequency may "
3250 "change in future versions)."
3251 msgstr ""
3252
3253 # type: textblock
3254 #: ../src/guestfs.pod:1630
3255 msgid ""
3256 "The callback receives two numbers: C<position> and C<total>.  The units of "
3257 "C<total> are not defined, although for some operations C<total> may relate "
3258 "in some way to the amount of data to be transferred (eg. in bytes or "
3259 "megabytes), and C<position> may be the portion which has been transferred."
3260 msgstr ""
3261
3262 # type: textblock
3263 #: ../src/guestfs.pod:1636
3264 msgid "The only defined and stable parts of the API are:"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1642
3269 msgid ""
3270 "The callback can display to the user some type of progress bar or indicator "
3271 "which shows the ratio of C<position>:C<total>."
3272 msgstr ""
3273
3274 # type: textblock
3275 #: ../src/guestfs.pod:1647
3276 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1651
3281 msgid ""
3282 "If any progress notification is sent during a call, then a final progress "
3283 "notification is always sent when C<position> = C<total>."
3284 msgstr ""
3285
3286 # type: textblock
3287 #: ../src/guestfs.pod:1654
3288 msgid ""
3289 "This is to simplify caller code, so callers can easily set the progress "
3290 "indicator to \"100%\" at the end of the operation, without requiring special "
3291 "code to detect this case."
3292 msgstr ""
3293
3294 # type: textblock
3295 #: ../src/guestfs.pod:1660
3296 msgid ""
3297 "The callback also receives the procedure number and serial number of the "
3298 "call.  These are only useful for debugging protocol issues, and the callback "
3299 "can normally ignore them.  The callback may want to print these numbers in "
3300 "error messages or debugging messages."
3301 msgstr ""
3302
3303 # type: =head1
3304 #: ../src/guestfs.pod:1665
3305 msgid "PRIVATE DATA AREA"
3306 msgstr ""
3307
3308 # type: textblock
3309 #: ../src/guestfs.pod:1667
3310 msgid ""
3311 "You can attach named pieces of private data to the libguestfs handle, and "
3312 "fetch them by name for the lifetime of the handle.  This is called the "
3313 "private data area and is only available from the C API."
3314 msgstr ""
3315
3316 # type: textblock
3317 #: ../src/guestfs.pod:1671
3318 msgid "To attach a named piece of data, use the following call:"
3319 msgstr ""
3320
3321 # type: verbatim
3322 #: ../src/guestfs.pod:1673
3323 #, no-wrap
3324 msgid ""
3325 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3326 "\n"
3327 msgstr ""
3328
3329 # type: textblock
3330 #: ../src/guestfs.pod:1675
3331 msgid ""
3332 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3333 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3334 "overwritten."
3335 msgstr ""
3336
3337 # type: textblock
3338 #: ../src/guestfs.pod:1679
3339 msgid ""
3340 "You can use any C<key> you want, but names beginning with an underscore "
3341 "character are reserved for internal libguestfs purposes (for implementing "
3342 "language bindings).  It is recommended to prefix the name with some unique "
3343 "string to avoid collisions with other users."
3344 msgstr ""
3345
3346 # type: textblock
3347 #: ../src/guestfs.pod:1684
3348 msgid "To retrieve the pointer, use:"
3349 msgstr ""
3350
3351 # type: verbatim
3352 #: ../src/guestfs.pod:1686
3353 #, no-wrap
3354 msgid ""
3355 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3356 "\n"
3357 msgstr ""
3358
3359 # type: textblock
3360 #: ../src/guestfs.pod:1688
3361 msgid ""
3362 "This function returns C<NULL> if either no data is found associated with "
3363 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3364 "C<NULL>."
3365 msgstr ""
3366
3367 # type: textblock
3368 #: ../src/guestfs.pod:1692
3369 msgid ""
3370 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3371 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3372 "all.  In particular, libguestfs does I<not> try to free the data when the "
3373 "handle is closed.  If the data must be freed, then the caller must either "
3374 "free it before calling L</guestfs_close> or must set up a close callback to "
3375 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3376 "can be registered for a handle)."
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1700
3381 msgid ""
3382 "The private data area is implemented using a hash table, and should be "
3383 "reasonably efficient for moderate numbers of keys."
3384 msgstr ""
3385
3386 # type: =end
3387 #: ../src/guestfs.pod:1703 ../src/guestfs.pod:1708
3388 msgid "html"
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1705
3393 msgid ""
3394 "<!-- old anchor for the next section --> <a name="
3395 "\"state_machine_and_low_level_event_api\"/>"
3396 msgstr ""
3397
3398 # type: =head1
3399 #: ../src/guestfs.pod:1710
3400 msgid "ARCHITECTURE"
3401 msgstr ""
3402
3403 # type: textblock
3404 #: ../src/guestfs.pod:1712
3405 msgid ""
3406 "Internally, libguestfs is implemented by running an appliance (a special "
3407 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3408 "process of the main program."
3409 msgstr ""
3410
3411 # type: verbatim
3412 #: ../src/guestfs.pod:1716
3413 #, no-wrap
3414 msgid ""
3415 "  ___________________\n"
3416 " /                   \\\n"
3417 " | main program      |\n"
3418 " |                   |\n"
3419 " |                   |           child process / appliance\n"
3420 " |                   |           __________________________\n"
3421 " |                   |          / qemu                     \\\n"
3422 " +-------------------+   RPC    |      +-----------------+ |\n"
3423 " | libguestfs     <--------------------> guestfsd        | |\n"
3424 " |                   |          |      +-----------------+ |\n"
3425 " \\___________________/          |      | Linux kernel    | |\n"
3426 "                                |      +--^--------------+ |\n"
3427 "                                \\_________|________________/\n"
3428 "                                          |\n"
3429 "                                   _______v______\n"
3430 "                                  /              \\\n"
3431 "                                  | Device or    |\n"
3432 "                                  | disk image   |\n"
3433 "                                  \\______________/\n"
3434 "\n"
3435 msgstr ""
3436
3437 # type: textblock
3438 #: ../src/guestfs.pod:1736
3439 msgid ""
3440 "The library, linked to the main program, creates the child process and hence "
3441 "the appliance in the L</guestfs_launch> function."
3442 msgstr ""
3443
3444 # type: textblock
3445 #: ../src/guestfs.pod:1739
3446 msgid ""
3447 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3448 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3449 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3450 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3451 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3452 "attached to the qemu process which translates device access by the "
3453 "appliance's Linux kernel into accesses to the image."
3454 msgstr ""
3455
3456 # type: textblock
3457 #: ../src/guestfs.pod:1748
3458 msgid ""
3459 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3460 "Although the disk image you are attached to might also be used by some "
3461 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3462 "care if both libguestfs's qemu process and your virtual machine are trying "
3463 "to update the disk image at the same time, since these usually results in "
3464 "massive disk corruption)."
3465 msgstr ""
3466
3467 # type: =head1
3468 #: ../src/guestfs.pod:1755
3469 msgid "STATE MACHINE"
3470 msgstr ""
3471
3472 # type: textblock
3473 #: ../src/guestfs.pod:1757
3474 msgid "libguestfs uses a state machine to model the child process:"
3475 msgstr ""
3476
3477 # type: verbatim
3478 #: ../src/guestfs.pod:1759
3479 #, no-wrap
3480 msgid ""
3481 "                         |\n"
3482 "                    guestfs_create\n"
3483 "                         |\n"
3484 "                         |\n"
3485 "                     ____V_____\n"
3486 "                    /          \\\n"
3487 "                    |  CONFIG  |\n"
3488 "                    \\__________/\n"
3489 "                     ^ ^   ^  \\\n"
3490 "                    /  |    \\  \\ guestfs_launch\n"
3491 "                   /   |    _\\__V______\n"
3492 "                  /    |   /           \\\n"
3493 "                 /     |   | LAUNCHING |\n"
3494 "                /      |   \\___________/\n"
3495 "               /       |       /\n"
3496 "              /        |  guestfs_launch\n"
3497 "             /         |     /\n"
3498 "    ______  /        __|____V\n"
3499 "   /      \\ ------> /        \\\n"
3500 "   | BUSY |         | READY  |\n"
3501 "   \\______/ <------ \\________/\n"
3502 "\n"
3503 msgstr ""
3504
3505 # type: textblock
3506 #: ../src/guestfs.pod:1781
3507 msgid ""
3508 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3509 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3510 "(3) alternating between READY and BUSY as commands are issued to, and "
3511 "carried out by, the child process."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1786
3516 msgid ""
3517 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3518 "asynchronously at any time (eg. due to some internal error), and that causes "
3519 "the state to transition back to CONFIG."
3520 msgstr ""
3521
3522 # type: textblock
3523 #: ../src/guestfs.pod:1790
3524 msgid ""
3525 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3526 "issued when in the CONFIG state."
3527 msgstr ""
3528
3529 # type: textblock
3530 #: ../src/guestfs.pod:1793
3531 msgid ""
3532 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3533 "L</guestfs_launch> blocks until the child process is READY to accept "
3534 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3535 "moves the state from CONFIG to LAUNCHING while it is running."
3536 msgstr ""
3537
3538 # type: textblock
3539 #: ../src/guestfs.pod:1799
3540 msgid ""
3541 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3542 "state.  These API calls block waiting for the command to be carried out (ie. "
3543 "the state to transition to BUSY and then back to READY).  There are no non-"
3544 "blocking versions, and no way to issue more than one command per handle at "
3545 "the same time."
3546 msgstr ""
3547
3548 # type: textblock
3549 #: ../src/guestfs.pod:1805
3550 msgid ""
3551 "Finally, the child process sends asynchronous messages back to the main "
3552 "program, such as kernel log messages.  You can register a callback to "
3553 "receive these messages."
3554 msgstr ""
3555
3556 # type: =head1
3557 #: ../src/guestfs.pod:1809
3558 msgid "INTERNALS"
3559 msgstr ""
3560
3561 # type: =head2
3562 #: ../src/guestfs.pod:1811
3563 msgid "COMMUNICATION PROTOCOL"
3564 msgstr ""
3565
3566 # type: textblock
3567 #: ../src/guestfs.pod:1813
3568 msgid ""
3569 "Don't rely on using this protocol directly.  This section documents how it "
3570 "currently works, but it may change at any time."
3571 msgstr ""
3572
3573 # type: textblock
3574 #: ../src/guestfs.pod:1816
3575 msgid ""
3576 "The protocol used to talk between the library and the daemon running inside "
3577 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3578 "1014, RFC 1832, RFC 4506)."
3579 msgstr ""
3580
3581 # type: textblock
3582 #: ../src/guestfs.pod:1820
3583 msgid ""
3584 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3585 "this file is automatically generated)."
3586 msgstr ""
3587
3588 # type: textblock
3589 #: ../src/guestfs.pod:1823
3590 msgid ""
3591 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3592 "and C<FileOut> parameters, which are handled with very simple request/reply "
3593 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3594 "parameters, which use the same request and reply messages, but they may also "
3595 "be followed by files sent using a chunked encoding."
3596 msgstr ""
3597
3598 # type: =head3
3599 #: ../src/guestfs.pod:1830
3600 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3601 msgstr ""
3602
3603 # type: textblock
3604 #: ../src/guestfs.pod:1832
3605 msgid "For ordinary functions, the request message is:"
3606 msgstr ""
3607
3608 # type: verbatim
3609 #: ../src/guestfs.pod:1834
3610 #, no-wrap
3611 msgid ""
3612 " total length (header + arguments,\n"
3613 "      but not including the length word itself)\n"
3614 " struct guestfs_message_header (encoded as XDR)\n"
3615 " struct guestfs_<foo>_args (encoded as XDR)\n"
3616 "\n"
3617 msgstr ""
3618
3619 # type: textblock
3620 #: ../src/guestfs.pod:1839
3621 msgid ""
3622 "The total length field allows the daemon to allocate a fixed size buffer "
3623 "into which it slurps the rest of the message.  As a result, the total length "
3624 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3625 "effective size of any request is limited to somewhere under this size."
3626 msgstr ""
3627
3628 # type: textblock
3629 #: ../src/guestfs.pod:1845
3630 msgid ""
3631 "Note also that many functions don't take any arguments, in which case the "
3632 "C<guestfs_I<foo>_args> is completely omitted."
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1848
3637 msgid ""
3638 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3639 "receiver knows what type of args structure to expect, or none at all."
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1852
3644 msgid "The reply message for ordinary functions is:"
3645 msgstr ""
3646
3647 # type: verbatim
3648 #: ../src/guestfs.pod:1854
3649 #, no-wrap
3650 msgid ""
3651 " total length (header + ret,\n"
3652 "      but not including the length word itself)\n"
3653 " struct guestfs_message_header (encoded as XDR)\n"
3654 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3655 "\n"
3656 msgstr ""
3657
3658 # type: textblock
3659 #: ../src/guestfs.pod:1859
3660 msgid ""
3661 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3662 "functions that return no formal return values."
3663 msgstr ""
3664
3665 # type: textblock
3666 #: ../src/guestfs.pod:1862
3667 msgid ""
3668 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1865
3673 msgid ""
3674 "In the case of an error, a flag is set in the header, and the reply message "
3675 "is slightly changed:"
3676 msgstr ""
3677
3678 # type: verbatim
3679 #: ../src/guestfs.pod:1868
3680 #, no-wrap
3681 msgid ""
3682 " total length (header + error,\n"
3683 "      but not including the length word itself)\n"
3684 " struct guestfs_message_header (encoded as XDR)\n"
3685 " struct guestfs_message_error (encoded as XDR)\n"
3686 "\n"
3687 msgstr ""
3688
3689 # type: textblock
3690 #: ../src/guestfs.pod:1873
3691 msgid ""
3692 "The C<guestfs_message_error> structure contains the error message as a "
3693 "string."
3694 msgstr ""
3695
3696 # type: =head3
3697 #: ../src/guestfs.pod:1876
3698 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs.pod:1878
3703 msgid ""
3704 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3705 "The normal request message is sent (see above).  However this is followed by "
3706 "a sequence of file chunks."
3707 msgstr ""
3708
3709 # type: verbatim
3710 #: ../src/guestfs.pod:1882
3711 #, no-wrap
3712 msgid ""
3713 " total length (header + arguments,\n"
3714 "      but not including the length word itself,\n"
3715 "      and not including the chunks)\n"
3716 " struct guestfs_message_header (encoded as XDR)\n"
3717 " struct guestfs_<foo>_args (encoded as XDR)\n"
3718 " sequence of chunks for FileIn param #0\n"
3719 " sequence of chunks for FileIn param #1 etc.\n"
3720 "\n"
3721 msgstr ""
3722
3723 # type: textblock
3724 #: ../src/guestfs.pod:1890
3725 msgid "The \"sequence of chunks\" is:"
3726 msgstr ""
3727
3728 # type: verbatim
3729 #: ../src/guestfs.pod:1892
3730 #, no-wrap
3731 msgid ""
3732 " length of chunk (not including length word itself)\n"
3733 " struct guestfs_chunk (encoded as XDR)\n"
3734 " length of chunk\n"
3735 " struct guestfs_chunk (encoded as XDR)\n"
3736 "   ...\n"
3737 " length of chunk\n"
3738 " struct guestfs_chunk (with data.data_len == 0)\n"
3739 "\n"
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs.pod:1900
3744 msgid ""
3745 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3746 "is set in the final chunk to indicate either successful completion or early "
3747 "cancellation."
3748 msgstr ""
3749
3750 # type: textblock
3751 #: ../src/guestfs.pod:1904
3752 msgid ""
3753 "At time of writing there are no functions that have more than one FileIn "
3754 "parameter.  However this is (theoretically) supported, by sending the "
3755 "sequence of chunks for each FileIn parameter one after another (from left to "
3756 "right)."
3757 msgstr ""
3758
3759 # type: textblock
3760 #: ../src/guestfs.pod:1909
3761 msgid ""
3762 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3763 "transfer.  The library does this by sending a chunk with a special flag set "
3764 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3765 "RPC, does I<not> send any reply, and goes back to reading the next request."
3766 msgstr ""
3767
3768 # type: textblock
3769 #: ../src/guestfs.pod:1915
3770 msgid ""
3771 "The daemon may also cancel.  It does this by writing a special word "
3772 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3773 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3774 "cancel chunk).  The special word is chosen so that even if cancellation "
3775 "happens right at the end of the transfer (after the library has finished "
3776 "writing and has started listening for the reply), the \"spurious\" cancel "
3777 "flag will not be confused with the reply message."
3778 msgstr ""
3779
3780 # type: textblock
3781 #: ../src/guestfs.pod:1924
3782 msgid ""
3783 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3784 "limit), and also files where the size is not known in advance (eg. from "
3785 "pipes or sockets).  However the chunks are rather small "
3786 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3787 "to keep much in memory."
3788 msgstr ""
3789
3790 # type: =head3
3791 #: ../src/guestfs.pod:1930
3792 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3793 msgstr ""
3794
3795 # type: textblock
3796 #: ../src/guestfs.pod:1932
3797 msgid ""
3798 "The protocol for FileOut parameters is exactly the same as for FileIn "
3799 "parameters, but with the roles of daemon and library reversed."
3800 msgstr ""
3801
3802 # type: verbatim
3803 #: ../src/guestfs.pod:1935
3804 #, no-wrap
3805 msgid ""
3806 " total length (header + ret,\n"
3807 "      but not including the length word itself,\n"
3808 "      and not including the chunks)\n"
3809 " struct guestfs_message_header (encoded as XDR)\n"
3810 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3811 " sequence of chunks for FileOut param #0\n"
3812 " sequence of chunks for FileOut param #1 etc.\n"
3813 "\n"
3814 msgstr ""
3815
3816 # type: =head3
3817 #: ../src/guestfs.pod:1943
3818 msgid "INITIAL MESSAGE"
3819 msgstr ""
3820
3821 # type: textblock
3822 #: ../src/guestfs.pod:1945
3823 msgid ""
3824 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3825 "which indicates that the guest and daemon is alive.  This is what L</"
3826 "guestfs_launch> waits for."
3827 msgstr ""
3828
3829 # type: =head3
3830 #: ../src/guestfs.pod:1949
3831 msgid "PROGRESS NOTIFICATION MESSAGES"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1951
3836 msgid ""
3837 "The daemon may send progress notification messages at any time.  These are "
3838 "distinguished by the normal length word being replaced by "
3839 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3840 msgstr ""
3841
3842 # type: textblock
3843 #: ../src/guestfs.pod:1955
3844 msgid ""
3845 "The library turns them into progress callbacks (see "
3846 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3847 "discards them if not."
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:1959
3852 msgid ""
3853 "The daemon self-limits the frequency of progress messages it sends (see "
3854 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3855 "messages."
3856 msgstr ""
3857
3858 # type: =head1
3859 #: ../src/guestfs.pod:1963
3860 msgid "LIBGUESTFS VERSION NUMBERS"
3861 msgstr ""
3862
3863 # type: textblock
3864 #: ../src/guestfs.pod:1965
3865 msgid ""
3866 "Since April 2010, libguestfs has started to make separate development and "
3867 "stable releases, along with corresponding branches in our git repository.  "
3868 "These separate releases can be identified by version number:"
3869 msgstr ""
3870
3871 # type: verbatim
3872 #: ../src/guestfs.pod:1970
3873 #, no-wrap
3874 msgid ""
3875 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3876 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3877 "       |\n"
3878 "       v\n"
3879 " 1  .  3  .  5\n"
3880 " ^           ^\n"
3881 " |           |\n"
3882 " |           `-------- sub-version\n"
3883 " |\n"
3884 " `------ always '1' because we don't change the ABI\n"
3885 "\n"
3886 msgstr ""
3887
3888 # type: textblock
3889 #: ../src/guestfs.pod:1981
3890 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3891 msgstr ""
3892
3893 # type: textblock
3894 #: ../src/guestfs.pod:1983
3895 msgid ""
3896 "As time passes we cherry pick fixes from the development branch and backport "
3897 "those into the stable branch, the effect being that the stable branch should "
3898 "get more stable and less buggy over time.  So the stable releases are ideal "
3899 "for people who don't need new features but would just like the software to "
3900 "work."
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs.pod:1989
3905 msgid "Our criteria for backporting changes are:"
3906 msgstr ""
3907
3908 # type: textblock
3909 #: ../src/guestfs.pod:1995
3910 msgid ""
3911 "Documentation changes which don't affect any code are backported unless the "
3912 "documentation refers to a future feature which is not in stable."
3913 msgstr ""
3914
3915 # type: textblock
3916 #: ../src/guestfs.pod:2001
3917 msgid ""
3918 "Bug fixes which are not controversial, fix obvious problems, and have been "
3919 "well tested are backported."
3920 msgstr ""
3921
3922 # type: textblock
3923 #: ../src/guestfs.pod:2006
3924 msgid ""
3925 "Simple rearrangements of code which shouldn't affect how it works get "
3926 "backported.  This is so that the code in the two branches doesn't get too "
3927 "far out of step, allowing us to backport future fixes more easily."
3928 msgstr ""
3929
3930 # type: textblock
3931 #: ../src/guestfs.pod:2012
3932 msgid ""
3933 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3934 "exceptional case: the new feature is required in order to implement an "
3935 "important bug fix."
3936 msgstr ""
3937
3938 # type: textblock
3939 #: ../src/guestfs.pod:2018
3940 msgid ""
3941 "A new stable branch starts when we think the new features in development are "
3942 "substantial and compelling enough over the current stable branch to warrant "
3943 "it.  When that happens we create new stable and development versions 1.N.0 "
3944 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3945 "stable at this point, but by backporting fixes from development, that branch "
3946 "will stabilize over time."
3947 msgstr ""
3948
3949 # type: =head1
3950 #: ../src/guestfs.pod:2026 ../fish/guestfish.pod:914
3951 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3952 #: ../tools/virt-rescue.pl:255
3953 msgid "ENVIRONMENT VARIABLES"
3954 msgstr ""
3955
3956 # type: =item
3957 #: ../src/guestfs.pod:2030 ../fish/guestfish.pod:940
3958 msgid "LIBGUESTFS_APPEND"
3959 msgstr ""
3960
3961 # type: textblock
3962 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:942
3963 msgid "Pass additional options to the guest kernel."
3964 msgstr ""
3965
3966 # type: =item
3967 #: ../src/guestfs.pod:2034 ../fish/guestfish.pod:944
3968 msgid "LIBGUESTFS_DEBUG"
3969 msgstr ""
3970
3971 # type: textblock
3972 #: ../src/guestfs.pod:2036
3973 msgid ""
3974 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3975 "effect as calling C<guestfs_set_verbose (g, 1)>."
3976 msgstr ""
3977
3978 # type: =item
3979 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:949
3980 msgid "LIBGUESTFS_MEMSIZE"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2041 ../fish/guestfish.pod:951
3985 msgid ""
3986 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:954
3991 #, no-wrap
3992 msgid ""
3993 " LIBGUESTFS_MEMSIZE=700\n"
3994 "\n"
3995 msgstr ""
3996
3997 # type: =item
3998 #: ../src/guestfs.pod:2046 ../fish/guestfish.pod:956
3999 msgid "LIBGUESTFS_PATH"
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs.pod:2048
4004 msgid ""
4005 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4006 "the discussion of paths in section PATH above."
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs.pod:2051 ../fish/guestfish.pod:961
4011 msgid "LIBGUESTFS_QEMU"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs.pod:2053 ../fish/guestfish.pod:963
4016 msgid ""
4017 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4018 "which was found at compile time by the configure script is used."
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs.pod:2057
4023 msgid "See also L</QEMU WRAPPERS> above."
4024 msgstr ""
4025
4026 # type: =item
4027 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:967
4028 msgid "LIBGUESTFS_TRACE"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs.pod:2061
4033 msgid ""
4034 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4035 "effect as calling C<guestfs_set_trace (g, 1)>."
4036 msgstr ""
4037
4038 # type: =item
4039 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:976
4040 msgid "TMPDIR"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:978
4045 msgid "Location of temporary directory, defaults to C</tmp>."
4046 msgstr ""
4047
4048 # type: textblock
4049 #: ../src/guestfs.pod:2068 ../fish/guestfish.pod:980
4050 msgid ""
4051 "If libguestfs was compiled to use the supermin appliance then the real "
4052 "appliance is cached in this directory, shared between all handles belonging "
4053 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4054 "use in case C</tmp> is not large enough."
4055 msgstr ""
4056
4057 # type: =head1
4058 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:1038
4059 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4060 #: ../inspector/virt-inspector.pl:452 ../tools/virt-edit.pl:350
4061 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
4062 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
4063 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-tar.pl:281
4064 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
4065 #: ../tools/virt-list-partitions.pl:254
4066 msgid "SEE ALSO"
4067 msgstr ""
4068
4069 # type: textblock
4070 #: ../src/guestfs.pod:2078
4071 msgid ""
4072 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
4073 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
4074 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
4075 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
4076 "L<http://libguestfs.org/>."
4077 msgstr ""
4078
4079 # type: textblock
4080 #: ../src/guestfs.pod:2096
4081 msgid ""
4082 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4083 "(8)>, L<disktype(1)>."
4084 msgstr ""
4085
4086 # type: =head1
4087 #: ../src/guestfs.pod:2103 ../tools/virt-win-reg.pl:499
4088 #: ../tools/virt-make-fs.pl:548
4089 msgid "BUGS"
4090 msgstr ""
4091
4092 # type: textblock
4093 #: ../src/guestfs.pod:2105
4094 msgid "To get a list of bugs against libguestfs use this link:"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs.pod:2107
4099 msgid ""
4100 "L<https://bugzilla.redhat.com/buglist.cgi?"
4101 "component=libguestfs&product=Virtualization+Tools>"
4102 msgstr ""
4103
4104 # type: textblock
4105 #: ../src/guestfs.pod:2109
4106 msgid "To report a new bug against libguestfs use this link:"
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2111
4111 msgid ""
4112 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4113 "component=libguestfs&product=Virtualization+Tools>"
4114 msgstr ""
4115
4116 # type: textblock
4117 #: ../src/guestfs.pod:2113
4118 msgid "When reporting a bug, please check:"
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs.pod:2119
4123 msgid "That the bug hasn't been reported already."
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs.pod:2123
4128 msgid "That you are testing a recent version."
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs.pod:2127
4133 msgid "Describe the bug accurately, and give a way to reproduce it."
4134 msgstr ""
4135
4136 # type: textblock
4137 #: ../src/guestfs.pod:2131
4138 msgid ""
4139 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4140 "bug report."
4141 msgstr ""
4142
4143 # type: =head1
4144 #: ../src/guestfs.pod:2136 ../fish/guestfish.pod:1055
4145 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4146 #: ../inspector/virt-inspector.pl:462
4147 msgid "AUTHORS"
4148 msgstr ""
4149
4150 # type: textblock
4151 #: ../src/guestfs.pod:2138 ../fish/guestfish.pod:1057
4152 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4153 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4154 msgstr ""
4155
4156 # type: =head1
4157 #: ../src/guestfs.pod:2140 ../fish/guestfish.pod:1059
4158 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4159 #: ../inspector/virt-inspector.pl:476 ../tools/virt-edit.pl:366
4160 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
4161 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
4162 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:296
4163 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
4164 #: ../tools/virt-list-partitions.pl:269
4165 msgid "COPYRIGHT"
4166 msgstr ""
4167
4168 # type: textblock
4169 #: ../src/guestfs.pod:2142 ../fish/guestfish.pod:1061
4170 #: ../fuse/guestmount.pod:250
4171 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4172 msgstr ""
4173
4174 # type: textblock
4175 #: ../src/guestfs.pod:2145
4176 msgid ""
4177 "This library is free software; you can redistribute it and/or modify it "
4178 "under the terms of the GNU Lesser General Public License as published by the "
4179 "Free Software Foundation; either version 2 of the License, or (at your "
4180 "option) any later version."
4181 msgstr ""
4182
4183 # type: textblock
4184 #: ../src/guestfs.pod:2150
4185 msgid ""
4186 "This library is distributed in the hope that it will be useful, but WITHOUT "
4187 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4188 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4189 "for more details."
4190 msgstr ""
4191
4192 # type: textblock
4193 #: ../src/guestfs.pod:2155
4194 msgid ""
4195 "You should have received a copy of the GNU Lesser General Public License "
4196 "along with this library; if not, write to the Free Software Foundation, "
4197 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4198 msgstr ""
4199
4200 # type: =head2
4201 #: ../src/guestfs-actions.pod:1
4202 msgid "guestfs_add_cdrom"
4203 msgstr ""
4204
4205 # type: verbatim
4206 #: ../src/guestfs-actions.pod:3
4207 #, no-wrap
4208 msgid ""
4209 " int\n"
4210 " guestfs_add_cdrom (guestfs_h *g,\n"
4211 "                    const char *filename);\n"
4212 "\n"
4213 msgstr ""
4214
4215 # type: textblock
4216 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4217 msgid "This function adds a virtual CD-ROM disk image to the guest."
4218 msgstr ""
4219
4220 # type: textblock
4221 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4222 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4223 msgstr ""
4224
4225 # type: textblock
4226 #: ../src/guestfs-actions.pod:17
4227 msgid ""
4228 "This call checks for the existence of C<filename>.  This stops you from "
4229 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4230 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4231 "instead."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:24
4236 msgid ""
4237 "If you just want to add an ISO file (often you use this as an efficient way "
4238 "to transfer large files into the guest), then you should probably use "
4239 "C<guestfs_add_drive_ro> instead."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
4244 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
4245 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
4246 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4247 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4248 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4249 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4250 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4251 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4252 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4253 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4254 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4255 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4256 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4257 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4258 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4259 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4260 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4261 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4262 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4263 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4264 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3162
4265 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3197
4266 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3336
4267 #: ../src/guestfs-actions.pod:3349 ../src/guestfs-actions.pod:3363
4268 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3414
4269 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3506
4270 #: ../src/guestfs-actions.pod:3523 ../src/guestfs-actions.pod:3546
4271 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3601
4272 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3639
4273 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3686
4274 #: ../src/guestfs-actions.pod:3722 ../src/guestfs-actions.pod:3738
4275 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3766
4276 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3876
4277 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3909
4278 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3978
4279 #: ../src/guestfs-actions.pod:3996 ../src/guestfs-actions.pod:4012
4280 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4040
4281 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4072
4282 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4141
4283 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4191
4284 #: ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4222
4285 #: ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4252
4286 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4282
4287 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4332
4288 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366
4289 #: ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4432
4290 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4483
4291 #: ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4528
4292 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4680
4293 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4759
4294 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4809
4295 #: ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:4892
4296 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4919
4297 #: ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5227
4298 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5253
4299 #: ../src/guestfs-actions.pod:5267 ../src/guestfs-actions.pod:5279
4300 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5309
4301 #: ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5349
4302 #: ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:5386
4303 #: ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5427
4304 #: ../src/guestfs-actions.pod:5446 ../src/guestfs-actions.pod:5467
4305 #: ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5503
4306 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5555
4307 #: ../src/guestfs-actions.pod:5574 ../src/guestfs-actions.pod:5598
4308 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5628
4309 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5684
4310 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:5733
4311 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5962
4312 #: ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:5987
4313 #: ../src/guestfs-actions.pod:6000 ../src/guestfs-actions.pod:6022
4314 #: ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6048
4315 #: ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6076
4316 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6152
4317 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6184
4318 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:6214
4319 #: ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6270
4320 #: ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6325
4321 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6356
4322 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6416
4323 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6553
4324 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6622
4325 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6680
4326 #: ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6767
4327 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6859
4328 #: ../src/guestfs-actions.pod:6878 ../src/guestfs-actions.pod:6907
4329 msgid "This function returns 0 on success or -1 on error."
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4334 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4335 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4336 msgid ""
4337 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4338 "instead."
4339 msgstr ""
4340
4341 # type: textblock
4342 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4343 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4344 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4345 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6970
4346 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4347 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4348 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4349 #: ../fish/guestfish-actions.pod:4534 ../fish/guestfish-actions.pod:4631
4350 msgid ""
4351 "Deprecated functions will not be removed from the API, but the fact that "
4352 "they are deprecated indicates that there are problems with correct use of "
4353 "these functions."
4354 msgstr ""
4355
4356 # type: textblock
4357 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4358 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4359 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4360 #: ../src/guestfs-actions.pod:3164 ../src/guestfs-actions.pod:3179
4361 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:5388
4362 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5615
4363 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6203
4364 #: ../src/guestfs-actions.pod:6715
4365 msgid "(Added in 0.3)"
4366 msgstr ""
4367
4368 # type: =head2
4369 #: ../src/guestfs-actions.pod:41
4370 msgid "guestfs_add_domain"
4371 msgstr ""
4372
4373 # type: verbatim
4374 #: ../src/guestfs-actions.pod:43
4375 #, no-wrap
4376 msgid ""
4377 " int\n"
4378 " guestfs_add_domain (guestfs_h *g,\n"
4379 "                     const char *dom,\n"
4380 "                     ...);\n"
4381 "\n"
4382 msgstr ""
4383
4384 # type: textblock
4385 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4386 msgid ""
4387 "You may supply a list of optional arguments to this call.  Use zero or more "
4388 "of the following pairs of parameters, and terminate the list with C<-1> on "
4389 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4390 msgstr ""
4391
4392 # type: verbatim
4393 #: ../src/guestfs-actions.pod:53
4394 #, no-wrap
4395 msgid ""
4396 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4397 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4398 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4399 "\n"
4400 msgstr ""
4401
4402 # type: textblock
4403 #: ../src/guestfs-actions.pod:57
4404 msgid ""
4405 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4406 "It works by connecting to libvirt, requesting the domain and domain XML from "
4407 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4408 "one."
4409 msgstr ""
4410
4411 # type: textblock
4412 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4413 msgid ""
4414 "The number of disks added is returned.  This operation is atomic: if an "
4415 "error is returned, then no disks are added."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4420 msgid ""
4421 "This function does some minimal checks to make sure the libvirt domain is "
4422 "not running (unless C<readonly> is true).  In a future version we will try "
4423 "to acquire the libvirt lock on each disk."
4424 msgstr ""
4425
4426 # type: textblock
4427 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4428 msgid ""
4429 "Disks must be accessible locally.  This often means that adding disks from a "
4430 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4431 "unless those disks are accessible via the same device path locally too."
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:74
4436 msgid ""
4437 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4438 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4439 "libvirt URI (or one set through an environment variable, see the libvirt "
4440 "documentation for full details).  If you are using the C API directly then "
4441 "it is more flexible to create the libvirt connection object yourself, get "
4442 "the domain object, and call C<guestfs_add_libvirt_dom>."
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:82
4447 msgid ""
4448 "The other optional parameters are passed directly through to "
4449 "C<guestfs_add_drive_opts>."
4450 msgstr ""
4451
4452 # type: textblock
4453 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4454 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4455 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4456 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4457 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4458 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4459 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4460 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2610
4461 #: ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:4455
4462 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4989
4463 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:6311
4464 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6739
4465 #: ../src/guestfs-actions.pod:6752
4466 msgid "On error this function returns -1."
4467 msgstr ""
4468
4469 # type: =head2
4470 #: ../src/guestfs-actions.pod:87
4471 msgid "guestfs_add_domain_va"
4472 msgstr ""
4473
4474 # type: verbatim
4475 #: ../src/guestfs-actions.pod:89
4476 #, no-wrap
4477 msgid ""
4478 " int\n"
4479 " guestfs_add_domain_va (guestfs_h *g,\n"
4480 "                        const char *dom,\n"
4481 "                        va_list args);\n"
4482 "\n"
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:94
4487 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4488 msgstr ""
4489
4490 # type: textblock
4491 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4492 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4493 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4494 msgstr ""
4495
4496 # type: =head2
4497 #: ../src/guestfs-actions.pod:98
4498 msgid "guestfs_add_domain_argv"
4499 msgstr ""
4500
4501 # type: verbatim
4502 #: ../src/guestfs-actions.pod:100
4503 #, no-wrap
4504 msgid ""
4505 " int\n"
4506 " guestfs_add_domain_argv (guestfs_h *g,\n"
4507 "                          const char *dom,\n"
4508 "                          const struct guestfs_add_domain_argv *optargs);\n"
4509 "\n"
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:105
4514 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4515 msgstr ""
4516
4517 # type: =head2
4518 #: ../src/guestfs-actions.pod:109
4519 msgid "guestfs_add_drive"
4520 msgstr ""
4521
4522 # type: verbatim
4523 #: ../src/guestfs-actions.pod:111
4524 #, no-wrap
4525 msgid ""
4526 " int\n"
4527 " guestfs_add_drive (guestfs_h *g,\n"
4528 "                    const char *filename);\n"
4529 "\n"
4530 msgstr ""
4531
4532 # type: textblock
4533 #: ../src/guestfs-actions.pod:115
4534 msgid ""
4535 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4536 "optional parameters, so the disk is added writable, with the format being "
4537 "detected automatically."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:119
4542 msgid ""
4543 "Automatic detection of the format opens you up to a potential security hole "
4544 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4545 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4546 "you should think about replacing calls to this function with calls to "
4547 "C<guestfs_add_drive_opts>, and specifying the format."
4548 msgstr ""
4549
4550 # type: =head2
4551 #: ../src/guestfs-actions.pod:130
4552 msgid "guestfs_add_drive_opts"
4553 msgstr ""
4554
4555 # type: verbatim
4556 #: ../src/guestfs-actions.pod:132
4557 #, no-wrap
4558 msgid ""
4559 " int\n"
4560 " guestfs_add_drive_opts (guestfs_h *g,\n"
4561 "                         const char *filename,\n"
4562 "                         ...);\n"
4563 "\n"
4564 msgstr ""
4565
4566 # type: verbatim
4567 #: ../src/guestfs-actions.pod:142
4568 #, no-wrap
4569 msgid ""
4570 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4571 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4572 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4573 "\n"
4574 msgstr ""
4575
4576 # type: textblock
4577 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4578 msgid ""
4579 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4580 "The first time you call this function, the disk appears as C</dev/sda>, the "
4581 "second time as C</dev/sdb>, and so on."
4582 msgstr ""
4583
4584 # type: textblock
4585 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4586 msgid ""
4587 "You don't necessarily need to be root when using libguestfs.  However you "
4588 "obviously do need sufficient permissions to access the filename for whatever "
4589 "operations you want to perform (ie. read access if you just want to read the "
4590 "image or write access if you want to modify the image)."
4591 msgstr ""
4592
4593 # type: textblock
4594 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4595 msgid "This call checks that C<filename> exists."
4596 msgstr ""
4597
4598 # type: textblock
4599 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4600 msgid "The optional arguments are:"
4601 msgstr ""
4602
4603 # type: =item
4604 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4605 msgid "C<readonly>"
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4610 msgid ""
4611 "If true then the image is treated as read-only.  Writes are still allowed, "
4612 "but they are stored in a temporary snapshot overlay which is discarded at "
4613 "the end.  The disk that you add is not modified."
4614 msgstr ""
4615
4616 # type: =item
4617 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4618 msgid "C<format>"
4619 msgstr ""
4620
4621 # type: textblock
4622 #: ../src/guestfs-actions.pod:171
4623 msgid ""
4624 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4625 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4626 "Possible formats include C<raw> and C<qcow2>."
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4631 msgid ""
4632 "Automatic detection of the format opens you up to a potential security hole "
4633 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4634 "RHBZ#642934.  Specifying the format closes this security hole."
4635 msgstr ""
4636
4637 # type: =item
4638 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4639 msgid "C<iface>"
4640 msgstr ""
4641
4642 # type: textblock
4643 #: ../src/guestfs-actions.pod:182
4644 msgid ""
4645 "This rarely-used option lets you emulate the behaviour of the deprecated "
4646 "C<guestfs_add_drive_with_if> call (q.v.)"
4647 msgstr ""
4648
4649 # type: textblock
4650 #: ../src/guestfs-actions.pod:189
4651 msgid "(Added in 1.5.23)"
4652 msgstr ""
4653
4654 # type: =head2
4655 #: ../src/guestfs-actions.pod:191
4656 msgid "guestfs_add_drive_opts_va"
4657 msgstr ""
4658
4659 # type: verbatim
4660 #: ../src/guestfs-actions.pod:193
4661 #, no-wrap
4662 msgid ""
4663 " int\n"
4664 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4665 "                            const char *filename,\n"
4666 "                            va_list args);\n"
4667 "\n"
4668 msgstr ""
4669
4670 # type: textblock
4671 #: ../src/guestfs-actions.pod:198
4672 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4673 msgstr ""
4674
4675 # type: =head2
4676 #: ../src/guestfs-actions.pod:202
4677 msgid "guestfs_add_drive_opts_argv"
4678 msgstr ""
4679
4680 # type: verbatim
4681 #: ../src/guestfs-actions.pod:204
4682 #, no-wrap
4683 msgid ""
4684 " int\n"
4685 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4686 "                              const char *filename,\n"
4687 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4688 "\n"
4689 msgstr ""
4690
4691 # type: textblock
4692 #: ../src/guestfs-actions.pod:209
4693 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4694 msgstr ""
4695
4696 # type: =head2
4697 #: ../src/guestfs-actions.pod:213
4698 msgid "guestfs_add_drive_ro"
4699 msgstr ""
4700
4701 # type: verbatim
4702 #: ../src/guestfs-actions.pod:215
4703 #, no-wrap
4704 msgid ""
4705 " int\n"
4706 " guestfs_add_drive_ro (guestfs_h *g,\n"
4707 "                       const char *filename);\n"
4708 "\n"
4709 msgstr ""
4710
4711 # type: textblock
4712 #: ../src/guestfs-actions.pod:219
4713 msgid ""
4714 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4715 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4716 "disk is added read-only, with the format being detected automatically."
4717 msgstr ""
4718
4719 # type: textblock
4720 #: ../src/guestfs-actions.pod:226
4721 msgid "(Added in 1.0.38)"
4722 msgstr ""
4723
4724 # type: =head2
4725 #: ../src/guestfs-actions.pod:228
4726 msgid "guestfs_add_drive_ro_with_if"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #: ../src/guestfs-actions.pod:230
4731 #, no-wrap
4732 msgid ""
4733 " int\n"
4734 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4735 "                               const char *filename,\n"
4736 "                               const char *iface);\n"
4737 "\n"
4738 msgstr ""
4739
4740 # type: textblock
4741 #: ../src/guestfs-actions.pod:235
4742 msgid ""
4743 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4744 "QEMU interface emulation to use at run time."
4745 msgstr ""
4746
4747 # type: textblock
4748 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4749 #: ../src/guestfs-actions.pod:2303
4750 msgid "(Added in 1.0.84)"
4751 msgstr ""
4752
4753 # type: =head2
4754 #: ../src/guestfs-actions.pod:249
4755 msgid "guestfs_add_drive_with_if"
4756 msgstr ""
4757
4758 # type: verbatim
4759 #: ../src/guestfs-actions.pod:251
4760 #, no-wrap
4761 msgid ""
4762 " int\n"
4763 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4764 "                            const char *filename,\n"
4765 "                            const char *iface);\n"
4766 "\n"
4767 msgstr ""
4768
4769 # type: textblock
4770 #: ../src/guestfs-actions.pod:256
4771 msgid ""
4772 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4773 "QEMU interface emulation to use at run time."
4774 msgstr ""
4775
4776 # type: =head2
4777 #: ../src/guestfs-actions.pod:270
4778 msgid "guestfs_aug_clear"
4779 msgstr ""
4780
4781 # type: verbatim
4782 #: ../src/guestfs-actions.pod:272
4783 #, no-wrap
4784 msgid ""
4785 " int\n"
4786 " guestfs_aug_clear (guestfs_h *g,\n"
4787 "                    const char *augpath);\n"
4788 "\n"
4789 msgstr ""
4790
4791 # type: textblock
4792 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4793 msgid ""
4794 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4795 "L<augtool(1)> C<clear> command."
4796 msgstr ""
4797
4798 # type: textblock
4799 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4800 msgid "(Added in 1.3.4)"
4801 msgstr ""
4802
4803 # type: =head2
4804 #: ../src/guestfs-actions.pod:283
4805 msgid "guestfs_aug_close"
4806 msgstr ""
4807
4808 # type: verbatim
4809 #: ../src/guestfs-actions.pod:285
4810 #, no-wrap
4811 msgid ""
4812 " int\n"
4813 " guestfs_aug_close (guestfs_h *g);\n"
4814 "\n"
4815 msgstr ""
4816
4817 # type: textblock
4818 #: ../src/guestfs-actions.pod:288
4819 msgid ""
4820 "Close the current Augeas handle and free up any resources used by it.  After "
4821 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4822 "any other Augeas functions."
4823 msgstr ""
4824
4825 # type: textblock
4826 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4827 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4828 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4829 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4830 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4831 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4832 #: ../src/guestfs-actions.pod:5066
4833 msgid "(Added in 0.7)"
4834 msgstr ""
4835
4836 # type: =head2
4837 #: ../src/guestfs-actions.pod:297
4838 msgid "guestfs_aug_defnode"
4839 msgstr ""
4840
4841 # type: verbatim
4842 #: ../src/guestfs-actions.pod:299
4843 #, no-wrap
4844 msgid ""
4845 " struct guestfs_int_bool *\n"
4846 " guestfs_aug_defnode (guestfs_h *g,\n"
4847 "                      const char *name,\n"
4848 "                      const char *expr,\n"
4849 "                      const char *val);\n"
4850 "\n"
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4855 msgid ""
4856 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4857 msgstr ""
4858
4859 # type: textblock
4860 #: ../src/guestfs-actions.pod:308
4861 msgid ""
4862 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4863 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4864 "containing that single node."
4865 msgstr ""
4866
4867 # type: textblock
4868 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4869 msgid ""
4870 "On success this returns a pair containing the number of nodes in the "
4871 "nodeset, and a boolean flag if a node was created."
4872 msgstr ""
4873
4874 # type: textblock
4875 #: ../src/guestfs-actions.pod:316
4876 msgid ""
4877 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4878 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4879 msgstr ""
4880
4881 # type: =head2
4882 #: ../src/guestfs-actions.pod:322
4883 msgid "guestfs_aug_defvar"
4884 msgstr ""
4885
4886 # type: verbatim
4887 #: ../src/guestfs-actions.pod:324
4888 #, no-wrap
4889 msgid ""
4890 " int\n"
4891 " guestfs_aug_defvar (guestfs_h *g,\n"
4892 "                     const char *name,\n"
4893 "                     const char *expr);\n"
4894 "\n"
4895 msgstr ""
4896
4897 # type: textblock
4898 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4899 msgid ""
4900 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4901 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4906 msgid ""
4907 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4908 "evaluates to something which is not a nodeset."
4909 msgstr ""
4910
4911 # type: =head2
4912 #: ../src/guestfs-actions.pod:340
4913 msgid "guestfs_aug_get"
4914 msgstr ""
4915
4916 # type: verbatim
4917 #: ../src/guestfs-actions.pod:342
4918 #, no-wrap
4919 msgid ""
4920 " char *\n"
4921 " guestfs_aug_get (guestfs_h *g,\n"
4922 "                  const char *augpath);\n"
4923 "\n"
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4928 msgid ""
4929 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4930 "node, the C<value> is returned."
4931 msgstr ""
4932
4933 # type: textblock
4934 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4935 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4936 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4937 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4938 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4939 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4940 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4941 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4942 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4943 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
4944 #: ../src/guestfs-actions.pod:2692 ../src/guestfs-actions.pod:2721
4945 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2803
4946 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:3308
4947 #: ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3828
4948 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:4601
4949 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4964
4950 #: ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5191
4951 #: ../src/guestfs-actions.pod:5754 ../src/guestfs-actions.pod:5770
4952 #: ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:5811
4953 #: ../src/guestfs-actions.pod:6475 ../src/guestfs-actions.pod:6494
4954 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6692
4955 #: ../src/guestfs-actions.pod:6964
4956 msgid ""
4957 "This function returns a string, or NULL on error.  I<The caller must free "
4958 "the returned string after use>."
4959 msgstr ""
4960
4961 # type: =head2
4962 #: ../src/guestfs-actions.pod:354
4963 msgid "guestfs_aug_init"
4964 msgstr ""
4965
4966 # type: verbatim
4967 #: ../src/guestfs-actions.pod:356
4968 #, no-wrap
4969 msgid ""
4970 " int\n"
4971 " guestfs_aug_init (guestfs_h *g,\n"
4972 "                   const char *root,\n"
4973 "                   int flags);\n"
4974 "\n"
4975 msgstr ""
4976
4977 # type: textblock
4978 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4979 msgid ""
4980 "Create a new Augeas handle for editing configuration files.  If there was "
4981 "any previous Augeas handle associated with this guestfs session, then it is "
4982 "closed."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:365
4987 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4988 msgstr ""
4989
4990 # type: textblock
4991 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4992 msgid ""
4993 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4994 msgstr ""
4995
4996 # type: textblock
4997 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4998 msgid ""
4999 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5000 "logical I<or> of the following integers:"
5001 msgstr ""
5002
5003 # type: =item
5004 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
5005 msgid "C<AUG_SAVE_BACKUP> = 1"
5006 msgstr ""
5007
5008 # type: textblock
5009 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
5010 msgid "Keep the original file with a C<.augsave> extension."
5011 msgstr ""
5012
5013 # type: =item
5014 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
5015 msgid "C<AUG_SAVE_NEWFILE> = 2"
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
5020 msgid ""
5021 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5022 "original.  Overrides C<AUG_SAVE_BACKUP>."
5023 msgstr ""
5024
5025 # type: =item
5026 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
5027 msgid "C<AUG_TYPE_CHECK> = 4"
5028 msgstr ""
5029
5030 # type: textblock
5031 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
5032 msgid "Typecheck lenses (can be expensive)."
5033 msgstr ""
5034
5035 # type: =item
5036 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
5037 msgid "C<AUG_NO_STDINC> = 8"
5038 msgstr ""
5039
5040 # type: textblock
5041 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
5042 msgid "Do not use standard load path for modules."
5043 msgstr ""
5044
5045 # type: =item
5046 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
5047 msgid "C<AUG_SAVE_NOOP> = 16"
5048 msgstr ""
5049
5050 # type: textblock
5051 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
5052 msgid "Make save a no-op, just record what would have been changed."
5053 msgstr ""
5054
5055 # type: =item
5056 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
5057 msgid "C<AUG_NO_LOAD> = 32"
5058 msgstr ""
5059
5060 # type: textblock
5061 #: ../src/guestfs-actions.pod:400
5062 msgid "Do not load the tree in C<guestfs_aug_init>."
5063 msgstr ""
5064
5065 # type: textblock
5066 #: ../src/guestfs-actions.pod:404
5067 msgid "To close the handle, you can call C<guestfs_aug_close>."
5068 msgstr ""
5069
5070 # type: textblock
5071 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
5072 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5073 msgstr ""
5074
5075 # type: =head2
5076 #: ../src/guestfs-actions.pod:412
5077 msgid "guestfs_aug_insert"
5078 msgstr ""
5079
5080 # type: verbatim
5081 #: ../src/guestfs-actions.pod:414
5082 #, no-wrap
5083 msgid ""
5084 " int\n"
5085 " guestfs_aug_insert (guestfs_h *g,\n"
5086 "                     const char *augpath,\n"
5087 "                     const char *label,\n"
5088 "                     int before);\n"
5089 "\n"
5090 msgstr ""
5091
5092 # type: textblock
5093 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
5094 msgid ""
5095 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5096 "or after C<path> (depending on the boolean flag C<before>)."
5097 msgstr ""
5098
5099 # type: textblock
5100 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
5101 msgid ""
5102 "C<path> must match exactly one existing node in the tree, and C<label> must "
5103 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5104 msgstr ""
5105
5106 # type: =head2
5107 #: ../src/guestfs-actions.pod:432
5108 msgid "guestfs_aug_load"
5109 msgstr ""
5110
5111 # type: verbatim
5112 #: ../src/guestfs-actions.pod:434
5113 #, no-wrap
5114 msgid ""
5115 " int\n"
5116 " guestfs_aug_load (guestfs_h *g);\n"
5117 "\n"
5118 msgstr ""
5119
5120 # type: textblock
5121 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
5122 msgid "Load files into the tree."
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
5127 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5128 msgstr ""
5129
5130 # type: =head2
5131 #: ../src/guestfs-actions.pod:446
5132 msgid "guestfs_aug_ls"
5133 msgstr ""
5134
5135 # type: verbatim
5136 #: ../src/guestfs-actions.pod:448
5137 #, no-wrap
5138 msgid ""
5139 " char **\n"
5140 " guestfs_aug_ls (guestfs_h *g,\n"
5141 "                 const char *augpath);\n"
5142 "\n"
5143 msgstr ""
5144
5145 # type: textblock
5146 #: ../src/guestfs-actions.pod:452
5147 msgid ""
5148 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5149 "sorting the resulting nodes into alphabetical order."
5150 msgstr ""
5151
5152 # type: textblock
5153 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
5154 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
5155 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
5156 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
5157 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
5158 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
5159 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
5160 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
5161 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2762
5162 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:3228
5163 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3395
5164 #: ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:4416
5165 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:5062
5166 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5827
5167 #: ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5943
5168 #: ../src/guestfs-actions.pod:6089 ../src/guestfs-actions.pod:6113
5169 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6605
5170 #: ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6817
5171 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6921
5172 #: ../src/guestfs-actions.pod:6940 ../src/guestfs-actions.pod:6986
5173 #: ../src/guestfs-actions.pod:7005
5174 msgid ""
5175 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5176 ">), or NULL if there was an error.  I<The caller must free the strings and "
5177 "the array after use>."
5178 msgstr ""
5179
5180 # type: textblock
5181 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
5182 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
5183 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3082
5184 #: ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3691
5185 #: ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3911
5186 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4420
5187 #: ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:5255
5188 #: ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:5281
5189 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:6327
5190 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6569
5191 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6805
5192 msgid "(Added in 0.8)"
5193 msgstr ""
5194
5195 # type: =head2
5196 #: ../src/guestfs-actions.pod:461
5197 msgid "guestfs_aug_match"
5198 msgstr ""
5199
5200 # type: verbatim
5201 #: ../src/guestfs-actions.pod:463
5202 #, no-wrap
5203 msgid ""
5204 " char **\n"
5205 " guestfs_aug_match (guestfs_h *g,\n"
5206 "                    const char *augpath);\n"
5207 "\n"
5208 msgstr ""
5209
5210 # type: textblock
5211 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
5212 msgid ""
5213 "Returns a list of paths which match the path expression C<path>.  The "
5214 "returned paths are sufficiently qualified so that they match exactly one "
5215 "node in the current tree."
5216 msgstr ""
5217
5218 # type: =head2
5219 #: ../src/guestfs-actions.pod:477
5220 msgid "guestfs_aug_mv"
5221 msgstr ""
5222
5223 # type: verbatim
5224 #: ../src/guestfs-actions.pod:479
5225 #, no-wrap
5226 msgid ""
5227 " int\n"
5228 " guestfs_aug_mv (guestfs_h *g,\n"
5229 "                 const char *src,\n"
5230 "                 const char *dest);\n"
5231 "\n"
5232 msgstr ""
5233
5234 # type: textblock
5235 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
5236 msgid ""
5237 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5238 "C<dest> is overwritten if it exists."
5239 msgstr ""
5240
5241 # type: =head2
5242 #: ../src/guestfs-actions.pod:491
5243 msgid "guestfs_aug_rm"
5244 msgstr ""
5245
5246 # type: verbatim
5247 #: ../src/guestfs-actions.pod:493
5248 #, no-wrap
5249 msgid ""
5250 " int\n"
5251 " guestfs_aug_rm (guestfs_h *g,\n"
5252 "                 const char *augpath);\n"
5253 "\n"
5254 msgstr ""
5255
5256 # type: textblock
5257 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5258 msgid "Remove C<path> and all of its children."
5259 msgstr ""
5260
5261 # type: textblock
5262 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5263 msgid "On success this returns the number of entries which were removed."
5264 msgstr ""
5265
5266 # type: =head2
5267 #: ../src/guestfs-actions.pod:505
5268 msgid "guestfs_aug_save"
5269 msgstr ""
5270
5271 # type: verbatim
5272 #: ../src/guestfs-actions.pod:507
5273 #, no-wrap
5274 msgid ""
5275 " int\n"
5276 " guestfs_aug_save (guestfs_h *g);\n"
5277 "\n"
5278 msgstr ""
5279
5280 # type: textblock
5281 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5282 msgid "This writes all pending changes to disk."
5283 msgstr ""
5284
5285 # type: textblock
5286 #: ../src/guestfs-actions.pod:512
5287 msgid ""
5288 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5289 "are saved."
5290 msgstr ""
5291
5292 # type: =head2
5293 #: ../src/guestfs-actions.pod:519
5294 msgid "guestfs_aug_set"
5295 msgstr ""
5296
5297 # type: verbatim
5298 #: ../src/guestfs-actions.pod:521
5299 #, no-wrap
5300 msgid ""
5301 " int\n"
5302 " guestfs_aug_set (guestfs_h *g,\n"
5303 "                  const char *augpath,\n"
5304 "                  const char *val);\n"
5305 "\n"
5306 msgstr ""
5307
5308 # type: textblock
5309 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5310 msgid "Set the value associated with C<path> to C<val>."
5311 msgstr ""
5312
5313 # type: textblock
5314 #: ../src/guestfs-actions.pod:528
5315 msgid ""
5316 "In the Augeas API, it is possible to clear a node by setting the value to "
5317 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5318 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5319 msgstr ""
5320
5321 # type: =head2
5322 #: ../src/guestfs-actions.pod:537
5323 msgid "guestfs_available"
5324 msgstr ""
5325
5326 # type: verbatim
5327 #: ../src/guestfs-actions.pod:539
5328 #, no-wrap
5329 msgid ""
5330 " int\n"
5331 " guestfs_available (guestfs_h *g,\n"
5332 "                    char *const *groups);\n"
5333 "\n"
5334 msgstr ""
5335
5336 # type: textblock
5337 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5338 msgid ""
5339 "This command is used to check the availability of some groups of "
5340 "functionality in the appliance, which not all builds of the libguestfs "
5341 "appliance will be able to provide."
5342 msgstr ""
5343
5344 # type: textblock
5345 #: ../src/guestfs-actions.pod:547
5346 msgid ""
5347 "The libguestfs groups, and the functions that those groups correspond to, "
5348 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5349 "runtime by calling C<guestfs_available_all_groups>."
5350 msgstr ""
5351
5352 # type: textblock
5353 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5354 msgid ""
5355 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5356 "\"]> would check for the availability of the Linux inotify functions and "
5357 "Augeas (configuration file editing) functions."
5358 msgstr ""
5359
5360 # type: textblock
5361 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5362 msgid "The command returns no error if I<all> requested groups are available."
5363 msgstr ""
5364
5365 # type: textblock
5366 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5367 msgid ""
5368 "It fails with an error if one or more of the requested groups is unavailable "
5369 "in the appliance."
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5374 msgid ""
5375 "If an unknown group name is included in the list of groups then an error is "
5376 "always returned."
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5381 msgid "I<Notes:>"
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:571
5386 msgid "You must call C<guestfs_launch> before calling this function."
5387 msgstr ""
5388
5389 # type: textblock
5390 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5391 msgid ""
5392 "The reason is because we don't know what groups are supported by the "
5393 "appliance/daemon until it is running and can be queried."
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5398 msgid ""
5399 "If a group of functions is available, this does not necessarily mean that "
5400 "they will work.  You still have to check for errors when calling individual "
5401 "API functions even if they are available."
5402 msgstr ""
5403
5404 # type: textblock
5405 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5406 msgid ""
5407 "It is usually the job of distro packagers to build complete functionality "
5408 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5409 "with all requirements satisfied, will support everything."
5410 msgstr ""
5411
5412 # type: textblock
5413 #: ../src/guestfs-actions.pod:593
5414 msgid ""
5415 "This call was added in version C<1.0.80>.  In previous versions of "
5416 "libguestfs all you could do would be to speculatively execute a command to "
5417 "find out if the daemon implemented it.  See also C<guestfs_version>."
5418 msgstr ""
5419
5420 # type: textblock
5421 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5422 msgid "(Added in 1.0.80)"
5423 msgstr ""
5424
5425 # type: =head2
5426 #: ../src/guestfs-actions.pod:604
5427 msgid "guestfs_available_all_groups"
5428 msgstr ""
5429
5430 # type: verbatim
5431 #: ../src/guestfs-actions.pod:606
5432 #, no-wrap
5433 msgid ""
5434 " char **\n"
5435 " guestfs_available_all_groups (guestfs_h *g);\n"
5436 "\n"
5437 msgstr ""
5438
5439 # type: textblock
5440 #: ../src/guestfs-actions.pod:609
5441 msgid ""
5442 "This command returns a list of all optional groups that this daemon knows "
5443 "about.  Note this returns both supported and unsupported groups.  To find "
5444 "out which ones the daemon can actually support you have to call "
5445 "C<guestfs_available> on each member of the returned list."
5446 msgstr ""
5447
5448 # type: textblock
5449 #: ../src/guestfs-actions.pod:615
5450 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5451 msgstr ""
5452
5453 # type: textblock
5454 #: ../src/guestfs-actions.pod:621
5455 msgid "(Added in 1.3.15)"
5456 msgstr ""
5457
5458 # type: =head2
5459 #: ../src/guestfs-actions.pod:623
5460 msgid "guestfs_base64_in"
5461 msgstr ""
5462
5463 # type: verbatim
5464 #: ../src/guestfs-actions.pod:625
5465 #, no-wrap
5466 msgid ""
5467 " int\n"
5468 " guestfs_base64_in (guestfs_h *g,\n"
5469 "                    const char *base64file,\n"
5470 "                    const char *filename);\n"
5471 "\n"
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5476 msgid ""
5477 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5478 msgstr ""
5479
5480 # type: textblock
5481 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5482 msgid "(Added in 1.3.5)"
5483 msgstr ""
5484
5485 # type: =head2
5486 #: ../src/guestfs-actions.pod:637
5487 msgid "guestfs_base64_out"
5488 msgstr ""
5489
5490 # type: verbatim
5491 #: ../src/guestfs-actions.pod:639
5492 #, no-wrap
5493 msgid ""
5494 " int\n"
5495 " guestfs_base64_out (guestfs_h *g,\n"
5496 "                     const char *filename,\n"
5497 "                     const char *base64file);\n"
5498 "\n"
5499 msgstr ""
5500
5501 # type: textblock
5502 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5503 msgid ""
5504 "This command downloads the contents of C<filename>, writing it out to local "
5505 "file C<base64file> encoded as base64."
5506 msgstr ""
5507
5508 # type: =head2
5509 #: ../src/guestfs-actions.pod:651
5510 msgid "guestfs_blockdev_flushbufs"
5511 msgstr ""
5512
5513 # type: verbatim
5514 #: ../src/guestfs-actions.pod:653
5515 #, no-wrap
5516 msgid ""
5517 " int\n"
5518 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5519 "                             const char *device);\n"
5520 "\n"
5521 msgstr ""
5522
5523 # type: textblock
5524 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5525 msgid ""
5526 "This tells the kernel to flush internal buffers associated with C<device>."
5527 msgstr ""
5528
5529 # type: textblock
5530 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5531 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5532 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5533 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5534 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5535 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5536 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5537 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5538 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5539 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5540 msgid "This uses the L<blockdev(8)> command."
5541 msgstr ""
5542
5543 # type: textblock
5544 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5545 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5546 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5547 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5548 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5549 msgid "(Added in 0.9.3)"
5550 msgstr ""
5551
5552 # type: =head2
5553 #: ../src/guestfs-actions.pod:666
5554 msgid "guestfs_blockdev_getbsz"
5555 msgstr ""
5556
5557 # type: verbatim
5558 #: ../src/guestfs-actions.pod:668
5559 #, no-wrap
5560 msgid ""
5561 " int\n"
5562 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5563 "                          const char *device);\n"
5564 "\n"
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5569 msgid "This returns the block size of a device."
5570 msgstr ""
5571
5572 # type: textblock
5573 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5574 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5575 msgid ""
5576 "(Note this is different from both I<size in blocks> and I<filesystem block "
5577 "size>)."
5578 msgstr ""
5579
5580 # type: =head2
5581 #: ../src/guestfs-actions.pod:683
5582 msgid "guestfs_blockdev_getro"
5583 msgstr ""
5584
5585 # type: verbatim
5586 #: ../src/guestfs-actions.pod:685
5587 #, no-wrap
5588 msgid ""
5589 " int\n"
5590 " guestfs_blockdev_getro (guestfs_h *g,\n"
5591 "                         const char *device);\n"
5592 "\n"
5593 msgstr ""
5594
5595 # type: textblock
5596 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5597 msgid ""
5598 "Returns a boolean indicating if the block device is read-only (true if read-"
5599 "only, false if not)."
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5604 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5605 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5606 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5607 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5608 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3004
5609 #: ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3033
5610 #: ../src/guestfs-actions.pod:3049 ../src/guestfs-actions.pod:3064
5611 #: ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3094
5612 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3121
5613 #: ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3151
5614 #: ../src/guestfs-actions.pod:4565
5615 msgid "This function returns a C truth value on success or -1 on error."
5616 msgstr ""
5617
5618 # type: =head2
5619 #: ../src/guestfs-actions.pod:698
5620 msgid "guestfs_blockdev_getsize64"
5621 msgstr ""
5622
5623 # type: verbatim
5624 #: ../src/guestfs-actions.pod:700
5625 #, no-wrap
5626 msgid ""
5627 " int64_t\n"
5628 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5629 "                             const char *device);\n"
5630 "\n"
5631 msgstr ""
5632
5633 # type: textblock
5634 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5635 msgid "This returns the size of the device in bytes."
5636 msgstr ""
5637
5638 # type: textblock
5639 #: ../src/guestfs-actions.pod:706
5640 msgid "See also C<guestfs_blockdev_getsz>."
5641 msgstr ""
5642
5643 # type: =head2
5644 #: ../src/guestfs-actions.pod:714
5645 msgid "guestfs_blockdev_getss"
5646 msgstr ""
5647
5648 # type: verbatim
5649 #: ../src/guestfs-actions.pod:716
5650 #, no-wrap
5651 msgid ""
5652 " int\n"
5653 " guestfs_blockdev_getss (guestfs_h *g,\n"
5654 "                         const char *device);\n"
5655 "\n"
5656 msgstr ""
5657
5658 # type: textblock
5659 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5660 msgid ""
5661 "This returns the size of sectors on a block device.  Usually 512, but can be "
5662 "larger for modern devices."
5663 msgstr ""
5664
5665 # type: textblock
5666 #: ../src/guestfs-actions.pod:723
5667 msgid ""
5668 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5669 "that)."
5670 msgstr ""
5671
5672 # type: =head2
5673 #: ../src/guestfs-actions.pod:732
5674 msgid "guestfs_blockdev_getsz"
5675 msgstr ""
5676
5677 # type: verbatim
5678 #: ../src/guestfs-actions.pod:734
5679 #, no-wrap
5680 msgid ""
5681 " int64_t\n"
5682 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5683 "                         const char *device);\n"
5684 "\n"
5685 msgstr ""
5686
5687 # type: textblock
5688 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5689 msgid ""
5690 "This returns the size of the device in units of 512-byte sectors (even if "
5691 "the sectorsize isn't 512 bytes ... weird)."
5692 msgstr ""
5693
5694 # type: textblock
5695 #: ../src/guestfs-actions.pod:741
5696 msgid ""
5697 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5698 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5699 msgstr ""
5700
5701 # type: =head2
5702 #: ../src/guestfs-actions.pod:751
5703 msgid "guestfs_blockdev_rereadpt"
5704 msgstr ""
5705
5706 # type: verbatim
5707 #: ../src/guestfs-actions.pod:753
5708 #, no-wrap
5709 msgid ""
5710 " int\n"
5711 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5712 "                            const char *device);\n"
5713 "\n"
5714 msgstr ""
5715
5716 # type: textblock
5717 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5718 msgid "Reread the partition table on C<device>."
5719 msgstr ""
5720
5721 # type: =head2
5722 #: ../src/guestfs-actions.pod:765
5723 msgid "guestfs_blockdev_setbsz"
5724 msgstr ""
5725
5726 # type: verbatim
5727 #: ../src/guestfs-actions.pod:767
5728 #, no-wrap
5729 msgid ""
5730 " int\n"
5731 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5732 "                          const char *device,\n"
5733 "                          int blocksize);\n"
5734 "\n"
5735 msgstr ""
5736
5737 # type: textblock
5738 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5739 msgid "This sets the block size of a device."
5740 msgstr ""
5741
5742 # type: =head2
5743 #: ../src/guestfs-actions.pod:783
5744 msgid "guestfs_blockdev_setro"
5745 msgstr ""
5746
5747 # type: verbatim
5748 #: ../src/guestfs-actions.pod:785
5749 #, no-wrap
5750 msgid ""
5751 " int\n"
5752 " guestfs_blockdev_setro (guestfs_h *g,\n"
5753 "                         const char *device);\n"
5754 "\n"
5755 msgstr ""
5756
5757 # type: textblock
5758 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5759 msgid "Sets the block device named C<device> to read-only."
5760 msgstr ""
5761
5762 # type: =head2
5763 #: ../src/guestfs-actions.pod:797
5764 msgid "guestfs_blockdev_setrw"
5765 msgstr ""
5766
5767 # type: verbatim
5768 #: ../src/guestfs-actions.pod:799
5769 #, no-wrap
5770 msgid ""
5771 " int\n"
5772 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5773 "                         const char *device);\n"
5774 "\n"
5775 msgstr ""
5776
5777 # type: textblock
5778 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5779 msgid "Sets the block device named C<device> to read-write."
5780 msgstr ""
5781
5782 # type: =head2
5783 #: ../src/guestfs-actions.pod:811
5784 msgid "guestfs_case_sensitive_path"
5785 msgstr ""
5786
5787 # type: verbatim
5788 #: ../src/guestfs-actions.pod:813
5789 #, no-wrap
5790 msgid ""
5791 " char *\n"
5792 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5793 "                              const char *path);\n"
5794 "\n"
5795 msgstr ""
5796
5797 # type: textblock
5798 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5799 msgid ""
5800 "This can be used to resolve case insensitive paths on a filesystem which is "
5801 "case sensitive.  The use case is to resolve paths which you have read from "
5802 "Windows configuration files or the Windows Registry, to the true path."
5803 msgstr ""
5804
5805 # type: textblock
5806 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5807 msgid ""
5808 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5809 "(and probably others), which is that although the underlying filesystem is "
5810 "case-insensitive, the driver exports the filesystem to Linux as case-"
5811 "sensitive."
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5816 msgid ""
5817 "One consequence of this is that special directories such as C<c:\\windows> "
5818 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5819 "precise details of how they were created.  In Windows itself this would not "
5820 "be a problem."
5821 msgstr ""
5822
5823 # type: textblock
5824 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5825 msgid ""
5826 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5827 "#posixfilenames1>"
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5832 msgid ""
5833 "This function resolves the true case of each element in the path and returns "
5834 "the case-sensitive path."
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:839
5839 msgid ""
5840 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5841 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5842 "how the directories were originally created under Windows)."
5843 msgstr ""
5844
5845 # type: textblock
5846 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5847 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5848 msgstr ""
5849
5850 # type: textblock
5851 #: ../src/guestfs-actions.pod:847
5852 msgid "See also C<guestfs_realpath>."
5853 msgstr ""
5854
5855 # type: textblock
5856 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6497
5857 msgid "(Added in 1.0.75)"
5858 msgstr ""
5859
5860 # type: =head2
5861 #: ../src/guestfs-actions.pod:854
5862 msgid "guestfs_cat"
5863 msgstr ""
5864
5865 # type: verbatim
5866 #: ../src/guestfs-actions.pod:856
5867 #, no-wrap
5868 msgid ""
5869 " char *\n"
5870 " guestfs_cat (guestfs_h *g,\n"
5871 "              const char *path);\n"
5872 "\n"
5873 msgstr ""
5874
5875 # type: textblock
5876 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5052
5877 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3378
5878 msgid "Return the contents of the file named C<path>."
5879 msgstr ""
5880
5881 # type: textblock
5882 #: ../src/guestfs-actions.pod:862
5883 msgid ""
5884 "Note that this function cannot correctly handle binary files (specifically, "
5885 "files containing C<\\0> character which is treated as end of string).  For "
5886 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5887 "functions which have a more complex interface."
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5892 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5893 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5894 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5895 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5896 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5897 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5898 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4860
5899 #: ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5017
5900 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5892
5901 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6093
5902 #: ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6769
5903 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6821
5904 #: ../src/guestfs-actions.pod:6840 ../src/guestfs-actions.pod:6925
5905 #: ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:6990
5906 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:582
5907 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5908 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5909 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5910 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5911 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5912 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5913 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3248
5914 #: ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3339
5915 #: ../fish/guestfish-actions.pod:3356 ../fish/guestfish-actions.pod:3371
5916 #: ../fish/guestfish-actions.pod:3954 ../fish/guestfish-actions.pod:4000
5917 #: ../fish/guestfish-actions.pod:4085 ../fish/guestfish-actions.pod:4100
5918 #: ../fish/guestfish-actions.pod:4510 ../fish/guestfish-actions.pod:4528
5919 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4555
5920 #: ../fish/guestfish-actions.pod:4603 ../fish/guestfish-actions.pod:4613
5921 #: ../fish/guestfish-actions.pod:4642 ../fish/guestfish-actions.pod:4652
5922 msgid ""
5923 "Because of the message protocol, there is a transfer limit of somewhere "
5924 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5925 msgstr ""
5926
5927 # type: textblock
5928 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3232
5929 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:3311
5930 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:3804
5931 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:4940
5932 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:6656
5933 #: ../src/guestfs-actions.pod:6670
5934 msgid "(Added in 0.4)"
5935 msgstr ""
5936
5937 # type: =head2
5938 #: ../src/guestfs-actions.pod:875
5939 msgid "guestfs_checksum"
5940 msgstr ""
5941
5942 # type: verbatim
5943 #: ../src/guestfs-actions.pod:877
5944 #, no-wrap
5945 msgid ""
5946 " char *\n"
5947 " guestfs_checksum (guestfs_h *g,\n"
5948 "                   const char *csumtype,\n"
5949 "                   const char *path);\n"
5950 "\n"
5951 msgstr ""
5952
5953 # type: textblock
5954 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5955 msgid ""
5956 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5957 msgstr ""
5958
5959 # type: textblock
5960 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5961 msgid ""
5962 "The type of checksum to compute is given by the C<csumtype> parameter which "
5963 "must have one of the following values:"
5964 msgstr ""
5965
5966 # type: =item
5967 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5968 msgid "C<crc>"
5969 msgstr ""
5970
5971 # type: textblock
5972 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5973 msgid ""
5974 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5975 "C<cksum> command."
5976 msgstr ""
5977
5978 # type: =item
5979 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5980 msgid "C<md5>"
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5985 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5986 msgstr ""
5987
5988 # type: =item
5989 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5990 msgid "C<sha1>"
5991 msgstr ""
5992
5993 # type: textblock
5994 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5995 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5996 msgstr ""
5997
5998 # type: =item
5999 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
6000 msgid "C<sha224>"
6001 msgstr ""
6002
6003 # type: textblock
6004 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
6005 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6006 msgstr ""
6007
6008 # type: =item
6009 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
6010 msgid "C<sha256>"
6011 msgstr ""
6012
6013 # type: textblock
6014 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
6015 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6016 msgstr ""
6017
6018 # type: =item
6019 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
6020 msgid "C<sha384>"
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
6025 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6026 msgstr ""
6027
6028 # type: =item
6029 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
6030 msgid "C<sha512>"
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
6035 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6036 msgstr ""
6037
6038 # type: textblock
6039 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
6040 msgid "The checksum is returned as a printable string."
6041 msgstr ""
6042
6043 # type: textblock
6044 #: ../src/guestfs-actions.pod:923
6045 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../src/guestfs-actions.pod:925
6050 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6051 msgstr ""
6052
6053 # type: textblock
6054 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
6055 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3006
6056 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3096
6057 #: ../src/guestfs-actions.pod:3123 ../src/guestfs-actions.pod:6358
6058 msgid "(Added in 1.0.2)"
6059 msgstr ""
6060
6061 # type: =head2
6062 #: ../src/guestfs-actions.pod:932
6063 msgid "guestfs_checksum_device"
6064 msgstr ""
6065
6066 # type: verbatim
6067 #: ../src/guestfs-actions.pod:934
6068 #, no-wrap
6069 msgid ""
6070 " char *\n"
6071 " guestfs_checksum_device (guestfs_h *g,\n"
6072 "                          const char *csumtype,\n"
6073 "                          const char *device);\n"
6074 "\n"
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:939
6079 msgid ""
6080 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6081 "device named C<device>.  For the types of checksums supported see the "
6082 "C<guestfs_checksum> command."
6083 msgstr ""
6084
6085 # type: textblock
6086 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4471
6087 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4567
6088 #: ../src/guestfs-actions.pod:4585 ../src/guestfs-actions.pod:4761
6089 #: ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6286
6090 #: ../src/guestfs-actions.pod:6682
6091 msgid "(Added in 1.3.2)"
6092 msgstr ""
6093
6094 # type: =head2
6095 #: ../src/guestfs-actions.pod:948
6096 msgid "guestfs_checksums_out"
6097 msgstr ""
6098
6099 # type: verbatim
6100 #: ../src/guestfs-actions.pod:950
6101 #, no-wrap
6102 msgid ""
6103 " int\n"
6104 " guestfs_checksums_out (guestfs_h *g,\n"
6105 "                        const char *csumtype,\n"
6106 "                        const char *directory,\n"
6107 "                        const char *sumsfile);\n"
6108 "\n"
6109 msgstr ""
6110
6111 # type: textblock
6112 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
6113 msgid ""
6114 "This command computes the checksums of all regular files in C<directory> and "
6115 "then emits a list of those checksums to the local output file C<sumsfile>."
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
6120 msgid ""
6121 "This can be used for verifying the integrity of a virtual machine.  However "
6122 "to be properly secure you should pay attention to the output of the checksum "
6123 "command (it uses the ones from GNU coreutils).  In particular when the "
6124 "filename is not printable, coreutils uses a special backslash syntax.  For "
6125 "more information, see the GNU coreutils info file."
6126 msgstr ""
6127
6128 # type: textblock
6129 #: ../src/guestfs-actions.pod:970
6130 msgid "(Added in 1.3.7)"
6131 msgstr ""
6132
6133 # type: =head2
6134 #: ../src/guestfs-actions.pod:972
6135 msgid "guestfs_chmod"
6136 msgstr ""
6137
6138 # type: verbatim
6139 #: ../src/guestfs-actions.pod:974
6140 #, no-wrap
6141 msgid ""
6142 " int\n"
6143 " guestfs_chmod (guestfs_h *g,\n"
6144 "                int mode,\n"
6145 "                const char *path);\n"
6146 "\n"
6147 msgstr ""
6148
6149 # type: textblock
6150 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
6151 msgid ""
6152 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6153 "supported."
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
6158 msgid ""
6159 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6160 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6161 "C<700>."
6162 msgstr ""
6163
6164 # type: textblock
6165 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4055
6166 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4189
6167 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:671
6168 #: ../fish/guestfish-actions.pod:2738 ../fish/guestfish-actions.pod:2823
6169 #: ../fish/guestfish-actions.pod:2833 ../fish/guestfish-actions.pod:2843
6170 msgid "The mode actually set is affected by the umask."
6171 msgstr ""
6172
6173 # type: =head2
6174 #: ../src/guestfs-actions.pod:992
6175 msgid "guestfs_chown"
6176 msgstr ""
6177
6178 # type: verbatim
6179 #: ../src/guestfs-actions.pod:994
6180 #, no-wrap
6181 msgid ""
6182 " int\n"
6183 " guestfs_chown (guestfs_h *g,\n"
6184 "                int owner,\n"
6185 "                int group,\n"
6186 "                const char *path);\n"
6187 "\n"
6188 msgstr ""
6189
6190 # type: textblock
6191 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
6192 msgid "Change the file owner to C<owner> and group to C<group>."
6193 msgstr ""
6194
6195 # type: textblock
6196 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3193
6197 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2216
6198 msgid ""
6199 "Only numeric uid and gid are supported.  If you want to use names, you will "
6200 "need to locate and parse the password file yourself (Augeas support makes "
6201 "this relatively easy)."
6202 msgstr ""
6203
6204 # type: =head2
6205 #: ../src/guestfs-actions.pod:1010
6206 msgid "guestfs_command"
6207 msgstr ""
6208
6209 # type: verbatim
6210 #: ../src/guestfs-actions.pod:1012
6211 #, no-wrap
6212 msgid ""
6213 " char *\n"
6214 " guestfs_command (guestfs_h *g,\n"
6215 "                  char *const *arguments);\n"
6216 "\n"
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
6221 msgid ""
6222 "This call runs a command from the guest filesystem.  The filesystem must be "
6223 "mounted, and must contain a compatible operating system (ie. something "
6224 "Linux, with the same or compatible processor architecture)."
6225 msgstr ""
6226
6227 # type: textblock
6228 #: ../src/guestfs-actions.pod:1021
6229 msgid ""
6230 "The single parameter is an argv-style list of arguments.  The first element "
6231 "is the name of the program to run.  Subsequent elements are parameters.  The "
6232 "list must be non-empty (ie. must contain a program name).  Note that the "
6233 "command runs directly, and is I<not> invoked via the shell (see "
6234 "C<guestfs_sh>)."
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
6239 msgid "The return value is anything printed to I<stdout> by the command."
6240 msgstr ""
6241
6242 # type: textblock
6243 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
6244 msgid ""
6245 "If the command returns a non-zero exit status, then this function returns an "
6246 "error message.  The error message string is the content of I<stderr> from "
6247 "the command."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6252 msgid ""
6253 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6254 "bin>.  If you require a program from another location, you should provide "
6255 "the full path in the first parameter."
6256 msgstr ""
6257
6258 # type: textblock
6259 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6260 msgid ""
6261 "Shared libraries and data files required by the program must be available on "
6262 "filesystems which are mounted in the correct places.  It is the caller's "
6263 "responsibility to ensure all filesystems that are needed are mounted at the "
6264 "right locations."
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6269 #: ../src/guestfs-actions.pod:1535
6270 msgid "(Added in 0.9.1)"
6271 msgstr ""
6272
6273 # type: =head2
6274 #: ../src/guestfs-actions.pod:1054
6275 msgid "guestfs_command_lines"
6276 msgstr ""
6277
6278 # type: verbatim
6279 #: ../src/guestfs-actions.pod:1056
6280 #, no-wrap
6281 msgid ""
6282 " char **\n"
6283 " guestfs_command_lines (guestfs_h *g,\n"
6284 "                        char *const *arguments);\n"
6285 "\n"
6286 msgstr ""
6287
6288 # type: textblock
6289 #: ../src/guestfs-actions.pod:1060
6290 msgid ""
6291 "This is the same as C<guestfs_command>, but splits the result into a list of "
6292 "lines."
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1063
6297 msgid "See also: C<guestfs_sh_lines>"
6298 msgstr ""
6299
6300 # type: =head2
6301 #: ../src/guestfs-actions.pod:1074
6302 msgid "guestfs_config"
6303 msgstr ""
6304
6305 # type: verbatim
6306 #: ../src/guestfs-actions.pod:1076
6307 #, no-wrap
6308 msgid ""
6309 " int\n"
6310 " guestfs_config (guestfs_h *g,\n"
6311 "                 const char *qemuparam,\n"
6312 "                 const char *qemuvalue);\n"
6313 "\n"
6314 msgstr ""
6315
6316 # type: textblock
6317 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6318 msgid ""
6319 "This can be used to add arbitrary qemu command line parameters of the form "
6320 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6321 "setting some parameters which would interfere with parameters that we use."
6322 msgstr ""
6323
6324 # type: textblock
6325 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6326 msgid "The first character of C<param> string must be a C<-> (dash)."
6327 msgstr ""
6328
6329 # type: textblock
6330 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6331 msgid "C<value> can be NULL."
6332 msgstr ""
6333
6334 # type: =head2
6335 #: ../src/guestfs-actions.pod:1094
6336 msgid "guestfs_copy_size"
6337 msgstr ""
6338
6339 # type: verbatim
6340 #: ../src/guestfs-actions.pod:1096
6341 #, no-wrap
6342 msgid ""
6343 " int\n"
6344 " guestfs_copy_size (guestfs_h *g,\n"
6345 "                    const char *src,\n"
6346 "                    const char *dest,\n"
6347 "                    int64_t size);\n"
6348 "\n"
6349 msgstr ""
6350
6351 # type: textblock
6352 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6353 msgid ""
6354 "This command copies exactly C<size> bytes from one source device or file "
6355 "C<src> to another destination device or file C<dest>."
6356 msgstr ""
6357
6358 # type: textblock
6359 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6360 msgid ""
6361 "Note this will fail if the source is too short or if the destination is not "
6362 "large enough."
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6367 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6368 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6861
6369 #: ../src/guestfs-actions.pod:6880
6370 msgid ""
6371 "This long-running command can generate progress notification messages so "
6372 "that the caller can display a progress bar or indicator.  To receive these "
6373 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6374 "guestfs_set_progress_callback>."
6375 msgstr ""
6376
6377 # type: textblock
6378 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3831
6379 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:6589
6380 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6695
6381 msgid "(Added in 1.0.87)"
6382 msgstr ""
6383
6384 # type: =head2
6385 #: ../src/guestfs-actions.pod:1117
6386 msgid "guestfs_cp"
6387 msgstr ""
6388
6389 # type: verbatim
6390 #: ../src/guestfs-actions.pod:1119
6391 #, no-wrap
6392 msgid ""
6393 " int\n"
6394 " guestfs_cp (guestfs_h *g,\n"
6395 "             const char *src,\n"
6396 "             const char *dest);\n"
6397 "\n"
6398 msgstr ""
6399
6400 # type: textblock
6401 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6402 msgid ""
6403 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6404 "destination filename or destination directory."
6405 msgstr ""
6406
6407 # type: textblock
6408 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6409 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6410 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4434
6411 #: ../src/guestfs-actions.pod:4811
6412 msgid "(Added in 1.0.18)"
6413 msgstr ""
6414
6415 # type: =head2
6416 #: ../src/guestfs-actions.pod:1131
6417 msgid "guestfs_cp_a"
6418 msgstr ""
6419
6420 # type: verbatim
6421 #: ../src/guestfs-actions.pod:1133
6422 #, no-wrap
6423 msgid ""
6424 " int\n"
6425 " guestfs_cp_a (guestfs_h *g,\n"
6426 "               const char *src,\n"
6427 "               const char *dest);\n"
6428 "\n"
6429 msgstr ""
6430
6431 # type: textblock
6432 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6433 msgid ""
6434 "This copies a file or directory from C<src> to C<dest> recursively using the "
6435 "C<cp -a> command."
6436 msgstr ""
6437
6438 # type: =head2
6439 #: ../src/guestfs-actions.pod:1145
6440 msgid "guestfs_dd"
6441 msgstr ""
6442
6443 # type: verbatim
6444 #: ../src/guestfs-actions.pod:1147
6445 #, no-wrap
6446 msgid ""
6447 " int\n"
6448 " guestfs_dd (guestfs_h *g,\n"
6449 "             const char *src,\n"
6450 "             const char *dest);\n"
6451 "\n"
6452 msgstr ""
6453
6454 # type: textblock
6455 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6456 msgid ""
6457 "This command copies from one source device or file C<src> to another "
6458 "destination device or file C<dest>.  Normally you would use this to copy to "
6459 "or from a device or partition, for example to duplicate a filesystem."
6460 msgstr ""
6461
6462 # type: textblock
6463 #: ../src/guestfs-actions.pod:1157
6464 msgid ""
6465 "If the destination is a device, it must be as large or larger than the "
6466 "source file or device, otherwise the copy will fail.  This command cannot do "
6467 "partial copies (see C<guestfs_copy_size>)."
6468 msgstr ""
6469
6470 # type: =head2
6471 #: ../src/guestfs-actions.pod:1165
6472 msgid "guestfs_df"
6473 msgstr ""
6474
6475 # type: verbatim
6476 #: ../src/guestfs-actions.pod:1167
6477 #, no-wrap
6478 msgid ""
6479 " char *\n"
6480 " guestfs_df (guestfs_h *g);\n"
6481 "\n"
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6486 msgid "This command runs the C<df> command to report disk space used."
6487 msgstr ""
6488
6489 # type: textblock
6490 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6491 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6492 msgid ""
6493 "This command is mostly useful for interactive sessions.  It is I<not> "
6494 "intended that you try to parse the output string.  Use C<statvfs> from "
6495 "programs."
6496 msgstr ""
6497
6498 # type: textblock
6499 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6500 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6501 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6502 #: ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:4334
6503 #: ../src/guestfs-actions.pod:6096 ../src/guestfs-actions.pod:6120
6504 #: ../src/guestfs-actions.pod:6728 ../src/guestfs-actions.pod:6741
6505 #: ../src/guestfs-actions.pod:6754
6506 msgid "(Added in 1.0.54)"
6507 msgstr ""
6508
6509 # type: =head2
6510 #: ../src/guestfs-actions.pod:1181
6511 msgid "guestfs_df_h"
6512 msgstr ""
6513
6514 # type: verbatim
6515 #: ../src/guestfs-actions.pod:1183
6516 #, no-wrap
6517 msgid ""
6518 " char *\n"
6519 " guestfs_df_h (guestfs_h *g);\n"
6520 "\n"
6521 msgstr ""
6522
6523 # type: textblock
6524 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6525 msgid ""
6526 "This command runs the C<df -h> command to report disk space used in human-"
6527 "readable format."
6528 msgstr ""
6529
6530 # type: =head2
6531 #: ../src/guestfs-actions.pod:1198
6532 msgid "guestfs_dmesg"
6533 msgstr ""
6534
6535 # type: verbatim
6536 #: ../src/guestfs-actions.pod:1200
6537 #, no-wrap
6538 msgid ""
6539 " char *\n"
6540 " guestfs_dmesg (guestfs_h *g);\n"
6541 "\n"
6542 msgstr ""
6543
6544 # type: textblock
6545 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6546 msgid ""
6547 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6548 "This is sometimes useful for extended debugging of problems."
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1207
6553 msgid ""
6554 "Another way to get the same information is to enable verbose messages with "
6555 "C<guestfs_set_verbose> or by setting the environment variable "
6556 "C<LIBGUESTFS_DEBUG=1> before running the program."
6557 msgstr ""
6558
6559 # type: =head2
6560 #: ../src/guestfs-actions.pod:1217
6561 msgid "guestfs_download"
6562 msgstr ""
6563
6564 # type: verbatim
6565 #: ../src/guestfs-actions.pod:1219
6566 #, no-wrap
6567 msgid ""
6568 " int\n"
6569 " guestfs_download (guestfs_h *g,\n"
6570 "                   const char *remotefilename,\n"
6571 "                   const char *filename);\n"
6572 "\n"
6573 msgstr ""
6574
6575 # type: textblock
6576 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6577 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6578 msgid ""
6579 "Download file C<remotefilename> and save it as C<filename> on the local "
6580 "machine."
6581 msgstr ""
6582
6583 # type: textblock
6584 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6352
6585 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4258
6586 msgid "C<filename> can also be a named pipe."
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1229
6591 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6592 msgstr ""
6593
6594 # type: =head2
6595 #: ../src/guestfs-actions.pod:1240
6596 msgid "guestfs_download_offset"
6597 msgstr ""
6598
6599 # type: verbatim
6600 #: ../src/guestfs-actions.pod:1242
6601 #, no-wrap
6602 msgid ""
6603 " int\n"
6604 " guestfs_download_offset (guestfs_h *g,\n"
6605 "                          const char *remotefilename,\n"
6606 "                          const char *filename,\n"
6607 "                          int64_t offset,\n"
6608 "                          int64_t size);\n"
6609 "\n"
6610 msgstr ""
6611
6612 # type: textblock
6613 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6614 msgid ""
6615 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6616 "region must be within the file or device)."
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1255
6621 msgid ""
6622 "Note that there is no limit on the amount of data that can be downloaded "
6623 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6624 "full amount unless an error occurs."
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1260
6629 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6630 msgstr ""
6631
6632 # type: textblock
6633 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6387
6634 msgid "(Added in 1.5.17)"
6635 msgstr ""
6636
6637 # type: =head2
6638 #: ../src/guestfs-actions.pod:1271
6639 msgid "guestfs_drop_caches"
6640 msgstr ""
6641
6642 # type: verbatim
6643 #: ../src/guestfs-actions.pod:1273
6644 #, no-wrap
6645 msgid ""
6646 " int\n"
6647 " guestfs_drop_caches (guestfs_h *g,\n"
6648 "                      int whattodrop);\n"
6649 "\n"
6650 msgstr ""
6651
6652 # type: textblock
6653 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6654 msgid ""
6655 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6656 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6657 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6658 msgstr ""
6659
6660 # type: textblock
6661 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6662 msgid "Setting C<whattodrop> to 3 should drop everything."
6663 msgstr ""
6664
6665 # type: textblock
6666 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6667 msgid ""
6668 "This automatically calls L<sync(2)> before the operation, so that the "
6669 "maximum guest memory is freed."
6670 msgstr ""
6671
6672 # type: =head2
6673 #: ../src/guestfs-actions.pod:1291
6674 msgid "guestfs_du"
6675 msgstr ""
6676
6677 # type: verbatim
6678 #: ../src/guestfs-actions.pod:1293
6679 #, no-wrap
6680 msgid ""
6681 " int64_t\n"
6682 " guestfs_du (guestfs_h *g,\n"
6683 "             const char *path);\n"
6684 "\n"
6685 msgstr ""
6686
6687 # type: textblock
6688 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6689 msgid ""
6690 "This command runs the C<du -s> command to estimate file space usage for "
6691 "C<path>."
6692 msgstr ""
6693
6694 # type: textblock
6695 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6696 msgid ""
6697 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6698 "estimate includes the contents of the directory and all subdirectories "
6699 "(recursively)."
6700 msgstr ""
6701
6702 # type: textblock
6703 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6704 msgid ""
6705 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6706 msgstr ""
6707
6708 # type: =head2
6709 #: ../src/guestfs-actions.pod:1311
6710 msgid "guestfs_e2fsck_f"
6711 msgstr ""
6712
6713 # type: verbatim
6714 #: ../src/guestfs-actions.pod:1313
6715 #, no-wrap
6716 msgid ""
6717 " int\n"
6718 " guestfs_e2fsck_f (guestfs_h *g,\n"
6719 "                   const char *device);\n"
6720 "\n"
6721 msgstr ""
6722
6723 # type: textblock
6724 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6725 msgid ""
6726 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6727 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6728 "clean (C<-f>)."
6729 msgstr ""
6730
6731 # type: textblock
6732 #: ../src/guestfs-actions.pod:1321
6733 msgid ""
6734 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6735 "Normally you should use C<guestfs_fsck>."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1326
6740 msgid "(Added in 1.0.29)"
6741 msgstr ""
6742
6743 # type: =head2
6744 #: ../src/guestfs-actions.pod:1328
6745 msgid "guestfs_echo_daemon"
6746 msgstr ""
6747
6748 # type: verbatim
6749 #: ../src/guestfs-actions.pod:1330
6750 #, no-wrap
6751 msgid ""
6752 " char *\n"
6753 " guestfs_echo_daemon (guestfs_h *g,\n"
6754 "                      char *const *words);\n"
6755 "\n"
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6760 msgid ""
6761 "This command concatenates the list of C<words> passed with single spaces "
6762 "between them and returns the resulting string."
6763 msgstr ""
6764
6765 # type: textblock
6766 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6767 msgid "You can use this command to test the connection through to the daemon."
6768 msgstr ""
6769
6770 # type: textblock
6771 #: ../src/guestfs-actions.pod:1339
6772 msgid "See also C<guestfs_ping_daemon>."
6773 msgstr ""
6774
6775 # type: textblock
6776 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6777 #: ../src/guestfs-actions.pod:5600
6778 msgid "(Added in 1.0.69)"
6779 msgstr ""
6780
6781 # type: =head2
6782 #: ../src/guestfs-actions.pod:1346
6783 msgid "guestfs_egrep"
6784 msgstr ""
6785
6786 # type: verbatim
6787 #: ../src/guestfs-actions.pod:1348
6788 #, no-wrap
6789 msgid ""
6790 " char **\n"
6791 " guestfs_egrep (guestfs_h *g,\n"
6792 "                const char *regex,\n"
6793 "                const char *path);\n"
6794 "\n"
6795 msgstr ""
6796
6797 # type: textblock
6798 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6799 msgid ""
6800 "This calls the external C<egrep> program and returns the matching lines."
6801 msgstr ""
6802
6803 # type: textblock
6804 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6805 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6806 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6807 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6808 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6809 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6810 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3324
6811 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3351
6812 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:4269
6813 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5194
6814 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:5976
6815 #: ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6002
6816 #: ../src/guestfs-actions.pod:6024 ../src/guestfs-actions.pod:6037
6817 #: ../src/guestfs-actions.pod:6050 ../src/guestfs-actions.pod:6063
6818 #: ../src/guestfs-actions.pod:6824 ../src/guestfs-actions.pod:6843
6819 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6947
6820 #: ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7012
6821 msgid "(Added in 1.0.66)"
6822 msgstr ""
6823
6824 # type: =head2
6825 #: ../src/guestfs-actions.pod:1365
6826 msgid "guestfs_egrepi"
6827 msgstr ""
6828
6829 # type: verbatim
6830 #: ../src/guestfs-actions.pod:1367
6831 #, no-wrap
6832 msgid ""
6833 " char **\n"
6834 " guestfs_egrepi (guestfs_h *g,\n"
6835 "                 const char *regex,\n"
6836 "                 const char *path);\n"
6837 "\n"
6838 msgstr ""
6839
6840 # type: textblock
6841 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6842 msgid ""
6843 "This calls the external C<egrep -i> program and returns the matching lines."
6844 msgstr ""
6845
6846 # type: =head2
6847 #: ../src/guestfs-actions.pod:1384
6848 msgid "guestfs_equal"
6849 msgstr ""
6850
6851 # type: verbatim
6852 #: ../src/guestfs-actions.pod:1386
6853 #, no-wrap
6854 msgid ""
6855 " int\n"
6856 " guestfs_equal (guestfs_h *g,\n"
6857 "                const char *file1,\n"
6858 "                const char *file2);\n"
6859 "\n"
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6864 msgid ""
6865 "This compares the two files C<file1> and C<file2> and returns true if their "
6866 "content is exactly equal, or false otherwise."
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6871 msgid "The external L<cmp(1)> program is used for the comparison."
6872 msgstr ""
6873
6874 # type: =head2
6875 #: ../src/guestfs-actions.pod:1400
6876 msgid "guestfs_exists"
6877 msgstr ""
6878
6879 # type: verbatim
6880 #: ../src/guestfs-actions.pod:1402
6881 #, no-wrap
6882 msgid ""
6883 " int\n"
6884 " guestfs_exists (guestfs_h *g,\n"
6885 "                 const char *path);\n"
6886 "\n"
6887 msgstr ""
6888
6889 # type: textblock
6890 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6891 msgid ""
6892 "This returns C<true> if and only if there is a file, directory (or anything) "
6893 "with the given C<path> name."
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1409
6898 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6899 msgstr ""
6900
6901 # type: =head2
6902 #: ../src/guestfs-actions.pod:1415
6903 msgid "guestfs_fallocate"
6904 msgstr ""
6905
6906 # type: verbatim
6907 #: ../src/guestfs-actions.pod:1417
6908 #, no-wrap
6909 msgid ""
6910 " int\n"
6911 " guestfs_fallocate (guestfs_h *g,\n"
6912 "                    const char *path,\n"
6913 "                    int len);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6919 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6920 msgid ""
6921 "This command preallocates a file (containing zero bytes) named C<path> of "
6922 "size C<len> bytes.  If the file exists already, it is overwritten."
6923 msgstr ""
6924
6925 # type: textblock
6926 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6927 msgid ""
6928 "Do not confuse this with the guestfish-specific C<alloc> command which "
6929 "allocates a file in the host and attaches it as a device."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6934 msgid ""
6935 "This function is deprecated.  In new code, use the C<fallocate64> call "
6936 "instead."
6937 msgstr ""
6938
6939 # type: =head2
6940 #: ../src/guestfs-actions.pod:1441
6941 msgid "guestfs_fallocate64"
6942 msgstr ""
6943
6944 # type: verbatim
6945 #: ../src/guestfs-actions.pod:1443
6946 #, no-wrap
6947 msgid ""
6948 " int\n"
6949 " guestfs_fallocate64 (guestfs_h *g,\n"
6950 "                      const char *path,\n"
6951 "                      int64_t len);\n"
6952 "\n"
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1452
6957 msgid ""
6958 "Note that this call allocates disk blocks for the file.  To create a sparse "
6959 "file use C<guestfs_truncate_size> instead."
6960 msgstr ""
6961
6962 # type: textblock
6963 #: ../src/guestfs-actions.pod:1455
6964 msgid ""
6965 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6966 "oversight it only allowed 30 bit lengths to be specified, effectively "
6967 "limiting the maximum size of files created through that call to 1GB."
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6972 msgid ""
6973 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6974 "commands which create a file in the host and attach it as a device."
6975 msgstr ""
6976
6977 # type: textblock
6978 #: ../src/guestfs-actions.pod:1466
6979 msgid "(Added in 1.3.17)"
6980 msgstr ""
6981
6982 # type: =head2
6983 #: ../src/guestfs-actions.pod:1468
6984 msgid "guestfs_fgrep"
6985 msgstr ""
6986
6987 # type: verbatim
6988 #: ../src/guestfs-actions.pod:1470
6989 #, no-wrap
6990 msgid ""
6991 " char **\n"
6992 " guestfs_fgrep (guestfs_h *g,\n"
6993 "                const char *pattern,\n"
6994 "                const char *path);\n"
6995 "\n"
6996 msgstr ""
6997
6998 # type: textblock
6999 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
7000 msgid ""
7001 "This calls the external C<fgrep> program and returns the matching lines."
7002 msgstr ""
7003
7004 # type: =head2
7005 #: ../src/guestfs-actions.pod:1487
7006 msgid "guestfs_fgrepi"
7007 msgstr ""
7008
7009 # type: verbatim
7010 #: ../src/guestfs-actions.pod:1489
7011 #, no-wrap
7012 msgid ""
7013 " char **\n"
7014 " guestfs_fgrepi (guestfs_h *g,\n"
7015 "                 const char *pattern,\n"
7016 "                 const char *path);\n"
7017 "\n"
7018 msgstr ""
7019
7020 # type: textblock
7021 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
7022 msgid ""
7023 "This calls the external C<fgrep -i> program and returns the matching lines."
7024 msgstr ""
7025
7026 # type: =head2
7027 #: ../src/guestfs-actions.pod:1506
7028 msgid "guestfs_file"
7029 msgstr ""
7030
7031 # type: verbatim
7032 #: ../src/guestfs-actions.pod:1508
7033 #, no-wrap
7034 msgid ""
7035 " char *\n"
7036 " guestfs_file (guestfs_h *g,\n"
7037 "               const char *path);\n"
7038 "\n"
7039 msgstr ""
7040
7041 # type: textblock
7042 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
7043 msgid ""
7044 "This call uses the standard L<file(1)> command to determine the type or "
7045 "contents of the file."
7046 msgstr ""
7047
7048 # type: textblock
7049 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
7050 msgid ""
7051 "This call will also transparently look inside various types of compressed "
7052 "file."
7053 msgstr ""
7054
7055 # type: textblock
7056 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
7057 msgid ""
7058 "The exact command which runs is C<file -zb path>.  Note in particular that "
7059 "the filename is not prepended to the output (the C<-b> option)."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1522
7064 msgid ""
7065 "This command can also be used on C</dev/> devices (and partitions, LV "
7066 "names).  You can for example use this to determine if a device contains a "
7067 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7068 msgstr ""
7069
7070 # type: textblock
7071 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
7072 msgid ""
7073 "If the C<path> does not begin with C</dev/> then this command only works for "
7074 "the content of regular files.  For other file types (directory, symbolic "
7075 "link etc) it will just return the string C<directory> etc."
7076 msgstr ""
7077
7078 # type: =head2
7079 #: ../src/guestfs-actions.pod:1537
7080 msgid "guestfs_file_architecture"
7081 msgstr ""
7082
7083 # type: verbatim
7084 #: ../src/guestfs-actions.pod:1539
7085 #, no-wrap
7086 msgid ""
7087 " char *\n"
7088 " guestfs_file_architecture (guestfs_h *g,\n"
7089 "                            const char *filename);\n"
7090 "\n"
7091 msgstr ""
7092
7093 # type: textblock
7094 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
7095 msgid ""
7096 "This detects the architecture of the binary C<filename>, and returns it if "
7097 "known."
7098 msgstr ""
7099
7100 # type: textblock
7101 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
7102 msgid "Currently defined architectures are:"
7103 msgstr ""
7104
7105 # type: =item
7106 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
7107 msgid "\"i386\""
7108 msgstr ""
7109
7110 # type: textblock
7111 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
7112 msgid ""
7113 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7114 "irrespective of the precise processor requirements of the binary."
7115 msgstr ""
7116
7117 # type: =item
7118 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
7119 msgid "\"x86_64\""
7120 msgstr ""
7121
7122 # type: textblock
7123 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
7124 msgid "64 bit x86-64."
7125 msgstr ""
7126
7127 # type: =item
7128 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
7129 msgid "\"sparc\""
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
7134 msgid "32 bit SPARC."
7135 msgstr ""
7136
7137 # type: =item
7138 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
7139 msgid "\"sparc64\""
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
7144 msgid "64 bit SPARC V9 and above."
7145 msgstr ""
7146
7147 # type: =item
7148 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
7149 msgid "\"ia64\""
7150 msgstr ""
7151
7152 # type: textblock
7153 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
7154 msgid "Intel Itanium."
7155 msgstr ""
7156
7157 # type: =item
7158 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
7159 msgid "\"ppc\""
7160 msgstr ""
7161
7162 # type: textblock
7163 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
7164 msgid "32 bit Power PC."
7165 msgstr ""
7166
7167 # type: =item
7168 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
7169 msgid "\"ppc64\""
7170 msgstr ""
7171
7172 # type: textblock
7173 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
7174 msgid "64 bit Power PC."
7175 msgstr ""
7176
7177 # type: textblock
7178 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
7179 msgid "Libguestfs may return other architecture strings in future."
7180 msgstr ""
7181
7182 # type: textblock
7183 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
7184 msgid "The function works on at least the following types of files:"
7185 msgstr ""
7186
7187 # type: textblock
7188 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
7189 msgid "many types of Un*x and Linux binary"
7190 msgstr ""
7191
7192 # type: textblock
7193 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
7194 msgid "many types of Un*x and Linux shared library"
7195 msgstr ""
7196
7197 # type: textblock
7198 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
7199 msgid "Windows Win32 and Win64 binaries"
7200 msgstr ""
7201
7202 # type: textblock
7203 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
7204 msgid "Windows Win32 and Win64 DLLs"
7205 msgstr ""
7206
7207 # type: textblock
7208 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
7209 msgid "Win32 binaries and DLLs return C<i386>."
7210 msgstr ""
7211
7212 # type: textblock
7213 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
7214 msgid "Win64 binaries and DLLs return C<x86_64>."
7215 msgstr ""
7216
7217 # type: textblock
7218 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
7219 msgid "Linux kernel modules"
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
7224 msgid "Linux new-style initrd images"
7225 msgstr ""
7226
7227 # type: textblock
7228 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
7229 msgid "some non-x86 Linux vmlinuz kernels"
7230 msgstr ""
7231
7232 # type: textblock
7233 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
7234 msgid "What it can't do currently:"
7235 msgstr ""
7236
7237 # type: textblock
7238 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
7239 msgid "static libraries (libfoo.a)"
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
7244 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7245 msgstr ""
7246
7247 # type: textblock
7248 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7249 msgid "x86 Linux vmlinuz kernels"
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7254 msgid ""
7255 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7256 "compressed code, and are horribly hard to unpack.  If you want to find the "
7257 "architecture of a kernel, use the architecture of the associated initrd or "
7258 "kernel module(s) instead."
7259 msgstr ""
7260
7261 # type: textblock
7262 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7263 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7264 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
7265 #: ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:2633
7266 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2746
7267 #: ../src/guestfs-actions.pod:2806 ../src/guestfs-actions.pod:2977
7268 #: ../src/guestfs-actions.pod:3109
7269 msgid "(Added in 1.5.3)"
7270 msgstr ""
7271
7272 # type: =head2
7273 #: ../src/guestfs-actions.pod:1649
7274 msgid "guestfs_filesize"
7275 msgstr ""
7276
7277 # type: verbatim
7278 #: ../src/guestfs-actions.pod:1651
7279 #, no-wrap
7280 msgid ""
7281 " int64_t\n"
7282 " guestfs_filesize (guestfs_h *g,\n"
7283 "                   const char *file);\n"
7284 "\n"
7285 msgstr ""
7286
7287 # type: textblock
7288 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7289 msgid "This command returns the size of C<file> in bytes."
7290 msgstr ""
7291
7292 # type: textblock
7293 #: ../src/guestfs-actions.pod:1657
7294 msgid ""
7295 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7296 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7297 "devices, use C<guestfs_blockdev_getsize64>."
7298 msgstr ""
7299
7300 # type: textblock
7301 #: ../src/guestfs-actions.pod:1663
7302 msgid "(Added in 1.0.82)"
7303 msgstr ""
7304
7305 # type: =head2
7306 #: ../src/guestfs-actions.pod:1665
7307 msgid "guestfs_fill"
7308 msgstr ""
7309
7310 # type: verbatim
7311 #: ../src/guestfs-actions.pod:1667
7312 #, no-wrap
7313 msgid ""
7314 " int\n"
7315 " guestfs_fill (guestfs_h *g,\n"
7316 "               int c,\n"
7317 "               int len,\n"
7318 "               const char *path);\n"
7319 "\n"
7320 msgstr ""
7321
7322 # type: textblock
7323 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7324 msgid ""
7325 "This command creates a new file called C<path>.  The initial content of the "
7326 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7327 "[0..255]>."
7328 msgstr ""
7329
7330 # type: textblock
7331 #: ../src/guestfs-actions.pod:1677
7332 msgid ""
7333 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7334 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7335 "bytes use C<guestfs_fill_pattern>."
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1689
7340 msgid "(Added in 1.0.79)"
7341 msgstr ""
7342
7343 # type: =head2
7344 #: ../src/guestfs-actions.pod:1691
7345 msgid "guestfs_fill_pattern"
7346 msgstr ""
7347
7348 # type: verbatim
7349 #: ../src/guestfs-actions.pod:1693
7350 #, no-wrap
7351 msgid ""
7352 " int\n"
7353 " guestfs_fill_pattern (guestfs_h *g,\n"
7354 "                       const char *pattern,\n"
7355 "                       int len,\n"
7356 "                       const char *path);\n"
7357 "\n"
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:1699
7362 msgid ""
7363 "This function is like C<guestfs_fill> except that it creates a new file of "
7364 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7365 "pattern is truncated if necessary to ensure the length of the file is "
7366 "exactly C<len> bytes."
7367 msgstr ""
7368
7369 # type: textblock
7370 #: ../src/guestfs-actions.pod:1711
7371 msgid "(Added in 1.3.12)"
7372 msgstr ""
7373
7374 # type: =head2
7375 #: ../src/guestfs-actions.pod:1713
7376 msgid "guestfs_find"
7377 msgstr ""
7378
7379 # type: verbatim
7380 #: ../src/guestfs-actions.pod:1715
7381 #, no-wrap
7382 msgid ""
7383 " char **\n"
7384 " guestfs_find (guestfs_h *g,\n"
7385 "               const char *directory);\n"
7386 "\n"
7387 msgstr ""
7388
7389 # type: textblock
7390 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7391 msgid ""
7392 "This command lists out all files and directories, recursively, starting at "
7393 "C<directory>.  It is essentially equivalent to running the shell command "
7394 "C<find directory -print> but some post-processing happens on the output, "
7395 "described below."
7396 msgstr ""
7397
7398 # type: textblock
7399 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7400 msgid ""
7401 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7402 "structure was:"
7403 msgstr ""
7404
7405 # type: verbatim
7406 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7407 #, no-wrap
7408 msgid ""
7409 " /tmp/a\n"
7410 " /tmp/b\n"
7411 " /tmp/c/d\n"
7412 "\n"
7413 msgstr ""
7414
7415 # type: textblock
7416 #: ../src/guestfs-actions.pod:1731
7417 msgid ""
7418 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7419 msgstr ""
7420
7421 # type: verbatim
7422 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7423 #, no-wrap
7424 msgid ""
7425 " a\n"
7426 " b\n"
7427 " c\n"
7428 " c/d\n"
7429 "\n"
7430 msgstr ""
7431
7432 # type: textblock
7433 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7434 msgid "If C<directory> is not a directory, then this command returns an error."
7435 msgstr ""
7436
7437 # type: textblock
7438 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7439 msgid "The returned list is sorted."
7440 msgstr ""
7441
7442 # type: textblock
7443 #: ../src/guestfs-actions.pod:1744
7444 msgid "See also C<guestfs_find0>."
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3768
7449 #: ../src/guestfs-actions.pod:5229
7450 msgid "(Added in 1.0.27)"
7451 msgstr ""
7452
7453 # type: =head2
7454 #: ../src/guestfs-actions.pod:1755
7455 msgid "guestfs_find0"
7456 msgstr ""
7457
7458 # type: verbatim
7459 #: ../src/guestfs-actions.pod:1757
7460 #, no-wrap
7461 msgid ""
7462 " int\n"
7463 " guestfs_find0 (guestfs_h *g,\n"
7464 "                const char *directory,\n"
7465 "                const char *files);\n"
7466 "\n"
7467 msgstr ""
7468
7469 # type: textblock
7470 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7471 msgid ""
7472 "This command lists out all files and directories, recursively, starting at "
7473 "C<directory>, placing the resulting list in the external file called "
7474 "C<files>."
7475 msgstr ""
7476
7477 # type: textblock
7478 #: ../src/guestfs-actions.pod:1766
7479 msgid ""
7480 "This command works the same way as C<guestfs_find> with the following "
7481 "exceptions:"
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7486 msgid "The resulting list is written to an external file."
7487 msgstr ""
7488
7489 # type: textblock
7490 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7491 msgid ""
7492 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7493 "L<find(1)> option I<-print0>."
7494 msgstr ""
7495
7496 # type: textblock
7497 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7498 msgid "This command is not limited in the number of names that it can return."
7499 msgstr ""
7500
7501 # type: textblock
7502 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7503 msgid "The result list is not sorted."
7504 msgstr ""
7505
7506 # type: textblock
7507 #: ../src/guestfs-actions.pod:1793
7508 msgid "(Added in 1.0.74)"
7509 msgstr ""
7510
7511 # type: =head2
7512 #: ../src/guestfs-actions.pod:1795
7513 msgid "guestfs_findfs_label"
7514 msgstr ""
7515
7516 # type: verbatim
7517 #: ../src/guestfs-actions.pod:1797
7518 #, no-wrap
7519 msgid ""
7520 " char *\n"
7521 " guestfs_findfs_label (guestfs_h *g,\n"
7522 "                       const char *label);\n"
7523 "\n"
7524 msgstr ""
7525
7526 # type: textblock
7527 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7528 msgid ""
7529 "This command searches the filesystems and returns the one which has the "
7530 "given label.  An error is returned if no such filesystem can be found."
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:1805
7535 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7536 msgstr ""
7537
7538 # type: =head2
7539 #: ../src/guestfs-actions.pod:1812
7540 msgid "guestfs_findfs_uuid"
7541 msgstr ""
7542
7543 # type: verbatim
7544 #: ../src/guestfs-actions.pod:1814
7545 #, no-wrap
7546 msgid ""
7547 " char *\n"
7548 " guestfs_findfs_uuid (guestfs_h *g,\n"
7549 "                      const char *uuid);\n"
7550 "\n"
7551 msgstr ""
7552
7553 # type: textblock
7554 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7555 msgid ""
7556 "This command searches the filesystems and returns the one which has the "
7557 "given UUID.  An error is returned if no such filesystem can be found."
7558 msgstr ""
7559
7560 # type: textblock
7561 #: ../src/guestfs-actions.pod:1822
7562 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7563 msgstr ""
7564
7565 # type: =head2
7566 #: ../src/guestfs-actions.pod:1829
7567 msgid "guestfs_fsck"
7568 msgstr ""
7569
7570 # type: verbatim
7571 #: ../src/guestfs-actions.pod:1831
7572 #, no-wrap
7573 msgid ""
7574 " int\n"
7575 " guestfs_fsck (guestfs_h *g,\n"
7576 "               const char *fstype,\n"
7577 "               const char *device);\n"
7578 "\n"
7579 msgstr ""
7580
7581 # type: textblock
7582 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7583 msgid ""
7584 "This runs the filesystem checker (fsck) on C<device> which should have "
7585 "filesystem type C<fstype>."
7586 msgstr ""
7587
7588 # type: textblock
7589 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7590 msgid ""
7591 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7592 "codes from C<fsck>."
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7597 msgid "Multiple status codes can be summed together."
7598 msgstr ""
7599
7600 # type: textblock
7601 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7602 msgid ""
7603 "A non-zero return code can mean \"success\", for example if errors have been "
7604 "corrected on the filesystem."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7609 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7610 msgstr ""
7611
7612 # type: textblock
7613 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7614 msgid ""
7615 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6866
7620 msgid "(Added in 1.0.16)"
7621 msgstr ""
7622
7623 # type: =head2
7624 #: ../src/guestfs-actions.pod:1868
7625 msgid "guestfs_get_append"
7626 msgstr ""
7627
7628 # type: verbatim
7629 #: ../src/guestfs-actions.pod:1870
7630 #, no-wrap
7631 msgid ""
7632 " const char *\n"
7633 " guestfs_get_append (guestfs_h *g);\n"
7634 "\n"
7635 msgstr ""
7636
7637 # type: textblock
7638 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7639 msgid ""
7640 "Return the additional kernel options which are added to the guest kernel "
7641 "command line."
7642 msgstr ""
7643
7644 # type: textblock
7645 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7646 msgid "If C<NULL> then no options are added."
7647 msgstr ""
7648
7649 # type: textblock
7650 #: ../src/guestfs-actions.pod:1878
7651 msgid ""
7652 "This function returns a string which may be NULL.  There is no way to return "
7653 "an error from this function.  The string is owned by the guest handle and "
7654 "must I<not> be freed."
7655 msgstr ""
7656
7657 # type: textblock
7658 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4907
7659 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5738
7660 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5773
7661 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6537
7662 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6909
7663 msgid "(Added in 1.0.26)"
7664 msgstr ""
7665
7666 # type: =head2
7667 #: ../src/guestfs-actions.pod:1884
7668 msgid "guestfs_get_autosync"
7669 msgstr ""
7670
7671 # type: verbatim
7672 #: ../src/guestfs-actions.pod:1886
7673 #, no-wrap
7674 msgid ""
7675 " int\n"
7676 " guestfs_get_autosync (guestfs_h *g);\n"
7677 "\n"
7678 msgstr ""
7679
7680 # type: textblock
7681 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7682 msgid "Get the autosync flag."
7683 msgstr ""
7684
7685 # type: =head2
7686 #: ../src/guestfs-actions.pod:1895
7687 msgid "guestfs_get_direct"
7688 msgstr ""
7689
7690 # type: verbatim
7691 #: ../src/guestfs-actions.pod:1897
7692 #, no-wrap
7693 msgid ""
7694 " int\n"
7695 " guestfs_get_direct (guestfs_h *g);\n"
7696 "\n"
7697 msgstr ""
7698
7699 # type: textblock
7700 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7701 msgid "Return the direct appliance mode flag."
7702 msgstr ""
7703
7704 # type: textblock
7705 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5411
7706 msgid "(Added in 1.0.72)"
7707 msgstr ""
7708
7709 # type: =head2
7710 #: ../src/guestfs-actions.pod:1906
7711 msgid "guestfs_get_e2label"
7712 msgstr ""
7713
7714 # type: verbatim
7715 #: ../src/guestfs-actions.pod:1908
7716 #, no-wrap
7717 msgid ""
7718 " char *\n"
7719 " guestfs_get_e2label (guestfs_h *g,\n"
7720 "                      const char *device);\n"
7721 "\n"
7722 msgstr ""
7723
7724 # type: textblock
7725 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7726 msgid ""
7727 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7732 msgid ""
7733 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7734 msgstr ""
7735
7736 # type: textblock
7737 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7738 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5448
7739 msgid "(Added in 1.0.15)"
7740 msgstr ""
7741
7742 # type: =head2
7743 #: ../src/guestfs-actions.pod:1927
7744 msgid "guestfs_get_e2uuid"
7745 msgstr ""
7746
7747 # type: verbatim
7748 #: ../src/guestfs-actions.pod:1929
7749 #, no-wrap
7750 msgid ""
7751 " char *\n"
7752 " guestfs_get_e2uuid (guestfs_h *g,\n"
7753 "                     const char *device);\n"
7754 "\n"
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7759 msgid ""
7760 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7761 msgstr ""
7762
7763 # type: textblock
7764 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7765 msgid ""
7766 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7767 msgstr ""
7768
7769 # type: =head2
7770 #: ../src/guestfs-actions.pod:1948
7771 msgid "guestfs_get_memsize"
7772 msgstr ""
7773
7774 # type: verbatim
7775 #: ../src/guestfs-actions.pod:1950
7776 #, no-wrap
7777 msgid ""
7778 " int\n"
7779 " guestfs_get_memsize (guestfs_h *g);\n"
7780 "\n"
7781 msgstr ""
7782
7783 # type: textblock
7784 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7785 msgid ""
7786 "This gets the memory size in megabytes allocated to the qemu subprocess."
7787 msgstr ""
7788
7789 # type: textblock
7790 #: ../src/guestfs-actions.pod:1956
7791 msgid ""
7792 "If C<guestfs_set_memsize> was not called on this handle, and if "
7793 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7794 "value for memsize."
7795 msgstr ""
7796
7797 # type: textblock
7798 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7799 #: ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5571
7800 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7801 #: ../fish/guestfish-actions.pod:3665 ../fish/guestfish-actions.pod:3752
7802 msgid ""
7803 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7804 msgstr ""
7805
7806 # type: textblock
7807 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4059
7808 #: ../src/guestfs-actions.pod:4174 ../src/guestfs-actions.pod:4193
7809 #: ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4224
7810 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4254
7811 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5469
7812 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6313
7813 msgid "(Added in 1.0.55)"
7814 msgstr ""
7815
7816 # type: =head2
7817 #: ../src/guestfs-actions.pod:1967
7818 msgid "guestfs_get_network"
7819 msgstr ""
7820
7821 # type: verbatim
7822 #: ../src/guestfs-actions.pod:1969
7823 #, no-wrap
7824 msgid ""
7825 " int\n"
7826 " guestfs_get_network (guestfs_h *g);\n"
7827 "\n"
7828 msgstr ""
7829
7830 # type: textblock
7831 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7832 msgid "This returns the enable network flag."
7833 msgstr ""
7834
7835 # type: textblock
7836 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5488
7837 msgid "(Added in 1.5.4)"
7838 msgstr ""
7839
7840 # type: =head2
7841 #: ../src/guestfs-actions.pod:1978
7842 msgid "guestfs_get_path"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #: ../src/guestfs-actions.pod:1980
7847 #, no-wrap
7848 msgid ""
7849 " const char *\n"
7850 " guestfs_get_path (guestfs_h *g);\n"
7851 "\n"
7852 msgstr ""
7853
7854 # type: textblock
7855 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7856 msgid "Return the current search path."
7857 msgstr ""
7858
7859 # type: textblock
7860 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7861 msgid ""
7862 "This is always non-NULL.  If it wasn't set already, then this will return "
7863 "the default path."
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7868 msgid ""
7869 "This function returns a string, or NULL on error.  The string is owned by "
7870 "the guest handle and must I<not> be freed."
7871 msgstr ""
7872
7873 # type: =head2
7874 #: ../src/guestfs-actions.pod:1993
7875 msgid "guestfs_get_pid"
7876 msgstr ""
7877
7878 # type: verbatim
7879 #: ../src/guestfs-actions.pod:1995
7880 #, no-wrap
7881 msgid ""
7882 " int\n"
7883 " guestfs_get_pid (guestfs_h *g);\n"
7884 "\n"
7885 msgstr ""
7886
7887 # type: textblock
7888 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7889 msgid ""
7890 "Return the process ID of the qemu subprocess.  If there is no qemu "
7891 "subprocess, then this will return an error."
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7896 msgid "This is an internal call used for debugging and testing."
7897 msgstr ""
7898
7899 # type: textblock
7900 #: ../src/guestfs-actions.pod:2005
7901 msgid "(Added in 1.0.56)"
7902 msgstr ""
7903
7904 # type: =head2
7905 #: ../src/guestfs-actions.pod:2007
7906 msgid "guestfs_get_qemu"
7907 msgstr ""
7908
7909 # type: verbatim
7910 #: ../src/guestfs-actions.pod:2009
7911 #, no-wrap
7912 msgid ""
7913 " const char *\n"
7914 " guestfs_get_qemu (guestfs_h *g);\n"
7915 "\n"
7916 msgstr ""
7917
7918 # type: textblock
7919 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7920 msgid "Return the current qemu binary."
7921 msgstr ""
7922
7923 # type: textblock
7924 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7925 msgid ""
7926 "This is always non-NULL.  If it wasn't set already, then this will return "
7927 "the default qemu binary name."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5533
7932 msgid "(Added in 1.0.6)"
7933 msgstr ""
7934
7935 # type: =head2
7936 #: ../src/guestfs-actions.pod:2022
7937 msgid "guestfs_get_recovery_proc"
7938 msgstr ""
7939
7940 # type: verbatim
7941 #: ../src/guestfs-actions.pod:2024
7942 #, no-wrap
7943 msgid ""
7944 " int\n"
7945 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7946 "\n"
7947 msgstr ""
7948
7949 # type: textblock
7950 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7951 msgid "Return the recovery process enabled flag."
7952 msgstr ""
7953
7954 # type: textblock
7955 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3199
7956 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3866
7957 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4837
7958 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5557
7959 #: ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6236
7960 #: ../src/guestfs-actions.pod:6418
7961 msgid "(Added in 1.0.77)"
7962 msgstr ""
7963
7964 # type: =head2
7965 #: ../src/guestfs-actions.pod:2033
7966 msgid "guestfs_get_selinux"
7967 msgstr ""
7968
7969 # type: verbatim
7970 #: ../src/guestfs-actions.pod:2035
7971 #, no-wrap
7972 msgid ""
7973 " int\n"
7974 " guestfs_get_selinux (guestfs_h *g);\n"
7975 "\n"
7976 msgstr ""
7977
7978 # type: textblock
7979 #: ../src/guestfs-actions.pod:2038
7980 msgid ""
7981 "This returns the current setting of the selinux flag which is passed to the "
7982 "appliance at boot time.  See C<guestfs_set_selinux>."
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7987 #: ../src/guestfs-actions.pod:5576 ../src/guestfs-actions.pod:5630
7988 msgid "(Added in 1.0.67)"
7989 msgstr ""
7990
7991 # type: =head2
7992 #: ../src/guestfs-actions.pod:2048
7993 msgid "guestfs_get_state"
7994 msgstr ""
7995
7996 # type: verbatim
7997 #: ../src/guestfs-actions.pod:2050
7998 #, no-wrap
7999 msgid ""
8000 " int\n"
8001 " guestfs_get_state (guestfs_h *g);\n"
8002 "\n"
8003 msgstr ""
8004
8005 # type: textblock
8006 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
8007 msgid ""
8008 "This returns the current state as an opaque integer.  This is only useful "
8009 "for printing debug and internal error messages."
8010 msgstr ""
8011
8012 # type: textblock
8013 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3002
8014 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3092
8015 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:1398
8016 #: ../fish/guestfish-actions.pod:2098 ../fish/guestfish-actions.pod:2116
8017 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2170
8018 msgid "For more information on states, see L<guestfs(3)>."
8019 msgstr ""
8020
8021 # type: =head2
8022 #: ../src/guestfs-actions.pod:2062
8023 msgid "guestfs_get_trace"
8024 msgstr ""
8025
8026 # type: verbatim
8027 #: ../src/guestfs-actions.pod:2064
8028 #, no-wrap
8029 msgid ""
8030 " int\n"
8031 " guestfs_get_trace (guestfs_h *g);\n"
8032 "\n"
8033 msgstr ""
8034
8035 # type: textblock
8036 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
8037 msgid "Return the command trace flag."
8038 msgstr ""
8039
8040 # type: =head2
8041 #: ../src/guestfs-actions.pod:2073
8042 msgid "guestfs_get_umask"
8043 msgstr ""
8044
8045 # type: verbatim
8046 #: ../src/guestfs-actions.pod:2075
8047 #, no-wrap
8048 msgid ""
8049 " int\n"
8050 " guestfs_get_umask (guestfs_h *g);\n"
8051 "\n"
8052 msgstr ""
8053
8054 # type: textblock
8055 #: ../src/guestfs-actions.pod:2078
8056 msgid ""
8057 "Return the current umask.  By default the umask is C<022> unless it has been "
8058 "set by calling C<guestfs_umask>."
8059 msgstr ""
8060
8061 # type: =head2
8062 #: ../src/guestfs-actions.pod:2085
8063 msgid "guestfs_get_verbose"
8064 msgstr ""
8065
8066 # type: verbatim
8067 #: ../src/guestfs-actions.pod:2087
8068 #, no-wrap
8069 msgid ""
8070 " int\n"
8071 " guestfs_get_verbose (guestfs_h *g);\n"
8072 "\n"
8073 msgstr ""
8074
8075 # type: textblock
8076 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
8077 msgid "This returns the verbose messages flag."
8078 msgstr ""
8079
8080 # type: =head2
8081 #: ../src/guestfs-actions.pod:2096
8082 msgid "guestfs_getcon"
8083 msgstr ""
8084
8085 # type: verbatim
8086 #: ../src/guestfs-actions.pod:2098
8087 #, no-wrap
8088 msgid ""
8089 " char *\n"
8090 " guestfs_getcon (guestfs_h *g);\n"
8091 "\n"
8092 msgstr ""
8093
8094 # type: textblock
8095 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
8096 msgid "This gets the SELinux security context of the daemon."
8097 msgstr ""
8098
8099 # type: textblock
8100 #: ../src/guestfs-actions.pod:2103
8101 msgid ""
8102 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8103 msgstr ""
8104
8105 # type: =head2
8106 #: ../src/guestfs-actions.pod:2111
8107 msgid "guestfs_getxattrs"
8108 msgstr ""
8109
8110 # type: verbatim
8111 #: ../src/guestfs-actions.pod:2113
8112 #, no-wrap
8113 msgid ""
8114 " struct guestfs_xattr_list *\n"
8115 " guestfs_getxattrs (guestfs_h *g,\n"
8116 "                    const char *path);\n"
8117 "\n"
8118 msgstr ""
8119
8120 # type: textblock
8121 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
8122 msgid ""
8123 "This call lists the extended attributes of the file or directory C<path>."
8124 msgstr ""
8125
8126 # type: textblock
8127 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
8128 msgid ""
8129 "At the system call level, this is a combination of the L<listxattr(2)> and "
8130 "L<getxattr(2)> calls."
8131 msgstr ""
8132
8133 # type: textblock
8134 #: ../src/guestfs-actions.pod:2123
8135 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8136 msgstr ""
8137
8138 # type: textblock
8139 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3211
8140 #: ../src/guestfs-actions.pod:3862
8141 msgid ""
8142 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8143 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3215
8148 #: ../src/guestfs-actions.pod:3380 ../src/guestfs-actions.pod:3416
8149 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5649
8150 #: ../src/guestfs-actions.pod:6974
8151 msgid "(Added in 1.0.59)"
8152 msgstr ""
8153
8154 # type: =head2
8155 #: ../src/guestfs-actions.pod:2131
8156 msgid "guestfs_glob_expand"
8157 msgstr ""
8158
8159 # type: verbatim
8160 #: ../src/guestfs-actions.pod:2133
8161 #, no-wrap
8162 msgid ""
8163 " char **\n"
8164 " guestfs_glob_expand (guestfs_h *g,\n"
8165 "                      const char *pattern);\n"
8166 "\n"
8167 msgstr ""
8168
8169 # type: textblock
8170 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
8171 msgid ""
8172 "This command searches for all the pathnames matching C<pattern> according to "
8173 "the wildcard expansion rules used by the shell."
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
8178 msgid ""
8179 "If no paths match, then this returns an empty list (note: not an error)."
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
8184 msgid ""
8185 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8186 "GLOB_BRACE>.  See that manual page for more details."
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5814
8191 #: ../src/guestfs-actions.pod:5831
8192 msgid "(Added in 1.0.50)"
8193 msgstr ""
8194
8195 # type: =head2
8196 #: ../src/guestfs-actions.pod:2154
8197 msgid "guestfs_grep"
8198 msgstr ""
8199
8200 # type: verbatim
8201 #: ../src/guestfs-actions.pod:2156
8202 #, no-wrap
8203 msgid ""
8204 " char **\n"
8205 " guestfs_grep (guestfs_h *g,\n"
8206 "               const char *regex,\n"
8207 "               const char *path);\n"
8208 "\n"
8209 msgstr ""
8210
8211 # type: textblock
8212 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
8213 msgid "This calls the external C<grep> program and returns the matching lines."
8214 msgstr ""
8215
8216 # type: =head2
8217 #: ../src/guestfs-actions.pod:2173
8218 msgid "guestfs_grepi"
8219 msgstr ""
8220
8221 # type: verbatim
8222 #: ../src/guestfs-actions.pod:2175
8223 #, no-wrap
8224 msgid ""
8225 " char **\n"
8226 " guestfs_grepi (guestfs_h *g,\n"
8227 "                const char *regex,\n"
8228 "                const char *path);\n"
8229 "\n"
8230 msgstr ""
8231
8232 # type: textblock
8233 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
8234 msgid ""
8235 "This calls the external C<grep -i> program and returns the matching lines."
8236 msgstr ""
8237
8238 # type: =head2
8239 #: ../src/guestfs-actions.pod:2192
8240 msgid "guestfs_grub_install"
8241 msgstr ""
8242
8243 # type: verbatim
8244 #: ../src/guestfs-actions.pod:2194
8245 #, no-wrap
8246 msgid ""
8247 " int\n"
8248 " guestfs_grub_install (guestfs_h *g,\n"
8249 "                       const char *root,\n"
8250 "                       const char *device);\n"
8251 "\n"
8252 msgstr ""
8253
8254 # type: textblock
8255 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8256 msgid ""
8257 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8258 "the root directory being C<root>."
8259 msgstr ""
8260
8261 # type: textblock
8262 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8263 msgid ""
8264 "Note: If grub-install reports the error \"No suitable drive was found in the "
8265 "generated device map.\" it may be that you need to create a C</boot/grub/"
8266 "device.map> file first that contains the mapping between grub device names "
8267 "and Linux device names.  It is usually sufficient to create a file "
8268 "containing:"
8269 msgstr ""
8270
8271 # type: verbatim
8272 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8273 #, no-wrap
8274 msgid ""
8275 " (hd0) /dev/vda\n"
8276 "\n"
8277 msgstr ""
8278
8279 # type: textblock
8280 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8281 msgid "replacing C</dev/vda> with the name of the installation device."
8282 msgstr ""
8283
8284 # type: textblock
8285 #: ../src/guestfs-actions.pod:2215
8286 msgid "(Added in 1.0.17)"
8287 msgstr ""
8288
8289 # type: =head2
8290 #: ../src/guestfs-actions.pod:2217
8291 msgid "guestfs_head"
8292 msgstr ""
8293
8294 # type: verbatim
8295 #: ../src/guestfs-actions.pod:2219
8296 #, no-wrap
8297 msgid ""
8298 " char **\n"
8299 " guestfs_head (guestfs_h *g,\n"
8300 "               const char *path);\n"
8301 "\n"
8302 msgstr ""
8303
8304 # type: textblock
8305 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8306 msgid ""
8307 "This command returns up to the first 10 lines of a file as a list of strings."
8308 msgstr ""
8309
8310 # type: =head2
8311 #: ../src/guestfs-actions.pod:2235
8312 msgid "guestfs_head_n"
8313 msgstr ""
8314
8315 # type: verbatim
8316 #: ../src/guestfs-actions.pod:2237
8317 #, no-wrap
8318 msgid ""
8319 " char **\n"
8320 " guestfs_head_n (guestfs_h *g,\n"
8321 "                 int nrlines,\n"
8322 "                 const char *path);\n"
8323 "\n"
8324 msgstr ""
8325
8326 # type: textblock
8327 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8328 msgid ""
8329 "If the parameter C<nrlines> is a positive number, this returns the first "
8330 "C<nrlines> lines of the file C<path>."
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8335 msgid ""
8336 "If the parameter C<nrlines> is a negative number, this returns lines from "
8337 "the file C<path>, excluding the last C<nrlines> lines."
8338 msgstr ""
8339
8340 # type: textblock
8341 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:6111
8342 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4098
8343 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8344 msgstr ""
8345
8346 # type: =head2
8347 #: ../src/guestfs-actions.pod:2259
8348 msgid "guestfs_hexdump"
8349 msgstr ""
8350
8351 # type: verbatim
8352 #: ../src/guestfs-actions.pod:2261
8353 #, no-wrap
8354 msgid ""
8355 " char *\n"
8356 " guestfs_hexdump (guestfs_h *g,\n"
8357 "                  const char *path);\n"
8358 "\n"
8359 msgstr ""
8360
8361 # type: textblock
8362 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8363 msgid ""
8364 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8365 "readable, canonical hex dump of the file."
8366 msgstr ""
8367
8368 # type: textblock
8369 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5895
8370 #: ../src/guestfs-actions.pod:5950
8371 msgid "(Added in 1.0.22)"
8372 msgstr ""
8373
8374 # type: =head2
8375 #: ../src/guestfs-actions.pod:2276
8376 msgid "guestfs_initrd_cat"
8377 msgstr ""
8378
8379 # type: verbatim
8380 #: ../src/guestfs-actions.pod:2278
8381 #, no-wrap
8382 msgid ""
8383 " char *\n"
8384 " guestfs_initrd_cat (guestfs_h *g,\n"
8385 "                     const char *initrdpath,\n"
8386 "                     const char *filename,\n"
8387 "                     size_t *size_r);\n"
8388 "\n"
8389 msgstr ""
8390
8391 # type: textblock
8392 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8393 msgid ""
8394 "This command unpacks the file C<filename> from the initrd file called "
8395 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8396 "character."
8397 msgstr ""
8398
8399 # type: textblock
8400 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8401 msgid ""
8402 "For example, in guestfish you could use the following command to examine the "
8403 "boot script (usually called C</init>)  contained in a Linux initrd or "
8404 "initramfs image:"
8405 msgstr ""
8406
8407 # type: verbatim
8408 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8409 #, no-wrap
8410 msgid ""
8411 " initrd-cat /boot/initrd-<version>.img init\n"
8412 "\n"
8413 msgstr ""
8414
8415 # type: textblock
8416 #: ../src/guestfs-actions.pod:2294
8417 msgid "See also C<guestfs_initrd_list>."
8418 msgstr ""
8419
8420 # type: textblock
8421 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4830
8422 #: ../src/guestfs-actions.pod:4856 ../src/guestfs-actions.pod:5037
8423 msgid ""
8424 "This function returns a buffer, or NULL on error.  The size of the returned "
8425 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8426 "after use>."
8427 msgstr ""
8428
8429 # type: =head2
8430 #: ../src/guestfs-actions.pod:2305
8431 msgid "guestfs_initrd_list"
8432 msgstr ""
8433
8434 # type: verbatim
8435 #: ../src/guestfs-actions.pod:2307
8436 #, no-wrap
8437 msgid ""
8438 " char **\n"
8439 " guestfs_initrd_list (guestfs_h *g,\n"
8440 "                      const char *path);\n"
8441 "\n"
8442 msgstr ""
8443
8444 # type: textblock
8445 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8446 msgid "This command lists out files contained in an initrd."
8447 msgstr ""
8448
8449 # type: textblock
8450 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8451 msgid ""
8452 "The files are listed without any initial C</> character.  The files are "
8453 "listed in the order they appear (not necessarily alphabetical).  Directory "
8454 "names are listed as separate items."
8455 msgstr ""
8456
8457 # type: textblock
8458 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8459 msgid ""
8460 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8461 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8462 "files)."
8463 msgstr ""
8464
8465 # type: =head2
8466 #: ../src/guestfs-actions.pod:2327
8467 msgid "guestfs_inotify_add_watch"
8468 msgstr ""
8469
8470 # type: verbatim
8471 #: ../src/guestfs-actions.pod:2329
8472 #, no-wrap
8473 msgid ""
8474 " int64_t\n"
8475 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8476 "                            const char *path,\n"
8477 "                            int mask);\n"
8478 "\n"
8479 msgstr ""
8480
8481 # type: textblock
8482 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8483 msgid "Watch C<path> for the events listed in C<mask>."
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8488 msgid ""
8489 "Note that if C<path> is a directory then events within that directory are "
8490 "watched, but this does I<not> happen recursively (in subdirectories)."
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8495 msgid ""
8496 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8497 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8498 msgstr ""
8499
8500 # type: =head2
8501 #: ../src/guestfs-actions.pod:2348
8502 msgid "guestfs_inotify_close"
8503 msgstr ""
8504
8505 # type: verbatim
8506 #: ../src/guestfs-actions.pod:2350
8507 #, no-wrap
8508 msgid ""
8509 " int\n"
8510 " guestfs_inotify_close (guestfs_h *g);\n"
8511 "\n"
8512 msgstr ""
8513
8514 # type: textblock
8515 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8516 msgid ""
8517 "This closes the inotify handle which was previously opened by inotify_init.  "
8518 "It removes all watches, throws away any pending events, and deallocates all "
8519 "resources."
8520 msgstr ""
8521
8522 # type: =head2
8523 #: ../src/guestfs-actions.pod:2361
8524 msgid "guestfs_inotify_files"
8525 msgstr ""
8526
8527 # type: verbatim
8528 #: ../src/guestfs-actions.pod:2363
8529 #, no-wrap
8530 msgid ""
8531 " char **\n"
8532 " guestfs_inotify_files (guestfs_h *g);\n"
8533 "\n"
8534 msgstr ""
8535
8536 # type: textblock
8537 #: ../src/guestfs-actions.pod:2366
8538 msgid ""
8539 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8540 "returns a list of pathnames of objects that were touched.  The returned "
8541 "pathnames are sorted and deduplicated."
8542 msgstr ""
8543
8544 # type: =head2
8545 #: ../src/guestfs-actions.pod:2376
8546 msgid "guestfs_inotify_init"
8547 msgstr ""
8548
8549 # type: verbatim
8550 #: ../src/guestfs-actions.pod:2378
8551 #, no-wrap
8552 msgid ""
8553 " int\n"
8554 " guestfs_inotify_init (guestfs_h *g,\n"
8555 "                       int maxevents);\n"
8556 "\n"
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8561 msgid ""
8562 "This command creates a new inotify handle.  The inotify subsystem can be "
8563 "used to notify events which happen to objects in the guest filesystem."
8564 msgstr ""
8565
8566 # type: textblock
8567 #: ../src/guestfs-actions.pod:2386
8568 msgid ""
8569 "C<maxevents> is the maximum number of events which will be queued up between "
8570 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8571 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8572 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8573 "throws away events, but records the fact that it threw them away by setting "
8574 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8575 "C<guestfs_inotify_read>)."
8576 msgstr ""
8577
8578 # type: textblock
8579 #: ../src/guestfs-actions.pod:2396
8580 msgid ""
8581 "Before any events are generated, you have to add some watches to the "
8582 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8583 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8584 msgstr ""
8585
8586 # type: textblock
8587 #: ../src/guestfs-actions.pod:2402
8588 msgid ""
8589 "Queued up events should be read periodically by calling "
8590 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8591 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8592 "often enough then you risk the internal queue overflowing."
8593 msgstr ""
8594
8595 # type: textblock
8596 #: ../src/guestfs-actions.pod:2409
8597 msgid ""
8598 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8599 "This also removes any watches automatically."
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8604 msgid ""
8605 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8606 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8607 "that there is one global inotify handle per libguestfs instance."
8608 msgstr ""
8609
8610 # type: =head2
8611 #: ../src/guestfs-actions.pod:2422
8612 msgid "guestfs_inotify_read"
8613 msgstr ""
8614
8615 # type: verbatim
8616 #: ../src/guestfs-actions.pod:2424
8617 #, no-wrap
8618 msgid ""
8619 " struct guestfs_inotify_event_list *\n"
8620 " guestfs_inotify_read (guestfs_h *g);\n"
8621 "\n"
8622 msgstr ""
8623
8624 # type: textblock
8625 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8626 msgid ""
8627 "Return the complete queue of events that have happened since the previous "
8628 "read call."
8629 msgstr ""
8630
8631 # type: textblock
8632 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8633 msgid "If no events have happened, this returns an empty list."
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8638 msgid ""
8639 "I<Note>: In order to make sure that all events have been read, you must call "
8640 "this function repeatedly until it returns an empty list.  The reason is that "
8641 "the call will read events up to the maximum appliance-to-host message size "
8642 "and leave remaining events in the queue."
8643 msgstr ""
8644
8645 # type: textblock
8646 #: ../src/guestfs-actions.pod:2438
8647 msgid ""
8648 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8649 "there was an error.  I<The caller must call "
8650 "C<guestfs_free_inotify_event_list> after use>."
8651 msgstr ""
8652
8653 # type: =head2
8654 #: ../src/guestfs-actions.pod:2444
8655 msgid "guestfs_inotify_rm_watch"
8656 msgstr ""
8657
8658 # type: verbatim
8659 #: ../src/guestfs-actions.pod:2446
8660 #, no-wrap
8661 msgid ""
8662 " int\n"
8663 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8664 "                           int wd);\n"
8665 "\n"
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2450
8670 msgid ""
8671 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8672 msgstr ""
8673
8674 # type: =head2
8675 #: ../src/guestfs-actions.pod:2457
8676 msgid "guestfs_inspect_get_arch"
8677 msgstr ""
8678
8679 # type: verbatim
8680 #: ../src/guestfs-actions.pod:2459
8681 #, no-wrap
8682 msgid ""
8683 " char *\n"
8684 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8685 "                           const char *root);\n"
8686 "\n"
8687 msgstr ""
8688
8689 # type: textblock
8690 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8691 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2593
8692 #: ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2641
8693 #: ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2701
8694 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2772
8695 #: ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:2837
8696 msgid ""
8697 "This function should only be called with a root device string as returned by "
8698 "C<guestfs_inspect_os>."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2466
8703 msgid ""
8704 "This returns the architecture of the inspected operating system.  The "
8705 "possible return values are listed under C<guestfs_file_architecture>."
8706 msgstr ""
8707
8708 # type: textblock
8709 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8710 msgid ""
8711 "If the architecture could not be determined, then the string C<unknown> is "
8712 "returned."
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2554
8717 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2690
8718 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2741
8719 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:2801
8720 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:2930
8721 #: ../src/guestfs-actions.pod:2969 ../fish/guestfish-actions.pod:1667
8722 #: ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1780
8723 #: ../fish/guestfish-actions.pod:1840 ../fish/guestfish-actions.pod:1864
8724 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1894
8725 #: ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:1945
8726 #: ../fish/guestfish-actions.pod:2044 ../fish/guestfish-actions.pod:2078
8727 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8728 msgstr ""
8729
8730 # type: =head2
8731 #: ../src/guestfs-actions.pod:2480
8732 msgid "guestfs_inspect_get_distro"
8733 msgstr ""
8734
8735 # type: verbatim
8736 #: ../src/guestfs-actions.pod:2482
8737 #, no-wrap
8738 msgid ""
8739 " char *\n"
8740 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8741 "                             const char *root);\n"
8742 "\n"
8743 msgstr ""
8744
8745 # type: textblock
8746 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8747 msgid ""
8748 "This returns the distro (distribution) of the inspected operating system."
8749 msgstr ""
8750
8751 # type: textblock
8752 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8753 msgid "Currently defined distros are:"
8754 msgstr ""
8755
8756 # type: =item
8757 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8758 msgid "\"archlinux\""
8759 msgstr ""
8760
8761 # type: textblock
8762 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8763 msgid "Arch Linux."
8764 msgstr ""
8765
8766 # type: =item
8767 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8768 msgid "\"debian\""
8769 msgstr ""
8770
8771 # type: textblock
8772 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8773 msgid "Debian."
8774 msgstr ""
8775
8776 # type: =item
8777 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8778 msgid "\"fedora\""
8779 msgstr ""
8780
8781 # type: textblock
8782 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8783 msgid "Fedora."
8784 msgstr ""
8785
8786 # type: =item
8787 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8788 msgid "\"gentoo\""
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8793 msgid "Gentoo."
8794 msgstr ""
8795
8796 # type: =item
8797 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8798 msgid "\"linuxmint\""
8799 msgstr ""
8800
8801 # type: textblock
8802 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8803 msgid "Linux Mint."
8804 msgstr ""
8805
8806 # type: =item
8807 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8808 msgid "\"mandriva\""
8809 msgstr ""
8810
8811 # type: textblock
8812 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8813 msgid "Mandriva."
8814 msgstr ""
8815
8816 # type: =item
8817 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8818 msgid "\"meego\""
8819 msgstr ""
8820
8821 # type: textblock
8822 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8823 msgid "MeeGo."
8824 msgstr ""
8825
8826 # type: =item
8827 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8828 msgid "\"pardus\""
8829 msgstr ""
8830
8831 # type: textblock
8832 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8833 msgid "Pardus."
8834 msgstr ""
8835
8836 # type: =item
8837 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1715
8838 msgid "\"redhat-based\""
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8843 msgid "Some Red Hat-derived distro."
8844 msgstr ""
8845
8846 # type: =item
8847 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1719
8848 msgid "\"rhel\""
8849 msgstr ""
8850
8851 # type: textblock
8852 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1721
8853 msgid "Red Hat Enterprise Linux and some derivatives."
8854 msgstr ""
8855
8856 # type: =item
8857 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1723
8858 msgid "\"ubuntu\""
8859 msgstr ""
8860
8861 # type: textblock
8862 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1725
8863 msgid "Ubuntu."
8864 msgstr ""
8865
8866 # type: =item
8867 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2792
8868 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1920
8869 msgid "\"unknown\""
8870 msgstr ""
8871
8872 # type: textblock
8873 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1729
8874 msgid "The distro could not be determined."
8875 msgstr ""
8876
8877 # type: =item
8878 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2784
8879 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1912
8880 msgid "\"windows\""
8881 msgstr ""
8882
8883 # type: textblock
8884 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1733
8885 msgid ""
8886 "Windows does not have distributions.  This string is returned if the OS type "
8887 "is Windows."
8888 msgstr ""
8889
8890 # type: textblock
8891 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2798
8892 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1926
8893 msgid ""
8894 "Future versions of libguestfs may return other strings here.  The caller "
8895 "should be prepared to handle any string."
8896 msgstr ""
8897
8898 # type: =head2
8899 #: ../src/guestfs-actions.pod:2561
8900 msgid "guestfs_inspect_get_filesystems"
8901 msgstr ""
8902
8903 # type: verbatim
8904 #: ../src/guestfs-actions.pod:2563
8905 #, no-wrap
8906 msgid ""
8907 " char **\n"
8908 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8909 "                                  const char *root);\n"
8910 "\n"
8911 msgstr ""
8912
8913 # type: textblock
8914 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1750
8915 msgid ""
8916 "This returns a list of all the filesystems that we think are associated with "
8917 "this operating system.  This includes the root filesystem, other ordinary "
8918 "filesystems, and non-mounted devices like swap partitions."
8919 msgstr ""
8920
8921 # type: textblock
8922 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1755
8923 msgid ""
8924 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8925 "to be shared between operating systems."
8926 msgstr ""
8927
8928 # type: textblock
8929 #: ../src/guestfs-actions.pod:2578
8930 msgid ""
8931 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8932 "C<guestfs_inspect_get_mountpoints>."
8933 msgstr ""
8934
8935 # type: =head2
8936 #: ../src/guestfs-actions.pod:2587
8937 msgid "guestfs_inspect_get_major_version"
8938 msgstr ""
8939
8940 # type: verbatim
8941 #: ../src/guestfs-actions.pod:2589
8942 #, no-wrap
8943 msgid ""
8944 " int\n"
8945 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8946 "                                    const char *root);\n"
8947 "\n"
8948 msgstr ""
8949
8950 # type: textblock
8951 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1768
8952 msgid ""
8953 "This returns the major version number of the inspected operating system."
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1771
8958 msgid ""
8959 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8960 "popular public names used by the operating system.  Notably the operating "
8961 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8962 "1).  You can find out the real versions corresponding to releases of Windows "
8963 "by consulting Wikipedia or MSDN."
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2626
8968 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1792
8969 msgid "If the version could not be determined, then C<0> is returned."
8970 msgstr ""
8971
8972 # type: =head2
8973 #: ../src/guestfs-actions.pod:2614
8974 msgid "guestfs_inspect_get_minor_version"
8975 msgstr ""
8976
8977 # type: verbatim
8978 #: ../src/guestfs-actions.pod:2616
8979 #, no-wrap
8980 msgid ""
8981 " int\n"
8982 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8983 "                                    const char *root);\n"
8984 "\n"
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1789
8989 msgid ""
8990 "This returns the minor version number of the inspected operating system."
8991 msgstr ""
8992
8993 # type: textblock
8994 #: ../src/guestfs-actions.pod:2628
8995 msgid ""
8996 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8997 "C<guestfs_inspect_get_major_version>."
8998 msgstr ""
8999
9000 # type: =head2
9001 #: ../src/guestfs-actions.pod:2635
9002 msgid "guestfs_inspect_get_mountpoints"
9003 msgstr ""
9004
9005 # type: verbatim
9006 #: ../src/guestfs-actions.pod:2637
9007 #, no-wrap
9008 msgid ""
9009 " char **\n"
9010 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9011 "                                  const char *root);\n"
9012 "\n"
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1804
9017 msgid ""
9018 "This returns a hash of where we think the filesystems associated with this "
9019 "operating system should be mounted.  Callers should note that this is at "
9020 "best an educated guess made by reading configuration files such as C</etc/"
9021 "fstab>."
9022 msgstr ""
9023
9024 # type: textblock
9025 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1809
9026 msgid ""
9027 "Each element in the returned hashtable has a key which is the path of the "
9028 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9029 "mounted there (eg. C</dev/sda1>)."
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1814
9034 msgid ""
9035 "Non-mounted devices such as swap devices are I<not> returned in this list."
9036 msgstr ""
9037
9038 # type: textblock
9039 #: ../src/guestfs-actions.pod:2657
9040 msgid ""
9041 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9042 "C<guestfs_inspect_get_filesystems>."
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2660 ../src/guestfs-actions.pod:3268
9047 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:6252
9048 msgid ""
9049 "This function returns a NULL-terminated array of strings, or NULL if there "
9050 "was an error.  The array of strings will always have length C<2n+1>, where "
9051 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9052 "caller must free the strings and the array after use>."
9053 msgstr ""
9054
9055 # type: =head2
9056 #: ../src/guestfs-actions.pod:2668
9057 msgid "guestfs_inspect_get_package_format"
9058 msgstr ""
9059
9060 # type: verbatim
9061 #: ../src/guestfs-actions.pod:2670
9062 #, no-wrap
9063 msgid ""
9064 " char *\n"
9065 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9066 "                                     const char *root);\n"
9067 "\n"
9068 msgstr ""
9069
9070 # type: textblock
9071 #: ../src/guestfs-actions.pod:2677
9072 msgid ""
9073 "This function and C<guestfs_inspect_get_package_management> return the "
9074 "package format and package management tool used by the inspected operating "
9075 "system.  For example for Fedora these functions would return C<rpm> (package "
9076 "format) and C<yum> (package management)."
9077 msgstr ""
9078
9079 # type: textblock
9080 #: ../src/guestfs-actions.pod:2683 ../fish/guestfish-actions.pod:1833
9081 msgid ""
9082 "This returns the string C<unknown> if we could not determine the package "
9083 "format I<or> if the operating system does not have a real packaging system "
9084 "(eg. Windows)."
9085 msgstr ""
9086
9087 # type: textblock
9088 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1837
9089 msgid ""
9090 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9091 "Future versions of libguestfs may return other strings."
9092 msgstr ""
9093
9094 # type: =head2
9095 #: ../src/guestfs-actions.pod:2695
9096 msgid "guestfs_inspect_get_package_management"
9097 msgstr ""
9098
9099 # type: verbatim
9100 #: ../src/guestfs-actions.pod:2697
9101 #, no-wrap
9102 msgid ""
9103 " char *\n"
9104 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9105 "                                         const char *root);\n"
9106 "\n"
9107 msgstr ""
9108
9109 # type: textblock
9110 #: ../src/guestfs-actions.pod:2704
9111 msgid ""
9112 "C<guestfs_inspect_get_package_format> and this function return the package "
9113 "format and package management tool used by the inspected operating system.  "
9114 "For example for Fedora these functions would return C<rpm> (package format) "
9115 "and C<yum> (package management)."
9116 msgstr ""
9117
9118 # type: textblock
9119 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1855
9120 msgid ""
9121 "This returns the string C<unknown> if we could not determine the package "
9122 "management tool I<or> if the operating system does not have a real packaging "
9123 "system (eg. Windows)."
9124 msgstr ""
9125
9126 # type: textblock
9127 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1859
9128 msgid ""
9129 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9130 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9131 "libguestfs may return other strings."
9132 msgstr ""
9133
9134 # type: =head2
9135 #: ../src/guestfs-actions.pod:2724
9136 msgid "guestfs_inspect_get_product_name"
9137 msgstr ""
9138
9139 # type: verbatim
9140 #: ../src/guestfs-actions.pod:2726
9141 #, no-wrap
9142 msgid ""
9143 " char *\n"
9144 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9145 "                                   const char *root);\n"
9146 "\n"
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:1873
9151 msgid ""
9152 "This returns the product name of the inspected operating system.  The "
9153 "product name is generally some freeform string which can be displayed to the "
9154 "user, but should not be parsed by programs."
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:2738 ../fish/guestfish-actions.pod:1878
9159 msgid ""
9160 "If the product name could not be determined, then the string C<unknown> is "
9161 "returned."
9162 msgstr ""
9163
9164 # type: =head2
9165 #: ../src/guestfs-actions.pod:2748
9166 msgid "guestfs_inspect_get_roots"
9167 msgstr ""
9168
9169 # type: verbatim
9170 #: ../src/guestfs-actions.pod:2750
9171 #, no-wrap
9172 msgid ""
9173 " char **\n"
9174 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9175 "\n"
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:2753
9180 msgid ""
9181 "This function is a convenient way to get the list of root devices, as "
9182 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9183 "the whole inspection process."
9184 msgstr ""
9185
9186 # type: textblock
9187 #: ../src/guestfs-actions.pod:2757
9188 msgid ""
9189 "This returns an empty list if either no root devices were found or the "
9190 "caller has not called C<guestfs_inspect_os>."
9191 msgstr ""
9192
9193 # type: =head2
9194 #: ../src/guestfs-actions.pod:2766
9195 msgid "guestfs_inspect_get_type"
9196 msgstr ""
9197
9198 # type: verbatim
9199 #: ../src/guestfs-actions.pod:2768
9200 #, no-wrap
9201 msgid ""
9202 " char *\n"
9203 " guestfs_inspect_get_type (guestfs_h *g,\n"
9204 "                           const char *root);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:1903
9210 msgid ""
9211 "This returns the type of the inspected operating system.  Currently defined "
9212 "types are:"
9213 msgstr ""
9214
9215 # type: =item
9216 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1908
9217 msgid "\"linux\""
9218 msgstr ""
9219
9220 # type: textblock
9221 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
9222 msgid "Any Linux-based operating system."
9223 msgstr ""
9224
9225 # type: textblock
9226 #: ../src/guestfs-actions.pod:2786 ../fish/guestfish-actions.pod:1914
9227 msgid "Any Microsoft Windows operating system."
9228 msgstr ""
9229
9230 # type: =item
9231 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:1916
9232 msgid "\"freebsd\""
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:1918
9237 msgid "FreeBSD."
9238 msgstr ""
9239
9240 # type: textblock
9241 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1922
9242 msgid "The operating system type could not be determined."
9243 msgstr ""
9244
9245 # type: =head2
9246 #: ../src/guestfs-actions.pod:2808
9247 msgid "guestfs_inspect_get_windows_systemroot"
9248 msgstr ""
9249
9250 # type: verbatim
9251 #: ../src/guestfs-actions.pod:2810
9252 #, no-wrap
9253 msgid ""
9254 " char *\n"
9255 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9256 "                                         const char *root);\n"
9257 "\n"
9258 msgstr ""
9259
9260 # type: textblock
9261 #: ../src/guestfs-actions.pod:2817 ../fish/guestfish-actions.pod:1938
9262 msgid ""
9263 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9264 "is a directory path such as C</WINDOWS>."
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1941
9269 msgid ""
9270 "This call assumes that the guest is Windows and that the systemroot could be "
9271 "determined by inspection.  If this is not the case then an error is returned."
9272 msgstr ""
9273
9274 # type: textblock
9275 #: ../src/guestfs-actions.pod:2829
9276 msgid "(Added in 1.5.25)"
9277 msgstr ""
9278
9279 # type: =head2
9280 #: ../src/guestfs-actions.pod:2831
9281 msgid "guestfs_inspect_list_applications"
9282 msgstr ""
9283
9284 # type: verbatim
9285 #: ../src/guestfs-actions.pod:2833
9286 #, no-wrap
9287 msgid ""
9288 " struct guestfs_application_list *\n"
9289 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9290 "                                    const char *root);\n"
9291 "\n"
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1954
9296 msgid "Return the list of applications installed in the operating system."
9297 msgstr ""
9298
9299 # type: textblock
9300 #: ../src/guestfs-actions.pod:2842
9301 msgid ""
9302 "I<Note:> This call works differently from other parts of the inspection "
9303 "API.  You have to call C<guestfs_inspect_os>, then "
9304 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9305 "this.  Listing applications is a significantly more difficult operation "
9306 "which requires access to the full filesystem.  Also note that unlike the "
9307 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9308 "the libguestfs handle, this call actually reads parts of the mounted "
9309 "filesystems during the call."
9310 msgstr ""
9311
9312 # type: textblock
9313 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1966
9314 msgid ""
9315 "This returns an empty list if the inspection code was not able to determine "
9316 "the list of applications."
9317 msgstr ""
9318
9319 # type: textblock
9320 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1969
9321 msgid "The application structure contains the following fields:"
9322 msgstr ""
9323
9324 # type: =item
9325 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1973
9326 msgid "C<app_name>"
9327 msgstr ""
9328
9329 # type: textblock
9330 #: ../src/guestfs-actions.pod:2861 ../fish/guestfish-actions.pod:1975
9331 msgid ""
9332 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9333 "guests, this is the package name."
9334 msgstr ""
9335
9336 # type: =item
9337 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:1978
9338 msgid "C<app_display_name>"
9339 msgstr ""
9340
9341 # type: textblock
9342 #: ../src/guestfs-actions.pod:2866 ../fish/guestfish-actions.pod:1980
9343 msgid ""
9344 "The display name of the application, sometimes localized to the install "
9345 "language of the guest operating system."
9346 msgstr ""
9347
9348 # type: textblock
9349 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1983
9350 msgid ""
9351 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9352 "to display something can use C<app_name> instead."
9353 msgstr ""
9354
9355 # type: =item
9356 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:1986
9357 msgid "C<app_epoch>"
9358 msgstr ""
9359
9360 # type: textblock
9361 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish-actions.pod:1988
9362 msgid ""
9363 "For package managers which use epochs, this contains the epoch of the "
9364 "package (an integer).  If unavailable, this is returned as C<0>."
9365 msgstr ""
9366
9367 # type: =item
9368 #: ../src/guestfs-actions.pod:2877 ../fish/guestfish-actions.pod:1991
9369 msgid "C<app_version>"
9370 msgstr ""
9371
9372 # type: textblock
9373 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1993
9374 msgid ""
9375 "The version string of the application or package.  If unavailable this is "
9376 "returned as an empty string C<\"\">."
9377 msgstr ""
9378
9379 # type: =item
9380 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1996
9381 msgid "C<app_release>"
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1998
9386 msgid ""
9387 "The release string of the application or package, for package managers that "
9388 "use this.  If unavailable this is returned as an empty string C<\"\">."
9389 msgstr ""
9390
9391 # type: =item
9392 #: ../src/guestfs-actions.pod:2888 ../fish/guestfish-actions.pod:2002
9393 msgid "C<app_install_path>"
9394 msgstr ""
9395
9396 # type: textblock
9397 #: ../src/guestfs-actions.pod:2890 ../fish/guestfish-actions.pod:2004
9398 msgid ""
9399 "The installation path of the application (on operating systems such as "
9400 "Windows which use installation paths).  This path is in the format used by "
9401 "the guest operating system, it is not a libguestfs path."
9402 msgstr ""
9403
9404 # type: textblock
9405 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:2009
9406 msgid "If unavailable this is returned as an empty string C<\"\">."
9407 msgstr ""
9408
9409 # type: =item
9410 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:2011
9411 msgid "C<app_trans_path>"
9412 msgstr ""
9413
9414 # type: textblock
9415 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:2013
9416 msgid ""
9417 "The install path translated into a libguestfs path.  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:2016
9423 msgid "C<app_publisher>"
9424 msgstr ""
9425
9426 # type: textblock
9427 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2018
9428 msgid ""
9429 "The name of the publisher of the application, for package managers that use "
9430 "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:2022
9435 msgid "C<app_url>"
9436 msgstr ""
9437
9438 # type: textblock
9439 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2024
9440 msgid ""
9441 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9442 "returned as an empty string C<\"\">."
9443 msgstr ""
9444
9445 # type: =item
9446 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2027
9447 msgid "C<app_source_package>"
9448 msgstr ""
9449
9450 # type: textblock
9451 #: ../src/guestfs-actions.pod:2915 ../fish/guestfish-actions.pod:2029
9452 msgid ""
9453 "For packaging systems which support this, the name of the source package.  "
9454 "If unavailable this is returned as an empty string C<\"\">."
9455 msgstr ""
9456
9457 # type: =item
9458 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2032
9459 msgid "C<app_summary>"
9460 msgstr ""
9461
9462 # type: textblock
9463 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2034
9464 msgid ""
9465 "A short (usually one line) description of the application or package.  If "
9466 "unavailable this is returned as an empty string C<\"\">."
9467 msgstr ""
9468
9469 # type: =item
9470 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2037
9471 msgid "C<app_description>"
9472 msgstr ""
9473
9474 # type: textblock
9475 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2039
9476 msgid ""
9477 "A longer description of the application or package.  If unavailable this is "
9478 "returned as an empty string C<\"\">."
9479 msgstr ""
9480
9481 # type: textblock
9482 #: ../src/guestfs-actions.pod:2932
9483 msgid ""
9484 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9485 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9486 "after use>."
9487 msgstr ""
9488
9489 # type: =head2
9490 #: ../src/guestfs-actions.pod:2936
9491 msgid "guestfs_inspect_os"
9492 msgstr ""
9493
9494 # type: verbatim
9495 #: ../src/guestfs-actions.pod:2938
9496 #, no-wrap
9497 msgid ""
9498 " char **\n"
9499 " guestfs_inspect_os (guestfs_h *g);\n"
9500 "\n"
9501 msgstr ""
9502
9503 # type: textblock
9504 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:2050
9505 msgid ""
9506 "This function uses other libguestfs functions and certain heuristics to "
9507 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9508 "for operating systems."
9509 msgstr ""
9510
9511 # type: textblock
9512 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2054
9513 msgid "The list returned is empty if no operating systems were found."
9514 msgstr ""
9515
9516 # type: textblock
9517 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2056
9518 msgid ""
9519 "If one operating system was found, then this returns a list with a single "
9520 "element, which is the name of the root filesystem of this operating system.  "
9521 "It is also possible for this function to return a list containing more than "
9522 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9523 "element being the root filesystem of one of the operating systems."
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:2954
9528 msgid ""
9529 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9530 "functions in order to query further information about each operating system, "
9531 "such as the name and version."
9532 msgstr ""
9533
9534 # type: textblock
9535 #: ../src/guestfs-actions.pod:2959
9536 msgid ""
9537 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9538 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9539 "the contents.  This should be called with no disks currently mounted.  The "
9540 "function may also use Augeas, so any existing Augeas handle will be closed."
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:2965 ../fish/guestfish-actions.pod:2074
9545 msgid ""
9546 "This function cannot decrypt encrypted disks.  The caller must do that first "
9547 "(supplying the necessary keys) if the disk is encrypted."
9548 msgstr ""
9549
9550 # type: textblock
9551 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:3226
9552 #: ../src/guestfs-actions.pod:3288
9553 msgid "See also C<guestfs_list_filesystems>."
9554 msgstr ""
9555
9556 # type: =head2
9557 #: ../src/guestfs-actions.pod:2979
9558 msgid "guestfs_is_blockdev"
9559 msgstr ""
9560
9561 # type: verbatim
9562 #: ../src/guestfs-actions.pod:2981
9563 #, no-wrap
9564 msgid ""
9565 " int\n"
9566 " guestfs_is_blockdev (guestfs_h *g,\n"
9567 "                      const char *path);\n"
9568 "\n"
9569 msgstr ""
9570
9571 # type: textblock
9572 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2086
9573 msgid ""
9574 "This returns C<true> if and only if there is a block device with the given "
9575 "C<path> name."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3017
9580 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3062
9581 #: ../src/guestfs-actions.pod:3078 ../src/guestfs-actions.pod:3134
9582 #: ../src/guestfs-actions.pod:3149
9583 msgid "See also C<guestfs_stat>."
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:2992 ../src/guestfs-actions.pod:3021
9588 #: ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:3138
9589 #: ../src/guestfs-actions.pod:3153
9590 msgid "(Added in 1.5.10)"
9591 msgstr ""
9592
9593 # type: =head2
9594 #: ../src/guestfs-actions.pod:2994
9595 msgid "guestfs_is_busy"
9596 msgstr ""
9597
9598 # type: verbatim
9599 #: ../src/guestfs-actions.pod:2996
9600 #, no-wrap
9601 msgid ""
9602 " int\n"
9603 " guestfs_is_busy (guestfs_h *g);\n"
9604 "\n"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2095
9609 msgid ""
9610 "This returns true iff this handle is busy processing a command (in the "
9611 "C<BUSY> state)."
9612 msgstr ""
9613
9614 # type: =head2
9615 #: ../src/guestfs-actions.pod:3008
9616 msgid "guestfs_is_chardev"
9617 msgstr ""
9618
9619 # type: verbatim
9620 #: ../src/guestfs-actions.pod:3010
9621 #, no-wrap
9622 msgid ""
9623 " int\n"
9624 " guestfs_is_chardev (guestfs_h *g,\n"
9625 "                     const char *path);\n"
9626 "\n"
9627 msgstr ""
9628
9629 # type: textblock
9630 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2104
9631 msgid ""
9632 "This returns C<true> if and only if there is a character device with the "
9633 "given C<path> name."
9634 msgstr ""
9635
9636 # type: =head2
9637 #: ../src/guestfs-actions.pod:3023
9638 msgid "guestfs_is_config"
9639 msgstr ""
9640
9641 # type: verbatim
9642 #: ../src/guestfs-actions.pod:3025
9643 #, no-wrap
9644 msgid ""
9645 " int\n"
9646 " guestfs_is_config (guestfs_h *g);\n"
9647 "\n"
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3028 ../fish/guestfish-actions.pod:2113
9652 msgid ""
9653 "This returns true iff this handle is being configured (in the C<CONFIG> "
9654 "state)."
9655 msgstr ""
9656
9657 # type: =head2
9658 #: ../src/guestfs-actions.pod:3037
9659 msgid "guestfs_is_dir"
9660 msgstr ""
9661
9662 # type: verbatim
9663 #: ../src/guestfs-actions.pod:3039
9664 #, no-wrap
9665 msgid ""
9666 " int\n"
9667 " guestfs_is_dir (guestfs_h *g,\n"
9668 "                 const char *path);\n"
9669 "\n"
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2122
9674 msgid ""
9675 "This returns C<true> if and only if there is a directory with the given "
9676 "C<path> name.  Note that it returns false for other objects like files."
9677 msgstr ""
9678
9679 # type: =head2
9680 #: ../src/guestfs-actions.pod:3053
9681 msgid "guestfs_is_fifo"
9682 msgstr ""
9683
9684 # type: verbatim
9685 #: ../src/guestfs-actions.pod:3055
9686 #, no-wrap
9687 msgid ""
9688 " int\n"
9689 " guestfs_is_fifo (guestfs_h *g,\n"
9690 "                  const char *path);\n"
9691 "\n"
9692 msgstr ""
9693
9694 # type: textblock
9695 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2132
9696 msgid ""
9697 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9698 "given C<path> name."
9699 msgstr ""
9700
9701 # type: =head2
9702 #: ../src/guestfs-actions.pod:3068
9703 msgid "guestfs_is_file"
9704 msgstr ""
9705
9706 # type: verbatim
9707 #: ../src/guestfs-actions.pod:3070
9708 #, no-wrap
9709 msgid ""
9710 " int\n"
9711 " guestfs_is_file (guestfs_h *g,\n"
9712 "                  const char *path);\n"
9713 "\n"
9714 msgstr ""
9715
9716 # type: textblock
9717 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2141
9718 msgid ""
9719 "This returns C<true> if and only if there is a regular file with the given "
9720 "C<path> name.  Note that it returns false for other objects like directories."
9721 msgstr ""
9722
9723 # type: =head2
9724 #: ../src/guestfs-actions.pod:3084
9725 msgid "guestfs_is_launching"
9726 msgstr ""
9727
9728 # type: verbatim
9729 #: ../src/guestfs-actions.pod:3086
9730 #, no-wrap
9731 msgid ""
9732 " int\n"
9733 " guestfs_is_launching (guestfs_h *g);\n"
9734 "\n"
9735 msgstr ""
9736
9737 # type: textblock
9738 #: ../src/guestfs-actions.pod:3089 ../fish/guestfish-actions.pod:2151
9739 msgid ""
9740 "This returns true iff this handle is launching the subprocess (in the "
9741 "C<LAUNCHING> state)."
9742 msgstr ""
9743
9744 # type: =head2
9745 #: ../src/guestfs-actions.pod:3098
9746 msgid "guestfs_is_lv"
9747 msgstr ""
9748
9749 # type: verbatim
9750 #: ../src/guestfs-actions.pod:3100
9751 #, no-wrap
9752 msgid ""
9753 " int\n"
9754 " guestfs_is_lv (guestfs_h *g,\n"
9755 "                const char *device);\n"
9756 "\n"
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3104 ../fish/guestfish-actions.pod:2160
9761 msgid ""
9762 "This command tests whether C<device> is a logical volume, and returns true "
9763 "iff this is the case."
9764 msgstr ""
9765
9766 # type: =head2
9767 #: ../src/guestfs-actions.pod:3111
9768 msgid "guestfs_is_ready"
9769 msgstr ""
9770
9771 # type: verbatim
9772 #: ../src/guestfs-actions.pod:3113
9773 #, no-wrap
9774 msgid ""
9775 " int\n"
9776 " guestfs_is_ready (guestfs_h *g);\n"
9777 "\n"
9778 msgstr ""
9779
9780 # type: textblock
9781 #: ../src/guestfs-actions.pod:3116 ../fish/guestfish-actions.pod:2167
9782 msgid ""
9783 "This returns true iff this handle is ready to accept commands (in the "
9784 "C<READY> state)."
9785 msgstr ""
9786
9787 # type: =head2
9788 #: ../src/guestfs-actions.pod:3125
9789 msgid "guestfs_is_socket"
9790 msgstr ""
9791
9792 # type: verbatim
9793 #: ../src/guestfs-actions.pod:3127
9794 #, no-wrap
9795 msgid ""
9796 " int\n"
9797 " guestfs_is_socket (guestfs_h *g,\n"
9798 "                    const char *path);\n"
9799 "\n"
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3131 ../fish/guestfish-actions.pod:2176
9804 msgid ""
9805 "This returns C<true> if and only if there is a Unix domain socket with the "
9806 "given C<path> name."
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3140
9811 msgid "guestfs_is_symlink"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3142
9816 #, no-wrap
9817 msgid ""
9818 " int\n"
9819 " guestfs_is_symlink (guestfs_h *g,\n"
9820 "                     const char *path);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2185
9826 msgid ""
9827 "This returns C<true> if and only if there is a symbolic link with the given "
9828 "C<path> name."
9829 msgstr ""
9830
9831 # type: =head2
9832 #: ../src/guestfs-actions.pod:3155
9833 msgid "guestfs_kill_subprocess"
9834 msgstr ""
9835
9836 # type: verbatim
9837 #: ../src/guestfs-actions.pod:3157
9838 #, no-wrap
9839 msgid ""
9840 " int\n"
9841 " guestfs_kill_subprocess (guestfs_h *g);\n"
9842 "\n"
9843 msgstr ""
9844
9845 # type: textblock
9846 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2194
9847 msgid "This kills the qemu subprocess.  You should never need to call this."
9848 msgstr ""
9849
9850 # type: =head2
9851 #: ../src/guestfs-actions.pod:3166
9852 msgid "guestfs_launch"
9853 msgstr ""
9854
9855 # type: verbatim
9856 #: ../src/guestfs-actions.pod:3168
9857 #, no-wrap
9858 msgid ""
9859 " int\n"
9860 " guestfs_launch (guestfs_h *g);\n"
9861 "\n"
9862 msgstr ""
9863
9864 # type: textblock
9865 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2202
9866 msgid ""
9867 "Internally libguestfs is implemented by running a virtual machine using "
9868 "L<qemu(1)>."
9869 msgstr ""
9870
9871 # type: textblock
9872 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2205
9873 msgid ""
9874 "You should call this after configuring the handle (eg. adding drives) but "
9875 "before performing any actions."
9876 msgstr ""
9877
9878 # type: =head2
9879 #: ../src/guestfs-actions.pod:3181
9880 msgid "guestfs_lchown"
9881 msgstr ""
9882
9883 # type: verbatim
9884 #: ../src/guestfs-actions.pod:3183
9885 #, no-wrap
9886 msgid ""
9887 " int\n"
9888 " guestfs_lchown (guestfs_h *g,\n"
9889 "                 int owner,\n"
9890 "                 int group,\n"
9891 "                 const char *path);\n"
9892 "\n"
9893 msgstr ""
9894
9895 # type: textblock
9896 #: ../src/guestfs-actions.pod:3189
9897 msgid ""
9898 "Change the file owner to C<owner> and group to C<group>.  This is like "
9899 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9900 "changed, not the target."
9901 msgstr ""
9902
9903 # type: =head2
9904 #: ../src/guestfs-actions.pod:3201
9905 msgid "guestfs_lgetxattrs"
9906 msgstr ""
9907
9908 # type: verbatim
9909 #: ../src/guestfs-actions.pod:3203
9910 #, no-wrap
9911 msgid ""
9912 " struct guestfs_xattr_list *\n"
9913 " guestfs_lgetxattrs (guestfs_h *g,\n"
9914 "                     const char *path);\n"
9915 "\n"
9916 msgstr ""
9917
9918 # type: textblock
9919 #: ../src/guestfs-actions.pod:3207
9920 msgid ""
9921 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9922 "then it returns the extended attributes of the link itself."
9923 msgstr ""
9924
9925 # type: =head2
9926 #: ../src/guestfs-actions.pod:3217
9927 msgid "guestfs_list_devices"
9928 msgstr ""
9929
9930 # type: verbatim
9931 #: ../src/guestfs-actions.pod:3219
9932 #, no-wrap
9933 msgid ""
9934 " char **\n"
9935 " guestfs_list_devices (guestfs_h *g);\n"
9936 "\n"
9937 msgstr ""
9938
9939 # type: textblock
9940 #: ../src/guestfs-actions.pod:3222 ../fish/guestfish-actions.pod:2232
9941 msgid "List all the block devices."
9942 msgstr ""
9943
9944 # type: textblock
9945 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2234
9946 msgid "The full block device names are returned, eg. C</dev/sda>."
9947 msgstr ""
9948
9949 # type: =head2
9950 #: ../src/guestfs-actions.pod:3234
9951 msgid "guestfs_list_filesystems"
9952 msgstr ""
9953
9954 # type: verbatim
9955 #: ../src/guestfs-actions.pod:3236
9956 #, no-wrap
9957 msgid ""
9958 " char **\n"
9959 " guestfs_list_filesystems (guestfs_h *g);\n"
9960 "\n"
9961 msgstr ""
9962
9963 # type: textblock
9964 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2242
9965 msgid ""
9966 "This inspection command looks for filesystems on partitions, block devices "
9967 "and logical volumes, returning a list of devices containing filesystems and "
9968 "their type."
9969 msgstr ""
9970
9971 # type: textblock
9972 #: ../src/guestfs-actions.pod:3243 ../fish/guestfish-actions.pod:2246
9973 msgid ""
9974 "The return value is a hash, where the keys are the devices containing "
9975 "filesystems, and the values are the filesystem types.  For example:"
9976 msgstr ""
9977
9978 # type: verbatim
9979 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2250
9980 #, no-wrap
9981 msgid ""
9982 " \"/dev/sda1\" => \"ntfs\"\n"
9983 " \"/dev/sda2\" => \"ext2\"\n"
9984 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9985 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9986 "\n"
9987 msgstr ""
9988
9989 # type: textblock
9990 #: ../src/guestfs-actions.pod:3252 ../fish/guestfish-actions.pod:2255
9991 msgid ""
9992 "The value can have the special value \"unknown\", meaning the content of the "
9993 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9994 msgstr ""
9995
9996 # type: textblock
9997 #: ../src/guestfs-actions.pod:3256
9998 msgid ""
9999 "This command runs other libguestfs commands, which might include "
10000 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10001 "soon after launch and only when nothing is mounted."
10002 msgstr ""
10003
10004 # type: textblock
10005 #: ../src/guestfs-actions.pod:3260
10006 msgid ""
10007 "Not all of the filesystems returned will be mountable.  In particular, swap "
10008 "partitions are returned in the list.  Also this command does not check that "
10009 "each filesystem found is valid and mountable, and some filesystems might be "
10010 "mountable but require special options.  Filesystems may not all belong to a "
10011 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10012 msgstr ""
10013
10014 # type: textblock
10015 #: ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:4797
10016 msgid "(Added in 1.5.15)"
10017 msgstr ""
10018
10019 # type: =head2
10020 #: ../src/guestfs-actions.pod:3276
10021 msgid "guestfs_list_partitions"
10022 msgstr ""
10023
10024 # type: verbatim
10025 #: ../src/guestfs-actions.pod:3278
10026 #, no-wrap
10027 msgid ""
10028 " char **\n"
10029 " guestfs_list_partitions (guestfs_h *g);\n"
10030 "\n"
10031 msgstr ""
10032
10033 # type: textblock
10034 #: ../src/guestfs-actions.pod:3281 ../fish/guestfish-actions.pod:2275
10035 msgid "List all the partitions detected on all block devices."
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2277
10040 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10041 msgstr ""
10042
10043 # type: textblock
10044 #: ../src/guestfs-actions.pod:3285
10045 msgid ""
10046 "This does not return logical volumes.  For that you will need to call "
10047 "C<guestfs_lvs>."
10048 msgstr ""
10049
10050 # type: =head2
10051 #: ../src/guestfs-actions.pod:3296
10052 msgid "guestfs_ll"
10053 msgstr ""
10054
10055 # type: verbatim
10056 #: ../src/guestfs-actions.pod:3298
10057 #, no-wrap
10058 msgid ""
10059 " char *\n"
10060 " guestfs_ll (guestfs_h *g,\n"
10061 "             const char *directory);\n"
10062 "\n"
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2288
10067 msgid ""
10068 "List the files in C<directory> (relative to the root directory, there is no "
10069 "cwd) in the format of 'ls -la'."
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2291
10074 msgid ""
10075 "This command is mostly useful for interactive sessions.  It is I<not> "
10076 "intended that you try to parse the output string."
10077 msgstr ""
10078
10079 # type: =head2
10080 #: ../src/guestfs-actions.pod:3313
10081 msgid "guestfs_ln"
10082 msgstr ""
10083
10084 # type: verbatim
10085 #: ../src/guestfs-actions.pod:3315
10086 #, no-wrap
10087 msgid ""
10088 " int\n"
10089 " guestfs_ln (guestfs_h *g,\n"
10090 "             const char *target,\n"
10091 "             const char *linkname);\n"
10092 "\n"
10093 msgstr ""
10094
10095 # type: textblock
10096 #: ../src/guestfs-actions.pod:3320 ../fish/guestfish-actions.pod:2298
10097 msgid "This command creates a hard link using the C<ln> command."
10098 msgstr ""
10099
10100 # type: =head2
10101 #: ../src/guestfs-actions.pod:3326
10102 msgid "guestfs_ln_f"
10103 msgstr ""
10104
10105 # type: verbatim
10106 #: ../src/guestfs-actions.pod:3328
10107 #, no-wrap
10108 msgid ""
10109 " int\n"
10110 " guestfs_ln_f (guestfs_h *g,\n"
10111 "               const char *target,\n"
10112 "               const char *linkname);\n"
10113 "\n"
10114 msgstr ""
10115
10116 # type: textblock
10117 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2304
10118 msgid ""
10119 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10120 "option removes the link (C<linkname>) if it exists already."
10121 msgstr ""
10122
10123 # type: =head2
10124 #: ../src/guestfs-actions.pod:3340
10125 msgid "guestfs_ln_s"
10126 msgstr ""
10127
10128 # type: verbatim
10129 #: ../src/guestfs-actions.pod:3342
10130 #, no-wrap
10131 msgid ""
10132 " int\n"
10133 " guestfs_ln_s (guestfs_h *g,\n"
10134 "               const char *target,\n"
10135 "               const char *linkname);\n"
10136 "\n"
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3347 ../fish/guestfish-actions.pod:2311
10141 msgid "This command creates a symbolic link using the C<ln -s> command."
10142 msgstr ""
10143
10144 # type: =head2
10145 #: ../src/guestfs-actions.pod:3353
10146 msgid "guestfs_ln_sf"
10147 msgstr ""
10148
10149 # type: verbatim
10150 #: ../src/guestfs-actions.pod:3355
10151 #, no-wrap
10152 msgid ""
10153 " int\n"
10154 " guestfs_ln_sf (guestfs_h *g,\n"
10155 "                const char *target,\n"
10156 "                const char *linkname);\n"
10157 "\n"
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3360 ../fish/guestfish-actions.pod:2317
10162 msgid ""
10163 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10164 "option removes the link (C<linkname>) if it exists already."
10165 msgstr ""
10166
10167 # type: =head2
10168 #: ../src/guestfs-actions.pod:3367
10169 msgid "guestfs_lremovexattr"
10170 msgstr ""
10171
10172 # type: verbatim
10173 #: ../src/guestfs-actions.pod:3369
10174 #, no-wrap
10175 msgid ""
10176 " int\n"
10177 " guestfs_lremovexattr (guestfs_h *g,\n"
10178 "                       const char *xattr,\n"
10179 "                       const char *path);\n"
10180 "\n"
10181 msgstr ""
10182
10183 # type: textblock
10184 #: ../src/guestfs-actions.pod:3374
10185 msgid ""
10186 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10187 "link, then it removes an extended attribute of the link itself."
10188 msgstr ""
10189
10190 # type: =head2
10191 #: ../src/guestfs-actions.pod:3382
10192 msgid "guestfs_ls"
10193 msgstr ""
10194
10195 # type: verbatim
10196 #: ../src/guestfs-actions.pod:3384
10197 #, no-wrap
10198 msgid ""
10199 " char **\n"
10200 " guestfs_ls (guestfs_h *g,\n"
10201 "             const char *directory);\n"
10202 "\n"
10203 msgstr ""
10204
10205 # type: textblock
10206 #: ../src/guestfs-actions.pod:3388 ../fish/guestfish-actions.pod:2332
10207 msgid ""
10208 "List the files in C<directory> (relative to the root directory, there is no "
10209 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10210 msgstr ""
10211
10212 # type: textblock
10213 #: ../src/guestfs-actions.pod:3392
10214 msgid ""
10215 "This command is mostly useful for interactive sessions.  Programs should "
10216 "probably use C<guestfs_readdir> instead."
10217 msgstr ""
10218
10219 # type: =head2
10220 #: ../src/guestfs-actions.pod:3401
10221 msgid "guestfs_lsetxattr"
10222 msgstr ""
10223
10224 # type: verbatim
10225 #: ../src/guestfs-actions.pod:3403
10226 #, no-wrap
10227 msgid ""
10228 " int\n"
10229 " guestfs_lsetxattr (guestfs_h *g,\n"
10230 "                    const char *xattr,\n"
10231 "                    const char *val,\n"
10232 "                    int vallen,\n"
10233 "                    const char *path);\n"
10234 "\n"
10235 msgstr ""
10236
10237 # type: textblock
10238 #: ../src/guestfs-actions.pod:3410
10239 msgid ""
10240 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10241 "then it sets an extended attribute of the link itself."
10242 msgstr ""
10243
10244 # type: =head2
10245 #: ../src/guestfs-actions.pod:3418
10246 msgid "guestfs_lstat"
10247 msgstr ""
10248
10249 # type: verbatim
10250 #: ../src/guestfs-actions.pod:3420
10251 #, no-wrap
10252 msgid ""
10253 " struct guestfs_stat *\n"
10254 " guestfs_lstat (guestfs_h *g,\n"
10255 "                const char *path);\n"
10256 "\n"
10257 msgstr ""
10258
10259 # type: textblock
10260 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5851
10261 #: ../fish/guestfish-actions.pod:2351 ../fish/guestfish-actions.pod:3933
10262 msgid "Returns file information for the given C<path>."
10263 msgstr ""
10264
10265 # type: textblock
10266 #: ../src/guestfs-actions.pod:3426
10267 msgid ""
10268 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10269 "link, then the link is stat-ed, not the file it refers to."
10270 msgstr ""
10271
10272 # type: textblock
10273 #: ../src/guestfs-actions.pod:3430 ../fish/guestfish-actions.pod:2357
10274 msgid "This is the same as the C<lstat(2)> system call."
10275 msgstr ""
10276
10277 # type: textblock
10278 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:5855
10279 msgid ""
10280 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10281 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10282 msgstr ""
10283
10284 # type: textblock
10285 #: ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:5859
10286 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:6258
10287 msgid "(Added in 0.9.2)"
10288 msgstr ""
10289
10290 # type: =head2
10291 #: ../src/guestfs-actions.pod:3438
10292 msgid "guestfs_lstatlist"
10293 msgstr ""
10294
10295 # type: verbatim
10296 #: ../src/guestfs-actions.pod:3440
10297 #, no-wrap
10298 msgid ""
10299 " struct guestfs_stat_list *\n"
10300 " guestfs_lstatlist (guestfs_h *g,\n"
10301 "                    const char *path,\n"
10302 "                    char *const *names);\n"
10303 "\n"
10304 msgstr ""
10305
10306 # type: textblock
10307 #: ../src/guestfs-actions.pod:3445
10308 msgid ""
10309 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10310 "files, where all files are in the directory C<path>.  C<names> is the list "
10311 "of files from this directory."
10312 msgstr ""
10313
10314 # type: textblock
10315 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2367
10316 msgid ""
10317 "On return you get a list of stat structs, with a one-to-one correspondence "
10318 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10319 "then the C<ino> field of that structure is set to C<-1>."
10320 msgstr ""
10321
10322 # type: textblock
10323 #: ../src/guestfs-actions.pod:3454
10324 msgid ""
10325 "This call is intended for programs that want to efficiently list a directory "
10326 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10327 "for a similarly efficient call for getting extended attributes.  Very long "
10328 "directory listings might cause the protocol message size to be exceeded, "
10329 "causing this call to fail.  The caller must split up such requests into "
10330 "smaller groups of names."
10331 msgstr ""
10332
10333 # type: textblock
10334 #: ../src/guestfs-actions.pod:3462
10335 msgid ""
10336 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10337 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10338 msgstr ""
10339
10340 # type: =head2
10341 #: ../src/guestfs-actions.pod:3468
10342 msgid "guestfs_luks_add_key"
10343 msgstr ""
10344
10345 # type: verbatim
10346 #: ../src/guestfs-actions.pod:3470
10347 #, no-wrap
10348 msgid ""
10349 " int\n"
10350 " guestfs_luks_add_key (guestfs_h *g,\n"
10351 "                       const char *device,\n"
10352 "                       const char *key,\n"
10353 "                       const char *newkey,\n"
10354 "                       int keyslot);\n"
10355 "\n"
10356 msgstr ""
10357
10358 # type: textblock
10359 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2384
10360 msgid ""
10361 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10362 "existing key, and is used to access the device.  C<newkey> is the new key to "
10363 "add.  C<keyslot> is the key slot that will be replaced."
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3482
10368 msgid ""
10369 "Note that if C<keyslot> already contains a key, then this command will "
10370 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10371 msgstr ""
10372
10373 # type: textblock
10374 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3528
10375 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3571
10376 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3622
10377 msgid ""
10378 "This function takes a key or passphrase parameter which could contain "
10379 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10380 "information."
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3492 ../src/guestfs-actions.pod:3532
10385 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3575
10386 msgid "(Added in 1.5.2)"
10387 msgstr ""
10388
10389 # type: =head2
10390 #: ../src/guestfs-actions.pod:3494
10391 msgid "guestfs_luks_close"
10392 msgstr ""
10393
10394 # type: verbatim
10395 #: ../src/guestfs-actions.pod:3496
10396 #, no-wrap
10397 msgid ""
10398 " int\n"
10399 " guestfs_luks_close (guestfs_h *g,\n"
10400 "                     const char *device);\n"
10401 "\n"
10402 msgstr ""
10403
10404 # type: textblock
10405 #: ../src/guestfs-actions.pod:3500
10406 msgid ""
10407 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10408 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10409 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10410 "underlying block device."
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3607
10415 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3676
10416 #: ../src/guestfs-actions.pod:3724
10417 msgid "(Added in 1.5.1)"
10418 msgstr ""
10419
10420 # type: =head2
10421 #: ../src/guestfs-actions.pod:3510
10422 msgid "guestfs_luks_format"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #: ../src/guestfs-actions.pod:3512
10427 #, no-wrap
10428 msgid ""
10429 " int\n"
10430 " guestfs_luks_format (guestfs_h *g,\n"
10431 "                      const char *device,\n"
10432 "                      const char *key,\n"
10433 "                      int keyslot);\n"
10434 "\n"
10435 msgstr ""
10436
10437 # type: textblock
10438 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2410
10439 msgid ""
10440 "This command erases existing data on C<device> and formats the device as a "
10441 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10442 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10443 msgstr ""
10444
10445 # type: textblock
10446 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3548
10447 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:4548
10448 #: ../src/guestfs-actions.pod:5311 ../src/guestfs-actions.pod:5686
10449 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5735
10450 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:2418
10451 #: ../fish/guestfish-actions.pod:2431 ../fish/guestfish-actions.pod:2515
10452 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3552
10453 #: ../fish/guestfish-actions.pod:3832 ../fish/guestfish-actions.pod:3848
10454 #: ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:4578
10455 msgid ""
10456 "B<This command is dangerous.  Without careful use you can easily destroy all "
10457 "your data>."
10458 msgstr ""
10459
10460 # type: =head2
10461 #: ../src/guestfs-actions.pod:3534
10462 msgid "guestfs_luks_format_cipher"
10463 msgstr ""
10464
10465 # type: verbatim
10466 #: ../src/guestfs-actions.pod:3536
10467 #, no-wrap
10468 msgid ""
10469 " int\n"
10470 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10471 "                             const char *device,\n"
10472 "                             const char *key,\n"
10473 "                             int keyslot,\n"
10474 "                             const char *cipher);\n"
10475 "\n"
10476 msgstr ""
10477
10478 # type: textblock
10479 #: ../src/guestfs-actions.pod:3543
10480 msgid ""
10481 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10482 "set the C<cipher> used."
10483 msgstr ""
10484
10485 # type: =head2
10486 #: ../src/guestfs-actions.pod:3557
10487 msgid "guestfs_luks_kill_slot"
10488 msgstr ""
10489
10490 # type: verbatim
10491 #: ../src/guestfs-actions.pod:3559
10492 #, no-wrap
10493 msgid ""
10494 " int\n"
10495 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10496 "                         const char *device,\n"
10497 "                         const char *key,\n"
10498 "                         int keyslot);\n"
10499 "\n"
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2438
10504 msgid ""
10505 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10506 "device C<device>.  C<key> must be one of the I<other> keys."
10507 msgstr ""
10508
10509 # type: =head2
10510 #: ../src/guestfs-actions.pod:3577
10511 msgid "guestfs_luks_open"
10512 msgstr ""
10513
10514 # type: verbatim
10515 #: ../src/guestfs-actions.pod:3579
10516 #, no-wrap
10517 msgid ""
10518 " int\n"
10519 " guestfs_luks_open (guestfs_h *g,\n"
10520 "                    const char *device,\n"
10521 "                    const char *key,\n"
10522 "                    const char *mapname);\n"
10523 "\n"
10524 msgstr ""
10525
10526 # type: textblock
10527 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2449
10528 msgid ""
10529 "This command opens a block device which has been encrypted according to the "
10530 "Linux Unified Key Setup (LUKS) standard."
10531 msgstr ""
10532
10533 # type: textblock
10534 #: ../src/guestfs-actions.pod:3588 ../fish/guestfish-actions.pod:2452
10535 msgid "C<device> is the encrypted block device or partition."
10536 msgstr ""
10537
10538 # type: textblock
10539 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2454
10540 msgid ""
10541 "The caller must supply one of the keys associated with the LUKS block "
10542 "device, in the C<key> parameter."
10543 msgstr ""
10544
10545 # type: textblock
10546 #: ../src/guestfs-actions.pod:3593 ../fish/guestfish-actions.pod:2457
10547 msgid ""
10548 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10549 "writes to this block device are decrypted from and encrypted to the "
10550 "underlying C<device> respectively."
10551 msgstr ""
10552
10553 # type: textblock
10554 #: ../src/guestfs-actions.pod:3597
10555 msgid ""
10556 "If this block device contains LVM volume groups, then calling "
10557 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10558 "visible."
10559 msgstr ""
10560
10561 # type: =head2
10562 #: ../src/guestfs-actions.pod:3609
10563 msgid "guestfs_luks_open_ro"
10564 msgstr ""
10565
10566 # type: verbatim
10567 #: ../src/guestfs-actions.pod:3611
10568 #, no-wrap
10569 msgid ""
10570 " int\n"
10571 " guestfs_luks_open_ro (guestfs_h *g,\n"
10572 "                       const char *device,\n"
10573 "                       const char *key,\n"
10574 "                       const char *mapname);\n"
10575 "\n"
10576 msgstr ""
10577
10578 # type: textblock
10579 #: ../src/guestfs-actions.pod:3617
10580 msgid ""
10581 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10582 "created."
10583 msgstr ""
10584
10585 # type: =head2
10586 #: ../src/guestfs-actions.pod:3628
10587 msgid "guestfs_lvcreate"
10588 msgstr ""
10589
10590 # type: verbatim
10591 #: ../src/guestfs-actions.pod:3630
10592 #, no-wrap
10593 msgid ""
10594 " int\n"
10595 " guestfs_lvcreate (guestfs_h *g,\n"
10596 "                   const char *logvol,\n"
10597 "                   const char *volgroup,\n"
10598 "                   int mbytes);\n"
10599 "\n"
10600 msgstr ""
10601
10602 # type: textblock
10603 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2482
10604 msgid ""
10605 "This creates an LVM logical volume called C<logvol> on the volume group "
10606 "C<volgroup>, with C<size> megabytes."
10607 msgstr ""
10608
10609 # type: =head2
10610 #: ../src/guestfs-actions.pod:3643
10611 msgid "guestfs_lvm_canonical_lv_name"
10612 msgstr ""
10613
10614 # type: verbatim
10615 #: ../src/guestfs-actions.pod:3645
10616 #, no-wrap
10617 msgid ""
10618 " char *\n"
10619 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10620 "                                const char *lvname);\n"
10621 "\n"
10622 msgstr ""
10623
10624 # type: textblock
10625 #: ../src/guestfs-actions.pod:3649 ../fish/guestfish-actions.pod:2489
10626 msgid ""
10627 "This converts alternative naming schemes for LVs that you might find to the "
10628 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10629 "LV>."
10630 msgstr ""
10631
10632 # type: textblock
10633 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10634 msgid ""
10635 "This command returns an error if the C<lvname> parameter does not refer to a "
10636 "logical volume."
10637 msgstr ""
10638
10639 # type: textblock
10640 #: ../src/guestfs-actions.pod:3656
10641 msgid "See also C<guestfs_is_lv>."
10642 msgstr ""
10643
10644 # type: textblock
10645 #: ../src/guestfs-actions.pod:3661
10646 msgid "(Added in 1.5.24)"
10647 msgstr ""
10648
10649 # type: =head2
10650 #: ../src/guestfs-actions.pod:3663
10651 msgid "guestfs_lvm_clear_filter"
10652 msgstr ""
10653
10654 # type: verbatim
10655 #: ../src/guestfs-actions.pod:3665
10656 #, no-wrap
10657 msgid ""
10658 " int\n"
10659 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10660 "\n"
10661 msgstr ""
10662
10663 # type: textblock
10664 #: ../src/guestfs-actions.pod:3668
10665 msgid ""
10666 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10667 "see every block device."
10668 msgstr ""
10669
10670 # type: textblock
10671 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3713
10672 #: ../fish/guestfish-actions.pod:2505 ../fish/guestfish-actions.pod:2536
10673 msgid ""
10674 "This command also clears the LVM cache and performs a volume group scan."
10675 msgstr ""
10676
10677 # type: =head2
10678 #: ../src/guestfs-actions.pod:3678
10679 msgid "guestfs_lvm_remove_all"
10680 msgstr ""
10681
10682 # type: verbatim
10683 #: ../src/guestfs-actions.pod:3680
10684 #, no-wrap
10685 msgid ""
10686 " int\n"
10687 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10688 "\n"
10689 msgstr ""
10690
10691 # type: textblock
10692 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2512
10693 msgid ""
10694 "This command removes all LVM logical volumes, volume groups and physical "
10695 "volumes."
10696 msgstr ""
10697
10698 # type: =head2
10699 #: ../src/guestfs-actions.pod:3693
10700 msgid "guestfs_lvm_set_filter"
10701 msgstr ""
10702
10703 # type: verbatim
10704 #: ../src/guestfs-actions.pod:3695
10705 #, no-wrap
10706 msgid ""
10707 " int\n"
10708 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10709 "                         char *const *devices);\n"
10710 "\n"
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3699 ../fish/guestfish-actions.pod:2522
10715 msgid ""
10716 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10717 "block devices in the list C<devices>, and will ignore all other attached "
10718 "block devices."
10719 msgstr ""
10720
10721 # type: textblock
10722 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2526
10723 msgid ""
10724 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10725 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10726 "there are two types of duplication possible: either cloned PVs/VGs which "
10727 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10728 "same name.  In normal operation you cannot create this situation, but you "
10729 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10730 "inside the LVM metadata."
10731 msgstr ""
10732
10733 # type: textblock
10734 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2539
10735 msgid "You can filter whole block devices or individual partitions."
10736 msgstr ""
10737
10738 # type: textblock
10739 #: ../src/guestfs-actions.pod:3718 ../fish/guestfish-actions.pod:2541
10740 msgid ""
10741 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10742 "filesystem), even if you are not filtering out that VG."
10743 msgstr ""
10744
10745 # type: =head2
10746 #: ../src/guestfs-actions.pod:3726
10747 msgid "guestfs_lvremove"
10748 msgstr ""
10749
10750 # type: verbatim
10751 #: ../src/guestfs-actions.pod:3728
10752 #, no-wrap
10753 msgid ""
10754 " int\n"
10755 " guestfs_lvremove (guestfs_h *g,\n"
10756 "                   const char *device);\n"
10757 "\n"
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3732 ../fish/guestfish-actions.pod:2549
10762 msgid ""
10763 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10764 "LV, such as C</dev/VG/LV>."
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2552
10769 msgid ""
10770 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10771 "dev/VG>."
10772 msgstr ""
10773
10774 # type: textblock
10775 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:4894
10776 #: ../src/guestfs-actions.pod:6624
10777 msgid "(Added in 1.0.13)"
10778 msgstr ""
10779
10780 # type: =head2
10781 #: ../src/guestfs-actions.pod:3742
10782 msgid "guestfs_lvrename"
10783 msgstr ""
10784
10785 # type: verbatim
10786 #: ../src/guestfs-actions.pod:3744
10787 #, no-wrap
10788 msgid ""
10789 " int\n"
10790 " guestfs_lvrename (guestfs_h *g,\n"
10791 "                   const char *logvol,\n"
10792 "                   const char *newlogvol);\n"
10793 "\n"
10794 msgstr ""
10795
10796 # type: textblock
10797 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2559
10798 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10799 msgstr ""
10800
10801 # type: textblock
10802 #: ../src/guestfs-actions.pod:3753 ../src/guestfs-actions.pod:6637
10803 msgid "(Added in 1.0.83)"
10804 msgstr ""
10805
10806 # type: =head2
10807 #: ../src/guestfs-actions.pod:3755
10808 msgid "guestfs_lvresize"
10809 msgstr ""
10810
10811 # type: verbatim
10812 #: ../src/guestfs-actions.pod:3757
10813 #, no-wrap
10814 msgid ""
10815 " int\n"
10816 " guestfs_lvresize (guestfs_h *g,\n"
10817 "                   const char *device,\n"
10818 "                   int mbytes);\n"
10819 "\n"
10820 msgstr ""
10821
10822 # type: textblock
10823 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2565
10824 msgid ""
10825 "This resizes (expands or shrinks) an existing LVM logical volume to "
10826 "C<mbytes>.  When reducing, data in the reduced part is lost."
10827 msgstr ""
10828
10829 # type: =head2
10830 #: ../src/guestfs-actions.pod:3770
10831 msgid "guestfs_lvresize_free"
10832 msgstr ""
10833
10834 # type: verbatim
10835 #: ../src/guestfs-actions.pod:3772
10836 #, no-wrap
10837 msgid ""
10838 " int\n"
10839 " guestfs_lvresize_free (guestfs_h *g,\n"
10840 "                        const char *lv,\n"
10841 "                        int percent);\n"
10842 "\n"
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2573
10847 msgid ""
10848 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10849 "remaining free space in the volume group.  Commonly you would call this with "
10850 "pc = 100 which expands the logical volume as much as possible, using all "
10851 "remaining free space in the volume group."
10852 msgstr ""
10853
10854 # type: textblock
10855 #: ../src/guestfs-actions.pod:3785
10856 msgid "(Added in 1.3.3)"
10857 msgstr ""
10858
10859 # type: =head2
10860 #: ../src/guestfs-actions.pod:3787
10861 msgid "guestfs_lvs"
10862 msgstr ""
10863
10864 # type: verbatim
10865 #: ../src/guestfs-actions.pod:3789
10866 #, no-wrap
10867 msgid ""
10868 " char **\n"
10869 " guestfs_lvs (guestfs_h *g);\n"
10870 "\n"
10871 msgstr ""
10872
10873 # type: textblock
10874 #: ../src/guestfs-actions.pod:3792 ../fish/guestfish-actions.pod:2583
10875 msgid ""
10876 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10877 "(8)> command."
10878 msgstr ""
10879
10880 # type: textblock
10881 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2586
10882 msgid ""
10883 "This returns a list of the logical volume device names (eg. C</dev/"
10884 "VolGroup00/LogVol00>)."
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:3798
10889 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10890 msgstr ""
10891
10892 # type: =head2
10893 #: ../src/guestfs-actions.pod:3806
10894 msgid "guestfs_lvs_full"
10895 msgstr ""
10896
10897 # type: verbatim
10898 #: ../src/guestfs-actions.pod:3808
10899 #, no-wrap
10900 msgid ""
10901 " struct guestfs_lvm_lv_list *\n"
10902 " guestfs_lvs_full (guestfs_h *g);\n"
10903 "\n"
10904 msgstr ""
10905
10906 # type: textblock
10907 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2595
10908 msgid ""
10909 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10910 "(8)> command.  The \"full\" version includes all fields."
10911 msgstr ""
10912
10913 # type: textblock
10914 #: ../src/guestfs-actions.pod:3814
10915 msgid ""
10916 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10917 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10918 msgstr ""
10919
10920 # type: =head2
10921 #: ../src/guestfs-actions.pod:3820
10922 msgid "guestfs_lvuuid"
10923 msgstr ""
10924
10925 # type: verbatim
10926 #: ../src/guestfs-actions.pod:3822
10927 #, no-wrap
10928 msgid ""
10929 " char *\n"
10930 " guestfs_lvuuid (guestfs_h *g,\n"
10931 "                 const char *device);\n"
10932 "\n"
10933 msgstr ""
10934
10935 # type: textblock
10936 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2602
10937 msgid "This command returns the UUID of the LVM LV C<device>."
10938 msgstr ""
10939
10940 # type: =head2
10941 #: ../src/guestfs-actions.pod:3833
10942 msgid "guestfs_lxattrlist"
10943 msgstr ""
10944
10945 # type: verbatim
10946 #: ../src/guestfs-actions.pod:3835
10947 #, no-wrap
10948 msgid ""
10949 " struct guestfs_xattr_list *\n"
10950 " guestfs_lxattrlist (guestfs_h *g,\n"
10951 "                     const char *path,\n"
10952 "                     char *const *names);\n"
10953 "\n"
10954 msgstr ""
10955
10956 # type: textblock
10957 #: ../src/guestfs-actions.pod:3840 ../fish/guestfish-actions.pod:2608
10958 msgid ""
10959 "This call allows you to get the extended attributes of multiple files, where "
10960 "all files are in the directory C<path>.  C<names> is the list of files from "
10961 "this directory."
10962 msgstr ""
10963
10964 # type: textblock
10965 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2612
10966 msgid ""
10967 "On return you get a flat list of xattr structs which must be interpreted "
10968 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10969 "C<attrval> in this struct is zero-length to indicate there was an error "
10970 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10971 "number (the number of following attributes for this file, which could be C<"
10972 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10973 "for the first named file.  This repeats for the second and subsequent files."
10974 msgstr ""
10975
10976 # type: textblock
10977 #: ../src/guestfs-actions.pod:3854
10978 msgid ""
10979 "This call is intended for programs that want to efficiently list a directory "
10980 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10981 "a similarly efficient call for getting standard stats.  Very long directory "
10982 "listings might cause the protocol message size to be exceeded, causing this "
10983 "call to fail.  The caller must split up such requests into smaller groups of "
10984 "names."
10985 msgstr ""
10986
10987 # type: =head2
10988 #: ../src/guestfs-actions.pod:3868
10989 msgid "guestfs_mkdir"
10990 msgstr ""
10991
10992 # type: verbatim
10993 #: ../src/guestfs-actions.pod:3870
10994 #, no-wrap
10995 msgid ""
10996 " int\n"
10997 " guestfs_mkdir (guestfs_h *g,\n"
10998 "                const char *path);\n"
10999 "\n"
11000 msgstr ""
11001
11002 # type: textblock
11003 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2634
11004 msgid "Create a directory named C<path>."
11005 msgstr ""
11006
11007 # type: =head2
11008 #: ../src/guestfs-actions.pod:3880
11009 msgid "guestfs_mkdir_mode"
11010 msgstr ""
11011
11012 # type: verbatim
11013 #: ../src/guestfs-actions.pod:3882
11014 #, no-wrap
11015 msgid ""
11016 " int\n"
11017 " guestfs_mkdir_mode (guestfs_h *g,\n"
11018 "                     const char *path,\n"
11019 "                     int mode);\n"
11020 "\n"
11021 msgstr ""
11022
11023 # type: textblock
11024 #: ../src/guestfs-actions.pod:3887 ../fish/guestfish-actions.pod:2640
11025 msgid ""
11026 "This command creates a directory, setting the initial permissions of the "
11027 "directory to C<mode>."
11028 msgstr ""
11029
11030 # type: textblock
11031 #: ../src/guestfs-actions.pod:3890 ../fish/guestfish-actions.pod:2643
11032 msgid ""
11033 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11034 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11035 "other ways."
11036 msgstr ""
11037
11038 # type: textblock
11039 #: ../src/guestfs-actions.pod:3894
11040 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11041 msgstr ""
11042
11043 # type: =head2
11044 #: ../src/guestfs-actions.pod:3900
11045 msgid "guestfs_mkdir_p"
11046 msgstr ""
11047
11048 # type: verbatim
11049 #: ../src/guestfs-actions.pod:3902
11050 #, no-wrap
11051 msgid ""
11052 " int\n"
11053 " guestfs_mkdir_p (guestfs_h *g,\n"
11054 "                  const char *path);\n"
11055 "\n"
11056 msgstr ""
11057
11058 # type: textblock
11059 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2653
11060 msgid ""
11061 "Create a directory named C<path>, creating any parent directories as "
11062 "necessary.  This is like the C<mkdir -p> shell command."
11063 msgstr ""
11064
11065 # type: =head2
11066 #: ../src/guestfs-actions.pod:3913
11067 msgid "guestfs_mkdtemp"
11068 msgstr ""
11069
11070 # type: verbatim
11071 #: ../src/guestfs-actions.pod:3915
11072 #, no-wrap
11073 msgid ""
11074 " char *\n"
11075 " guestfs_mkdtemp (guestfs_h *g,\n"
11076 "                  const char *template);\n"
11077 "\n"
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2660
11082 msgid ""
11083 "This command creates a temporary directory.  The C<template> parameter "
11084 "should be a full pathname for the temporary directory name with the final "
11085 "six characters being \"XXXXXX\"."
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:3924 ../fish/guestfish-actions.pod:2665
11090 msgid ""
11091 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11092 "being suitable for Windows filesystems."
11093 msgstr ""
11094
11095 # type: textblock
11096 #: ../src/guestfs-actions.pod:3927 ../fish/guestfish-actions.pod:2668
11097 msgid "The name of the temporary directory that was created is returned."
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:2671
11102 msgid "The temporary directory is created with mode 0700 and is owned by root."
11103 msgstr ""
11104
11105 # type: textblock
11106 #: ../src/guestfs-actions.pod:3933 ../fish/guestfish-actions.pod:2674
11107 msgid ""
11108 "The caller is responsible for deleting the temporary directory and its "
11109 "contents after use."
11110 msgstr ""
11111
11112 # type: textblock
11113 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2677
11114 msgid "See also: L<mkdtemp(3)>"
11115 msgstr ""
11116
11117 # type: =head2
11118 #: ../src/guestfs-actions.pod:3943
11119 msgid "guestfs_mke2fs_J"
11120 msgstr ""
11121
11122 # type: verbatim
11123 #: ../src/guestfs-actions.pod:3945
11124 #, no-wrap
11125 msgid ""
11126 " int\n"
11127 " guestfs_mke2fs_J (guestfs_h *g,\n"
11128 "                   const char *fstype,\n"
11129 "                   int blocksize,\n"
11130 "                   const char *device,\n"
11131 "                   const char *journal);\n"
11132 "\n"
11133 msgstr ""
11134
11135 # type: textblock
11136 #: ../src/guestfs-actions.pod:3952 ../fish/guestfish-actions.pod:2683
11137 msgid ""
11138 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11139 "C<journal>.  It is equivalent to the command:"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2687
11144 #, no-wrap
11145 msgid ""
11146 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11147 "\n"
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:3958
11152 msgid "See also C<guestfs_mke2journal>."
11153 msgstr ""
11154
11155 # type: textblock
11156 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:3980
11157 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4014
11158 #: ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4042
11159 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4284
11160 msgid "(Added in 1.0.68)"
11161 msgstr ""
11162
11163 # type: =head2
11164 #: ../src/guestfs-actions.pod:3964
11165 msgid "guestfs_mke2fs_JL"
11166 msgstr ""
11167
11168 # type: verbatim
11169 #: ../src/guestfs-actions.pod:3966
11170 #, no-wrap
11171 msgid ""
11172 " int\n"
11173 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11174 "                    const char *fstype,\n"
11175 "                    int blocksize,\n"
11176 "                    const char *device,\n"
11177 "                    const char *label);\n"
11178 "\n"
11179 msgstr ""
11180
11181 # type: textblock
11182 #: ../src/guestfs-actions.pod:3973 ../fish/guestfish-actions.pod:2695
11183 msgid ""
11184 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11185 "the journal labeled C<label>."
11186 msgstr ""
11187
11188 # type: textblock
11189 #: ../src/guestfs-actions.pod:3976
11190 msgid "See also C<guestfs_mke2journal_L>."
11191 msgstr ""
11192
11193 # type: =head2
11194 #: ../src/guestfs-actions.pod:3982
11195 msgid "guestfs_mke2fs_JU"
11196 msgstr ""
11197
11198 # type: verbatim
11199 #: ../src/guestfs-actions.pod:3984
11200 #, no-wrap
11201 msgid ""
11202 " int\n"
11203 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11204 "                    const char *fstype,\n"
11205 "                    int blocksize,\n"
11206 "                    const char *device,\n"
11207 "                    const char *uuid);\n"
11208 "\n"
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:2704
11213 msgid ""
11214 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11215 "the journal with UUID C<uuid>."
11216 msgstr ""
11217
11218 # type: textblock
11219 #: ../src/guestfs-actions.pod:3994
11220 msgid "See also C<guestfs_mke2journal_U>."
11221 msgstr ""
11222
11223 # type: =head2
11224 #: ../src/guestfs-actions.pod:4000
11225 msgid "guestfs_mke2journal"
11226 msgstr ""
11227
11228 # type: verbatim
11229 #: ../src/guestfs-actions.pod:4002
11230 #, no-wrap
11231 msgid ""
11232 " int\n"
11233 " guestfs_mke2journal (guestfs_h *g,\n"
11234 "                      int blocksize,\n"
11235 "                      const char *device);\n"
11236 "\n"
11237 msgstr ""
11238
11239 # type: textblock
11240 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2713
11241 msgid ""
11242 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11243 "command:"
11244 msgstr ""
11245
11246 # type: verbatim
11247 #: ../src/guestfs-actions.pod:4010 ../fish/guestfish-actions.pod:2716
11248 #, no-wrap
11249 msgid ""
11250 " mke2fs -O journal_dev -b blocksize device\n"
11251 "\n"
11252 msgstr ""
11253
11254 # type: =head2
11255 #: ../src/guestfs-actions.pod:4016
11256 msgid "guestfs_mke2journal_L"
11257 msgstr ""
11258
11259 # type: verbatim
11260 #: ../src/guestfs-actions.pod:4018
11261 #, no-wrap
11262 msgid ""
11263 " int\n"
11264 " guestfs_mke2journal_L (guestfs_h *g,\n"
11265 "                        int blocksize,\n"
11266 "                        const char *label,\n"
11267 "                        const char *device);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2722
11273 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11274 msgstr ""
11275
11276 # type: =head2
11277 #: ../src/guestfs-actions.pod:4030
11278 msgid "guestfs_mke2journal_U"
11279 msgstr ""
11280
11281 # type: verbatim
11282 #: ../src/guestfs-actions.pod:4032
11283 #, no-wrap
11284 msgid ""
11285 " int\n"
11286 " guestfs_mke2journal_U (guestfs_h *g,\n"
11287 "                        int blocksize,\n"
11288 "                        const char *uuid,\n"
11289 "                        const char *device);\n"
11290 "\n"
11291 msgstr ""
11292
11293 # type: textblock
11294 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2728
11295 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11296 msgstr ""
11297
11298 # type: =head2
11299 #: ../src/guestfs-actions.pod:4044
11300 msgid "guestfs_mkfifo"
11301 msgstr ""
11302
11303 # type: verbatim
11304 #: ../src/guestfs-actions.pod:4046
11305 #, no-wrap
11306 msgid ""
11307 " int\n"
11308 " guestfs_mkfifo (guestfs_h *g,\n"
11309 "                 int mode,\n"
11310 "                 const char *path);\n"
11311 "\n"
11312 msgstr ""
11313
11314 # type: textblock
11315 #: ../src/guestfs-actions.pod:4051
11316 msgid ""
11317 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11318 "is just a convenient wrapper around C<guestfs_mknod>."
11319 msgstr ""
11320
11321 # type: =head2
11322 #: ../src/guestfs-actions.pod:4061
11323 msgid "guestfs_mkfs"
11324 msgstr ""
11325
11326 # type: verbatim
11327 #: ../src/guestfs-actions.pod:4063
11328 #, no-wrap
11329 msgid ""
11330 " int\n"
11331 " guestfs_mkfs (guestfs_h *g,\n"
11332 "               const char *fstype,\n"
11333 "               const char *device);\n"
11334 "\n"
11335 msgstr ""
11336
11337 # type: textblock
11338 #: ../src/guestfs-actions.pod:4068 ../fish/guestfish-actions.pod:2744
11339 msgid ""
11340 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11341 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11342 msgstr ""
11343
11344 # type: =head2
11345 #: ../src/guestfs-actions.pod:4076
11346 msgid "guestfs_mkfs_b"
11347 msgstr ""
11348
11349 # type: verbatim
11350 #: ../src/guestfs-actions.pod:4078
11351 #, no-wrap
11352 msgid ""
11353 " int\n"
11354 " guestfs_mkfs_b (guestfs_h *g,\n"
11355 "                 const char *fstype,\n"
11356 "                 int blocksize,\n"
11357 "                 const char *device);\n"
11358 "\n"
11359 msgstr ""
11360
11361 # type: textblock
11362 #: ../src/guestfs-actions.pod:4084
11363 msgid ""
11364 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11365 "block size of the resulting filesystem.  Supported block sizes depend on the "
11366 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11367 msgstr ""
11368
11369 # type: textblock
11370 #: ../src/guestfs-actions.pod:4089 ../fish/guestfish-actions.pod:2757
11371 msgid ""
11372 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11373 "cluster size."
11374 msgstr ""
11375
11376 # type: =head2
11377 #: ../src/guestfs-actions.pod:4096
11378 msgid "guestfs_mkmountpoint"
11379 msgstr ""
11380
11381 # type: verbatim
11382 #: ../src/guestfs-actions.pod:4098
11383 #, no-wrap
11384 msgid ""
11385 " int\n"
11386 " guestfs_mkmountpoint (guestfs_h *g,\n"
11387 "                       const char *exemptpath);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4102
11393 msgid ""
11394 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11395 "that can be used to create extra mountpoints before mounting the first "
11396 "filesystem."
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4106 ../fish/guestfish-actions.pod:2768
11401 msgid ""
11402 "These calls are I<only> necessary in some very limited circumstances, mainly "
11403 "the case where you want to mount a mix of unrelated and/or read-only "
11404 "filesystems together."
11405 msgstr ""
11406
11407 # type: textblock
11408 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2772
11409 msgid ""
11410 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11411 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11412 "inside that.  You can unpack this as follows in guestfish:"
11413 msgstr ""
11414
11415 # type: verbatim
11416 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:2777
11417 #, no-wrap
11418 msgid ""
11419 " add-ro Fedora-11-i686-Live.iso\n"
11420 " run\n"
11421 " mkmountpoint /cd\n"
11422 " mkmountpoint /sqsh\n"
11423 " mkmountpoint /ext3fs\n"
11424 " mount /dev/sda /cd\n"
11425 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11426 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11427 "\n"
11428 msgstr ""
11429
11430 # type: textblock
11431 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:2786
11432 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11433 msgstr ""
11434
11435 # type: textblock
11436 #: ../src/guestfs-actions.pod:4126
11437 msgid ""
11438 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11439 "may get unexpected errors if you try to mix these calls.  It is safest to "
11440 "manually unmount filesystems and remove mountpoints after use."
11441 msgstr ""
11442
11443 # type: textblock
11444 #: ../src/guestfs-actions.pod:4130
11445 msgid ""
11446 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11447 "first, so for this to work for manual mountpoints, you must ensure that the "
11448 "innermost mountpoints have the longest pathnames, as in the example code "
11449 "above."
11450 msgstr ""
11451
11452 # type: textblock
11453 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2797
11454 msgid ""
11455 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11456 msgstr ""
11457
11458 # type: textblock
11459 #: ../src/guestfs-actions.pod:4137
11460 msgid ""
11461 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11462 "means that C<guestfs_umount_all> is called when the handle is closed which "
11463 "can also trigger these issues."
11464 msgstr ""
11465
11466 # type: textblock
11467 #: ../src/guestfs-actions.pod:4143 ../src/guestfs-actions.pod:4402
11468 #: ../src/guestfs-actions.pod:5295
11469 msgid "(Added in 1.0.62)"
11470 msgstr ""
11471
11472 # type: =head2
11473 #: ../src/guestfs-actions.pod:4145
11474 msgid "guestfs_mknod"
11475 msgstr ""
11476
11477 # type: verbatim
11478 #: ../src/guestfs-actions.pod:4147
11479 #, no-wrap
11480 msgid ""
11481 " int\n"
11482 " guestfs_mknod (guestfs_h *g,\n"
11483 "                int mode,\n"
11484 "                int devmajor,\n"
11485 "                int devminor,\n"
11486 "                const char *path);\n"
11487 "\n"
11488 msgstr ""
11489
11490 # type: textblock
11491 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:2807
11492 msgid ""
11493 "This call creates block or character special devices, or named pipes (FIFOs)."
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2810
11498 msgid ""
11499 "The C<mode> parameter should be the mode, using the standard constants.  "
11500 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11501 "used when creating block and character special devices."
11502 msgstr ""
11503
11504 # type: textblock
11505 #: ../src/guestfs-actions.pod:4162
11506 msgid ""
11507 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11508 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11509 "regular file).  These constants are available in the standard Linux header "
11510 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11511 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11512 "the appropriate constant for you."
11513 msgstr ""
11514
11515 # type: =head2
11516 #: ../src/guestfs-actions.pod:4176
11517 msgid "guestfs_mknod_b"
11518 msgstr ""
11519
11520 # type: verbatim
11521 #: ../src/guestfs-actions.pod:4178
11522 #, no-wrap
11523 msgid ""
11524 " int\n"
11525 " guestfs_mknod_b (guestfs_h *g,\n"
11526 "                  int mode,\n"
11527 "                  int devmajor,\n"
11528 "                  int devminor,\n"
11529 "                  const char *path);\n"
11530 "\n"
11531 msgstr ""
11532
11533 # type: textblock
11534 #: ../src/guestfs-actions.pod:4185
11535 msgid ""
11536 "This call creates a block device node called C<path> with mode C<mode> and "
11537 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11538 "wrapper around C<guestfs_mknod>."
11539 msgstr ""
11540
11541 # type: =head2
11542 #: ../src/guestfs-actions.pod:4195
11543 msgid "guestfs_mknod_c"
11544 msgstr ""
11545
11546 # type: verbatim
11547 #: ../src/guestfs-actions.pod:4197
11548 #, no-wrap
11549 msgid ""
11550 " int\n"
11551 " guestfs_mknod_c (guestfs_h *g,\n"
11552 "                  int mode,\n"
11553 "                  int devmajor,\n"
11554 "                  int devminor,\n"
11555 "                  const char *path);\n"
11556 "\n"
11557 msgstr ""
11558
11559 # type: textblock
11560 #: ../src/guestfs-actions.pod:4204
11561 msgid ""
11562 "This call creates a char device node called C<path> with mode C<mode> and "
11563 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11564 "wrapper around C<guestfs_mknod>."
11565 msgstr ""
11566
11567 # type: =head2
11568 #: ../src/guestfs-actions.pod:4214
11569 msgid "guestfs_mkswap"
11570 msgstr ""
11571
11572 # type: verbatim
11573 #: ../src/guestfs-actions.pod:4216
11574 #, no-wrap
11575 msgid ""
11576 " int\n"
11577 " guestfs_mkswap (guestfs_h *g,\n"
11578 "                 const char *device);\n"
11579 "\n"
11580 msgstr ""
11581
11582 # type: textblock
11583 #: ../src/guestfs-actions.pod:4220 ../fish/guestfish-actions.pod:2849
11584 msgid "Create a swap partition on C<device>."
11585 msgstr ""
11586
11587 # type: =head2
11588 #: ../src/guestfs-actions.pod:4226
11589 msgid "guestfs_mkswap_L"
11590 msgstr ""
11591
11592 # type: verbatim
11593 #: ../src/guestfs-actions.pod:4228
11594 #, no-wrap
11595 msgid ""
11596 " int\n"
11597 " guestfs_mkswap_L (guestfs_h *g,\n"
11598 "                   const char *label,\n"
11599 "                   const char *device);\n"
11600 "\n"
11601 msgstr ""
11602
11603 # type: textblock
11604 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2855
11605 msgid "Create a swap partition on C<device> with label C<label>."
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:2857
11610 msgid ""
11611 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11612 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11613 "or swap tools."
11614 msgstr ""
11615
11616 # type: =head2
11617 #: ../src/guestfs-actions.pod:4243
11618 msgid "guestfs_mkswap_U"
11619 msgstr ""
11620
11621 # type: verbatim
11622 #: ../src/guestfs-actions.pod:4245
11623 #, no-wrap
11624 msgid ""
11625 " int\n"
11626 " guestfs_mkswap_U (guestfs_h *g,\n"
11627 "                   const char *uuid,\n"
11628 "                   const char *device);\n"
11629 "\n"
11630 msgstr ""
11631
11632 # type: textblock
11633 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:2865
11634 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11635 msgstr ""
11636
11637 # type: =head2
11638 #: ../src/guestfs-actions.pod:4256
11639 msgid "guestfs_mkswap_file"
11640 msgstr ""
11641
11642 # type: verbatim
11643 #: ../src/guestfs-actions.pod:4258
11644 #, no-wrap
11645 msgid ""
11646 " int\n"
11647 " guestfs_mkswap_file (guestfs_h *g,\n"
11648 "                      const char *path);\n"
11649 "\n"
11650 msgstr ""
11651
11652 # type: textblock
11653 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2871
11654 msgid "Create a swap file."
11655 msgstr ""
11656
11657 # type: textblock
11658 #: ../src/guestfs-actions.pod:4264
11659 msgid ""
11660 "This command just writes a swap file signature to an existing file.  To "
11661 "create the file itself, use something like C<guestfs_fallocate>."
11662 msgstr ""
11663
11664 # type: =head2
11665 #: ../src/guestfs-actions.pod:4271
11666 msgid "guestfs_modprobe"
11667 msgstr ""
11668
11669 # type: verbatim
11670 #: ../src/guestfs-actions.pod:4273
11671 #, no-wrap
11672 msgid ""
11673 " int\n"
11674 " guestfs_modprobe (guestfs_h *g,\n"
11675 "                   const char *modulename);\n"
11676 "\n"
11677 msgstr ""
11678
11679 # type: textblock
11680 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2880
11681 msgid "This loads a kernel module in the appliance."
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4279 ../fish/guestfish-actions.pod:2882
11686 msgid ""
11687 "The kernel module must have been whitelisted when libguestfs was built (see "
11688 "C<appliance/kmod.whitelist.in> in the source)."
11689 msgstr ""
11690
11691 # type: =head2
11692 #: ../src/guestfs-actions.pod:4286
11693 msgid "guestfs_mount"
11694 msgstr ""
11695
11696 # type: verbatim
11697 #: ../src/guestfs-actions.pod:4288
11698 #, no-wrap
11699 msgid ""
11700 " int\n"
11701 " guestfs_mount (guestfs_h *g,\n"
11702 "                const char *device,\n"
11703 "                const char *mountpoint);\n"
11704 "\n"
11705 msgstr ""
11706
11707 # type: textblock
11708 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:2889
11709 msgid ""
11710 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11711 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11712 "those block devices contain partitions, they will have the usual names (eg. "
11713 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4299 ../fish/guestfish-actions.pod:2895
11718 msgid ""
11719 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11720 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11721 "mounted on directories which already exist."
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2900
11726 msgid ""
11727 "The mounted filesystem is writable, if we have sufficient permissions on the "
11728 "underlying device."
11729 msgstr ""
11730
11731 # type: textblock
11732 #: ../src/guestfs-actions.pod:4307
11733 msgid ""
11734 "B<Important note:> When you use this call, the filesystem options C<sync> "
11735 "and C<noatime> are set implicitly.  This was originally done because we "
11736 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11737 "very large negative performance impact and negligible effect on "
11738 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11739 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11740 "(use an empty string for the first parameter if you don't want any options)."
11741 msgstr ""
11742
11743 # type: =head2
11744 #: ../src/guestfs-actions.pod:4321
11745 msgid "guestfs_mount_loop"
11746 msgstr ""
11747
11748 # type: verbatim
11749 #: ../src/guestfs-actions.pod:4323
11750 #, no-wrap
11751 msgid ""
11752 " int\n"
11753 " guestfs_mount_loop (guestfs_h *g,\n"
11754 "                     const char *file,\n"
11755 "                     const char *mountpoint);\n"
11756 "\n"
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:2917
11761 msgid ""
11762 "This command lets you mount C<file> (a filesystem image in a file) on a "
11763 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11764 "mountpoint>."
11765 msgstr ""
11766
11767 # type: =head2
11768 #: ../src/guestfs-actions.pod:4336
11769 msgid "guestfs_mount_options"
11770 msgstr ""
11771
11772 # type: verbatim
11773 #: ../src/guestfs-actions.pod:4338
11774 #, no-wrap
11775 msgid ""
11776 " int\n"
11777 " guestfs_mount_options (guestfs_h *g,\n"
11778 "                        const char *options,\n"
11779 "                        const char *device,\n"
11780 "                        const char *mountpoint);\n"
11781 "\n"
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4344
11786 msgid ""
11787 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11788 "the mount options as for the L<mount(8)> I<-o> flag."
11789 msgstr ""
11790
11791 # type: textblock
11792 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2929
11793 msgid ""
11794 "If the C<options> parameter is an empty string, then no options are passed "
11795 "(all options default to whatever the filesystem uses)."
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4368
11800 #: ../src/guestfs-actions.pod:4385
11801 msgid "(Added in 1.0.10)"
11802 msgstr ""
11803
11804 # type: =head2
11805 #: ../src/guestfs-actions.pod:4356
11806 msgid "guestfs_mount_ro"
11807 msgstr ""
11808
11809 # type: verbatim
11810 #: ../src/guestfs-actions.pod:4358
11811 #, no-wrap
11812 msgid ""
11813 " int\n"
11814 " guestfs_mount_ro (guestfs_h *g,\n"
11815 "                   const char *device,\n"
11816 "                   const char *mountpoint);\n"
11817 "\n"
11818 msgstr ""
11819
11820 # type: textblock
11821 #: ../src/guestfs-actions.pod:4363
11822 msgid ""
11823 "This is the same as the C<guestfs_mount> command, but it mounts the "
11824 "filesystem with the read-only (I<-o ro>) flag."
11825 msgstr ""
11826
11827 # type: =head2
11828 #: ../src/guestfs-actions.pod:4370
11829 msgid "guestfs_mount_vfs"
11830 msgstr ""
11831
11832 # type: verbatim
11833 #: ../src/guestfs-actions.pod:4372
11834 #, no-wrap
11835 msgid ""
11836 " int\n"
11837 " guestfs_mount_vfs (guestfs_h *g,\n"
11838 "                    const char *options,\n"
11839 "                    const char *vfstype,\n"
11840 "                    const char *device,\n"
11841 "                    const char *mountpoint);\n"
11842 "\n"
11843 msgstr ""
11844
11845 # type: textblock
11846 #: ../src/guestfs-actions.pod:4379
11847 msgid ""
11848 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11849 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11850 "t> flags."
11851 msgstr ""
11852
11853 # type: =head2
11854 #: ../src/guestfs-actions.pod:4387
11855 msgid "guestfs_mountpoints"
11856 msgstr ""
11857
11858 # type: verbatim
11859 #: ../src/guestfs-actions.pod:4389
11860 #, no-wrap
11861 msgid ""
11862 " char **\n"
11863 " guestfs_mountpoints (guestfs_h *g);\n"
11864 "\n"
11865 msgstr ""
11866
11867 # type: textblock
11868 #: ../src/guestfs-actions.pod:4392
11869 msgid ""
11870 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11871 "devices.  This one returns a hash table (map) of device name to directory "
11872 "where the device is mounted."
11873 msgstr ""
11874
11875 # type: =head2
11876 #: ../src/guestfs-actions.pod:4404
11877 msgid "guestfs_mounts"
11878 msgstr ""
11879
11880 # type: verbatim
11881 #: ../src/guestfs-actions.pod:4406
11882 #, no-wrap
11883 msgid ""
11884 " char **\n"
11885 " guestfs_mounts (guestfs_h *g);\n"
11886 "\n"
11887 msgstr ""
11888
11889 # type: textblock
11890 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:2960
11891 msgid ""
11892 "This returns the list of currently mounted filesystems.  It returns the list "
11893 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11894 msgstr ""
11895
11896 # type: textblock
11897 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:2963
11898 msgid "Some internal mounts are not shown."
11899 msgstr ""
11900
11901 # type: textblock
11902 #: ../src/guestfs-actions.pod:4414
11903 msgid "See also: C<guestfs_mountpoints>"
11904 msgstr ""
11905
11906 # type: =head2
11907 #: ../src/guestfs-actions.pod:4422
11908 msgid "guestfs_mv"
11909 msgstr ""
11910
11911 # type: verbatim
11912 #: ../src/guestfs-actions.pod:4424
11913 #, no-wrap
11914 msgid ""
11915 " int\n"
11916 " guestfs_mv (guestfs_h *g,\n"
11917 "             const char *src,\n"
11918 "             const char *dest);\n"
11919 "\n"
11920 msgstr ""
11921
11922 # type: textblock
11923 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2971
11924 msgid ""
11925 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11926 "destination filename or destination directory."
11927 msgstr ""
11928
11929 # type: =head2
11930 #: ../src/guestfs-actions.pod:4436
11931 msgid "guestfs_ntfs_3g_probe"
11932 msgstr ""
11933
11934 # type: verbatim
11935 #: ../src/guestfs-actions.pod:4438
11936 #, no-wrap
11937 msgid ""
11938 " int\n"
11939 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11940 "                        int rw,\n"
11941 "                        const char *device);\n"
11942 "\n"
11943 msgstr ""
11944
11945 # type: textblock
11946 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:2978
11947 msgid ""
11948 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11949 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11950 "write, and some cannot be mounted at all)."
11951 msgstr ""
11952
11953 # type: textblock
11954 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2982
11955 msgid ""
11956 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11957 "can be mounted read-write.  Set it to false if you want to test if the "
11958 "volume can be mounted read-only."
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:2986
11963 msgid ""
11964 "The return value is an integer which C<0> if the operation would succeed, or "
11965 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11966 msgstr ""
11967
11968 # type: textblock
11969 #: ../src/guestfs-actions.pod:4457
11970 msgid "(Added in 1.0.43)"
11971 msgstr ""
11972
11973 # type: =head2
11974 #: ../src/guestfs-actions.pod:4459
11975 msgid "guestfs_ntfsresize"
11976 msgstr ""
11977
11978 # type: verbatim
11979 #: ../src/guestfs-actions.pod:4461
11980 #, no-wrap
11981 msgid ""
11982 " int\n"
11983 " guestfs_ntfsresize (guestfs_h *g,\n"
11984 "                     const char *device);\n"
11985 "\n"
11986 msgstr ""
11987
11988 # type: textblock
11989 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2994
11990 msgid ""
11991 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11992 "size of the underlying device.  See also L<ntfsresize(8)>."
11993 msgstr ""
11994
11995 # type: =head2
11996 #: ../src/guestfs-actions.pod:4473
11997 msgid "guestfs_ntfsresize_size"
11998 msgstr ""
11999
12000 # type: verbatim
12001 #: ../src/guestfs-actions.pod:4475
12002 #, no-wrap
12003 msgid ""
12004 " int\n"
12005 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12006 "                          const char *device,\n"
12007 "                          int64_t size);\n"
12008 "\n"
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4480
12013 msgid ""
12014 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12015 "to specify the new size (in bytes) explicitly."
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4485 ../src/guestfs-actions.pod:4921
12020 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5243
12021 msgid "(Added in 1.3.14)"
12022 msgstr ""
12023
12024 # type: =head2
12025 #: ../src/guestfs-actions.pod:4487
12026 msgid "guestfs_part_add"
12027 msgstr ""
12028
12029 # type: verbatim
12030 #: ../src/guestfs-actions.pod:4489
12031 #, no-wrap
12032 msgid ""
12033 " int\n"
12034 " guestfs_part_add (guestfs_h *g,\n"
12035 "                   const char *device,\n"
12036 "                   const char *prlogex,\n"
12037 "                   int64_t startsect,\n"
12038 "                   int64_t endsect);\n"
12039 "\n"
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4496
12044 msgid ""
12045 "This command adds a partition to C<device>.  If there is no partition table "
12046 "on the device, call C<guestfs_part_init> first."
12047 msgstr ""
12048
12049 # type: textblock
12050 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3012
12051 msgid ""
12052 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12053 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12054 "C<logical>) and C<e> (or C<extended>) partition types."
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4504 ../fish/guestfish-actions.pod:3017
12059 msgid ""
12060 "C<startsect> and C<endsect> are the start and end of the partition in "
12061 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12062 "from the end of the disk (C<-1> is the last sector)."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4508
12067 msgid ""
12068 "Creating a partition which covers the whole disk is not so easy.  Use "
12069 "C<guestfs_part_disk> to do that."
12070 msgstr ""
12071
12072 # type: textblock
12073 #: ../src/guestfs-actions.pod:4513 ../src/guestfs-actions.pod:4551
12074 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4682
12075 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4739
12076 #: ../src/guestfs-actions.pod:4779
12077 msgid "(Added in 1.0.78)"
12078 msgstr ""
12079
12080 # type: =head2
12081 #: ../src/guestfs-actions.pod:4515
12082 msgid "guestfs_part_del"
12083 msgstr ""
12084
12085 # type: verbatim
12086 #: ../src/guestfs-actions.pod:4517
12087 #, no-wrap
12088 msgid ""
12089 " int\n"
12090 " guestfs_part_del (guestfs_h *g,\n"
12091 "                   const char *device,\n"
12092 "                   int partnum);\n"
12093 "\n"
12094 msgstr ""
12095
12096 # type: textblock
12097 #: ../src/guestfs-actions.pod:4522 ../fish/guestfish-actions.pod:3028
12098 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3030
12103 msgid ""
12104 "Note that in the case of MBR partitioning, deleting an extended partition "
12105 "also deletes any logical partitions it contains."
12106 msgstr ""
12107
12108 # type: =head2
12109 #: ../src/guestfs-actions.pod:4532
12110 msgid "guestfs_part_disk"
12111 msgstr ""
12112
12113 # type: verbatim
12114 #: ../src/guestfs-actions.pod:4534
12115 #, no-wrap
12116 msgid ""
12117 " int\n"
12118 " guestfs_part_disk (guestfs_h *g,\n"
12119 "                    const char *device,\n"
12120 "                    const char *parttype);\n"
12121 "\n"
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4539
12126 msgid ""
12127 "This command is simply a combination of C<guestfs_part_init> followed by "
12128 "C<guestfs_part_add> to create a single primary partition covering the whole "
12129 "disk."
12130 msgstr ""
12131
12132 # type: textblock
12133 #: ../src/guestfs-actions.pod:4543
12134 msgid ""
12135 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12136 "possible values are described in C<guestfs_part_init>."
12137 msgstr ""
12138
12139 # type: =head2
12140 #: ../src/guestfs-actions.pod:4553
12141 msgid "guestfs_part_get_bootable"
12142 msgstr ""
12143
12144 # type: verbatim
12145 #: ../src/guestfs-actions.pod:4555
12146 #, no-wrap
12147 msgid ""
12148 " int\n"
12149 " guestfs_part_get_bootable (guestfs_h *g,\n"
12150 "                            const char *device,\n"
12151 "                            int partnum);\n"
12152 "\n"
12153 msgstr ""
12154
12155 # type: textblock
12156 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3052
12157 msgid ""
12158 "This command returns true if the partition C<partnum> on C<device> has the "
12159 "bootable flag set."
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4563
12164 msgid "See also C<guestfs_part_set_bootable>."
12165 msgstr ""
12166
12167 # type: =head2
12168 #: ../src/guestfs-actions.pod:4569
12169 msgid "guestfs_part_get_mbr_id"
12170 msgstr ""
12171
12172 # type: verbatim
12173 #: ../src/guestfs-actions.pod:4571
12174 #, no-wrap
12175 msgid ""
12176 " int\n"
12177 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12178 "                          const char *device,\n"
12179 "                          int partnum);\n"
12180 "\n"
12181 msgstr ""
12182
12183 # type: textblock
12184 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3061
12185 msgid ""
12186 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12187 "partition C<partnum>."
12188 msgstr ""
12189
12190 # type: textblock
12191 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4755
12192 msgid ""
12193 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12194 "undefined results for other partition table types (see "
12195 "C<guestfs_part_get_parttype>)."
12196 msgstr ""
12197
12198 # type: =head2
12199 #: ../src/guestfs-actions.pod:4587
12200 msgid "guestfs_part_get_parttype"
12201 msgstr ""
12202
12203 # type: verbatim
12204 #: ../src/guestfs-actions.pod:4589
12205 #, no-wrap
12206 msgid ""
12207 " char *\n"
12208 " guestfs_part_get_parttype (guestfs_h *g,\n"
12209 "                            const char *device);\n"
12210 "\n"
12211 msgstr ""
12212
12213 # type: textblock
12214 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3072
12215 msgid ""
12216 "This command examines the partition table on C<device> and returns the "
12217 "partition table type (format) being used."
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4596
12222 msgid ""
12223 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12224 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12225 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12226 msgstr ""
12227
12228 # type: =head2
12229 #: ../src/guestfs-actions.pod:4606
12230 msgid "guestfs_part_init"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #: ../src/guestfs-actions.pod:4608
12235 #, no-wrap
12236 msgid ""
12237 " int\n"
12238 " guestfs_part_init (guestfs_h *g,\n"
12239 "                    const char *device,\n"
12240 "                    const char *parttype);\n"
12241 "\n"
12242 msgstr ""
12243
12244 # type: textblock
12245 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3084
12246 msgid ""
12247 "This creates an empty partition table on C<device> of one of the partition "
12248 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12249 "(for large disks)."
12250 msgstr ""
12251
12252 # type: textblock
12253 #: ../src/guestfs-actions.pod:4617
12254 msgid ""
12255 "Initially there are no partitions.  Following this, you should call "
12256 "C<guestfs_part_add> for each partition required."
12257 msgstr ""
12258
12259 # type: textblock
12260 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3091
12261 msgid "Possible values for C<parttype> are:"
12262 msgstr ""
12263
12264 # type: =item
12265 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3095
12266 msgid "B<efi> | B<gpt>"
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4626 ../fish/guestfish-actions.pod:3097
12271 msgid "Intel EFI / GPT partition table."
12272 msgstr ""
12273
12274 # type: textblock
12275 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3099
12276 msgid ""
12277 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12278 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12279 "the C<mbr> format."
12280 msgstr ""
12281
12282 # type: =item
12283 #: ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3103
12284 msgid "B<mbr> | B<msdos>"
12285 msgstr ""
12286
12287 # type: textblock
12288 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3105
12289 msgid ""
12290 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12291 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12292 "TB.  For large disks we recommend using C<gpt>."
12293 msgstr ""
12294
12295 # type: textblock
12296 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3112
12297 msgid ""
12298 "Other partition table types that may work but are not supported include:"
12299 msgstr ""
12300
12301 # type: =item
12302 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3117
12303 msgid "B<aix>"
12304 msgstr ""
12305
12306 # type: textblock
12307 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3119
12308 msgid "AIX disk labels."
12309 msgstr ""
12310
12311 # type: =item
12312 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3121
12313 msgid "B<amiga> | B<rdb>"
12314 msgstr ""
12315
12316 # type: textblock
12317 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3123
12318 msgid "Amiga \"Rigid Disk Block\" format."
12319 msgstr ""
12320
12321 # type: =item
12322 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3125
12323 msgid "B<bsd>"
12324 msgstr ""
12325
12326 # type: textblock
12327 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3127
12328 msgid "BSD disk labels."
12329 msgstr ""
12330
12331 # type: =item
12332 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3129
12333 msgid "B<dasd>"
12334 msgstr ""
12335
12336 # type: textblock
12337 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3131
12338 msgid "DASD, used on IBM mainframes."
12339 msgstr ""
12340
12341 # type: =item
12342 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3133
12343 msgid "B<dvh>"
12344 msgstr ""
12345
12346 # type: textblock
12347 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3135
12348 msgid "MIPS/SGI volumes."
12349 msgstr ""
12350
12351 # type: =item
12352 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3137
12353 msgid "B<mac>"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3139
12358 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12359 msgstr ""
12360
12361 # type: =item
12362 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3141
12363 msgid "B<pc98>"
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3143
12368 msgid "NEC PC-98 format, common in Japan apparently."
12369 msgstr ""
12370
12371 # type: =item
12372 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3145
12373 msgid "B<sun>"
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3147
12378 msgid "Sun disk labels."
12379 msgstr ""
12380
12381 # type: =head2
12382 #: ../src/guestfs-actions.pod:4684
12383 msgid "guestfs_part_list"
12384 msgstr ""
12385
12386 # type: verbatim
12387 #: ../src/guestfs-actions.pod:4686
12388 #, no-wrap
12389 msgid ""
12390 " struct guestfs_partition_list *\n"
12391 " guestfs_part_list (guestfs_h *g,\n"
12392 "                    const char *device);\n"
12393 "\n"
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3155
12398 msgid ""
12399 "This command parses the partition table on C<device> and returns the list of "
12400 "partitions found."
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3158
12405 msgid "The fields in the returned structure are:"
12406 msgstr ""
12407
12408 # type: =item
12409 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3162
12410 msgid "B<part_num>"
12411 msgstr ""
12412
12413 # type: textblock
12414 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3164
12415 msgid "Partition number, counting from 1."
12416 msgstr ""
12417
12418 # type: =item
12419 #: ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:3166
12420 msgid "B<part_start>"
12421 msgstr ""
12422
12423 # type: textblock
12424 #: ../src/guestfs-actions.pod:4703
12425 msgid ""
12426 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12427 "the device's sector size, see C<guestfs_blockdev_getss>."
12428 msgstr ""
12429
12430 # type: =item
12431 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3171
12432 msgid "B<part_end>"
12433 msgstr ""
12434
12435 # type: textblock
12436 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3173
12437 msgid "End of the partition in bytes."
12438 msgstr ""
12439
12440 # type: =item
12441 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3175
12442 msgid "B<part_size>"
12443 msgstr ""
12444
12445 # type: textblock
12446 #: ../src/guestfs-actions.pod:4712 ../fish/guestfish-actions.pod:3177
12447 msgid "Size of the partition in bytes."
12448 msgstr ""
12449
12450 # type: textblock
12451 #: ../src/guestfs-actions.pod:4716
12452 msgid ""
12453 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12454 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12455 "use>."
12456 msgstr ""
12457
12458 # type: =head2
12459 #: ../src/guestfs-actions.pod:4722
12460 msgid "guestfs_part_set_bootable"
12461 msgstr ""
12462
12463 # type: verbatim
12464 #: ../src/guestfs-actions.pod:4724
12465 #, no-wrap
12466 msgid ""
12467 " int\n"
12468 " guestfs_part_set_bootable (guestfs_h *g,\n"
12469 "                            const char *device,\n"
12470 "                            int partnum,\n"
12471 "                            int bootable);\n"
12472 "\n"
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3185
12477 msgid ""
12478 "This sets the bootable flag on partition numbered C<partnum> on device "
12479 "C<device>.  Note that partitions are numbered from 1."
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3188
12484 msgid ""
12485 "The bootable flag is used by some operating systems (notably Windows) to "
12486 "determine which partition to boot from.  It is by no means universally "
12487 "recognized."
12488 msgstr ""
12489
12490 # type: =head2
12491 #: ../src/guestfs-actions.pod:4741
12492 msgid "guestfs_part_set_mbr_id"
12493 msgstr ""
12494
12495 # type: verbatim
12496 #: ../src/guestfs-actions.pod:4743
12497 #, no-wrap
12498 msgid ""
12499 " int\n"
12500 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12501 "                          const char *device,\n"
12502 "                          int partnum,\n"
12503 "                          int idbyte);\n"
12504 "\n"
12505 msgstr ""
12506
12507 # type: textblock
12508 #: ../src/guestfs-actions.pod:4749 ../fish/guestfish-actions.pod:3196
12509 msgid ""
12510 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12511 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12512 "documentation are in fact hexadecimal numbers, but usually documented "
12513 "without any leading \"0x\" which might be confusing."
12514 msgstr ""
12515
12516 # type: =head2
12517 #: ../src/guestfs-actions.pod:4763
12518 msgid "guestfs_part_set_name"
12519 msgstr ""
12520
12521 # type: verbatim
12522 #: ../src/guestfs-actions.pod:4765
12523 #, no-wrap
12524 msgid ""
12525 " int\n"
12526 " guestfs_part_set_name (guestfs_h *g,\n"
12527 "                        const char *device,\n"
12528 "                        int partnum,\n"
12529 "                        const char *name);\n"
12530 "\n"
12531 msgstr ""
12532
12533 # type: textblock
12534 #: ../src/guestfs-actions.pod:4771 ../fish/guestfish-actions.pod:3210
12535 msgid ""
12536 "This sets the partition name on partition numbered C<partnum> on device "
12537 "C<device>.  Note that partitions are numbered from 1."
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3213
12542 msgid ""
12543 "The partition name can only be set on certain types of partition table.  "
12544 "This works on C<gpt> but not on C<mbr> partitions."
12545 msgstr ""
12546
12547 # type: =head2
12548 #: ../src/guestfs-actions.pod:4781
12549 msgid "guestfs_part_to_dev"
12550 msgstr ""
12551
12552 # type: verbatim
12553 #: ../src/guestfs-actions.pod:4783
12554 #, no-wrap
12555 msgid ""
12556 " char *\n"
12557 " guestfs_part_to_dev (guestfs_h *g,\n"
12558 "                      const char *partition);\n"
12559 "\n"
12560 msgstr ""
12561
12562 # type: textblock
12563 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3220
12564 msgid ""
12565 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12566 "partition number, returning the device name (eg. \"/dev/sdb\")."
12567 msgstr ""
12568
12569 # type: textblock
12570 #: ../src/guestfs-actions.pod:4791
12571 msgid ""
12572 "The named partition must exist, for example as a string returned from "
12573 "C<guestfs_list_partitions>."
12574 msgstr ""
12575
12576 # type: =head2
12577 #: ../src/guestfs-actions.pod:4799
12578 msgid "guestfs_ping_daemon"
12579 msgstr ""
12580
12581 # type: verbatim
12582 #: ../src/guestfs-actions.pod:4801
12583 #, no-wrap
12584 msgid ""
12585 " int\n"
12586 " guestfs_ping_daemon (guestfs_h *g);\n"
12587 "\n"
12588 msgstr ""
12589
12590 # type: textblock
12591 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3231
12592 msgid ""
12593 "This is a test probe into the guestfs daemon running inside the qemu "
12594 "subprocess.  Calling this function checks that the daemon responds to the "
12595 "ping message, without affecting the daemon or attached block device(s) in "
12596 "any other way."
12597 msgstr ""
12598
12599 # type: =head2
12600 #: ../src/guestfs-actions.pod:4813
12601 msgid "guestfs_pread"
12602 msgstr ""
12603
12604 # type: verbatim
12605 #: ../src/guestfs-actions.pod:4815
12606 #, no-wrap
12607 msgid ""
12608 " char *\n"
12609 " guestfs_pread (guestfs_h *g,\n"
12610 "                const char *path,\n"
12611 "                int count,\n"
12612 "                int64_t offset,\n"
12613 "                size_t *size_r);\n"
12614 "\n"
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3240
12619 msgid ""
12620 "This command lets you read part of a file.  It reads C<count> bytes of the "
12621 "file, starting at C<offset>, from file C<path>."
12622 msgstr ""
12623
12624 # type: textblock
12625 #: ../src/guestfs-actions.pod:4825 ../src/guestfs-actions.pod:4851
12626 #: ../fish/guestfish-actions.pod:3243 ../fish/guestfish-actions.pod:3258
12627 msgid ""
12628 "This may read fewer bytes than requested.  For further details see the "
12629 "L<pread(2)> system call."
12630 msgstr ""
12631
12632 # type: textblock
12633 #: ../src/guestfs-actions.pod:4828
12634 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12635 msgstr ""
12636
12637 # type: =head2
12638 #: ../src/guestfs-actions.pod:4839
12639 msgid "guestfs_pread_device"
12640 msgstr ""
12641
12642 # type: verbatim
12643 #: ../src/guestfs-actions.pod:4841
12644 #, no-wrap
12645 msgid ""
12646 " char *\n"
12647 " guestfs_pread_device (guestfs_h *g,\n"
12648 "                       const char *device,\n"
12649 "                       int count,\n"
12650 "                       int64_t offset,\n"
12651 "                       size_t *size_r);\n"
12652 "\n"
12653 msgstr ""
12654
12655 # type: textblock
12656 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3255
12657 msgid ""
12658 "This command lets you read part of a file.  It reads C<count> bytes of "
12659 "C<device>, starting at C<offset>."
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:4854
12664 msgid "See also C<guestfs_pread>."
12665 msgstr ""
12666
12667 # type: textblock
12668 #: ../src/guestfs-actions.pod:4863
12669 msgid "(Added in 1.5.21)"
12670 msgstr ""
12671
12672 # type: =head2
12673 #: ../src/guestfs-actions.pod:4865
12674 msgid "guestfs_pvcreate"
12675 msgstr ""
12676
12677 # type: verbatim
12678 #: ../src/guestfs-actions.pod:4867
12679 #, no-wrap
12680 msgid ""
12681 " int\n"
12682 " guestfs_pvcreate (guestfs_h *g,\n"
12683 "                   const char *device);\n"
12684 "\n"
12685 msgstr ""
12686
12687 # type: textblock
12688 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3270
12689 msgid ""
12690 "This creates an LVM physical volume on the named C<device>, where C<device> "
12691 "should usually be a partition name such as C</dev/sda1>."
12692 msgstr ""
12693
12694 # type: =head2
12695 #: ../src/guestfs-actions.pod:4879
12696 msgid "guestfs_pvremove"
12697 msgstr ""
12698
12699 # type: verbatim
12700 #: ../src/guestfs-actions.pod:4881
12701 #, no-wrap
12702 msgid ""
12703 " int\n"
12704 " guestfs_pvremove (guestfs_h *g,\n"
12705 "                   const char *device);\n"
12706 "\n"
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3278
12711 msgid ""
12712 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12713 "it."
12714 msgstr ""
12715
12716 # type: textblock
12717 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3281
12718 msgid ""
12719 "The implementation uses the C<pvremove> command which refuses to wipe "
12720 "physical volumes that contain any volume groups, so you have to remove those "
12721 "first."
12722 msgstr ""
12723
12724 # type: =head2
12725 #: ../src/guestfs-actions.pod:4896
12726 msgid "guestfs_pvresize"
12727 msgstr ""
12728
12729 # type: verbatim
12730 #: ../src/guestfs-actions.pod:4898
12731 #, no-wrap
12732 msgid ""
12733 " int\n"
12734 " guestfs_pvresize (guestfs_h *g,\n"
12735 "                   const char *device);\n"
12736 "\n"
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3289
12741 msgid ""
12742 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12743 "the new size of the underlying device."
12744 msgstr ""
12745
12746 # type: =head2
12747 #: ../src/guestfs-actions.pod:4909
12748 msgid "guestfs_pvresize_size"
12749 msgstr ""
12750
12751 # type: verbatim
12752 #: ../src/guestfs-actions.pod:4911
12753 #, no-wrap
12754 msgid ""
12755 " int\n"
12756 " guestfs_pvresize_size (guestfs_h *g,\n"
12757 "                        const char *device,\n"
12758 "                        int64_t size);\n"
12759 "\n"
12760 msgstr ""
12761
12762 # type: textblock
12763 #: ../src/guestfs-actions.pod:4916
12764 msgid ""
12765 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12766 "specify the new size (in bytes) explicitly."
12767 msgstr ""
12768
12769 # type: =head2
12770 #: ../src/guestfs-actions.pod:4923
12771 msgid "guestfs_pvs"
12772 msgstr ""
12773
12774 # type: verbatim
12775 #: ../src/guestfs-actions.pod:4925
12776 #, no-wrap
12777 msgid ""
12778 " char **\n"
12779 " guestfs_pvs (guestfs_h *g);\n"
12780 "\n"
12781 msgstr ""
12782
12783 # type: textblock
12784 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3303
12785 msgid ""
12786 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12787 "(8)> command."
12788 msgstr ""
12789
12790 # type: textblock
12791 #: ../src/guestfs-actions.pod:4931 ../fish/guestfish-actions.pod:3306
12792 msgid ""
12793 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12794 "sda2>)."
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:4934
12799 msgid "See also C<guestfs_pvs_full>."
12800 msgstr ""
12801
12802 # type: =head2
12803 #: ../src/guestfs-actions.pod:4942
12804 msgid "guestfs_pvs_full"
12805 msgstr ""
12806
12807 # type: verbatim
12808 #: ../src/guestfs-actions.pod:4944
12809 #, no-wrap
12810 msgid ""
12811 " struct guestfs_lvm_pv_list *\n"
12812 " guestfs_pvs_full (guestfs_h *g);\n"
12813 "\n"
12814 msgstr ""
12815
12816 # type: textblock
12817 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3315
12818 msgid ""
12819 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12820 "(8)> command.  The \"full\" version includes all fields."
12821 msgstr ""
12822
12823 # type: textblock
12824 #: ../src/guestfs-actions.pod:4950
12825 msgid ""
12826 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12827 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12828 msgstr ""
12829
12830 # type: =head2
12831 #: ../src/guestfs-actions.pod:4956
12832 msgid "guestfs_pvuuid"
12833 msgstr ""
12834
12835 # type: verbatim
12836 #: ../src/guestfs-actions.pod:4958
12837 #, no-wrap
12838 msgid ""
12839 " char *\n"
12840 " guestfs_pvuuid (guestfs_h *g,\n"
12841 "                 const char *device);\n"
12842 "\n"
12843 msgstr ""
12844
12845 # type: textblock
12846 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3322
12847 msgid "This command returns the UUID of the LVM PV C<device>."
12848 msgstr ""
12849
12850 # type: =head2
12851 #: ../src/guestfs-actions.pod:4969
12852 msgid "guestfs_pwrite"
12853 msgstr ""
12854
12855 # type: verbatim
12856 #: ../src/guestfs-actions.pod:4971
12857 #, no-wrap
12858 msgid ""
12859 " int\n"
12860 " guestfs_pwrite (guestfs_h *g,\n"
12861 "                 const char *path,\n"
12862 "                 const char *content,\n"
12863 "                 size_t content_size,\n"
12864 "                 int64_t offset);\n"
12865 "\n"
12866 msgstr ""
12867
12868 # type: textblock
12869 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3328
12870 msgid ""
12871 "This command writes to part of a file.  It writes the data buffer C<content> "
12872 "to the file C<path> starting at offset C<offset>."
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3331
12877 msgid ""
12878 "This command implements the L<pwrite(2)> system call, and like that system "
12879 "call it may not write the full data requested.  The return value is the "
12880 "number of bytes that were actually written to the file.  This could even be "
12881 "0, although short writes are unlikely for regular files in ordinary "
12882 "circumstances."
12883 msgstr ""
12884
12885 # type: textblock
12886 #: ../src/guestfs-actions.pod:4987
12887 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12888 msgstr ""
12889
12890 # type: =head2
12891 #: ../src/guestfs-actions.pod:4996
12892 msgid "guestfs_pwrite_device"
12893 msgstr ""
12894
12895 # type: verbatim
12896 #: ../src/guestfs-actions.pod:4998
12897 #, no-wrap
12898 msgid ""
12899 " int\n"
12900 " guestfs_pwrite_device (guestfs_h *g,\n"
12901 "                        const char *device,\n"
12902 "                        const char *content,\n"
12903 "                        size_t content_size,\n"
12904 "                        int64_t offset);\n"
12905 "\n"
12906 msgstr ""
12907
12908 # type: textblock
12909 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3346
12910 msgid ""
12911 "This command writes to part of a device.  It writes the data buffer "
12912 "C<content> to C<device> starting at offset C<offset>."
12913 msgstr ""
12914
12915 # type: textblock
12916 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3349
12917 msgid ""
12918 "This command implements the L<pwrite(2)> system call, and like that system "
12919 "call it may not write the full data requested (although short writes to disk "
12920 "devices and partitions are probably impossible with standard Linux kernels)."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5013
12925 msgid "See also C<guestfs_pwrite>."
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5020
12930 msgid "(Added in 1.5.20)"
12931 msgstr ""
12932
12933 # type: =head2
12934 #: ../src/guestfs-actions.pod:5022
12935 msgid "guestfs_read_file"
12936 msgstr ""
12937
12938 # type: verbatim
12939 #: ../src/guestfs-actions.pod:5024
12940 #, no-wrap
12941 msgid ""
12942 " char *\n"
12943 " guestfs_read_file (guestfs_h *g,\n"
12944 "                    const char *path,\n"
12945 "                    size_t *size_r);\n"
12946 "\n"
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3363
12951 msgid "This calls returns the contents of the file C<path> as a buffer."
12952 msgstr ""
12953
12954 # type: textblock
12955 #: ../src/guestfs-actions.pod:5032
12956 msgid ""
12957 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12958 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12959 "function is limited in the total size of file that can be handled."
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5044
12964 msgid "(Added in 1.0.63)"
12965 msgstr ""
12966
12967 # type: =head2
12968 #: ../src/guestfs-actions.pod:5046
12969 msgid "guestfs_read_lines"
12970 msgstr ""
12971
12972 # type: verbatim
12973 #: ../src/guestfs-actions.pod:5048
12974 #, no-wrap
12975 msgid ""
12976 " char **\n"
12977 " guestfs_read_lines (guestfs_h *g,\n"
12978 "                     const char *path);\n"
12979 "\n"
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3380
12984 msgid ""
12985 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12986 "C<CRLF> character sequences are I<not> returned."
12987 msgstr ""
12988
12989 # type: textblock
12990 #: ../src/guestfs-actions.pod:5057
12991 msgid ""
12992 "Note that this function cannot correctly handle binary files (specifically, "
12993 "files containing C<\\0> character which is treated as end of line).  For "
12994 "those you need to use the C<guestfs_read_file> function which has a more "
12995 "complex interface."
12996 msgstr ""
12997
12998 # type: =head2
12999 #: ../src/guestfs-actions.pod:5068
13000 msgid "guestfs_readdir"
13001 msgstr ""
13002
13003 # type: verbatim
13004 #: ../src/guestfs-actions.pod:5070
13005 #, no-wrap
13006 msgid ""
13007 " struct guestfs_dirent_list *\n"
13008 " guestfs_readdir (guestfs_h *g,\n"
13009 "                  const char *dir);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3392
13015 msgid "This returns the list of directory entries in directory C<dir>."
13016 msgstr ""
13017
13018 # type: textblock
13019 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3394
13020 msgid ""
13021 "All entries in the directory are returned, including C<.> and C<..>.  The "
13022 "entries are I<not> sorted, but returned in the same order as the underlying "
13023 "filesystem."
13024 msgstr ""
13025
13026 # type: textblock
13027 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3398
13028 msgid ""
13029 "Also this call returns basic file type information about each file.  The "
13030 "C<ftyp> field will contain one of the following characters:"
13031 msgstr ""
13032
13033 # type: =item
13034 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3403
13035 msgid "'b'"
13036 msgstr ""
13037
13038 # type: textblock
13039 #: ../src/guestfs-actions.pod:5087 ../fish/guestfish-actions.pod:3405
13040 msgid "Block special"
13041 msgstr ""
13042
13043 # type: =item
13044 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3407
13045 msgid "'c'"
13046 msgstr ""
13047
13048 # type: textblock
13049 #: ../src/guestfs-actions.pod:5091 ../fish/guestfish-actions.pod:3409
13050 msgid "Char special"
13051 msgstr ""
13052
13053 # type: =item
13054 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3411
13055 msgid "'d'"
13056 msgstr ""
13057
13058 # type: textblock
13059 #: ../src/guestfs-actions.pod:5095 ../fish/guestfish-actions.pod:3413
13060 msgid "Directory"
13061 msgstr ""
13062
13063 # type: =item
13064 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3415
13065 msgid "'f'"
13066 msgstr ""
13067
13068 # type: textblock
13069 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3417
13070 msgid "FIFO (named pipe)"
13071 msgstr ""
13072
13073 # type: =item
13074 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3419
13075 msgid "'l'"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3421
13080 msgid "Symbolic link"
13081 msgstr ""
13082
13083 # type: =item
13084 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3423
13085 msgid "'r'"
13086 msgstr ""
13087
13088 # type: textblock
13089 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3425
13090 msgid "Regular file"
13091 msgstr ""
13092
13093 # type: =item
13094 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3427
13095 msgid "'s'"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3429
13100 msgid "Socket"
13101 msgstr ""
13102
13103 # type: =item
13104 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3431
13105 msgid "'u'"
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3433
13110 msgid "Unknown file type"
13111 msgstr ""
13112
13113 # type: =item
13114 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3435
13115 msgid "'?'"
13116 msgstr ""
13117
13118 # type: textblock
13119 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3437
13120 msgid ""
13121 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13122 msgstr ""
13123
13124 # type: textblock
13125 #: ../src/guestfs-actions.pod:5124
13126 msgid ""
13127 "This function is primarily intended for use by programs.  To get a simple "
13128 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13129 "consumption, use C<guestfs_ll>."
13130 msgstr ""
13131
13132 # type: textblock
13133 #: ../src/guestfs-actions.pod:5128
13134 msgid ""
13135 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13136 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13137 msgstr ""
13138
13139 # type: =head2
13140 #: ../src/guestfs-actions.pod:5134
13141 msgid "guestfs_readlink"
13142 msgstr ""
13143
13144 # type: verbatim
13145 #: ../src/guestfs-actions.pod:5136
13146 #, no-wrap
13147 msgid ""
13148 " char *\n"
13149 " guestfs_readlink (guestfs_h *g,\n"
13150 "                   const char *path);\n"
13151 "\n"
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3450
13156 msgid "This command reads the target of a symbolic link."
13157 msgstr ""
13158
13159 # type: =head2
13160 #: ../src/guestfs-actions.pod:5147
13161 msgid "guestfs_readlinklist"
13162 msgstr ""
13163
13164 # type: verbatim
13165 #: ../src/guestfs-actions.pod:5149
13166 #, no-wrap
13167 msgid ""
13168 " char **\n"
13169 " guestfs_readlinklist (guestfs_h *g,\n"
13170 "                       const char *path,\n"
13171 "                       char *const *names);\n"
13172 "\n"
13173 msgstr ""
13174
13175 # type: textblock
13176 #: ../src/guestfs-actions.pod:5154 ../fish/guestfish-actions.pod:3456
13177 msgid ""
13178 "This call allows you to do a C<readlink> operation on multiple files, where "
13179 "all files are in the directory C<path>.  C<names> is the list of files from "
13180 "this directory."
13181 msgstr ""
13182
13183 # type: textblock
13184 #: ../src/guestfs-actions.pod:5158 ../fish/guestfish-actions.pod:3460
13185 msgid ""
13186 "On return you get a list of strings, with a one-to-one correspondence to the "
13187 "C<names> list.  Each string is the value of the symbolic link."
13188 msgstr ""
13189
13190 # type: textblock
13191 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3464
13192 msgid ""
13193 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13194 "result string is the empty string C<\"\">.  However the whole operation is "
13195 "completed even if there were C<readlink(2)> errors, and so you can call this "
13196 "function with names where you don't know if they are symbolic links already "
13197 "(albeit slightly less efficient)."
13198 msgstr ""
13199
13200 # type: textblock
13201 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3471
13202 msgid ""
13203 "This call is intended for programs that want to efficiently list a directory "
13204 "contents without making many round-trips.  Very long directory listings "
13205 "might cause the protocol message size to be exceeded, causing this call to "
13206 "fail.  The caller must split up such requests into smaller groups of names."
13207 msgstr ""
13208
13209 # type: =head2
13210 #: ../src/guestfs-actions.pod:5182
13211 msgid "guestfs_realpath"
13212 msgstr ""
13213
13214 # type: verbatim
13215 #: ../src/guestfs-actions.pod:5184
13216 #, no-wrap
13217 msgid ""
13218 " char *\n"
13219 " guestfs_realpath (guestfs_h *g,\n"
13220 "                   const char *path);\n"
13221 "\n"
13222 msgstr ""
13223
13224 # type: textblock
13225 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3482
13226 msgid ""
13227 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13228 "has no C<.>, C<..> or symbolic link path elements."
13229 msgstr ""
13230
13231 # type: =head2
13232 #: ../src/guestfs-actions.pod:5196
13233 msgid "guestfs_removexattr"
13234 msgstr ""
13235
13236 # type: verbatim
13237 #: ../src/guestfs-actions.pod:5198
13238 #, no-wrap
13239 msgid ""
13240 " int\n"
13241 " guestfs_removexattr (guestfs_h *g,\n"
13242 "                      const char *xattr,\n"
13243 "                      const char *path);\n"
13244 "\n"
13245 msgstr ""
13246
13247 # type: textblock
13248 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3489
13249 msgid ""
13250 "This call removes the extended attribute named C<xattr> of the file C<path>."
13251 msgstr ""
13252
13253 # type: textblock
13254 #: ../src/guestfs-actions.pod:5206
13255 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13256 msgstr ""
13257
13258 # type: =head2
13259 #: ../src/guestfs-actions.pod:5212
13260 msgid "guestfs_resize2fs"
13261 msgstr ""
13262
13263 # type: verbatim
13264 #: ../src/guestfs-actions.pod:5214
13265 #, no-wrap
13266 msgid ""
13267 " int\n"
13268 " guestfs_resize2fs (guestfs_h *g,\n"
13269 "                    const char *device);\n"
13270 "\n"
13271 msgstr ""
13272
13273 # type: textblock
13274 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:3498
13275 msgid ""
13276 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13277 "underlying device."
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5221
13282 msgid ""
13283 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13284 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13285 "sometimes gives an error about this and sometimes not.  In any case, it is "
13286 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13287 msgstr ""
13288
13289 # type: =head2
13290 #: ../src/guestfs-actions.pod:5231
13291 msgid "guestfs_resize2fs_size"
13292 msgstr ""
13293
13294 # type: verbatim
13295 #: ../src/guestfs-actions.pod:5233
13296 #, no-wrap
13297 msgid ""
13298 " int\n"
13299 " guestfs_resize2fs_size (guestfs_h *g,\n"
13300 "                         const char *device,\n"
13301 "                         int64_t size);\n"
13302 "\n"
13303 msgstr ""
13304
13305 # type: textblock
13306 #: ../src/guestfs-actions.pod:5238
13307 msgid ""
13308 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13309 "to specify the new size (in bytes) explicitly."
13310 msgstr ""
13311
13312 # type: =head2
13313 #: ../src/guestfs-actions.pod:5245
13314 msgid "guestfs_rm"
13315 msgstr ""
13316
13317 # type: verbatim
13318 #: ../src/guestfs-actions.pod:5247
13319 #, no-wrap
13320 msgid ""
13321 " int\n"
13322 " guestfs_rm (guestfs_h *g,\n"
13323 "             const char *path);\n"
13324 "\n"
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3518
13329 msgid "Remove the single file C<path>."
13330 msgstr ""
13331
13332 # type: =head2
13333 #: ../src/guestfs-actions.pod:5257
13334 msgid "guestfs_rm_rf"
13335 msgstr ""
13336
13337 # type: verbatim
13338 #: ../src/guestfs-actions.pod:5259
13339 #, no-wrap
13340 msgid ""
13341 " int\n"
13342 " guestfs_rm_rf (guestfs_h *g,\n"
13343 "                const char *path);\n"
13344 "\n"
13345 msgstr ""
13346
13347 # type: textblock
13348 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3524
13349 msgid ""
13350 "Remove the file or directory C<path>, recursively removing the contents if "
13351 "its a directory.  This is like the C<rm -rf> shell command."
13352 msgstr ""
13353
13354 # type: =head2
13355 #: ../src/guestfs-actions.pod:5271
13356 msgid "guestfs_rmdir"
13357 msgstr ""
13358
13359 # type: verbatim
13360 #: ../src/guestfs-actions.pod:5273
13361 #, no-wrap
13362 msgid ""
13363 " int\n"
13364 " guestfs_rmdir (guestfs_h *g,\n"
13365 "                const char *path);\n"
13366 "\n"
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3532
13371 msgid "Remove the single directory C<path>."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5283
13376 msgid "guestfs_rmmountpoint"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5285
13381 #, no-wrap
13382 msgid ""
13383 " int\n"
13384 " guestfs_rmmountpoint (guestfs_h *g,\n"
13385 "                       const char *exemptpath);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5289
13391 msgid ""
13392 "This calls removes a mountpoint that was previously created with "
13393 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5297
13398 msgid "guestfs_scrub_device"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5299
13403 #, no-wrap
13404 msgid ""
13405 " int\n"
13406 " guestfs_scrub_device (guestfs_h *g,\n"
13407 "                       const char *device);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3546
13413 msgid ""
13414 "This command writes patterns over C<device> to make data retrieval more "
13415 "difficult."
13416 msgstr ""
13417
13418 # type: textblock
13419 #: ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5327
13420 #: ../src/guestfs-actions.pod:5346 ../fish/guestfish-actions.pod:3549
13421 #: ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3577
13422 msgid ""
13423 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13424 "more details."
13425 msgstr ""
13426
13427 # type: textblock
13428 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5332
13429 #: ../src/guestfs-actions.pod:5351
13430 msgid "(Added in 1.0.52)"
13431 msgstr ""
13432
13433 # type: =head2
13434 #: ../src/guestfs-actions.pod:5316
13435 msgid "guestfs_scrub_file"
13436 msgstr ""
13437
13438 # type: verbatim
13439 #: ../src/guestfs-actions.pod:5318
13440 #, no-wrap
13441 msgid ""
13442 " int\n"
13443 " guestfs_scrub_file (guestfs_h *g,\n"
13444 "                     const char *file);\n"
13445 "\n"
13446 msgstr ""
13447
13448 # type: textblock
13449 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3559
13450 msgid ""
13451 "This command writes patterns over a file to make data retrieval more "
13452 "difficult."
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3562
13457 msgid "The file is I<removed> after scrubbing."
13458 msgstr ""
13459
13460 # type: =head2
13461 #: ../src/guestfs-actions.pod:5334
13462 msgid "guestfs_scrub_freespace"
13463 msgstr ""
13464
13465 # type: verbatim
13466 #: ../src/guestfs-actions.pod:5336
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_scrub_freespace (guestfs_h *g,\n"
13471 "                          const char *dir);\n"
13472 "\n"
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5340
13477 msgid ""
13478 "This command creates the directory C<dir> and then fills it with files until "
13479 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13480 "and deletes them.  The intention is to scrub any free space on the partition "
13481 "containing C<dir>."
13482 msgstr ""
13483
13484 # type: =head2
13485 #: ../src/guestfs-actions.pod:5353
13486 msgid "guestfs_set_append"
13487 msgstr ""
13488
13489 # type: verbatim
13490 #: ../src/guestfs-actions.pod:5355
13491 #, no-wrap
13492 msgid ""
13493 " int\n"
13494 " guestfs_set_append (guestfs_h *g,\n"
13495 "                     const char *append);\n"
13496 "\n"
13497 msgstr ""
13498
13499 # type: textblock
13500 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3586
13501 msgid ""
13502 "This function is used to add additional options to the guest kernel command "
13503 "line."
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5362 ../fish/guestfish-actions.pod:3589
13508 msgid ""
13509 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13510 "environment variable."
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3592
13515 msgid ""
13516 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13517 "(libguestfs always adds a few of its own)."
13518 msgstr ""
13519
13520 # type: =head2
13521 #: ../src/guestfs-actions.pod:5372
13522 msgid "guestfs_set_autosync"
13523 msgstr ""
13524
13525 # type: verbatim
13526 #: ../src/guestfs-actions.pod:5374
13527 #, no-wrap
13528 msgid ""
13529 " int\n"
13530 " guestfs_set_autosync (guestfs_h *g,\n"
13531 "                       int autosync);\n"
13532 "\n"
13533 msgstr ""
13534
13535 # type: textblock
13536 #: ../src/guestfs-actions.pod:5378
13537 msgid ""
13538 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13539 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13540 "the handle is closed (also if the program exits without closing handles)."
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3606
13545 msgid ""
13546 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13547 "disabled by default)."
13548 msgstr ""
13549
13550 # type: =head2
13551 #: ../src/guestfs-actions.pod:5390
13552 msgid "guestfs_set_direct"
13553 msgstr ""
13554
13555 # type: verbatim
13556 #: ../src/guestfs-actions.pod:5392
13557 #, no-wrap
13558 msgid ""
13559 " int\n"
13560 " guestfs_set_direct (guestfs_h *g,\n"
13561 "                     int direct);\n"
13562 "\n"
13563 msgstr ""
13564
13565 # type: textblock
13566 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3615
13567 msgid ""
13568 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13569 "passed directly through to the appliance once it is launched."
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-actions.pod:5400
13574 msgid ""
13575 "One consequence of this is that log messages aren't caught by the library "
13576 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13577 "stdout."
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3623
13582 msgid "You probably don't want to use this unless you know what you are doing."
13583 msgstr ""
13584
13585 # type: textblock
13586 #: ../src/guestfs-actions.pod:5407 ../fish/guestfish-actions.pod:3626
13587 msgid "The default is disabled."
13588 msgstr ""
13589
13590 # type: =head2
13591 #: ../src/guestfs-actions.pod:5413
13592 msgid "guestfs_set_e2label"
13593 msgstr ""
13594
13595 # type: verbatim
13596 #: ../src/guestfs-actions.pod:5415
13597 #, no-wrap
13598 msgid ""
13599 " int\n"
13600 " guestfs_set_e2label (guestfs_h *g,\n"
13601 "                      const char *device,\n"
13602 "                      const char *label);\n"
13603 "\n"
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3632
13608 msgid ""
13609 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13610 "C<label>.  Filesystem labels are limited to 16 characters."
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5424
13615 msgid ""
13616 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13617 "the existing label on a filesystem."
13618 msgstr ""
13619
13620 # type: =head2
13621 #: ../src/guestfs-actions.pod:5431
13622 msgid "guestfs_set_e2uuid"
13623 msgstr ""
13624
13625 # type: verbatim
13626 #: ../src/guestfs-actions.pod:5433
13627 #, no-wrap
13628 msgid ""
13629 " int\n"
13630 " guestfs_set_e2uuid (guestfs_h *g,\n"
13631 "                     const char *device,\n"
13632 "                     const char *uuid);\n"
13633 "\n"
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3643
13638 msgid ""
13639 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13640 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13641 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5443
13646 msgid ""
13647 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13648 "the existing UUID of a filesystem."
13649 msgstr ""
13650
13651 # type: =head2
13652 #: ../src/guestfs-actions.pod:5450
13653 msgid "guestfs_set_memsize"
13654 msgstr ""
13655
13656 # type: verbatim
13657 #: ../src/guestfs-actions.pod:5452
13658 #, no-wrap
13659 msgid ""
13660 " int\n"
13661 " guestfs_set_memsize (guestfs_h *g,\n"
13662 "                      int memsize);\n"
13663 "\n"
13664 msgstr ""
13665
13666 # type: textblock
13667 #: ../src/guestfs-actions.pod:5456
13668 msgid ""
13669 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13670 "This only has any effect if called before C<guestfs_launch>."
13671 msgstr ""
13672
13673 # type: textblock
13674 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3661
13675 msgid ""
13676 "You can also change this by setting the environment variable "
13677 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13678 msgstr ""
13679
13680 # type: =head2
13681 #: ../src/guestfs-actions.pod:5471
13682 msgid "guestfs_set_network"
13683 msgstr ""
13684
13685 # type: verbatim
13686 #: ../src/guestfs-actions.pod:5473
13687 #, no-wrap
13688 msgid ""
13689 " int\n"
13690 " guestfs_set_network (guestfs_h *g,\n"
13691 "                      int network);\n"
13692 "\n"
13693 msgstr ""
13694
13695 # type: textblock
13696 #: ../src/guestfs-actions.pod:5477 ../fish/guestfish-actions.pod:3674
13697 msgid ""
13698 "If C<network> is true, then the network is enabled in the libguestfs "
13699 "appliance.  The default is false."
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3677
13704 msgid ""
13705 "This affects whether commands are able to access the network (see L<guestfs"
13706 "(3)/RUNNING COMMANDS>)."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5483
13711 msgid ""
13712 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13713 "effect."
13714 msgstr ""
13715
13716 # type: =head2
13717 #: ../src/guestfs-actions.pod:5490
13718 msgid "guestfs_set_path"
13719 msgstr ""
13720
13721 # type: verbatim
13722 #: ../src/guestfs-actions.pod:5492
13723 #, no-wrap
13724 msgid ""
13725 " int\n"
13726 " guestfs_set_path (guestfs_h *g,\n"
13727 "                   const char *searchpath);\n"
13728 "\n"
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:3689
13733 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13734 msgstr ""
13735
13736 # type: textblock
13737 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:3691
13738 msgid ""
13739 "The default is C<$libdir/guestfs> unless overridden by setting "
13740 "C<LIBGUESTFS_PATH> environment variable."
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
13745 msgid "Setting C<path> to C<NULL> restores the default path."
13746 msgstr ""
13747
13748 # type: =head2
13749 #: ../src/guestfs-actions.pod:5507
13750 msgid "guestfs_set_qemu"
13751 msgstr ""
13752
13753 # type: verbatim
13754 #: ../src/guestfs-actions.pod:5509
13755 #, no-wrap
13756 msgid ""
13757 " int\n"
13758 " guestfs_set_qemu (guestfs_h *g,\n"
13759 "                   const char *qemu);\n"
13760 "\n"
13761 msgstr ""
13762
13763 # type: textblock
13764 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3702
13765 msgid "Set the qemu binary that we will use."
13766 msgstr ""
13767
13768 # type: textblock
13769 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3704
13770 msgid ""
13771 "The default is chosen when the library was compiled by the configure script."
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3707
13776 msgid ""
13777 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13778 "variable."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3710
13783 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13784 msgstr ""
13785
13786 # type: textblock
13787 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3712
13788 msgid ""
13789 "Note that you should call this function as early as possible after creating "
13790 "the handle.  This is because some pre-launch operations depend on testing "
13791 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13792 "don't retest features, and so you might see inconsistent results.  Using the "
13793 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13794 "the qemu binary at the same time as the handle is created."
13795 msgstr ""
13796
13797 # type: =head2
13798 #: ../src/guestfs-actions.pod:5535
13799 msgid "guestfs_set_recovery_proc"
13800 msgstr ""
13801
13802 # type: verbatim
13803 #: ../src/guestfs-actions.pod:5537
13804 #, no-wrap
13805 msgid ""
13806 " int\n"
13807 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13808 "                            int recoveryproc);\n"
13809 "\n"
13810 msgstr ""
13811
13812 # type: textblock
13813 #: ../src/guestfs-actions.pod:5541
13814 msgid ""
13815 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13816 "not create a recovery process.  The purpose of the recovery process is to "
13817 "stop runaway qemu processes in the case where the main program aborts "
13818 "abruptly."
13819 msgstr ""
13820
13821 # type: textblock
13822 #: ../src/guestfs-actions.pod:5546
13823 msgid ""
13824 "This only has any effect if called before C<guestfs_launch>, and the default "
13825 "is true."
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5549 ../fish/guestfish-actions.pod:3734
13830 msgid ""
13831 "About the only time when you would want to disable this is if the main "
13832 "process will fork itself into the background (\"daemonize\" itself).  In "
13833 "this case the recovery process thinks that the main program has disappeared "
13834 "and so kills qemu, which is not very helpful."
13835 msgstr ""
13836
13837 # type: =head2
13838 #: ../src/guestfs-actions.pod:5559
13839 msgid "guestfs_set_selinux"
13840 msgstr ""
13841
13842 # type: verbatim
13843 #: ../src/guestfs-actions.pod:5561
13844 #, no-wrap
13845 msgid ""
13846 " int\n"
13847 " guestfs_set_selinux (guestfs_h *g,\n"
13848 "                      int selinux);\n"
13849 "\n"
13850 msgstr ""
13851
13852 # type: textblock
13853 #: ../src/guestfs-actions.pod:5565 ../fish/guestfish-actions.pod:3746
13854 msgid ""
13855 "This sets the selinux flag that is passed to the appliance at boot time.  "
13856 "The default is C<selinux=0> (disabled)."
13857 msgstr ""
13858
13859 # type: textblock
13860 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3749
13861 msgid ""
13862 "Note that if SELinux is enabled, it is always in Permissive mode "
13863 "(C<enforcing=0>)."
13864 msgstr ""
13865
13866 # type: =head2
13867 #: ../src/guestfs-actions.pod:5578
13868 msgid "guestfs_set_trace"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #: ../src/guestfs-actions.pod:5580
13873 #, no-wrap
13874 msgid ""
13875 " int\n"
13876 " guestfs_set_trace (guestfs_h *g,\n"
13877 "                    int trace);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:5584 ../fish/guestfish-actions.pod:3761
13883 msgid ""
13884 "If the command trace flag is set to 1, then commands are printed on stderr "
13885 "before they are executed in a format which is very similar to the one used "
13886 "by guestfish.  In other words, you can run a program with this enabled, and "
13887 "you will get out a script which you can feed to guestfish to perform the "
13888 "same set of actions."
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:3768
13893 msgid ""
13894 "If you want to trace C API calls into libguestfs (and other libraries) then "
13895 "possibly a better way is to use the external ltrace(1) command."
13896 msgstr ""
13897
13898 # type: textblock
13899 #: ../src/guestfs-actions.pod:5595 ../fish/guestfish-actions.pod:3772
13900 msgid ""
13901 "Command traces are disabled unless the environment variable "
13902 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13903 msgstr ""
13904
13905 # type: =head2
13906 #: ../src/guestfs-actions.pod:5602
13907 msgid "guestfs_set_verbose"
13908 msgstr ""
13909
13910 # type: verbatim
13911 #: ../src/guestfs-actions.pod:5604
13912 #, no-wrap
13913 msgid ""
13914 " int\n"
13915 " guestfs_set_verbose (guestfs_h *g,\n"
13916 "                      int verbose);\n"
13917 "\n"
13918 msgstr ""
13919
13920 # type: textblock
13921 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3781
13922 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:3783
13927 msgid ""
13928 "Verbose messages are disabled unless the environment variable "
13929 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13930 msgstr ""
13931
13932 # type: =head2
13933 #: ../src/guestfs-actions.pod:5617
13934 msgid "guestfs_setcon"
13935 msgstr ""
13936
13937 # type: verbatim
13938 #: ../src/guestfs-actions.pod:5619
13939 #, no-wrap
13940 msgid ""
13941 " int\n"
13942 " guestfs_setcon (guestfs_h *g,\n"
13943 "                 const char *context);\n"
13944 "\n"
13945 msgstr ""
13946
13947 # type: textblock
13948 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3790
13949 msgid ""
13950 "This sets the SELinux security context of the daemon to the string "
13951 "C<context>."
13952 msgstr ""
13953
13954 # type: textblock
13955 #: ../src/guestfs-actions.pod:5626 ../fish/guestfish-actions.pod:3793
13956 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13957 msgstr ""
13958
13959 # type: =head2
13960 #: ../src/guestfs-actions.pod:5632
13961 msgid "guestfs_setxattr"
13962 msgstr ""
13963
13964 # type: verbatim
13965 #: ../src/guestfs-actions.pod:5634
13966 #, no-wrap
13967 msgid ""
13968 " int\n"
13969 " guestfs_setxattr (guestfs_h *g,\n"
13970 "                   const char *xattr,\n"
13971 "                   const char *val,\n"
13972 "                   int vallen,\n"
13973 "                   const char *path);\n"
13974 "\n"
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5641 ../fish/guestfish-actions.pod:3799
13979 msgid ""
13980 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13981 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:5645
13986 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13987 msgstr ""
13988
13989 # type: =head2
13990 #: ../src/guestfs-actions.pod:5651
13991 msgid "guestfs_sfdisk"
13992 msgstr ""
13993
13994 # type: verbatim
13995 #: ../src/guestfs-actions.pod:5653
13996 #, no-wrap
13997 msgid ""
13998 " int\n"
13999 " guestfs_sfdisk (guestfs_h *g,\n"
14000 "                 const char *device,\n"
14001 "                 int cyls,\n"
14002 "                 int heads,\n"
14003 "                 int sectors,\n"
14004 "                 char *const *lines);\n"
14005 "\n"
14006 msgstr ""
14007
14008 # type: textblock
14009 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:3809
14010 msgid ""
14011 "This is a direct interface to the L<sfdisk(8)> program for creating "
14012 "partitions on block devices."
14013 msgstr ""
14014
14015 # type: textblock
14016 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3812
14017 msgid "C<device> should be a block device, for example C</dev/sda>."
14018 msgstr ""
14019
14020 # type: textblock
14021 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3814
14022 msgid ""
14023 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14024 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14025 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14026 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14027 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14028 "the kernel) cannot work out the right geometry and you will need to tell it."
14029 msgstr ""
14030
14031 # type: textblock
14032 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3822
14033 msgid ""
14034 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14035 "refer to the L<sfdisk(8)> manpage."
14036 msgstr ""
14037
14038 # type: textblock
14039 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3825
14040 msgid ""
14041 "To create a single partition occupying the whole disk, you would pass "
14042 "C<lines> as a single element list, when the single element being the string "
14043 "C<,> (comma)."
14044 msgstr ""
14045
14046 # type: textblock
14047 #: ../src/guestfs-actions.pod:5681
14048 msgid ""
14049 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14050 msgstr ""
14051
14052 # type: =head2
14053 #: ../src/guestfs-actions.pod:5691
14054 msgid "guestfs_sfdiskM"
14055 msgstr ""
14056
14057 # type: verbatim
14058 #: ../src/guestfs-actions.pod:5693
14059 #, no-wrap
14060 msgid ""
14061 " int\n"
14062 " guestfs_sfdiskM (guestfs_h *g,\n"
14063 "                  const char *device,\n"
14064 "                  char *const *lines);\n"
14065 "\n"
14066 msgstr ""
14067
14068 # type: textblock
14069 #: ../src/guestfs-actions.pod:5698
14070 msgid ""
14071 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14072 "partition sizes are specified in megabytes only (rounded to the nearest "
14073 "cylinder) and you don't need to specify the cyls, heads and sectors "
14074 "parameters which were rarely if ever used anyway."
14075 msgstr ""
14076
14077 # type: textblock
14078 #: ../src/guestfs-actions.pod:5704
14079 msgid ""
14080 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14081 "C<guestfs_part_disk>"
14082 msgstr ""
14083
14084 # type: =head2
14085 #: ../src/guestfs-actions.pod:5714
14086 msgid "guestfs_sfdisk_N"
14087 msgstr ""
14088
14089 # type: verbatim
14090 #: ../src/guestfs-actions.pod:5716
14091 #, no-wrap
14092 msgid ""
14093 " int\n"
14094 " guestfs_sfdisk_N (guestfs_h *g,\n"
14095 "                   const char *device,\n"
14096 "                   int partnum,\n"
14097 "                   int cyls,\n"
14098 "                   int heads,\n"
14099 "                   int sectors,\n"
14100 "                   const char *line);\n"
14101 "\n"
14102 msgstr ""
14103
14104 # type: textblock
14105 #: ../src/guestfs-actions.pod:5725 ../fish/guestfish-actions.pod:3855
14106 msgid ""
14107 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14108 "(note: C<n> counts from 1)."
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5728
14113 msgid ""
14114 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14115 "for the cyls/heads/sectors parameters."
14116 msgstr ""
14117
14118 # type: textblock
14119 #: ../src/guestfs-actions.pod:5731
14120 msgid "See also: C<guestfs_part_add>"
14121 msgstr ""
14122
14123 # type: =head2
14124 #: ../src/guestfs-actions.pod:5740
14125 msgid "guestfs_sfdisk_disk_geometry"
14126 msgstr ""
14127
14128 # type: verbatim
14129 #: ../src/guestfs-actions.pod:5742
14130 #, no-wrap
14131 msgid ""
14132 " char *\n"
14133 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14134 "                               const char *device);\n"
14135 "\n"
14136 msgstr ""
14137
14138 # type: textblock
14139 #: ../src/guestfs-actions.pod:5746
14140 msgid ""
14141 "This displays the disk geometry of C<device> read from the partition table.  "
14142 "Especially in the case where the underlying block device has been resized, "
14143 "this can be different from the kernel's idea of the geometry (see "
14144 "C<guestfs_sfdisk_kernel_geometry>)."
14145 msgstr ""
14146
14147 # type: textblock
14148 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5767
14149 #: ../fish/guestfish-actions.pod:3875 ../fish/guestfish-actions.pod:3884
14150 msgid "The result is in human-readable format, and not designed to be parsed."
14151 msgstr ""
14152
14153 # type: =head2
14154 #: ../src/guestfs-actions.pod:5759
14155 msgid "guestfs_sfdisk_kernel_geometry"
14156 msgstr ""
14157
14158 # type: verbatim
14159 #: ../src/guestfs-actions.pod:5761
14160 #, no-wrap
14161 msgid ""
14162 " char *\n"
14163 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14164 "                                 const char *device);\n"
14165 "\n"
14166 msgstr ""
14167
14168 # type: textblock
14169 #: ../src/guestfs-actions.pod:5765 ../fish/guestfish-actions.pod:3882
14170 msgid "This displays the kernel's idea of the geometry of C<device>."
14171 msgstr ""
14172
14173 # type: =head2
14174 #: ../src/guestfs-actions.pod:5775
14175 msgid "guestfs_sfdisk_l"
14176 msgstr ""
14177
14178 # type: verbatim
14179 #: ../src/guestfs-actions.pod:5777
14180 #, no-wrap
14181 msgid ""
14182 " char *\n"
14183 " guestfs_sfdisk_l (guestfs_h *g,\n"
14184 "                   const char *device);\n"
14185 "\n"
14186 msgstr ""
14187
14188 # type: textblock
14189 #: ../src/guestfs-actions.pod:5781 ../fish/guestfish-actions.pod:3891
14190 msgid ""
14191 "This displays the partition table on C<device>, in the human-readable output "
14192 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-actions.pod:5785
14197 msgid "See also: C<guestfs_part_list>"
14198 msgstr ""
14199
14200 # type: =head2
14201 #: ../src/guestfs-actions.pod:5792
14202 msgid "guestfs_sh"
14203 msgstr ""
14204
14205 # type: verbatim
14206 #: ../src/guestfs-actions.pod:5794
14207 #, no-wrap
14208 msgid ""
14209 " char *\n"
14210 " guestfs_sh (guestfs_h *g,\n"
14211 "             const char *command);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #: ../src/guestfs-actions.pod:5798 ../fish/guestfish-actions.pod:3901
14217 msgid ""
14218 "This call runs a command from the guest filesystem via the guest's C</bin/"
14219 "sh>."
14220 msgstr ""
14221
14222 # type: textblock
14223 #: ../src/guestfs-actions.pod:5801
14224 msgid "This is like C<guestfs_command>, but passes the command to:"
14225 msgstr ""
14226
14227 # type: verbatim
14228 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3906
14229 #, no-wrap
14230 msgid ""
14231 " /bin/sh -c \"command\"\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:5805 ../fish/guestfish-actions.pod:3908
14237 msgid ""
14238 "Depending on the guest's shell, this usually results in wildcards being "
14239 "expanded, shell expressions being interpolated and so on."
14240 msgstr ""
14241
14242 # type: textblock
14243 #: ../src/guestfs-actions.pod:5809
14244 msgid "All the provisos about C<guestfs_command> apply to this call."
14245 msgstr ""
14246
14247 # type: =head2
14248 #: ../src/guestfs-actions.pod:5816
14249 msgid "guestfs_sh_lines"
14250 msgstr ""
14251
14252 # type: verbatim
14253 #: ../src/guestfs-actions.pod:5818
14254 #, no-wrap
14255 msgid ""
14256 " char **\n"
14257 " guestfs_sh_lines (guestfs_h *g,\n"
14258 "                   const char *command);\n"
14259 "\n"
14260 msgstr ""
14261
14262 # type: textblock
14263 #: ../src/guestfs-actions.pod:5822
14264 msgid ""
14265 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14266 "lines."
14267 msgstr ""
14268
14269 # type: textblock
14270 #: ../src/guestfs-actions.pod:5825
14271 msgid "See also: C<guestfs_command_lines>"
14272 msgstr ""
14273
14274 # type: =head2
14275 #: ../src/guestfs-actions.pod:5833
14276 msgid "guestfs_sleep"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-actions.pod:5835
14281 #, no-wrap
14282 msgid ""
14283 " int\n"
14284 " guestfs_sleep (guestfs_h *g,\n"
14285 "                int secs);\n"
14286 "\n"
14287 msgstr ""
14288
14289 # type: textblock
14290 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3927
14291 msgid "Sleep for C<secs> seconds."
14292 msgstr ""
14293
14294 # type: textblock
14295 #: ../src/guestfs-actions.pod:5843
14296 msgid "(Added in 1.0.41)"
14297 msgstr ""
14298
14299 # type: =head2
14300 #: ../src/guestfs-actions.pod:5845 ../src/guestfs-structs.pod:109
14301 msgid "guestfs_stat"
14302 msgstr ""
14303
14304 # type: verbatim
14305 #: ../src/guestfs-actions.pod:5847
14306 #, no-wrap
14307 msgid ""
14308 " struct guestfs_stat *\n"
14309 " guestfs_stat (guestfs_h *g,\n"
14310 "               const char *path);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #: ../src/guestfs-actions.pod:5853 ../fish/guestfish-actions.pod:3935
14316 msgid "This is the same as the C<stat(2)> system call."
14317 msgstr ""
14318
14319 # type: =head2
14320 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-structs.pod:135
14321 msgid "guestfs_statvfs"
14322 msgstr ""
14323
14324 # type: verbatim
14325 #: ../src/guestfs-actions.pod:5863
14326 #, no-wrap
14327 msgid ""
14328 " struct guestfs_statvfs *\n"
14329 " guestfs_statvfs (guestfs_h *g,\n"
14330 "                  const char *path);\n"
14331 "\n"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3941
14336 msgid ""
14337 "Returns file system statistics for any mounted file system.  C<path> should "
14338 "be a file or directory in the mounted file system (typically it is the mount "
14339 "point itself, but it doesn't need to be)."
14340 msgstr ""
14341
14342 # type: textblock
14343 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3945
14344 msgid "This is the same as the C<statvfs(2)> system call."
14345 msgstr ""
14346
14347 # type: textblock
14348 #: ../src/guestfs-actions.pod:5873
14349 msgid ""
14350 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14351 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14352 msgstr ""
14353
14354 # type: =head2
14355 #: ../src/guestfs-actions.pod:5879
14356 msgid "guestfs_strings"
14357 msgstr ""
14358
14359 # type: verbatim
14360 #: ../src/guestfs-actions.pod:5881
14361 #, no-wrap
14362 msgid ""
14363 " char **\n"
14364 " guestfs_strings (guestfs_h *g,\n"
14365 "                  const char *path);\n"
14366 "\n"
14367 msgstr ""
14368
14369 # type: textblock
14370 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3951
14371 msgid ""
14372 "This runs the L<strings(1)> command on a file and returns the list of "
14373 "printable strings found."
14374 msgstr ""
14375
14376 # type: =head2
14377 #: ../src/guestfs-actions.pod:5897
14378 msgid "guestfs_strings_e"
14379 msgstr ""
14380
14381 # type: verbatim
14382 #: ../src/guestfs-actions.pod:5899
14383 #, no-wrap
14384 msgid ""
14385 " char **\n"
14386 " guestfs_strings_e (guestfs_h *g,\n"
14387 "                    const char *encoding,\n"
14388 "                    const char *path);\n"
14389 "\n"
14390 msgstr ""
14391
14392 # type: textblock
14393 #: ../src/guestfs-actions.pod:5904
14394 msgid ""
14395 "This is like the C<guestfs_strings> command, but allows you to specify the "
14396 "encoding of strings that are looked for in the source file C<path>."
14397 msgstr ""
14398
14399 # type: textblock
14400 #: ../src/guestfs-actions.pod:5908 ../fish/guestfish-actions.pod:3965
14401 msgid "Allowed encodings are:"
14402 msgstr ""
14403
14404 # type: =item
14405 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3969
14406 msgid "s"
14407 msgstr ""
14408
14409 # type: textblock
14410 #: ../src/guestfs-actions.pod:5914
14411 msgid ""
14412 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14413 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14414 msgstr ""
14415
14416 # type: =item
14417 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3974
14418 msgid "S"
14419 msgstr ""
14420
14421 # type: textblock
14422 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3976
14423 msgid "Single 8-bit-byte characters."
14424 msgstr ""
14425
14426 # type: =item
14427 #: ../src/guestfs-actions.pod:5921 ../fish/guestfish-actions.pod:3978
14428 msgid "b"
14429 msgstr ""
14430
14431 # type: textblock
14432 #: ../src/guestfs-actions.pod:5923 ../fish/guestfish-actions.pod:3980
14433 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14434 msgstr ""
14435
14436 # type: =item
14437 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3983
14438 msgid "l (lower case letter L)"
14439 msgstr ""
14440
14441 # type: textblock
14442 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3985
14443 msgid ""
14444 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14445 "examining binaries in Windows guests."
14446 msgstr ""
14447
14448 # type: =item
14449 #: ../src/guestfs-actions.pod:5931 ../fish/guestfish-actions.pod:3988
14450 msgid "B"
14451 msgstr ""
14452
14453 # type: textblock
14454 #: ../src/guestfs-actions.pod:5933 ../fish/guestfish-actions.pod:3990
14455 msgid "32-bit big endian such as UCS-4BE."
14456 msgstr ""
14457
14458 # type: =item
14459 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3992
14460 msgid "L"
14461 msgstr ""
14462
14463 # type: textblock
14464 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3994
14465 msgid "32-bit little endian such as UCS-4LE."
14466 msgstr ""
14467
14468 # type: textblock
14469 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3998
14470 msgid "The returned strings are transcoded to UTF-8."
14471 msgstr ""
14472
14473 # type: =head2
14474 #: ../src/guestfs-actions.pod:5952
14475 msgid "guestfs_swapoff_device"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../src/guestfs-actions.pod:5954
14480 #, no-wrap
14481 msgid ""
14482 " int\n"
14483 " guestfs_swapoff_device (guestfs_h *g,\n"
14484 "                         const char *device);\n"
14485 "\n"
14486 msgstr ""
14487
14488 # type: textblock
14489 #: ../src/guestfs-actions.pod:5958
14490 msgid ""
14491 "This command disables the libguestfs appliance swap device or partition "
14492 "named C<device>.  See C<guestfs_swapon_device>."
14493 msgstr ""
14494
14495 # type: =head2
14496 #: ../src/guestfs-actions.pod:5966
14497 msgid "guestfs_swapoff_file"
14498 msgstr ""
14499
14500 # type: verbatim
14501 #: ../src/guestfs-actions.pod:5968
14502 #, no-wrap
14503 msgid ""
14504 " int\n"
14505 " guestfs_swapoff_file (guestfs_h *g,\n"
14506 "                       const char *file);\n"
14507 "\n"
14508 msgstr ""
14509
14510 # type: textblock
14511 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4015
14512 msgid "This command disables the libguestfs appliance swap on file."
14513 msgstr ""
14514
14515 # type: =head2
14516 #: ../src/guestfs-actions.pod:5978
14517 msgid "guestfs_swapoff_label"
14518 msgstr ""
14519
14520 # type: verbatim
14521 #: ../src/guestfs-actions.pod:5980
14522 #, no-wrap
14523 msgid ""
14524 " int\n"
14525 " guestfs_swapoff_label (guestfs_h *g,\n"
14526 "                        const char *label);\n"
14527 "\n"
14528 msgstr ""
14529
14530 # type: textblock
14531 #: ../src/guestfs-actions.pod:5984 ../fish/guestfish-actions.pod:4021
14532 msgid ""
14533 "This command disables the libguestfs appliance swap on labeled swap "
14534 "partition."
14535 msgstr ""
14536
14537 # type: =head2
14538 #: ../src/guestfs-actions.pod:5991
14539 msgid "guestfs_swapoff_uuid"
14540 msgstr ""
14541
14542 # type: verbatim
14543 #: ../src/guestfs-actions.pod:5993
14544 #, no-wrap
14545 msgid ""
14546 " int\n"
14547 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14548 "                       const char *uuid);\n"
14549 "\n"
14550 msgstr ""
14551
14552 # type: textblock
14553 #: ../src/guestfs-actions.pod:5997 ../fish/guestfish-actions.pod:4028
14554 msgid ""
14555 "This command disables the libguestfs appliance swap partition with the given "
14556 "UUID."
14557 msgstr ""
14558
14559 # type: =head2
14560 #: ../src/guestfs-actions.pod:6004
14561 msgid "guestfs_swapon_device"
14562 msgstr ""
14563
14564 # type: verbatim
14565 #: ../src/guestfs-actions.pod:6006
14566 #, no-wrap
14567 msgid ""
14568 " int\n"
14569 " guestfs_swapon_device (guestfs_h *g,\n"
14570 "                        const char *device);\n"
14571 "\n"
14572 msgstr ""
14573
14574 # type: textblock
14575 #: ../src/guestfs-actions.pod:6010
14576 msgid ""
14577 "This command enables the libguestfs appliance to use the swap device or "
14578 "partition named C<device>.  The increased memory is made available for all "
14579 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14580 msgstr ""
14581
14582 # type: textblock
14583 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4040
14584 msgid ""
14585 "Note that you should not swap to existing guest swap partitions unless you "
14586 "know what you are doing.  They may contain hibernation information, or other "
14587 "information that the guest doesn't want you to trash.  You also risk leaking "
14588 "information about the host to the guest this way.  Instead, attach a new "
14589 "host device to the guest and swap on that."
14590 msgstr ""
14591
14592 # type: =head2
14593 #: ../src/guestfs-actions.pod:6026
14594 msgid "guestfs_swapon_file"
14595 msgstr ""
14596
14597 # type: verbatim
14598 #: ../src/guestfs-actions.pod:6028
14599 #, no-wrap
14600 msgid ""
14601 " int\n"
14602 " guestfs_swapon_file (guestfs_h *g,\n"
14603 "                      const char *file);\n"
14604 "\n"
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../src/guestfs-actions.pod:6032
14609 msgid ""
14610 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14611 "notes."
14612 msgstr ""
14613
14614 # type: =head2
14615 #: ../src/guestfs-actions.pod:6039
14616 msgid "guestfs_swapon_label"
14617 msgstr ""
14618
14619 # type: verbatim
14620 #: ../src/guestfs-actions.pod:6041
14621 #, no-wrap
14622 msgid ""
14623 " int\n"
14624 " guestfs_swapon_label (guestfs_h *g,\n"
14625 "                       const char *label);\n"
14626 "\n"
14627 msgstr ""
14628
14629 # type: textblock
14630 #: ../src/guestfs-actions.pod:6045
14631 msgid ""
14632 "This command enables swap to a labeled swap partition.  See "
14633 "C<guestfs_swapon_device> for other notes."
14634 msgstr ""
14635
14636 # type: =head2
14637 #: ../src/guestfs-actions.pod:6052
14638 msgid "guestfs_swapon_uuid"
14639 msgstr ""
14640
14641 # type: verbatim
14642 #: ../src/guestfs-actions.pod:6054
14643 #, no-wrap
14644 msgid ""
14645 " int\n"
14646 " guestfs_swapon_uuid (guestfs_h *g,\n"
14647 "                      const char *uuid);\n"
14648 "\n"
14649 msgstr ""
14650
14651 # type: textblock
14652 #: ../src/guestfs-actions.pod:6058
14653 msgid ""
14654 "This command enables swap to a swap partition with the given UUID.  See "
14655 "C<guestfs_swapon_device> for other notes."
14656 msgstr ""
14657
14658 # type: =head2
14659 #: ../src/guestfs-actions.pod:6065
14660 msgid "guestfs_sync"
14661 msgstr ""
14662
14663 # type: verbatim
14664 #: ../src/guestfs-actions.pod:6067
14665 #, no-wrap
14666 msgid ""
14667 " int\n"
14668 " guestfs_sync (guestfs_h *g);\n"
14669 "\n"
14670 msgstr ""
14671
14672 # type: textblock
14673 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4072
14674 msgid ""
14675 "This syncs the disk, so that any writes are flushed through to the "
14676 "underlying disk image."
14677 msgstr ""
14678
14679 # type: textblock
14680 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4075
14681 msgid ""
14682 "You should always call this if you have modified a disk image, before "
14683 "closing the handle."
14684 msgstr ""
14685
14686 # type: =head2
14687 #: ../src/guestfs-actions.pod:6080
14688 msgid "guestfs_tail"
14689 msgstr ""
14690
14691 # type: verbatim
14692 #: ../src/guestfs-actions.pod:6082
14693 #, no-wrap
14694 msgid ""
14695 " char **\n"
14696 " guestfs_tail (guestfs_h *g,\n"
14697 "               const char *path);\n"
14698 "\n"
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4082
14703 msgid ""
14704 "This command returns up to the last 10 lines of a file as a list of strings."
14705 msgstr ""
14706
14707 # type: =head2
14708 #: ../src/guestfs-actions.pod:6098
14709 msgid "guestfs_tail_n"
14710 msgstr ""
14711
14712 # type: verbatim
14713 #: ../src/guestfs-actions.pod:6100
14714 #, no-wrap
14715 msgid ""
14716 " char **\n"
14717 " guestfs_tail_n (guestfs_h *g,\n"
14718 "                 int nrlines,\n"
14719 "                 const char *path);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4092
14725 msgid ""
14726 "If the parameter C<nrlines> is a positive number, this returns the last "
14727 "C<nrlines> lines of the file C<path>."
14728 msgstr ""
14729
14730 # type: textblock
14731 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4095
14732 msgid ""
14733 "If the parameter C<nrlines> is a negative number, this returns lines from "
14734 "the file C<path>, starting with the C<-nrlines>th line."
14735 msgstr ""
14736
14737 # type: =head2
14738 #: ../src/guestfs-actions.pod:6122
14739 msgid "guestfs_tar_in"
14740 msgstr ""
14741
14742 # type: verbatim
14743 #: ../src/guestfs-actions.pod:6124
14744 #, no-wrap
14745 msgid ""
14746 " int\n"
14747 " guestfs_tar_in (guestfs_h *g,\n"
14748 "                 const char *tarfile,\n"
14749 "                 const char *directory);\n"
14750 "\n"
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4107
14755 msgid ""
14756 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14757 "tar file) into C<directory>."
14758 msgstr ""
14759
14760 # type: textblock
14761 #: ../src/guestfs-actions.pod:6132
14762 msgid ""
14763 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14764 msgstr ""
14765
14766 # type: textblock
14767 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6154
14768 #: ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6186
14769 msgid "(Added in 1.0.3)"
14770 msgstr ""
14771
14772 # type: =head2
14773 #: ../src/guestfs-actions.pod:6139
14774 msgid "guestfs_tar_out"
14775 msgstr ""
14776
14777 # type: verbatim
14778 #: ../src/guestfs-actions.pod:6141
14779 #, no-wrap
14780 msgid ""
14781 " int\n"
14782 " guestfs_tar_out (guestfs_h *g,\n"
14783 "                  const char *directory,\n"
14784 "                  const char *tarfile);\n"
14785 "\n"
14786 msgstr ""
14787
14788 # type: textblock
14789 #: ../src/guestfs-actions.pod:6146 ../fish/guestfish-actions.pod:4119
14790 msgid ""
14791 "This command packs the contents of C<directory> and downloads it to local "
14792 "file C<tarfile>."
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6149
14797 msgid ""
14798 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14799 "C<guestfs_txz_out>."
14800 msgstr ""
14801
14802 # type: =head2
14803 #: ../src/guestfs-actions.pod:6156
14804 msgid "guestfs_tgz_in"
14805 msgstr ""
14806
14807 # type: verbatim
14808 #: ../src/guestfs-actions.pod:6158
14809 #, no-wrap
14810 msgid ""
14811 " int\n"
14812 " guestfs_tgz_in (guestfs_h *g,\n"
14813 "                 const char *tarball,\n"
14814 "                 const char *directory);\n"
14815 "\n"
14816 msgstr ""
14817
14818 # type: textblock
14819 #: ../src/guestfs-actions.pod:6163 ../fish/guestfish-actions.pod:4131
14820 msgid ""
14821 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14822 "tar file) into C<directory>."
14823 msgstr ""
14824
14825 # type: textblock
14826 #: ../src/guestfs-actions.pod:6166
14827 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14828 msgstr ""
14829
14830 # type: =head2
14831 #: ../src/guestfs-actions.pod:6172
14832 msgid "guestfs_tgz_out"
14833 msgstr ""
14834
14835 # type: verbatim
14836 #: ../src/guestfs-actions.pod:6174
14837 #, no-wrap
14838 msgid ""
14839 " int\n"
14840 " guestfs_tgz_out (guestfs_h *g,\n"
14841 "                  const char *directory,\n"
14842 "                  const char *tarball);\n"
14843 "\n"
14844 msgstr ""
14845
14846 # type: textblock
14847 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4142
14848 msgid ""
14849 "This command packs the contents of C<directory> and downloads it to local "
14850 "file C<tarball>."
14851 msgstr ""
14852
14853 # type: textblock
14854 #: ../src/guestfs-actions.pod:6182
14855 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14856 msgstr ""
14857
14858 # type: =head2
14859 #: ../src/guestfs-actions.pod:6188
14860 msgid "guestfs_touch"
14861 msgstr ""
14862
14863 # type: verbatim
14864 #: ../src/guestfs-actions.pod:6190
14865 #, no-wrap
14866 msgid ""
14867 " int\n"
14868 " guestfs_touch (guestfs_h *g,\n"
14869 "                const char *path);\n"
14870 "\n"
14871 msgstr ""
14872
14873 # type: textblock
14874 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4153
14875 msgid ""
14876 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14877 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14878 "length file."
14879 msgstr ""
14880
14881 # type: textblock
14882 #: ../src/guestfs-actions.pod:6198 ../fish/guestfish-actions.pod:4157
14883 msgid ""
14884 "This command only works on regular files, and will fail on other file types "
14885 "such as directories, symbolic links, block special etc."
14886 msgstr ""
14887
14888 # type: =head2
14889 #: ../src/guestfs-actions.pod:6205
14890 msgid "guestfs_truncate"
14891 msgstr ""
14892
14893 # type: verbatim
14894 #: ../src/guestfs-actions.pod:6207
14895 #, no-wrap
14896 msgid ""
14897 " int\n"
14898 " guestfs_truncate (guestfs_h *g,\n"
14899 "                   const char *path);\n"
14900 "\n"
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4164
14905 msgid ""
14906 "This command truncates C<path> to a zero-length file.  The file must exist "
14907 "already."
14908 msgstr ""
14909
14910 # type: =head2
14911 #: ../src/guestfs-actions.pod:6218
14912 msgid "guestfs_truncate_size"
14913 msgstr ""
14914
14915 # type: verbatim
14916 #: ../src/guestfs-actions.pod:6220
14917 #, no-wrap
14918 msgid ""
14919 " int\n"
14920 " guestfs_truncate_size (guestfs_h *g,\n"
14921 "                        const char *path,\n"
14922 "                        int64_t size);\n"
14923 "\n"
14924 msgstr ""
14925
14926 # type: textblock
14927 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4171
14928 msgid ""
14929 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14930 "already."
14931 msgstr ""
14932
14933 # type: textblock
14934 #: ../src/guestfs-actions.pod:6228
14935 msgid ""
14936 "If the current file size is less than C<size> then the file is extended to "
14937 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14938 "blocks are not allocated for the file until you write to it).  To create a "
14939 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14940 msgstr ""
14941
14942 # type: =head2
14943 #: ../src/guestfs-actions.pod:6238
14944 msgid "guestfs_tune2fs_l"
14945 msgstr ""
14946
14947 # type: verbatim
14948 #: ../src/guestfs-actions.pod:6240
14949 #, no-wrap
14950 msgid ""
14951 " char **\n"
14952 " guestfs_tune2fs_l (guestfs_h *g,\n"
14953 "                    const char *device);\n"
14954 "\n"
14955 msgstr ""
14956
14957 # type: textblock
14958 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4184
14959 msgid ""
14960 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14961 "C<device>."
14962 msgstr ""
14963
14964 # type: textblock
14965 #: ../src/guestfs-actions.pod:6247 ../fish/guestfish-actions.pod:4187
14966 msgid ""
14967 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14968 "for more details.  The list of fields returned isn't clearly defined, and "
14969 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14970 "and the filesystem itself."
14971 msgstr ""
14972
14973 # type: =head2
14974 #: ../src/guestfs-actions.pod:6260
14975 msgid "guestfs_txz_in"
14976 msgstr ""
14977
14978 # type: verbatim
14979 #: ../src/guestfs-actions.pod:6262
14980 #, no-wrap
14981 msgid ""
14982 " int\n"
14983 " guestfs_txz_in (guestfs_h *g,\n"
14984 "                 const char *tarball,\n"
14985 "                 const char *directory);\n"
14986 "\n"
14987 msgstr ""
14988
14989 # type: textblock
14990 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4196
14991 msgid ""
14992 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14993 "tar file) into C<directory>."
14994 msgstr ""
14995
14996 # type: =head2
14997 #: ../src/guestfs-actions.pod:6274
14998 msgid "guestfs_txz_out"
14999 msgstr ""
15000
15001 # type: verbatim
15002 #: ../src/guestfs-actions.pod:6276
15003 #, no-wrap
15004 msgid ""
15005 " int\n"
15006 " guestfs_txz_out (guestfs_h *g,\n"
15007 "                  const char *directory,\n"
15008 "                  const char *tarball);\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: textblock
15013 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4205
15014 msgid ""
15015 "This command packs the contents of C<directory> and downloads it to local "
15016 "file C<tarball> (as an xz compressed tar archive)."
15017 msgstr ""
15018
15019 # type: =head2
15020 #: ../src/guestfs-actions.pod:6288
15021 msgid "guestfs_umask"
15022 msgstr ""
15023
15024 # type: verbatim
15025 #: ../src/guestfs-actions.pod:6290
15026 #, no-wrap
15027 msgid ""
15028 " int\n"
15029 " guestfs_umask (guestfs_h *g,\n"
15030 "                int mask);\n"
15031 "\n"
15032 msgstr ""
15033
15034 # type: textblock
15035 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4214
15036 msgid ""
15037 "This function sets the mask used for creating new files and device nodes to "
15038 "C<mask & 0777>."
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-actions.pod:6297 ../fish/guestfish-actions.pod:4217
15043 msgid ""
15044 "Typical umask values would be C<022> which creates new files with "
15045 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15046 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15047 msgstr ""
15048
15049 # type: textblock
15050 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4222
15051 msgid ""
15052 "The default umask is C<022>.  This is important because it means that "
15053 "directories and device nodes will be created with C<0644> or C<0755> mode "
15054 "even if you specify C<0777>."
15055 msgstr ""
15056
15057 # type: textblock
15058 #: ../src/guestfs-actions.pod:6306
15059 msgid ""
15060 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15061 "C<guestfs_mkdir>."
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4229
15066 msgid "This call returns the previous umask."
15067 msgstr ""
15068
15069 # type: =head2
15070 #: ../src/guestfs-actions.pod:6315
15071 msgid "guestfs_umount"
15072 msgstr ""
15073
15074 # type: verbatim
15075 #: ../src/guestfs-actions.pod:6317
15076 #, no-wrap
15077 msgid ""
15078 " int\n"
15079 " guestfs_umount (guestfs_h *g,\n"
15080 "                 const char *pathordevice);\n"
15081 "\n"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4237
15086 msgid ""
15087 "This unmounts the given filesystem.  The filesystem may be specified either "
15088 "by its mountpoint (path) or the device which contains the filesystem."
15089 msgstr ""
15090
15091 # type: =head2
15092 #: ../src/guestfs-actions.pod:6329
15093 msgid "guestfs_umount_all"
15094 msgstr ""
15095
15096 # type: verbatim
15097 #: ../src/guestfs-actions.pod:6331
15098 #, no-wrap
15099 msgid ""
15100 " int\n"
15101 " guestfs_umount_all (guestfs_h *g);\n"
15102 "\n"
15103 msgstr ""
15104
15105 # type: textblock
15106 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4247
15107 msgid "This unmounts all mounted filesystems."
15108 msgstr ""
15109
15110 # type: textblock
15111 #: ../src/guestfs-actions.pod:6336 ../fish/guestfish-actions.pod:4249
15112 msgid "Some internal mounts are not unmounted by this call."
15113 msgstr ""
15114
15115 # type: =head2
15116 #: ../src/guestfs-actions.pod:6342
15117 msgid "guestfs_upload"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../src/guestfs-actions.pod:6344
15122 #, no-wrap
15123 msgid ""
15124 " int\n"
15125 " guestfs_upload (guestfs_h *g,\n"
15126 "                 const char *filename,\n"
15127 "                 const char *remotefilename);\n"
15128 "\n"
15129 msgstr ""
15130
15131 # type: textblock
15132 #: ../src/guestfs-actions.pod:6349 ../src/guestfs-actions.pod:6368
15133 #: ../fish/guestfish-actions.pod:4255 ../fish/guestfish-actions.pod:4268
15134 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15135 msgstr ""
15136
15137 # type: textblock
15138 #: ../src/guestfs-actions.pod:6354
15139 msgid "See also C<guestfs_download>."
15140 msgstr ""
15141
15142 # type: =head2
15143 #: ../src/guestfs-actions.pod:6360
15144 msgid "guestfs_upload_offset"
15145 msgstr ""
15146
15147 # type: verbatim
15148 #: ../src/guestfs-actions.pod:6362
15149 #, no-wrap
15150 msgid ""
15151 " int\n"
15152 " guestfs_upload_offset (guestfs_h *g,\n"
15153 "                        const char *filename,\n"
15154 "                        const char *remotefilename,\n"
15155 "                        int64_t offset);\n"
15156 "\n"
15157 msgstr ""
15158
15159 # type: textblock
15160 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4271
15161 msgid ""
15162 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15163 "The intention is to overwrite parts of existing files or devices, although "
15164 "if a non-existant file is specified then it is created with a \"hole\" "
15165 "before C<offset>.  The size of the data written is implicit in the size of "
15166 "the source C<filename>."
15167 msgstr ""
15168
15169 # type: textblock
15170 #: ../src/guestfs-actions.pod:6378
15171 msgid ""
15172 "Note that there is no limit on the amount of data that can be uploaded with "
15173 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15174 "full amount unless an error occurs."
15175 msgstr ""
15176
15177 # type: textblock
15178 #: ../src/guestfs-actions.pod:6383
15179 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15180 msgstr ""
15181
15182 # type: =head2
15183 #: ../src/guestfs-actions.pod:6389
15184 msgid "guestfs_utimens"
15185 msgstr ""
15186
15187 # type: verbatim
15188 #: ../src/guestfs-actions.pod:6391
15189 #, no-wrap
15190 msgid ""
15191 " int\n"
15192 " guestfs_utimens (guestfs_h *g,\n"
15193 "                  const char *path,\n"
15194 "                  int64_t atsecs,\n"
15195 "                  int64_t atnsecs,\n"
15196 "                  int64_t mtsecs,\n"
15197 "                  int64_t mtnsecs);\n"
15198 "\n"
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../src/guestfs-actions.pod:6399 ../fish/guestfish-actions.pod:4291
15203 msgid "This command sets the timestamps of a file with nanosecond precision."
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4294
15208 msgid ""
15209 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15210 "from the epoch."
15211 msgstr ""
15212
15213 # type: textblock
15214 #: ../src/guestfs-actions.pod:6405 ../fish/guestfish-actions.pod:4297
15215 msgid ""
15216 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15217 "nanoseconds from the epoch."
15218 msgstr ""
15219
15220 # type: textblock
15221 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4300
15222 msgid ""
15223 "If the C<*nsecs> field contains the special value C<-1> then the "
15224 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15225 "ignored in this case)."
15226 msgstr ""
15227
15228 # type: textblock
15229 #: ../src/guestfs-actions.pod:6412 ../fish/guestfish-actions.pod:4304
15230 msgid ""
15231 "If the C<*nsecs> field contains the special value C<-2> then the "
15232 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15233 "in this case)."
15234 msgstr ""
15235
15236 # type: =head2
15237 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-structs.pod:175
15238 msgid "guestfs_version"
15239 msgstr ""
15240
15241 # type: verbatim
15242 #: ../src/guestfs-actions.pod:6422
15243 #, no-wrap
15244 msgid ""
15245 " struct guestfs_version *\n"
15246 " guestfs_version (guestfs_h *g);\n"
15247 "\n"
15248 msgstr ""
15249
15250 # type: textblock
15251 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4312
15252 msgid ""
15253 "Return the libguestfs version number that the program is linked against."
15254 msgstr ""
15255
15256 # type: textblock
15257 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4315
15258 msgid ""
15259 "Note that because of dynamic linking this is not necessarily the version of "
15260 "libguestfs that you compiled against.  You can compile the program, and then "
15261 "at runtime dynamically link against a completely different C<libguestfs.so> "
15262 "library."
15263 msgstr ""
15264
15265 # type: textblock
15266 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4320
15267 msgid ""
15268 "This call was added in version C<1.0.58>.  In previous versions of "
15269 "libguestfs there was no way to get the version number.  From C code you can "
15270 "use dynamic linker functions to find out if this symbol exists (if it "
15271 "doesn't, then it's an earlier version)."
15272 msgstr ""
15273
15274 # type: textblock
15275 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4326
15276 msgid ""
15277 "The call returns a structure with four elements.  The first three (C<major>, "
15278 "C<minor> and C<release>) are numbers and correspond to the usual version "
15279 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15280 "but may be used for distro-specific information."
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../src/guestfs-actions.pod:6445 ../fish/guestfish-actions.pod:4332
15285 msgid ""
15286 "To construct the original version string: C<$major.$minor.$release$extra>"
15287 msgstr ""
15288
15289 # type: textblock
15290 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4335
15291 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../src/guestfs-actions.pod:6450
15296 msgid ""
15297 "I<Note:> Don't use this call to test for availability of features.  In "
15298 "enterprise distributions we backport features from later versions into "
15299 "earlier versions, making this an unreliable way to test for features.  Use "
15300 "C<guestfs_available> instead."
15301 msgstr ""
15302
15303 # type: textblock
15304 #: ../src/guestfs-actions.pod:6456
15305 msgid ""
15306 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15307 "error.  I<The caller must call C<guestfs_free_version> after use>."
15308 msgstr ""
15309
15310 # type: textblock
15311 #: ../src/guestfs-actions.pod:6460
15312 msgid "(Added in 1.0.58)"
15313 msgstr ""
15314
15315 # type: =head2
15316 #: ../src/guestfs-actions.pod:6462
15317 msgid "guestfs_vfs_label"
15318 msgstr ""
15319
15320 # type: verbatim
15321 #: ../src/guestfs-actions.pod:6464
15322 #, no-wrap
15323 msgid ""
15324 " char *\n"
15325 " guestfs_vfs_label (guestfs_h *g,\n"
15326 "                    const char *device);\n"
15327 "\n"
15328 msgstr ""
15329
15330 # type: textblock
15331 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4347
15332 msgid "This returns the filesystem label of the filesystem on C<device>."
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4350
15337 msgid "If the filesystem is unlabeled, this returns the empty string."
15338 msgstr ""
15339
15340 # type: textblock
15341 #: ../src/guestfs-actions.pod:6473
15342 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15343 msgstr ""
15344
15345 # type: textblock
15346 #: ../src/guestfs-actions.pod:6478 ../src/guestfs-actions.pod:6515
15347 msgid "(Added in 1.3.18)"
15348 msgstr ""
15349
15350 # type: =head2
15351 #: ../src/guestfs-actions.pod:6480
15352 msgid "guestfs_vfs_type"
15353 msgstr ""
15354
15355 # type: verbatim
15356 #: ../src/guestfs-actions.pod:6482
15357 #, no-wrap
15358 msgid ""
15359 " char *\n"
15360 " guestfs_vfs_type (guestfs_h *g,\n"
15361 "                   const char *device);\n"
15362 "\n"
15363 msgstr ""
15364
15365 # type: textblock
15366 #: ../src/guestfs-actions.pod:6486 ../fish/guestfish-actions.pod:4358
15367 msgid ""
15368 "This command gets the filesystem type corresponding to the filesystem on "
15369 "C<device>."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6489 ../fish/guestfish-actions.pod:4361
15374 msgid ""
15375 "For most filesystems, the result is the name of the Linux VFS module which "
15376 "would be used to mount this filesystem if you mounted it without specifying "
15377 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-actions.pod:6499
15382 msgid "guestfs_vfs_uuid"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-actions.pod:6501
15387 #, no-wrap
15388 msgid ""
15389 " char *\n"
15390 " guestfs_vfs_uuid (guestfs_h *g,\n"
15391 "                   const char *device);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../src/guestfs-actions.pod:6505 ../fish/guestfish-actions.pod:4370
15397 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15398 msgstr ""
15399
15400 # type: textblock
15401 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4373
15402 msgid "If the filesystem does not have a UUID, this returns the empty string."
15403 msgstr ""
15404
15405 # type: textblock
15406 #: ../src/guestfs-actions.pod:6510
15407 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15408 msgstr ""
15409
15410 # type: =head2
15411 #: ../src/guestfs-actions.pod:6517
15412 msgid "guestfs_vg_activate"
15413 msgstr ""
15414
15415 # type: verbatim
15416 #: ../src/guestfs-actions.pod:6519
15417 #, no-wrap
15418 msgid ""
15419 " int\n"
15420 " guestfs_vg_activate (guestfs_h *g,\n"
15421 "                      int activate,\n"
15422 "                      char *const *volgroups);\n"
15423 "\n"
15424 msgstr ""
15425
15426 # type: textblock
15427 #: ../src/guestfs-actions.pod:6524 ../fish/guestfish-actions.pod:4381
15428 msgid ""
15429 "This command activates or (if C<activate> is false) deactivates all logical "
15430 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15431 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15432 "deactivated, then those devices disappear."
15433 msgstr ""
15434
15435 # type: textblock
15436 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4387
15437 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15438 msgstr ""
15439
15440 # type: textblock
15441 #: ../src/guestfs-actions.pod:6532 ../fish/guestfish-actions.pod:4389
15442 msgid ""
15443 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15444 "activated or deactivated."
15445 msgstr ""
15446
15447 # type: =head2
15448 #: ../src/guestfs-actions.pod:6539
15449 msgid "guestfs_vg_activate_all"
15450 msgstr ""
15451
15452 # type: verbatim
15453 #: ../src/guestfs-actions.pod:6541
15454 #, no-wrap
15455 msgid ""
15456 " int\n"
15457 " guestfs_vg_activate_all (guestfs_h *g,\n"
15458 "                          int activate);\n"
15459 "\n"
15460 msgstr ""
15461
15462 # type: textblock
15463 #: ../src/guestfs-actions.pod:6545 ../fish/guestfish-actions.pod:4396
15464 msgid ""
15465 "This command activates or (if C<activate> is false) deactivates all logical "
15466 "volumes in all volume groups.  If activated, then they are made known to the "
15467 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15468 "those devices disappear."
15469 msgstr ""
15470
15471 # type: textblock
15472 #: ../src/guestfs-actions.pod:6551 ../fish/guestfish-actions.pod:4402
15473 msgid "This command is the same as running C<vgchange -a y|n>"
15474 msgstr ""
15475
15476 # type: =head2
15477 #: ../src/guestfs-actions.pod:6557
15478 msgid "guestfs_vgcreate"
15479 msgstr ""
15480
15481 # type: verbatim
15482 #: ../src/guestfs-actions.pod:6559
15483 #, no-wrap
15484 msgid ""
15485 " int\n"
15486 " guestfs_vgcreate (guestfs_h *g,\n"
15487 "                   const char *volgroup,\n"
15488 "                   char *const *physvols);\n"
15489 "\n"
15490 msgstr ""
15491
15492 # type: textblock
15493 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4408
15494 msgid ""
15495 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15496 "of physical volumes C<physvols>."
15497 msgstr ""
15498
15499 # type: =head2
15500 #: ../src/guestfs-actions.pod:6571
15501 msgid "guestfs_vglvuuids"
15502 msgstr ""
15503
15504 # type: verbatim
15505 #: ../src/guestfs-actions.pod:6573
15506 #, no-wrap
15507 msgid ""
15508 " char **\n"
15509 " guestfs_vglvuuids (guestfs_h *g,\n"
15510 "                    const char *vgname);\n"
15511 "\n"
15512 msgstr ""
15513
15514 # type: textblock
15515 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4415
15516 msgid ""
15517 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15518 "volumes created in this volume group."
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6580
15523 msgid ""
15524 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15525 "associate logical volumes and volume groups."
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-actions.pod:6583
15530 msgid "See also C<guestfs_vgpvuuids>."
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-actions.pod:6591
15535 msgid "guestfs_vgpvuuids"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-actions.pod:6593
15540 #, no-wrap
15541 msgid ""
15542 " char **\n"
15543 " guestfs_vgpvuuids (guestfs_h *g,\n"
15544 "                    const char *vgname);\n"
15545 "\n"
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4427
15550 msgid ""
15551 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15552 "volumes that this volume group resides on."
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6600
15557 msgid ""
15558 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15559 "associate physical volumes and volume groups."
15560 msgstr ""
15561
15562 # type: textblock
15563 #: ../src/guestfs-actions.pod:6603
15564 msgid "See also C<guestfs_vglvuuids>."
15565 msgstr ""
15566
15567 # type: =head2
15568 #: ../src/guestfs-actions.pod:6611
15569 msgid "guestfs_vgremove"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-actions.pod:6613
15574 #, no-wrap
15575 msgid ""
15576 " int\n"
15577 " guestfs_vgremove (guestfs_h *g,\n"
15578 "                   const char *vgname);\n"
15579 "\n"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4439
15584 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15585 msgstr ""
15586
15587 # type: textblock
15588 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4441
15589 msgid ""
15590 "This also forcibly removes all logical volumes in the volume group (if any)."
15591 msgstr ""
15592
15593 # type: =head2
15594 #: ../src/guestfs-actions.pod:6626
15595 msgid "guestfs_vgrename"
15596 msgstr ""
15597
15598 # type: verbatim
15599 #: ../src/guestfs-actions.pod:6628
15600 #, no-wrap
15601 msgid ""
15602 " int\n"
15603 " guestfs_vgrename (guestfs_h *g,\n"
15604 "                   const char *volgroup,\n"
15605 "                   const char *newvolgroup);\n"
15606 "\n"
15607 msgstr ""
15608
15609 # type: textblock
15610 #: ../src/guestfs-actions.pod:6633 ../fish/guestfish-actions.pod:4448
15611 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15612 msgstr ""
15613
15614 # type: =head2
15615 #: ../src/guestfs-actions.pod:6639
15616 msgid "guestfs_vgs"
15617 msgstr ""
15618
15619 # type: verbatim
15620 #: ../src/guestfs-actions.pod:6641
15621 #, no-wrap
15622 msgid ""
15623 " char **\n"
15624 " guestfs_vgs (guestfs_h *g);\n"
15625 "\n"
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4454
15630 msgid ""
15631 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15632 "> command."
15633 msgstr ""
15634
15635 # type: textblock
15636 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4457
15637 msgid ""
15638 "This returns a list of just the volume group names that were detected (eg. "
15639 "C<VolGroup00>)."
15640 msgstr ""
15641
15642 # type: textblock
15643 #: ../src/guestfs-actions.pod:6650
15644 msgid "See also C<guestfs_vgs_full>."
15645 msgstr ""
15646
15647 # type: =head2
15648 #: ../src/guestfs-actions.pod:6658
15649 msgid "guestfs_vgs_full"
15650 msgstr ""
15651
15652 # type: verbatim
15653 #: ../src/guestfs-actions.pod:6660
15654 #, no-wrap
15655 msgid ""
15656 " struct guestfs_lvm_vg_list *\n"
15657 " guestfs_vgs_full (guestfs_h *g);\n"
15658 "\n"
15659 msgstr ""
15660
15661 # type: textblock
15662 #: ../src/guestfs-actions.pod:6663 ../fish/guestfish-actions.pod:4466
15663 msgid ""
15664 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15665 "> command.  The \"full\" version includes all fields."
15666 msgstr ""
15667
15668 # type: textblock
15669 #: ../src/guestfs-actions.pod:6666
15670 msgid ""
15671 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15672 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15673 msgstr ""
15674
15675 # type: =head2
15676 #: ../src/guestfs-actions.pod:6672
15677 msgid "guestfs_vgscan"
15678 msgstr ""
15679
15680 # type: verbatim
15681 #: ../src/guestfs-actions.pod:6674
15682 #, no-wrap
15683 msgid ""
15684 " int\n"
15685 " guestfs_vgscan (guestfs_h *g);\n"
15686 "\n"
15687 msgstr ""
15688
15689 # type: textblock
15690 #: ../src/guestfs-actions.pod:6677 ../fish/guestfish-actions.pod:4473
15691 msgid ""
15692 "This rescans all block devices and rebuilds the list of LVM physical "
15693 "volumes, volume groups and logical volumes."
15694 msgstr ""
15695
15696 # type: =head2
15697 #: ../src/guestfs-actions.pod:6684
15698 msgid "guestfs_vguuid"
15699 msgstr ""
15700
15701 # type: verbatim
15702 #: ../src/guestfs-actions.pod:6686
15703 #, no-wrap
15704 msgid ""
15705 " char *\n"
15706 " guestfs_vguuid (guestfs_h *g,\n"
15707 "                 const char *vgname);\n"
15708 "\n"
15709 msgstr ""
15710
15711 # type: textblock
15712 #: ../src/guestfs-actions.pod:6690 ../fish/guestfish-actions.pod:4480
15713 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15714 msgstr ""
15715
15716 # type: =head2
15717 #: ../src/guestfs-actions.pod:6697
15718 msgid "guestfs_wait_ready"
15719 msgstr ""
15720
15721 # type: verbatim
15722 #: ../src/guestfs-actions.pod:6699
15723 #, no-wrap
15724 msgid ""
15725 " int\n"
15726 " guestfs_wait_ready (guestfs_h *g);\n"
15727 "\n"
15728 msgstr ""
15729
15730 # type: textblock
15731 #: ../src/guestfs-actions.pod:6702
15732 msgid "This function is a no op."
15733 msgstr ""
15734
15735 # type: textblock
15736 #: ../src/guestfs-actions.pod:6704
15737 msgid ""
15738 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15739 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15740 "is no longer necessary because C<guestfs_launch> now does the waiting."
15741 msgstr ""
15742
15743 # type: textblock
15744 #: ../src/guestfs-actions.pod:6709
15745 msgid ""
15746 "If you see any calls to this function in code then you can just remove them, "
15747 "unless you want to retain compatibility with older versions of the API."
15748 msgstr ""
15749
15750 # type: =head2
15751 #: ../src/guestfs-actions.pod:6717
15752 msgid "guestfs_wc_c"
15753 msgstr ""
15754
15755 # type: verbatim
15756 #: ../src/guestfs-actions.pod:6719
15757 #, no-wrap
15758 msgid ""
15759 " int\n"
15760 " guestfs_wc_c (guestfs_h *g,\n"
15761 "               const char *path);\n"
15762 "\n"
15763 msgstr ""
15764
15765 # type: textblock
15766 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4486
15767 msgid ""
15768 "This command counts the characters in a file, using the C<wc -c> external "
15769 "command."
15770 msgstr ""
15771
15772 # type: =head2
15773 #: ../src/guestfs-actions.pod:6730
15774 msgid "guestfs_wc_l"
15775 msgstr ""
15776
15777 # type: verbatim
15778 #: ../src/guestfs-actions.pod:6732
15779 #, no-wrap
15780 msgid ""
15781 " int\n"
15782 " guestfs_wc_l (guestfs_h *g,\n"
15783 "               const char *path);\n"
15784 "\n"
15785 msgstr ""
15786
15787 # type: textblock
15788 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4493
15789 msgid ""
15790 "This command counts the lines in a file, using the C<wc -l> external command."
15791 msgstr ""
15792
15793 # type: =head2
15794 #: ../src/guestfs-actions.pod:6743
15795 msgid "guestfs_wc_w"
15796 msgstr ""
15797
15798 # type: verbatim
15799 #: ../src/guestfs-actions.pod:6745
15800 #, no-wrap
15801 msgid ""
15802 " int\n"
15803 " guestfs_wc_w (guestfs_h *g,\n"
15804 "               const char *path);\n"
15805 "\n"
15806 msgstr ""
15807
15808 # type: textblock
15809 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4500
15810 msgid ""
15811 "This command counts the words in a file, using the C<wc -w> external command."
15812 msgstr ""
15813
15814 # type: =head2
15815 #: ../src/guestfs-actions.pod:6756
15816 msgid "guestfs_write"
15817 msgstr ""
15818
15819 # type: verbatim
15820 #: ../src/guestfs-actions.pod:6758
15821 #, no-wrap
15822 msgid ""
15823 " int\n"
15824 " guestfs_write (guestfs_h *g,\n"
15825 "                const char *path,\n"
15826 "                const char *content,\n"
15827 "                size_t content_size);\n"
15828 "\n"
15829 msgstr ""
15830
15831 # type: textblock
15832 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4507
15833 msgid ""
15834 "This call creates a file called C<path>.  The content of the file is the "
15835 "string C<content> (which can contain any 8 bit data)."
15836 msgstr ""
15837
15838 # type: =head2
15839 #: ../src/guestfs-actions.pod:6774
15840 msgid "guestfs_write_file"
15841 msgstr ""
15842
15843 # type: verbatim
15844 #: ../src/guestfs-actions.pod:6776
15845 #, no-wrap
15846 msgid ""
15847 " int\n"
15848 " guestfs_write_file (guestfs_h *g,\n"
15849 "                     const char *path,\n"
15850 "                     const char *content,\n"
15851 "                     int size);\n"
15852 "\n"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4517
15857 msgid ""
15858 "This call creates a file called C<path>.  The contents of the file is the "
15859 "string C<content> (which can contain any 8 bit data), with length C<size>."
15860 msgstr ""
15861
15862 # type: textblock
15863 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4521
15864 msgid ""
15865 "As a special case, if C<size> is C<0> then the length is calculated using "
15866 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15867 msgstr ""
15868
15869 # type: textblock
15870 #: ../src/guestfs-actions.pod:6790 ../fish/guestfish-actions.pod:4525
15871 msgid ""
15872 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15873 "I<not> work, even if the length is specified."
15874 msgstr ""
15875
15876 # type: textblock
15877 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4531
15878 msgid ""
15879 "This function is deprecated.  In new code, use the C<write> call instead."
15880 msgstr ""
15881
15882 # type: =head2
15883 #: ../src/guestfs-actions.pod:6807
15884 msgid "guestfs_zegrep"
15885 msgstr ""
15886
15887 # type: verbatim
15888 #: ../src/guestfs-actions.pod:6809
15889 #, no-wrap
15890 msgid ""
15891 " char **\n"
15892 " guestfs_zegrep (guestfs_h *g,\n"
15893 "                 const char *regex,\n"
15894 "                 const char *path);\n"
15895 "\n"
15896 msgstr ""
15897
15898 # type: textblock
15899 #: ../src/guestfs-actions.pod:6814 ../fish/guestfish-actions.pod:4542
15900 msgid ""
15901 "This calls the external C<zegrep> program and returns the matching lines."
15902 msgstr ""
15903
15904 # type: =head2
15905 #: ../src/guestfs-actions.pod:6826
15906 msgid "guestfs_zegrepi"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #: ../src/guestfs-actions.pod:6828
15911 #, no-wrap
15912 msgid ""
15913 " char **\n"
15914 " guestfs_zegrepi (guestfs_h *g,\n"
15915 "                  const char *regex,\n"
15916 "                  const char *path);\n"
15917 "\n"
15918 msgstr ""
15919
15920 # type: textblock
15921 #: ../src/guestfs-actions.pod:6833 ../fish/guestfish-actions.pod:4552
15922 msgid ""
15923 "This calls the external C<zegrep -i> program and returns the matching lines."
15924 msgstr ""
15925
15926 # type: =head2
15927 #: ../src/guestfs-actions.pod:6845
15928 msgid "guestfs_zero"
15929 msgstr ""
15930
15931 # type: verbatim
15932 #: ../src/guestfs-actions.pod:6847
15933 #, no-wrap
15934 msgid ""
15935 " int\n"
15936 " guestfs_zero (guestfs_h *g,\n"
15937 "               const char *device);\n"
15938 "\n"
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../src/guestfs-actions.pod:6851 ../fish/guestfish-actions.pod:4562
15943 msgid "This command writes zeroes over the first few blocks of C<device>."
15944 msgstr ""
15945
15946 # type: textblock
15947 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4564
15948 msgid ""
15949 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15950 "securely wipe the device).  It should be sufficient to remove any partition "
15951 "tables, filesystem superblocks and so on."
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../src/guestfs-actions.pod:6857
15956 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15957 msgstr ""
15958
15959 # type: =head2
15960 #: ../src/guestfs-actions.pod:6868
15961 msgid "guestfs_zero_device"
15962 msgstr ""
15963
15964 # type: verbatim
15965 #: ../src/guestfs-actions.pod:6870
15966 #, no-wrap
15967 msgid ""
15968 " int\n"
15969 " guestfs_zero_device (guestfs_h *g,\n"
15970 "                      const char *device);\n"
15971 "\n"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../src/guestfs-actions.pod:6874
15976 msgid ""
15977 "This command writes zeroes over the entire C<device>.  Compare with "
15978 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15979 msgstr ""
15980
15981 # type: textblock
15982 #: ../src/guestfs-actions.pod:6888
15983 msgid "(Added in 1.3.1)"
15984 msgstr ""
15985
15986 # type: =head2
15987 #: ../src/guestfs-actions.pod:6890
15988 msgid "guestfs_zerofree"
15989 msgstr ""
15990
15991 # type: verbatim
15992 #: ../src/guestfs-actions.pod:6892
15993 #, no-wrap
15994 msgid ""
15995 " int\n"
15996 " guestfs_zerofree (guestfs_h *g,\n"
15997 "                   const char *device);\n"
15998 "\n"
15999 msgstr ""
16000
16001 # type: textblock
16002 #: ../src/guestfs-actions.pod:6896 ../fish/guestfish-actions.pod:4585
16003 msgid ""
16004 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16005 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16006 "possible to compress the filesystem more effectively."
16007 msgstr ""
16008
16009 # type: textblock
16010 #: ../src/guestfs-actions.pod:6901 ../fish/guestfish-actions.pod:4590
16011 msgid "You should B<not> run this program if the filesystem is mounted."
16012 msgstr ""
16013
16014 # type: textblock
16015 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4593
16016 msgid ""
16017 "It is possible that using this program can damage the filesystem or data on "
16018 "the filesystem."
16019 msgstr ""
16020
16021 # type: =head2
16022 #: ../src/guestfs-actions.pod:6911
16023 msgid "guestfs_zfgrep"
16024 msgstr ""
16025
16026 # type: verbatim
16027 #: ../src/guestfs-actions.pod:6913
16028 #, no-wrap
16029 msgid ""
16030 " char **\n"
16031 " guestfs_zfgrep (guestfs_h *g,\n"
16032 "                 const char *pattern,\n"
16033 "                 const char *path);\n"
16034 "\n"
16035 msgstr ""
16036
16037 # type: textblock
16038 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4600
16039 msgid ""
16040 "This calls the external C<zfgrep> program and returns the matching lines."
16041 msgstr ""
16042
16043 # type: =head2
16044 #: ../src/guestfs-actions.pod:6930
16045 msgid "guestfs_zfgrepi"
16046 msgstr ""
16047
16048 # type: verbatim
16049 #: ../src/guestfs-actions.pod:6932
16050 #, no-wrap
16051 msgid ""
16052 " char **\n"
16053 " guestfs_zfgrepi (guestfs_h *g,\n"
16054 "                  const char *pattern,\n"
16055 "                  const char *path);\n"
16056 "\n"
16057 msgstr ""
16058
16059 # type: textblock
16060 #: ../src/guestfs-actions.pod:6937 ../fish/guestfish-actions.pod:4610
16061 msgid ""
16062 "This calls the external C<zfgrep -i> program and returns the matching lines."
16063 msgstr ""
16064
16065 # type: =head2
16066 #: ../src/guestfs-actions.pod:6949
16067 msgid "guestfs_zfile"
16068 msgstr ""
16069
16070 # type: verbatim
16071 #: ../src/guestfs-actions.pod:6951
16072 #, no-wrap
16073 msgid ""
16074 " char *\n"
16075 " guestfs_zfile (guestfs_h *g,\n"
16076 "                const char *meth,\n"
16077 "                const char *path);\n"
16078 "\n"
16079 msgstr ""
16080
16081 # type: textblock
16082 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4620
16083 msgid ""
16084 "This command runs C<file> after first decompressing C<path> using C<method>."
16085 msgstr ""
16086
16087 # type: textblock
16088 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4623
16089 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16090 msgstr ""
16091
16092 # type: textblock
16093 #: ../src/guestfs-actions.pod:6961
16094 msgid ""
16095 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16096 "files."
16097 msgstr ""
16098
16099 # type: textblock
16100 #: ../src/guestfs-actions.pod:6967 ../fish/guestfish-actions.pod:4628
16101 msgid ""
16102 "This function is deprecated.  In new code, use the C<file> call instead."
16103 msgstr ""
16104
16105 # type: =head2
16106 #: ../src/guestfs-actions.pod:6976
16107 msgid "guestfs_zgrep"
16108 msgstr ""
16109
16110 # type: verbatim
16111 #: ../src/guestfs-actions.pod:6978
16112 #, no-wrap
16113 msgid ""
16114 " char **\n"
16115 " guestfs_zgrep (guestfs_h *g,\n"
16116 "                const char *regex,\n"
16117 "                const char *path);\n"
16118 "\n"
16119 msgstr ""
16120
16121 # type: textblock
16122 #: ../src/guestfs-actions.pod:6983 ../fish/guestfish-actions.pod:4639
16123 msgid ""
16124 "This calls the external C<zgrep> program and returns the matching lines."
16125 msgstr ""
16126
16127 # type: =head2
16128 #: ../src/guestfs-actions.pod:6995
16129 msgid "guestfs_zgrepi"
16130 msgstr ""
16131
16132 # type: verbatim
16133 #: ../src/guestfs-actions.pod:6997
16134 #, no-wrap
16135 msgid ""
16136 " char **\n"
16137 " guestfs_zgrepi (guestfs_h *g,\n"
16138 "                 const char *regex,\n"
16139 "                 const char *path);\n"
16140 "\n"
16141 msgstr ""
16142
16143 # type: textblock
16144 #: ../src/guestfs-actions.pod:7002 ../fish/guestfish-actions.pod:4649
16145 msgid ""
16146 "This calls the external C<zgrep -i> program and returns the matching lines."
16147 msgstr ""
16148
16149 # type: =item
16150 #: ../src/guestfs-availability.pod:3
16151 msgid "B<augeas>"
16152 msgstr ""
16153
16154 # type: textblock
16155 #: ../src/guestfs-availability.pod:5
16156 msgid ""
16157 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16158 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16159 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16160 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16161 "L</guestfs_aug_save> L</guestfs_aug_set>"
16162 msgstr ""
16163
16164 # type: =item
16165 #: ../src/guestfs-availability.pod:21
16166 msgid "B<inotify>"
16167 msgstr ""
16168
16169 # type: textblock
16170 #: ../src/guestfs-availability.pod:23
16171 msgid ""
16172 "The following functions: L</guestfs_inotify_add_watch> L</"
16173 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16174 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16175 msgstr ""
16176
16177 # type: =item
16178 #: ../src/guestfs-availability.pod:31
16179 msgid "B<linuxfsuuid>"
16180 msgstr ""
16181
16182 # type: textblock
16183 #: ../src/guestfs-availability.pod:33
16184 msgid ""
16185 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16186 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16187 msgstr ""
16188
16189 # type: =item
16190 #: ../src/guestfs-availability.pod:40
16191 msgid "B<linuxmodules>"
16192 msgstr ""
16193
16194 # type: textblock
16195 #: ../src/guestfs-availability.pod:42
16196 msgid "The following functions: L</guestfs_modprobe>"
16197 msgstr ""
16198
16199 # type: =item
16200 #: ../src/guestfs-availability.pod:45
16201 msgid "B<linuxxattrs>"
16202 msgstr ""
16203
16204 # type: textblock
16205 #: ../src/guestfs-availability.pod:47
16206 msgid ""
16207 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16208 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16209 "guestfs_removexattr> L</guestfs_setxattr>"
16210 msgstr ""
16211
16212 # type: =item
16213 #: ../src/guestfs-availability.pod:56
16214 msgid "B<luks>"
16215 msgstr ""
16216
16217 # type: textblock
16218 #: ../src/guestfs-availability.pod:58
16219 msgid ""
16220 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16221 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16222 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16223 msgstr ""
16224
16225 # type: =item
16226 #: ../src/guestfs-availability.pod:67
16227 msgid "B<lvm2>"
16228 msgstr ""
16229
16230 # type: textblock
16231 #: ../src/guestfs-availability.pod:69
16232 msgid ""
16233 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16234 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16235 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16236 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16237 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16238 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16239 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16240 msgstr ""
16241
16242 # type: =item
16243 #: ../src/guestfs-availability.pod:92
16244 msgid "B<mknod>"
16245 msgstr ""
16246
16247 # type: textblock
16248 #: ../src/guestfs-availability.pod:94
16249 msgid ""
16250 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16251 "guestfs_mknod_b> L</guestfs_mknod_c>"
16252 msgstr ""
16253
16254 # type: =item
16255 #: ../src/guestfs-availability.pod:100
16256 msgid "B<ntfs3g>"
16257 msgstr ""
16258
16259 # type: textblock
16260 #: ../src/guestfs-availability.pod:102
16261 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16262 msgstr ""
16263
16264 # type: =item
16265 #: ../src/guestfs-availability.pod:105
16266 msgid "B<ntfsprogs>"
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../src/guestfs-availability.pod:107
16271 msgid ""
16272 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16273 msgstr ""
16274
16275 # type: =item
16276 #: ../src/guestfs-availability.pod:111
16277 msgid "B<realpath>"
16278 msgstr ""
16279
16280 # type: textblock
16281 #: ../src/guestfs-availability.pod:113
16282 msgid "The following functions: L</guestfs_realpath>"
16283 msgstr ""
16284
16285 # type: =item
16286 #: ../src/guestfs-availability.pod:116
16287 msgid "B<scrub>"
16288 msgstr ""
16289
16290 # type: textblock
16291 #: ../src/guestfs-availability.pod:118
16292 msgid ""
16293 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16294 "guestfs_scrub_freespace>"
16295 msgstr ""
16296
16297 # type: =item
16298 #: ../src/guestfs-availability.pod:123
16299 msgid "B<selinux>"
16300 msgstr ""
16301
16302 # type: textblock
16303 #: ../src/guestfs-availability.pod:125
16304 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16305 msgstr ""
16306
16307 # type: =item
16308 #: ../src/guestfs-availability.pod:129
16309 msgid "B<xz>"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../src/guestfs-availability.pod:131
16314 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16315 msgstr ""
16316
16317 # type: =item
16318 #: ../src/guestfs-availability.pod:135
16319 msgid "B<zerofree>"
16320 msgstr ""
16321
16322 # type: textblock
16323 #: ../src/guestfs-availability.pod:137
16324 msgid "The following functions: L</guestfs_zerofree>"
16325 msgstr ""
16326
16327 # type: =head2
16328 #: ../src/guestfs-structs.pod:1
16329 msgid "guestfs_int_bool"
16330 msgstr ""
16331
16332 # type: verbatim
16333 #: ../src/guestfs-structs.pod:3
16334 #, no-wrap
16335 msgid ""
16336 " struct guestfs_int_bool {\n"
16337 "   int32_t i;\n"
16338 "   int32_t b;\n"
16339 " };\n"
16340 " \n"
16341 msgstr ""
16342
16343 # type: verbatim
16344 #: ../src/guestfs-structs.pod:8
16345 #, no-wrap
16346 msgid ""
16347 " struct guestfs_int_bool_list {\n"
16348 "   uint32_t len; /* Number of elements in list. */\n"
16349 "   struct guestfs_int_bool *val; /* Elements. */\n"
16350 " };\n"
16351 " \n"
16352 msgstr ""
16353
16354 # type: verbatim
16355 #: ../src/guestfs-structs.pod:13
16356 #, no-wrap
16357 msgid ""
16358 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16359 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16360 "\n"
16361 msgstr ""
16362
16363 # type: =head2
16364 #: ../src/guestfs-structs.pod:16
16365 msgid "guestfs_lvm_pv"
16366 msgstr ""
16367
16368 # type: verbatim
16369 #: ../src/guestfs-structs.pod:18
16370 #, no-wrap
16371 msgid ""
16372 " struct guestfs_lvm_pv {\n"
16373 "   char *pv_name;\n"
16374 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16375 "   char pv_uuid[32];\n"
16376 "   char *pv_fmt;\n"
16377 "   uint64_t pv_size;\n"
16378 "   uint64_t dev_size;\n"
16379 "   uint64_t pv_free;\n"
16380 "   uint64_t pv_used;\n"
16381 "   char *pv_attr;\n"
16382 "   int64_t pv_pe_count;\n"
16383 "   int64_t pv_pe_alloc_count;\n"
16384 "   char *pv_tags;\n"
16385 "   uint64_t pe_start;\n"
16386 "   int64_t pv_mda_count;\n"
16387 "   uint64_t pv_mda_free;\n"
16388 " };\n"
16389 " \n"
16390 msgstr ""
16391
16392 # type: verbatim
16393 #: ../src/guestfs-structs.pod:36
16394 #, no-wrap
16395 msgid ""
16396 " struct guestfs_lvm_pv_list {\n"
16397 "   uint32_t len; /* Number of elements in list. */\n"
16398 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16399 " };\n"
16400 " \n"
16401 msgstr ""
16402
16403 # type: verbatim
16404 #: ../src/guestfs-structs.pod:41
16405 #, no-wrap
16406 msgid ""
16407 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16408 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16409 "\n"
16410 msgstr ""
16411
16412 # type: =head2
16413 #: ../src/guestfs-structs.pod:44
16414 msgid "guestfs_lvm_vg"
16415 msgstr ""
16416
16417 # type: verbatim
16418 #: ../src/guestfs-structs.pod:46
16419 #, no-wrap
16420 msgid ""
16421 " struct guestfs_lvm_vg {\n"
16422 "   char *vg_name;\n"
16423 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16424 "   char vg_uuid[32];\n"
16425 "   char *vg_fmt;\n"
16426 "   char *vg_attr;\n"
16427 "   uint64_t vg_size;\n"
16428 "   uint64_t vg_free;\n"
16429 "   char *vg_sysid;\n"
16430 "   uint64_t vg_extent_size;\n"
16431 "   int64_t vg_extent_count;\n"
16432 "   int64_t vg_free_count;\n"
16433 "   int64_t max_lv;\n"
16434 "   int64_t max_pv;\n"
16435 "   int64_t pv_count;\n"
16436 "   int64_t lv_count;\n"
16437 "   int64_t snap_count;\n"
16438 "   int64_t vg_seqno;\n"
16439 "   char *vg_tags;\n"
16440 "   int64_t vg_mda_count;\n"
16441 "   uint64_t vg_mda_free;\n"
16442 " };\n"
16443 " \n"
16444 msgstr ""
16445
16446 # type: verbatim
16447 #: ../src/guestfs-structs.pod:69
16448 #, no-wrap
16449 msgid ""
16450 " struct guestfs_lvm_vg_list {\n"
16451 "   uint32_t len; /* Number of elements in list. */\n"
16452 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16453 " };\n"
16454 " \n"
16455 msgstr ""
16456
16457 # type: verbatim
16458 #: ../src/guestfs-structs.pod:74
16459 #, no-wrap
16460 msgid ""
16461 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16462 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16463 "\n"
16464 msgstr ""
16465
16466 # type: =head2
16467 #: ../src/guestfs-structs.pod:77
16468 msgid "guestfs_lvm_lv"
16469 msgstr ""
16470
16471 # type: verbatim
16472 #: ../src/guestfs-structs.pod:79
16473 #, no-wrap
16474 msgid ""
16475 " struct guestfs_lvm_lv {\n"
16476 "   char *lv_name;\n"
16477 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16478 "   char lv_uuid[32];\n"
16479 "   char *lv_attr;\n"
16480 "   int64_t lv_major;\n"
16481 "   int64_t lv_minor;\n"
16482 "   int64_t lv_kernel_major;\n"
16483 "   int64_t lv_kernel_minor;\n"
16484 "   uint64_t lv_size;\n"
16485 "   int64_t seg_count;\n"
16486 "   char *origin;\n"
16487 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16488 "   float snap_percent;\n"
16489 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16490 "   float copy_percent;\n"
16491 "   char *move_pv;\n"
16492 "   char *lv_tags;\n"
16493 "   char *mirror_log;\n"
16494 "   char *modules;\n"
16495 " };\n"
16496 " \n"
16497 msgstr ""
16498
16499 # type: verbatim
16500 #: ../src/guestfs-structs.pod:101
16501 #, no-wrap
16502 msgid ""
16503 " struct guestfs_lvm_lv_list {\n"
16504 "   uint32_t len; /* Number of elements in list. */\n"
16505 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16506 " };\n"
16507 " \n"
16508 msgstr ""
16509
16510 # type: verbatim
16511 #: ../src/guestfs-structs.pod:106
16512 #, no-wrap
16513 msgid ""
16514 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16515 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16516 "\n"
16517 msgstr ""
16518
16519 # type: verbatim
16520 #: ../src/guestfs-structs.pod:111
16521 #, no-wrap
16522 msgid ""
16523 " struct guestfs_stat {\n"
16524 "   int64_t dev;\n"
16525 "   int64_t ino;\n"
16526 "   int64_t mode;\n"
16527 "   int64_t nlink;\n"
16528 "   int64_t uid;\n"
16529 "   int64_t gid;\n"
16530 "   int64_t rdev;\n"
16531 "   int64_t size;\n"
16532 "   int64_t blksize;\n"
16533 "   int64_t blocks;\n"
16534 "   int64_t atime;\n"
16535 "   int64_t mtime;\n"
16536 "   int64_t ctime;\n"
16537 " };\n"
16538 " \n"
16539 msgstr ""
16540
16541 # type: verbatim
16542 #: ../src/guestfs-structs.pod:127
16543 #, no-wrap
16544 msgid ""
16545 " struct guestfs_stat_list {\n"
16546 "   uint32_t len; /* Number of elements in list. */\n"
16547 "   struct guestfs_stat *val; /* Elements. */\n"
16548 " };\n"
16549 " \n"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #: ../src/guestfs-structs.pod:132
16554 #, no-wrap
16555 msgid ""
16556 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16557 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16558 "\n"
16559 msgstr ""
16560
16561 # type: verbatim
16562 #: ../src/guestfs-structs.pod:137
16563 #, no-wrap
16564 msgid ""
16565 " struct guestfs_statvfs {\n"
16566 "   int64_t bsize;\n"
16567 "   int64_t frsize;\n"
16568 "   int64_t blocks;\n"
16569 "   int64_t bfree;\n"
16570 "   int64_t bavail;\n"
16571 "   int64_t files;\n"
16572 "   int64_t ffree;\n"
16573 "   int64_t favail;\n"
16574 "   int64_t fsid;\n"
16575 "   int64_t flag;\n"
16576 "   int64_t namemax;\n"
16577 " };\n"
16578 " \n"
16579 msgstr ""
16580
16581 # type: verbatim
16582 #: ../src/guestfs-structs.pod:151
16583 #, no-wrap
16584 msgid ""
16585 " struct guestfs_statvfs_list {\n"
16586 "   uint32_t len; /* Number of elements in list. */\n"
16587 "   struct guestfs_statvfs *val; /* Elements. */\n"
16588 " };\n"
16589 " \n"
16590 msgstr ""
16591
16592 # type: verbatim
16593 #: ../src/guestfs-structs.pod:156
16594 #, no-wrap
16595 msgid ""
16596 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16597 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16598 "\n"
16599 msgstr ""
16600
16601 # type: =head2
16602 #: ../src/guestfs-structs.pod:159
16603 msgid "guestfs_dirent"
16604 msgstr ""
16605
16606 # type: verbatim
16607 #: ../src/guestfs-structs.pod:161
16608 #, no-wrap
16609 msgid ""
16610 " struct guestfs_dirent {\n"
16611 "   int64_t ino;\n"
16612 "   char ftyp;\n"
16613 "   char *name;\n"
16614 " };\n"
16615 " \n"
16616 msgstr ""
16617
16618 # type: verbatim
16619 #: ../src/guestfs-structs.pod:167
16620 #, no-wrap
16621 msgid ""
16622 " struct guestfs_dirent_list {\n"
16623 "   uint32_t len; /* Number of elements in list. */\n"
16624 "   struct guestfs_dirent *val; /* Elements. */\n"
16625 " };\n"
16626 " \n"
16627 msgstr ""
16628
16629 # type: verbatim
16630 #: ../src/guestfs-structs.pod:172
16631 #, no-wrap
16632 msgid ""
16633 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16634 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16635 "\n"
16636 msgstr ""
16637
16638 # type: verbatim
16639 #: ../src/guestfs-structs.pod:177
16640 #, no-wrap
16641 msgid ""
16642 " struct guestfs_version {\n"
16643 "   int64_t major;\n"
16644 "   int64_t minor;\n"
16645 "   int64_t release;\n"
16646 "   char *extra;\n"
16647 " };\n"
16648 " \n"
16649 msgstr ""
16650
16651 # type: verbatim
16652 #: ../src/guestfs-structs.pod:184
16653 #, no-wrap
16654 msgid ""
16655 " struct guestfs_version_list {\n"
16656 "   uint32_t len; /* Number of elements in list. */\n"
16657 "   struct guestfs_version *val; /* Elements. */\n"
16658 " };\n"
16659 " \n"
16660 msgstr ""
16661
16662 # type: verbatim
16663 #: ../src/guestfs-structs.pod:189
16664 #, no-wrap
16665 msgid ""
16666 " void guestfs_free_version (struct guestfs_free_version *);\n"
16667 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16668 "\n"
16669 msgstr ""
16670
16671 # type: =head2
16672 #: ../src/guestfs-structs.pod:192
16673 msgid "guestfs_xattr"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../src/guestfs-structs.pod:194
16678 #, no-wrap
16679 msgid ""
16680 " struct guestfs_xattr {\n"
16681 "   char *attrname;\n"
16682 "   /* The next two fields describe a byte array. */\n"
16683 "   uint32_t attrval_len;\n"
16684 "   char *attrval;\n"
16685 " };\n"
16686 " \n"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../src/guestfs-structs.pod:201
16691 #, no-wrap
16692 msgid ""
16693 " struct guestfs_xattr_list {\n"
16694 "   uint32_t len; /* Number of elements in list. */\n"
16695 "   struct guestfs_xattr *val; /* Elements. */\n"
16696 " };\n"
16697 " \n"
16698 msgstr ""
16699
16700 # type: verbatim
16701 #: ../src/guestfs-structs.pod:206
16702 #, no-wrap
16703 msgid ""
16704 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16705 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16706 "\n"
16707 msgstr ""
16708
16709 # type: =head2
16710 #: ../src/guestfs-structs.pod:209
16711 msgid "guestfs_inotify_event"
16712 msgstr ""
16713
16714 # type: verbatim
16715 #: ../src/guestfs-structs.pod:211
16716 #, no-wrap
16717 msgid ""
16718 " struct guestfs_inotify_event {\n"
16719 "   int64_t in_wd;\n"
16720 "   uint32_t in_mask;\n"
16721 "   uint32_t in_cookie;\n"
16722 "   char *in_name;\n"
16723 " };\n"
16724 " \n"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #: ../src/guestfs-structs.pod:218
16729 #, no-wrap
16730 msgid ""
16731 " struct guestfs_inotify_event_list {\n"
16732 "   uint32_t len; /* Number of elements in list. */\n"
16733 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16734 " };\n"
16735 " \n"
16736 msgstr ""
16737
16738 # type: verbatim
16739 #: ../src/guestfs-structs.pod:223
16740 #, no-wrap
16741 msgid ""
16742 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16743 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16744 "\n"
16745 msgstr ""
16746
16747 # type: =head2
16748 #: ../src/guestfs-structs.pod:226
16749 msgid "guestfs_partition"
16750 msgstr ""
16751
16752 # type: verbatim
16753 #: ../src/guestfs-structs.pod:228
16754 #, no-wrap
16755 msgid ""
16756 " struct guestfs_partition {\n"
16757 "   int32_t part_num;\n"
16758 "   uint64_t part_start;\n"
16759 "   uint64_t part_end;\n"
16760 "   uint64_t part_size;\n"
16761 " };\n"
16762 " \n"
16763 msgstr ""
16764
16765 # type: verbatim
16766 #: ../src/guestfs-structs.pod:235
16767 #, no-wrap
16768 msgid ""
16769 " struct guestfs_partition_list {\n"
16770 "   uint32_t len; /* Number of elements in list. */\n"
16771 "   struct guestfs_partition *val; /* Elements. */\n"
16772 " };\n"
16773 " \n"
16774 msgstr ""
16775
16776 # type: verbatim
16777 #: ../src/guestfs-structs.pod:240
16778 #, no-wrap
16779 msgid ""
16780 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16781 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16782 "\n"
16783 msgstr ""
16784
16785 # type: =head2
16786 #: ../src/guestfs-structs.pod:243
16787 msgid "guestfs_application"
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../src/guestfs-structs.pod:245
16792 #, no-wrap
16793 msgid ""
16794 " struct guestfs_application {\n"
16795 "   char *app_name;\n"
16796 "   char *app_display_name;\n"
16797 "   int32_t app_epoch;\n"
16798 "   char *app_version;\n"
16799 "   char *app_release;\n"
16800 "   char *app_install_path;\n"
16801 "   char *app_trans_path;\n"
16802 "   char *app_publisher;\n"
16803 "   char *app_url;\n"
16804 "   char *app_source_package;\n"
16805 "   char *app_summary;\n"
16806 "   char *app_description;\n"
16807 " };\n"
16808 " \n"
16809 msgstr ""
16810
16811 # type: verbatim
16812 #: ../src/guestfs-structs.pod:260
16813 #, no-wrap
16814 msgid ""
16815 " struct guestfs_application_list {\n"
16816 "   uint32_t len; /* Number of elements in list. */\n"
16817 "   struct guestfs_application *val; /* Elements. */\n"
16818 " };\n"
16819 " \n"
16820 msgstr ""
16821
16822 # type: verbatim
16823 #: ../src/guestfs-structs.pod:265
16824 #, no-wrap
16825 msgid ""
16826 " void guestfs_free_application (struct guestfs_free_application *);\n"
16827 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16828 "\n"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish.pod:5
16833 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16834 msgstr ""
16835
16836 # type: verbatim
16837 #: ../fish/guestfish.pod:9
16838 #, no-wrap
16839 msgid ""
16840 " guestfish [--options] [commands]\n"
16841 "\n"
16842 msgstr ""
16843
16844 # type: verbatim
16845 #: ../fish/guestfish.pod:11
16846 #, no-wrap
16847 msgid ""
16848 " guestfish\n"
16849 "\n"
16850 msgstr ""
16851
16852 # type: verbatim
16853 #: ../fish/guestfish.pod:13
16854 #, no-wrap
16855 msgid ""
16856 " guestfish [--ro|--rw] -a disk.img\n"
16857 "\n"
16858 msgstr ""
16859
16860 # type: verbatim
16861 #: ../fish/guestfish.pod:15
16862 #, no-wrap
16863 msgid ""
16864 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16865 "\n"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #: ../fish/guestfish.pod:17
16870 #, no-wrap
16871 msgid ""
16872 " guestfish -d libvirt-domain\n"
16873 "\n"
16874 msgstr ""
16875
16876 # type: verbatim
16877 #: ../fish/guestfish.pod:19
16878 #, no-wrap
16879 msgid ""
16880 " guestfish [--ro|--rw] -a disk.img -i\n"
16881 "\n"
16882 msgstr ""
16883
16884 # type: verbatim
16885 #: ../fish/guestfish.pod:21
16886 #, no-wrap
16887 msgid ""
16888 " guestfish -d libvirt-domain -i\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: =head1
16893 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16894 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16895 #: ../tools/virt-rescue.pl:41
16896 msgid "WARNING"
16897 msgstr ""
16898
16899 # type: textblock
16900 #: ../fish/guestfish.pod:25
16901 msgid ""
16902 "Using guestfish in read/write mode on live virtual machines can be "
16903 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16904 "option to use guestfish safely if the disk image or virtual machine might be "
16905 "live."
16906 msgstr ""
16907
16908 # type: textblock
16909 #: ../fish/guestfish.pod:32
16910 msgid ""
16911 "Guestfish is a shell and command-line tool for examining and modifying "
16912 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16913 "functionality of the guestfs API, see L<guestfs(3)>."
16914 msgstr ""
16915
16916 # type: textblock
16917 #: ../fish/guestfish.pod:36
16918 msgid ""
16919 "Guestfish gives you structured access to the libguestfs API, from shell "
16920 "scripts or the command line or interactively.  If you want to rescue a "
16921 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16922 "command."
16923 msgstr ""
16924
16925 # type: =head1
16926 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16927 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16928 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16929 msgid "EXAMPLES"
16930 msgstr ""
16931
16932 # type: =head2
16933 #: ../fish/guestfish.pod:43
16934 msgid "As an interactive shell"
16935 msgstr ""
16936
16937 # type: verbatim
16938 #: ../fish/guestfish.pod:45
16939 #, no-wrap
16940 msgid ""
16941 " $ guestfish\n"
16942 " \n"
16943 msgstr ""
16944
16945 # type: verbatim
16946 #: ../fish/guestfish.pod:47
16947 #, no-wrap
16948 msgid ""
16949 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16950 " editing virtual machine filesystems.\n"
16951 " \n"
16952 msgstr ""
16953
16954 # type: verbatim
16955 #: ../fish/guestfish.pod:50
16956 #, no-wrap
16957 msgid ""
16958 " Type: 'help' for a list of commands\n"
16959 "       'man' to read the manual\n"
16960 "       'quit' to quit the shell\n"
16961 " \n"
16962 msgstr ""
16963
16964 # type: verbatim
16965 #: ../fish/guestfish.pod:54
16966 #, no-wrap
16967 msgid ""
16968 " ><fs> add-ro disk.img\n"
16969 " ><fs> run\n"
16970 " ><fs> list-filesystems\n"
16971 " /dev/sda1: ext4\n"
16972 " /dev/vg_guest/lv_root: ext4\n"
16973 " /dev/vg_guest/lv_swap: swap\n"
16974 " ><fs> mount /dev/vg_guest/lv_root /\n"
16975 " ><fs> cat /etc/fstab\n"
16976 " # /etc/fstab\n"
16977 " # Created by anaconda\n"
16978 " [...]\n"
16979 " ><fs> exit\n"
16980 "\n"
16981 msgstr ""
16982
16983 # type: =head2
16984 #: ../fish/guestfish.pod:67
16985 msgid "From shell scripts"
16986 msgstr ""
16987
16988 # type: textblock
16989 #: ../fish/guestfish.pod:69
16990 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16991 msgstr ""
16992
16993 # type: verbatim
16994 #: ../fish/guestfish.pod:71
16995 #, no-wrap
16996 msgid ""
16997 " guestfish <<_EOF_\n"
16998 " add disk.img\n"
16999 " run\n"
17000 " mount /dev/vg_guest/lv_root /\n"
17001 " write /etc/motd \"Welcome, new users\"\n"
17002 " _EOF_\n"
17003 "\n"
17004 msgstr ""
17005
17006 # type: textblock
17007 #: ../fish/guestfish.pod:78
17008 msgid "List the LVM logical volumes in a disk image:"
17009 msgstr ""
17010
17011 # type: verbatim
17012 #: ../fish/guestfish.pod:80
17013 #, no-wrap
17014 msgid ""
17015 " guestfish -a disk.img --ro <<_EOF_\n"
17016 " run\n"
17017 " lvs\n"
17018 " _EOF_\n"
17019 "\n"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:85
17024 msgid "List all the filesystems in a disk image:"
17025 msgstr ""
17026
17027 # type: verbatim
17028 #: ../fish/guestfish.pod:87
17029 #, no-wrap
17030 msgid ""
17031 " guestfish -a disk.img --ro <<_EOF_\n"
17032 " run\n"
17033 " list-filesystems\n"
17034 " _EOF_\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: =head2
17039 #: ../fish/guestfish.pod:92
17040 msgid "On one command line"
17041 msgstr ""
17042
17043 # type: textblock
17044 #: ../fish/guestfish.pod:94
17045 msgid "Update C</etc/resolv.conf> in a guest:"
17046 msgstr ""
17047
17048 # type: verbatim
17049 #: ../fish/guestfish.pod:96
17050 #, no-wrap
17051 msgid ""
17052 " guestfish \\\n"
17053 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17054 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17055 "\n"
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:100
17060 msgid "Edit C</boot/grub/grub.conf> interactively:"
17061 msgstr ""
17062
17063 # type: verbatim
17064 #: ../fish/guestfish.pod:102
17065 #, no-wrap
17066 msgid ""
17067 " guestfish --rw --add disk.img \\\n"
17068 "   --mount /dev/vg_guest/lv_root \\\n"
17069 "   --mount /dev/sda1:/boot \\\n"
17070 "   edit /boot/grub/grub.conf\n"
17071 "\n"
17072 msgstr ""
17073
17074 # type: =head2
17075 #: ../fish/guestfish.pod:107
17076 msgid "Mount disks automatically"
17077 msgstr ""
17078
17079 # type: textblock
17080 #: ../fish/guestfish.pod:109
17081 msgid ""
17082 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17083 msgstr ""
17084
17085 # type: verbatim
17086 #: ../fish/guestfish.pod:112
17087 #, no-wrap
17088 msgid ""
17089 " guestfish --ro -a disk.img -i cat /etc/group\n"
17090 "\n"
17091 msgstr ""
17092
17093 # type: verbatim
17094 #: ../fish/guestfish.pod:114
17095 #, no-wrap
17096 msgid ""
17097 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17098 "\n"
17099 msgstr ""
17100
17101 # type: textblock
17102 #: ../fish/guestfish.pod:116
17103 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17104 msgstr ""
17105
17106 # type: verbatim
17107 #: ../fish/guestfish.pod:118
17108 #, no-wrap
17109 msgid ""
17110 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17111 "\n"
17112 msgstr ""
17113
17114 # type: =head2
17115 #: ../fish/guestfish.pod:120
17116 msgid "As a script interpreter"
17117 msgstr ""
17118
17119 # type: textblock
17120 #: ../fish/guestfish.pod:122
17121 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17122 msgstr ""
17123
17124 # type: verbatim
17125 #: ../fish/guestfish.pod:124
17126 #, no-wrap
17127 msgid ""
17128 " #!/usr/bin/guestfish -f\n"
17129 " sparse test1.img 100M\n"
17130 " run\n"
17131 " part-disk /dev/sda mbr\n"
17132 " mkfs ext2 /dev/sda1\n"
17133 "\n"
17134 msgstr ""
17135
17136 # type: =head2
17137 #: ../fish/guestfish.pod:130
17138 msgid "Start with a prepared disk"
17139 msgstr ""
17140
17141 # type: textblock
17142 #: ../fish/guestfish.pod:132
17143 msgid ""
17144 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17145 "single ext2-formatted partition:"
17146 msgstr ""
17147
17148 # type: verbatim
17149 #: ../fish/guestfish.pod:135
17150 #, no-wrap
17151 msgid ""
17152 " guestfish -N fs\n"
17153 "\n"
17154 msgstr ""
17155
17156 # type: textblock
17157 #: ../fish/guestfish.pod:137
17158 msgid "To list what is available do:"
17159 msgstr ""
17160
17161 # type: verbatim
17162 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
17163 #, no-wrap
17164 msgid ""
17165 " guestfish -N help | less\n"
17166 "\n"
17167 msgstr ""
17168
17169 # type: =head2
17170 #: ../fish/guestfish.pod:141
17171 msgid "Remote control"
17172 msgstr ""
17173
17174 # type: verbatim
17175 #: ../fish/guestfish.pod:143
17176 #, no-wrap
17177 msgid ""
17178 " eval \"`guestfish --listen`\"\n"
17179 " guestfish --remote add-ro disk.img\n"
17180 " guestfish --remote run\n"
17181 " guestfish --remote lvs\n"
17182 "\n"
17183 msgstr ""
17184
17185 # type: =head1
17186 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17187 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
17188 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
17189 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
17190 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98
17191 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
17192 #: ../tools/virt-list-partitions.pl:51
17193 msgid "OPTIONS"
17194 msgstr ""
17195
17196 # type: =item
17197 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17198 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
17199 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
17200 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
17201 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
17202 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
17203 msgid "B<--help>"
17204 msgstr ""
17205
17206 # type: textblock
17207 #: ../fish/guestfish.pod:154
17208 msgid "Displays general help on options."
17209 msgstr ""
17210
17211 # type: =item
17212 #: ../fish/guestfish.pod:156
17213 msgid "B<-h> | B<--cmd-help>"
17214 msgstr ""
17215
17216 # type: textblock
17217 #: ../fish/guestfish.pod:158
17218 msgid "Lists all available guestfish commands."
17219 msgstr ""
17220
17221 # type: =item
17222 #: ../fish/guestfish.pod:160
17223 msgid "B<-h cmd> | B<--cmd-help cmd>"
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish.pod:162
17228 msgid "Displays detailed help on a single command C<cmd>."
17229 msgstr ""
17230
17231 # type: =item
17232 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17233 msgid "B<-a image> | B<--add image>"
17234 msgstr ""
17235
17236 # type: textblock
17237 #: ../fish/guestfish.pod:166
17238 msgid "Add a block device or virtual machine image to the shell."
17239 msgstr ""
17240
17241 # type: textblock
17242 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17243 msgid ""
17244 "The format of the disk image is auto-detected.  To override this and force a "
17245 "particular format use the I<--format=..> option."
17246 msgstr ""
17247
17248 # type: =item
17249 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17250 msgid "B<-c URI> | B<--connect URI>"
17251 msgstr ""
17252
17253 # type: textblock
17254 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17255 msgid ""
17256 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17257 "URI to use.  The default is to use the default libvirt connection."
17258 msgstr ""
17259
17260 # type: =item
17261 #: ../fish/guestfish.pod:177
17262 msgid "B<--csh>"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:179
17267 msgid ""
17268 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17269 "section L</REMOTE CONTROL AND CSH> below."
17270 msgstr ""
17271
17272 # type: =item
17273 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17274 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17279 msgid ""
17280 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17281 "used, then any libvirt domain can be used.  However in write mode, only "
17282 "libvirt domains which are shut down can be named here."
17283 msgstr ""
17284
17285 # type: =item
17286 #: ../fish/guestfish.pod:188
17287 msgid "B<-D> | B<--no-dest-paths>"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:190
17292 msgid ""
17293 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17294 "to hit the tab key to complete paths on the guest filesystem, but this "
17295 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17296 "allow this feature to be disabled."
17297 msgstr ""
17298
17299 # type: =item
17300 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17301 msgid "B<--echo-keys>"
17302 msgstr ""
17303
17304 # type: textblock
17305 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17306 msgid ""
17307 "When prompting for keys and passphrases, guestfish normally turns echoing "
17308 "off so you cannot see what you are typing.  If you are not worried about "
17309 "Tempest attacks and there is no one else in the room you can specify this "
17310 "flag to see what you are typing."
17311 msgstr ""
17312
17313 # type: =item
17314 #: ../fish/guestfish.pod:202
17315 msgid "B<-f file> | B<--file file>"
17316 msgstr ""
17317
17318 # type: textblock
17319 #: ../fish/guestfish.pod:204
17320 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17321 msgstr ""
17322
17323 # type: verbatim
17324 #: ../fish/guestfish.pod:207
17325 #, no-wrap
17326 msgid ""
17327 " #!/usr/bin/guestfish -f\n"
17328 "\n"
17329 msgstr ""
17330
17331 # type: =item
17332 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17333 msgid "B<--format=raw|qcow2|..> | B<--format>"
17334 msgstr ""
17335
17336 # type: textblock
17337 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17338 msgid ""
17339 "The default for the I<-a> option is to auto-detect the format of the disk "
17340 "image.  Using this forces the disk format for I<-a> options which follow on "
17341 "the command line.  Using I<--format> with no argument switches back to auto-"
17342 "detection for subsequent I<-a> options."
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
17347 #: ../inspector/virt-inspector.pl:431
17348 msgid "For example:"
17349 msgstr ""
17350
17351 # type: verbatim
17352 #: ../fish/guestfish.pod:218
17353 #, no-wrap
17354 msgid ""
17355 " guestfish --format=raw -a disk.img\n"
17356 "\n"
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:220
17361 msgid "forces raw format (no auto-detection) for C<disk.img>."
17362 msgstr ""
17363
17364 # type: verbatim
17365 #: ../fish/guestfish.pod:222
17366 #, no-wrap
17367 msgid ""
17368 " guestfish --format=raw -a disk.img --format -a another.img\n"
17369 "\n"
17370 msgstr ""
17371
17372 # type: textblock
17373 #: ../fish/guestfish.pod:224
17374 msgid ""
17375 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17376 "detection for C<another.img>."
17377 msgstr ""
17378
17379 # type: textblock
17380 #: ../fish/guestfish.pod:227
17381 msgid ""
17382 "If you have untrusted raw-format guest disk images, you should use this "
17383 "option to specify the disk format.  This avoids a possible security problem "
17384 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17385 msgstr ""
17386
17387 # type: =item
17388 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17389 msgid "B<-i> | B<--inspector>"
17390 msgstr ""
17391
17392 # type: textblock
17393 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17394 msgid ""
17395 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17396 "system and mount filesystems as they would be mounted on the real virtual "
17397 "machine."
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish.pod:238
17402 msgid "Typical usage is either:"
17403 msgstr ""
17404
17405 # type: verbatim
17406 #: ../fish/guestfish.pod:240
17407 #, no-wrap
17408 msgid ""
17409 " guestfish -d myguest -i\n"
17410 "\n"
17411 msgstr ""
17412
17413 # type: textblock
17414 #: ../fish/guestfish.pod:242
17415 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17416 msgstr ""
17417
17418 # type: verbatim
17419 #: ../fish/guestfish.pod:244
17420 #, no-wrap
17421 msgid ""
17422 " guestfish --ro -d myguest -i\n"
17423 "\n"
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish.pod:246
17428 msgid "(for active domains, readonly), or specify the block device directly:"
17429 msgstr ""
17430
17431 # type: verbatim
17432 #: ../fish/guestfish.pod:248
17433 #, no-wrap
17434 msgid ""
17435 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17436 "\n"
17437 msgstr ""
17438
17439 # type: textblock
17440 #: ../fish/guestfish.pod:250
17441 msgid ""
17442 "Note that the command line syntax changed slightly over older versions of "
17443 "guestfish.  You can still use the old syntax:"
17444 msgstr ""
17445
17446 # type: verbatim
17447 #: ../fish/guestfish.pod:253
17448 #, no-wrap
17449 msgid ""
17450 " guestfish [--ro] -i disk.img\n"
17451 "\n"
17452 msgstr ""
17453
17454 # type: verbatim
17455 #: ../fish/guestfish.pod:255
17456 #, no-wrap
17457 msgid ""
17458 " guestfish [--ro] -i libvirt-domain\n"
17459 "\n"
17460 msgstr ""
17461
17462 # type: =item
17463 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17464 msgid "B<--keys-from-stdin>"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17469 msgid ""
17470 "Read key or passphrase parameters from stdin.  The default is to try to read "
17471 "passphrases from the user by opening C</dev/tty>."
17472 msgstr ""
17473
17474 # type: =item
17475 #: ../fish/guestfish.pod:262
17476 msgid "B<--listen>"
17477 msgstr ""
17478
17479 # type: textblock
17480 #: ../fish/guestfish.pod:264
17481 msgid ""
17482 "Fork into the background and listen for remote commands.  See section L</"
17483 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17484 msgstr ""
17485
17486 # type: =item
17487 #: ../fish/guestfish.pod:267
17488 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17489 msgstr ""
17490
17491 # type: textblock
17492 #: ../fish/guestfish.pod:269
17493 msgid "Mount the named partition or logical volume on the given mountpoint."
17494 msgstr ""
17495
17496 # type: textblock
17497 #: ../fish/guestfish.pod:271
17498 msgid "If the mountpoint is omitted, it defaults to C</>."
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish.pod:273
17503 msgid "You have to mount something on C</> before most commands will work."
17504 msgstr ""
17505
17506 # type: textblock
17507 #: ../fish/guestfish.pod:275
17508 msgid ""
17509 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17510 "launched."
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:278
17515 msgid ""
17516 "If you don't know what filesystems a disk image contains, you can either run "
17517 "guestfish without this option, then list the partitions and LVs available "
17518 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
17519 "list-filesystems(1)> program."
17520 msgstr ""
17521
17522 # type: =item
17523 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
17524 msgid "B<-n> | B<--no-sync>"
17525 msgstr ""
17526
17527 # type: textblock
17528 #: ../fish/guestfish.pod:285
17529 msgid ""
17530 "Disable autosync.  This is enabled by default.  See the discussion of "
17531 "autosync in the L<guestfs(3)> manpage."
17532 msgstr ""
17533
17534 # type: =item
17535 #: ../fish/guestfish.pod:288
17536 msgid "B<-N type> | B<--new type> | B<-N help>"
17537 msgstr ""
17538
17539 # type: textblock
17540 #: ../fish/guestfish.pod:290
17541 msgid ""
17542 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17543 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17544 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17545 "IMAGES> below."
17546 msgstr ""
17547
17548 # type: =item
17549 #: ../fish/guestfish.pod:295
17550 msgid "B<--progress-bars>"
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish.pod:297
17555 msgid "Enable progress bars, even when guestfish is used non-interactively."
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish.pod:299
17560 msgid ""
17561 "Progress bars are enabled by default when guestfish is used as an "
17562 "interactive shell."
17563 msgstr ""
17564
17565 # type: =item
17566 #: ../fish/guestfish.pod:302
17567 msgid "B<--no-progress-bars>"
17568 msgstr ""
17569
17570 # type: textblock
17571 #: ../fish/guestfish.pod:304
17572 msgid "Disable progress bars."
17573 msgstr ""
17574
17575 # type: =item
17576 #: ../fish/guestfish.pod:306
17577 msgid "B<--remote[=pid]>"
17578 msgstr ""
17579
17580 # type: textblock
17581 #: ../fish/guestfish.pod:308
17582 msgid ""
17583 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17584 "CONTROL GUESTFISH OVER A SOCKET> below."
17585 msgstr ""
17586
17587 # type: =item
17588 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17589 msgid "B<-r> | B<--ro>"
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish.pod:313
17594 msgid ""
17595 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17596 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17597 msgstr ""
17598
17599 # type: textblock
17600 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17601 msgid ""
17602 "The option must always be used if the disk image or virtual machine might be "
17603 "running, and is generally recommended in cases where you don't need write "
17604 "access to the disk."
17605 msgstr ""
17606
17607 # type: textblock
17608 #: ../fish/guestfish.pod:320
17609 msgid ""
17610 "Note that prepared disk images created with I<-N> are not affected by the "
17611 "I<--ro> option."
17612 msgstr ""
17613
17614 # type: textblock
17615 #: ../fish/guestfish.pod:323
17616 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17617 msgstr ""
17618
17619 # type: =item
17620 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17621 #: ../tools/virt-rescue.pl:195
17622 msgid "B<--selinux>"
17623 msgstr ""
17624
17625 # type: textblock
17626 #: ../fish/guestfish.pod:327
17627 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17628 msgstr ""
17629
17630 # type: =item
17631 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17632 msgid "B<-v> | B<--verbose>"
17633 msgstr ""
17634
17635 # type: textblock
17636 #: ../fish/guestfish.pod:331
17637 msgid ""
17638 "Enable very verbose messages.  This is particularly useful if you find a bug."
17639 msgstr ""
17640
17641 # type: =item
17642 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17643 msgid "B<-V> | B<--version>"
17644 msgstr ""
17645
17646 # type: textblock
17647 #: ../fish/guestfish.pod:336
17648 msgid "Display the guestfish / libguestfs version number and exit."
17649 msgstr ""
17650
17651 # type: =item
17652 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17653 msgid "B<-w> | B<--rw>"
17654 msgstr ""
17655
17656 # type: textblock
17657 #: ../fish/guestfish.pod:340
17658 msgid ""
17659 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17660 "WRITE> below."
17661 msgstr ""
17662
17663 # type: =item
17664 #: ../fish/guestfish.pod:343
17665 msgid "B<-x>"
17666 msgstr ""
17667
17668 # type: textblock
17669 #: ../fish/guestfish.pod:345
17670 msgid "Echo each command before executing it."
17671 msgstr ""
17672
17673 # type: =head1
17674 #: ../fish/guestfish.pod:349
17675 msgid "COMMANDS ON COMMAND LINE"
17676 msgstr ""
17677
17678 # type: textblock
17679 #: ../fish/guestfish.pod:351
17680 msgid ""
17681 "Any additional (non-option) arguments are treated as commands to execute."
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:354
17686 msgid ""
17687 "Commands to execute should be separated by a colon (C<:>), where the colon "
17688 "is a separate parameter.  Thus:"
17689 msgstr ""
17690
17691 # type: verbatim
17692 #: ../fish/guestfish.pod:357
17693 #, no-wrap
17694 msgid ""
17695 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17696 "\n"
17697 msgstr ""
17698
17699 # type: textblock
17700 #: ../fish/guestfish.pod:359
17701 msgid ""
17702 "If there are no additional arguments, then we enter a shell, either an "
17703 "interactive shell with a prompt (if the input is a terminal) or a non-"
17704 "interactive shell."
17705 msgstr ""
17706
17707 # type: textblock
17708 #: ../fish/guestfish.pod:363
17709 msgid ""
17710 "In either command line mode or non-interactive shell, the first command that "
17711 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17712 "prompt) if a command fails, you can continue to enter commands."
17713 msgstr ""
17714
17715 # type: =head1
17716 #: ../fish/guestfish.pod:368
17717 msgid "USING launch (OR run)"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:370
17722 msgid ""
17723 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17724 "then launch it, then mount any disks you need, and finally issue actions/"
17725 "commands.  So the general order of the day is:"
17726 msgstr ""
17727
17728 # type: textblock
17729 #: ../fish/guestfish.pod:378
17730 msgid "add or -a/--add"
17731 msgstr ""
17732
17733 # type: textblock
17734 #: ../fish/guestfish.pod:382
17735 msgid "launch (aka run)"
17736 msgstr ""
17737
17738 # type: textblock
17739 #: ../fish/guestfish.pod:386
17740 msgid "mount or -m/--mount"
17741 msgstr ""
17742
17743 # type: textblock
17744 #: ../fish/guestfish.pod:390
17745 msgid "any other commands"
17746 msgstr ""
17747
17748 # type: textblock
17749 #: ../fish/guestfish.pod:394
17750 msgid ""
17751 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17752 "guest before mounting or performing any other commands."
17753 msgstr ""
17754
17755 # type: textblock
17756 #: ../fish/guestfish.pod:397
17757 msgid ""
17758 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17759 "I<--new> options were given then C<run> is done automatically, simply "
17760 "because guestfish can't perform the action you asked for without doing this."
17761 msgstr ""
17762
17763 # type: =head1
17764 #: ../fish/guestfish.pod:402
17765 msgid "OPENING DISKS FOR READ AND WRITE"
17766 msgstr ""
17767
17768 # type: textblock
17769 #: ../fish/guestfish.pod:404
17770 msgid ""
17771 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17772 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17773 "open disk images read-only or for writing."
17774 msgstr ""
17775
17776 # type: textblock
17777 #: ../fish/guestfish.pod:408
17778 msgid ""
17779 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17780 "disk images supplied on the command line for write.  To open a disk image "
17781 "read-only you have to do I<-a image --ro>."
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:412
17786 msgid ""
17787 "This matters: If you accidentally open a live VM disk image writable then "
17788 "you will cause irreversible disk corruption."
17789 msgstr ""
17790
17791 # type: textblock
17792 #: ../fish/guestfish.pod:415
17793 msgid ""
17794 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17795 "images will be opened read-only.  You will have to either specify "
17796 "I<guestfish --rw> or change a configuration file in order to get write "
17797 "access for disk images specified by those other command line options."
17798 msgstr ""
17799
17800 # type: textblock
17801 #: ../fish/guestfish.pod:420
17802 msgid ""
17803 "This version of guestfish has a I<--rw> option which does nothing (it is "
17804 "already the default).  However it is highly recommended that you use this "
17805 "option to indicate that guestfish needs write access, and to prepare your "
17806 "scripts for the day when this option will be required for write access."
17807 msgstr ""
17808
17809 # type: textblock
17810 #: ../fish/guestfish.pod:426
17811 msgid ""
17812 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17813 "other libguestfs program apart from guestfish and guestmount."
17814 msgstr ""
17815
17816 # type: =head1
17817 #: ../fish/guestfish.pod:429
17818 msgid "QUOTING"
17819 msgstr ""
17820
17821 # type: textblock
17822 #: ../fish/guestfish.pod:431
17823 msgid ""
17824 "You can quote ordinary parameters using either single or double quotes.  For "
17825 "example:"
17826 msgstr ""
17827
17828 # type: verbatim
17829 #: ../fish/guestfish.pod:434
17830 #, no-wrap
17831 msgid ""
17832 " add \"file with a space.img\"\n"
17833 "\n"
17834 msgstr ""
17835
17836 # type: verbatim
17837 #: ../fish/guestfish.pod:436
17838 #, no-wrap
17839 msgid ""
17840 " rm '/file name'\n"
17841 "\n"
17842 msgstr ""
17843
17844 # type: verbatim
17845 #: ../fish/guestfish.pod:438
17846 #, no-wrap
17847 msgid ""
17848 " rm '/\"'\n"
17849 "\n"
17850 msgstr ""
17851
17852 # type: textblock
17853 #: ../fish/guestfish.pod:440
17854 msgid ""
17855 "A few commands require a list of strings to be passed.  For these, use a "
17856 "whitespace-separated list, enclosed in quotes.  Strings containing "
17857 "whitespace to be passed through must be enclosed in single quotes.  A "
17858 "literal single quote must be escaped with a backslash."
17859 msgstr ""
17860
17861 # type: verbatim
17862 #: ../fish/guestfish.pod:445
17863 #, no-wrap
17864 msgid ""
17865 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17866 " command \"/bin/echo 'foo      bar'\"\n"
17867 " command \"/bin/echo \\'foo\\'\"\n"
17868 "\n"
17869 msgstr ""
17870
17871 # type: =head1
17872 #: ../fish/guestfish.pod:449
17873 msgid "OPTIONAL ARGUMENTS"
17874 msgstr ""
17875
17876 # type: textblock
17877 #: ../fish/guestfish.pod:451
17878 msgid ""
17879 "Some commands take optional arguments.  These arguments appear in this "
17880 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17881 msgstr ""
17882
17883 # type: verbatim
17884 #: ../fish/guestfish.pod:455
17885 #, no-wrap
17886 msgid ""
17887 " add-drive-opts filename\n"
17888 "\n"
17889 msgstr ""
17890
17891 # type: verbatim
17892 #: ../fish/guestfish.pod:457
17893 #, no-wrap
17894 msgid ""
17895 " add-drive-opts filename readonly:true\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: verbatim
17900 #: ../fish/guestfish.pod:459
17901 #, no-wrap
17902 msgid ""
17903 " add-drive-opts filename format:qcow2 readonly:false\n"
17904 "\n"
17905 msgstr ""
17906
17907 # type: textblock
17908 #: ../fish/guestfish.pod:461
17909 msgid ""
17910 "Each optional argument can appear at most once.  All optional arguments must "
17911 "appear after the required ones."
17912 msgstr ""
17913
17914 # type: =head1
17915 #: ../fish/guestfish.pod:464
17916 msgid "NUMBERS"
17917 msgstr ""
17918
17919 # type: textblock
17920 #: ../fish/guestfish.pod:466
17921 msgid ""
17922 "This section applies to all commands which can take integers as parameters."
17923 msgstr ""
17924
17925 # type: =head2
17926 #: ../fish/guestfish.pod:469
17927 msgid "SIZE SUFFIX"
17928 msgstr ""
17929
17930 # type: textblock
17931 #: ../fish/guestfish.pod:471
17932 msgid ""
17933 "When the command takes a parameter measured in bytes, you can use one of the "
17934 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17935 msgstr ""
17936
17937 # type: =item
17938 #: ../fish/guestfish.pod:477
17939 msgid "B<k> or B<K> or B<KiB>"
17940 msgstr ""
17941
17942 # type: textblock
17943 #: ../fish/guestfish.pod:479
17944 msgid "The size in kilobytes (multiplied by 1024)."
17945 msgstr ""
17946
17947 # type: =item
17948 #: ../fish/guestfish.pod:481
17949 msgid "B<KB>"
17950 msgstr ""
17951
17952 # type: textblock
17953 #: ../fish/guestfish.pod:483
17954 msgid "The size in SI 1000 byte units."
17955 msgstr ""
17956
17957 # type: =item
17958 #: ../fish/guestfish.pod:485
17959 msgid "B<M> or B<MiB>"
17960 msgstr ""
17961
17962 # type: textblock
17963 #: ../fish/guestfish.pod:487
17964 msgid "The size in megabytes (multiplied by 1048576)."
17965 msgstr ""
17966
17967 # type: =item
17968 #: ../fish/guestfish.pod:489
17969 msgid "B<MB>"
17970 msgstr ""
17971
17972 # type: textblock
17973 #: ../fish/guestfish.pod:491
17974 msgid "The size in SI 1000000 byte units."
17975 msgstr ""
17976
17977 # type: =item
17978 #: ../fish/guestfish.pod:493
17979 msgid "B<G> or B<GiB>"
17980 msgstr ""
17981
17982 # type: textblock
17983 #: ../fish/guestfish.pod:495
17984 msgid "The size in gigabytes (multiplied by 2**30)."
17985 msgstr ""
17986
17987 # type: =item
17988 #: ../fish/guestfish.pod:497
17989 msgid "B<GB>"
17990 msgstr ""
17991
17992 # type: textblock
17993 #: ../fish/guestfish.pod:499
17994 msgid "The size in SI 10**9 byte units."
17995 msgstr ""
17996
17997 # type: =item
17998 #: ../fish/guestfish.pod:501
17999 msgid "B<T> or B<TiB>"
18000 msgstr ""
18001
18002 # type: textblock
18003 #: ../fish/guestfish.pod:503
18004 msgid "The size in terabytes (multiplied by 2**40)."
18005 msgstr ""
18006
18007 # type: =item
18008 #: ../fish/guestfish.pod:505
18009 msgid "B<TB>"
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish.pod:507
18014 msgid "The size in SI 10**12 byte units."
18015 msgstr ""
18016
18017 # type: =item
18018 #: ../fish/guestfish.pod:509
18019 msgid "B<P> or B<PiB>"
18020 msgstr ""
18021
18022 # type: textblock
18023 #: ../fish/guestfish.pod:511
18024 msgid "The size in petabytes (multiplied by 2**50)."
18025 msgstr ""
18026
18027 # type: =item
18028 #: ../fish/guestfish.pod:513
18029 msgid "B<PB>"
18030 msgstr ""
18031
18032 # type: textblock
18033 #: ../fish/guestfish.pod:515
18034 msgid "The size in SI 10**15 byte units."
18035 msgstr ""
18036
18037 # type: =item
18038 #: ../fish/guestfish.pod:517
18039 msgid "B<E> or B<EiB>"
18040 msgstr ""
18041
18042 # type: textblock
18043 #: ../fish/guestfish.pod:519
18044 msgid "The size in exabytes (multiplied by 2**60)."
18045 msgstr ""
18046
18047 # type: =item
18048 #: ../fish/guestfish.pod:521
18049 msgid "B<EB>"
18050 msgstr ""
18051
18052 # type: textblock
18053 #: ../fish/guestfish.pod:523
18054 msgid "The size in SI 10**18 byte units."
18055 msgstr ""
18056
18057 # type: =item
18058 #: ../fish/guestfish.pod:525
18059 msgid "B<Z> or B<ZiB>"
18060 msgstr ""
18061
18062 # type: textblock
18063 #: ../fish/guestfish.pod:527
18064 msgid "The size in zettabytes (multiplied by 2**70)."
18065 msgstr ""
18066
18067 # type: =item
18068 #: ../fish/guestfish.pod:529
18069 msgid "B<ZB>"
18070 msgstr ""
18071
18072 # type: textblock
18073 #: ../fish/guestfish.pod:531
18074 msgid "The size in SI 10**21 byte units."
18075 msgstr ""
18076
18077 # type: =item
18078 #: ../fish/guestfish.pod:533
18079 msgid "B<Y> or B<YiB>"
18080 msgstr ""
18081
18082 # type: textblock
18083 #: ../fish/guestfish.pod:535
18084 msgid "The size in yottabytes (multiplied by 2**80)."
18085 msgstr ""
18086
18087 # type: =item
18088 #: ../fish/guestfish.pod:537
18089 msgid "B<YB>"
18090 msgstr ""
18091
18092 # type: textblock
18093 #: ../fish/guestfish.pod:539
18094 msgid "The size in SI 10**24 byte units."
18095 msgstr ""
18096
18097 # type: verbatim
18098 #: ../fish/guestfish.pod:545
18099 #, no-wrap
18100 msgid ""
18101 " truncate-size /file 1G\n"
18102 "\n"
18103 msgstr ""
18104
18105 # type: textblock
18106 #: ../fish/guestfish.pod:547
18107 msgid "would truncate the file to 1 gigabyte."
18108 msgstr ""
18109
18110 # type: textblock
18111 #: ../fish/guestfish.pod:549
18112 msgid ""
18113 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18114 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18115 "suffix will probably not do what you expect."
18116 msgstr ""
18117
18118 # type: =head2
18119 #: ../fish/guestfish.pod:553
18120 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18121 msgstr ""
18122
18123 # type: textblock
18124 #: ../fish/guestfish.pod:555
18125 msgid ""
18126 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18127 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18128 msgstr ""
18129
18130 # type: verbatim
18131 #: ../fish/guestfish.pod:558
18132 #, no-wrap
18133 msgid ""
18134 " 1234      decimal number 1234\n"
18135 " 02322     octal number, equivalent to decimal 1234\n"
18136 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18137 "\n"
18138 msgstr ""
18139
18140 # type: textblock
18141 #: ../fish/guestfish.pod:562
18142 msgid ""
18143 "When using the C<chmod> command, you almost always want to specify an octal "
18144 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18145 "L<chmod(1)> program):"
18146 msgstr ""
18147
18148 # type: verbatim
18149 #: ../fish/guestfish.pod:566
18150 #, no-wrap
18151 msgid ""
18152 " chmod 0777 /public  # OK\n"
18153 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18154 "\n"
18155 msgstr ""
18156
18157 # type: textblock
18158 #: ../fish/guestfish.pod:569
18159 msgid ""
18160 "Commands that return numbers usually print them in decimal, but some "
18161 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18162 "octal, preceeded by C<0>)."
18163 msgstr ""
18164
18165 # type: =head1
18166 #: ../fish/guestfish.pod:573
18167 msgid "WILDCARDS AND GLOBBING"
18168 msgstr ""
18169
18170 # type: textblock
18171 #: ../fish/guestfish.pod:575
18172 msgid ""
18173 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18174 "(globbing) by default.  So for example the following will not do what you "
18175 "expect:"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #: ../fish/guestfish.pod:579
18180 #, no-wrap
18181 msgid ""
18182 " rm-rf /home/*\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish.pod:581
18188 msgid ""
18189 "Assuming you don't have a directory called literally C</home/*> then the "
18190 "above command will return an error."
18191 msgstr ""
18192
18193 # type: textblock
18194 #: ../fish/guestfish.pod:584
18195 msgid "To perform wildcard expansion, use the C<glob> command."
18196 msgstr ""
18197
18198 # type: verbatim
18199 #: ../fish/guestfish.pod:586
18200 #, no-wrap
18201 msgid ""
18202 " glob rm-rf /home/*\n"
18203 "\n"
18204 msgstr ""
18205
18206 # type: textblock
18207 #: ../fish/guestfish.pod:588
18208 msgid ""
18209 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18210 "many times), equivalent to:"
18211 msgstr ""
18212
18213 # type: verbatim
18214 #: ../fish/guestfish.pod:591
18215 #, no-wrap
18216 msgid ""
18217 " rm-rf /home/jim\n"
18218 " rm-rf /home/joe\n"
18219 " rm-rf /home/mary\n"
18220 "\n"
18221 msgstr ""
18222
18223 # type: textblock
18224 #: ../fish/guestfish.pod:595
18225 msgid "C<glob> only works on simple guest paths and not on device names."
18226 msgstr ""
18227
18228 # type: textblock
18229 #: ../fish/guestfish.pod:597
18230 msgid ""
18231 "If you have several parameters, each containing a wildcard, then glob will "
18232 "perform a Cartesian product."
18233 msgstr ""
18234
18235 # type: =head1
18236 #: ../fish/guestfish.pod:600
18237 msgid "COMMENTS"
18238 msgstr ""
18239
18240 # type: textblock
18241 #: ../fish/guestfish.pod:602
18242 msgid ""
18243 "Any line which starts with a I<#> character is treated as a comment and "
18244 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18245 "a command.  For example:"
18246 msgstr ""
18247
18248 # type: verbatim
18249 #: ../fish/guestfish.pod:606
18250 #, no-wrap
18251 msgid ""
18252 " # this is a comment\n"
18253 "         # this is a comment\n"
18254 " foo # NOT a comment\n"
18255 "\n"
18256 msgstr ""
18257
18258 # type: textblock
18259 #: ../fish/guestfish.pod:610
18260 msgid "Blank lines are also ignored."
18261 msgstr ""
18262
18263 # type: =head1
18264 #: ../fish/guestfish.pod:612
18265 msgid "RUNNING COMMANDS LOCALLY"
18266 msgstr ""
18267
18268 # type: textblock
18269 #: ../fish/guestfish.pod:614
18270 msgid ""
18271 "Any line which starts with a I<!> character is treated as a command sent to "
18272 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18273 msgstr ""
18274
18275 # type: verbatim
18276 #: ../fish/guestfish.pod:618
18277 #, no-wrap
18278 msgid ""
18279 " !mkdir local\n"
18280 " tgz-out /remote local/remote-data.tar.gz\n"
18281 "\n"
18282 msgstr ""
18283
18284 # type: textblock
18285 #: ../fish/guestfish.pod:621
18286 msgid ""
18287 "will create a directory C<local> on the host, and then export the contents "
18288 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18289 "(See C<tgz-out>)."
18290 msgstr ""
18291
18292 # type: textblock
18293 #: ../fish/guestfish.pod:625
18294 msgid ""
18295 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18296 "effect, due to the way that subprocesses work in Unix."
18297 msgstr ""
18298
18299 # type: =head1
18300 #: ../fish/guestfish.pod:628
18301 msgid "PIPES"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:630
18306 msgid ""
18307 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18308 "command (a guestfish command) to the second command (any host command).  For "
18309 "example:"
18310 msgstr ""
18311
18312 # type: verbatim
18313 #: ../fish/guestfish.pod:634
18314 #, no-wrap
18315 msgid ""
18316 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18317 "\n"
18318 msgstr ""
18319
18320 # type: textblock
18321 #: ../fish/guestfish.pod:636
18322 msgid ""
18323 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18324 "program).  The above command would list all accounts in the guest filesystem "
18325 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18326 msgstr ""
18327
18328 # type: verbatim
18329 #: ../fish/guestfish.pod:641
18330 #, no-wrap
18331 msgid ""
18332 " hexdump /bin/ls | head\n"
18333 " list-devices | tail -1\n"
18334 " tgz-out / - | tar ztf -\n"
18335 "\n"
18336 msgstr ""
18337
18338 # type: textblock
18339 #: ../fish/guestfish.pod:645
18340 msgid ""
18341 "The space before the pipe symbol is required, any space after the pipe "
18342 "symbol is optional.  Everything after the pipe symbol is just passed "
18343 "straight to the host shell, so it can contain redirections, globs and "
18344 "anything else that makes sense on the host side."
18345 msgstr ""
18346
18347 # type: textblock
18348 #: ../fish/guestfish.pod:650
18349 msgid ""
18350 "To use a literal argument which begins with a pipe symbol, you have to quote "
18351 "it, eg:"
18352 msgstr ""
18353
18354 # type: verbatim
18355 #: ../fish/guestfish.pod:653
18356 #, no-wrap
18357 msgid ""
18358 " echo \"|\"\n"
18359 "\n"
18360 msgstr ""
18361
18362 # type: =head1
18363 #: ../fish/guestfish.pod:655
18364 msgid "HOME DIRECTORIES"
18365 msgstr ""
18366
18367 # type: textblock
18368 #: ../fish/guestfish.pod:657
18369 msgid ""
18370 "If a parameter starts with the character C<~> then the tilde may be expanded "
18371 "as a home directory path (either C<~> for the current user's home directory, "
18372 "or C<~user> for another user)."
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish.pod:661
18377 msgid ""
18378 "Note that home directory expansion happens for users known I<on the host>, "
18379 "not in the guest filesystem."
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish.pod:664
18384 msgid ""
18385 "To use a literal argument which begins with a tilde, you have to quote it, "
18386 "eg:"
18387 msgstr ""
18388
18389 # type: verbatim
18390 #: ../fish/guestfish.pod:667
18391 #, no-wrap
18392 msgid ""
18393 " echo \"~\"\n"
18394 "\n"
18395 msgstr ""
18396
18397 # type: textblock
18398 #: ../fish/guestfish.pod:671
18399 msgid ""
18400 "Libguestfs has some support for Linux guests encrypted according to the "
18401 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18402 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18403 "LUKS is supported."
18404 msgstr ""
18405
18406 # type: textblock
18407 #: ../fish/guestfish.pod:676
18408 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18409 msgstr ""
18410
18411 # type: verbatim
18412 #: ../fish/guestfish.pod:678
18413 #, no-wrap
18414 msgid ""
18415 " ><fs> vfs-type /dev/sda2\n"
18416 " crypto_LUKS\n"
18417 "\n"
18418 msgstr ""
18419
18420 # type: textblock
18421 #: ../fish/guestfish.pod:681
18422 msgid ""
18423 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18424 "device called C</dev/mapper/luksdev>."
18425 msgstr ""
18426
18427 # type: verbatim
18428 #: ../fish/guestfish.pod:684
18429 #, no-wrap
18430 msgid ""
18431 " ><fs> luks-open /dev/sda2 luksdev\n"
18432 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18433 "\n"
18434 msgstr ""
18435
18436 # type: textblock
18437 #: ../fish/guestfish.pod:687
18438 msgid ""
18439 "Finally you have to tell LVM to scan for volume groups on the newly created "
18440 "mapper device:"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #: ../fish/guestfish.pod:690
18445 #, no-wrap
18446 msgid ""
18447 " vgscan\n"
18448 " vg-activate-all true\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: textblock
18453 #: ../fish/guestfish.pod:693
18454 msgid "The logical volume(s) can now be mounted in the usual way."
18455 msgstr ""
18456
18457 # type: textblock
18458 #: ../fish/guestfish.pod:695
18459 msgid ""
18460 "Before closing a LUKS device you must unmount any logical volumes on it and "
18461 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18462 "one.  Then you can close the mapper device:"
18463 msgstr ""
18464
18465 # type: verbatim
18466 #: ../fish/guestfish.pod:699
18467 #, no-wrap
18468 msgid ""
18469 " vg-activate false /dev/VG\n"
18470 " luks-close /dev/mapper/luksdev\n"
18471 "\n"
18472 msgstr ""
18473
18474 # type: =head1
18475 #: ../fish/guestfish.pod:702
18476 msgid "WINDOWS PATHS"
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish.pod:704
18481 msgid ""
18482 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18483 "(with some limitations).  The following commands are equivalent:"
18484 msgstr ""
18485
18486 # type: verbatim
18487 #: ../fish/guestfish.pod:707
18488 #, no-wrap
18489 msgid ""
18490 " file /WINDOWS/system32/config/system.LOG\n"
18491 "\n"
18492 msgstr ""
18493
18494 # type: verbatim
18495 #: ../fish/guestfish.pod:709
18496 #, no-wrap
18497 msgid ""
18498 " file win:/windows/system32/config/system.log\n"
18499 "\n"
18500 msgstr ""
18501
18502 # type: verbatim
18503 #: ../fish/guestfish.pod:711
18504 #, no-wrap
18505 msgid ""
18506 " file win:\\windows\\system32\\config\\system.log\n"
18507 "\n"
18508 msgstr ""
18509
18510 # type: verbatim
18511 #: ../fish/guestfish.pod:713
18512 #, no-wrap
18513 msgid ""
18514 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18515 "\n"
18516 msgstr ""
18517
18518 # type: textblock
18519 #: ../fish/guestfish.pod:715
18520 msgid ""
18521 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18522 "handles case insensitivity like Windows would.  This only works in argument "
18523 "positions that expect a path."
18524 msgstr ""
18525
18526 # type: =head1
18527 #: ../fish/guestfish.pod:719
18528 msgid "UPLOADING AND DOWNLOADING FILES"
18529 msgstr ""
18530
18531 # type: textblock
18532 #: ../fish/guestfish.pod:721
18533 msgid ""
18534 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18535 "others which upload from or download to a local file, you can use the "
18536 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18537 msgstr ""
18538
18539 # type: verbatim
18540 #: ../fish/guestfish.pod:725
18541 #, no-wrap
18542 msgid ""
18543 " upload - /foo\n"
18544 "\n"
18545 msgstr ""
18546
18547 # type: textblock
18548 #: ../fish/guestfish.pod:727
18549 msgid ""
18550 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18551 msgstr ""
18552
18553 # type: verbatim
18554 #: ../fish/guestfish.pod:730
18555 #, no-wrap
18556 msgid ""
18557 " tar-out /etc - | tar tf -\n"
18558 "\n"
18559 msgstr ""
18560
18561 # type: textblock
18562 #: ../fish/guestfish.pod:732
18563 msgid ""
18564 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18565 "command (see L</PIPES>)."
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish.pod:735
18570 msgid ""
18571 "When using C<-> to read from stdin, the input is read up to the end of "
18572 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18573 "some arbitrary end marker:"
18574 msgstr ""
18575
18576 # type: verbatim
18577 #: ../fish/guestfish.pod:739
18578 #, no-wrap
18579 msgid ""
18580 " upload -<<END /foo\n"
18581 " input line 1\n"
18582 " input line 2\n"
18583 " input line 3\n"
18584 " END\n"
18585 "\n"
18586 msgstr ""
18587
18588 # type: textblock
18589 #: ../fish/guestfish.pod:745
18590 msgid ""
18591 "Any string of characters can be used instead of C<END>.  The end marker must "
18592 "appear on a line of its own, without any preceeding or following characters "
18593 "(not even spaces)."
18594 msgstr ""
18595
18596 # type: textblock
18597 #: ../fish/guestfish.pod:749
18598 msgid ""
18599 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18600 "upload local files (so-called \"FileIn\" parameters in the generator)."
18601 msgstr ""
18602
18603 # type: =head1
18604 #: ../fish/guestfish.pod:752
18605 msgid "EXIT ON ERROR BEHAVIOUR"
18606 msgstr ""
18607
18608 # type: textblock
18609 #: ../fish/guestfish.pod:754
18610 msgid ""
18611 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18612 "taking commands from a human over a tty), and will exit on the first error "
18613 "in non-interactive mode (scripts, commands given on the command line)."
18614 msgstr ""
18615
18616 # type: textblock
18617 #: ../fish/guestfish.pod:759
18618 msgid ""
18619 "If you prefix a command with a I<-> character, then that command will not "
18620 "cause guestfish to exit, even if that (one) command returns an error."
18621 msgstr ""
18622
18623 # type: =head1
18624 #: ../fish/guestfish.pod:763
18625 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18626 msgstr ""
18627
18628 # type: textblock
18629 #: ../fish/guestfish.pod:765
18630 msgid ""
18631 "Guestfish can be remote-controlled over a socket.  This is useful "
18632 "particularly in shell scripts where you want to make several different "
18633 "changes to a filesystem, but you don't want the overhead of starting up a "
18634 "guestfish process each time."
18635 msgstr ""
18636
18637 # type: textblock
18638 #: ../fish/guestfish.pod:770
18639 msgid "Start a guestfish server process using:"
18640 msgstr ""
18641
18642 # type: verbatim
18643 #: ../fish/guestfish.pod:772
18644 #, no-wrap
18645 msgid ""
18646 " eval \"`guestfish --listen`\"\n"
18647 "\n"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../fish/guestfish.pod:774
18652 msgid "and then send it commands by doing:"
18653 msgstr ""
18654
18655 # type: verbatim
18656 #: ../fish/guestfish.pod:776
18657 #, no-wrap
18658 msgid ""
18659 " guestfish --remote cmd [...]\n"
18660 "\n"
18661 msgstr ""
18662
18663 # type: textblock
18664 #: ../fish/guestfish.pod:778
18665 msgid "To cause the server to exit, send it the exit command:"
18666 msgstr ""
18667
18668 # type: verbatim
18669 #: ../fish/guestfish.pod:780
18670 #, no-wrap
18671 msgid ""
18672 " guestfish --remote exit\n"
18673 "\n"
18674 msgstr ""
18675
18676 # type: textblock
18677 #: ../fish/guestfish.pod:782
18678 msgid ""
18679 "Note that the server will normally exit if there is an error in a command.  "
18680 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18681 "BEHAVIOUR>."
18682 msgstr ""
18683
18684 # type: =head2
18685 #: ../fish/guestfish.pod:786
18686 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18687 msgstr ""
18688
18689 # type: textblock
18690 #: ../fish/guestfish.pod:788
18691 msgid ""
18692 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18693 "is how the I<--remote> option knows where to send the commands.  You can "
18694 "have several guestfish listener processes running using:"
18695 msgstr ""
18696
18697 # type: verbatim
18698 #: ../fish/guestfish.pod:792
18699 #, no-wrap
18700 msgid ""
18701 " eval \"`guestfish --listen`\"\n"
18702 " pid1=$GUESTFISH_PID\n"
18703 " eval \"`guestfish --listen`\"\n"
18704 " pid2=$GUESTFISH_PID\n"
18705 " ...\n"
18706 " guestfish --remote=$pid1 cmd\n"
18707 " guestfish --remote=$pid2 cmd\n"
18708 "\n"
18709 msgstr ""
18710
18711 # type: =head2
18712 #: ../fish/guestfish.pod:800
18713 msgid "REMOTE CONTROL AND CSH"
18714 msgstr ""
18715
18716 # type: textblock
18717 #: ../fish/guestfish.pod:802
18718 msgid ""
18719 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18720 "option:"
18721 msgstr ""
18722
18723 # type: verbatim
18724 #: ../fish/guestfish.pod:805
18725 #, no-wrap
18726 msgid ""
18727 " eval \"`guestfish --listen --csh`\"\n"
18728 "\n"
18729 msgstr ""
18730
18731 # type: =head2
18732 #: ../fish/guestfish.pod:807
18733 msgid "REMOTE CONTROL DETAILS"
18734 msgstr ""
18735
18736 # type: textblock
18737 #: ../fish/guestfish.pod:809
18738 msgid ""
18739 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18740 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18741 "and C<$PID> is the process ID of the server."
18742 msgstr ""
18743
18744 # type: textblock
18745 #: ../fish/guestfish.pod:813
18746 msgid "Guestfish client and server versions must match exactly."
18747 msgstr ""
18748
18749 # type: =head1
18750 #: ../fish/guestfish.pod:815
18751 msgid "PREPARED DISK IMAGES"
18752 msgstr ""
18753
18754 # type: textblock
18755 #: ../fish/guestfish.pod:817
18756 msgid ""
18757 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18758 "preformatted disk images that guestfish can make for you to save typing.  "
18759 "This is particularly useful for testing purposes.  This option is used "
18760 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18761 "can be mixed with I<-a>)."
18762 msgstr ""
18763
18764 # type: textblock
18765 #: ../fish/guestfish.pod:823
18766 msgid ""
18767 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18768 "the second and so on.  Existing files in the current directory are "
18769 "I<overwritten>."
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:827
18774 msgid ""
18775 "The type briefly describes how the disk should be sized, partitioned, how "
18776 "filesystem(s) should be created, and how content should be added.  "
18777 "Optionally the type can be followed by extra parameters, separated by C<:> "
18778 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18779 "allocated disk, containing a single partition, with the partition formatted "
18780 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18781 "disk instead."
18782 msgstr ""
18783
18784 # type: textblock
18785 #: ../fish/guestfish.pod:835
18786 msgid "To list the available types and any extra parameters they take, run:"
18787 msgstr ""
18788
18789 # type: textblock
18790 #: ../fish/guestfish.pod:839
18791 msgid ""
18792 "Note that the prepared filesystem is not mounted.  You would usually have to "
18793 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:843
18798 msgid ""
18799 "If any I<-N> or I<--new> options are given, the guest is automatically "
18800 "launched."
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish.pod:848
18805 msgid "Create a 100MB disk with an ext4-formatted partition:"
18806 msgstr ""
18807
18808 # type: verbatim
18809 #: ../fish/guestfish.pod:850
18810 #, no-wrap
18811 msgid ""
18812 " guestfish -N fs:ext4\n"
18813 "\n"
18814 msgstr ""
18815
18816 # type: textblock
18817 #: ../fish/guestfish.pod:852
18818 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18819 msgstr ""
18820
18821 # type: verbatim
18822 #: ../fish/guestfish.pod:854
18823 #, no-wrap
18824 msgid ""
18825 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18826 "\n"
18827 msgstr ""
18828
18829 # type: textblock
18830 #: ../fish/guestfish.pod:856
18831 msgid "Create a blank 200MB disk:"
18832 msgstr ""
18833
18834 # type: verbatim
18835 #: ../fish/guestfish.pod:858
18836 #, no-wrap
18837 msgid ""
18838 " guestfish -N disk:200M\n"
18839 "\n"
18840 msgstr ""
18841
18842 # type: =head1
18843 #: ../fish/guestfish.pod:860
18844 msgid "PROGRESS BARS"
18845 msgstr ""
18846
18847 # type: textblock
18848 #: ../fish/guestfish.pod:862
18849 msgid ""
18850 "Some (not all) long-running commands send progress notification messages as "
18851 "they are running.  Guestfish turns these messages into progress bars."
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish.pod:866
18856 msgid ""
18857 "When a command that supports progress bars takes longer than two seconds to "
18858 "run, and if progress bars are enabled, then you will see one appearing below "
18859 "the command:"
18860 msgstr ""
18861
18862 # type: verbatim
18863 #: ../fish/guestfish.pod:870
18864 #, no-wrap
18865 msgid ""
18866 " ><fs> copy-size /large-file /another-file 2048M\n"
18867 " / 10% [#####-----------------------------------------] 00:30\n"
18868 "\n"
18869 msgstr ""
18870
18871 # type: textblock
18872 #: ../fish/guestfish.pod:873
18873 msgid ""
18874 "The spinner on the left hand side moves round once for every progress "
18875 "notification received from the backend.  This is a (reasonably) golden "
18876 "assurance that the command is \"doing something\" even if the progress bar "
18877 "is not moving, because the command is able to send the progress "
18878 "notifications.  When the bar reaches 100% and the command finishes, the "
18879 "spinner disappears."
18880 msgstr ""
18881
18882 # type: textblock
18883 #: ../fish/guestfish.pod:880
18884 msgid ""
18885 "Progress bars are enabled by default when guestfish is used interactively.  "
18886 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18887 "and you can disable them completely using I<--no-progress-bars>."
18888 msgstr ""
18889
18890 # type: =head1
18891 #: ../fish/guestfish.pod:885
18892 msgid "GUESTFISH COMMANDS"
18893 msgstr ""
18894
18895 # type: textblock
18896 #: ../fish/guestfish.pod:887
18897 msgid ""
18898 "The commands in this section are guestfish convenience commands, in other "
18899 "words, they are not part of the L<guestfs(3)> API."
18900 msgstr ""
18901
18902 # type: =head2
18903 #: ../fish/guestfish.pod:890
18904 msgid "help"
18905 msgstr ""
18906
18907 # type: verbatim
18908 #: ../fish/guestfish.pod:892
18909 #, no-wrap
18910 msgid ""
18911 " help\n"
18912 " help cmd\n"
18913 "\n"
18914 msgstr ""
18915
18916 # type: textblock
18917 #: ../fish/guestfish.pod:895
18918 msgid "Without any parameter, this provides general help."
18919 msgstr ""
18920
18921 # type: textblock
18922 #: ../fish/guestfish.pod:897
18923 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18924 msgstr ""
18925
18926 # type: =head2
18927 #: ../fish/guestfish.pod:899
18928 msgid "quit | exit"
18929 msgstr ""
18930
18931 # type: textblock
18932 #: ../fish/guestfish.pod:901
18933 msgid "This exits guestfish.  You can also use C<^D> key."
18934 msgstr ""
18935
18936 # type: textblock
18937 #: ../fish/guestfish.pod:903
18938 msgid "@FISH_COMMANDS@"
18939 msgstr ""
18940
18941 # type: =head1
18942 #: ../fish/guestfish.pod:905
18943 msgid "COMMANDS"
18944 msgstr ""
18945
18946 # type: =head1
18947 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18948 msgid "EXIT CODE"
18949 msgstr ""
18950
18951 # type: textblock
18952 #: ../fish/guestfish.pod:911
18953 msgid ""
18954 "guestfish returns 0 if the commands completed without error, or 1 if there "
18955 "was an error."
18956 msgstr ""
18957
18958 # type: =item
18959 #: ../fish/guestfish.pod:918
18960 msgid "EDITOR"
18961 msgstr ""
18962
18963 # type: textblock
18964 #: ../fish/guestfish.pod:920
18965 msgid ""
18966 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18967 "C<vi>."
18968 msgstr ""
18969
18970 # type: =item
18971 #: ../fish/guestfish.pod:923
18972 msgid "GUESTFISH_PID"
18973 msgstr ""
18974
18975 # type: textblock
18976 #: ../fish/guestfish.pod:925
18977 msgid ""
18978 "Used with the I<--remote> option to specify the remote guestfish process to "
18979 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18980 msgstr ""
18981
18982 # type: =item
18983 #: ../fish/guestfish.pod:929
18984 msgid "HEXEDITOR"
18985 msgstr ""
18986
18987 # type: textblock
18988 #: ../fish/guestfish.pod:931
18989 msgid ""
18990 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18991 "not specified, the external L<hexedit(1)> program is used."
18992 msgstr ""
18993
18994 # type: =item
18995 #: ../fish/guestfish.pod:935
18996 msgid "HOME"
18997 msgstr ""
18998
18999 # type: textblock
19000 #: ../fish/guestfish.pod:937
19001 msgid ""
19002 "If compiled with GNU readline support, various files in the home directory "
19003 "can be used.  See L</FILES>."
19004 msgstr ""
19005
19006 # type: textblock
19007 #: ../fish/guestfish.pod:946
19008 msgid ""
19009 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19010 "effect as using the B<-v> option."
19011 msgstr ""
19012
19013 # type: textblock
19014 #: ../fish/guestfish.pod:958
19015 msgid ""
19016 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19017 "the discussion of paths in L<guestfs(3)>."
19018 msgstr ""
19019
19020 # type: textblock
19021 #: ../fish/guestfish.pod:969
19022 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19023 msgstr ""
19024
19025 # type: =item
19026 #: ../fish/guestfish.pod:971
19027 msgid "PAGER"
19028 msgstr ""
19029
19030 # type: textblock
19031 #: ../fish/guestfish.pod:973
19032 msgid ""
19033 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19034 "C<more>."
19035 msgstr ""
19036
19037 # type: =head1
19038 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
19039 msgid "FILES"
19040 msgstr ""
19041
19042 # type: =item
19043 #: ../fish/guestfish.pod:992
19044 msgid "$HOME/.guestfish"
19045 msgstr ""
19046
19047 # type: textblock
19048 #: ../fish/guestfish.pod:994
19049 msgid ""
19050 "If compiled with GNU readline support, then the command history is saved in "
19051 "this file."
19052 msgstr ""
19053
19054 # type: =item
19055 #: ../fish/guestfish.pod:997
19056 msgid "$HOME/.inputrc"
19057 msgstr ""
19058
19059 # type: =item
19060 #: ../fish/guestfish.pod:999
19061 msgid "/etc/inputrc"
19062 msgstr ""
19063
19064 # type: textblock
19065 #: ../fish/guestfish.pod:1001
19066 msgid ""
19067 "If compiled with GNU readline support, then these files can be used to "
19068 "configure readline.  For further information, please see L<readline(3)/"
19069 "INITIALIZATION FILE>."
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish.pod:1005
19074 msgid "To write rules which only apply to guestfish, use:"
19075 msgstr ""
19076
19077 # type: verbatim
19078 #: ../fish/guestfish.pod:1007
19079 #, no-wrap
19080 msgid ""
19081 " $if guestfish\n"
19082 " ...\n"
19083 " $endif\n"
19084 "\n"
19085 msgstr ""
19086
19087 # type: textblock
19088 #: ../fish/guestfish.pod:1011
19089 msgid ""
19090 "Variables that you can set in inputrc that change the behaviour of guestfish "
19091 "in useful ways include:"
19092 msgstr ""
19093
19094 # type: =item
19095 #: ../fish/guestfish.pod:1016
19096 msgid "completion-ignore-case (default: on)"
19097 msgstr ""
19098
19099 # type: textblock
19100 #: ../fish/guestfish.pod:1018
19101 msgid ""
19102 "By default, guestfish will ignore case when tab-completing paths on the "
19103 "disk.  Use:"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish.pod:1021
19108 #, no-wrap
19109 msgid ""
19110 " set completion-ignore-case off\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: textblock
19115 #: ../fish/guestfish.pod:1023
19116 msgid "to make guestfish case sensitive."
19117 msgstr ""
19118
19119 # type: =item
19120 #: ../fish/guestfish.pod:1027
19121 msgid "test1.img"
19122 msgstr ""
19123
19124 # type: =item
19125 #: ../fish/guestfish.pod:1029
19126 msgid "test2.img (etc)"
19127 msgstr ""
19128
19129 # type: textblock
19130 #: ../fish/guestfish.pod:1031
19131 msgid ""
19132 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19133 "will be created in the file C<test1.img> in the current directory.  The "
19134 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19135 "the same name will be overwritten."
19136 msgstr ""
19137
19138 # type: textblock
19139 #: ../fish/guestfish.pod:1040
19140 msgid ""
19141 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19142 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
19143 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19144 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
19145 msgstr ""
19146
19147 # type: textblock
19148 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
19149 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:480
19150 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
19151 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
19152 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
19153 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
19154 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
19155 msgid ""
19156 "This program is free software; you can redistribute it and/or modify it "
19157 "under the terms of the GNU General Public License as published by the Free "
19158 "Software Foundation; either version 2 of the License, or (at your option) "
19159 "any later version."
19160 msgstr ""
19161
19162 # type: textblock
19163 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
19164 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:485
19165 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
19166 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
19167 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
19168 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
19169 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
19170 msgid ""
19171 "This program is distributed in the hope that it will be useful, but WITHOUT "
19172 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19173 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19174 "more details."
19175 msgstr ""
19176
19177 # type: textblock
19178 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
19179 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:490
19180 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
19181 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
19182 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
19183 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
19184 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
19185 msgid ""
19186 "You should have received a copy of the GNU General Public License along with "
19187 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19188 "Ave, Cambridge, MA 02139, USA."
19189 msgstr ""
19190
19191 # type: =head2
19192 #: ../fish/guestfish-actions.pod:1
19193 msgid "add-cdrom"
19194 msgstr ""
19195
19196 # type: verbatim
19197 #: ../fish/guestfish-actions.pod:3
19198 #, no-wrap
19199 msgid ""
19200 " add-cdrom filename\n"
19201 "\n"
19202 msgstr ""
19203
19204 # type: textblock
19205 #: ../fish/guestfish-actions.pod:15
19206 msgid ""
19207 "This call checks for the existence of C<filename>.  This stops you from "
19208 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19209 "and C<http:> URLs.  To specify those, use the general L</config> call "
19210 "instead."
19211 msgstr ""
19212
19213 # type: textblock
19214 #: ../fish/guestfish-actions.pod:22
19215 msgid ""
19216 "If you just want to add an ISO file (often you use this as an efficient way "
19217 "to transfer large files into the guest), then you should probably use L</add-"
19218 "drive-ro> instead."
19219 msgstr ""
19220
19221 # type: =head2
19222 #: ../fish/guestfish-actions.pod:35
19223 msgid "add-domain"
19224 msgstr ""
19225
19226 # type: =head2
19227 #: ../fish/guestfish-actions.pod:37
19228 msgid "domain"
19229 msgstr ""
19230
19231 # type: verbatim
19232 #: ../fish/guestfish-actions.pod:39
19233 #, no-wrap
19234 msgid ""
19235 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19236 "\n"
19237 msgstr ""
19238
19239 # type: textblock
19240 #: ../fish/guestfish-actions.pod:41
19241 msgid ""
19242 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19243 "It works by connecting to libvirt, requesting the domain and domain XML from "
19244 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19245 msgstr ""
19246
19247 # type: textblock
19248 #: ../fish/guestfish-actions.pod:58
19249 msgid ""
19250 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19251 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19252 "libvirt URI (or one set through an environment variable, see the libvirt "
19253 "documentation for full details).  If you are using the C API directly then "
19254 "it is more flexible to create the libvirt connection object yourself, get "
19255 "the domain object, and call L</add-libvirt-dom>."
19256 msgstr ""
19257
19258 # type: textblock
19259 #: ../fish/guestfish-actions.pod:66
19260 msgid ""
19261 "The other optional parameters are passed directly through to L</add-drive-"
19262 "opts>."
19263 msgstr ""
19264
19265 # type: textblock
19266 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19267 msgid ""
19268 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19269 msgstr ""
19270
19271 # type: =head2
19272 #: ../fish/guestfish-actions.pod:71
19273 msgid "add-drive"
19274 msgstr ""
19275
19276 # type: verbatim
19277 #: ../fish/guestfish-actions.pod:73
19278 #, no-wrap
19279 msgid ""
19280 " add-drive filename\n"
19281 "\n"
19282 msgstr ""
19283
19284 # type: textblock
19285 #: ../fish/guestfish-actions.pod:75
19286 msgid ""
19287 "This function is the equivalent of calling L</add-drive-opts> with no "
19288 "optional parameters, so the disk is added writable, with the format being "
19289 "detected automatically."
19290 msgstr ""
19291
19292 # type: textblock
19293 #: ../fish/guestfish-actions.pod:79
19294 msgid ""
19295 "Automatic detection of the format opens you up to a potential security hole "
19296 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19297 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19298 "you should think about replacing calls to this function with calls to L</add-"
19299 "drive-opts>, and specifying the format."
19300 msgstr ""
19301
19302 # type: =head2
19303 #: ../fish/guestfish-actions.pod:86
19304 msgid "add-drive-opts"
19305 msgstr ""
19306
19307 # type: =head2
19308 #: ../fish/guestfish-actions.pod:88
19309 msgid "add"
19310 msgstr ""
19311
19312 # type: verbatim
19313 #: ../fish/guestfish-actions.pod:90
19314 #, no-wrap
19315 msgid ""
19316 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19317 "\n"
19318 msgstr ""
19319
19320 # type: textblock
19321 #: ../fish/guestfish-actions.pod:117
19322 msgid ""
19323 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19324 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19325 "include C<raw> and C<qcow2>."
19326 msgstr ""
19327
19328 # type: textblock
19329 #: ../fish/guestfish-actions.pod:128
19330 msgid ""
19331 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19332 "add-drive-with-if> call (q.v.)"
19333 msgstr ""
19334
19335 # type: =head2
19336 #: ../fish/guestfish-actions.pod:135
19337 msgid "add-drive-ro"
19338 msgstr ""
19339
19340 # type: =head2
19341 #: ../fish/guestfish-actions.pod:137
19342 msgid "add-ro"
19343 msgstr ""
19344
19345 # type: verbatim
19346 #: ../fish/guestfish-actions.pod:139
19347 #, no-wrap
19348 msgid ""
19349 " add-drive-ro filename\n"
19350 "\n"
19351 msgstr ""
19352
19353 # type: textblock
19354 #: ../fish/guestfish-actions.pod:141
19355 msgid ""
19356 "This function is the equivalent of calling L</add-drive-opts> with the "
19357 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19358 "is added read-only, with the format being detected automatically."
19359 msgstr ""
19360
19361 # type: =head2
19362 #: ../fish/guestfish-actions.pod:146
19363 msgid "add-drive-ro-with-if"
19364 msgstr ""
19365
19366 # type: verbatim
19367 #: ../fish/guestfish-actions.pod:148
19368 #, no-wrap
19369 msgid ""
19370 " add-drive-ro-with-if filename iface\n"
19371 "\n"
19372 msgstr ""
19373
19374 # type: textblock
19375 #: ../fish/guestfish-actions.pod:150
19376 msgid ""
19377 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19378 "interface emulation to use at run time."
19379 msgstr ""
19380
19381 # type: =head2
19382 #: ../fish/guestfish-actions.pod:160
19383 msgid "add-drive-with-if"
19384 msgstr ""
19385
19386 # type: verbatim
19387 #: ../fish/guestfish-actions.pod:162
19388 #, no-wrap
19389 msgid ""
19390 " add-drive-with-if filename iface\n"
19391 "\n"
19392 msgstr ""
19393
19394 # type: textblock
19395 #: ../fish/guestfish-actions.pod:164
19396 msgid ""
19397 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19398 "interface emulation to use at run time."
19399 msgstr ""
19400
19401 # type: =head2
19402 #: ../fish/guestfish-actions.pod:174
19403 msgid "aug-clear"
19404 msgstr ""
19405
19406 # type: verbatim
19407 #: ../fish/guestfish-actions.pod:176
19408 #, no-wrap
19409 msgid ""
19410 " aug-clear augpath\n"
19411 "\n"
19412 msgstr ""
19413
19414 # type: =head2
19415 #: ../fish/guestfish-actions.pod:181
19416 msgid "aug-close"
19417 msgstr ""
19418
19419 # type: verbatim
19420 #: ../fish/guestfish-actions.pod:183
19421 #, no-wrap
19422 msgid ""
19423 " aug-close\n"
19424 "\n"
19425 msgstr ""
19426
19427 # type: textblock
19428 #: ../fish/guestfish-actions.pod:185
19429 msgid ""
19430 "Close the current Augeas handle and free up any resources used by it.  After "
19431 "calling this, you have to call L</aug-init> again before you can use any "
19432 "other Augeas functions."
19433 msgstr ""
19434
19435 # type: =head2
19436 #: ../fish/guestfish-actions.pod:190
19437 msgid "aug-defnode"
19438 msgstr ""
19439
19440 # type: verbatim
19441 #: ../fish/guestfish-actions.pod:192
19442 #, no-wrap
19443 msgid ""
19444 " aug-defnode name expr val\n"
19445 "\n"
19446 msgstr ""
19447
19448 # type: textblock
19449 #: ../fish/guestfish-actions.pod:197
19450 msgid ""
19451 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19452 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19453 "containing that single node."
19454 msgstr ""
19455
19456 # type: =head2
19457 #: ../fish/guestfish-actions.pod:205
19458 msgid "aug-defvar"
19459 msgstr ""
19460
19461 # type: verbatim
19462 #: ../fish/guestfish-actions.pod:207
19463 #, no-wrap
19464 msgid ""
19465 " aug-defvar name expr\n"
19466 "\n"
19467 msgstr ""
19468
19469 # type: =head2
19470 #: ../fish/guestfish-actions.pod:216
19471 msgid "aug-get"
19472 msgstr ""
19473
19474 # type: verbatim
19475 #: ../fish/guestfish-actions.pod:218
19476 #, no-wrap
19477 msgid ""
19478 " aug-get augpath\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:223
19484 msgid "aug-init"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:225
19489 #, no-wrap
19490 msgid ""
19491 " aug-init root flags\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: textblock
19496 #: ../fish/guestfish-actions.pod:231
19497 msgid "You must call this before using any other L</aug-*> commands."
19498 msgstr ""
19499
19500 # type: textblock
19501 #: ../fish/guestfish-actions.pod:266
19502 msgid "Do not load the tree in L</aug-init>."
19503 msgstr ""
19504
19505 # type: textblock
19506 #: ../fish/guestfish-actions.pod:270
19507 msgid "To close the handle, you can call L</aug-close>."
19508 msgstr ""
19509
19510 # type: =head2
19511 #: ../fish/guestfish-actions.pod:274
19512 msgid "aug-insert"
19513 msgstr ""
19514
19515 # type: verbatim
19516 #: ../fish/guestfish-actions.pod:276
19517 #, no-wrap
19518 msgid ""
19519 " aug-insert augpath label true|false\n"
19520 "\n"
19521 msgstr ""
19522
19523 # type: =head2
19524 #: ../fish/guestfish-actions.pod:286
19525 msgid "aug-load"
19526 msgstr ""
19527
19528 # type: verbatim
19529 #: ../fish/guestfish-actions.pod:288
19530 #, no-wrap
19531 msgid ""
19532 " aug-load\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: =head2
19537 #: ../fish/guestfish-actions.pod:295
19538 msgid "aug-ls"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #: ../fish/guestfish-actions.pod:297
19543 #, no-wrap
19544 msgid ""
19545 " aug-ls augpath\n"
19546 "\n"
19547 msgstr ""
19548
19549 # type: textblock
19550 #: ../fish/guestfish-actions.pod:299
19551 msgid ""
19552 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19553 "resulting nodes into alphabetical order."
19554 msgstr ""
19555
19556 # type: =head2
19557 #: ../fish/guestfish-actions.pod:302
19558 msgid "aug-match"
19559 msgstr ""
19560
19561 # type: verbatim
19562 #: ../fish/guestfish-actions.pod:304
19563 #, no-wrap
19564 msgid ""
19565 " aug-match augpath\n"
19566 "\n"
19567 msgstr ""
19568
19569 # type: =head2
19570 #: ../fish/guestfish-actions.pod:310
19571 msgid "aug-mv"
19572 msgstr ""
19573
19574 # type: verbatim
19575 #: ../fish/guestfish-actions.pod:312
19576 #, no-wrap
19577 msgid ""
19578 " aug-mv src dest\n"
19579 "\n"
19580 msgstr ""
19581
19582 # type: =head2
19583 #: ../fish/guestfish-actions.pod:317
19584 msgid "aug-rm"
19585 msgstr ""
19586
19587 # type: verbatim
19588 #: ../fish/guestfish-actions.pod:319
19589 #, no-wrap
19590 msgid ""
19591 " aug-rm augpath\n"
19592 "\n"
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:325
19597 msgid "aug-save"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:327
19602 #, no-wrap
19603 msgid ""
19604 " aug-save\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: textblock
19609 #: ../fish/guestfish-actions.pod:331
19610 msgid ""
19611 "The flags which were passed to L</aug-init> affect exactly how files are "
19612 "saved."
19613 msgstr ""
19614
19615 # type: =head2
19616 #: ../fish/guestfish-actions.pod:334
19617 msgid "aug-set"
19618 msgstr ""
19619
19620 # type: verbatim
19621 #: ../fish/guestfish-actions.pod:336
19622 #, no-wrap
19623 msgid ""
19624 " aug-set augpath val\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: textblock
19629 #: ../fish/guestfish-actions.pod:340
19630 msgid ""
19631 "In the Augeas API, it is possible to clear a node by setting the value to "
19632 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19633 "this call.  Instead you must use the L</aug-clear> call."
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:345
19638 msgid "available"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:347
19643 #, no-wrap
19644 msgid ""
19645 " available 'groups ...'\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: textblock
19650 #: ../fish/guestfish-actions.pod:353
19651 msgid ""
19652 "The libguestfs groups, and the functions that those groups correspond to, "
19653 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19654 "runtime by calling L</available-all-groups>."
19655 msgstr ""
19656
19657 # type: textblock
19658 #: ../fish/guestfish-actions.pod:377
19659 msgid "You must call L</launch> before calling this function."
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:399
19664 msgid ""
19665 "This call was added in version C<1.0.80>.  In previous versions of "
19666 "libguestfs all you could do would be to speculatively execute a command to "
19667 "find out if the daemon implemented it.  See also L</version>."
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:406
19672 msgid "available-all-groups"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:408
19677 #, no-wrap
19678 msgid ""
19679 " available-all-groups\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: textblock
19684 #: ../fish/guestfish-actions.pod:410
19685 msgid ""
19686 "This command returns a list of all optional groups that this daemon knows "
19687 "about.  Note this returns both supported and unsupported groups.  To find "
19688 "out which ones the daemon can actually support you have to call L</"
19689 "available> on each member of the returned list."
19690 msgstr ""
19691
19692 # type: textblock
19693 #: ../fish/guestfish-actions.pod:416
19694 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19695 msgstr ""
19696
19697 # type: =head2
19698 #: ../fish/guestfish-actions.pod:418
19699 msgid "base64-in"
19700 msgstr ""
19701
19702 # type: verbatim
19703 #: ../fish/guestfish-actions.pod:420
19704 #, no-wrap
19705 msgid ""
19706 " base64-in (base64file|-) filename\n"
19707 "\n"
19708 msgstr ""
19709
19710 # type: textblock
19711 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19712 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19713 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19714 #: ../fish/guestfish-actions.pod:4113 ../fish/guestfish-actions.pod:4125
19715 #: ../fish/guestfish-actions.pod:4136 ../fish/guestfish-actions.pod:4147
19716 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4208
19717 #: ../fish/guestfish-actions.pod:4262 ../fish/guestfish-actions.pod:4285
19718 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19719 msgstr ""
19720
19721 # type: =head2
19722 #: ../fish/guestfish-actions.pod:427
19723 msgid "base64-out"
19724 msgstr ""
19725
19726 # type: verbatim
19727 #: ../fish/guestfish-actions.pod:429
19728 #, no-wrap
19729 msgid ""
19730 " base64-out filename (base64file|-)\n"
19731 "\n"
19732 msgstr ""
19733
19734 # type: =head2
19735 #: ../fish/guestfish-actions.pod:436
19736 msgid "blockdev-flushbufs"
19737 msgstr ""
19738
19739 # type: verbatim
19740 #: ../fish/guestfish-actions.pod:438
19741 #, no-wrap
19742 msgid ""
19743 " blockdev-flushbufs device\n"
19744 "\n"
19745 msgstr ""
19746
19747 # type: =head2
19748 #: ../fish/guestfish-actions.pod:445
19749 msgid "blockdev-getbsz"
19750 msgstr ""
19751
19752 # type: verbatim
19753 #: ../fish/guestfish-actions.pod:447
19754 #, no-wrap
19755 msgid ""
19756 " blockdev-getbsz device\n"
19757 "\n"
19758 msgstr ""
19759
19760 # type: =head2
19761 #: ../fish/guestfish-actions.pod:456
19762 msgid "blockdev-getro"
19763 msgstr ""
19764
19765 # type: verbatim
19766 #: ../fish/guestfish-actions.pod:458
19767 #, no-wrap
19768 msgid ""
19769 " blockdev-getro device\n"
19770 "\n"
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:465
19775 msgid "blockdev-getsize64"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:467
19780 #, no-wrap
19781 msgid ""
19782 " blockdev-getsize64 device\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: textblock
19787 #: ../fish/guestfish-actions.pod:471
19788 msgid "See also L</blockdev-getsz>."
19789 msgstr ""
19790
19791 # type: =head2
19792 #: ../fish/guestfish-actions.pod:475
19793 msgid "blockdev-getss"
19794 msgstr ""
19795
19796 # type: verbatim
19797 #: ../fish/guestfish-actions.pod:477
19798 #, no-wrap
19799 msgid ""
19800 " blockdev-getss device\n"
19801 "\n"
19802 msgstr ""
19803
19804 # type: textblock
19805 #: ../fish/guestfish-actions.pod:482
19806 msgid ""
19807 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19808 msgstr ""
19809
19810 # type: =head2
19811 #: ../fish/guestfish-actions.pod:487
19812 msgid "blockdev-getsz"
19813 msgstr ""
19814
19815 # type: verbatim
19816 #: ../fish/guestfish-actions.pod:489
19817 #, no-wrap
19818 msgid ""
19819 " blockdev-getsz device\n"
19820 "\n"
19821 msgstr ""
19822
19823 # type: textblock
19824 #: ../fish/guestfish-actions.pod:494
19825 msgid ""
19826 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19827 "blockdev-getsize64> for the more useful I<size in bytes>."
19828 msgstr ""
19829
19830 # type: =head2
19831 #: ../fish/guestfish-actions.pod:500
19832 msgid "blockdev-rereadpt"
19833 msgstr ""
19834
19835 # type: verbatim
19836 #: ../fish/guestfish-actions.pod:502
19837 #, no-wrap
19838 msgid ""
19839 " blockdev-rereadpt device\n"
19840 "\n"
19841 msgstr ""
19842
19843 # type: =head2
19844 #: ../fish/guestfish-actions.pod:508
19845 msgid "blockdev-setbsz"
19846 msgstr ""
19847
19848 # type: verbatim
19849 #: ../fish/guestfish-actions.pod:510
19850 #, no-wrap
19851 msgid ""
19852 " blockdev-setbsz device blocksize\n"
19853 "\n"
19854 msgstr ""
19855
19856 # type: =head2
19857 #: ../fish/guestfish-actions.pod:519
19858 msgid "blockdev-setro"
19859 msgstr ""
19860
19861 # type: verbatim
19862 #: ../fish/guestfish-actions.pod:521
19863 #, no-wrap
19864 msgid ""
19865 " blockdev-setro device\n"
19866 "\n"
19867 msgstr ""
19868
19869 # type: =head2
19870 #: ../fish/guestfish-actions.pod:527
19871 msgid "blockdev-setrw"
19872 msgstr ""
19873
19874 # type: verbatim
19875 #: ../fish/guestfish-actions.pod:529
19876 #, no-wrap
19877 msgid ""
19878 " blockdev-setrw device\n"
19879 "\n"
19880 msgstr ""
19881
19882 # type: =head2
19883 #: ../fish/guestfish-actions.pod:535
19884 msgid "case-sensitive-path"
19885 msgstr ""
19886
19887 # type: verbatim
19888 #: ../fish/guestfish-actions.pod:537
19889 #, no-wrap
19890 msgid ""
19891 " case-sensitive-path path\n"
19892 "\n"
19893 msgstr ""
19894
19895 # type: textblock
19896 #: ../fish/guestfish-actions.pod:561
19897 msgid ""
19898 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19899 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19900 "the directories were originally created under Windows)."
19901 msgstr ""
19902
19903 # type: textblock
19904 #: ../fish/guestfish-actions.pod:569
19905 msgid "See also L</realpath>."
19906 msgstr ""
19907
19908 # type: =head2
19909 #: ../fish/guestfish-actions.pod:571
19910 msgid "cat"
19911 msgstr ""
19912
19913 # type: verbatim
19914 #: ../fish/guestfish-actions.pod:573
19915 #, no-wrap
19916 msgid ""
19917 " cat path\n"
19918 "\n"
19919 msgstr ""
19920
19921 # type: textblock
19922 #: ../fish/guestfish-actions.pod:577
19923 msgid ""
19924 "Note that this function cannot correctly handle binary files (specifically, "
19925 "files containing C<\\0> character which is treated as end of string).  For "
19926 "those you need to use the L</read-file> or L</download> functions which have "
19927 "a more complex interface."
19928 msgstr ""
19929
19930 # type: =head2
19931 #: ../fish/guestfish-actions.pod:585
19932 msgid "checksum"
19933 msgstr ""
19934
19935 # type: verbatim
19936 #: ../fish/guestfish-actions.pod:587
19937 #, no-wrap
19938 msgid ""
19939 " checksum csumtype path\n"
19940 "\n"
19941 msgstr ""
19942
19943 # type: textblock
19944 #: ../fish/guestfish-actions.pod:630
19945 msgid "To get the checksum for a device, use L</checksum-device>."
19946 msgstr ""
19947
19948 # type: textblock
19949 #: ../fish/guestfish-actions.pod:632
19950 msgid "To get the checksums for many files, use L</checksums-out>."
19951 msgstr ""
19952
19953 # type: =head2
19954 #: ../fish/guestfish-actions.pod:634
19955 msgid "checksum-device"
19956 msgstr ""
19957
19958 # type: verbatim
19959 #: ../fish/guestfish-actions.pod:636
19960 #, no-wrap
19961 msgid ""
19962 " checksum-device csumtype device\n"
19963 "\n"
19964 msgstr ""
19965
19966 # type: textblock
19967 #: ../fish/guestfish-actions.pod:638
19968 msgid ""
19969 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19970 "device named C<device>.  For the types of checksums supported see the L</"
19971 "checksum> command."
19972 msgstr ""
19973
19974 # type: =head2
19975 #: ../fish/guestfish-actions.pod:642
19976 msgid "checksums-out"
19977 msgstr ""
19978
19979 # type: verbatim
19980 #: ../fish/guestfish-actions.pod:644
19981 #, no-wrap
19982 msgid ""
19983 " checksums-out csumtype directory (sumsfile|-)\n"
19984 "\n"
19985 msgstr ""
19986
19987 # type: =head2
19988 #: ../fish/guestfish-actions.pod:660
19989 msgid "chmod"
19990 msgstr ""
19991
19992 # type: verbatim
19993 #: ../fish/guestfish-actions.pod:662
19994 #, no-wrap
19995 msgid ""
19996 " chmod mode path\n"
19997 "\n"
19998 msgstr ""
19999
20000 # type: =head2
20001 #: ../fish/guestfish-actions.pod:673
20002 msgid "chown"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #: ../fish/guestfish-actions.pod:675
20007 #, no-wrap
20008 msgid ""
20009 " chown owner group path\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: =head2
20014 #: ../fish/guestfish-actions.pod:683
20015 msgid "command"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #: ../fish/guestfish-actions.pod:685
20020 #, no-wrap
20021 msgid ""
20022 " command 'arguments ...'\n"
20023 "\n"
20024 msgstr ""
20025
20026 # type: textblock
20027 #: ../fish/guestfish-actions.pod:692
20028 msgid ""
20029 "The single parameter is an argv-style list of arguments.  The first element "
20030 "is the name of the program to run.  Subsequent elements are parameters.  The "
20031 "list must be non-empty (ie. must contain a program name).  Note that the "
20032 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:720
20037 msgid "command-lines"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:722
20042 #, no-wrap
20043 msgid ""
20044 " command-lines 'arguments ...'\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:724
20050 msgid ""
20051 "This is the same as L</command>, but splits the result into a list of lines."
20052 msgstr ""
20053
20054 # type: textblock
20055 #: ../fish/guestfish-actions.pod:727
20056 msgid "See also: L</sh-lines>"
20057 msgstr ""
20058
20059 # type: =head2
20060 #: ../fish/guestfish-actions.pod:732
20061 msgid "config"
20062 msgstr ""
20063
20064 # type: verbatim
20065 #: ../fish/guestfish-actions.pod:734
20066 #, no-wrap
20067 msgid ""
20068 " config qemuparam qemuvalue\n"
20069 "\n"
20070 msgstr ""
20071
20072 # type: =head2
20073 #: ../fish/guestfish-actions.pod:745
20074 msgid "copy-size"
20075 msgstr ""
20076
20077 # type: verbatim
20078 #: ../fish/guestfish-actions.pod:747
20079 #, no-wrap
20080 msgid ""
20081 " copy-size src dest size\n"
20082 "\n"
20083 msgstr ""
20084
20085 # type: =head2
20086 #: ../fish/guestfish-actions.pod:755
20087 msgid "cp"
20088 msgstr ""
20089
20090 # type: verbatim
20091 #: ../fish/guestfish-actions.pod:757
20092 #, no-wrap
20093 msgid ""
20094 " cp src dest\n"
20095 "\n"
20096 msgstr ""
20097
20098 # type: =head2
20099 #: ../fish/guestfish-actions.pod:762
20100 msgid "cp-a"
20101 msgstr ""
20102
20103 # type: verbatim
20104 #: ../fish/guestfish-actions.pod:764
20105 #, no-wrap
20106 msgid ""
20107 " cp-a src dest\n"
20108 "\n"
20109 msgstr ""
20110
20111 # type: =head2
20112 #: ../fish/guestfish-actions.pod:769
20113 msgid "dd"
20114 msgstr ""
20115
20116 # type: verbatim
20117 #: ../fish/guestfish-actions.pod:771
20118 #, no-wrap
20119 msgid ""
20120 " dd src dest\n"
20121 "\n"
20122 msgstr ""
20123
20124 # type: textblock
20125 #: ../fish/guestfish-actions.pod:778
20126 msgid ""
20127 "If the destination is a device, it must be as large or larger than the "
20128 "source file or device, otherwise the copy will fail.  This command cannot do "
20129 "partial copies (see L</copy-size>)."
20130 msgstr ""
20131
20132 # type: =head2
20133 #: ../fish/guestfish-actions.pod:782
20134 msgid "df"
20135 msgstr ""
20136
20137 # type: verbatim
20138 #: ../fish/guestfish-actions.pod:784
20139 #, no-wrap
20140 msgid ""
20141 " df\n"
20142 "\n"
20143 msgstr ""
20144
20145 # type: =head2
20146 #: ../fish/guestfish-actions.pod:792
20147 msgid "df-h"
20148 msgstr ""
20149
20150 # type: verbatim
20151 #: ../fish/guestfish-actions.pod:794
20152 #, no-wrap
20153 msgid ""
20154 " df-h\n"
20155 "\n"
20156 msgstr ""
20157
20158 # type: =head2
20159 #: ../fish/guestfish-actions.pod:803
20160 msgid "dmesg"
20161 msgstr ""
20162
20163 # type: verbatim
20164 #: ../fish/guestfish-actions.pod:805
20165 #, no-wrap
20166 msgid ""
20167 " dmesg\n"
20168 "\n"
20169 msgstr ""
20170
20171 # type: textblock
20172 #: ../fish/guestfish-actions.pod:811
20173 msgid ""
20174 "Another way to get the same information is to enable verbose messages with "
20175 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20176 "before running the program."
20177 msgstr ""
20178
20179 # type: =head2
20180 #: ../fish/guestfish-actions.pod:816
20181 msgid "download"
20182 msgstr ""
20183
20184 # type: verbatim
20185 #: ../fish/guestfish-actions.pod:818
20186 #, no-wrap
20187 msgid ""
20188 " download remotefilename (filename|-)\n"
20189 "\n"
20190 msgstr ""
20191
20192 # type: textblock
20193 #: ../fish/guestfish-actions.pod:825
20194 msgid "See also L</upload>, L</cat>."
20195 msgstr ""
20196
20197 # type: =head2
20198 #: ../fish/guestfish-actions.pod:829
20199 msgid "download-offset"
20200 msgstr ""
20201
20202 # type: verbatim
20203 #: ../fish/guestfish-actions.pod:831
20204 #, no-wrap
20205 msgid ""
20206 " download-offset remotefilename (filename|-) offset size\n"
20207 "\n"
20208 msgstr ""
20209
20210 # type: textblock
20211 #: ../fish/guestfish-actions.pod:839
20212 msgid ""
20213 "Note that there is no limit on the amount of data that can be downloaded "
20214 "with this call, unlike with L</pread>, and this call always reads the full "
20215 "amount unless an error occurs."
20216 msgstr ""
20217
20218 # type: textblock
20219 #: ../fish/guestfish-actions.pod:844
20220 msgid "See also L</download>, L</pread>."
20221 msgstr ""
20222
20223 # type: =head2
20224 #: ../fish/guestfish-actions.pod:848
20225 msgid "drop-caches"
20226 msgstr ""
20227
20228 # type: verbatim
20229 #: ../fish/guestfish-actions.pod:850
20230 #, no-wrap
20231 msgid ""
20232 " drop-caches whattodrop\n"
20233 "\n"
20234 msgstr ""
20235
20236 # type: =head2
20237 #: ../fish/guestfish-actions.pod:862
20238 msgid "du"
20239 msgstr ""
20240
20241 # type: verbatim
20242 #: ../fish/guestfish-actions.pod:864
20243 #, no-wrap
20244 msgid ""
20245 " du path\n"
20246 "\n"
20247 msgstr ""
20248
20249 # type: =head2
20250 #: ../fish/guestfish-actions.pod:876
20251 msgid "e2fsck-f"
20252 msgstr ""
20253
20254 # type: verbatim
20255 #: ../fish/guestfish-actions.pod:878
20256 #, no-wrap
20257 msgid ""
20258 " e2fsck-f device\n"
20259 "\n"
20260 msgstr ""
20261
20262 # type: textblock
20263 #: ../fish/guestfish-actions.pod:884
20264 msgid ""
20265 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20266 "should use L</fsck>."
20267 msgstr ""
20268
20269 # type: =head2
20270 #: ../fish/guestfish-actions.pod:887
20271 msgid "echo-daemon"
20272 msgstr ""
20273
20274 # type: verbatim
20275 #: ../fish/guestfish-actions.pod:889
20276 #, no-wrap
20277 msgid ""
20278 " echo-daemon 'words ...'\n"
20279 "\n"
20280 msgstr ""
20281
20282 # type: textblock
20283 #: ../fish/guestfish-actions.pod:896
20284 msgid "See also L</ping-daemon>."
20285 msgstr ""
20286
20287 # type: =head2
20288 #: ../fish/guestfish-actions.pod:898
20289 msgid "egrep"
20290 msgstr ""
20291
20292 # type: verbatim
20293 #: ../fish/guestfish-actions.pod:900
20294 #, no-wrap
20295 msgid ""
20296 " egrep regex path\n"
20297 "\n"
20298 msgstr ""
20299
20300 # type: =head2
20301 #: ../fish/guestfish-actions.pod:908
20302 msgid "egrepi"
20303 msgstr ""
20304
20305 # type: verbatim
20306 #: ../fish/guestfish-actions.pod:910
20307 #, no-wrap
20308 msgid ""
20309 " egrepi regex path\n"
20310 "\n"
20311 msgstr ""
20312
20313 # type: =head2
20314 #: ../fish/guestfish-actions.pod:918
20315 msgid "equal"
20316 msgstr ""
20317
20318 # type: verbatim
20319 #: ../fish/guestfish-actions.pod:920
20320 #, no-wrap
20321 msgid ""
20322 " equal file1 file2\n"
20323 "\n"
20324 msgstr ""
20325
20326 # type: =head2
20327 #: ../fish/guestfish-actions.pod:927
20328 msgid "exists"
20329 msgstr ""
20330
20331 # type: verbatim
20332 #: ../fish/guestfish-actions.pod:929
20333 #, no-wrap
20334 msgid ""
20335 " exists path\n"
20336 "\n"
20337 msgstr ""
20338
20339 # type: textblock
20340 #: ../fish/guestfish-actions.pod:934
20341 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20342 msgstr ""
20343
20344 # type: =head2
20345 #: ../fish/guestfish-actions.pod:936
20346 msgid "fallocate"
20347 msgstr ""
20348
20349 # type: verbatim
20350 #: ../fish/guestfish-actions.pod:938
20351 #, no-wrap
20352 msgid ""
20353 " fallocate path len\n"
20354 "\n"
20355 msgstr ""
20356
20357 # type: =head2
20358 #: ../fish/guestfish-actions.pod:955
20359 msgid "fallocate64"
20360 msgstr ""
20361
20362 # type: verbatim
20363 #: ../fish/guestfish-actions.pod:957
20364 #, no-wrap
20365 msgid ""
20366 " fallocate64 path len\n"
20367 "\n"
20368 msgstr ""
20369
20370 # type: textblock
20371 #: ../fish/guestfish-actions.pod:963
20372 msgid ""
20373 "Note that this call allocates disk blocks for the file.  To create a sparse "
20374 "file use L</truncate-size> instead."
20375 msgstr ""
20376
20377 # type: textblock
20378 #: ../fish/guestfish-actions.pod:966
20379 msgid ""
20380 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20381 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20382 "maximum size of files created through that call to 1GB."
20383 msgstr ""
20384
20385 # type: =head2
20386 #: ../fish/guestfish-actions.pod:975
20387 msgid "fgrep"
20388 msgstr ""
20389
20390 # type: verbatim
20391 #: ../fish/guestfish-actions.pod:977
20392 #, no-wrap
20393 msgid ""
20394 " fgrep pattern path\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: =head2
20399 #: ../fish/guestfish-actions.pod:985
20400 msgid "fgrepi"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #: ../fish/guestfish-actions.pod:987
20405 #, no-wrap
20406 msgid ""
20407 " fgrepi pattern path\n"
20408 "\n"
20409 msgstr ""
20410
20411 # type: =head2
20412 #: ../fish/guestfish-actions.pod:995
20413 msgid "file"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #: ../fish/guestfish-actions.pod:997
20418 #, no-wrap
20419 msgid ""
20420 " file path\n"
20421 "\n"
20422 msgstr ""
20423
20424 # type: textblock
20425 #: ../fish/guestfish-actions.pod:1009
20426 msgid ""
20427 "This command can also be used on C</dev/> devices (and partitions, LV "
20428 "names).  You can for example use this to determine if a device contains a "
20429 "filesystem, although it's usually better to use L</vfs-type>."
20430 msgstr ""
20431
20432 # type: =head2
20433 #: ../fish/guestfish-actions.pod:1019
20434 msgid "file-architecture"
20435 msgstr ""
20436
20437 # type: verbatim
20438 #: ../fish/guestfish-actions.pod:1021
20439 #, no-wrap
20440 msgid ""
20441 " file-architecture filename\n"
20442 "\n"
20443 msgstr ""
20444
20445 # type: =head2
20446 #: ../fish/guestfish-actions.pod:1124
20447 msgid "filesize"
20448 msgstr ""
20449
20450 # type: verbatim
20451 #: ../fish/guestfish-actions.pod:1126
20452 #, no-wrap
20453 msgid ""
20454 " filesize file\n"
20455 "\n"
20456 msgstr ""
20457
20458 # type: textblock
20459 #: ../fish/guestfish-actions.pod:1130
20460 msgid ""
20461 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20462 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:1134
20467 msgid "fill"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:1136
20472 #, no-wrap
20473 msgid ""
20474 " fill c len path\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: textblock
20479 #: ../fish/guestfish-actions.pod:1142
20480 msgid ""
20481 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20482 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20483 "L</fill-pattern>."
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1147
20488 msgid "fill-pattern"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1149
20493 #, no-wrap
20494 msgid ""
20495 " fill-pattern pattern len path\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: textblock
20500 #: ../fish/guestfish-actions.pod:1151
20501 msgid ""
20502 "This function is like L</fill> except that it creates a new file of length "
20503 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20504 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20505 "bytes."
20506 msgstr ""
20507
20508 # type: =head2
20509 #: ../fish/guestfish-actions.pod:1156
20510 msgid "find"
20511 msgstr ""
20512
20513 # type: verbatim
20514 #: ../fish/guestfish-actions.pod:1158
20515 #, no-wrap
20516 msgid ""
20517 " find directory\n"
20518 "\n"
20519 msgstr ""
20520
20521 # type: textblock
20522 #: ../fish/guestfish-actions.pod:1172
20523 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20524 msgstr ""
20525
20526 # type: textblock
20527 #: ../fish/guestfish-actions.pod:1185
20528 msgid "See also L</find0>."
20529 msgstr ""
20530
20531 # type: =head2
20532 #: ../fish/guestfish-actions.pod:1190
20533 msgid "find0"
20534 msgstr ""
20535
20536 # type: verbatim
20537 #: ../fish/guestfish-actions.pod:1192
20538 #, no-wrap
20539 msgid ""
20540 " find0 directory (files|-)\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: textblock
20545 #: ../fish/guestfish-actions.pod:1198
20546 msgid ""
20547 "This command works the same way as L</find> with the following exceptions:"
20548 msgstr ""
20549
20550 # type: =head2
20551 #: ../fish/guestfish-actions.pod:1225
20552 msgid "findfs-label"
20553 msgstr ""
20554
20555 # type: verbatim
20556 #: ../fish/guestfish-actions.pod:1227
20557 #, no-wrap
20558 msgid ""
20559 " findfs-label label\n"
20560 "\n"
20561 msgstr ""
20562
20563 # type: textblock
20564 #: ../fish/guestfish-actions.pod:1233
20565 msgid "To find the label of a filesystem, use L</vfs-label>."
20566 msgstr ""
20567
20568 # type: =head2
20569 #: ../fish/guestfish-actions.pod:1235
20570 msgid "findfs-uuid"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #: ../fish/guestfish-actions.pod:1237
20575 #, no-wrap
20576 msgid ""
20577 " findfs-uuid uuid\n"
20578 "\n"
20579 msgstr ""
20580
20581 # type: textblock
20582 #: ../fish/guestfish-actions.pod:1243
20583 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20584 msgstr ""
20585
20586 # type: =head2
20587 #: ../fish/guestfish-actions.pod:1245
20588 msgid "fsck"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #: ../fish/guestfish-actions.pod:1247
20593 #, no-wrap
20594 msgid ""
20595 " fsck fstype device\n"
20596 "\n"
20597 msgstr ""
20598
20599 # type: =head2
20600 #: ../fish/guestfish-actions.pod:1277
20601 msgid "get-append"
20602 msgstr ""
20603
20604 # type: verbatim
20605 #: ../fish/guestfish-actions.pod:1279
20606 #, no-wrap
20607 msgid ""
20608 " get-append\n"
20609 "\n"
20610 msgstr ""
20611
20612 # type: =head2
20613 #: ../fish/guestfish-actions.pod:1286
20614 msgid "get-autosync"
20615 msgstr ""
20616
20617 # type: verbatim
20618 #: ../fish/guestfish-actions.pod:1288
20619 #, no-wrap
20620 msgid ""
20621 " get-autosync\n"
20622 "\n"
20623 msgstr ""
20624
20625 # type: =head2
20626 #: ../fish/guestfish-actions.pod:1292
20627 msgid "get-direct"
20628 msgstr ""
20629
20630 # type: verbatim
20631 #: ../fish/guestfish-actions.pod:1294
20632 #, no-wrap
20633 msgid ""
20634 " get-direct\n"
20635 "\n"
20636 msgstr ""
20637
20638 # type: =head2
20639 #: ../fish/guestfish-actions.pod:1298
20640 msgid "get-e2label"
20641 msgstr ""
20642
20643 # type: verbatim
20644 #: ../fish/guestfish-actions.pod:1300
20645 #, no-wrap
20646 msgid ""
20647 " get-e2label device\n"
20648 "\n"
20649 msgstr ""
20650
20651 # type: =head2
20652 #: ../fish/guestfish-actions.pod:1312
20653 msgid "get-e2uuid"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #: ../fish/guestfish-actions.pod:1314
20658 #, no-wrap
20659 msgid ""
20660 " get-e2uuid device\n"
20661 "\n"
20662 msgstr ""
20663
20664 # type: =head2
20665 #: ../fish/guestfish-actions.pod:1326
20666 msgid "get-memsize"
20667 msgstr ""
20668
20669 # type: verbatim
20670 #: ../fish/guestfish-actions.pod:1328
20671 #, no-wrap
20672 msgid ""
20673 " get-memsize\n"
20674 "\n"
20675 msgstr ""
20676
20677 # type: textblock
20678 #: ../fish/guestfish-actions.pod:1333
20679 msgid ""
20680 "If L</set-memsize> was not called on this handle, and if "
20681 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20682 "value for memsize."
20683 msgstr ""
20684
20685 # type: =head2
20686 #: ../fish/guestfish-actions.pod:1340
20687 msgid "get-network"
20688 msgstr ""
20689
20690 # type: verbatim
20691 #: ../fish/guestfish-actions.pod:1342
20692 #, no-wrap
20693 msgid ""
20694 " get-network\n"
20695 "\n"
20696 msgstr ""
20697
20698 # type: =head2
20699 #: ../fish/guestfish-actions.pod:1346
20700 msgid "get-path"
20701 msgstr ""
20702
20703 # type: verbatim
20704 #: ../fish/guestfish-actions.pod:1348
20705 #, no-wrap
20706 msgid ""
20707 " get-path\n"
20708 "\n"
20709 msgstr ""
20710
20711 # type: =head2
20712 #: ../fish/guestfish-actions.pod:1355
20713 msgid "get-pid"
20714 msgstr ""
20715
20716 # type: =head2
20717 #: ../fish/guestfish-actions.pod:1357
20718 msgid "pid"
20719 msgstr ""
20720
20721 # type: verbatim
20722 #: ../fish/guestfish-actions.pod:1359
20723 #, no-wrap
20724 msgid ""
20725 " get-pid\n"
20726 "\n"
20727 msgstr ""
20728
20729 # type: =head2
20730 #: ../fish/guestfish-actions.pod:1366
20731 msgid "get-qemu"
20732 msgstr ""
20733
20734 # type: verbatim
20735 #: ../fish/guestfish-actions.pod:1368
20736 #, no-wrap
20737 msgid ""
20738 " get-qemu\n"
20739 "\n"
20740 msgstr ""
20741
20742 # type: =head2
20743 #: ../fish/guestfish-actions.pod:1375
20744 msgid "get-recovery-proc"
20745 msgstr ""
20746
20747 # type: verbatim
20748 #: ../fish/guestfish-actions.pod:1377
20749 #, no-wrap
20750 msgid ""
20751 " get-recovery-proc\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: =head2
20756 #: ../fish/guestfish-actions.pod:1381
20757 msgid "get-selinux"
20758 msgstr ""
20759
20760 # type: verbatim
20761 #: ../fish/guestfish-actions.pod:1383
20762 #, no-wrap
20763 msgid ""
20764 " get-selinux\n"
20765 "\n"
20766 msgstr ""
20767
20768 # type: textblock
20769 #: ../fish/guestfish-actions.pod:1385
20770 msgid ""
20771 "This returns the current setting of the selinux flag which is passed to the "
20772 "appliance at boot time.  See L</set-selinux>."
20773 msgstr ""
20774
20775 # type: =head2
20776 #: ../fish/guestfish-actions.pod:1391
20777 msgid "get-state"
20778 msgstr ""
20779
20780 # type: verbatim
20781 #: ../fish/guestfish-actions.pod:1393
20782 #, no-wrap
20783 msgid ""
20784 " get-state\n"
20785 "\n"
20786 msgstr ""
20787
20788 # type: =head2
20789 #: ../fish/guestfish-actions.pod:1400
20790 msgid "get-trace"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #: ../fish/guestfish-actions.pod:1402
20795 #, no-wrap
20796 msgid ""
20797 " get-trace\n"
20798 "\n"
20799 msgstr ""
20800
20801 # type: =head2
20802 #: ../fish/guestfish-actions.pod:1406
20803 msgid "get-umask"
20804 msgstr ""
20805
20806 # type: verbatim
20807 #: ../fish/guestfish-actions.pod:1408
20808 #, no-wrap
20809 msgid ""
20810 " get-umask\n"
20811 "\n"
20812 msgstr ""
20813
20814 # type: textblock
20815 #: ../fish/guestfish-actions.pod:1410
20816 msgid ""
20817 "Return the current umask.  By default the umask is C<022> unless it has been "
20818 "set by calling L</umask>."
20819 msgstr ""
20820
20821 # type: =head2
20822 #: ../fish/guestfish-actions.pod:1413
20823 msgid "get-verbose"
20824 msgstr ""
20825
20826 # type: verbatim
20827 #: ../fish/guestfish-actions.pod:1415
20828 #, no-wrap
20829 msgid ""
20830 " get-verbose\n"
20831 "\n"
20832 msgstr ""
20833
20834 # type: =head2
20835 #: ../fish/guestfish-actions.pod:1419
20836 msgid "getcon"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #: ../fish/guestfish-actions.pod:1421
20841 #, no-wrap
20842 msgid ""
20843 " getcon\n"
20844 "\n"
20845 msgstr ""
20846
20847 # type: textblock
20848 #: ../fish/guestfish-actions.pod:1425
20849 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20850 msgstr ""
20851
20852 # type: =head2
20853 #: ../fish/guestfish-actions.pod:1428
20854 msgid "getxattrs"
20855 msgstr ""
20856
20857 # type: verbatim
20858 #: ../fish/guestfish-actions.pod:1430
20859 #, no-wrap
20860 msgid ""
20861 " getxattrs path\n"
20862 "\n"
20863 msgstr ""
20864
20865 # type: textblock
20866 #: ../fish/guestfish-actions.pod:1438
20867 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:1440
20872 msgid "glob-expand"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:1442
20877 #, no-wrap
20878 msgid ""
20879 " glob-expand pattern\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:1455
20885 msgid "grep"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:1457
20890 #, no-wrap
20891 msgid ""
20892 " grep regex path\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:1465
20898 msgid "grepi"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:1467
20903 #, no-wrap
20904 msgid ""
20905 " grepi regex path\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:1475
20911 msgid "grub-install"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:1477
20916 #, no-wrap
20917 msgid ""
20918 " grub-install root device\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:1493
20924 msgid "head"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:1495
20929 #, no-wrap
20930 msgid ""
20931 " head path\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: =head2
20936 #: ../fish/guestfish-actions.pod:1503
20937 msgid "head-n"
20938 msgstr ""
20939
20940 # type: verbatim
20941 #: ../fish/guestfish-actions.pod:1505
20942 #, no-wrap
20943 msgid ""
20944 " head-n nrlines path\n"
20945 "\n"
20946 msgstr ""
20947
20948 # type: =head2
20949 #: ../fish/guestfish-actions.pod:1518
20950 msgid "hexdump"
20951 msgstr ""
20952
20953 # type: verbatim
20954 #: ../fish/guestfish-actions.pod:1520
20955 #, no-wrap
20956 msgid ""
20957 " hexdump path\n"
20958 "\n"
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:1528
20963 msgid "initrd-cat"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:1530
20968 #, no-wrap
20969 msgid ""
20970 " initrd-cat initrdpath filename\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: textblock
20975 #: ../fish/guestfish-actions.pod:1542
20976 msgid "See also L</initrd-list>."
20977 msgstr ""
20978
20979 # type: =head2
20980 #: ../fish/guestfish-actions.pod:1547
20981 msgid "initrd-list"
20982 msgstr ""
20983
20984 # type: verbatim
20985 #: ../fish/guestfish-actions.pod:1549
20986 #, no-wrap
20987 msgid ""
20988 " initrd-list path\n"
20989 "\n"
20990 msgstr ""
20991
20992 # type: =head2
20993 #: ../fish/guestfish-actions.pod:1561
20994 msgid "inotify-add-watch"
20995 msgstr ""
20996
20997 # type: verbatim
20998 #: ../fish/guestfish-actions.pod:1563
20999 #, no-wrap
21000 msgid ""
21001 " inotify-add-watch path mask\n"
21002 "\n"
21003 msgstr ""
21004
21005 # type: =head2
21006 #: ../fish/guestfish-actions.pod:1575
21007 msgid "inotify-close"
21008 msgstr ""
21009
21010 # type: verbatim
21011 #: ../fish/guestfish-actions.pod:1577
21012 #, no-wrap
21013 msgid ""
21014 " inotify-close\n"
21015 "\n"
21016 msgstr ""
21017
21018 # type: =head2
21019 #: ../fish/guestfish-actions.pod:1583
21020 msgid "inotify-files"
21021 msgstr ""
21022
21023 # type: verbatim
21024 #: ../fish/guestfish-actions.pod:1585
21025 #, no-wrap
21026 msgid ""
21027 " inotify-files\n"
21028 "\n"
21029 msgstr ""
21030
21031 # type: textblock
21032 #: ../fish/guestfish-actions.pod:1587
21033 msgid ""
21034 "This function is a helpful wrapper around L</inotify-read> which just "
21035 "returns a list of pathnames of objects that were touched.  The returned "
21036 "pathnames are sorted and deduplicated."
21037 msgstr ""
21038
21039 # type: =head2
21040 #: ../fish/guestfish-actions.pod:1591
21041 msgid "inotify-init"
21042 msgstr ""
21043
21044 # type: verbatim
21045 #: ../fish/guestfish-actions.pod:1593
21046 #, no-wrap
21047 msgid ""
21048 " inotify-init maxevents\n"
21049 "\n"
21050 msgstr ""
21051
21052 # type: textblock
21053 #: ../fish/guestfish-actions.pod:1599
21054 msgid ""
21055 "C<maxevents> is the maximum number of events which will be queued up between "
21056 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21057 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21058 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21059 "but records the fact that it threw them away by setting a flag "
21060 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21061 msgstr ""
21062
21063 # type: textblock
21064 #: ../fish/guestfish-actions.pod:1609
21065 msgid ""
21066 "Before any events are generated, you have to add some watches to the "
21067 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21068 "L</inotify-watch-all>."
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:1615
21073 msgid ""
21074 "Queued up events should be read periodically by calling L</inotify-read> (or "
21075 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21076 "If you don't read the events out often enough then you risk the internal "
21077 "queue overflowing."
21078 msgstr ""
21079
21080 # type: textblock
21081 #: ../fish/guestfish-actions.pod:1622
21082 msgid ""
21083 "The handle should be closed after use by calling L</inotify-close>.  This "
21084 "also removes any watches automatically."
21085 msgstr ""
21086
21087 # type: =head2
21088 #: ../fish/guestfish-actions.pod:1631
21089 msgid "inotify-read"
21090 msgstr ""
21091
21092 # type: verbatim
21093 #: ../fish/guestfish-actions.pod:1633
21094 #, no-wrap
21095 msgid ""
21096 " inotify-read\n"
21097 "\n"
21098 msgstr ""
21099
21100 # type: =head2
21101 #: ../fish/guestfish-actions.pod:1646
21102 msgid "inotify-rm-watch"
21103 msgstr ""
21104
21105 # type: verbatim
21106 #: ../fish/guestfish-actions.pod:1648
21107 #, no-wrap
21108 msgid ""
21109 " inotify-rm-watch wd\n"
21110 "\n"
21111 msgstr ""
21112
21113 # type: textblock
21114 #: ../fish/guestfish-actions.pod:1650
21115 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21116 msgstr ""
21117
21118 # type: =head2
21119 #: ../fish/guestfish-actions.pod:1653
21120 msgid "inspect-get-arch"
21121 msgstr ""
21122
21123 # type: verbatim
21124 #: ../fish/guestfish-actions.pod:1655
21125 #, no-wrap
21126 msgid ""
21127 " inspect-get-arch root\n"
21128 "\n"
21129 msgstr ""
21130
21131 # type: textblock
21132 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21133 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21134 #: ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801
21135 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1846
21136 #: ../fish/guestfish-actions.pod:1870 ../fish/guestfish-actions.pod:1900
21137 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1951
21138 msgid ""
21139 "This function should only be called with a root device string as returned by "
21140 "L</inspect-os>."
21141 msgstr ""
21142
21143 # type: textblock
21144 #: ../fish/guestfish-actions.pod:1660
21145 msgid ""
21146 "This returns the architecture of the inspected operating system.  The "
21147 "possible return values are listed under L</file-architecture>."
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:1669
21152 msgid "inspect-get-distro"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:1671
21157 #, no-wrap
21158 msgid ""
21159 " inspect-get-distro root\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:1743
21165 msgid "inspect-get-filesystems"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:1745
21170 #, no-wrap
21171 msgid ""
21172 " inspect-get-filesystems root\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:1758
21178 msgid ""
21179 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21180 "get-mountpoints>."
21181 msgstr ""
21182
21183 # type: =head2
21184 #: ../fish/guestfish-actions.pod:1761
21185 msgid "inspect-get-major-version"
21186 msgstr ""
21187
21188 # type: verbatim
21189 #: ../fish/guestfish-actions.pod:1763
21190 #, no-wrap
21191 msgid ""
21192 " inspect-get-major-version root\n"
21193 "\n"
21194 msgstr ""
21195
21196 # type: =head2
21197 #: ../fish/guestfish-actions.pod:1782
21198 msgid "inspect-get-minor-version"
21199 msgstr ""
21200
21201 # type: verbatim
21202 #: ../fish/guestfish-actions.pod:1784
21203 #, no-wrap
21204 msgid ""
21205 " inspect-get-minor-version root\n"
21206 "\n"
21207 msgstr ""
21208
21209 # type: textblock
21210 #: ../fish/guestfish-actions.pod:1794
21211 msgid ""
21212 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21213 "get-major-version>."
21214 msgstr ""
21215
21216 # type: =head2
21217 #: ../fish/guestfish-actions.pod:1797
21218 msgid "inspect-get-mountpoints"
21219 msgstr ""
21220
21221 # type: verbatim
21222 #: ../fish/guestfish-actions.pod:1799
21223 #, no-wrap
21224 msgid ""
21225 " inspect-get-mountpoints root\n"
21226 "\n"
21227 msgstr ""
21228
21229 # type: textblock
21230 #: ../fish/guestfish-actions.pod:1817
21231 msgid ""
21232 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21233 "get-filesystems>."
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:1820
21238 msgid "inspect-get-package-format"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:1822
21243 #, no-wrap
21244 msgid ""
21245 " inspect-get-package-format root\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: textblock
21250 #: ../fish/guestfish-actions.pod:1827
21251 msgid ""
21252 "This function and L</inspect-get-package-management> return the package "
21253 "format and package management tool used by the inspected operating system.  "
21254 "For example for Fedora these functions would return C<rpm> (package format) "
21255 "and C<yum> (package management)."
21256 msgstr ""
21257
21258 # type: =head2
21259 #: ../fish/guestfish-actions.pod:1842
21260 msgid "inspect-get-package-management"
21261 msgstr ""
21262
21263 # type: verbatim
21264 #: ../fish/guestfish-actions.pod:1844
21265 #, no-wrap
21266 msgid ""
21267 " inspect-get-package-management root\n"
21268 "\n"
21269 msgstr ""
21270
21271 # type: textblock
21272 #: ../fish/guestfish-actions.pod:1849
21273 msgid ""
21274 "L</inspect-get-package-format> and this function return the package format "
21275 "and package management tool used by the inspected operating system.  For "
21276 "example for Fedora these functions would return C<rpm> (package format) and "
21277 "C<yum> (package management)."
21278 msgstr ""
21279
21280 # type: =head2
21281 #: ../fish/guestfish-actions.pod:1866
21282 msgid "inspect-get-product-name"
21283 msgstr ""
21284
21285 # type: verbatim
21286 #: ../fish/guestfish-actions.pod:1868
21287 #, no-wrap
21288 msgid ""
21289 " inspect-get-product-name root\n"
21290 "\n"
21291 msgstr ""
21292
21293 # type: =head2
21294 #: ../fish/guestfish-actions.pod:1883
21295 msgid "inspect-get-roots"
21296 msgstr ""
21297
21298 # type: verbatim
21299 #: ../fish/guestfish-actions.pod:1885
21300 #, no-wrap
21301 msgid ""
21302 " inspect-get-roots\n"
21303 "\n"
21304 msgstr ""
21305
21306 # type: textblock
21307 #: ../fish/guestfish-actions.pod:1887
21308 msgid ""
21309 "This function is a convenient way to get the list of root devices, as "
21310 "returned from a previous call to L</inspect-os>, but without redoing the "
21311 "whole inspection process."
21312 msgstr ""
21313
21314 # type: textblock
21315 #: ../fish/guestfish-actions.pod:1891
21316 msgid ""
21317 "This returns an empty list if either no root devices were found or the "
21318 "caller has not called L</inspect-os>."
21319 msgstr ""
21320
21321 # type: =head2
21322 #: ../fish/guestfish-actions.pod:1896
21323 msgid "inspect-get-type"
21324 msgstr ""
21325
21326 # type: verbatim
21327 #: ../fish/guestfish-actions.pod:1898
21328 #, no-wrap
21329 msgid ""
21330 " inspect-get-type root\n"
21331 "\n"
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:1931
21336 msgid "inspect-get-windows-systemroot"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #: ../fish/guestfish-actions.pod:1933
21341 #, no-wrap
21342 msgid ""
21343 " inspect-get-windows-systemroot root\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:1947
21349 msgid "inspect-list-applications"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:1949
21354 #, no-wrap
21355 msgid ""
21356 " inspect-list-applications root\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: textblock
21361 #: ../fish/guestfish-actions.pod:1956
21362 msgid ""
21363 "I<Note:> This call works differently from other parts of the inspection "
21364 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21365 "then mount up the disks, before calling this.  Listing applications is a "
21366 "significantly more difficult operation which requires access to the full "
21367 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21368 "are just returning data cached in the libguestfs handle, this call actually "
21369 "reads parts of the mounted filesystems during the call."
21370 msgstr ""
21371
21372 # type: =head2
21373 #: ../fish/guestfish-actions.pod:2046
21374 msgid "inspect-os"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #: ../fish/guestfish-actions.pod:2048
21379 #, no-wrap
21380 msgid ""
21381 " inspect-os\n"
21382 "\n"
21383 msgstr ""
21384
21385 # type: textblock
21386 #: ../fish/guestfish-actions.pod:2063
21387 msgid ""
21388 "You can pass the root string(s) returned to other L</inspect-get-*> "
21389 "functions in order to query further information about each operating system, "
21390 "such as the name and version."
21391 msgstr ""
21392
21393 # type: textblock
21394 #: ../fish/guestfish-actions.pod:2068
21395 msgid ""
21396 "This function uses other libguestfs features such as L</mount-ro> and L</"
21397 "umount-all> in order to mount and unmount filesystems and look at the "
21398 "contents.  This should be called with no disks currently mounted.  The "
21399 "function may also use Augeas, so any existing Augeas handle will be closed."
21400 msgstr ""
21401
21402 # type: textblock
21403 #: ../fish/guestfish-actions.pod:2080 ../fish/guestfish-actions.pod:2236
21404 #: ../fish/guestfish-actions.pod:2282
21405 msgid "See also L</list-filesystems>."
21406 msgstr ""
21407
21408 # type: =head2
21409 #: ../fish/guestfish-actions.pod:2082
21410 msgid "is-blockdev"
21411 msgstr ""
21412
21413 # type: verbatim
21414 #: ../fish/guestfish-actions.pod:2084
21415 #, no-wrap
21416 msgid ""
21417 " is-blockdev path\n"
21418 "\n"
21419 msgstr ""
21420
21421 # type: textblock
21422 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2107
21423 #: ../fish/guestfish-actions.pod:2126 ../fish/guestfish-actions.pod:2135
21424 #: ../fish/guestfish-actions.pod:2145 ../fish/guestfish-actions.pod:2179
21425 #: ../fish/guestfish-actions.pod:2188
21426 msgid "See also L</stat>."
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:2091
21431 msgid "is-busy"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #: ../fish/guestfish-actions.pod:2093
21436 #, no-wrap
21437 msgid ""
21438 " is-busy\n"
21439 "\n"
21440 msgstr ""
21441
21442 # type: =head2
21443 #: ../fish/guestfish-actions.pod:2100
21444 msgid "is-chardev"
21445 msgstr ""
21446
21447 # type: verbatim
21448 #: ../fish/guestfish-actions.pod:2102
21449 #, no-wrap
21450 msgid ""
21451 " is-chardev path\n"
21452 "\n"
21453 msgstr ""
21454
21455 # type: =head2
21456 #: ../fish/guestfish-actions.pod:2109
21457 msgid "is-config"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #: ../fish/guestfish-actions.pod:2111
21462 #, no-wrap
21463 msgid ""
21464 " is-config\n"
21465 "\n"
21466 msgstr ""
21467
21468 # type: =head2
21469 #: ../fish/guestfish-actions.pod:2118
21470 msgid "is-dir"
21471 msgstr ""
21472
21473 # type: verbatim
21474 #: ../fish/guestfish-actions.pod:2120
21475 #, no-wrap
21476 msgid ""
21477 " is-dir path\n"
21478 "\n"
21479 msgstr ""
21480
21481 # type: =head2
21482 #: ../fish/guestfish-actions.pod:2128
21483 msgid "is-fifo"
21484 msgstr ""
21485
21486 # type: verbatim
21487 #: ../fish/guestfish-actions.pod:2130
21488 #, no-wrap
21489 msgid ""
21490 " is-fifo path\n"
21491 "\n"
21492 msgstr ""
21493
21494 # type: =head2
21495 #: ../fish/guestfish-actions.pod:2137
21496 msgid "is-file"
21497 msgstr ""
21498
21499 # type: verbatim
21500 #: ../fish/guestfish-actions.pod:2139
21501 #, no-wrap
21502 msgid ""
21503 " is-file path\n"
21504 "\n"
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:2147
21509 msgid "is-launching"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:2149
21514 #, no-wrap
21515 msgid ""
21516 " is-launching\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: =head2
21521 #: ../fish/guestfish-actions.pod:2156
21522 msgid "is-lv"
21523 msgstr ""
21524
21525 # type: verbatim
21526 #: ../fish/guestfish-actions.pod:2158
21527 #, no-wrap
21528 msgid ""
21529 " is-lv device\n"
21530 "\n"
21531 msgstr ""
21532
21533 # type: =head2
21534 #: ../fish/guestfish-actions.pod:2163
21535 msgid "is-ready"
21536 msgstr ""
21537
21538 # type: verbatim
21539 #: ../fish/guestfish-actions.pod:2165
21540 #, no-wrap
21541 msgid ""
21542 " is-ready\n"
21543 "\n"
21544 msgstr ""
21545
21546 # type: =head2
21547 #: ../fish/guestfish-actions.pod:2172
21548 msgid "is-socket"
21549 msgstr ""
21550
21551 # type: verbatim
21552 #: ../fish/guestfish-actions.pod:2174
21553 #, no-wrap
21554 msgid ""
21555 " is-socket path\n"
21556 "\n"
21557 msgstr ""
21558
21559 # type: =head2
21560 #: ../fish/guestfish-actions.pod:2181
21561 msgid "is-symlink"
21562 msgstr ""
21563
21564 # type: verbatim
21565 #: ../fish/guestfish-actions.pod:2183
21566 #, no-wrap
21567 msgid ""
21568 " is-symlink path\n"
21569 "\n"
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:2190
21574 msgid "kill-subprocess"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:2192
21579 #, no-wrap
21580 msgid ""
21581 " kill-subprocess\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:2196
21587 msgid "launch"
21588 msgstr ""
21589
21590 # type: =head2
21591 #: ../fish/guestfish-actions.pod:2198
21592 msgid "run"
21593 msgstr ""
21594
21595 # type: verbatim
21596 #: ../fish/guestfish-actions.pod:2200
21597 #, no-wrap
21598 msgid ""
21599 " launch\n"
21600 "\n"
21601 msgstr ""
21602
21603 # type: =head2
21604 #: ../fish/guestfish-actions.pod:2208
21605 msgid "lchown"
21606 msgstr ""
21607
21608 # type: verbatim
21609 #: ../fish/guestfish-actions.pod:2210
21610 #, no-wrap
21611 msgid ""
21612 " lchown owner group path\n"
21613 "\n"
21614 msgstr ""
21615
21616 # type: textblock
21617 #: ../fish/guestfish-actions.pod:2212
21618 msgid ""
21619 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21620 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21621 "target."
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:2220
21626 msgid "lgetxattrs"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:2222
21631 #, no-wrap
21632 msgid ""
21633 " lgetxattrs path\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: textblock
21638 #: ../fish/guestfish-actions.pod:2224
21639 msgid ""
21640 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21641 "it returns the extended attributes of the link itself."
21642 msgstr ""
21643
21644 # type: =head2
21645 #: ../fish/guestfish-actions.pod:2228
21646 msgid "list-devices"
21647 msgstr ""
21648
21649 # type: verbatim
21650 #: ../fish/guestfish-actions.pod:2230
21651 #, no-wrap
21652 msgid ""
21653 " list-devices\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: =head2
21658 #: ../fish/guestfish-actions.pod:2238
21659 msgid "list-filesystems"
21660 msgstr ""
21661
21662 # type: verbatim
21663 #: ../fish/guestfish-actions.pod:2240
21664 #, no-wrap
21665 msgid ""
21666 " list-filesystems\n"
21667 "\n"
21668 msgstr ""
21669
21670 # type: textblock
21671 #: ../fish/guestfish-actions.pod:2259
21672 msgid ""
21673 "This command runs other libguestfs commands, which might include L</mount> "
21674 "and L</umount>, and therefore you should use this soon after launch and only "
21675 "when nothing is mounted."
21676 msgstr ""
21677
21678 # type: textblock
21679 #: ../fish/guestfish-actions.pod:2263
21680 msgid ""
21681 "Not all of the filesystems returned will be mountable.  In particular, swap "
21682 "partitions are returned in the list.  Also this command does not check that "
21683 "each filesystem found is valid and mountable, and some filesystems might be "
21684 "mountable but require special options.  Filesystems may not all belong to a "
21685 "single logical operating system (use L</inspect-os> to look for OSes)."
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-actions.pod:2271
21690 msgid "list-partitions"
21691 msgstr ""
21692
21693 # type: verbatim
21694 #: ../fish/guestfish-actions.pod:2273
21695 #, no-wrap
21696 msgid ""
21697 " list-partitions\n"
21698 "\n"
21699 msgstr ""
21700
21701 # type: textblock
21702 #: ../fish/guestfish-actions.pod:2279
21703 msgid ""
21704 "This does not return logical volumes.  For that you will need to call L</"
21705 "lvs>."
21706 msgstr ""
21707
21708 # type: =head2
21709 #: ../fish/guestfish-actions.pod:2284
21710 msgid "ll"
21711 msgstr ""
21712
21713 # type: verbatim
21714 #: ../fish/guestfish-actions.pod:2286
21715 #, no-wrap
21716 msgid ""
21717 " ll directory\n"
21718 "\n"
21719 msgstr ""
21720
21721 # type: =head2
21722 #: ../fish/guestfish-actions.pod:2294
21723 msgid "ln"
21724 msgstr ""
21725
21726 # type: verbatim
21727 #: ../fish/guestfish-actions.pod:2296
21728 #, no-wrap
21729 msgid ""
21730 " ln target linkname\n"
21731 "\n"
21732 msgstr ""
21733
21734 # type: =head2
21735 #: ../fish/guestfish-actions.pod:2300
21736 msgid "ln-f"
21737 msgstr ""
21738
21739 # type: verbatim
21740 #: ../fish/guestfish-actions.pod:2302
21741 #, no-wrap
21742 msgid ""
21743 " ln-f target linkname\n"
21744 "\n"
21745 msgstr ""
21746
21747 # type: =head2
21748 #: ../fish/guestfish-actions.pod:2307
21749 msgid "ln-s"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #: ../fish/guestfish-actions.pod:2309
21754 #, no-wrap
21755 msgid ""
21756 " ln-s target linkname\n"
21757 "\n"
21758 msgstr ""
21759
21760 # type: =head2
21761 #: ../fish/guestfish-actions.pod:2313
21762 msgid "ln-sf"
21763 msgstr ""
21764
21765 # type: verbatim
21766 #: ../fish/guestfish-actions.pod:2315
21767 #, no-wrap
21768 msgid ""
21769 " ln-sf target linkname\n"
21770 "\n"
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-actions.pod:2320
21775 msgid "lremovexattr"
21776 msgstr ""
21777
21778 # type: verbatim
21779 #: ../fish/guestfish-actions.pod:2322
21780 #, no-wrap
21781 msgid ""
21782 " lremovexattr xattr path\n"
21783 "\n"
21784 msgstr ""
21785
21786 # type: textblock
21787 #: ../fish/guestfish-actions.pod:2324
21788 msgid ""
21789 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21790 "it removes an extended attribute of the link itself."
21791 msgstr ""
21792
21793 # type: =head2
21794 #: ../fish/guestfish-actions.pod:2328
21795 msgid "ls"
21796 msgstr ""
21797
21798 # type: verbatim
21799 #: ../fish/guestfish-actions.pod:2330
21800 #, no-wrap
21801 msgid ""
21802 " ls directory\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: textblock
21807 #: ../fish/guestfish-actions.pod:2336
21808 msgid ""
21809 "This command is mostly useful for interactive sessions.  Programs should "
21810 "probably use L</readdir> instead."
21811 msgstr ""
21812
21813 # type: =head2
21814 #: ../fish/guestfish-actions.pod:2339
21815 msgid "lsetxattr"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #: ../fish/guestfish-actions.pod:2341
21820 #, no-wrap
21821 msgid ""
21822 " lsetxattr xattr val vallen path\n"
21823 "\n"
21824 msgstr ""
21825
21826 # type: textblock
21827 #: ../fish/guestfish-actions.pod:2343
21828 msgid ""
21829 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21830 "sets an extended attribute of the link itself."
21831 msgstr ""
21832
21833 # type: =head2
21834 #: ../fish/guestfish-actions.pod:2347
21835 msgid "lstat"
21836 msgstr ""
21837
21838 # type: verbatim
21839 #: ../fish/guestfish-actions.pod:2349
21840 #, no-wrap
21841 msgid ""
21842 " lstat path\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: textblock
21847 #: ../fish/guestfish-actions.pod:2353
21848 msgid ""
21849 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21850 "the link is stat-ed, not the file it refers to."
21851 msgstr ""
21852
21853 # type: =head2
21854 #: ../fish/guestfish-actions.pod:2359
21855 msgid "lstatlist"
21856 msgstr ""
21857
21858 # type: verbatim
21859 #: ../fish/guestfish-actions.pod:2361
21860 #, no-wrap
21861 msgid ""
21862 " lstatlist path 'names ...'\n"
21863 "\n"
21864 msgstr ""
21865
21866 # type: textblock
21867 #: ../fish/guestfish-actions.pod:2363
21868 msgid ""
21869 "This call allows you to perform the L</lstat> operation on multiple files, "
21870 "where all files are in the directory C<path>.  C<names> is the list of files "
21871 "from this directory."
21872 msgstr ""
21873
21874 # type: textblock
21875 #: ../fish/guestfish-actions.pod:2372
21876 msgid ""
21877 "This call is intended for programs that want to efficiently list a directory "
21878 "contents without making many round-trips.  See also L</lxattrlist> for a "
21879 "similarly efficient call for getting extended attributes.  Very long "
21880 "directory listings might cause the protocol message size to be exceeded, "
21881 "causing this call to fail.  The caller must split up such requests into "
21882 "smaller groups of names."
21883 msgstr ""
21884
21885 # type: =head2
21886 #: ../fish/guestfish-actions.pod:2380
21887 msgid "luks-add-key"
21888 msgstr ""
21889
21890 # type: verbatim
21891 #: ../fish/guestfish-actions.pod:2382
21892 #, no-wrap
21893 msgid ""
21894 " luks-add-key device keyslot\n"
21895 "\n"
21896 msgstr ""
21897
21898 # type: textblock
21899 #: ../fish/guestfish-actions.pod:2389
21900 msgid ""
21901 "Note that if C<keyslot> already contains a key, then this command will "
21902 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21903 msgstr ""
21904
21905 # type: textblock
21906 #: ../fish/guestfish-actions.pod:2393 ../fish/guestfish-actions.pod:2415
21907 #: ../fish/guestfish-actions.pod:2428 ../fish/guestfish-actions.pod:2442
21908 #: ../fish/guestfish-actions.pod:2465 ../fish/guestfish-actions.pod:2475
21909 msgid ""
21910 "This command has one or more key or passphrase parameters.  Guestfish will "
21911 "prompt for these separately."
21912 msgstr ""
21913
21914 # type: =head2
21915 #: ../fish/guestfish-actions.pod:2396
21916 msgid "luks-close"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../fish/guestfish-actions.pod:2398
21921 #, no-wrap
21922 msgid ""
21923 " luks-close device\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: textblock
21928 #: ../fish/guestfish-actions.pod:2400
21929 msgid ""
21930 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21931 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21932 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21933 "block device."
21934 msgstr ""
21935
21936 # type: =head2
21937 #: ../fish/guestfish-actions.pod:2406
21938 msgid "luks-format"
21939 msgstr ""
21940
21941 # type: verbatim
21942 #: ../fish/guestfish-actions.pod:2408
21943 #, no-wrap
21944 msgid ""
21945 " luks-format device keyslot\n"
21946 "\n"
21947 msgstr ""
21948
21949 # type: =head2
21950 #: ../fish/guestfish-actions.pod:2421
21951 msgid "luks-format-cipher"
21952 msgstr ""
21953
21954 # type: verbatim
21955 #: ../fish/guestfish-actions.pod:2423
21956 #, no-wrap
21957 msgid ""
21958 " luks-format-cipher device keyslot cipher\n"
21959 "\n"
21960 msgstr ""
21961
21962 # type: textblock
21963 #: ../fish/guestfish-actions.pod:2425
21964 msgid ""
21965 "This command is the same as L</luks-format> but it also allows you to set "
21966 "the C<cipher> used."
21967 msgstr ""
21968
21969 # type: =head2
21970 #: ../fish/guestfish-actions.pod:2434
21971 msgid "luks-kill-slot"
21972 msgstr ""
21973
21974 # type: verbatim
21975 #: ../fish/guestfish-actions.pod:2436
21976 #, no-wrap
21977 msgid ""
21978 " luks-kill-slot device keyslot\n"
21979 "\n"
21980 msgstr ""
21981
21982 # type: =head2
21983 #: ../fish/guestfish-actions.pod:2445
21984 msgid "luks-open"
21985 msgstr ""
21986
21987 # type: verbatim
21988 #: ../fish/guestfish-actions.pod:2447
21989 #, no-wrap
21990 msgid ""
21991 " luks-open device mapname\n"
21992 "\n"
21993 msgstr ""
21994
21995 # type: textblock
21996 #: ../fish/guestfish-actions.pod:2461
21997 msgid ""
21998 "If this block device contains LVM volume groups, then calling L</vgscan> "
21999 "followed by L</vg-activate-all> will make them visible."
22000 msgstr ""
22001
22002 # type: =head2
22003 #: ../fish/guestfish-actions.pod:2468
22004 msgid "luks-open-ro"
22005 msgstr ""
22006
22007 # type: verbatim
22008 #: ../fish/guestfish-actions.pod:2470
22009 #, no-wrap
22010 msgid ""
22011 " luks-open-ro device mapname\n"
22012 "\n"
22013 msgstr ""
22014
22015 # type: textblock
22016 #: ../fish/guestfish-actions.pod:2472
22017 msgid ""
22018 "This is the same as L</luks-open> except that a read-only mapping is created."
22019 msgstr ""
22020
22021 # type: =head2
22022 #: ../fish/guestfish-actions.pod:2478
22023 msgid "lvcreate"
22024 msgstr ""
22025
22026 # type: verbatim
22027 #: ../fish/guestfish-actions.pod:2480
22028 #, no-wrap
22029 msgid ""
22030 " lvcreate logvol volgroup mbytes\n"
22031 "\n"
22032 msgstr ""
22033
22034 # type: =head2
22035 #: ../fish/guestfish-actions.pod:2485
22036 msgid "lvm-canonical-lv-name"
22037 msgstr ""
22038
22039 # type: verbatim
22040 #: ../fish/guestfish-actions.pod:2487
22041 #, no-wrap
22042 msgid ""
22043 " lvm-canonical-lv-name lvname\n"
22044 "\n"
22045 msgstr ""
22046
22047 # type: textblock
22048 #: ../fish/guestfish-actions.pod:2496
22049 msgid "See also L</is-lv>."
22050 msgstr ""
22051
22052 # type: =head2
22053 #: ../fish/guestfish-actions.pod:2498
22054 msgid "lvm-clear-filter"
22055 msgstr ""
22056
22057 # type: verbatim
22058 #: ../fish/guestfish-actions.pod:2500
22059 #, no-wrap
22060 msgid ""
22061 " lvm-clear-filter\n"
22062 "\n"
22063 msgstr ""
22064
22065 # type: textblock
22066 #: ../fish/guestfish-actions.pod:2502
22067 msgid ""
22068 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22069 "block device."
22070 msgstr ""
22071
22072 # type: =head2
22073 #: ../fish/guestfish-actions.pod:2508
22074 msgid "lvm-remove-all"
22075 msgstr ""
22076
22077 # type: verbatim
22078 #: ../fish/guestfish-actions.pod:2510
22079 #, no-wrap
22080 msgid ""
22081 " lvm-remove-all\n"
22082 "\n"
22083 msgstr ""
22084
22085 # type: =head2
22086 #: ../fish/guestfish-actions.pod:2518
22087 msgid "lvm-set-filter"
22088 msgstr ""
22089
22090 # type: verbatim
22091 #: ../fish/guestfish-actions.pod:2520
22092 #, no-wrap
22093 msgid ""
22094 " lvm-set-filter 'devices ...'\n"
22095 "\n"
22096 msgstr ""
22097
22098 # type: =head2
22099 #: ../fish/guestfish-actions.pod:2545
22100 msgid "lvremove"
22101 msgstr ""
22102
22103 # type: verbatim
22104 #: ../fish/guestfish-actions.pod:2547
22105 #, no-wrap
22106 msgid ""
22107 " lvremove device\n"
22108 "\n"
22109 msgstr ""
22110
22111 # type: =head2
22112 #: ../fish/guestfish-actions.pod:2555
22113 msgid "lvrename"
22114 msgstr ""
22115
22116 # type: verbatim
22117 #: ../fish/guestfish-actions.pod:2557
22118 #, no-wrap
22119 msgid ""
22120 " lvrename logvol newlogvol\n"
22121 "\n"
22122 msgstr ""
22123
22124 # type: =head2
22125 #: ../fish/guestfish-actions.pod:2561
22126 msgid "lvresize"
22127 msgstr ""
22128
22129 # type: verbatim
22130 #: ../fish/guestfish-actions.pod:2563
22131 #, no-wrap
22132 msgid ""
22133 " lvresize device mbytes\n"
22134 "\n"
22135 msgstr ""
22136
22137 # type: =head2
22138 #: ../fish/guestfish-actions.pod:2569
22139 msgid "lvresize-free"
22140 msgstr ""
22141
22142 # type: verbatim
22143 #: ../fish/guestfish-actions.pod:2571
22144 #, no-wrap
22145 msgid ""
22146 " lvresize-free lv percent\n"
22147 "\n"
22148 msgstr ""
22149
22150 # type: =head2
22151 #: ../fish/guestfish-actions.pod:2579
22152 msgid "lvs"
22153 msgstr ""
22154
22155 # type: verbatim
22156 #: ../fish/guestfish-actions.pod:2581
22157 #, no-wrap
22158 msgid ""
22159 " lvs\n"
22160 "\n"
22161 msgstr ""
22162
22163 # type: textblock
22164 #: ../fish/guestfish-actions.pod:2589
22165 msgid "See also L</lvs-full>, L</list-filesystems>."
22166 msgstr ""
22167
22168 # type: =head2
22169 #: ../fish/guestfish-actions.pod:2591
22170 msgid "lvs-full"
22171 msgstr ""
22172
22173 # type: verbatim
22174 #: ../fish/guestfish-actions.pod:2593
22175 #, no-wrap
22176 msgid ""
22177 " lvs-full\n"
22178 "\n"
22179 msgstr ""
22180
22181 # type: =head2
22182 #: ../fish/guestfish-actions.pod:2598
22183 msgid "lvuuid"
22184 msgstr ""
22185
22186 # type: verbatim
22187 #: ../fish/guestfish-actions.pod:2600
22188 #, no-wrap
22189 msgid ""
22190 " lvuuid device\n"
22191 "\n"
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:2604
22196 msgid "lxattrlist"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:2606
22201 #, no-wrap
22202 msgid ""
22203 " lxattrlist path 'names ...'\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-actions.pod:2622
22209 msgid ""
22210 "This call is intended for programs that want to efficiently list a directory "
22211 "contents without making many round-trips.  See also L</lstatlist> for a "
22212 "similarly efficient call for getting standard stats.  Very long directory "
22213 "listings might cause the protocol message size to be exceeded, causing this "
22214 "call to fail.  The caller must split up such requests into smaller groups of "
22215 "names."
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:2630
22220 msgid "mkdir"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:2632
22225 #, no-wrap
22226 msgid ""
22227 " mkdir path\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:2636
22233 msgid "mkdir-mode"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:2638
22238 #, no-wrap
22239 msgid ""
22240 " mkdir-mode path mode\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-actions.pod:2647
22246 msgid "See also L</mkdir>, L</umask>"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:2649
22251 msgid "mkdir-p"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:2651
22256 #, no-wrap
22257 msgid ""
22258 " mkdir-p path\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:2656
22264 msgid "mkdtemp"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:2658
22269 #, no-wrap
22270 msgid ""
22271 " mkdtemp template\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: =head2
22276 #: ../fish/guestfish-actions.pod:2679
22277 msgid "mke2fs-J"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #: ../fish/guestfish-actions.pod:2681
22282 #, no-wrap
22283 msgid ""
22284 " mke2fs-J fstype blocksize device journal\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: textblock
22289 #: ../fish/guestfish-actions.pod:2689
22290 msgid "See also L</mke2journal>."
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:2691
22295 msgid "mke2fs-JL"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:2693
22300 #, no-wrap
22301 msgid ""
22302 " mke2fs-JL fstype blocksize device label\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: textblock
22307 #: ../fish/guestfish-actions.pod:2698
22308 msgid "See also L</mke2journal-L>."
22309 msgstr ""
22310
22311 # type: =head2
22312 #: ../fish/guestfish-actions.pod:2700
22313 msgid "mke2fs-JU"
22314 msgstr ""
22315
22316 # type: verbatim
22317 #: ../fish/guestfish-actions.pod:2702
22318 #, no-wrap
22319 msgid ""
22320 " mke2fs-JU fstype blocksize device uuid\n"
22321 "\n"
22322 msgstr ""
22323
22324 # type: textblock
22325 #: ../fish/guestfish-actions.pod:2707
22326 msgid "See also L</mke2journal-U>."
22327 msgstr ""
22328
22329 # type: =head2
22330 #: ../fish/guestfish-actions.pod:2709
22331 msgid "mke2journal"
22332 msgstr ""
22333
22334 # type: verbatim
22335 #: ../fish/guestfish-actions.pod:2711
22336 #, no-wrap
22337 msgid ""
22338 " mke2journal blocksize device\n"
22339 "\n"
22340 msgstr ""
22341
22342 # type: =head2
22343 #: ../fish/guestfish-actions.pod:2718
22344 msgid "mke2journal-L"
22345 msgstr ""
22346
22347 # type: verbatim
22348 #: ../fish/guestfish-actions.pod:2720
22349 #, no-wrap
22350 msgid ""
22351 " mke2journal-L blocksize label device\n"
22352 "\n"
22353 msgstr ""
22354
22355 # type: =head2
22356 #: ../fish/guestfish-actions.pod:2724
22357 msgid "mke2journal-U"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #: ../fish/guestfish-actions.pod:2726
22362 #, no-wrap
22363 msgid ""
22364 " mke2journal-U blocksize uuid device\n"
22365 "\n"
22366 msgstr ""
22367
22368 # type: =head2
22369 #: ../fish/guestfish-actions.pod:2730
22370 msgid "mkfifo"
22371 msgstr ""
22372
22373 # type: verbatim
22374 #: ../fish/guestfish-actions.pod:2732
22375 #, no-wrap
22376 msgid ""
22377 " mkfifo mode path\n"
22378 "\n"
22379 msgstr ""
22380
22381 # type: textblock
22382 #: ../fish/guestfish-actions.pod:2734
22383 msgid ""
22384 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22385 "is just a convenient wrapper around L</mknod>."
22386 msgstr ""
22387
22388 # type: =head2
22389 #: ../fish/guestfish-actions.pod:2740
22390 msgid "mkfs"
22391 msgstr ""
22392
22393 # type: verbatim
22394 #: ../fish/guestfish-actions.pod:2742
22395 #, no-wrap
22396 msgid ""
22397 " mkfs fstype device\n"
22398 "\n"
22399 msgstr ""
22400
22401 # type: =head2
22402 #: ../fish/guestfish-actions.pod:2748
22403 msgid "mkfs-b"
22404 msgstr ""
22405
22406 # type: verbatim
22407 #: ../fish/guestfish-actions.pod:2750
22408 #, no-wrap
22409 msgid ""
22410 " mkfs-b fstype blocksize device\n"
22411 "\n"
22412 msgstr ""
22413
22414 # type: textblock
22415 #: ../fish/guestfish-actions.pod:2752
22416 msgid ""
22417 "This call is similar to L</mkfs>, but it allows you to control the block "
22418 "size of the resulting filesystem.  Supported block sizes depend on the "
22419 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22420 msgstr ""
22421
22422 # type: =head2
22423 #: ../fish/guestfish-actions.pod:2760
22424 msgid "mkmountpoint"
22425 msgstr ""
22426
22427 # type: verbatim
22428 #: ../fish/guestfish-actions.pod:2762
22429 #, no-wrap
22430 msgid ""
22431 " mkmountpoint exemptpath\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: textblock
22436 #: ../fish/guestfish-actions.pod:2764
22437 msgid ""
22438 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22439 "to create extra mountpoints before mounting the first filesystem."
22440 msgstr ""
22441
22442 # type: textblock
22443 #: ../fish/guestfish-actions.pod:2788
22444 msgid ""
22445 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22446 "unexpected errors if you try to mix these calls.  It is safest to manually "
22447 "unmount filesystems and remove mountpoints after use."
22448 msgstr ""
22449
22450 # type: textblock
22451 #: ../fish/guestfish-actions.pod:2792
22452 msgid ""
22453 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22454 "for this to work for manual mountpoints, you must ensure that the innermost "
22455 "mountpoints have the longest pathnames, as in the example code above."
22456 msgstr ""
22457
22458 # type: textblock
22459 #: ../fish/guestfish-actions.pod:2799
22460 msgid ""
22461 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22462 "that L</umount-all> is called when the handle is closed which can also "
22463 "trigger these issues."
22464 msgstr ""
22465
22466 # type: =head2
22467 #: ../fish/guestfish-actions.pod:2803
22468 msgid "mknod"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #: ../fish/guestfish-actions.pod:2805
22473 #, no-wrap
22474 msgid ""
22475 " mknod mode devmajor devminor path\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: textblock
22480 #: ../fish/guestfish-actions.pod:2815
22481 msgid ""
22482 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22483 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22484 "regular file).  These constants are available in the standard Linux header "
22485 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22486 "wrappers around this command which bitwise OR in the appropriate constant "
22487 "for you."
22488 msgstr ""
22489
22490 # type: =head2
22491 #: ../fish/guestfish-actions.pod:2825
22492 msgid "mknod-b"
22493 msgstr ""
22494
22495 # type: verbatim
22496 #: ../fish/guestfish-actions.pod:2827
22497 #, no-wrap
22498 msgid ""
22499 " mknod-b mode devmajor devminor path\n"
22500 "\n"
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../fish/guestfish-actions.pod:2829
22505 msgid ""
22506 "This call creates a block device node called C<path> with mode C<mode> and "
22507 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22508 "wrapper around L</mknod>."
22509 msgstr ""
22510
22511 # type: =head2
22512 #: ../fish/guestfish-actions.pod:2835
22513 msgid "mknod-c"
22514 msgstr ""
22515
22516 # type: verbatim
22517 #: ../fish/guestfish-actions.pod:2837
22518 #, no-wrap
22519 msgid ""
22520 " mknod-c mode devmajor devminor path\n"
22521 "\n"
22522 msgstr ""
22523
22524 # type: textblock
22525 #: ../fish/guestfish-actions.pod:2839
22526 msgid ""
22527 "This call creates a char device node called C<path> with mode C<mode> and "
22528 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22529 "wrapper around L</mknod>."
22530 msgstr ""
22531
22532 # type: =head2
22533 #: ../fish/guestfish-actions.pod:2845
22534 msgid "mkswap"
22535 msgstr ""
22536
22537 # type: verbatim
22538 #: ../fish/guestfish-actions.pod:2847
22539 #, no-wrap
22540 msgid ""
22541 " mkswap device\n"
22542 "\n"
22543 msgstr ""
22544
22545 # type: =head2
22546 #: ../fish/guestfish-actions.pod:2851
22547 msgid "mkswap-L"
22548 msgstr ""
22549
22550 # type: verbatim
22551 #: ../fish/guestfish-actions.pod:2853
22552 #, no-wrap
22553 msgid ""
22554 " mkswap-L label device\n"
22555 "\n"
22556 msgstr ""
22557
22558 # type: =head2
22559 #: ../fish/guestfish-actions.pod:2861
22560 msgid "mkswap-U"
22561 msgstr ""
22562
22563 # type: verbatim
22564 #: ../fish/guestfish-actions.pod:2863
22565 #, no-wrap
22566 msgid ""
22567 " mkswap-U uuid device\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: =head2
22572 #: ../fish/guestfish-actions.pod:2867
22573 msgid "mkswap-file"
22574 msgstr ""
22575
22576 # type: verbatim
22577 #: ../fish/guestfish-actions.pod:2869
22578 #, no-wrap
22579 msgid ""
22580 " mkswap-file path\n"
22581 "\n"
22582 msgstr ""
22583
22584 # type: textblock
22585 #: ../fish/guestfish-actions.pod:2873
22586 msgid ""
22587 "This command just writes a swap file signature to an existing file.  To "
22588 "create the file itself, use something like L</fallocate>."
22589 msgstr ""
22590
22591 # type: =head2
22592 #: ../fish/guestfish-actions.pod:2876
22593 msgid "modprobe"
22594 msgstr ""
22595
22596 # type: verbatim
22597 #: ../fish/guestfish-actions.pod:2878
22598 #, no-wrap
22599 msgid ""
22600 " modprobe modulename\n"
22601 "\n"
22602 msgstr ""
22603
22604 # type: =head2
22605 #: ../fish/guestfish-actions.pod:2885
22606 msgid "mount"
22607 msgstr ""
22608
22609 # type: verbatim
22610 #: ../fish/guestfish-actions.pod:2887
22611 #, no-wrap
22612 msgid ""
22613 " mount device mountpoint\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: textblock
22618 #: ../fish/guestfish-actions.pod:2903
22619 msgid ""
22620 "B<Important note:> When you use this call, the filesystem options C<sync> "
22621 "and C<noatime> are set implicitly.  This was originally done because we "
22622 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22623 "very large negative performance impact and negligible effect on "
22624 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22625 "code that needs performance, and instead use L</mount-options> (use an empty "
22626 "string for the first parameter if you don't want any options)."
22627 msgstr ""
22628
22629 # type: =head2
22630 #: ../fish/guestfish-actions.pod:2913
22631 msgid "mount-loop"
22632 msgstr ""
22633
22634 # type: verbatim
22635 #: ../fish/guestfish-actions.pod:2915
22636 #, no-wrap
22637 msgid ""
22638 " mount-loop file mountpoint\n"
22639 "\n"
22640 msgstr ""
22641
22642 # type: =head2
22643 #: ../fish/guestfish-actions.pod:2921
22644 msgid "mount-options"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #: ../fish/guestfish-actions.pod:2923
22649 #, no-wrap
22650 msgid ""
22651 " mount-options options device mountpoint\n"
22652 "\n"
22653 msgstr ""
22654
22655 # type: textblock
22656 #: ../fish/guestfish-actions.pod:2925
22657 msgid ""
22658 "This is the same as the L</mount> command, but it allows you to set the "
22659 "mount options as for the L<mount(8)> I<-o> flag."
22660 msgstr ""
22661
22662 # type: =head2
22663 #: ../fish/guestfish-actions.pod:2933
22664 msgid "mount-ro"
22665 msgstr ""
22666
22667 # type: verbatim
22668 #: ../fish/guestfish-actions.pod:2935
22669 #, no-wrap
22670 msgid ""
22671 " mount-ro device mountpoint\n"
22672 "\n"
22673 msgstr ""
22674
22675 # type: textblock
22676 #: ../fish/guestfish-actions.pod:2937
22677 msgid ""
22678 "This is the same as the L</mount> command, but it mounts the filesystem with "
22679 "the read-only (I<-o ro>) flag."
22680 msgstr ""
22681
22682 # type: =head2
22683 #: ../fish/guestfish-actions.pod:2940
22684 msgid "mount-vfs"
22685 msgstr ""
22686
22687 # type: verbatim
22688 #: ../fish/guestfish-actions.pod:2942
22689 #, no-wrap
22690 msgid ""
22691 " mount-vfs options vfstype device mountpoint\n"
22692 "\n"
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fish/guestfish-actions.pod:2944
22697 msgid ""
22698 "This is the same as the L</mount> command, but it allows you to set both the "
22699 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22700 msgstr ""
22701
22702 # type: =head2
22703 #: ../fish/guestfish-actions.pod:2948
22704 msgid "mountpoints"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #: ../fish/guestfish-actions.pod:2950
22709 #, no-wrap
22710 msgid ""
22711 " mountpoints\n"
22712 "\n"
22713 msgstr ""
22714
22715 # type: textblock
22716 #: ../fish/guestfish-actions.pod:2952
22717 msgid ""
22718 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22719 "This one returns a hash table (map) of device name to directory where the "
22720 "device is mounted."
22721 msgstr ""
22722
22723 # type: =head2
22724 #: ../fish/guestfish-actions.pod:2956
22725 msgid "mounts"
22726 msgstr ""
22727
22728 # type: verbatim
22729 #: ../fish/guestfish-actions.pod:2958
22730 #, no-wrap
22731 msgid ""
22732 " mounts\n"
22733 "\n"
22734 msgstr ""
22735
22736 # type: textblock
22737 #: ../fish/guestfish-actions.pod:2965
22738 msgid "See also: L</mountpoints>"
22739 msgstr ""
22740
22741 # type: =head2
22742 #: ../fish/guestfish-actions.pod:2967
22743 msgid "mv"
22744 msgstr ""
22745
22746 # type: verbatim
22747 #: ../fish/guestfish-actions.pod:2969
22748 #, no-wrap
22749 msgid ""
22750 " mv src dest\n"
22751 "\n"
22752 msgstr ""
22753
22754 # type: =head2
22755 #: ../fish/guestfish-actions.pod:2974
22756 msgid "ntfs-3g-probe"
22757 msgstr ""
22758
22759 # type: verbatim
22760 #: ../fish/guestfish-actions.pod:2976
22761 #, no-wrap
22762 msgid ""
22763 " ntfs-3g-probe true|false device\n"
22764 "\n"
22765 msgstr ""
22766
22767 # type: =head2
22768 #: ../fish/guestfish-actions.pod:2990
22769 msgid "ntfsresize"
22770 msgstr ""
22771
22772 # type: verbatim
22773 #: ../fish/guestfish-actions.pod:2992
22774 #, no-wrap
22775 msgid ""
22776 " ntfsresize device\n"
22777 "\n"
22778 msgstr ""
22779
22780 # type: =head2
22781 #: ../fish/guestfish-actions.pod:2998
22782 msgid "ntfsresize-size"
22783 msgstr ""
22784
22785 # type: verbatim
22786 #: ../fish/guestfish-actions.pod:3000
22787 #, no-wrap
22788 msgid ""
22789 " ntfsresize-size device size\n"
22790 "\n"
22791 msgstr ""
22792
22793 # type: textblock
22794 #: ../fish/guestfish-actions.pod:3002
22795 msgid ""
22796 "This command is the same as L</ntfsresize> except that it allows you to "
22797 "specify the new size (in bytes) explicitly."
22798 msgstr ""
22799
22800 # type: =head2
22801 #: ../fish/guestfish-actions.pod:3005
22802 msgid "part-add"
22803 msgstr ""
22804
22805 # type: verbatim
22806 #: ../fish/guestfish-actions.pod:3007
22807 #, no-wrap
22808 msgid ""
22809 " part-add device prlogex startsect endsect\n"
22810 "\n"
22811 msgstr ""
22812
22813 # type: textblock
22814 #: ../fish/guestfish-actions.pod:3009
22815 msgid ""
22816 "This command adds a partition to C<device>.  If there is no partition table "
22817 "on the device, call L</part-init> first."
22818 msgstr ""
22819
22820 # type: textblock
22821 #: ../fish/guestfish-actions.pod:3021
22822 msgid ""
22823 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22824 "part-disk> to do that."
22825 msgstr ""
22826
22827 # type: =head2
22828 #: ../fish/guestfish-actions.pod:3024
22829 msgid "part-del"
22830 msgstr ""
22831
22832 # type: verbatim
22833 #: ../fish/guestfish-actions.pod:3026
22834 #, no-wrap
22835 msgid ""
22836 " part-del device partnum\n"
22837 "\n"
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:3034
22842 msgid "part-disk"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:3036
22847 #, no-wrap
22848 msgid ""
22849 " part-disk device parttype\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: textblock
22854 #: ../fish/guestfish-actions.pod:3038
22855 msgid ""
22856 "This command is simply a combination of L</part-init> followed by L</part-"
22857 "add> to create a single primary partition covering the whole disk."
22858 msgstr ""
22859
22860 # type: textblock
22861 #: ../fish/guestfish-actions.pod:3042
22862 msgid ""
22863 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22864 "possible values are described in L</part-init>."
22865 msgstr ""
22866
22867 # type: =head2
22868 #: ../fish/guestfish-actions.pod:3048
22869 msgid "part-get-bootable"
22870 msgstr ""
22871
22872 # type: verbatim
22873 #: ../fish/guestfish-actions.pod:3050
22874 #, no-wrap
22875 msgid ""
22876 " part-get-bootable device partnum\n"
22877 "\n"
22878 msgstr ""
22879
22880 # type: textblock
22881 #: ../fish/guestfish-actions.pod:3055
22882 msgid "See also L</part-set-bootable>."
22883 msgstr ""
22884
22885 # type: =head2
22886 #: ../fish/guestfish-actions.pod:3057
22887 msgid "part-get-mbr-id"
22888 msgstr ""
22889
22890 # type: verbatim
22891 #: ../fish/guestfish-actions.pod:3059
22892 #, no-wrap
22893 msgid ""
22894 " part-get-mbr-id device partnum\n"
22895 "\n"
22896 msgstr ""
22897
22898 # type: textblock
22899 #: ../fish/guestfish-actions.pod:3064 ../fish/guestfish-actions.pod:3202
22900 msgid ""
22901 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22902 "undefined results for other partition table types (see L</part-get-"
22903 "parttype>)."
22904 msgstr ""
22905
22906 # type: =head2
22907 #: ../fish/guestfish-actions.pod:3068
22908 msgid "part-get-parttype"
22909 msgstr ""
22910
22911 # type: verbatim
22912 #: ../fish/guestfish-actions.pod:3070
22913 #, no-wrap
22914 msgid ""
22915 " part-get-parttype device\n"
22916 "\n"
22917 msgstr ""
22918
22919 # type: textblock
22920 #: ../fish/guestfish-actions.pod:3075
22921 msgid ""
22922 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22923 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22924 "possible, although unusual.  See L</part-init> for a full list."
22925 msgstr ""
22926
22927 # type: =head2
22928 #: ../fish/guestfish-actions.pod:3080
22929 msgid "part-init"
22930 msgstr ""
22931
22932 # type: verbatim
22933 #: ../fish/guestfish-actions.pod:3082
22934 #, no-wrap
22935 msgid ""
22936 " part-init device parttype\n"
22937 "\n"
22938 msgstr ""
22939
22940 # type: textblock
22941 #: ../fish/guestfish-actions.pod:3088
22942 msgid ""
22943 "Initially there are no partitions.  Following this, you should call L</part-"
22944 "add> for each partition required."
22945 msgstr ""
22946
22947 # type: =head2
22948 #: ../fish/guestfish-actions.pod:3151
22949 msgid "part-list"
22950 msgstr ""
22951
22952 # type: verbatim
22953 #: ../fish/guestfish-actions.pod:3153
22954 #, no-wrap
22955 msgid ""
22956 " part-list device\n"
22957 "\n"
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../fish/guestfish-actions.pod:3168
22962 msgid ""
22963 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22964 "the device's sector size, see L</blockdev-getss>."
22965 msgstr ""
22966
22967 # type: =head2
22968 #: ../fish/guestfish-actions.pod:3181
22969 msgid "part-set-bootable"
22970 msgstr ""
22971
22972 # type: verbatim
22973 #: ../fish/guestfish-actions.pod:3183
22974 #, no-wrap
22975 msgid ""
22976 " part-set-bootable device partnum true|false\n"
22977 "\n"
22978 msgstr ""
22979
22980 # type: =head2
22981 #: ../fish/guestfish-actions.pod:3192
22982 msgid "part-set-mbr-id"
22983 msgstr ""
22984
22985 # type: verbatim
22986 #: ../fish/guestfish-actions.pod:3194
22987 #, no-wrap
22988 msgid ""
22989 " part-set-mbr-id device partnum idbyte\n"
22990 "\n"
22991 msgstr ""
22992
22993 # type: =head2
22994 #: ../fish/guestfish-actions.pod:3206
22995 msgid "part-set-name"
22996 msgstr ""
22997
22998 # type: verbatim
22999 #: ../fish/guestfish-actions.pod:3208
23000 #, no-wrap
23001 msgid ""
23002 " part-set-name device partnum name\n"
23003 "\n"
23004 msgstr ""
23005
23006 # type: =head2
23007 #: ../fish/guestfish-actions.pod:3216
23008 msgid "part-to-dev"
23009 msgstr ""
23010
23011 # type: verbatim
23012 #: ../fish/guestfish-actions.pod:3218
23013 #, no-wrap
23014 msgid ""
23015 " part-to-dev partition\n"
23016 "\n"
23017 msgstr ""
23018
23019 # type: textblock
23020 #: ../fish/guestfish-actions.pod:3224
23021 msgid ""
23022 "The named partition must exist, for example as a string returned from L</"
23023 "list-partitions>."
23024 msgstr ""
23025
23026 # type: =head2
23027 #: ../fish/guestfish-actions.pod:3227
23028 msgid "ping-daemon"
23029 msgstr ""
23030
23031 # type: verbatim
23032 #: ../fish/guestfish-actions.pod:3229
23033 #, no-wrap
23034 msgid ""
23035 " ping-daemon\n"
23036 "\n"
23037 msgstr ""
23038
23039 # type: =head2
23040 #: ../fish/guestfish-actions.pod:3236
23041 msgid "pread"
23042 msgstr ""
23043
23044 # type: verbatim
23045 #: ../fish/guestfish-actions.pod:3238
23046 #, no-wrap
23047 msgid ""
23048 " pread path count offset\n"
23049 "\n"
23050 msgstr ""
23051
23052 # type: textblock
23053 #: ../fish/guestfish-actions.pod:3246
23054 msgid "See also L</pwrite>, L</pread-device>."
23055 msgstr ""
23056
23057 # type: =head2
23058 #: ../fish/guestfish-actions.pod:3251
23059 msgid "pread-device"
23060 msgstr ""
23061
23062 # type: verbatim
23063 #: ../fish/guestfish-actions.pod:3253
23064 #, no-wrap
23065 msgid ""
23066 " pread-device device count offset\n"
23067 "\n"
23068 msgstr ""
23069
23070 # type: textblock
23071 #: ../fish/guestfish-actions.pod:3261
23072 msgid "See also L</pread>."
23073 msgstr ""
23074
23075 # type: =head2
23076 #: ../fish/guestfish-actions.pod:3266
23077 msgid "pvcreate"
23078 msgstr ""
23079
23080 # type: verbatim
23081 #: ../fish/guestfish-actions.pod:3268
23082 #, no-wrap
23083 msgid ""
23084 " pvcreate device\n"
23085 "\n"
23086 msgstr ""
23087
23088 # type: =head2
23089 #: ../fish/guestfish-actions.pod:3274
23090 msgid "pvremove"
23091 msgstr ""
23092
23093 # type: verbatim
23094 #: ../fish/guestfish-actions.pod:3276
23095 #, no-wrap
23096 msgid ""
23097 " pvremove device\n"
23098 "\n"
23099 msgstr ""
23100
23101 # type: =head2
23102 #: ../fish/guestfish-actions.pod:3285
23103 msgid "pvresize"
23104 msgstr ""
23105
23106 # type: verbatim
23107 #: ../fish/guestfish-actions.pod:3287
23108 #, no-wrap
23109 msgid ""
23110 " pvresize device\n"
23111 "\n"
23112 msgstr ""
23113
23114 # type: =head2
23115 #: ../fish/guestfish-actions.pod:3292
23116 msgid "pvresize-size"
23117 msgstr ""
23118
23119 # type: verbatim
23120 #: ../fish/guestfish-actions.pod:3294
23121 #, no-wrap
23122 msgid ""
23123 " pvresize-size device size\n"
23124 "\n"
23125 msgstr ""
23126
23127 # type: textblock
23128 #: ../fish/guestfish-actions.pod:3296
23129 msgid ""
23130 "This command is the same as L</pvresize> except that it allows you to "
23131 "specify the new size (in bytes) explicitly."
23132 msgstr ""
23133
23134 # type: =head2
23135 #: ../fish/guestfish-actions.pod:3299
23136 msgid "pvs"
23137 msgstr ""
23138
23139 # type: verbatim
23140 #: ../fish/guestfish-actions.pod:3301
23141 #, no-wrap
23142 msgid ""
23143 " pvs\n"
23144 "\n"
23145 msgstr ""
23146
23147 # type: textblock
23148 #: ../fish/guestfish-actions.pod:3309
23149 msgid "See also L</pvs-full>."
23150 msgstr ""
23151
23152 # type: =head2
23153 #: ../fish/guestfish-actions.pod:3311
23154 msgid "pvs-full"
23155 msgstr ""
23156
23157 # type: verbatim
23158 #: ../fish/guestfish-actions.pod:3313
23159 #, no-wrap
23160 msgid ""
23161 " pvs-full\n"
23162 "\n"
23163 msgstr ""
23164
23165 # type: =head2
23166 #: ../fish/guestfish-actions.pod:3318
23167 msgid "pvuuid"
23168 msgstr ""
23169
23170 # type: verbatim
23171 #: ../fish/guestfish-actions.pod:3320
23172 #, no-wrap
23173 msgid ""
23174 " pvuuid device\n"
23175 "\n"
23176 msgstr ""
23177
23178 # type: =head2
23179 #: ../fish/guestfish-actions.pod:3324
23180 msgid "pwrite"
23181 msgstr ""
23182
23183 # type: verbatim
23184 #: ../fish/guestfish-actions.pod:3326
23185 #, no-wrap
23186 msgid ""
23187 " pwrite path content offset\n"
23188 "\n"
23189 msgstr ""
23190
23191 # type: textblock
23192 #: ../fish/guestfish-actions.pod:3337
23193 msgid "See also L</pread>, L</pwrite-device>."
23194 msgstr ""
23195
23196 # type: =head2
23197 #: ../fish/guestfish-actions.pod:3342
23198 msgid "pwrite-device"
23199 msgstr ""
23200
23201 # type: verbatim
23202 #: ../fish/guestfish-actions.pod:3344
23203 #, no-wrap
23204 msgid ""
23205 " pwrite-device device content offset\n"
23206 "\n"
23207 msgstr ""
23208
23209 # type: textblock
23210 #: ../fish/guestfish-actions.pod:3354
23211 msgid "See also L</pwrite>."
23212 msgstr ""
23213
23214 # type: =head2
23215 #: ../fish/guestfish-actions.pod:3359
23216 msgid "read-file"
23217 msgstr ""
23218
23219 # type: verbatim
23220 #: ../fish/guestfish-actions.pod:3361
23221 #, no-wrap
23222 msgid ""
23223 " read-file path\n"
23224 "\n"
23225 msgstr ""
23226
23227 # type: textblock
23228 #: ../fish/guestfish-actions.pod:3366
23229 msgid ""
23230 "Unlike L</cat>, this function can correctly handle files that contain "
23231 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23232 "is limited in the total size of file that can be handled."
23233 msgstr ""
23234
23235 # type: =head2
23236 #: ../fish/guestfish-actions.pod:3374
23237 msgid "read-lines"
23238 msgstr ""
23239
23240 # type: verbatim
23241 #: ../fish/guestfish-actions.pod:3376
23242 #, no-wrap
23243 msgid ""
23244 " read-lines path\n"
23245 "\n"
23246 msgstr ""
23247
23248 # type: textblock
23249 #: ../fish/guestfish-actions.pod:3383
23250 msgid ""
23251 "Note that this function cannot correctly handle binary files (specifically, "
23252 "files containing C<\\0> character which is treated as end of line).  For "
23253 "those you need to use the L</read-file> function which has a more complex "
23254 "interface."
23255 msgstr ""
23256
23257 # type: =head2
23258 #: ../fish/guestfish-actions.pod:3388
23259 msgid "readdir"
23260 msgstr ""
23261
23262 # type: verbatim
23263 #: ../fish/guestfish-actions.pod:3390
23264 #, no-wrap
23265 msgid ""
23266 " readdir dir\n"
23267 "\n"
23268 msgstr ""
23269
23270 # type: textblock
23271 #: ../fish/guestfish-actions.pod:3442
23272 msgid ""
23273 "This function is primarily intended for use by programs.  To get a simple "
23274 "list of names, use L</ls>.  To get a printable directory for human "
23275 "consumption, use L</ll>."
23276 msgstr ""
23277
23278 # type: =head2
23279 #: ../fish/guestfish-actions.pod:3446
23280 msgid "readlink"
23281 msgstr ""
23282
23283 # type: verbatim
23284 #: ../fish/guestfish-actions.pod:3448
23285 #, no-wrap
23286 msgid ""
23287 " readlink path\n"
23288 "\n"
23289 msgstr ""
23290
23291 # type: =head2
23292 #: ../fish/guestfish-actions.pod:3452
23293 msgid "readlinklist"
23294 msgstr ""
23295
23296 # type: verbatim
23297 #: ../fish/guestfish-actions.pod:3454
23298 #, no-wrap
23299 msgid ""
23300 " readlinklist path 'names ...'\n"
23301 "\n"
23302 msgstr ""
23303
23304 # type: =head2
23305 #: ../fish/guestfish-actions.pod:3478
23306 msgid "realpath"
23307 msgstr ""
23308
23309 # type: verbatim
23310 #: ../fish/guestfish-actions.pod:3480
23311 #, no-wrap
23312 msgid ""
23313 " realpath path\n"
23314 "\n"
23315 msgstr ""
23316
23317 # type: =head2
23318 #: ../fish/guestfish-actions.pod:3485
23319 msgid "removexattr"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fish/guestfish-actions.pod:3487
23324 #, no-wrap
23325 msgid ""
23326 " removexattr xattr path\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: textblock
23331 #: ../fish/guestfish-actions.pod:3492
23332 msgid "See also: L</lremovexattr>, L<attr(5)>."
23333 msgstr ""
23334
23335 # type: =head2
23336 #: ../fish/guestfish-actions.pod:3494
23337 msgid "resize2fs"
23338 msgstr ""
23339
23340 # type: verbatim
23341 #: ../fish/guestfish-actions.pod:3496
23342 #, no-wrap
23343 msgid ""
23344 " resize2fs device\n"
23345 "\n"
23346 msgstr ""
23347
23348 # type: textblock
23349 #: ../fish/guestfish-actions.pod:3501
23350 msgid ""
23351 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23352 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23353 "gives an error about this and sometimes not.  In any case, it is always safe "
23354 "to call L</e2fsck-f> before calling this function."
23355 msgstr ""
23356
23357 # type: =head2
23358 #: ../fish/guestfish-actions.pod:3507
23359 msgid "resize2fs-size"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fish/guestfish-actions.pod:3509
23364 #, no-wrap
23365 msgid ""
23366 " resize2fs-size device size\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: textblock
23371 #: ../fish/guestfish-actions.pod:3511
23372 msgid ""
23373 "This command is the same as L</resize2fs> except that it allows you to "
23374 "specify the new size (in bytes) explicitly."
23375 msgstr ""
23376
23377 # type: =head2
23378 #: ../fish/guestfish-actions.pod:3514
23379 msgid "rm"
23380 msgstr ""
23381
23382 # type: verbatim
23383 #: ../fish/guestfish-actions.pod:3516
23384 #, no-wrap
23385 msgid ""
23386 " rm path\n"
23387 "\n"
23388 msgstr ""
23389
23390 # type: =head2
23391 #: ../fish/guestfish-actions.pod:3520
23392 msgid "rm-rf"
23393 msgstr ""
23394
23395 # type: verbatim
23396 #: ../fish/guestfish-actions.pod:3522
23397 #, no-wrap
23398 msgid ""
23399 " rm-rf path\n"
23400 "\n"
23401 msgstr ""
23402
23403 # type: =head2
23404 #: ../fish/guestfish-actions.pod:3528
23405 msgid "rmdir"
23406 msgstr ""
23407
23408 # type: verbatim
23409 #: ../fish/guestfish-actions.pod:3530
23410 #, no-wrap
23411 msgid ""
23412 " rmdir path\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: =head2
23417 #: ../fish/guestfish-actions.pod:3534
23418 msgid "rmmountpoint"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #: ../fish/guestfish-actions.pod:3536
23423 #, no-wrap
23424 msgid ""
23425 " rmmountpoint exemptpath\n"
23426 "\n"
23427 msgstr ""
23428
23429 # type: textblock
23430 #: ../fish/guestfish-actions.pod:3538
23431 msgid ""
23432 "This calls removes a mountpoint that was previously created with L</"
23433 "mkmountpoint>.  See L</mkmountpoint> for full details."
23434 msgstr ""
23435
23436 # type: =head2
23437 #: ../fish/guestfish-actions.pod:3542
23438 msgid "scrub-device"
23439 msgstr ""
23440
23441 # type: verbatim
23442 #: ../fish/guestfish-actions.pod:3544
23443 #, no-wrap
23444 msgid ""
23445 " scrub-device device\n"
23446 "\n"
23447 msgstr ""
23448
23449 # type: =head2
23450 #: ../fish/guestfish-actions.pod:3555
23451 msgid "scrub-file"
23452 msgstr ""
23453
23454 # type: verbatim
23455 #: ../fish/guestfish-actions.pod:3557
23456 #, no-wrap
23457 msgid ""
23458 " scrub-file file\n"
23459 "\n"
23460 msgstr ""
23461
23462 # type: =head2
23463 #: ../fish/guestfish-actions.pod:3567
23464 msgid "scrub-freespace"
23465 msgstr ""
23466
23467 # type: verbatim
23468 #: ../fish/guestfish-actions.pod:3569
23469 #, no-wrap
23470 msgid ""
23471 " scrub-freespace dir\n"
23472 "\n"
23473 msgstr ""
23474
23475 # type: textblock
23476 #: ../fish/guestfish-actions.pod:3571
23477 msgid ""
23478 "This command creates the directory C<dir> and then fills it with files until "
23479 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23480 "deletes them.  The intention is to scrub any free space on the partition "
23481 "containing C<dir>."
23482 msgstr ""
23483
23484 # type: =head2
23485 #: ../fish/guestfish-actions.pod:3580
23486 msgid "set-append"
23487 msgstr ""
23488
23489 # type: =head2
23490 #: ../fish/guestfish-actions.pod:3582
23491 msgid "append"
23492 msgstr ""
23493
23494 # type: verbatim
23495 #: ../fish/guestfish-actions.pod:3584
23496 #, no-wrap
23497 msgid ""
23498 " set-append append\n"
23499 "\n"
23500 msgstr ""
23501
23502 # type: =head2
23503 #: ../fish/guestfish-actions.pod:3595
23504 msgid "set-autosync"
23505 msgstr ""
23506
23507 # type: =head2
23508 #: ../fish/guestfish-actions.pod:3597
23509 msgid "autosync"
23510 msgstr ""
23511
23512 # type: verbatim
23513 #: ../fish/guestfish-actions.pod:3599
23514 #, no-wrap
23515 msgid ""
23516 " set-autosync true|false\n"
23517 "\n"
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../fish/guestfish-actions.pod:3601
23522 msgid ""
23523 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23524 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23525 "closed (also if the program exits without closing handles)."
23526 msgstr ""
23527
23528 # type: =head2
23529 #: ../fish/guestfish-actions.pod:3609
23530 msgid "set-direct"
23531 msgstr ""
23532
23533 # type: =head2
23534 #: ../fish/guestfish-actions.pod:3611
23535 msgid "direct"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #: ../fish/guestfish-actions.pod:3613
23540 #, no-wrap
23541 msgid ""
23542 " set-direct true|false\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: textblock
23547 #: ../fish/guestfish-actions.pod:3619
23548 msgid ""
23549 "One consequence of this is that log messages aren't caught by the library "
23550 "and handled by L</set-log-message-callback>, but go straight to stdout."
23551 msgstr ""
23552
23553 # type: =head2
23554 #: ../fish/guestfish-actions.pod:3628
23555 msgid "set-e2label"
23556 msgstr ""
23557
23558 # type: verbatim
23559 #: ../fish/guestfish-actions.pod:3630
23560 #, no-wrap
23561 msgid ""
23562 " set-e2label device label\n"
23563 "\n"
23564 msgstr ""
23565
23566 # type: textblock
23567 #: ../fish/guestfish-actions.pod:3636
23568 msgid ""
23569 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23570 "label on a filesystem."
23571 msgstr ""
23572
23573 # type: =head2
23574 #: ../fish/guestfish-actions.pod:3639
23575 msgid "set-e2uuid"
23576 msgstr ""
23577
23578 # type: verbatim
23579 #: ../fish/guestfish-actions.pod:3641
23580 #, no-wrap
23581 msgid ""
23582 " set-e2uuid device uuid\n"
23583 "\n"
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../fish/guestfish-actions.pod:3648
23588 msgid ""
23589 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23590 "UUID of a filesystem."
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-actions.pod:3651
23595 msgid "set-memsize"
23596 msgstr ""
23597
23598 # type: =head2
23599 #: ../fish/guestfish-actions.pod:3653
23600 msgid "memsize"
23601 msgstr ""
23602
23603 # type: verbatim
23604 #: ../fish/guestfish-actions.pod:3655
23605 #, no-wrap
23606 msgid ""
23607 " set-memsize memsize\n"
23608 "\n"
23609 msgstr ""
23610
23611 # type: textblock
23612 #: ../fish/guestfish-actions.pod:3657
23613 msgid ""
23614 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23615 "This only has any effect if called before L</launch>."
23616 msgstr ""
23617
23618 # type: =head2
23619 #: ../fish/guestfish-actions.pod:3668
23620 msgid "set-network"
23621 msgstr ""
23622
23623 # type: =head2
23624 #: ../fish/guestfish-actions.pod:3670
23625 msgid "network"
23626 msgstr ""
23627
23628 # type: verbatim
23629 #: ../fish/guestfish-actions.pod:3672
23630 #, no-wrap
23631 msgid ""
23632 " set-network true|false\n"
23633 "\n"
23634 msgstr ""
23635
23636 # type: textblock
23637 #: ../fish/guestfish-actions.pod:3680
23638 msgid ""
23639 "You must call this before calling L</launch>, otherwise it has no effect."
23640 msgstr ""
23641
23642 # type: =head2
23643 #: ../fish/guestfish-actions.pod:3683
23644 msgid "set-path"
23645 msgstr ""
23646
23647 # type: =head2
23648 #: ../fish/guestfish-actions.pod:3685
23649 msgid "path"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #: ../fish/guestfish-actions.pod:3687
23654 #, no-wrap
23655 msgid ""
23656 " set-path searchpath\n"
23657 "\n"
23658 msgstr ""
23659
23660 # type: =head2
23661 #: ../fish/guestfish-actions.pod:3696
23662 msgid "set-qemu"
23663 msgstr ""
23664
23665 # type: =head2
23666 #: ../fish/guestfish-actions.pod:3698
23667 msgid "qemu"
23668 msgstr ""
23669
23670 # type: verbatim
23671 #: ../fish/guestfish-actions.pod:3700
23672 #, no-wrap
23673 msgid ""
23674 " set-qemu qemu\n"
23675 "\n"
23676 msgstr ""
23677
23678 # type: =head2
23679 #: ../fish/guestfish-actions.pod:3720
23680 msgid "set-recovery-proc"
23681 msgstr ""
23682
23683 # type: =head2
23684 #: ../fish/guestfish-actions.pod:3722
23685 msgid "recovery-proc"
23686 msgstr ""
23687
23688 # type: verbatim
23689 #: ../fish/guestfish-actions.pod:3724
23690 #, no-wrap
23691 msgid ""
23692 " set-recovery-proc true|false\n"
23693 "\n"
23694 msgstr ""
23695
23696 # type: textblock
23697 #: ../fish/guestfish-actions.pod:3726
23698 msgid ""
23699 "If this is called with the parameter C<false> then L</launch> does not "
23700 "create a recovery process.  The purpose of the recovery process is to stop "
23701 "runaway qemu processes in the case where the main program aborts abruptly."
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../fish/guestfish-actions.pod:3731
23706 msgid ""
23707 "This only has any effect if called before L</launch>, and the default is "
23708 "true."
23709 msgstr ""
23710
23711 # type: =head2
23712 #: ../fish/guestfish-actions.pod:3740
23713 msgid "set-selinux"
23714 msgstr ""
23715
23716 # type: =head2
23717 #: ../fish/guestfish-actions.pod:3742
23718 msgid "selinux"
23719 msgstr ""
23720
23721 # type: verbatim
23722 #: ../fish/guestfish-actions.pod:3744
23723 #, no-wrap
23724 msgid ""
23725 " set-selinux true|false\n"
23726 "\n"
23727 msgstr ""
23728
23729 # type: =head2
23730 #: ../fish/guestfish-actions.pod:3755
23731 msgid "set-trace"
23732 msgstr ""
23733
23734 # type: =head2
23735 #: ../fish/guestfish-actions.pod:3757
23736 msgid "trace"
23737 msgstr ""
23738
23739 # type: verbatim
23740 #: ../fish/guestfish-actions.pod:3759
23741 #, no-wrap
23742 msgid ""
23743 " set-trace true|false\n"
23744 "\n"
23745 msgstr ""
23746
23747 # type: =head2
23748 #: ../fish/guestfish-actions.pod:3775
23749 msgid "set-verbose"
23750 msgstr ""
23751
23752 # type: =head2
23753 #: ../fish/guestfish-actions.pod:3777
23754 msgid "verbose"
23755 msgstr ""
23756
23757 # type: verbatim
23758 #: ../fish/guestfish-actions.pod:3779
23759 #, no-wrap
23760 msgid ""
23761 " set-verbose true|false\n"
23762 "\n"
23763 msgstr ""
23764
23765 # type: =head2
23766 #: ../fish/guestfish-actions.pod:3786
23767 msgid "setcon"
23768 msgstr ""
23769
23770 # type: verbatim
23771 #: ../fish/guestfish-actions.pod:3788
23772 #, no-wrap
23773 msgid ""
23774 " setcon context\n"
23775 "\n"
23776 msgstr ""
23777
23778 # type: =head2
23779 #: ../fish/guestfish-actions.pod:3795
23780 msgid "setxattr"
23781 msgstr ""
23782
23783 # type: verbatim
23784 #: ../fish/guestfish-actions.pod:3797
23785 #, no-wrap
23786 msgid ""
23787 " setxattr xattr val vallen path\n"
23788 "\n"
23789 msgstr ""
23790
23791 # type: textblock
23792 #: ../fish/guestfish-actions.pod:3803
23793 msgid "See also: L</lsetxattr>, L<attr(5)>."
23794 msgstr ""
23795
23796 # type: =head2
23797 #: ../fish/guestfish-actions.pod:3805
23798 msgid "sfdisk"
23799 msgstr ""
23800
23801 # type: verbatim
23802 #: ../fish/guestfish-actions.pod:3807
23803 #, no-wrap
23804 msgid ""
23805 " sfdisk device cyls heads sectors 'lines ...'\n"
23806 "\n"
23807 msgstr ""
23808
23809 # type: textblock
23810 #: ../fish/guestfish-actions.pod:3829
23811 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23812 msgstr ""
23813
23814 # type: =head2
23815 #: ../fish/guestfish-actions.pod:3835
23816 msgid "sfdiskM"
23817 msgstr ""
23818
23819 # type: verbatim
23820 #: ../fish/guestfish-actions.pod:3837
23821 #, no-wrap
23822 msgid ""
23823 " sfdiskM device 'lines ...'\n"
23824 "\n"
23825 msgstr ""
23826
23827 # type: textblock
23828 #: ../fish/guestfish-actions.pod:3839
23829 msgid ""
23830 "This is a simplified interface to the L</sfdisk> command, where partition "
23831 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23832 "you don't need to specify the cyls, heads and sectors parameters which were "
23833 "rarely if ever used anyway."
23834 msgstr ""
23835
23836 # type: textblock
23837 #: ../fish/guestfish-actions.pod:3845
23838 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23839 msgstr ""
23840
23841 # type: =head2
23842 #: ../fish/guestfish-actions.pod:3851
23843 msgid "sfdisk-N"
23844 msgstr ""
23845
23846 # type: verbatim
23847 #: ../fish/guestfish-actions.pod:3853
23848 #, no-wrap
23849 msgid ""
23850 " sfdisk-N device partnum cyls heads sectors line\n"
23851 "\n"
23852 msgstr ""
23853
23854 # type: textblock
23855 #: ../fish/guestfish-actions.pod:3858
23856 msgid ""
23857 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23858 "cyls/heads/sectors parameters."
23859 msgstr ""
23860
23861 # type: textblock
23862 #: ../fish/guestfish-actions.pod:3861
23863 msgid "See also: L</part-add>"
23864 msgstr ""
23865
23866 # type: =head2
23867 #: ../fish/guestfish-actions.pod:3866
23868 msgid "sfdisk-disk-geometry"
23869 msgstr ""
23870
23871 # type: verbatim
23872 #: ../fish/guestfish-actions.pod:3868
23873 #, no-wrap
23874 msgid ""
23875 " sfdisk-disk-geometry device\n"
23876 "\n"
23877 msgstr ""
23878
23879 # type: textblock
23880 #: ../fish/guestfish-actions.pod:3870
23881 msgid ""
23882 "This displays the disk geometry of C<device> read from the partition table.  "
23883 "Especially in the case where the underlying block device has been resized, "
23884 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23885 "kernel-geometry>)."
23886 msgstr ""
23887
23888 # type: =head2
23889 #: ../fish/guestfish-actions.pod:3878
23890 msgid "sfdisk-kernel-geometry"
23891 msgstr ""
23892
23893 # type: verbatim
23894 #: ../fish/guestfish-actions.pod:3880
23895 #, no-wrap
23896 msgid ""
23897 " sfdisk-kernel-geometry device\n"
23898 "\n"
23899 msgstr ""
23900
23901 # type: =head2
23902 #: ../fish/guestfish-actions.pod:3887
23903 msgid "sfdisk-l"
23904 msgstr ""
23905
23906 # type: verbatim
23907 #: ../fish/guestfish-actions.pod:3889
23908 #, no-wrap
23909 msgid ""
23910 " sfdisk-l device\n"
23911 "\n"
23912 msgstr ""
23913
23914 # type: textblock
23915 #: ../fish/guestfish-actions.pod:3895
23916 msgid "See also: L</part-list>"
23917 msgstr ""
23918
23919 # type: =head2
23920 #: ../fish/guestfish-actions.pod:3897
23921 msgid "sh"
23922 msgstr ""
23923
23924 # type: verbatim
23925 #: ../fish/guestfish-actions.pod:3899
23926 #, no-wrap
23927 msgid ""
23928 " sh command\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: textblock
23933 #: ../fish/guestfish-actions.pod:3904
23934 msgid "This is like L</command>, but passes the command to:"
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../fish/guestfish-actions.pod:3912
23939 msgid "All the provisos about L</command> apply to this call."
23940 msgstr ""
23941
23942 # type: =head2
23943 #: ../fish/guestfish-actions.pod:3914
23944 msgid "sh-lines"
23945 msgstr ""
23946
23947 # type: verbatim
23948 #: ../fish/guestfish-actions.pod:3916
23949 #, no-wrap
23950 msgid ""
23951 " sh-lines command\n"
23952 "\n"
23953 msgstr ""
23954
23955 # type: textblock
23956 #: ../fish/guestfish-actions.pod:3918
23957 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23958 msgstr ""
23959
23960 # type: textblock
23961 #: ../fish/guestfish-actions.pod:3921
23962 msgid "See also: L</command-lines>"
23963 msgstr ""
23964
23965 # type: =head2
23966 #: ../fish/guestfish-actions.pod:3923
23967 msgid "sleep"
23968 msgstr ""
23969
23970 # type: verbatim
23971 #: ../fish/guestfish-actions.pod:3925
23972 #, no-wrap
23973 msgid ""
23974 " sleep secs\n"
23975 "\n"
23976 msgstr ""
23977
23978 # type: =head2
23979 #: ../fish/guestfish-actions.pod:3929
23980 msgid "stat"
23981 msgstr ""
23982
23983 # type: verbatim
23984 #: ../fish/guestfish-actions.pod:3931
23985 #, no-wrap
23986 msgid ""
23987 " stat path\n"
23988 "\n"
23989 msgstr ""
23990
23991 # type: =head2
23992 #: ../fish/guestfish-actions.pod:3937
23993 msgid "statvfs"
23994 msgstr ""
23995
23996 # type: verbatim
23997 #: ../fish/guestfish-actions.pod:3939
23998 #, no-wrap
23999 msgid ""
24000 " statvfs path\n"
24001 "\n"
24002 msgstr ""
24003
24004 # type: =head2
24005 #: ../fish/guestfish-actions.pod:3947
24006 msgid "strings"
24007 msgstr ""
24008
24009 # type: verbatim
24010 #: ../fish/guestfish-actions.pod:3949
24011 #, no-wrap
24012 msgid ""
24013 " strings path\n"
24014 "\n"
24015 msgstr ""
24016
24017 # type: =head2
24018 #: ../fish/guestfish-actions.pod:3957
24019 msgid "strings-e"
24020 msgstr ""
24021
24022 # type: verbatim
24023 #: ../fish/guestfish-actions.pod:3959
24024 #, no-wrap
24025 msgid ""
24026 " strings-e encoding path\n"
24027 "\n"
24028 msgstr ""
24029
24030 # type: textblock
24031 #: ../fish/guestfish-actions.pod:3961
24032 msgid ""
24033 "This is like the L</strings> command, but allows you to specify the encoding "
24034 "of strings that are looked for in the source file C<path>."
24035 msgstr ""
24036
24037 # type: textblock
24038 #: ../fish/guestfish-actions.pod:3971
24039 msgid ""
24040 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24041 "ISO-8859-X (this is what L</strings> uses)."
24042 msgstr ""
24043
24044 # type: =head2
24045 #: ../fish/guestfish-actions.pod:4003
24046 msgid "swapoff-device"
24047 msgstr ""
24048
24049 # type: verbatim
24050 #: ../fish/guestfish-actions.pod:4005
24051 #, no-wrap
24052 msgid ""
24053 " swapoff-device device\n"
24054 "\n"
24055 msgstr ""
24056
24057 # type: textblock
24058 #: ../fish/guestfish-actions.pod:4007
24059 msgid ""
24060 "This command disables the libguestfs appliance swap device or partition "
24061 "named C<device>.  See L</swapon-device>."
24062 msgstr ""
24063
24064 # type: =head2
24065 #: ../fish/guestfish-actions.pod:4011
24066 msgid "swapoff-file"
24067 msgstr ""
24068
24069 # type: verbatim
24070 #: ../fish/guestfish-actions.pod:4013
24071 #, no-wrap
24072 msgid ""
24073 " swapoff-file file\n"
24074 "\n"
24075 msgstr ""
24076
24077 # type: =head2
24078 #: ../fish/guestfish-actions.pod:4017
24079 msgid "swapoff-label"
24080 msgstr ""
24081
24082 # type: verbatim
24083 #: ../fish/guestfish-actions.pod:4019
24084 #, no-wrap
24085 msgid ""
24086 " swapoff-label label\n"
24087 "\n"
24088 msgstr ""
24089
24090 # type: =head2
24091 #: ../fish/guestfish-actions.pod:4024
24092 msgid "swapoff-uuid"
24093 msgstr ""
24094
24095 # type: verbatim
24096 #: ../fish/guestfish-actions.pod:4026
24097 #, no-wrap
24098 msgid ""
24099 " swapoff-uuid uuid\n"
24100 "\n"
24101 msgstr ""
24102
24103 # type: =head2
24104 #: ../fish/guestfish-actions.pod:4031
24105 msgid "swapon-device"
24106 msgstr ""
24107
24108 # type: verbatim
24109 #: ../fish/guestfish-actions.pod:4033
24110 #, no-wrap
24111 msgid ""
24112 " swapon-device device\n"
24113 "\n"
24114 msgstr ""
24115
24116 # type: textblock
24117 #: ../fish/guestfish-actions.pod:4035
24118 msgid ""
24119 "This command enables the libguestfs appliance to use the swap device or "
24120 "partition named C<device>.  The increased memory is made available for all "
24121 "commands, for example those run using L</command> or L</sh>."
24122 msgstr ""
24123
24124 # type: =head2
24125 #: ../fish/guestfish-actions.pod:4047
24126 msgid "swapon-file"
24127 msgstr ""
24128
24129 # type: verbatim
24130 #: ../fish/guestfish-actions.pod:4049
24131 #, no-wrap
24132 msgid ""
24133 " swapon-file file\n"
24134 "\n"
24135 msgstr ""
24136
24137 # type: textblock
24138 #: ../fish/guestfish-actions.pod:4051
24139 msgid ""
24140 "This command enables swap to a file.  See L</swapon-device> for other notes."
24141 msgstr ""
24142
24143 # type: =head2
24144 #: ../fish/guestfish-actions.pod:4054
24145 msgid "swapon-label"
24146 msgstr ""
24147
24148 # type: verbatim
24149 #: ../fish/guestfish-actions.pod:4056
24150 #, no-wrap
24151 msgid ""
24152 " swapon-label label\n"
24153 "\n"
24154 msgstr ""
24155
24156 # type: textblock
24157 #: ../fish/guestfish-actions.pod:4058
24158 msgid ""
24159 "This command enables swap to a labeled swap partition.  See L</swapon-"
24160 "device> for other notes."
24161 msgstr ""
24162
24163 # type: =head2
24164 #: ../fish/guestfish-actions.pod:4061
24165 msgid "swapon-uuid"
24166 msgstr ""
24167
24168 # type: verbatim
24169 #: ../fish/guestfish-actions.pod:4063
24170 #, no-wrap
24171 msgid ""
24172 " swapon-uuid uuid\n"
24173 "\n"
24174 msgstr ""
24175
24176 # type: textblock
24177 #: ../fish/guestfish-actions.pod:4065
24178 msgid ""
24179 "This command enables swap to a swap partition with the given UUID.  See L</"
24180 "swapon-device> for other notes."
24181 msgstr ""
24182
24183 # type: =head2
24184 #: ../fish/guestfish-actions.pod:4068
24185 msgid "sync"
24186 msgstr ""
24187
24188 # type: verbatim
24189 #: ../fish/guestfish-actions.pod:4070
24190 #, no-wrap
24191 msgid ""
24192 " sync\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: =head2
24197 #: ../fish/guestfish-actions.pod:4078
24198 msgid "tail"
24199 msgstr ""
24200
24201 # type: verbatim
24202 #: ../fish/guestfish-actions.pod:4080
24203 #, no-wrap
24204 msgid ""
24205 " tail path\n"
24206 "\n"
24207 msgstr ""
24208
24209 # type: =head2
24210 #: ../fish/guestfish-actions.pod:4088
24211 msgid "tail-n"
24212 msgstr ""
24213
24214 # type: verbatim
24215 #: ../fish/guestfish-actions.pod:4090
24216 #, no-wrap
24217 msgid ""
24218 " tail-n nrlines path\n"
24219 "\n"
24220 msgstr ""
24221
24222 # type: =head2
24223 #: ../fish/guestfish-actions.pod:4103
24224 msgid "tar-in"
24225 msgstr ""
24226
24227 # type: verbatim
24228 #: ../fish/guestfish-actions.pod:4105
24229 #, no-wrap
24230 msgid ""
24231 " tar-in (tarfile|-) directory\n"
24232 "\n"
24233 msgstr ""
24234
24235 # type: textblock
24236 #: ../fish/guestfish-actions.pod:4110
24237 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24238 msgstr ""
24239
24240 # type: =head2
24241 #: ../fish/guestfish-actions.pod:4115
24242 msgid "tar-out"
24243 msgstr ""
24244
24245 # type: verbatim
24246 #: ../fish/guestfish-actions.pod:4117
24247 #, no-wrap
24248 msgid ""
24249 " tar-out directory (tarfile|-)\n"
24250 "\n"
24251 msgstr ""
24252
24253 # type: textblock
24254 #: ../fish/guestfish-actions.pod:4122
24255 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24256 msgstr ""
24257
24258 # type: =head2
24259 #: ../fish/guestfish-actions.pod:4127
24260 msgid "tgz-in"
24261 msgstr ""
24262
24263 # type: verbatim
24264 #: ../fish/guestfish-actions.pod:4129
24265 #, no-wrap
24266 msgid ""
24267 " tgz-in (tarball|-) directory\n"
24268 "\n"
24269 msgstr ""
24270
24271 # type: textblock
24272 #: ../fish/guestfish-actions.pod:4134
24273 msgid "To upload an uncompressed tarball, use L</tar-in>."
24274 msgstr ""
24275
24276 # type: =head2
24277 #: ../fish/guestfish-actions.pod:4138
24278 msgid "tgz-out"
24279 msgstr ""
24280
24281 # type: verbatim
24282 #: ../fish/guestfish-actions.pod:4140
24283 #, no-wrap
24284 msgid ""
24285 " tgz-out directory (tarball|-)\n"
24286 "\n"
24287 msgstr ""
24288
24289 # type: textblock
24290 #: ../fish/guestfish-actions.pod:4145
24291 msgid "To download an uncompressed tarball, use L</tar-out>."
24292 msgstr ""
24293
24294 # type: =head2
24295 #: ../fish/guestfish-actions.pod:4149
24296 msgid "touch"
24297 msgstr ""
24298
24299 # type: verbatim
24300 #: ../fish/guestfish-actions.pod:4151
24301 #, no-wrap
24302 msgid ""
24303 " touch path\n"
24304 "\n"
24305 msgstr ""
24306
24307 # type: =head2
24308 #: ../fish/guestfish-actions.pod:4160
24309 msgid "truncate"
24310 msgstr ""
24311
24312 # type: verbatim
24313 #: ../fish/guestfish-actions.pod:4162
24314 #, no-wrap
24315 msgid ""
24316 " truncate path\n"
24317 "\n"
24318 msgstr ""
24319
24320 # type: =head2
24321 #: ../fish/guestfish-actions.pod:4167
24322 msgid "truncate-size"
24323 msgstr ""
24324
24325 # type: verbatim
24326 #: ../fish/guestfish-actions.pod:4169
24327 #, no-wrap
24328 msgid ""
24329 " truncate-size path size\n"
24330 "\n"
24331 msgstr ""
24332
24333 # type: textblock
24334 #: ../fish/guestfish-actions.pod:4174
24335 msgid ""
24336 "If the current file size is less than C<size> then the file is extended to "
24337 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24338 "blocks are not allocated for the file until you write to it).  To create a "
24339 "non-sparse file of zeroes, use L</fallocate64> instead."
24340 msgstr ""
24341
24342 # type: =head2
24343 #: ../fish/guestfish-actions.pod:4180
24344 msgid "tune2fs-l"
24345 msgstr ""
24346
24347 # type: verbatim
24348 #: ../fish/guestfish-actions.pod:4182
24349 #, no-wrap
24350 msgid ""
24351 " tune2fs-l device\n"
24352 "\n"
24353 msgstr ""
24354
24355 # type: =head2
24356 #: ../fish/guestfish-actions.pod:4192
24357 msgid "txz-in"
24358 msgstr ""
24359
24360 # type: verbatim
24361 #: ../fish/guestfish-actions.pod:4194
24362 #, no-wrap
24363 msgid ""
24364 " txz-in (tarball|-) directory\n"
24365 "\n"
24366 msgstr ""
24367
24368 # type: =head2
24369 #: ../fish/guestfish-actions.pod:4201
24370 msgid "txz-out"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #: ../fish/guestfish-actions.pod:4203
24375 #, no-wrap
24376 msgid ""
24377 " txz-out directory (tarball|-)\n"
24378 "\n"
24379 msgstr ""
24380
24381 # type: =head2
24382 #: ../fish/guestfish-actions.pod:4210
24383 msgid "umask"
24384 msgstr ""
24385
24386 # type: verbatim
24387 #: ../fish/guestfish-actions.pod:4212
24388 #, no-wrap
24389 msgid ""
24390 " umask mask\n"
24391 "\n"
24392 msgstr ""
24393
24394 # type: textblock
24395 #: ../fish/guestfish-actions.pod:4226
24396 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24397 msgstr ""
24398
24399 # type: =head2
24400 #: ../fish/guestfish-actions.pod:4231
24401 msgid "umount"
24402 msgstr ""
24403
24404 # type: =head2
24405 #: ../fish/guestfish-actions.pod:4233
24406 msgid "unmount"
24407 msgstr ""
24408
24409 # type: verbatim
24410 #: ../fish/guestfish-actions.pod:4235
24411 #, no-wrap
24412 msgid ""
24413 " umount pathordevice\n"
24414 "\n"
24415 msgstr ""
24416
24417 # type: =head2
24418 #: ../fish/guestfish-actions.pod:4241
24419 msgid "umount-all"
24420 msgstr ""
24421
24422 # type: =head2
24423 #: ../fish/guestfish-actions.pod:4243
24424 msgid "unmount-all"
24425 msgstr ""
24426
24427 # type: verbatim
24428 #: ../fish/guestfish-actions.pod:4245
24429 #, no-wrap
24430 msgid ""
24431 " umount-all\n"
24432 "\n"
24433 msgstr ""
24434
24435 # type: =head2
24436 #: ../fish/guestfish-actions.pod:4251
24437 msgid "upload"
24438 msgstr ""
24439
24440 # type: verbatim
24441 #: ../fish/guestfish-actions.pod:4253
24442 #, no-wrap
24443 msgid ""
24444 " upload (filename|-) remotefilename\n"
24445 "\n"
24446 msgstr ""
24447
24448 # type: textblock
24449 #: ../fish/guestfish-actions.pod:4260
24450 msgid "See also L</download>."
24451 msgstr ""
24452
24453 # type: =head2
24454 #: ../fish/guestfish-actions.pod:4264
24455 msgid "upload-offset"
24456 msgstr ""
24457
24458 # type: verbatim
24459 #: ../fish/guestfish-actions.pod:4266
24460 #, no-wrap
24461 msgid ""
24462 " upload-offset (filename|-) remotefilename offset\n"
24463 "\n"
24464 msgstr ""
24465
24466 # type: textblock
24467 #: ../fish/guestfish-actions.pod:4278
24468 msgid ""
24469 "Note that there is no limit on the amount of data that can be uploaded with "
24470 "this call, unlike with L</pwrite>, and this call always writes the full "
24471 "amount unless an error occurs."
24472 msgstr ""
24473
24474 # type: textblock
24475 #: ../fish/guestfish-actions.pod:4283
24476 msgid "See also L</upload>, L</pwrite>."
24477 msgstr ""
24478
24479 # type: =head2
24480 #: ../fish/guestfish-actions.pod:4287
24481 msgid "utimens"
24482 msgstr ""
24483
24484 # type: verbatim
24485 #: ../fish/guestfish-actions.pod:4289
24486 #, no-wrap
24487 msgid ""
24488 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24489 "\n"
24490 msgstr ""
24491
24492 # type: =head2
24493 #: ../fish/guestfish-actions.pod:4308
24494 msgid "version"
24495 msgstr ""
24496
24497 # type: verbatim
24498 #: ../fish/guestfish-actions.pod:4310
24499 #, no-wrap
24500 msgid ""
24501 " version\n"
24502 "\n"
24503 msgstr ""
24504
24505 # type: textblock
24506 #: ../fish/guestfish-actions.pod:4337
24507 msgid ""
24508 "I<Note:> Don't use this call to test for availability of features.  In "
24509 "enterprise distributions we backport features from later versions into "
24510 "earlier versions, making this an unreliable way to test for features.  Use "
24511 "L</available> instead."
24512 msgstr ""
24513
24514 # type: =head2
24515 #: ../fish/guestfish-actions.pod:4343
24516 msgid "vfs-label"
24517 msgstr ""
24518
24519 # type: verbatim
24520 #: ../fish/guestfish-actions.pod:4345
24521 #, no-wrap
24522 msgid ""
24523 " vfs-label device\n"
24524 "\n"
24525 msgstr ""
24526
24527 # type: textblock
24528 #: ../fish/guestfish-actions.pod:4352
24529 msgid "To find a filesystem from the label, use L</findfs-label>."
24530 msgstr ""
24531
24532 # type: =head2
24533 #: ../fish/guestfish-actions.pod:4354
24534 msgid "vfs-type"
24535 msgstr ""
24536
24537 # type: verbatim
24538 #: ../fish/guestfish-actions.pod:4356
24539 #, no-wrap
24540 msgid ""
24541 " vfs-type device\n"
24542 "\n"
24543 msgstr ""
24544
24545 # type: =head2
24546 #: ../fish/guestfish-actions.pod:4366
24547 msgid "vfs-uuid"
24548 msgstr ""
24549
24550 # type: verbatim
24551 #: ../fish/guestfish-actions.pod:4368
24552 #, no-wrap
24553 msgid ""
24554 " vfs-uuid device\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../fish/guestfish-actions.pod:4375
24560 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24561 msgstr ""
24562
24563 # type: =head2
24564 #: ../fish/guestfish-actions.pod:4377
24565 msgid "vg-activate"
24566 msgstr ""
24567
24568 # type: verbatim
24569 #: ../fish/guestfish-actions.pod:4379
24570 #, no-wrap
24571 msgid ""
24572 " vg-activate true|false 'volgroups ...'\n"
24573 "\n"
24574 msgstr ""
24575
24576 # type: =head2
24577 #: ../fish/guestfish-actions.pod:4392
24578 msgid "vg-activate-all"
24579 msgstr ""
24580
24581 # type: verbatim
24582 #: ../fish/guestfish-actions.pod:4394
24583 #, no-wrap
24584 msgid ""
24585 " vg-activate-all true|false\n"
24586 "\n"
24587 msgstr ""
24588
24589 # type: =head2
24590 #: ../fish/guestfish-actions.pod:4404
24591 msgid "vgcreate"
24592 msgstr ""
24593
24594 # type: verbatim
24595 #: ../fish/guestfish-actions.pod:4406
24596 #, no-wrap
24597 msgid ""
24598 " vgcreate volgroup 'physvols ...'\n"
24599 "\n"
24600 msgstr ""
24601
24602 # type: =head2
24603 #: ../fish/guestfish-actions.pod:4411
24604 msgid "vglvuuids"
24605 msgstr ""
24606
24607 # type: verbatim
24608 #: ../fish/guestfish-actions.pod:4413
24609 #, no-wrap
24610 msgid ""
24611 " vglvuuids vgname\n"
24612 "\n"
24613 msgstr ""
24614
24615 # type: textblock
24616 #: ../fish/guestfish-actions.pod:4418
24617 msgid ""
24618 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24619 "logical volumes and volume groups."
24620 msgstr ""
24621
24622 # type: textblock
24623 #: ../fish/guestfish-actions.pod:4421
24624 msgid "See also L</vgpvuuids>."
24625 msgstr ""
24626
24627 # type: =head2
24628 #: ../fish/guestfish-actions.pod:4423
24629 msgid "vgpvuuids"
24630 msgstr ""
24631
24632 # type: verbatim
24633 #: ../fish/guestfish-actions.pod:4425
24634 #, no-wrap
24635 msgid ""
24636 " vgpvuuids vgname\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: textblock
24641 #: ../fish/guestfish-actions.pod:4430
24642 msgid ""
24643 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24644 "physical volumes and volume groups."
24645 msgstr ""
24646
24647 # type: textblock
24648 #: ../fish/guestfish-actions.pod:4433
24649 msgid "See also L</vglvuuids>."
24650 msgstr ""
24651
24652 # type: =head2
24653 #: ../fish/guestfish-actions.pod:4435
24654 msgid "vgremove"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #: ../fish/guestfish-actions.pod:4437
24659 #, no-wrap
24660 msgid ""
24661 " vgremove vgname\n"
24662 "\n"
24663 msgstr ""
24664
24665 # type: =head2
24666 #: ../fish/guestfish-actions.pod:4444
24667 msgid "vgrename"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #: ../fish/guestfish-actions.pod:4446
24672 #, no-wrap
24673 msgid ""
24674 " vgrename volgroup newvolgroup\n"
24675 "\n"
24676 msgstr ""
24677
24678 # type: =head2
24679 #: ../fish/guestfish-actions.pod:4450
24680 msgid "vgs"
24681 msgstr ""
24682
24683 # type: verbatim
24684 #: ../fish/guestfish-actions.pod:4452
24685 #, no-wrap
24686 msgid ""
24687 " vgs\n"
24688 "\n"
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../fish/guestfish-actions.pod:4460
24693 msgid "See also L</vgs-full>."
24694 msgstr ""
24695
24696 # type: =head2
24697 #: ../fish/guestfish-actions.pod:4462
24698 msgid "vgs-full"
24699 msgstr ""
24700
24701 # type: verbatim
24702 #: ../fish/guestfish-actions.pod:4464
24703 #, no-wrap
24704 msgid ""
24705 " vgs-full\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: =head2
24710 #: ../fish/guestfish-actions.pod:4469
24711 msgid "vgscan"
24712 msgstr ""
24713
24714 # type: verbatim
24715 #: ../fish/guestfish-actions.pod:4471
24716 #, no-wrap
24717 msgid ""
24718 " vgscan\n"
24719 "\n"
24720 msgstr ""
24721
24722 # type: =head2
24723 #: ../fish/guestfish-actions.pod:4476
24724 msgid "vguuid"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #: ../fish/guestfish-actions.pod:4478
24729 #, no-wrap
24730 msgid ""
24731 " vguuid vgname\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: =head2
24736 #: ../fish/guestfish-actions.pod:4482
24737 msgid "wc-c"
24738 msgstr ""
24739
24740 # type: verbatim
24741 #: ../fish/guestfish-actions.pod:4484
24742 #, no-wrap
24743 msgid ""
24744 " wc-c path\n"
24745 "\n"
24746 msgstr ""
24747
24748 # type: =head2
24749 #: ../fish/guestfish-actions.pod:4489
24750 msgid "wc-l"
24751 msgstr ""
24752
24753 # type: verbatim
24754 #: ../fish/guestfish-actions.pod:4491
24755 #, no-wrap
24756 msgid ""
24757 " wc-l path\n"
24758 "\n"
24759 msgstr ""
24760
24761 # type: =head2
24762 #: ../fish/guestfish-actions.pod:4496
24763 msgid "wc-w"
24764 msgstr ""
24765
24766 # type: verbatim
24767 #: ../fish/guestfish-actions.pod:4498
24768 #, no-wrap
24769 msgid ""
24770 " wc-w path\n"
24771 "\n"
24772 msgstr ""
24773
24774 # type: =head2
24775 #: ../fish/guestfish-actions.pod:4503
24776 msgid "write"
24777 msgstr ""
24778
24779 # type: verbatim
24780 #: ../fish/guestfish-actions.pod:4505
24781 #, no-wrap
24782 msgid ""
24783 " write path content\n"
24784 "\n"
24785 msgstr ""
24786
24787 # type: =head2
24788 #: ../fish/guestfish-actions.pod:4513
24789 msgid "write-file"
24790 msgstr ""
24791
24792 # type: verbatim
24793 #: ../fish/guestfish-actions.pod:4515
24794 #, no-wrap
24795 msgid ""
24796 " write-file path content size\n"
24797 "\n"
24798 msgstr ""
24799
24800 # type: =head2
24801 #: ../fish/guestfish-actions.pod:4538
24802 msgid "zegrep"
24803 msgstr ""
24804
24805 # type: verbatim
24806 #: ../fish/guestfish-actions.pod:4540
24807 #, no-wrap
24808 msgid ""
24809 " zegrep regex path\n"
24810 "\n"
24811 msgstr ""
24812
24813 # type: =head2
24814 #: ../fish/guestfish-actions.pod:4548
24815 msgid "zegrepi"
24816 msgstr ""
24817
24818 # type: verbatim
24819 #: ../fish/guestfish-actions.pod:4550
24820 #, no-wrap
24821 msgid ""
24822 " zegrepi regex path\n"
24823 "\n"
24824 msgstr ""
24825
24826 # type: =head2
24827 #: ../fish/guestfish-actions.pod:4558
24828 msgid "zero"
24829 msgstr ""
24830
24831 # type: verbatim
24832 #: ../fish/guestfish-actions.pod:4560
24833 #, no-wrap
24834 msgid ""
24835 " zero device\n"
24836 "\n"
24837 msgstr ""
24838
24839 # type: textblock
24840 #: ../fish/guestfish-actions.pod:4568
24841 msgid "See also: L</zero-device>, L</scrub-device>."
24842 msgstr ""
24843
24844 # type: =head2
24845 #: ../fish/guestfish-actions.pod:4570
24846 msgid "zero-device"
24847 msgstr ""
24848
24849 # type: verbatim
24850 #: ../fish/guestfish-actions.pod:4572
24851 #, no-wrap
24852 msgid ""
24853 " zero-device device\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: textblock
24858 #: ../fish/guestfish-actions.pod:4574
24859 msgid ""
24860 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24861 "which just zeroes the first few blocks of a device."
24862 msgstr ""
24863
24864 # type: =head2
24865 #: ../fish/guestfish-actions.pod:4581
24866 msgid "zerofree"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #: ../fish/guestfish-actions.pod:4583
24871 #, no-wrap
24872 msgid ""
24873 " zerofree device\n"
24874 "\n"
24875 msgstr ""
24876
24877 # type: =head2
24878 #: ../fish/guestfish-actions.pod:4596
24879 msgid "zfgrep"
24880 msgstr ""
24881
24882 # type: verbatim
24883 #: ../fish/guestfish-actions.pod:4598
24884 #, no-wrap
24885 msgid ""
24886 " zfgrep pattern path\n"
24887 "\n"
24888 msgstr ""
24889
24890 # type: =head2
24891 #: ../fish/guestfish-actions.pod:4606
24892 msgid "zfgrepi"
24893 msgstr ""
24894
24895 # type: verbatim
24896 #: ../fish/guestfish-actions.pod:4608
24897 #, no-wrap
24898 msgid ""
24899 " zfgrepi pattern path\n"
24900 "\n"
24901 msgstr ""
24902
24903 # type: =head2
24904 #: ../fish/guestfish-actions.pod:4616
24905 msgid "zfile"
24906 msgstr ""
24907
24908 # type: verbatim
24909 #: ../fish/guestfish-actions.pod:4618
24910 #, no-wrap
24911 msgid ""
24912 " zfile meth path\n"
24913 "\n"
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../fish/guestfish-actions.pod:4625
24918 msgid ""
24919 "Since 1.0.63, use L</file> instead which can now process compressed files."
24920 msgstr ""
24921
24922 # type: =head2
24923 #: ../fish/guestfish-actions.pod:4635
24924 msgid "zgrep"
24925 msgstr ""
24926
24927 # type: verbatim
24928 #: ../fish/guestfish-actions.pod:4637
24929 #, no-wrap
24930 msgid ""
24931 " zgrep regex path\n"
24932 "\n"
24933 msgstr ""
24934
24935 # type: =head2
24936 #: ../fish/guestfish-actions.pod:4645
24937 msgid "zgrepi"
24938 msgstr ""
24939
24940 # type: verbatim
24941 #: ../fish/guestfish-actions.pod:4647
24942 #, no-wrap
24943 msgid ""
24944 " zgrepi regex path\n"
24945 "\n"
24946 msgstr ""
24947
24948 # type: =head2
24949 #: ../fish/guestfish-commands.pod:1
24950 msgid "alloc"
24951 msgstr ""
24952
24953 # type: =head2
24954 #: ../fish/guestfish-commands.pod:3
24955 msgid "allocate"
24956 msgstr ""
24957
24958 # type: verbatim
24959 #: ../fish/guestfish-commands.pod:5
24960 #, no-wrap
24961 msgid ""
24962 " alloc filename size\n"
24963 "\n"
24964 msgstr ""
24965
24966 # type: textblock
24967 #: ../fish/guestfish-commands.pod:7
24968 msgid ""
24969 "This creates an empty (zeroed) file of the given size, and then adds so it "
24970 "can be further examined."
24971 msgstr ""
24972
24973 # type: textblock
24974 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24975 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24976 msgstr ""
24977
24978 # type: textblock
24979 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24980 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24981 msgstr ""
24982
24983 # type: textblock
24984 #: ../fish/guestfish-commands.pod:14
24985 msgid ""
24986 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24987 "image, see L</PREPARED DISK IMAGES>."
24988 msgstr ""
24989
24990 # type: =head2
24991 #: ../fish/guestfish-commands.pod:17
24992 msgid "copy-in"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #: ../fish/guestfish-commands.pod:19
24997 #, no-wrap
24998 msgid ""
24999 " copy-in local [local ...] /remotedir\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: textblock
25004 #: ../fish/guestfish-commands.pod:21
25005 msgid ""
25006 "C<copy-in> copies local files or directories recursively into the disk "
25007 "image, placing them in the directory called C</remotedir> (which must "
25008 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25009 "other commands as necessary."
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../fish/guestfish-commands.pod:26
25014 msgid ""
25015 "Multiple local files and directories can be specified, but the last "
25016 "parameter must always be a remote directory.  Wildcards cannot be used."
25017 msgstr ""
25018
25019 # type: =head2
25020 #: ../fish/guestfish-commands.pod:30
25021 msgid "copy-out"
25022 msgstr ""
25023
25024 # type: verbatim
25025 #: ../fish/guestfish-commands.pod:32
25026 #, no-wrap
25027 msgid ""
25028 " copy-out remote [remote ...] localdir\n"
25029 "\n"
25030 msgstr ""
25031
25032 # type: textblock
25033 #: ../fish/guestfish-commands.pod:34
25034 msgid ""
25035 "C<copy-out> copies remote files or directories recursively out of the disk "
25036 "image, placing them on the host disk in a local directory called C<localdir> "
25037 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25038 "download>, L</tar-out> and other commands as necessary."
25039 msgstr ""
25040
25041 # type: textblock
25042 #: ../fish/guestfish-commands.pod:40
25043 msgid ""
25044 "Multiple remote files and directories can be specified, but the last "
25045 "parameter must always be a local directory.  To download to the current "
25046 "directory, use C<.> as in:"
25047 msgstr ""
25048
25049 # type: verbatim
25050 #: ../fish/guestfish-commands.pod:44
25051 #, no-wrap
25052 msgid ""
25053 " copy-out /home .\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: textblock
25058 #: ../fish/guestfish-commands.pod:46
25059 msgid ""
25060 "Wildcards cannot be used in the ordinary command, but you can use them with "
25061 "the help of L</glob> like this:"
25062 msgstr ""
25063
25064 # type: verbatim
25065 #: ../fish/guestfish-commands.pod:49
25066 #, no-wrap
25067 msgid ""
25068 " glob copy-out /home/* .\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: =head2
25073 #: ../fish/guestfish-commands.pod:51
25074 msgid "echo"
25075 msgstr ""
25076
25077 # type: verbatim
25078 #: ../fish/guestfish-commands.pod:53
25079 #, no-wrap
25080 msgid ""
25081 " echo [params ...]\n"
25082 "\n"
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../fish/guestfish-commands.pod:55
25087 msgid "This echos the parameters to the terminal."
25088 msgstr ""
25089
25090 # type: =head2
25091 #: ../fish/guestfish-commands.pod:57
25092 msgid "edit"
25093 msgstr ""
25094
25095 # type: =head2
25096 #: ../fish/guestfish-commands.pod:59
25097 msgid "vi"
25098 msgstr ""
25099
25100 # type: =head2
25101 #: ../fish/guestfish-commands.pod:61
25102 msgid "emacs"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #: ../fish/guestfish-commands.pod:63
25107 #, no-wrap
25108 msgid ""
25109 " edit filename\n"
25110 "\n"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../fish/guestfish-commands.pod:65
25115 msgid ""
25116 "This is used to edit a file.  It downloads the file, edits it locally using "
25117 "your editor, then uploads the result."
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../fish/guestfish-commands.pod:68
25122 msgid ""
25123 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25124 "or C<emacs> you will get those corresponding editors."
25125 msgstr ""
25126
25127 # type: =head2
25128 #: ../fish/guestfish-commands.pod:72
25129 msgid "glob"
25130 msgstr ""
25131
25132 # type: verbatim
25133 #: ../fish/guestfish-commands.pod:74
25134 #, no-wrap
25135 msgid ""
25136 " glob command args...\n"
25137 "\n"
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../fish/guestfish-commands.pod:76
25142 msgid ""
25143 "Expand wildcards in any paths in the args list, and run C<command> "
25144 "repeatedly on each matching path."
25145 msgstr ""
25146
25147 # type: textblock
25148 #: ../fish/guestfish-commands.pod:79
25149 msgid "See L</WILDCARDS AND GLOBBING>."
25150 msgstr ""
25151
25152 # type: =head2
25153 #: ../fish/guestfish-commands.pod:81
25154 msgid "hexedit"
25155 msgstr ""
25156
25157 # type: verbatim
25158 #: ../fish/guestfish-commands.pod:83
25159 #, no-wrap
25160 msgid ""
25161 " hexedit <filename|device>\n"
25162 " hexedit <filename|device> <max>\n"
25163 " hexedit <filename|device> <start> <max>\n"
25164 "\n"
25165 msgstr ""
25166
25167 # type: textblock
25168 #: ../fish/guestfish-commands.pod:87
25169 msgid ""
25170 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25171 "device."
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../fish/guestfish-commands.pod:90
25176 msgid ""
25177 "This command works by downloading potentially the whole file or device, "
25178 "editing it locally, then uploading it.  If the file or device is large, you "
25179 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25180 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25181 "usual modifiers allowed such as C<1M> (1 megabyte)."
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fish/guestfish-commands.pod:97
25186 msgid "For example to edit the first few sectors of a disk you might do:"
25187 msgstr ""
25188
25189 # type: verbatim
25190 #: ../fish/guestfish-commands.pod:100
25191 #, no-wrap
25192 msgid ""
25193 " hexedit /dev/sda 1M\n"
25194 "\n"
25195 msgstr ""
25196
25197 # type: textblock
25198 #: ../fish/guestfish-commands.pod:102
25199 msgid ""
25200 "which would allow you to edit anywhere within the first megabyte of the disk."
25201 msgstr ""
25202
25203 # type: textblock
25204 #: ../fish/guestfish-commands.pod:105
25205 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25206 msgstr ""
25207
25208 # type: verbatim
25209 #: ../fish/guestfish-commands.pod:107
25210 #, no-wrap
25211 msgid ""
25212 " hexedit /dev/sda1 0x400 0x400\n"
25213 "\n"
25214 msgstr ""
25215
25216 # type: textblock
25217 #: ../fish/guestfish-commands.pod:109
25218 msgid "(assuming the superblock is in the standard location)."
25219 msgstr ""
25220
25221 # type: textblock
25222 #: ../fish/guestfish-commands.pod:111
25223 msgid ""
25224 "This command requires the external L<hexedit(1)> program.  You can specify "
25225 "another program to use by setting the C<HEXEDITOR> environment variable."
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../fish/guestfish-commands.pod:115
25230 msgid "See also L</hexdump>."
25231 msgstr ""
25232
25233 # type: =head2
25234 #: ../fish/guestfish-commands.pod:117
25235 msgid "lcd"
25236 msgstr ""
25237
25238 # type: verbatim
25239 #: ../fish/guestfish-commands.pod:119
25240 #, no-wrap
25241 msgid ""
25242 " lcd directory\n"
25243 "\n"
25244 msgstr ""
25245
25246 # type: textblock
25247 #: ../fish/guestfish-commands.pod:121
25248 msgid ""
25249 "Change the local directory, ie. the current directory of guestfish itself."
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fish/guestfish-commands.pod:124
25254 msgid "Note that C<!cd> won't do what you might expect."
25255 msgstr ""
25256
25257 # type: =head2
25258 #: ../fish/guestfish-commands.pod:126
25259 msgid "man"
25260 msgstr ""
25261
25262 # type: =head2
25263 #: ../fish/guestfish-commands.pod:128
25264 msgid "manual"
25265 msgstr ""
25266
25267 # type: verbatim
25268 #: ../fish/guestfish-commands.pod:130
25269 #, no-wrap
25270 msgid ""
25271 "  man\n"
25272 "\n"
25273 msgstr ""
25274
25275 # type: textblock
25276 #: ../fish/guestfish-commands.pod:132
25277 msgid "Opens the manual page for guestfish."
25278 msgstr ""
25279
25280 # type: =head2
25281 #: ../fish/guestfish-commands.pod:134
25282 msgid "more"
25283 msgstr ""
25284
25285 # type: =head2
25286 #: ../fish/guestfish-commands.pod:136
25287 msgid "less"
25288 msgstr ""
25289
25290 # type: verbatim
25291 #: ../fish/guestfish-commands.pod:138
25292 #, no-wrap
25293 msgid ""
25294 " more filename\n"
25295 "\n"
25296 msgstr ""
25297
25298 # type: verbatim
25299 #: ../fish/guestfish-commands.pod:140
25300 #, no-wrap
25301 msgid ""
25302 " less filename\n"
25303 "\n"
25304 msgstr ""
25305
25306 # type: textblock
25307 #: ../fish/guestfish-commands.pod:142
25308 msgid "This is used to view a file."
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../fish/guestfish-commands.pod:144
25313 msgid ""
25314 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25315 "C<less> you will get the C<less> command specifically."
25316 msgstr ""
25317
25318 # type: =head2
25319 #: ../fish/guestfish-commands.pod:147
25320 msgid "reopen"
25321 msgstr ""
25322
25323 # type: verbatim
25324 #: ../fish/guestfish-commands.pod:149
25325 #, no-wrap
25326 msgid ""
25327 "  reopen\n"
25328 "\n"
25329 msgstr ""
25330
25331 # type: textblock
25332 #: ../fish/guestfish-commands.pod:151
25333 msgid ""
25334 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25335 "normally, because the handle is closed properly when guestfish exits.  "
25336 "However this is occasionally useful for testing."
25337 msgstr ""
25338
25339 # type: =head2
25340 #: ../fish/guestfish-commands.pod:155
25341 msgid "sparse"
25342 msgstr ""
25343
25344 # type: verbatim
25345 #: ../fish/guestfish-commands.pod:157
25346 #, no-wrap
25347 msgid ""
25348 " sparse filename size\n"
25349 "\n"
25350 msgstr ""
25351
25352 # type: textblock
25353 #: ../fish/guestfish-commands.pod:159
25354 msgid ""
25355 "This creates an empty sparse file of the given size, and then adds so it can "
25356 "be further examined."
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../fish/guestfish-commands.pod:162
25361 msgid ""
25362 "In all respects it works the same as the L</alloc> command, except that the "
25363 "image file is allocated sparsely, which means that disk blocks are not "
25364 "assigned to the file until they are needed.  Sparse disk files only use "
25365 "space when written to, but they are slower and there is a danger you could "
25366 "run out of real disk space during a write operation."
25367 msgstr ""
25368
25369 # type: =head2
25370 #: ../fish/guestfish-commands.pod:172
25371 msgid "supported"
25372 msgstr ""
25373
25374 # type: verbatim
25375 #: ../fish/guestfish-commands.pod:174
25376 #, no-wrap
25377 msgid ""
25378 " supported\n"
25379 "\n"
25380 msgstr ""
25381
25382 # type: textblock
25383 #: ../fish/guestfish-commands.pod:176
25384 msgid ""
25385 "This command returns a list of the optional groups known to the daemon, and "
25386 "indicates which ones are supported by this build of the libguestfs appliance."
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../fish/guestfish-commands.pod:180
25391 msgid "See also L<guestfs(3)/AVAILABILITY>."
25392 msgstr ""
25393
25394 # type: =head2
25395 #: ../fish/guestfish-commands.pod:182
25396 msgid "time"
25397 msgstr ""
25398
25399 # type: verbatim
25400 #: ../fish/guestfish-commands.pod:184
25401 #, no-wrap
25402 msgid ""
25403 " time command args...\n"
25404 "\n"
25405 msgstr ""
25406
25407 # type: textblock
25408 #: ../fish/guestfish-commands.pod:186
25409 msgid ""
25410 "Run the command as usual, but print the elapsed time afterwards.  This can "
25411 "be useful for benchmarking operations."
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../test-tool/libguestfs-test-tool.pod:5
25416 msgid "libguestfs-test-tool - End user tests for libguestfs"
25417 msgstr ""
25418
25419 # type: verbatim
25420 #: ../test-tool/libguestfs-test-tool.pod:9
25421 #, no-wrap
25422 msgid ""
25423 " libguestfs-test-tool [--options]\n"
25424 "\n"
25425 msgstr ""
25426
25427 # type: textblock
25428 #: ../test-tool/libguestfs-test-tool.pod:13
25429 msgid ""
25430 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25431 "and developers, to allow them to check basic libguestfs functionality is "
25432 "working.  This is needed because libguestfs occasionally breaks for reasons "
25433 "beyond our control: usually because of changes in the underlying qemu or "
25434 "kernel packages, or the host environment."
25435 msgstr ""
25436
25437 # type: textblock
25438 #: ../test-tool/libguestfs-test-tool.pod:20
25439 msgid "If you suspect a problem in libguestfs, then just run:"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #: ../test-tool/libguestfs-test-tool.pod:22
25444 #, no-wrap
25445 msgid ""
25446 " libguestfs-test-tool\n"
25447 "\n"
25448 msgstr ""
25449
25450 # type: textblock
25451 #: ../test-tool/libguestfs-test-tool.pod:24
25452 msgid "It will print lots of diagnostic messages."
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../test-tool/libguestfs-test-tool.pod:26
25457 msgid "If it runs to completion successfully, you will see this near the end:"
25458 msgstr ""
25459
25460 # type: verbatim
25461 #: ../test-tool/libguestfs-test-tool.pod:28
25462 #, no-wrap
25463 msgid ""
25464 " ===== TEST FINISHED OK =====\n"
25465 "\n"
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../test-tool/libguestfs-test-tool.pod:30
25470 msgid "and the test tool will exit with code 0."
25471 msgstr ""
25472
25473 # type: textblock
25474 #: ../test-tool/libguestfs-test-tool.pod:32
25475 msgid ""
25476 "If it fails (and/or exits with non-zero error code), please paste the "
25477 "B<complete, unedited> output of the test tool into a bug report.  More "
25478 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25479 "> website."
25480 msgstr ""
25481
25482 # type: =item
25483 #: ../test-tool/libguestfs-test-tool.pod:41
25484 msgid "I<--help>"
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../test-tool/libguestfs-test-tool.pod:43
25489 msgid "Display short usage information and exit."
25490 msgstr ""
25491
25492 # type: =item
25493 #: ../test-tool/libguestfs-test-tool.pod:45
25494 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../test-tool/libguestfs-test-tool.pod:47
25499 msgid ""
25500 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25501 "normally look in the C<$libexec> directory that was configured when the tool "
25502 "was built."
25503 msgstr ""
25504
25505 # type: =item
25506 #: ../test-tool/libguestfs-test-tool.pod:51
25507 msgid "I<--qemu qemu_binary>"
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../test-tool/libguestfs-test-tool.pod:53
25512 msgid ""
25513 "If you have downloaded another qemu binary, point this option at the full "
25514 "path of the binary to try it."
25515 msgstr ""
25516
25517 # type: =item
25518 #: ../test-tool/libguestfs-test-tool.pod:56
25519 msgid "I<--qemudir qemu_source_dir>"
25520 msgstr ""
25521
25522 # type: textblock
25523 #: ../test-tool/libguestfs-test-tool.pod:58
25524 msgid ""
25525 "If you have compiled qemu from source, point this option at the source "
25526 "directory to try it."
25527 msgstr ""
25528
25529 # type: =item
25530 #: ../test-tool/libguestfs-test-tool.pod:61
25531 msgid "I<--timeout N>"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../test-tool/libguestfs-test-tool.pod:63
25536 msgid ""
25537 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25538 "does not usually need to be adjusted unless your machine is very slow."
25539 msgstr ""
25540
25541 # type: =head1
25542 #: ../test-tool/libguestfs-test-tool.pod:69
25543 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25544 msgstr ""
25545
25546 # type: textblock
25547 #: ../test-tool/libguestfs-test-tool.pod:71
25548 msgid ""
25549 "If you have compiled another version of qemu from source and would like to "
25550 "try that, then you can use the I<--qemudir> option to point to the qemu "
25551 "source directory."
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../test-tool/libguestfs-test-tool.pod:75
25556 msgid ""
25557 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25558 "option to point to the binary."
25559 msgstr ""
25560
25561 # type: textblock
25562 #: ../test-tool/libguestfs-test-tool.pod:78
25563 msgid ""
25564 "When using an alternate qemu with libguestfs, usually you would need to "
25565 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25566 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25567 "use either of the I<--qemudir> or I<--qemu> options."
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../test-tool/libguestfs-test-tool.pod:85
25572 msgid ""
25573 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25574 "I<1> if there was an error."
25575 msgstr ""
25576
25577 # type: =item
25578 #: ../test-tool/libguestfs-test-tool.pod:92
25579 msgid "/usr/libexec/libguestfs-test-tool-helper"
25580 msgstr ""
25581
25582 # type: textblock
25583 #: ../test-tool/libguestfs-test-tool.pod:94
25584 msgid ""
25585 "This helper program is run inside the appliance and provides additional "
25586 "tests."
25587 msgstr ""
25588
25589 # type: =item
25590 #: ../test-tool/libguestfs-test-tool.pod:97
25591 msgid "/usr/bin/mkisofs"
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../test-tool/libguestfs-test-tool.pod:99
25596 msgid ""
25597 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25598 "which is used as part of the tests."
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../test-tool/libguestfs-test-tool.pod:106
25603 msgid ""
25604 "For the full list of environment variables which may affect libguestfs, "
25605 "please see the L<guestfs(3)> manual page."
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../test-tool/libguestfs-test-tool.pod:111
25610 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../test-tool/libguestfs-test-tool.pod:121
25615 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25616 msgstr ""
25617
25618 # type: textblock
25619 #: ../fuse/guestmount.pod:5
25620 msgid ""
25621 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25622 msgstr ""
25623
25624 # type: verbatim
25625 #: ../fuse/guestmount.pod:9
25626 #, no-wrap
25627 msgid ""
25628 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25629 "\n"
25630 msgstr ""
25631
25632 # type: verbatim
25633 #: ../fuse/guestmount.pod:11
25634 #, no-wrap
25635 msgid ""
25636 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25637 "\n"
25638 msgstr ""
25639
25640 # type: verbatim
25641 #: ../fuse/guestmount.pod:13
25642 #, no-wrap
25643 msgid ""
25644 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25645 "\n"
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../fuse/guestmount.pod:17
25650 msgid ""
25651 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25652 "machines.  If you do this, you risk disk corruption in the VM."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../fuse/guestmount.pod:22
25657 msgid ""
25658 "The guestmount program can be used to mount virtual machine filesystems and "
25659 "other disk images on the host.  It uses libguestfs for access to the guest "
25660 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25661 "a mountable device."
25662 msgstr ""
25663
25664 # type: textblock
25665 #: ../fuse/guestmount.pod:27
25666 msgid ""
25667 "Along with other options, you have to give at least one device (I<-a> "
25668 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25669 "option) or use the I<-i> inspection option.  How this works is better "
25670 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25671 "below."
25672 msgstr ""
25673
25674 # type: textblock
25675 #: ../fuse/guestmount.pod:33
25676 msgid ""
25677 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25678 "by you, and the filesystem will not be visible to any other users unless you "
25679 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25680 "the filesystem, use the C<fusermount -u> command."
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../fuse/guestmount.pod:41
25685 msgid ""
25686 "For a typical Windows guest which has its main filesystem on the first "
25687 "partition:"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #: ../fuse/guestmount.pod:44
25692 #, no-wrap
25693 msgid ""
25694 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25695 "\n"
25696 msgstr ""
25697
25698 # type: textblock
25699 #: ../fuse/guestmount.pod:46
25700 msgid ""
25701 "For a typical Linux guest which has a /boot filesystem on the first "
25702 "partition, and the root filesystem on a logical volume:"
25703 msgstr ""
25704
25705 # type: verbatim
25706 #: ../fuse/guestmount.pod:49
25707 #, no-wrap
25708 msgid ""
25709 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25710 "\n"
25711 msgstr ""
25712
25713 # type: textblock
25714 #: ../fuse/guestmount.pod:51
25715 msgid "To get libguestfs to detect guest mountpoints for you:"
25716 msgstr ""
25717
25718 # type: verbatim
25719 #: ../fuse/guestmount.pod:53
25720 #, no-wrap
25721 msgid ""
25722 " guestmount -a guest.img -i --ro /mnt\n"
25723 "\n"
25724 msgstr ""
25725
25726 # type: textblock
25727 #: ../fuse/guestmount.pod:55
25728 msgid "For a libvirt guest called \"Guest\" you could do:"
25729 msgstr ""
25730
25731 # type: verbatim
25732 #: ../fuse/guestmount.pod:57
25733 #, no-wrap
25734 msgid ""
25735 " guestmount -d Guest -i --ro /mnt\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../fuse/guestmount.pod:59
25741 msgid ""
25742 "If you don't know what filesystems are contained in a guest or disk image, "
25743 "use L<virt-list-filesystems(1)> first:"
25744 msgstr ""
25745
25746 # type: verbatim
25747 #: ../fuse/guestmount.pod:62
25748 #, no-wrap
25749 msgid ""
25750 " virt-list-filesystems MyGuest\n"
25751 "\n"
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../fuse/guestmount.pod:64
25756 msgid ""
25757 "If you want to trace the libguestfs calls but without excessive debugging "
25758 "information, we recommend:"
25759 msgstr ""
25760
25761 # type: verbatim
25762 #: ../fuse/guestmount.pod:67
25763 #, no-wrap
25764 msgid ""
25765 " guestmount [...] --trace /mnt\n"
25766 "\n"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../fuse/guestmount.pod:69
25771 msgid "If you want to debug the program, we recommend:"
25772 msgstr ""
25773
25774 # type: verbatim
25775 #: ../fuse/guestmount.pod:71
25776 #, no-wrap
25777 msgid ""
25778 " guestmount [...] --trace --verbose /mnt\n"
25779 "\n"
25780 msgstr ""
25781
25782 # type: textblock
25783 #: ../fuse/guestmount.pod:79
25784 msgid "Add a block device or virtual machine image."
25785 msgstr ""
25786
25787 # type: =item
25788 #: ../fuse/guestmount.pod:96
25789 msgid "B<--dir-cache-timeout N>"
25790 msgstr ""
25791
25792 # type: textblock
25793 #: ../fuse/guestmount.pod:98
25794 msgid ""
25795 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25796 "seconds.  The readdir cache [actually, there are several semi-independent "
25797 "caches] is populated after a readdir(2) call with the stat and extended "
25798 "attributes of the files in the directory, in anticipation that they will be "
25799 "requested soon after."
25800 msgstr ""
25801
25802 # type: textblock
25803 #: ../fuse/guestmount.pod:104
25804 msgid ""
25805 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25806 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25807 "requests, only cache existing ones."
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../fuse/guestmount.pod:122
25812 msgid ""
25813 "If you have untrusted raw-format guest disk images, you should use this "
25814 "option to specify the disk format.  This avoids a possible security problem "
25815 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25816 "guestfs_add_drive_opts>."
25817 msgstr ""
25818
25819 # type: =item
25820 #: ../fuse/guestmount.pod:127
25821 msgid "B<--fuse-help>"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../fuse/guestmount.pod:129
25826 msgid "Display help on special FUSE options (see I<-o> below)."
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../fuse/guestmount.pod:133
25831 msgid "Display brief help and exit."
25832 msgstr ""
25833
25834 # type: =item
25835 #: ../fuse/guestmount.pod:146
25836 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25837 msgstr ""
25838
25839 # type: textblock
25840 #: ../fuse/guestmount.pod:148
25841 msgid ""
25842 "Mount the named partition or logical volume on the given mountpoint B<in the "
25843 "guest> (this has nothing to do with mountpoints in the host)."
25844 msgstr ""
25845
25846 # type: textblock
25847 #: ../fuse/guestmount.pod:151
25848 msgid ""
25849 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25850 "something on C</>."
25851 msgstr ""
25852
25853 # type: textblock
25854 #: ../fuse/guestmount.pod:156
25855 msgid ""
25856 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25857 "unmounted.  If you specify this option, then we don't attempt to sync the "
25858 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25859 msgstr ""
25860
25861 # type: =item
25862 #: ../fuse/guestmount.pod:161
25863 msgid "B<-o option> | B<--option option>"
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../fuse/guestmount.pod:163
25868 msgid "Pass extra options to FUSE."
25869 msgstr ""
25870
25871 # type: textblock
25872 #: ../fuse/guestmount.pod:165
25873 msgid ""
25874 "To get a list of all the extra options supported by FUSE, use the command "
25875 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25876 "of them are a good idea."
25877 msgstr ""
25878
25879 # type: verbatim
25880 #: ../fuse/guestmount.pod:169
25881 #, no-wrap
25882 msgid ""
25883 " guestmount --fuse-help\n"
25884 "\n"
25885 msgstr ""
25886
25887 # type: textblock
25888 #: ../fuse/guestmount.pod:171
25889 msgid "Some potentially useful FUSE options:"
25890 msgstr ""
25891
25892 # type: =item
25893 #: ../fuse/guestmount.pod:175
25894 msgid "B<-o allow_other>"
25895 msgstr ""
25896
25897 # type: textblock
25898 #: ../fuse/guestmount.pod:177
25899 msgid "Allow other users to see the filesystem."
25900 msgstr ""
25901
25902 # type: =item
25903 #: ../fuse/guestmount.pod:179
25904 msgid "B<-o attr_timeout=N>"
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../fuse/guestmount.pod:181
25909 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25910 msgstr ""
25911
25912 # type: =item
25913 #: ../fuse/guestmount.pod:183
25914 msgid "B<-o kernel_cache>"
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../fuse/guestmount.pod:185
25919 msgid ""
25920 "Allow the kernel to cache files (reduces the number of reads that have to go "
25921 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25922 "afford the extra memory usage."
25923 msgstr ""
25924
25925 # type: =item
25926 #: ../fuse/guestmount.pod:189
25927 msgid "B<-o uid=N> B<-o gid=N>"
25928 msgstr ""
25929
25930 # type: textblock
25931 #: ../fuse/guestmount.pod:191
25932 msgid ""
25933 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25934 "the chosen values."
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../fuse/guestmount.pod:198
25939 msgid ""
25940 "Add devices and mount everything read-only.  Also disallow writes and make "
25941 "the disk appear read-only to FUSE."
25942 msgstr ""
25943
25944 # type: textblock
25945 #: ../fuse/guestmount.pod:201
25946 msgid ""
25947 "This is highly recommended if you are not going to edit the guest disk.  If "
25948 "the guest is running and this option is I<not> supplied, then there is a "
25949 "strong risk of disk corruption in the guest.  We try to prevent this from "
25950 "happening, but it is not always possible."
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../fuse/guestmount.pod:206
25955 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25956 msgstr ""
25957
25958 # type: textblock
25959 #: ../fuse/guestmount.pod:210
25960 msgid "Enable SELinux support for the guest."
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../fuse/guestmount.pod:214
25965 msgid "Enable verbose messages from underlying libguestfs."
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../fuse/guestmount.pod:218
25970 msgid "Display the program version and exit."
25971 msgstr ""
25972
25973 # type: textblock
25974 #: ../fuse/guestmount.pod:222
25975 msgid ""
25976 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25977 "FOR READ AND WRITE>."
25978 msgstr ""
25979
25980 # type: =item
25981 #: ../fuse/guestmount.pod:225
25982 msgid "B<-x> | B<--trace>"
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../fuse/guestmount.pod:227
25987 msgid "Trace libguestfs calls."
25988 msgstr ""
25989
25990 # type: textblock
25991 #: ../fuse/guestmount.pod:229
25992 msgid "This also stops the daemon from forking into the background."
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../fuse/guestmount.pod:235
25997 msgid ""
25998 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25999 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26000 "net/>."
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../inspector/virt-inspector.pl:35
26005 msgid ""
26006 "virt-inspector - Display operating system version and other information "
26007 "about a virtual machine"
26008 msgstr ""
26009
26010 # type: verbatim
26011 #: ../inspector/virt-inspector.pl:39
26012 #, no-wrap
26013 msgid ""
26014 " virt-inspector [--connect URI] domname\n"
26015 "\n"
26016 msgstr ""
26017
26018 # type: verbatim
26019 #: ../inspector/virt-inspector.pl:41
26020 #, no-wrap
26021 msgid ""
26022 " virt-inspector guest.img [guest.img ...]\n"
26023 "\n"
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../inspector/virt-inspector.pl:45
26028 msgid ""
26029 "B<virt-inspector> examines a virtual machine or disk image and tries to "
26030 "determine the version of the operating system and other information about "
26031 "the virtual machine."
26032 msgstr ""
26033
26034 # type: textblock
26035 #: ../inspector/virt-inspector.pl:49
26036 msgid "Virt-inspector produces XML output for feeding into other programs."
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../inspector/virt-inspector.pl:51
26041 msgid ""
26042 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
26043 "libvirt domain (see: C<virsh list --all>)."
26044 msgstr ""
26045
26046 # type: textblock
26047 #: ../inspector/virt-inspector.pl:54
26048 msgid ""
26049 "You can also run virt-inspector directly on disk images from a single "
26050 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
26051 "has several block devices, in which case you should list them one after "
26052 "another, with the first corresponding to the guest's C</dev/sda>, the second "
26053 "to the guest's C</dev/sdb> and so on."
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../inspector/virt-inspector.pl:60
26058 msgid ""
26059 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
26060 "inspect several virtual machines, you have to run virt-inspector several "
26061 "times (for example, from a shell script for-loop)."
26062 msgstr ""
26063
26064 # type: textblock
26065 #: ../inspector/virt-inspector.pl:65
26066 msgid ""
26067 "Because virt-inspector needs direct access to guest images, it won't "
26068 "normally work over remote libvirt connections."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
26073 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
26074 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
26075 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
26076 #: ../tools/virt-list-partitions.pl:61
26077 msgid "Display brief help."
26078 msgstr ""
26079
26080 # type: =item
26081 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
26082 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
26083 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
26084 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
26085 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
26086 msgid "B<--version>"
26087 msgstr ""
26088
26089 # type: textblock
26090 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
26091 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
26092 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
26093 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
26094 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
26095 msgid "Display version number and exit."
26096 msgstr ""
26097
26098 # type: =item
26099 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
26100 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
26101 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
26102 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
26103 msgid "B<--connect URI> | B<-c URI>"
26104 msgstr ""
26105
26106 # type: textblock
26107 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
26108 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
26109 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
26110 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
26111 msgid ""
26112 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26113 "to the default libvirt hypervisor."
26114 msgstr ""
26115
26116 # type: textblock
26117 #: ../inspector/virt-inspector.pl:97
26118 msgid ""
26119 "Libvirt is only used if you specify a C<domname> on the command line.  If "
26120 "you specify guest block devices directly, then libvirt is not used at all."
26121 msgstr ""
26122
26123 # type: =item
26124 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
26125 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
26126 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
26127 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
26128 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
26129 msgid "B<--format> raw"
26130 msgstr ""
26131
26132 # type: textblock
26133 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
26134 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
26135 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
26136 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
26137 #: ../tools/virt-list-partitions.pl:89
26138 msgid ""
26139 "Specify the format of disk images given on the command line.  If this is "
26140 "omitted then the format is autodetected from the content of the disk image."
26141 msgstr ""
26142
26143 # type: textblock
26144 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
26145 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
26146 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
26147 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
26148 #: ../tools/virt-list-partitions.pl:93
26149 msgid ""
26150 "If disk images are requested from libvirt, then this program asks libvirt "
26151 "for this information.  In this case, the value of the format parameter is "
26152 "ignored."
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
26157 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
26158 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
26159 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
26160 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
26161 #: ../tools/virt-list-partitions.pl:97
26162 msgid ""
26163 "If working with untrusted raw-format guest disk images, you should ensure "
26164 "the format is always specified."
26165 msgstr ""
26166
26167 # type: =head1
26168 #: ../inspector/virt-inspector.pl:149
26169 msgid "XML FORMAT"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../inspector/virt-inspector.pl:151
26174 msgid ""
26175 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
26176 "supplied with libguestfs.  This section is just an overview."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../inspector/virt-inspector.pl:154
26181 msgid ""
26182 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
26183 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
26184 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
26185 "which is vanishingly rare in real world VMs."
26186 msgstr ""
26187
26188 # type: =head2
26189 #: ../inspector/virt-inspector.pl:159
26190 msgid "E<lt>operatingsystemE<gt>"
26191 msgstr ""
26192
26193 # type: textblock
26194 #: ../inspector/virt-inspector.pl:161
26195 msgid ""
26196 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
26197 "describe the operating system, its architecture, the descriptive \"product "
26198 "name\" string, the type of OS and so on, as in this example:"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #: ../inspector/virt-inspector.pl:165
26203 #, no-wrap
26204 msgid ""
26205 " <operatingsystems>\n"
26206 "   <operatingsystem>\n"
26207 "     <root>/dev/sda2</root>\n"
26208 "     <name>windows</name>\n"
26209 "     <arch>i386</arch>\n"
26210 "     <distro>windows</distro>\n"
26211 "     <product_name>Windows 7 Enterprise</product_name>\n"
26212 "     <major_version>6</major_version>\n"
26213 "     <minor_version>1</minor_version>\n"
26214 "     <windows_systemroot>/Windows</windows_systemroot>\n"
26215 "\n"
26216 msgstr ""
26217
26218 # type: textblock
26219 #: ../inspector/virt-inspector.pl:176
26220 msgid ""
26221 "These fields are derived from the libguestfs inspection API, and you can "
26222 "find more details in L<guestfs(3)/INSPECTION>."
26223 msgstr ""
26224
26225 # type: textblock
26226 #: ../inspector/virt-inspector.pl:179
26227 msgid ""
26228 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
26229 "of view of libguestfs (block devices may have completely different names "
26230 "inside the VM itself)."
26231 msgstr ""
26232
26233 # type: =head2
26234 #: ../inspector/virt-inspector.pl:246
26235 msgid "E<lt>mountpointsE<gt>"
26236 msgstr ""
26237
26238 # type: textblock
26239 #: ../inspector/virt-inspector.pl:248
26240 msgid ""
26241 "Un*x-like guests typically have multiple filesystems which are mounted at "
26242 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
26243 "element which looks like this:"
26244 msgstr ""
26245
26246 # type: verbatim
26247 #: ../inspector/virt-inspector.pl:252
26248 #, no-wrap
26249 msgid ""
26250 " <operatingsystems>\n"
26251 "   <operatingsystem>\n"
26252 "     ...\n"
26253 "     <mountpoints>\n"
26254 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
26255 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
26256 "     </mountpoints>\n"
26257 "\n"
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../inspector/virt-inspector.pl:260
26262 msgid ""
26263 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
26264 "and may have completely different names inside the guest.  Only mountable "
26265 "filesystems appear in this list, not things like swap devices."
26266 msgstr ""
26267
26268 # type: =head2
26269 #: ../inspector/virt-inspector.pl:282
26270 msgid "E<lt>filesystemsE<gt>"
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../inspector/virt-inspector.pl:284
26275 msgid ""
26276 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
26277 "filesystems belonging to the guest, including swap and empty partitions.  "
26278 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
26279 "this OS or shared by this OS and other OSes)."
26280 msgstr ""
26281
26282 # type: textblock
26283 #: ../inspector/virt-inspector.pl:289
26284 msgid "You might see something like this:"
26285 msgstr ""
26286
26287 # type: verbatim
26288 #: ../inspector/virt-inspector.pl:291
26289 #, no-wrap
26290 msgid ""
26291 " <operatingsystems>\n"
26292 "   <operatingsystem>\n"
26293 "     ...\n"
26294 "     <filesystems>\n"
26295 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
26296 "         <type>ext4</type>\n"
26297 "         <label>Fedora-13-x86_64</label>\n"
26298 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
26299 "       </filesystem>\n"
26300 "\n"
26301 msgstr ""
26302
26303 # type: textblock
26304 #: ../inspector/virt-inspector.pl:301
26305 msgid ""
26306 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
26307 "the label, and the UUID."
26308 msgstr ""
26309
26310 # type: =head2
26311 #: ../inspector/virt-inspector.pl:343
26312 msgid "E<lt>applicationsE<gt>"
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../inspector/virt-inspector.pl:345
26317 msgid ""
26318 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
26319 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
26320 "machine.  At the moment we are only able to list RPMs and Debian packages "
26321 "installed, but in future we will support other Linux distros and Windows."
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../inspector/virt-inspector.pl:351
26326 msgid ""
26327 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
26328 "Typical values would be C<rpm> and C<deb>."
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../inspector/virt-inspector.pl:354
26333 msgid ""
26334 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
26335 "Typical values include C<yum>, C<up2date> and C<apt>"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../inspector/virt-inspector.pl:357
26340 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
26341 msgstr ""
26342
26343 # type: verbatim
26344 #: ../inspector/virt-inspector.pl:360
26345 #, no-wrap
26346 msgid ""
26347 " <operatingsystems>\n"
26348 "   <operatingsystem>\n"
26349 "     ...\n"
26350 "     <applications>\n"
26351 "       <application>\n"
26352 "         <name>coreutils</name>\n"
26353 "         <version>8.5</version>\n"
26354 "         <release>1</release>\n"
26355 "       </application>\n"
26356 "\n"
26357 msgstr ""
26358
26359 # type: textblock
26360 #: ../inspector/virt-inspector.pl:370
26361 msgid ""
26362 "The version and release fields may not be available for some types guests.  "
26363 "Other fields are possible, see L<guestfs(3)/"
26364 "guestfs_inspect_list_applications>."
26365 msgstr ""
26366
26367 # type: =head1
26368 #: ../inspector/virt-inspector.pl:426
26369 msgid "USING XPATH"
26370 msgstr ""
26371
26372 # type: textblock
26373 #: ../inspector/virt-inspector.pl:428
26374 msgid ""
26375 "You can use the XPath query language, and/or the xpath tool, in order to "
26376 "select parts of the XML."
26377 msgstr ""
26378
26379 # type: verbatim
26380 #: ../inspector/virt-inspector.pl:433
26381 #, no-wrap
26382 msgid ""
26383 " $ virt-inspector Guest | xpath //filesystems\n"
26384 " Found 1 nodes:\n"
26385 " -- NODE --\n"
26386 " <filesystems>\n"
26387 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
26388 "        <type>ext4</type>\n"
26389 " [etc]\n"
26390 "\n"
26391 msgstr ""
26392
26393 # type: verbatim
26394 #: ../inspector/virt-inspector.pl:441
26395 #, no-wrap
26396 msgid ""
26397 " $ virt-inspector Guest | \\\n"
26398 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
26399 " Query didn't return a nodeset. Value: ext4\n"
26400 "\n"
26401 msgstr ""
26402
26403 # type: =head2
26404 #: ../inspector/virt-inspector.pl:445 ../tools/virt-edit.pl:343
26405 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
26406 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
26407 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
26408 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
26409 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
26410 msgid "SHELL QUOTING"
26411 msgstr ""
26412
26413 # type: textblock
26414 #: ../inspector/virt-inspector.pl:447 ../tools/virt-edit.pl:345
26415 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
26416 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
26417 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276
26418 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
26419 #: ../tools/virt-list-partitions.pl:249
26420 msgid ""
26421 "Libvirt guest names can contain arbitrary characters, some of which have "
26422 "meaning to the shell such as C<#> and space.  You may need to quote or "
26423 "escape these characters on the command line.  See the shell manual page L<sh"
26424 "(1)> for details."
26425 msgstr ""
26426
26427 # type: textblock
26428 #: ../inspector/virt-inspector.pl:454
26429 msgid ""
26430 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26431 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
26432 msgstr ""
26433
26434 # type: textblock
26435 #: ../inspector/virt-inspector.pl:468 ../tools/virt-edit.pl:364
26436 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
26437 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
26438 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294
26439 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
26440 #: ../tools/virt-list-partitions.pl:267
26441 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26442 msgstr ""
26443
26444 # type: textblock
26445 #: ../inspector/virt-inspector.pl:472
26446 msgid "Matthew Booth L<mbooth@redhat.com>"
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../inspector/virt-inspector.pl:478 ../tools/virt-win-reg.pl:516
26451 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
26452 msgid "Copyright (C) 2010 Red Hat Inc."
26453 msgstr ""
26454
26455 # type: textblock
26456 #: ../tools/virt-edit.pl:34
26457 msgid "virt-edit - Edit a file in a virtual machine"
26458 msgstr ""
26459
26460 # type: verbatim
26461 #: ../tools/virt-edit.pl:38
26462 #, no-wrap
26463 msgid ""
26464 " virt-edit [--options] domname file\n"
26465 "\n"
26466 msgstr ""
26467
26468 # type: verbatim
26469 #: ../tools/virt-edit.pl:40
26470 #, no-wrap
26471 msgid ""
26472 " virt-edit [--options] disk.img [disk.img ...] file\n"
26473 "\n"
26474 msgstr ""
26475
26476 # type: verbatim
26477 #: ../tools/virt-edit.pl:42
26478 #, no-wrap
26479 msgid ""
26480 " virt-edit [domname|disk.img] file -e 'expr'\n"
26481 "\n"
26482 msgstr ""
26483
26484 # type: textblock
26485 #: ../tools/virt-edit.pl:46
26486 msgid ""
26487 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26488 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26489 "doing this, but doesn't catch all cases."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-edit.pl:52
26494 msgid ""
26495 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26496 "the named virtual machine (or disk image)."
26497 msgstr ""
26498
26499 # type: textblock
26500 #: ../tools/virt-edit.pl:55
26501 msgid ""
26502 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26503 "you should look at the L<guestfish(1)> tool."
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-edit.pl:60
26508 msgid "Edit the named files interactively:"
26509 msgstr ""
26510
26511 # type: verbatim
26512 #: ../tools/virt-edit.pl:62
26513 #, no-wrap
26514 msgid ""
26515 " virt-edit mydomain /boot/grub/grub.conf\n"
26516 "\n"
26517 msgstr ""
26518
26519 # type: verbatim
26520 #: ../tools/virt-edit.pl:64
26521 #, no-wrap
26522 msgid ""
26523 " virt-edit mydomain /etc/passwd\n"
26524 "\n"
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../tools/virt-edit.pl:66
26529 msgid ""
26530 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26531 "below).  To change the init default level to 5:"
26532 msgstr ""
26533
26534 # type: verbatim
26535 #: ../tools/virt-edit.pl:70
26536 #, no-wrap
26537 msgid ""
26538 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26539 "\n"
26540 msgstr ""
26541
26542 # type: =item
26543 #: ../tools/virt-edit.pl:96
26544 msgid "B<--backup extension> | B<-b extension>"
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../tools/virt-edit.pl:98
26549 msgid ""
26550 "Create a backup of the original file I<in the guest disk image>.  The backup "
26551 "has the original filename with C<extension> added."
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-edit.pl:101
26556 msgid ""
26557 "Usually the first character of C<extension> would be a dot C<.> so you would "
26558 "write:"
26559 msgstr ""
26560
26561 # type: verbatim
26562 #: ../tools/virt-edit.pl:104
26563 #, no-wrap
26564 msgid ""
26565 " virt-edit -b .orig [etc]\n"
26566 "\n"
26567 msgstr ""
26568
26569 # type: textblock
26570 #: ../tools/virt-edit.pl:106
26571 msgid "By default, no backup file is made."
26572 msgstr ""
26573
26574 # type: textblock
26575 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26576 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
26577 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
26578 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
26579 msgid ""
26580 "If you specify guest block devices directly, then libvirt is not used at all."
26581 msgstr ""
26582
26583 # type: =item
26584 #: ../tools/virt-edit.pl:141
26585 msgid "B<--expr EXPR> | B<-e EXPR>"
26586 msgstr ""
26587
26588 # type: textblock
26589 #: ../tools/virt-edit.pl:143
26590 msgid ""
26591 "Instead of launching the external editor, non-interactively apply the Perl "
26592 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26593 "EDITING> below."
26594 msgstr ""
26595
26596 # type: textblock
26597 #: ../tools/virt-edit.pl:147
26598 msgid ""
26599 "Be careful to properly quote the expression to prevent it from being altered "
26600 "by the shell."
26601 msgstr ""
26602
26603 # type: =head1
26604 #: ../tools/virt-edit.pl:268
26605 msgid "NON-INTERACTIVE EDITING"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-edit.pl:270
26610 msgid ""
26611 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26612 "administrator can interactively edit the file."
26613 msgstr ""
26614
26615 # type: textblock
26616 #: ../tools/virt-edit.pl:273
26617 msgid ""
26618 "There are two ways also to use C<virt-edit> from scripts in order to make "
26619 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26620 "like this, it's less error-prone to write scripts directly using the "
26621 "libguestfs API and Augeas for configuration file editing.)"
26622 msgstr ""
26623
26624 # type: textblock
26625 #: ../tools/virt-edit.pl:279
26626 msgid ""
26627 "The first method is to temporarily set C<$EDITOR> to any script or program "
26628 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26629 "update C<tmpfile> in place however it likes."
26630 msgstr ""
26631
26632 # type: textblock
26633 #: ../tools/virt-edit.pl:283
26634 msgid ""
26635 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26636 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26637 "instances of C<foo> with C<bar> in a file:"
26638 msgstr ""
26639
26640 # type: verbatim
26641 #: ../tools/virt-edit.pl:287
26642 #, no-wrap
26643 msgid ""
26644 " virt-edit domname filename -e 's/foo/bar/'\n"
26645 "\n"
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-edit.pl:289
26650 msgid ""
26651 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26652 "For example to delete root's password you could do:"
26653 msgstr ""
26654
26655 # type: verbatim
26656 #: ../tools/virt-edit.pl:292
26657 #, no-wrap
26658 msgid ""
26659 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26660 "\n"
26661 msgstr ""
26662
26663 # type: textblock
26664 #: ../tools/virt-edit.pl:294
26665 msgid ""
26666 "What really happens is that the snippet is evaluated as a Perl expression "
26667 "for each line of the file.  The line, including the final C<\\n>, is passed "
26668 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26669 msgstr ""
26670
26671 # type: textblock
26672 #: ../tools/virt-edit.pl:299
26673 msgid ""
26674 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26675 "C<apache> user account from the password file you can do:"
26676 msgstr ""
26677
26678 # type: verbatim
26679 #: ../tools/virt-edit.pl:302
26680 #, no-wrap
26681 msgid ""
26682 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26683 "\n"
26684 msgstr ""
26685
26686 # type: textblock
26687 #: ../tools/virt-edit.pl:304
26688 msgid ""
26689 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26690 "the end of the file is rather difficult this way since there is no concept "
26691 "of \"last line of the file\" - your expression just doesn't get called "
26692 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26693 "want to do this."
26694 msgstr ""
26695
26696 # type: textblock
26697 #: ../tools/virt-edit.pl:310
26698 msgid ""
26699 "The variable C<$lineno> contains the current line number.  As is "
26700 "traditional, the first line in the file is number C<1>."
26701 msgstr ""
26702
26703 # type: textblock
26704 #: ../tools/virt-edit.pl:313
26705 msgid ""
26706 "The return value from the expression is ignored, but the expression may call "
26707 "C<die> in order to abort the whole program, leaving the original file "
26708 "untouched."
26709 msgstr ""
26710
26711 # type: textblock
26712 #: ../tools/virt-edit.pl:317
26713 msgid ""
26714 "Remember when matching the end of a line that C<$_> may contain the final C<"
26715 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26716 "newline then neither of these.  Thus to match or substitute some text at the "
26717 "end of a line, use this regular expression:"
26718 msgstr ""
26719
26720 # type: verbatim
26721 #: ../tools/virt-edit.pl:322
26722 #, no-wrap
26723 msgid ""
26724 " /some text(\\r?\\n)?$/\n"
26725 "\n"
26726 msgstr ""
26727
26728 # type: textblock
26729 #: ../tools/virt-edit.pl:324
26730 msgid ""
26731 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26732 "$_> itself (since that would remove all newlines from the file):"
26733 msgstr ""
26734
26735 # type: verbatim
26736 #: ../tools/virt-edit.pl:328
26737 #, no-wrap
26738 msgid ""
26739 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26740 "\n"
26741 msgstr ""
26742
26743 # type: =item
26744 #: ../tools/virt-edit.pl:334
26745 msgid "C<EDITOR>"
26746 msgstr ""
26747
26748 # type: textblock
26749 #: ../tools/virt-edit.pl:336
26750 msgid ""
26751 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26752 "\"emacs -nw\">"
26753 msgstr ""
26754
26755 # type: textblock
26756 #: ../tools/virt-edit.pl:339
26757 msgid "If not set, C<vi> is used."
26758 msgstr ""
26759
26760 # type: textblock
26761 #: ../tools/virt-edit.pl:352
26762 msgid ""
26763 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26764 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26765 "L<perlre(1)>."
26766 msgstr ""
26767
26768 # type: =head1
26769 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26770 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26771 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26772 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26773 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26774 msgid "AUTHOR"
26775 msgstr ""
26776
26777 # type: textblock
26778 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26779 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26780 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26781 msgstr ""
26782
26783 # type: textblock
26784 #: ../tools/virt-win-reg.pl:37
26785 msgid ""
26786 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26787 msgstr ""
26788
26789 # type: verbatim
26790 #: ../tools/virt-win-reg.pl:41
26791 #, no-wrap
26792 msgid ""
26793 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26794 "\n"
26795 msgstr ""
26796
26797 # type: verbatim
26798 #: ../tools/virt-win-reg.pl:43
26799 #, no-wrap
26800 msgid ""
26801 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26802 "\n"
26803 msgstr ""
26804
26805 # type: verbatim
26806 #: ../tools/virt-win-reg.pl:45
26807 #, no-wrap
26808 msgid ""
26809 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26810 "\n"
26811 msgstr ""
26812
26813 # type: verbatim
26814 #: ../tools/virt-win-reg.pl:47
26815 #, no-wrap
26816 msgid ""
26817 " virt-win-reg --merge domname [input.reg ...]\n"
26818 "\n"
26819 msgstr ""
26820
26821 # type: verbatim
26822 #: ../tools/virt-win-reg.pl:49
26823 #, no-wrap
26824 msgid ""
26825 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26826 "\n"
26827 msgstr ""
26828
26829 # type: textblock
26830 #: ../tools/virt-win-reg.pl:53
26831 msgid ""
26832 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26833 "virtual machines.  If you do this, you I<will> get irreversible disk "
26834 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26835 "but doesn't catch all cases."
26836 msgstr ""
26837
26838 # type: textblock
26839 #: ../tools/virt-win-reg.pl:58
26840 msgid ""
26841 "Modifying the Windows Registry is an inherently risky operation.  The format "
26842 "is deliberately obscure and undocumented, and Registry changes can leave the "
26843 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26844 "you have a reliable backup first."
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-win-reg.pl:65
26849 msgid ""
26850 "This program can export and merge Windows Registry entries from a Windows "
26851 "guest."
26852 msgstr ""
26853
26854 # type: textblock
26855 #: ../tools/virt-win-reg.pl:68
26856 msgid ""
26857 "The first parameter is the libvirt guest name or the raw disk image of a "
26858 "Windows guest."
26859 msgstr ""
26860
26861 # type: textblock
26862 #: ../tools/virt-win-reg.pl:71
26863 msgid ""
26864 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26865 "exported (recursively).  For example:"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #: ../tools/virt-win-reg.pl:74
26870 #, no-wrap
26871 msgid ""
26872 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26873 "\n"
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-win-reg.pl:76
26878 msgid ""
26879 "You can also display single values from within registry keys, for example:"
26880 msgstr ""
26881
26882 # type: verbatim
26883 #: ../tools/virt-win-reg.pl:79
26884 #, no-wrap
26885 msgid ""
26886 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26887 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26888 " Windows 7 Enterprise\n"
26889 "\n"
26890 msgstr ""
26891
26892 # type: textblock
26893 #: ../tools/virt-win-reg.pl:83
26894 msgid ""
26895 "With C<--merge>, you can merge a textual regedit file into the Windows "
26896 "Registry:"
26897 msgstr ""
26898
26899 # type: verbatim
26900 #: ../tools/virt-win-reg.pl:86
26901 #, no-wrap
26902 msgid ""
26903 " $ virt-win-reg --merge Windows7 changes.reg\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head2
26908 #: ../tools/virt-win-reg.pl:88
26909 msgid "SUPPORTED SYSTEMS"
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-win-reg.pl:90
26914 msgid ""
26915 "The program currently supports Windows NT-derived guests starting with "
26916 "Windows XP through to at least Windows 7."
26917 msgstr ""
26918
26919 # type: textblock
26920 #: ../tools/virt-win-reg.pl:93
26921 msgid ""
26922 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26923 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26924 "and C<HKEY_USERS\\.DEFAULT>."
26925 msgstr ""
26926
26927 # type: textblock
26928 #: ../tools/virt-win-reg.pl:97
26929 msgid ""
26930 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26931 "C<HKEY_USERS>."
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-win-reg.pl:100
26936 msgid ""
26937 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26938 "time."
26939 msgstr ""
26940
26941 # type: =head2
26942 #: ../tools/virt-win-reg.pl:103
26943 msgid "NOTE"
26944 msgstr ""
26945
26946 # type: textblock
26947 #: ../tools/virt-win-reg.pl:105
26948 msgid ""
26949 "This program is only meant for simple access to the registry.  If you want "
26950 "to do complicated things with the registry, we suggest you download the "
26951 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26952 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26953 "L<hivexregedit(1)>."
26954 msgstr ""
26955
26956 # type: =head2
26957 #: ../tools/virt-win-reg.pl:111
26958 msgid "ENCODING"
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-win-reg.pl:113
26963 msgid ""
26964 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26965 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26966 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26967 "Windows-style line endings, you may need to reencode the whole file before "
26968 "or after processing."
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-win-reg.pl:119
26973 msgid ""
26974 "To reencode a file from Windows format to Linux (before processing it with "
26975 "the C<--merge> option), you would do something like this:"
26976 msgstr ""
26977
26978 # type: verbatim
26979 #: ../tools/virt-win-reg.pl:122
26980 #, no-wrap
26981 msgid ""
26982 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26983 "\n"
26984 msgstr ""
26985
26986 # type: textblock
26987 #: ../tools/virt-win-reg.pl:124
26988 msgid ""
26989 "To go in the opposite direction, after exporting and before sending the file "
26990 "to a Windows user, do something like this:"
26991 msgstr ""
26992
26993 # type: verbatim
26994 #: ../tools/virt-win-reg.pl:127
26995 #, no-wrap
26996 msgid ""
26997 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26998 "\n"
26999 msgstr ""
27000
27001 # type: textblock
27002 #: ../tools/virt-win-reg.pl:129
27003 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-win-reg.pl:131
27008 msgid ""
27009 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27010 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
27011 "style (CRLF) line endings, like this:"
27012 msgstr ""
27013
27014 # type: verbatim
27015 #: ../tools/virt-win-reg.pl:135
27016 #, no-wrap
27017 msgid ""
27018 " $ file software.reg\n"
27019 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27020 " with CRLF line terminators\n"
27021 "\n"
27022 msgstr ""
27023
27024 # type: textblock
27025 #: ../tools/virt-win-reg.pl:139
27026 msgid "This file would need conversion before you could C<--merge> it."
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-win-reg.pl:143
27031 msgid ""
27032 "Be careful when passing parameters containing C<\\> (backslash) in the "
27033 "shell.  Usually you will have to use 'single quotes' or double backslashes "
27034 "(but not both) to protect them from the shell."
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-win-reg.pl:147
27039 msgid "Paths and value names are case-insensitive."
27040 msgstr ""
27041
27042 # type: =head2
27043 #: ../tools/virt-win-reg.pl:149
27044 msgid "CurrentControlSet etc."
27045 msgstr ""
27046
27047 # type: textblock
27048 #: ../tools/virt-win-reg.pl:151
27049 msgid ""
27050 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27051 "Registry at the level of the hive file, and therefore you cannot modify "
27052 "these."
27053 msgstr ""
27054
27055 # type: textblock
27056 #: ../tools/virt-win-reg.pl:155
27057 msgid ""
27058 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27059 "circumstances it might refer to another control set.  The way to find out is "
27060 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27061 msgstr ""
27062
27063 # type: verbatim
27064 #: ../tools/virt-win-reg.pl:159
27065 #, no-wrap
27066 msgid ""
27067 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27068 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27069 " \"Current\"=dword:00000001\n"
27070 " \"Default\"=dword:00000001\n"
27071 " \"Failed\"=dword:00000000\n"
27072 " \"LastKnownGood\"=dword:00000002\n"
27073 "\n"
27074 msgstr ""
27075
27076 # type: textblock
27077 #: ../tools/virt-win-reg.pl:166
27078 msgid "\"Current\" is the one which Windows will choose when it boots."
27079 msgstr ""
27080
27081 # type: textblock
27082 #: ../tools/virt-win-reg.pl:168
27083 msgid ""
27084 "Similarly, other C<Current...> keys in the path may need to be replaced."
27085 msgstr ""
27086
27087 # type: =item
27088 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
27089 msgid "B<--debug>"
27090 msgstr ""
27091
27092 # type: textblock
27093 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
27094 msgid "Enable debugging messages."
27095 msgstr ""
27096
27097 # type: =item
27098 #: ../tools/virt-win-reg.pl:232
27099 msgid "B<--merge>"
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-win-reg.pl:234
27104 msgid ""
27105 "In merge mode, this merges a textual regedit file into the Windows Registry "
27106 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
27107 "displays or exports Registry entries instead."
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-win-reg.pl:238
27112 msgid ""
27113 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
27114 "result in disk corruption.  However exporting (without this flag)  is always "
27115 "safe."
27116 msgstr ""
27117
27118 # type: =item
27119 #: ../tools/virt-win-reg.pl:246
27120 msgid "B<--encoding> UTF-16LE|ASCII"
27121 msgstr ""
27122
27123 # type: textblock
27124 #: ../tools/virt-win-reg.pl:248
27125 msgid ""
27126 "When merging (only), you may need to specify the encoding for strings to be "
27127 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
27128 "(3)/ENCODING STRINGS>."
27129 msgstr ""
27130
27131 # type: textblock
27132 #: ../tools/virt-win-reg.pl:252
27133 msgid ""
27134 "The default is to use UTF-16LE, which should work with recent versions of "
27135 "Windows."
27136 msgstr ""
27137
27138 # type: textblock
27139 #: ../tools/virt-win-reg.pl:486
27140 msgid ""
27141 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
27142 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
27143 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27144 msgstr ""
27145
27146 # type: textblock
27147 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
27148 msgid ""
27149 "When reporting bugs, please enable debugging and capture the I<complete> "
27150 "output:"
27151 msgstr ""
27152
27153 # type: verbatim
27154 #: ../tools/virt-win-reg.pl:504
27155 #, no-wrap
27156 msgid ""
27157 " export LIBGUESTFS_DEBUG=1\n"
27158 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27159 "\n"
27160 msgstr ""
27161
27162 # type: textblock
27163 #: ../tools/virt-win-reg.pl:507
27164 msgid ""
27165 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
27166 "redhat.com/>"
27167 msgstr ""
27168
27169 # type: textblock
27170 #: ../tools/virt-df.pl:36
27171 msgid "virt-df - Display free space on virtual filesystems"
27172 msgstr ""
27173
27174 # type: verbatim
27175 #: ../tools/virt-df.pl:40
27176 #, no-wrap
27177 msgid ""
27178 " virt-df [--options]\n"
27179 "\n"
27180 msgstr ""
27181
27182 # type: verbatim
27183 #: ../tools/virt-df.pl:42
27184 #, no-wrap
27185 msgid ""
27186 " virt-df [--options] domname\n"
27187 "\n"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-df.pl:44
27192 #, no-wrap
27193 msgid ""
27194 " virt-df [--options] disk.img [disk.img ...]\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-df.pl:48
27200 msgid ""
27201 "C<virt-df> is a command line tool to display free space on virtual machine "
27202 "filesystems.  Unlike other tools, it doesn't just display the amount of "
27203 "space allocated to a virtual machine, but can look inside the virtual "
27204 "machine to see how much space is really being used."
27205 msgstr ""
27206
27207 # type: textblock
27208 #: ../tools/virt-df.pl:53
27209 msgid ""
27210 "It is like the L<df(1)> command, but for virtual machines, except that it "
27211 "also works for Windows virtual machines."
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-df.pl:56
27216 msgid ""
27217 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
27218 "of all active and inactive guests, and performs a C<df>-type operation on "
27219 "each one in turn, printing out the results."
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-df.pl:60
27224 msgid ""
27225 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
27226 "either the single named libvirt domain, or on the disk image(s) listed on "
27227 "the command line (which must all belong to a single VM).  In this mode (with "
27228 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
27229 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
27230 msgstr ""
27231
27232 # type: textblock
27233 #: ../tools/virt-df.pl:67
27234 msgid ""
27235 "Use the C<--csv> option to get a format which can be easily parsed by other "
27236 "programs.  Other options are mostly similar to standard C<df> options.  See "
27237 "below for the complete list."
27238 msgstr ""
27239
27240 # type: =item
27241 #: ../tools/virt-df.pl:107
27242 msgid "B<--csv>"
27243 msgstr ""
27244
27245 # type: textblock
27246 #: ../tools/virt-df.pl:109
27247 msgid ""
27248 "Write out the results in CSV format (comma-separated values).  This format "
27249 "can be imported easily into databases and spreadsheets, but read L</NOTE "
27250 "ABOUT CSV FORMAT> below."
27251 msgstr ""
27252
27253 # type: =item
27254 #: ../tools/virt-df.pl:134
27255 msgid "B<--human-readable> | B<-h>"
27256 msgstr ""
27257
27258 # type: textblock
27259 #: ../tools/virt-df.pl:136
27260 msgid "Print sizes in human-readable format."
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-df.pl:138
27265 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
27266 msgstr ""
27267
27268 # type: =item
27269 #: ../tools/virt-df.pl:144
27270 msgid "B<--inodes> | B<-i>"
27271 msgstr ""
27272
27273 # type: textblock
27274 #: ../tools/virt-df.pl:146
27275 msgid "Print inodes instead of blocks."
27276 msgstr ""
27277
27278 # type: =item
27279 #: ../tools/virt-df.pl:152
27280 msgid "B<--one-per-guest>"
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-df.pl:154
27285 msgid ""
27286 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
27287 "disks from several guests to a single libguestfs appliance."
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-df.pl:157
27292 msgid "You might use this option in the following circumstances:"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-df.pl:163
27297 msgid ""
27298 "If you think an untrusted guest might actively try to exploit the libguestfs "
27299 "appliance kernel, then this prevents one guest from interfering with the "
27300 "stats printed for another guest."
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-df.pl:169
27305 msgid ""
27306 "If the kernel has a bug which stops it from accessing a filesystem in one "
27307 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
27308 "and report stats for further guests."
27309 msgstr ""
27310
27311 # type: =item
27312 #: ../tools/virt-df.pl:180
27313 msgid "B<--uuid>"
27314 msgstr ""
27315
27316 # type: textblock
27317 #: ../tools/virt-df.pl:182
27318 msgid ""
27319 "Print UUIDs instead of names.  This is useful for following a guest even "
27320 "when the guest is migrated or renamed, or when two guests happen to have the "
27321 "same name."
27322 msgstr ""
27323
27324 # type: textblock
27325 #: ../tools/virt-df.pl:186
27326 msgid ""
27327 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
27328 "images, we still print the disk image name even when this option is "
27329 "specified."
27330 msgstr ""
27331
27332 # type: =head1
27333 #: ../tools/virt-df.pl:609
27334 msgid "NOTE ABOUT CSV FORMAT"
27335 msgstr ""
27336
27337 # type: textblock
27338 #: ../tools/virt-df.pl:611
27339 msgid ""
27340 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
27341 "should be easy to parse, but it is definitely not easy to parse."
27342 msgstr ""
27343
27344 # type: textblock
27345 #: ../tools/virt-df.pl:614
27346 msgid ""
27347 "Myth: Just split fields at commas.  Reality: This does I<not> work "
27348 "reliably.  This example has two columns:"
27349 msgstr ""
27350
27351 # type: verbatim
27352 #: ../tools/virt-df.pl:617
27353 #, no-wrap
27354 msgid ""
27355 " \"foo,bar\",baz\n"
27356 "\n"
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-df.pl:619
27361 msgid ""
27362 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
27363 "reliably.  This example has one row:"
27364 msgstr ""
27365
27366 # type: verbatim
27367 #: ../tools/virt-df.pl:622
27368 #, no-wrap
27369 msgid ""
27370 " \"foo\n"
27371 " bar\",baz\n"
27372 "\n"
27373 msgstr ""
27374
27375 # type: textblock
27376 #: ../tools/virt-df.pl:625
27377 msgid ""
27378 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
27379 "packaged in major Linux distributions)."
27380 msgstr ""
27381
27382 # type: textblock
27383 #: ../tools/virt-df.pl:628
27384 msgid ""
27385 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
27386 "or Python's built-in csv library)."
27387 msgstr ""
27388
27389 # type: textblock
27390 #: ../tools/virt-df.pl:631
27391 msgid "Most spreadsheets and databases can import CSV directly."
27392 msgstr ""
27393
27394 # type: textblock
27395 #: ../tools/virt-df.pl:642
27396 msgid ""
27397 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27398 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27399 msgstr ""
27400
27401 # type: textblock
27402 #: ../tools/virt-ls.pl:34
27403 msgid "virt-ls - List files in a virtual machine"
27404 msgstr ""
27405
27406 # type: verbatim
27407 #: ../tools/virt-ls.pl:38
27408 #, no-wrap
27409 msgid ""
27410 " virt-ls [--options] domname directory\n"
27411 "\n"
27412 msgstr ""
27413
27414 # type: verbatim
27415 #: ../tools/virt-ls.pl:40
27416 #, no-wrap
27417 msgid ""
27418 " virt-ls [--options] disk.img [disk.img ...] directory\n"
27419 "\n"
27420 msgstr ""
27421
27422 # type: textblock
27423 #: ../tools/virt-ls.pl:44
27424 msgid ""
27425 "C<virt-ls> is a command line tool to list the names of files in a directory "
27426 "inside a virtual machine or disk image."
27427 msgstr ""
27428
27429 # type: textblock
27430 #: ../tools/virt-ls.pl:47
27431 msgid ""
27432 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
27433 "For more complex cases you should look at the L<guestfish(1)> tool."
27434 msgstr ""
27435
27436 # type: textblock
27437 #: ../tools/virt-ls.pl:51
27438 msgid ""
27439 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
27440 "simple listing is like the ordinary L<ls(1)> command:"
27441 msgstr ""
27442
27443 # type: verbatim
27444 #: ../tools/virt-ls.pl:54
27445 #, no-wrap
27446 msgid ""
27447 " $ virt-ls myguest /\n"
27448 " bin\n"
27449 " boot\n"
27450 " [etc.]\n"
27451 "\n"
27452 msgstr ""
27453
27454 # type: textblock
27455 #: ../tools/virt-ls.pl:59
27456 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
27457 msgstr ""
27458
27459 # type: verbatim
27460 #: ../tools/virt-ls.pl:61
27461 #, no-wrap
27462 msgid ""
27463 " $ virt-ls -l myguest /\n"
27464 " total 204\n"
27465 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
27466 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
27467 " [etc.]\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-ls.pl:67
27473 msgid ""
27474 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
27475 "and directories recursively:"
27476 msgstr ""
27477
27478 # type: verbatim
27479 #: ../tools/virt-ls.pl:70
27480 #, no-wrap
27481 msgid ""
27482 " $ virt-ls -R myguest /tmp\n"
27483 " foo\n"
27484 " foo/bar\n"
27485 " [etc.]\n"
27486 "\n"
27487 msgstr ""
27488
27489 # type: textblock
27490 #: ../tools/virt-ls.pl:75
27491 msgid ""
27492 "You I<cannot> combine these options.  To do more complicated things, use "
27493 "L<guestfish(1)>."
27494 msgstr ""
27495
27496 # type: =item
27497 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
27498 #: ../tools/virt-list-partitions.pl:112
27499 msgid "B<-l> | B<--long>"
27500 msgstr ""
27501
27502 # type: =item
27503 #: ../tools/virt-ls.pl:133
27504 msgid "B<-R> | B<--recursive>"
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-ls.pl:135
27509 msgid ""
27510 "Select the mode.  With neither of these options, C<virt-ls> produces a "
27511 "simple, flat list of the files in the named directory."
27512 msgstr ""
27513
27514 # type: textblock
27515 #: ../tools/virt-ls.pl:138
27516 msgid ""
27517 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
27518 "like the plain C<ls -l> command)."
27519 msgstr ""
27520
27521 # type: textblock
27522 #: ../tools/virt-ls.pl:141
27523 msgid ""
27524 "C<virt-ls -R> produces a recursive list of files starting at the named "
27525 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
27526 "details."
27527 msgstr ""
27528
27529 # type: textblock
27530 #: ../tools/virt-ls.pl:145
27531 msgid "You cannot combine these options."
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-ls.pl:234
27536 msgid ""
27537 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
27538 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27539 "org/>."
27540 msgstr ""
27541
27542 # type: textblock
27543 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
27544 #: ../tools/virt-tar.pl:298
27545 msgid "Copyright (C) 2009 Red Hat Inc."
27546 msgstr ""
27547
27548 # type: textblock
27549 #: ../tools/virt-resize.pl:42
27550 msgid "virt-resize - Resize a virtual machine disk"
27551 msgstr ""
27552
27553 # type: verbatim
27554 #: ../tools/virt-resize.pl:46
27555 #, no-wrap
27556 msgid ""
27557 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27558 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27559 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27560 "\n"
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-resize.pl:52
27565 msgid ""
27566 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27567 "larger or smaller overall, and resizing or deleting any partitions contained "
27568 "within."
27569 msgstr ""
27570
27571 # type: textblock
27572 #: ../tools/virt-resize.pl:56
27573 msgid ""
27574 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27575 "not> be used on live virtual machines - for consistent results, shut the "
27576 "virtual machine down before resizing it."
27577 msgstr ""
27578
27579 # type: textblock
27580 #: ../tools/virt-resize.pl:60
27581 msgid ""
27582 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
27583 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
27584 "read those manual pages first."
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-resize.pl:68
27589 msgid ""
27590 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27591 "fill the extra 5GB of space."
27592 msgstr ""
27593
27594 # type: verbatim
27595 #: ../tools/virt-resize.pl:71
27596 #, no-wrap
27597 msgid ""
27598 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27599 " virt-list-partitions -lht olddisk\n"
27600 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27601 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27602 "\n"
27603 msgstr ""
27604
27605 # type: textblock
27606 #: ../tools/virt-resize.pl:76
27607 msgid ""
27608 "As above, but make the /boot partition 200MB bigger, while giving the "
27609 "remaining space to /dev/sda2:"
27610 msgstr ""
27611
27612 # type: verbatim
27613 #: ../tools/virt-resize.pl:79
27614 #, no-wrap
27615 msgid ""
27616 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27617 "\n"
27618 msgstr ""
27619
27620 # type: textblock
27621 #: ../tools/virt-resize.pl:81
27622 msgid "As above, but the output format will be uncompressed qcow2:"
27623 msgstr ""
27624
27625 # type: verbatim
27626 #: ../tools/virt-resize.pl:83
27627 #, no-wrap
27628 msgid ""
27629 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27630 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27631 "\n"
27632 msgstr ""
27633
27634 # type: =head1
27635 #: ../tools/virt-resize.pl:86
27636 msgid "DETAILED USAGE"
27637 msgstr ""
27638
27639 # type: =head2
27640 #: ../tools/virt-resize.pl:88
27641 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27642 msgstr ""
27643
27644 # type: =item
27645 #: ../tools/virt-resize.pl:92
27646 msgid "1. Shut down the virtual machine"
27647 msgstr ""
27648
27649 # type: =item
27650 #: ../tools/virt-resize.pl:94
27651 msgid "2. Locate input disk image"
27652 msgstr ""
27653
27654 # type: textblock
27655 #: ../tools/virt-resize.pl:96
27656 msgid ""
27657 "Locate the input disk image (ie. the file or device on the host containing "
27658 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27659 "dumpxml> like this to find the disk image name:"
27660 msgstr ""
27661
27662 # type: verbatim
27663 #: ../tools/virt-resize.pl:100
27664 #, no-wrap
27665 msgid ""
27666 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27667 " Found 1 nodes:\n"
27668 " -- NODE --\n"
27669 " <source dev=\"/dev/vg/lv_guest\" />\n"
27670 "\n"
27671 msgstr ""
27672
27673 # type: =item
27674 #: ../tools/virt-resize.pl:105
27675 msgid "3. Look at current sizing"
27676 msgstr ""
27677
27678 # type: textblock
27679 #: ../tools/virt-resize.pl:107
27680 msgid ""
27681 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27682 msgstr ""
27683
27684 # type: verbatim
27685 #: ../tools/virt-resize.pl:110
27686 #, no-wrap
27687 msgid ""
27688 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27689 " /dev/sda1 ext3 101.9M\n"
27690 " /dev/sda2 pv 7.9G\n"
27691 " /dev/sda device 8.0G\n"
27692 "\n"
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-resize.pl:115
27697 msgid ""
27698 "(This example is a virtual machine with an 8 GB disk which we would like to "
27699 "expand up to 10 GB)."
27700 msgstr ""
27701
27702 # type: =item
27703 #: ../tools/virt-resize.pl:118
27704 msgid "4. Create output disk"
27705 msgstr ""
27706
27707 # type: textblock
27708 #: ../tools/virt-resize.pl:120
27709 msgid ""
27710 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27711 "to store the resized output disk."
27712 msgstr ""
27713
27714 # type: textblock
27715 #: ../tools/virt-resize.pl:123
27716 msgid ""
27717 "To store the resized disk image in a file, create a file of a suitable size:"
27718 msgstr ""
27719
27720 # type: verbatim
27721 #: ../tools/virt-resize.pl:126
27722 #, no-wrap
27723 msgid ""
27724 " # rm -f outdisk\n"
27725 " # truncate -s 10G outdisk\n"
27726 "\n"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-resize.pl:129
27731 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27732 msgstr ""
27733
27734 # type: verbatim
27735 #: ../tools/virt-resize.pl:131
27736 #, no-wrap
27737 msgid ""
27738 " # lvcreate -L 10G -n lv_name vg_name\n"
27739 "\n"
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-resize.pl:133
27744 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27745 msgstr ""
27746
27747 # type: verbatim
27748 #: ../tools/virt-resize.pl:135
27749 #, no-wrap
27750 msgid ""
27751 " # virsh pool-list\n"
27752 " # virsh vol-create-as poolname newvol 10G\n"
27753 "\n"
27754 msgstr ""
27755
27756 # type: =item
27757 #: ../tools/virt-resize.pl:138
27758 msgid "5. Resize"
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-resize.pl:140
27763 msgid ""
27764 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27765 "file) and the output disk.  The output disk is the one created in the "
27766 "previous step."
27767 msgstr ""
27768
27769 # type: verbatim
27770 #: ../tools/virt-resize.pl:144
27771 #, no-wrap
27772 msgid ""
27773 " # virt-resize indisk outdisk\n"
27774 "\n"
27775 msgstr ""
27776
27777 # type: textblock
27778 #: ../tools/virt-resize.pl:146
27779 msgid ""
27780 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27781 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27782 "larger, then an extra, empty partition is created at the end of the disk "
27783 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27784 "error."
27785 msgstr ""
27786
27787 # type: textblock
27788 #: ../tools/virt-resize.pl:152
27789 msgid ""
27790 "More realistically you'd want to expand existing partitions in the disk "
27791 "image by passing extra options (for the full list see the L</OPTIONS> "
27792 "section below)."
27793 msgstr ""
27794
27795 # type: textblock
27796 #: ../tools/virt-resize.pl:156
27797 msgid ""
27798 "L</--expand> is the most useful option.  It expands the named partition "
27799 "within the disk to fill any extra space:"
27800 msgstr ""
27801
27802 # type: verbatim
27803 #: ../tools/virt-resize.pl:159
27804 #, no-wrap
27805 msgid ""
27806 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27807 "\n"
27808 msgstr ""
27809
27810 # type: textblock
27811 #: ../tools/virt-resize.pl:161
27812 msgid ""
27813 "(In this case, an extra partition is I<not> created at the end of the disk, "
27814 "because there will be no unused space)."
27815 msgstr ""
27816
27817 # type: textblock
27818 #: ../tools/virt-resize.pl:164
27819 msgid ""
27820 "L</--resize> is the other commonly used option.  The following would "
27821 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27822 "rest of the available space:"
27823 msgstr ""
27824
27825 # type: verbatim
27826 #: ../tools/virt-resize.pl:168
27827 #, no-wrap
27828 msgid ""
27829 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27830 "     indisk outdisk\n"
27831 "\n"
27832 msgstr ""
27833
27834 # type: textblock
27835 #: ../tools/virt-resize.pl:171
27836 msgid ""
27837 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27838 "if virt-resize knows how, it will resize the contents, the equivalent of "
27839 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27840 ">.  However virt-resize does not know how to resize some filesystems, so you "
27841 "would have to online resize them after booting the guest.  And virt-resize "
27842 "also does not resize anything inside an LVM PV, it just resizes the PV "
27843 "itself and leaves the user to resize any LVs inside that PV as desired."
27844 msgstr ""
27845
27846 # type: textblock
27847 #: ../tools/virt-resize.pl:180
27848 msgid "Other options are covered below."
27849 msgstr ""
27850
27851 # type: =item
27852 #: ../tools/virt-resize.pl:182
27853 msgid "6. Test"
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-resize.pl:184
27858 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-resize.pl:186
27863 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27864 msgstr ""
27865
27866 # type: verbatim
27867 #: ../tools/virt-resize.pl:188
27868 #, no-wrap
27869 msgid ""
27870 " # virsh edit guestname\n"
27871 "\n"
27872 msgstr ""
27873
27874 # type: textblock
27875 #: ../tools/virt-resize.pl:190
27876 msgid ""
27877 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27878 "html#elementsDisks>"
27879 msgstr ""
27880
27881 # type: textblock
27882 #: ../tools/virt-resize.pl:193
27883 msgid "Then start up the domain with the new, resized disk:"
27884 msgstr ""
27885
27886 # type: verbatim
27887 #: ../tools/virt-resize.pl:195
27888 #, no-wrap
27889 msgid ""
27890 " # virsh start guestname\n"
27891 "\n"
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-resize.pl:197
27896 msgid ""
27897 "and check that it still works.  See also the L</NOTES> section below for "
27898 "additional information."
27899 msgstr ""
27900
27901 # type: =item
27902 #: ../tools/virt-resize.pl:200
27903 msgid "7. Resize LVs etc inside the guest"
27904 msgstr ""
27905
27906 # type: textblock
27907 #: ../tools/virt-resize.pl:202
27908 msgid "(This can also be done offline using L<guestfish(1)>)"
27909 msgstr ""
27910
27911 # type: textblock
27912 #: ../tools/virt-resize.pl:204
27913 msgid ""
27914 "Once the guest has booted you should see the new space available, at least "
27915 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27916 "may need to resize LVs inside PVs, and also resize filesystem types that "
27917 "virt-resize does not know how to expand."
27918 msgstr ""
27919
27920 # type: =head2
27921 #: ../tools/virt-resize.pl:211
27922 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27923 msgstr ""
27924
27925 # type: textblock
27926 #: ../tools/virt-resize.pl:213
27927 msgid ""
27928 "Shrinking is somewhat more complex than expanding, and only an overview is "
27929 "given here."
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-resize.pl:216
27934 msgid ""
27935 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27936 "filesystems).  The user has to shrink content before passing the disk image "
27937 "to virt-resize, and virt-resize will check that the content has been shrunk "
27938 "properly."
27939 msgstr ""
27940
27941 # type: textblock
27942 #: ../tools/virt-resize.pl:221
27943 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27944 msgstr ""
27945
27946 # type: textblock
27947 #: ../tools/virt-resize.pl:223
27948 msgid ""
27949 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27950 "steps 3 and 4 above to allocate a new disk image."
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-resize.pl:226
27955 msgid ""
27956 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27957 msgstr ""
27958
27959 # type: =head2
27960 #: ../tools/virt-resize.pl:229
27961 msgid "IGNORING OR DELETING PARTITIONS"
27962 msgstr ""
27963
27964 # type: textblock
27965 #: ../tools/virt-resize.pl:231
27966 msgid ""
27967 "virt-resize also gives a convenient way to ignore or delete partitions when "
27968 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27969 "up the copy where you don't care about the existing contents of a "
27970 "partition.  Deleting a partition removes it completely, but note that it "
27971 "also renumbers any partitions after the one which is deleted, which can "
27972 "leave some guests unbootable."
27973 msgstr ""
27974
27975 # type: =head2
27976 #: ../tools/virt-resize.pl:238
27977 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27978 msgstr ""
27979
27980 # type: textblock
27981 #: ../tools/virt-resize.pl:240
27982 msgid ""
27983 "If the input disk is in qcow2 format, then you may prefer that the output is "
27984 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27985 "the fly.  The output format is simply determined by the format of the empty "
27986 "output container that you provide.  Thus to create qcow2 output, use:"
27987 msgstr ""
27988
27989 # type: verbatim
27990 #: ../tools/virt-resize.pl:246
27991 #, no-wrap
27992 msgid ""
27993 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27994 "\n"
27995 msgstr ""
27996
27997 # type: textblock
27998 #: ../tools/virt-resize.pl:248
27999 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-resize.pl:250
28004 msgid "Similarly, to get non-sparse raw output use:"
28005 msgstr ""
28006
28007 # type: verbatim
28008 #: ../tools/virt-resize.pl:252
28009 #, no-wrap
28010 msgid ""
28011 " fallocate -l size outdisk\n"
28012 "\n"
28013 msgstr ""
28014
28015 # type: textblock
28016 #: ../tools/virt-resize.pl:254
28017 msgid ""
28018 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
28019 "dev/zero of=outdisk bs=1M count=..>)"
28020 msgstr ""
28021
28022 # type: textblock
28023 #: ../tools/virt-resize.pl:267
28024 msgid "Display help."
28025 msgstr ""
28026
28027 # type: =item
28028 #: ../tools/virt-resize.pl:281
28029 msgid "B<--resize part=size>"
28030 msgstr ""
28031
28032 # type: textblock
28033 #: ../tools/virt-resize.pl:283
28034 msgid ""
28035 "Resize the named partition (expanding or shrinking it) so that it has the "
28036 "given size."
28037 msgstr ""
28038
28039 # type: textblock
28040 #: ../tools/virt-resize.pl:286
28041 msgid ""
28042 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
28043 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
28044 "Exabytes; or as a percentage of the current size; or as a relative number or "
28045 "percentage.  For example:"
28046 msgstr ""
28047
28048 # type: verbatim
28049 #: ../tools/virt-resize.pl:291
28050 #, no-wrap
28051 msgid ""
28052 " --resize /dev/sda2=10G\n"
28053 "\n"
28054 msgstr ""
28055
28056 # type: verbatim
28057 #: ../tools/virt-resize.pl:293
28058 #, no-wrap
28059 msgid ""
28060 " --resize /dev/sda4=90%\n"
28061 "\n"
28062 msgstr ""
28063
28064 # type: verbatim
28065 #: ../tools/virt-resize.pl:295
28066 #, no-wrap
28067 msgid ""
28068 " --resize /dev/sda2=+1G\n"
28069 "\n"
28070 msgstr ""
28071
28072 # type: verbatim
28073 #: ../tools/virt-resize.pl:297
28074 #, no-wrap
28075 msgid ""
28076 " --resize /dev/sda2=-200M\n"
28077 "\n"
28078 msgstr ""
28079
28080 # type: verbatim
28081 #: ../tools/virt-resize.pl:299
28082 #, no-wrap
28083 msgid ""
28084 " --resize /dev/sda1=+128K\n"
28085 "\n"
28086 msgstr ""
28087
28088 # type: verbatim
28089 #: ../tools/virt-resize.pl:301
28090 #, no-wrap
28091 msgid ""
28092 " --resize /dev/sda1=+10%\n"
28093 "\n"
28094 msgstr ""
28095
28096 # type: verbatim
28097 #: ../tools/virt-resize.pl:303
28098 #, no-wrap
28099 msgid ""
28100 " --resize /dev/sda1=-10%\n"
28101 "\n"
28102 msgstr ""
28103
28104 # type: textblock
28105 #: ../tools/virt-resize.pl:305
28106 msgid ""
28107 "You can increase the size of any partition.  Virt-resize will expand the "
28108 "direct content of the partition if it knows how (see C<--expand> below)."
28109 msgstr ""
28110
28111 # type: textblock
28112 #: ../tools/virt-resize.pl:309
28113 msgid ""
28114 "You can only I<decrease> the size of partitions that contain filesystems or "
28115 "PVs which have already been shrunk.  Virt-resize will check this has been "
28116 "done before proceeding, or else will print an error (see also C<--resize-"
28117 "force>)."
28118 msgstr ""
28119
28120 # type: textblock
28121 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
28122 #: ../tools/virt-resize.pl:423
28123 msgid "You can give this option multiple times."
28124 msgstr ""
28125
28126 # type: =item
28127 #: ../tools/virt-resize.pl:320
28128 msgid "B<--resize-force part=size>"
28129 msgstr ""
28130
28131 # type: textblock
28132 #: ../tools/virt-resize.pl:322
28133 msgid ""
28134 "This is the same as C<--resize> except that it will let you decrease the "
28135 "size of any partition.  Generally this means you will lose any data which "
28136 "was at the end of the partition you shrink, but you may not care about that "
28137 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
28138 "as a swap partition)."
28139 msgstr ""
28140
28141 # type: textblock
28142 #: ../tools/virt-resize.pl:328
28143 msgid "See also the C<--ignore> option."
28144 msgstr ""
28145
28146 # type: =item
28147 #: ../tools/virt-resize.pl:334
28148 msgid "B<--expand part>"
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-resize.pl:336
28153 msgid ""
28154 "Expand the named partition so it uses up all extra space (space left over "
28155 "after any other resize changes that you request have been done)."
28156 msgstr ""
28157
28158 # type: textblock
28159 #: ../tools/virt-resize.pl:339
28160 msgid ""
28161 "If virt-resize knows how, it will expand the direct content of the "
28162 "partition.  For example, if the partition is an LVM PV, it will expand the "
28163 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
28164 "content it doesn't know about alone."
28165 msgstr ""
28166
28167 # type: textblock
28168 #: ../tools/virt-resize.pl:344
28169 msgid "Currently virt-resize can resize:"
28170 msgstr ""
28171
28172 # type: textblock
28173 #: ../tools/virt-resize.pl:350
28174 msgid ""
28175 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
28176 "partition."
28177 msgstr ""
28178
28179 # type: textblock
28180 #: ../tools/virt-resize.pl:355
28181 msgid ""
28182 "NTFS filesystems contained directly in a partition, if libguestfs was "
28183 "compiled with support for NTFS."
28184 msgstr ""
28185
28186 # type: textblock
28187 #: ../tools/virt-resize.pl:358
28188 msgid ""
28189 "The filesystem must have been shut down consistently last time it was used.  "
28190 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
28191 "consistency check, so at the first boot after resizing Windows will check "
28192 "the disk."
28193 msgstr ""
28194
28195 # type: textblock
28196 #: ../tools/virt-resize.pl:365
28197 msgid ""
28198 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
28199 "inside the PV.  The user will have to resize LVs as desired."
28200 msgstr ""
28201
28202 # type: textblock
28203 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
28204 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
28205 msgstr ""
28206
28207 # type: =item
28208 #: ../tools/virt-resize.pl:377
28209 msgid "B<--shrink part>"
28210 msgstr ""
28211
28212 # type: textblock
28213 #: ../tools/virt-resize.pl:379
28214 msgid ""
28215 "Shrink the named partition until the overall disk image fits in the "
28216 "destination.  The named partition B<must> contain a filesystem or PV which "
28217 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28218 "online tools).  Virt-resize will check this and give an error if it has not "
28219 "been done."
28220 msgstr ""
28221
28222 # type: textblock
28223 #: ../tools/virt-resize.pl:385
28224 msgid ""
28225 "The amount by which the overall disk must be shrunk (after carrying out all "
28226 "other operations requested by the user) is called the \"deficit\".  For "
28227 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28228 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28229 "would give an error unless the user specified a partition to shrink and that "
28230 "partition had more than a gigabyte of free space."
28231 msgstr ""
28232
28233 # type: =item
28234 #: ../tools/virt-resize.pl:399
28235 msgid "B<--ignore part>"
28236 msgstr ""
28237
28238 # type: textblock
28239 #: ../tools/virt-resize.pl:401
28240 msgid ""
28241 "Ignore the named partition.  Effectively this means the partition is "
28242 "allocated on the destination disk, but the content is not copied across from "
28243 "the source disk.  The content of the partition will be blank (all zero "
28244 "bytes)."
28245 msgstr ""
28246
28247 # type: =item
28248 #: ../tools/virt-resize.pl:412
28249 msgid "B<--delete part>"
28250 msgstr ""
28251
28252 # type: textblock
28253 #: ../tools/virt-resize.pl:414
28254 msgid ""
28255 "Delete the named partition.  It would be more accurate to describe this as "
28256 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28257 "the original disk image is left intact."
28258 msgstr ""
28259
28260 # type: textblock
28261 #: ../tools/virt-resize.pl:418
28262 msgid ""
28263 "Note that when you delete a partition, then anything contained in the "
28264 "partition is also deleted.  Furthermore, this causes any partitions that "
28265 "come after to be I<renumbered>, which can easily make your guest unbootable."
28266 msgstr ""
28267
28268 # type: =item
28269 #: ../tools/virt-resize.pl:429
28270 msgid "B<--LV-expand logvol>"
28271 msgstr ""
28272
28273 # type: textblock
28274 #: ../tools/virt-resize.pl:431
28275 msgid ""
28276 "This takes the logical volume and, as a final step, expands it to fill all "
28277 "the space available in its volume group.  A typical usage, assuming a Linux "
28278 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28279 "lv_root> would be:"
28280 msgstr ""
28281
28282 # type: verbatim
28283 #: ../tools/virt-resize.pl:436
28284 #, no-wrap
28285 msgid ""
28286 " virt-resize indisk outdisk \\\n"
28287 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28288 "\n"
28289 msgstr ""
28290
28291 # type: textblock
28292 #: ../tools/virt-resize.pl:439
28293 msgid ""
28294 "This would first expand the partition (and PV), and then expand the root "
28295 "device to fill the extra space in the PV."
28296 msgstr ""
28297
28298 # type: textblock
28299 #: ../tools/virt-resize.pl:442
28300 msgid ""
28301 "The contents of the LV are also resized if virt-resize knows how to do "
28302 "that.  You can stop virt-resize from trying to expand the content by using "
28303 "the option C<--no-expand-content>."
28304 msgstr ""
28305
28306 # type: textblock
28307 #: ../tools/virt-resize.pl:446
28308 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
28309 msgstr ""
28310
28311 # type: textblock
28312 #: ../tools/virt-resize.pl:449
28313 msgid ""
28314 "You can give this option multiple times, I<but> it doesn't make sense to do "
28315 "this unless the logical volumes you specify are all in different volume "
28316 "groups."
28317 msgstr ""
28318
28319 # type: =item
28320 #: ../tools/virt-resize.pl:457
28321 msgid "B<--no-copy-boot-loader>"
28322 msgstr ""
28323
28324 # type: textblock
28325 #: ../tools/virt-resize.pl:459
28326 msgid ""
28327 "By default, virt-resize copies over some sectors at the start of the disk "
28328 "(up to the beginning of the first partition).  Commonly these sectors "
28329 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28330 "in order for the guest to boot correctly."
28331 msgstr ""
28332
28333 # type: textblock
28334 #: ../tools/virt-resize.pl:464
28335 msgid ""
28336 "If you specify this flag, then this initial copy is not done.  You may need "
28337 "to reinstall the boot loader in this case."
28338 msgstr ""
28339
28340 # type: =item
28341 #: ../tools/virt-resize.pl:472
28342 msgid "B<--no-extra-partition>"
28343 msgstr ""
28344
28345 # type: textblock
28346 #: ../tools/virt-resize.pl:474
28347 msgid ""
28348 "By default, virt-resize creates an extra partition if there is any extra, "
28349 "unused space after all resizing has happened.  Use this option to prevent "
28350 "the extra partition from being created.  If you do this then the extra space "
28351 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28352 "tool in the guest."
28353 msgstr ""
28354
28355 # type: textblock
28356 #: ../tools/virt-resize.pl:480
28357 msgid ""
28358 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28359 "will be created."
28360 msgstr ""
28361
28362 # type: =item
28363 #: ../tools/virt-resize.pl:487
28364 msgid "B<--no-expand-content>"
28365 msgstr ""
28366
28367 # type: textblock
28368 #: ../tools/virt-resize.pl:489
28369 msgid ""
28370 "By default, virt-resize will try to expand the direct contents of "
28371 "partitions, if it knows how (see C<--expand> option above)."
28372 msgstr ""
28373
28374 # type: textblock
28375 #: ../tools/virt-resize.pl:492
28376 msgid ""
28377 "If you give the C<--no-expand-content> option then virt-resize will not "
28378 "attempt this."
28379 msgstr ""
28380
28381 # type: =item
28382 #: ../tools/virt-resize.pl:499
28383 msgid "B<-d> | B<--debug>"
28384 msgstr ""
28385
28386 # type: =item
28387 #: ../tools/virt-resize.pl:507
28388 msgid "B<-n> | B<--dryrun>"
28389 msgstr ""
28390
28391 # type: textblock
28392 #: ../tools/virt-resize.pl:509
28393 msgid "Print a summary of what would be done, but don't do anything."
28394 msgstr ""
28395
28396 # type: =item
28397 #: ../tools/virt-resize.pl:515
28398 msgid "B<-q> | B<--quiet>"
28399 msgstr ""
28400
28401 # type: textblock
28402 #: ../tools/virt-resize.pl:517
28403 msgid "Don't print the summary."
28404 msgstr ""
28405
28406 # type: textblock
28407 #: ../tools/virt-resize.pl:525
28408 msgid ""
28409 "Specify the format of the input disk image.  If this flag is not given then "
28410 "it is auto-detected from the image itself."
28411 msgstr ""
28412
28413 # type: textblock
28414 #: ../tools/virt-resize.pl:531
28415 msgid ""
28416 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28417 "AND NON-SPARSE RAW FORMATS>."
28418 msgstr ""
28419
28420 # type: =item
28421 #: ../tools/virt-resize.pl:538
28422 msgid "B<--output-format> raw"
28423 msgstr ""
28424
28425 # type: textblock
28426 #: ../tools/virt-resize.pl:540
28427 msgid ""
28428 "Specify the format of the output disk image.  If this flag is not given then "
28429 "it is auto-detected from the image itself."
28430 msgstr ""
28431
28432 # type: textblock
28433 #: ../tools/virt-resize.pl:546
28434 msgid ""
28435 "Note that you still need to create the output disk with the right format.  "
28436 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28437 msgstr ""
28438
28439 # type: =head1
28440 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
28441 msgid "NOTES"
28442 msgstr ""
28443
28444 # type: =head2
28445 #: ../tools/virt-resize.pl:1424
28446 msgid "\"Partition 1 does not end on cylinder boundary.\""
28447 msgstr ""
28448
28449 # type: textblock
28450 #: ../tools/virt-resize.pl:1426
28451 msgid ""
28452 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28453 "means the partitions will not be aligned to the ancient CHS geometry.  "
28454 "However CHS geometry is meaningless for disks manufactured since the early "
28455 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28456 "cylinders is not required by any modern operating system."
28457 msgstr ""
28458
28459 # type: =head2
28460 #: ../tools/virt-resize.pl:1433
28461 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28462 msgstr ""
28463
28464 # type: textblock
28465 #: ../tools/virt-resize.pl:1435
28466 msgid ""
28467 "In Windows Vista and later versions, Microsoft switched to using a separate "
28468 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28469 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28470 "the boot partition.  Doing so seems to break the guest completely.  However "
28471 "expanding the second partition (ie. C: drive) should work."
28472 msgstr ""
28473
28474 # type: textblock
28475 #: ../tools/virt-resize.pl:1442
28476 msgid ""
28477 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28478 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28479 "it find errors) is nothing to worry about."
28480 msgstr ""
28481
28482 # type: =head2
28483 #: ../tools/virt-resize.pl:1446
28484 msgid "GUEST BOOT STUCK AT \"GRUB\""
28485 msgstr ""
28486
28487 # type: textblock
28488 #: ../tools/virt-resize.pl:1448
28489 msgid ""
28490 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28491 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28492 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28493 "although we think is to do with partition alignment."
28494 msgstr ""
28495
28496 # type: verbatim
28497 #: ../tools/virt-resize.pl:1453
28498 #, no-wrap
28499 msgid ""
28500 " guestfish -i -a newdisk\n"
28501 " ><fs> cat /boot/grub/device.map\n"
28502 " # check the contents of this file are sensible or\n"
28503 " # edit the file if necessary\n"
28504 " ><fs> grub-install / /dev/vda\n"
28505 " ><fs> exit\n"
28506 "\n"
28507 msgstr ""
28508
28509 # type: textblock
28510 #: ../tools/virt-resize.pl:1460
28511 msgid ""
28512 "For more flexible guest reconfiguration, including if you need to specify "
28513 "other parameters to grub-install, use L<virt-rescue(1)>."
28514 msgstr ""
28515
28516 # type: =head1
28517 #: ../tools/virt-resize.pl:1463
28518 msgid "ALTERNATIVE TOOLS"
28519 msgstr ""
28520
28521 # type: textblock
28522 #: ../tools/virt-resize.pl:1465
28523 msgid ""
28524 "There are several proprietary tools for resizing partitions.  We won't "
28525 "mention any here."
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-resize.pl:1468
28530 msgid ""
28531 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28532 "operations on disk images.  They can resize and move partitions, but I don't "
28533 "think they can do anything with the contents, and they certainly don't "
28534 "understand LVM."
28535 msgstr ""
28536
28537 # type: textblock
28538 #: ../tools/virt-resize.pl:1473
28539 msgid ""
28540 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28541 "but at a much lower level.  You will probably end up hand-calculating sector "
28542 "offsets, which is something that virt-resize was designed to avoid.  If you "
28543 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28544 "C<--debug> flag."
28545 msgstr ""
28546
28547 # type: textblock
28548 #: ../tools/virt-resize.pl:1488
28549 msgid ""
28550 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
28551 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
28552 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
28553 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
28554 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28555 msgstr ""
28556
28557 # type: textblock
28558 #: ../tools/virt-list-filesystems.pl:32
28559 msgid ""
28560 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28561 msgstr ""
28562
28563 # type: verbatim
28564 #: ../tools/virt-list-filesystems.pl:36
28565 #, no-wrap
28566 msgid ""
28567 " virt-list-filesystems [--options] domname\n"
28568 "\n"
28569 msgstr ""
28570
28571 # type: verbatim
28572 #: ../tools/virt-list-filesystems.pl:38
28573 #, no-wrap
28574 msgid ""
28575 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28576 "\n"
28577 msgstr ""
28578
28579 # type: textblock
28580 #: ../tools/virt-list-filesystems.pl:42
28581 msgid ""
28582 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28583 "are contained in a virtual machine or disk image."
28584 msgstr ""
28585
28586 # type: textblock
28587 #: ../tools/virt-list-filesystems.pl:46
28588 msgid ""
28589 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28590 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28591 "> tool."
28592 msgstr ""
28593
28594 # type: textblock
28595 #: ../tools/virt-list-filesystems.pl:105
28596 msgid ""
28597 "With this option, C<virt-list-filesystems> displays the type of each "
28598 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28599 msgstr ""
28600
28601 # type: =item
28602 #: ../tools/virt-list-filesystems.pl:112
28603 msgid "B<-a> | B<--all>"
28604 msgstr ""
28605
28606 # type: textblock
28607 #: ../tools/virt-list-filesystems.pl:114
28608 msgid ""
28609 "Normally we only show mountable filesystems.  If this option is given then "
28610 "swap devices are shown too."
28611 msgstr ""
28612
28613 # type: textblock
28614 #: ../tools/virt-list-filesystems.pl:188
28615 msgid ""
28616 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
28617 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
28618 ">, L<http://libguestfs.org/>."
28619 msgstr ""
28620
28621 # type: textblock
28622 #: ../tools/virt-tar.pl:33
28623 msgid "virt-tar - Extract or upload files to a virtual machine"
28624 msgstr ""
28625
28626 # type: verbatim
28627 #: ../tools/virt-tar.pl:37
28628 #, no-wrap
28629 msgid ""
28630 " virt-tar [--options] -x domname directory tarball\n"
28631 "\n"
28632 msgstr ""
28633
28634 # type: verbatim
28635 #: ../tools/virt-tar.pl:39
28636 #, no-wrap
28637 msgid ""
28638 " virt-tar [--options] -u domname tarball directory\n"
28639 "\n"
28640 msgstr ""
28641
28642 # type: verbatim
28643 #: ../tools/virt-tar.pl:41
28644 #, no-wrap
28645 msgid ""
28646 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28647 "\n"
28648 msgstr ""
28649
28650 # type: verbatim
28651 #: ../tools/virt-tar.pl:43
28652 #, no-wrap
28653 msgid ""
28654 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28655 "\n"
28656 msgstr ""
28657
28658 # type: textblock
28659 #: ../tools/virt-tar.pl:47
28660 msgid "Download C</home> from the VM into a local tarball:"
28661 msgstr ""
28662
28663 # type: verbatim
28664 #: ../tools/virt-tar.pl:49
28665 #, no-wrap
28666 msgid ""
28667 " virt-tar -x domname /home home.tar\n"
28668 "\n"
28669 msgstr ""
28670
28671 # type: verbatim
28672 #: ../tools/virt-tar.pl:51
28673 #, no-wrap
28674 msgid ""
28675 " virt-tar -zx domname /home home.tar.gz\n"
28676 "\n"
28677 msgstr ""
28678
28679 # type: textblock
28680 #: ../tools/virt-tar.pl:53
28681 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28682 msgstr ""
28683
28684 # type: verbatim
28685 #: ../tools/virt-tar.pl:55
28686 #, no-wrap
28687 msgid ""
28688 " virt-tar -u domname uploadstuff.tar /tmp\n"
28689 "\n"
28690 msgstr ""
28691
28692 # type: verbatim
28693 #: ../tools/virt-tar.pl:57
28694 #, no-wrap
28695 msgid ""
28696 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28697 "\n"
28698 msgstr ""
28699
28700 # type: textblock
28701 #: ../tools/virt-tar.pl:61
28702 msgid ""
28703 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28704 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28705 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28706 msgstr ""
28707
28708 # type: textblock
28709 #: ../tools/virt-tar.pl:66
28710 msgid ""
28711 "You can use C<-x> (extract) on live virtual machines, but you might get "
28712 "inconsistent results or errors if there is filesystem activity inside the "
28713 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28714 "work, but the only way to guarantee consistent results is if the virtual "
28715 "machine is shut down."
28716 msgstr ""
28717
28718 # type: textblock
28719 #: ../tools/virt-tar.pl:74
28720 msgid ""
28721 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28722 "parts of a guest filesystem.  There are many possibilities: making backups, "
28723 "uploading data files, snooping on guest activity, fixing or customizing "
28724 "guests, etc."
28725 msgstr ""
28726
28727 # type: textblock
28728 #: ../tools/virt-tar.pl:79
28729 msgid ""
28730 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28731 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28732 "should look at the L<guestfish(1)> tool."
28733 msgstr ""
28734
28735 # type: textblock
28736 #: ../tools/virt-tar.pl:83
28737 msgid ""
28738 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28739 "its contents (recursively) from the virtual machine into a local tarball.  "
28740 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28741 "virtual machine.  You cannot use these two options together."
28742 msgstr ""
28743
28744 # type: textblock
28745 #: ../tools/virt-tar.pl:89
28746 msgid ""
28747 "In addition, you may need to use the C<-z> (gZip) option to enable "
28748 "compression.  When uploading, you have to specify C<-z> if the upload file "
28749 "is compressed because virt-tar won't detect this on its own."
28750 msgstr ""
28751
28752 # type: textblock
28753 #: ../tools/virt-tar.pl:93
28754 msgid ""
28755 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28756 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28757 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28758 "the L<libguestfs(3)> API)."
28759 msgstr ""
28760
28761 # type: =item
28762 #: ../tools/virt-tar.pl:151
28763 msgid "B<-x> | B<--extract> | B<--download>"
28764 msgstr ""
28765
28766 # type: =item
28767 #: ../tools/virt-tar.pl:153
28768 msgid "B<-u> | B<--upload>"
28769 msgstr ""
28770
28771 # type: textblock
28772 #: ../tools/virt-tar.pl:155
28773 msgid ""
28774 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28775 "local tarball."
28776 msgstr ""
28777
28778 # type: textblock
28779 #: ../tools/virt-tar.pl:158
28780 msgid ""
28781 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28782 "Please read the L</WARNING> section above before using this option."
28783 msgstr ""
28784
28785 # type: textblock
28786 #: ../tools/virt-tar.pl:162
28787 msgid "You must specify exactly one of these options."
28788 msgstr ""
28789
28790 # type: =item
28791 #: ../tools/virt-tar.pl:168
28792 msgid "B<-z> | B<--gzip>"
28793 msgstr ""
28794
28795 # type: textblock
28796 #: ../tools/virt-tar.pl:170
28797 msgid "Specify that the input or output tarball is gzip-compressed."
28798 msgstr ""
28799
28800 # type: textblock
28801 #: ../tools/virt-tar.pl:283
28802 msgid ""
28803 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28804 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28805 "org/>."
28806 msgstr ""
28807
28808 # type: textblock
28809 #: ../tools/virt-rescue.pl:33
28810 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28811 msgstr ""
28812
28813 # type: verbatim
28814 #: ../tools/virt-rescue.pl:37
28815 #, no-wrap
28816 msgid ""
28817 " virt-rescue [--options] domname\n"
28818 "\n"
28819 msgstr ""
28820
28821 # type: verbatim
28822 #: ../tools/virt-rescue.pl:39
28823 #, no-wrap
28824 msgid ""
28825 " virt-rescue [--options] disk.img [disk.img ...]\n"
28826 "\n"
28827 msgstr ""
28828
28829 # type: textblock
28830 #: ../tools/virt-rescue.pl:43
28831 msgid ""
28832 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28833 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28834 "you from doing this, but doesn't catch all cases."
28835 msgstr ""
28836
28837 # type: textblock
28838 #: ../tools/virt-rescue.pl:47
28839 msgid ""
28840 "However if you use the I<--ro> (read only) option, then you can attach a "
28841 "shell to a live virtual machine.  The results might be strange or "
28842 "inconsistent at times but you won't get disk corruption."
28843 msgstr ""
28844
28845 # type: textblock
28846 #: ../tools/virt-rescue.pl:53
28847 msgid ""
28848 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28849 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28850 "recovery tools which you can use to examine or rescue a virtual machine or "
28851 "disk image."
28852 msgstr ""
28853
28854 # type: textblock
28855 #: ../tools/virt-rescue.pl:58
28856 msgid ""
28857 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28858 "on disk image(s):"
28859 msgstr ""
28860
28861 # type: verbatim
28862 #: ../tools/virt-rescue.pl:61
28863 #, no-wrap
28864 msgid ""
28865 " virt-rescue GuestName\n"
28866 "\n"
28867 msgstr ""
28868
28869 # type: verbatim
28870 #: ../tools/virt-rescue.pl:63
28871 #, no-wrap
28872 msgid ""
28873 " virt-rescue --ro /path/to/disk.img\n"
28874 "\n"
28875 msgstr ""
28876
28877 # type: verbatim
28878 #: ../tools/virt-rescue.pl:65
28879 #, no-wrap
28880 msgid ""
28881 " virt-rescue /dev/sdc\n"
28882 "\n"
28883 msgstr ""
28884
28885 # type: textblock
28886 #: ../tools/virt-rescue.pl:67
28887 msgid "For live VMs you I<must> use the --ro option."
28888 msgstr ""
28889
28890 # type: textblock
28891 #: ../tools/virt-rescue.pl:69
28892 msgid ""
28893 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28894 "in an interactive bash shell where you can use many ordinary Linux "
28895 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28896 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28897 "is an empty directory called C</sysroot> where you can mount filesystems."
28898 msgstr ""
28899
28900 # type: textblock
28901 #: ../tools/virt-rescue.pl:76
28902 msgid ""
28903 "In the example below, we list logical volumes, then choose one to mount "
28904 "under C</sysroot>:"
28905 msgstr ""
28906
28907 # type: verbatim
28908 #: ../tools/virt-rescue.pl:79
28909 #, no-wrap
28910 msgid ""
28911 " ><rescue> lvs\n"
28912 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28913 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28914 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28915 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28916 " ><rescue> ls /sysroot\n"
28917 "\n"
28918 msgstr ""
28919
28920 # type: textblock
28921 #: ../tools/virt-rescue.pl:86
28922 msgid ""
28923 "If you don't know what filesystems are available on the virtual machine then "
28924 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28925 msgstr ""
28926
28927 # type: textblock
28928 #: ../tools/virt-rescue.pl:92
28929 msgid ""
28930 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28931 "virtual machine.  For example you can use it on a blank file if you want to "
28932 "partition that file (although we would recommend using L<guestfish(1)> "
28933 "instead as it is more suitable for this purpose).  You can even use virt-"
28934 "rescue on things like SD cards."
28935 msgstr ""
28936
28937 # type: textblock
28938 #: ../tools/virt-rescue.pl:98
28939 msgid ""
28940 "This tool is just designed for quick interactive hacking on a virtual "
28941 "machine.  For more structured access to a virtual machine disk image, you "
28942 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28943 "make scripted changes to guests, use L<guestfish(1)>."
28944 msgstr ""
28945
28946 # type: =item
28947 #: ../tools/virt-rescue.pl:127
28948 msgid "B<--append kernelopts>"
28949 msgstr ""
28950
28951 # type: textblock
28952 #: ../tools/virt-rescue.pl:129
28953 msgid "Pass additional options to the rescue kernel."
28954 msgstr ""
28955
28956 # type: =item
28957 #: ../tools/virt-rescue.pl:164
28958 msgid "B<--memsize MB> | B<-m MB>"
28959 msgstr ""
28960
28961 # type: textblock
28962 #: ../tools/virt-rescue.pl:166
28963 msgid ""
28964 "Change the amount of memory allocated to the rescue system.  The default is "
28965 "set by libguestfs and is small but adequate for running system tools.  The "
28966 "occasional program might need more memory.  The parameter is specified in "
28967 "megabytes."
28968 msgstr ""
28969
28970 # type: =item
28971 #: ../tools/virt-rescue.pl:175
28972 msgid "B<--network MB>"
28973 msgstr ""
28974
28975 # type: textblock
28976 #: ../tools/virt-rescue.pl:177
28977 msgid "Enable QEMU user networking in the guest."
28978 msgstr ""
28979
28980 # type: =item
28981 #: ../tools/virt-rescue.pl:183
28982 msgid "B<--ro> | B<-r>"
28983 msgstr ""
28984
28985 # type: textblock
28986 #: ../tools/virt-rescue.pl:185
28987 msgid "Open the image read-only."
28988 msgstr ""
28989
28990 # type: textblock
28991 #: ../tools/virt-rescue.pl:197
28992 msgid ""
28993 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28994 "SELINUX> before using this option."
28995 msgstr ""
28996
28997 # type: textblock
28998 #: ../tools/virt-rescue.pl:257
28999 msgid ""
29000 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
29001 "ENVIRONMENT VARIABLES> for the complete list."
29002 msgstr ""
29003
29004 # type: textblock
29005 #: ../tools/virt-rescue.pl:269
29006 msgid ""
29007 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
29008 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29009 msgstr ""
29010
29011 # type: textblock
29012 #: ../tools/virt-make-fs.pl:37
29013 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29014 msgstr ""
29015
29016 # type: verbatim
29017 #: ../tools/virt-make-fs.pl:41
29018 #, no-wrap
29019 msgid ""
29020 " virt-make-fs [--options] input.tar output.img\n"
29021 "\n"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #: ../tools/virt-make-fs.pl:43
29026 #, no-wrap
29027 msgid ""
29028 " virt-make-fs [--options] input.tar.gz output.img\n"
29029 "\n"
29030 msgstr ""
29031
29032 # type: verbatim
29033 #: ../tools/virt-make-fs.pl:45
29034 #, no-wrap
29035 msgid ""
29036 " virt-make-fs [--options] directory output.img\n"
29037 "\n"
29038 msgstr ""
29039
29040 # type: textblock
29041 #: ../tools/virt-make-fs.pl:49
29042 msgid ""
29043 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29044 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
29045 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
29046 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
29047 "you want to attach these filesystems to existing virtual machines (eg. to "
29048 "import large amounts of read-only data to a VM)."
29049 msgstr ""
29050
29051 # type: textblock
29052 #: ../tools/virt-make-fs.pl:57
29053 msgid "Basic usage is:"
29054 msgstr ""
29055
29056 # type: verbatim
29057 #: ../tools/virt-make-fs.pl:59
29058 #, no-wrap
29059 msgid ""
29060 " virt-make-fs input output\n"
29061 "\n"
29062 msgstr ""
29063
29064 # type: textblock
29065 #: ../tools/virt-make-fs.pl:61
29066 msgid ""
29067 "where C<input> is either a directory containing files that you want to add, "
29068 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29069 "C<output> is a disk image.  The input type is detected automatically.  The "
29070 "output disk image defaults to a raw ext2 image unless you specify extra "
29071 "flags (see L</OPTIONS> below)."
29072 msgstr ""
29073
29074 # type: =head2
29075 #: ../tools/virt-make-fs.pl:67
29076 msgid "EXTRA SPACE"
29077 msgstr ""
29078
29079 # type: textblock
29080 #: ../tools/virt-make-fs.pl:69
29081 msgid ""
29082 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29083 "the files that it contains, but might have extra space.  Depending on how "
29084 "you are going to use the output, you might think this extra space is wasted "
29085 "and want to minimize it, or you might want to leave space so that more files "
29086 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29087 "but you can use the C<--size> flag to leave space in the filesystem if you "
29088 "want it."
29089 msgstr ""
29090
29091 # type: textblock
29092 #: ../tools/virt-make-fs.pl:77
29093 msgid ""
29094 "An alternative way to leave extra space but not make the output image any "
29095 "bigger is to use an alternative disk image format (instead of the default "
29096 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
29097 "image format (check your hypervisor supports this before using it).  This "
29098 "allows you to choose a large C<--size> but the extra space won't actually be "
29099 "allocated in the image until you try to store something in it."
29100 msgstr ""
29101
29102 # type: textblock
29103 #: ../tools/virt-make-fs.pl:85
29104 msgid ""
29105 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29106 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
29107 "resize to build another image from scratch."
29108 msgstr ""
29109
29110 # type: =head3
29111 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
29112 #: ../tools/virt-make-fs.pl:142
29113 msgid "EXAMPLE"
29114 msgstr ""
29115
29116 # type: verbatim
29117 #: ../tools/virt-make-fs.pl:91
29118 #, no-wrap
29119 msgid ""
29120 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29121 "\n"
29122 msgstr ""
29123
29124 # type: =head2
29125 #: ../tools/virt-make-fs.pl:93
29126 msgid "FILESYSTEM TYPE"
29127 msgstr ""
29128
29129 # type: textblock
29130 #: ../tools/virt-make-fs.pl:95
29131 msgid ""
29132 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
29133 "libguestfs supports can be used (but I<not> read-only formats like "
29134 "ISO9660).  Here are some of the more common choices:"
29135 msgstr ""
29136
29137 # type: =item
29138 #: ../tools/virt-make-fs.pl:101
29139 msgid "I<ext3>"
29140 msgstr ""
29141
29142 # type: textblock
29143 #: ../tools/virt-make-fs.pl:103
29144 msgid ""
29145 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29146 "you are not going to use the filesystem in a way that requires the journal, "
29147 "then this is just wasted overhead."
29148 msgstr ""
29149
29150 # type: =item
29151 #: ../tools/virt-make-fs.pl:107
29152 msgid "I<ntfs> or I<vfat>"
29153 msgstr ""
29154
29155 # type: textblock
29156 #: ../tools/virt-make-fs.pl:109
29157 msgid "Useful if exporting data to a Windows guest."
29158 msgstr ""
29159
29160 # type: textblock
29161 #: ../tools/virt-make-fs.pl:111
29162 msgid ""
29163 "I<Note for vfat>: The tar archive or local directory must only contain files "
29164 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29165 "program running within libguestfs is unable to change the ownership of non-"
29166 "root files, since vfat itself does not support this."
29167 msgstr ""
29168
29169 # type: =item
29170 #: ../tools/virt-make-fs.pl:116
29171 msgid "I<minix>"
29172 msgstr ""
29173
29174 # type: textblock
29175 #: ../tools/virt-make-fs.pl:118
29176 msgid ""
29177 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29178 "total filesystem size."
29179 msgstr ""
29180
29181 # type: verbatim
29182 #: ../tools/virt-make-fs.pl:125
29183 #, no-wrap
29184 msgid ""
29185 " virt-make-fs --type=minix input minixfs.img\n"
29186 "\n"
29187 msgstr ""
29188
29189 # type: =head2
29190 #: ../tools/virt-make-fs.pl:127
29191 msgid "TO PARTITION OR NOT TO PARTITION"
29192 msgstr ""
29193
29194 # type: textblock
29195 #: ../tools/virt-make-fs.pl:129
29196 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29197 msgstr ""
29198
29199 # type: textblock
29200 #: ../tools/virt-make-fs.pl:131
29201 msgid ""
29202 "Adding a partition can make the disk image more compatible with certain "
29203 "virtualized operating systems which don't expect to see a filesystem "
29204 "directly located on a block device (Linux doesn't care and will happily "
29205 "handle both types)."
29206 msgstr ""
29207
29208 # type: textblock
29209 #: ../tools/virt-make-fs.pl:136
29210 msgid ""
29211 "On the other hand, if you have a partition table then the output image is no "
29212 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29213 "directly on a partitioned disk image.  (However libguestfs tools such as "
29214 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29215 msgstr ""
29216
29217 # type: textblock
29218 #: ../tools/virt-make-fs.pl:144
29219 msgid "Add an MBR partition:"
29220 msgstr ""
29221
29222 # type: verbatim
29223 #: ../tools/virt-make-fs.pl:146
29224 #, no-wrap
29225 msgid ""
29226 " virt-make-fs --partition -- input disk.img\n"
29227 "\n"
29228 msgstr ""
29229
29230 # type: textblock
29231 #: ../tools/virt-make-fs.pl:148
29232 msgid ""
29233 "If the output disk image could be terabyte-sized or larger, it's better to "
29234 "use an EFI/GPT-compatible partition table:"
29235 msgstr ""
29236
29237 # type: verbatim
29238 #: ../tools/virt-make-fs.pl:151
29239 #, no-wrap
29240 msgid ""
29241 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29242 "\n"
29243 msgstr ""
29244
29245 # type: textblock
29246 #: ../tools/virt-make-fs.pl:179
29247 msgid "Enable debugging information."
29248 msgstr ""
29249
29250 # type: =item
29251 #: ../tools/virt-make-fs.pl:185
29252 msgid "B<--size=E<lt>NE<gt>>"
29253 msgstr ""
29254
29255 # type: =item
29256 #: ../tools/virt-make-fs.pl:187
29257 msgid "B<--size=+E<lt>NE<gt>>"
29258 msgstr ""
29259
29260 # type: =item
29261 #: ../tools/virt-make-fs.pl:189
29262 msgid "B<-s E<lt>NE<gt>>"
29263 msgstr ""
29264
29265 # type: =item
29266 #: ../tools/virt-make-fs.pl:191
29267 msgid "B<-s +E<lt>NE<gt>>"
29268 msgstr ""
29269
29270 # type: textblock
29271 #: ../tools/virt-make-fs.pl:193
29272 msgid ""
29273 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29274 msgstr ""
29275
29276 # type: textblock
29277 #: ../tools/virt-make-fs.pl:196
29278 msgid ""
29279 "If this option is I<not> given, then the output image will be just large "
29280 "enough to contain all the files, with not much wasted space."
29281 msgstr ""
29282
29283 # type: textblock
29284 #: ../tools/virt-make-fs.pl:199
29285 msgid ""
29286 "To choose a fixed size output disk, specify an absolute number followed by b/"
29287 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29288 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29289 "files, else you will get an error."
29290 msgstr ""
29291
29292 # type: textblock
29293 #: ../tools/virt-make-fs.pl:204
29294 msgid ""
29295 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
29296 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29297 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29298 "the input files, and (approximately) an extra 200 MB free space."
29299 msgstr ""
29300
29301 # type: textblock
29302 #: ../tools/virt-make-fs.pl:210
29303 msgid ""
29304 "Note that virt-make-fs estimates free space, and therefore will not produce "
29305 "filesystems containing precisely the free space requested.  (It is much more "
29306 "expensive and time-consuming to produce a filesystem which has precisely the "
29307 "desired free space)."
29308 msgstr ""
29309
29310 # type: =item
29311 #: ../tools/virt-make-fs.pl:219
29312 msgid "B<--format=E<lt>fmtE<gt>>"
29313 msgstr ""
29314
29315 # type: =item
29316 #: ../tools/virt-make-fs.pl:221
29317 msgid "B<-F E<lt>fmtE<gt>>"
29318 msgstr ""
29319
29320 # type: textblock
29321 #: ../tools/virt-make-fs.pl:223
29322 msgid "Choose the output disk image format."
29323 msgstr ""
29324
29325 # type: textblock
29326 #: ../tools/virt-make-fs.pl:225
29327 msgid "The default is C<raw> (raw disk image)."
29328 msgstr ""
29329
29330 # type: textblock
29331 #: ../tools/virt-make-fs.pl:227
29332 msgid ""
29333 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29334 "that would really make sense here is C<qcow2>."
29335 msgstr ""
29336
29337 # type: =item
29338 #: ../tools/virt-make-fs.pl:234
29339 msgid "B<--type=E<lt>fsE<gt>>"
29340 msgstr ""
29341
29342 # type: =item
29343 #: ../tools/virt-make-fs.pl:236
29344 msgid "B<-t E<lt>fsE<gt>>"
29345 msgstr ""
29346
29347 # type: textblock
29348 #: ../tools/virt-make-fs.pl:238
29349 msgid "Choose the output filesystem type."
29350 msgstr ""
29351
29352 # type: textblock
29353 #: ../tools/virt-make-fs.pl:240
29354 msgid "The default is C<ext2>."
29355 msgstr ""
29356
29357 # type: textblock
29358 #: ../tools/virt-make-fs.pl:242
29359 msgid ""
29360 "Any filesystem which is supported read-write by libguestfs can be used here."
29361 msgstr ""
29362
29363 # type: =item
29364 #: ../tools/virt-make-fs.pl:249
29365 msgid "B<--partition>"
29366 msgstr ""
29367
29368 # type: =item
29369 #: ../tools/virt-make-fs.pl:251
29370 msgid "B<--partition=E<lt>parttypeE<gt>>"
29371 msgstr ""
29372
29373 # type: textblock
29374 #: ../tools/virt-make-fs.pl:253
29375 msgid ""
29376 "If specified, this flag adds an MBR partition table to the output disk image."
29377 msgstr ""
29378
29379 # type: textblock
29380 #: ../tools/virt-make-fs.pl:256
29381 msgid ""
29382 "You can change the partition table type, eg. C<--partition=gpt> for large "
29383 "disks."
29384 msgstr ""
29385
29386 # type: textblock
29387 #: ../tools/virt-make-fs.pl:259
29388 msgid ""
29389 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29390 "might consider the next parameter to be the partition type.  For example:"
29391 msgstr ""
29392
29393 # type: verbatim
29394 #: ../tools/virt-make-fs.pl:263
29395 #, no-wrap
29396 msgid ""
29397 " virt-make-fs --partition input.tar ...\n"
29398 "\n"
29399 msgstr ""
29400
29401 # type: textblock
29402 #: ../tools/virt-make-fs.pl:265
29403 msgid ""
29404 "would cause virt-make-fs to think you wanted to use a partition type of "
29405 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29406 "dash) between options and the input file argument:"
29407 msgstr ""
29408
29409 # type: verbatim
29410 #: ../tools/virt-make-fs.pl:269
29411 #, no-wrap
29412 msgid ""
29413 " virt-make-fs --partition -- input.tar ...\n"
29414 "\n"
29415 msgstr ""
29416
29417 # type: textblock
29418 #: ../tools/virt-make-fs.pl:536
29419 msgid ""
29420 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29421 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29422 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29423 msgstr ""
29424
29425 # type: verbatim
29426 #: ../tools/virt-make-fs.pl:553
29427 #, no-wrap
29428 msgid ""
29429 " export LIBGUESTFS_DEBUG=1\n"
29430 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29431 "\n"
29432 msgstr ""
29433
29434 # type: textblock
29435 #: ../tools/virt-make-fs.pl:556
29436 msgid ""
29437 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29438 "redhat.com/>"
29439 msgstr ""
29440
29441 # type: textblock
29442 #: ../tools/virt-list-partitions.pl:32
29443 msgid ""
29444 "virt-list-partitions - List partitions in a virtual machine or disk image"
29445 msgstr ""
29446
29447 # type: verbatim
29448 #: ../tools/virt-list-partitions.pl:36
29449 #, no-wrap
29450 msgid ""
29451 " virt-list-partitions [--options] domname\n"
29452 "\n"
29453 msgstr ""
29454
29455 # type: verbatim
29456 #: ../tools/virt-list-partitions.pl:38
29457 #, no-wrap
29458 msgid ""
29459 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29460 "\n"
29461 msgstr ""
29462
29463 # type: textblock
29464 #: ../tools/virt-list-partitions.pl:42
29465 msgid ""
29466 "C<virt-list-partitions> is a command line tool to list the partitions that "
29467 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29468 "first step to using L<virt-resize(1)>."
29469 msgstr ""
29470
29471 # type: textblock
29472 #: ../tools/virt-list-partitions.pl:47
29473 msgid ""
29474 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29475 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29476 "> tool."
29477 msgstr ""
29478
29479 # type: =item
29480 #: ../tools/virt-list-partitions.pl:104
29481 msgid "B<-h> | B<--human-readable>"
29482 msgstr ""
29483
29484 # type: textblock
29485 #: ../tools/virt-list-partitions.pl:106
29486 msgid "Show sizes in human-readable form (eg. \"1G\")."
29487 msgstr ""
29488
29489 # type: textblock
29490 #: ../tools/virt-list-partitions.pl:114
29491 msgid ""
29492 "With this option, C<virt-list-partitions> displays the type and size of each "
29493 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29494 msgstr ""
29495
29496 # type: =item
29497 #: ../tools/virt-list-partitions.pl:121
29498 msgid "B<-t> | B<--total>"
29499 msgstr ""
29500
29501 # type: textblock
29502 #: ../tools/virt-list-partitions.pl:123
29503 msgid ""
29504 "Display the total size of each block device (as a separate row or rows)."
29505 msgstr ""
29506
29507 # type: textblock
29508 #: ../tools/virt-list-partitions.pl:256
29509 msgid ""
29510 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
29511 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
29512 "libguestfs.org/>."
29513 msgstr ""