inspect: Refuse to download software hive if it is huge.
[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-12 22:55+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:1224
782 #: ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449
783 #: ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560
784 #: ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573
785 #: ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608
786 #: ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849
787 #: ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966
788 #: ../src/guestfs.pod:1970 ../src/guestfs.pod:1974
789 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
790 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
791 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
792 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
793 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
794 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
795 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
796 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
797 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
798 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
799 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
800 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:376
801 #: ../fish/guestfish.pod:380 ../fish/guestfish.pod:384
802 #: ../fish/guestfish.pod:388 ../fish/guestfish-actions.pod:13
803 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
804 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
805 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
806 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
807 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
808 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
809 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
810 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
811 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
812 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
813 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
814 #: ../inspector/virt-inspector.pl:550 ../inspector/virt-inspector.pl:554
815 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
816 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
817 msgid "*"
818 msgstr ""
819
820 # type: textblock
821 #: ../src/guestfs.pod:362
822 msgid ""
823 "The kernel version that the command runs under will be different from what "
824 "it expects."
825 msgstr ""
826
827 # type: textblock
828 #: ../src/guestfs.pod:367
829 msgid ""
830 "If the command needs to communicate with daemons, then most likely they "
831 "won't be running."
832 msgstr ""
833
834 # type: textblock
835 #: ../src/guestfs.pod:372
836 msgid "The command will be running in limited memory."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:376
841 msgid ""
842 "The network may not be available unless you enable it (see L</"
843 "guestfs_set_network>)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:381
848 msgid "Only supports Linux guests (not Windows, BSD, etc)."
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:385
853 msgid ""
854 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
855 msgstr ""
856
857 # type: textblock
858 #: ../src/guestfs.pod:390
859 msgid ""
860 "For SELinux guests, you may need to enable SELinux and load policy first.  "
861 "See L</SELINUX> in this manpage."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:395
866 msgid ""
867 "I<Security:> It is not safe to run commands from untrusted, possibly "
868 "malicious guests.  These commands may attempt to exploit your program by "
869 "sending unexpected output.  They could also try to exploit the Linux kernel "
870 "or qemu provided by the libguestfs appliance.  They could use the network "
871 "provided by the libguestfs appliance to bypass ordinary network partitions "
872 "and firewalls.  They could use the elevated privileges or different SELinux "
873 "context of your program to their advantage."
874 msgstr ""
875
876 # type: textblock
877 #: ../src/guestfs.pod:404
878 msgid ""
879 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
880 "(a script which runs when the guest next boots normally), and to have this "
881 "script run the commands you want in the normal context of the running guest, "
882 "network security and so on."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:411
887 msgid ""
888 "The two main API calls to run commands are L</guestfs_command> and L</"
889 "guestfs_sh> (there are also variations)."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:414
894 msgid ""
895 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
896 "shell globs, redirections, etc will work."
897 msgstr ""
898
899 # type: =head2
900 #: ../src/guestfs.pod:417
901 msgid "CONFIGURATION FILES"
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:419
906 msgid ""
907 "To read and write configuration files in Linux guest filesystems, we "
908 "strongly recommend using Augeas.  For example, Augeas understands how to "
909 "read and write, say, a Linux shadow password file or X.org configuration "
910 "file, and so avoids you having to write that code."
911 msgstr ""
912
913 # type: textblock
914 #: ../src/guestfs.pod:424
915 msgid ""
916 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
917 "document Augeas itself here because there is excellent documentation on the "
918 "L<http://augeas.net/> website."
919 msgstr ""
920
921 # type: textblock
922 #: ../src/guestfs.pod:428
923 msgid ""
924 "If you don't want to use Augeas (you fool!) then try calling L</"
925 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
926 "over."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:432
931 msgid "SELINUX"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:434
936 msgid ""
937 "We support SELinux guests.  To ensure that labeling happens correctly in "
938 "SELinux guests, you need to enable SELinux and load the guest's policy:"
939 msgstr ""
940
941 # type: =item
942 #: ../src/guestfs.pod:440 ../src/guestfs.pod:953
943 msgid "1."
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:442
948 msgid "Before launching, do:"
949 msgstr ""
950
951 # type: verbatim
952 #: ../src/guestfs.pod:444
953 #, no-wrap
954 msgid ""
955 " guestfs_set_selinux (g, 1);\n"
956 "\n"
957 msgstr ""
958
959 # type: =item
960 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
961 msgid "2."
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:448
966 msgid ""
967 "After mounting the guest's filesystem(s), load the policy.  This is best "
968 "done by running the L<load_policy(8)> command in the guest itself:"
969 msgstr ""
970
971 # type: verbatim
972 #: ../src/guestfs.pod:452
973 #, no-wrap
974 msgid ""
975 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
976 "\n"
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:454
981 msgid ""
982 "(Older versions of C<load_policy> require you to specify the name of the "
983 "policy file)."
984 msgstr ""
985
986 # type: =item
987 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
988 msgid "3."
989 msgstr ""
990
991 # type: textblock
992 #: ../src/guestfs.pod:459
993 msgid ""
994 "Optionally, set the security context for the API.  The correct security "
995 "context to use can only be known by inspecting the guest.  As an example:"
996 msgstr ""
997
998 # type: verbatim
999 #: ../src/guestfs.pod:463
1000 #, no-wrap
1001 msgid ""
1002 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1003 "\n"
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:467
1008 msgid "This will work for running commands and editing existing files."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:469
1013 msgid ""
1014 "When new files are created, you may need to label them explicitly, for "
1015 "example by running the external command C<restorecon pathname>."
1016 msgstr ""
1017
1018 # type: =head2
1019 #: ../src/guestfs.pod:473
1020 msgid "UMASK"
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:475
1025 msgid ""
1026 "Certain calls are affected by the current file mode creation mask (the "
1027 "\"umask\").  In particular ones which create files or directories, such as "
1028 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1029 "either the default mode that the file is created with or modifies the mode "
1030 "that you supply."
1031 msgstr ""
1032
1033 # type: textblock
1034 #: ../src/guestfs.pod:481
1035 msgid ""
1036 "The default umask is C<022>, so files are created with modes such as C<0644> "
1037 "and directories with C<0755>."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:484
1042 msgid ""
1043 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1044 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1045 "guestfs_chmod> after creating each file or directory."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:488
1050 msgid "For more information about umask, see L<umask(2)>."
1051 msgstr ""
1052
1053 # type: =head1
1054 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:669
1055 msgid "ENCRYPTED DISKS"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs allows you to access Linux guests which have been encrypted using "
1062 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1063 "standard.  This includes nearly all whole disk encryption systems used by "
1064 "modern Linux guests."
1065 msgstr ""
1066
1067 # type: textblock
1068 #: ../src/guestfs.pod:498
1069 msgid ""
1070 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1071 "returns the string C<crypto_LUKS>)."
1072 msgstr ""
1073
1074 # type: textblock
1075 #: ../src/guestfs.pod:501
1076 msgid ""
1077 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1078 "will require the passphrase!"
1079 msgstr ""
1080
1081 # type: textblock
1082 #: ../src/guestfs.pod:504
1083 msgid ""
1084 "Opening a LUKS device creates a new device mapper device called C</dev/"
1085 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1086 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1087 "from and encrypted to the underlying block device respectively."
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:510
1092 msgid ""
1093 "LVM volume groups on the device can be made visible by calling L</"
1094 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1095 "(s) can now be mounted in the usual way."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:514
1100 msgid ""
1101 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1102 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1103 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1104 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1105 "underlying encrypted block device)."
1106 msgstr ""
1107
1108 # type: =head2
1109 #: ../src/guestfs.pod:521
1110 msgid "INSPECTION"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:523
1115 msgid ""
1116 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1117 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1118 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1119 "frequently used part of this library has been rewritten in C and moved into "
1120 "the core code)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:529
1125 msgid ""
1126 "Add all disks belonging to the unknown virtual machine and call L</"
1127 "guestfs_launch> in the usual way."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:532
1132 msgid ""
1133 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1134 "and certain heuristics, and returns a list of operating systems that were "
1135 "found.  An empty list means none were found.  A single element is the root "
1136 "filesystem of the operating system.  For dual- or multi-boot guests, "
1137 "multiple roots can be returned, each one corresponding to a separate "
1138 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1139 "world of virtualization, but since this scenario can happen, we have built "
1140 "libguestfs to deal with it.)"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:541
1145 msgid ""
1146 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1147 "to get additional details about that operating system.  For example, call L</"
1148 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1149 "Windows and Linux-based operating systems respectively."
1150 msgstr ""
1151
1152 # type: textblock
1153 #: ../src/guestfs.pod:547
1154 msgid ""
1155 "Un*x-like and Linux-based operating systems usually consist of several "
1156 "filesystems which are mounted at boot time (for example, a separate boot "
1157 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1158 "filesystems correspond to mount points.  Call "
1159 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1160 "hash table like this example:"
1161 msgstr ""
1162
1163 # type: verbatim
1164 #: ../src/guestfs.pod:554
1165 #, no-wrap
1166 msgid ""
1167 " /boot => /dev/sda1\n"
1168 " /     => /dev/vg_guest/lv_root\n"
1169 " /usr  => /dev/vg_guest/lv_usr\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:558
1175 msgid ""
1176 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1177 "filesystems as suggested."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:561
1182 msgid ""
1183 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1184 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1185 msgstr ""
1186
1187 # type: textblock
1188 #: ../src/guestfs.pod:565
1189 msgid ""
1190 "Inspection currently only works for some common operating systems.  "
1191 "Contributors are welcome to send patches for other operating systems that we "
1192 "currently cannot detect."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:569
1197 msgid ""
1198 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1199 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1200 "encrypted devices."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:573
1205 msgid ""
1206 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1207 "inspection and caches the results in the guest handle.  Subsequent calls to "
1208 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1209 "read the disks.  If you change the content of the guest disks, you can redo "
1210 "inspection by calling L</guestfs_inspect_os> again."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:580
1215 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:582
1220 msgid ""
1221 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1222 "ntfs-3g.org/> driver."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:585
1227 msgid ""
1228 "DOS and Windows still use drive letters, and the filesystems are always "
1229 "treated as case insensitive by Windows itself, and therefore you might find "
1230 "a Windows configuration file referring to a path like C<c:\\windows"
1231 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1232 "might be referred to as C</WINDOWS/System32>."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:591
1237 msgid ""
1238 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1239 "libguestfs to read the appropriate Windows Registry and configuration files, "
1240 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1241 "inspector(1)>)."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:596
1246 msgid ""
1247 "Replacing backslash characters with forward slash characters is also outside "
1248 "the scope of libguestfs, but something that you can easily do."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:599
1253 msgid ""
1254 "Where we can help is in resolving the case insensitivity of paths.  For "
1255 "this, call L</guestfs_case_sensitive_path>."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:602
1260 msgid ""
1261 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1262 "files, through the library C<hivex> which is part of the libguestfs project "
1263 "although ships as a separate tarball.  You have to locate and download the "
1264 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1265 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1266 "reg(1)> for more help on this issue."
1267 msgstr ""
1268
1269 # type: =head2
1270 #: ../src/guestfs.pod:610
1271 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:612
1276 msgid ""
1277 "Although we don't want to discourage you from using the C API, we will "
1278 "mention here that the same API is also available in other languages."
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:615
1283 msgid ""
1284 "The API is broadly identical in all supported languages.  This means that "
1285 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1286 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1287 "words, a straightforward, predictable isomorphism between each language."
1288 msgstr ""
1289
1290 # type: textblock
1291 #: ../src/guestfs.pod:621
1292 msgid ""
1293 "Error messages are automatically transformed into exceptions if the language "
1294 "supports it."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:624
1299 msgid ""
1300 "We don't try to \"object orientify\" parts of the API in OO languages, "
1301 "although contributors are welcome to write higher level APIs above what we "
1302 "provide in their favourite languages if they wish."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:630
1307 msgid "B<C++>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:632
1312 msgid ""
1313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1314 "identical to the C API.  C++ classes and exceptions are not used."
1315 msgstr ""
1316
1317 # type: =item
1318 #: ../src/guestfs.pod:636
1319 msgid "B<C#>"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:638
1324 msgid ""
1325 "The C# bindings are highly experimental.  Please read the warnings at the "
1326 "top of C<csharp/Libguestfs.cs>."
1327 msgstr ""
1328
1329 # type: =item
1330 #: ../src/guestfs.pod:641
1331 msgid "B<Haskell>"
1332 msgstr ""
1333
1334 # type: textblock
1335 #: ../src/guestfs.pod:643
1336 msgid ""
1337 "This is the only language binding that is working but incomplete.  Only "
1338 "calls which return simple integers have been bound in Haskell, and we are "
1339 "looking for help to complete this binding."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:647
1344 msgid "B<Java>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:649
1349 msgid ""
1350 "Full documentation is contained in the Javadoc which is distributed with "
1351 "libguestfs."
1352 msgstr ""
1353
1354 # type: =item
1355 #: ../src/guestfs.pod:652
1356 msgid "B<OCaml>"
1357 msgstr ""
1358
1359 # type: textblock
1360 #: ../src/guestfs.pod:654
1361 msgid "For documentation see the file C<guestfs.mli>."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:656
1366 msgid "B<Perl>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:658
1371 msgid "For documentation see L<Sys::Guestfs(3)>."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:660
1376 msgid "B<PHP>"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:662
1381 msgid ""
1382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1383 "the php-libguestfs package for your distribution."
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:665
1388 msgid "The PHP binding only works correctly on 64 bit machines."
1389 msgstr ""
1390
1391 # type: =item
1392 #: ../src/guestfs.pod:667
1393 msgid "B<Python>"
1394 msgstr ""
1395
1396 # type: textblock
1397 #: ../src/guestfs.pod:669
1398 msgid "For documentation do:"
1399 msgstr ""
1400
1401 # type: verbatim
1402 #: ../src/guestfs.pod:671
1403 #, no-wrap
1404 msgid ""
1405 " $ python\n"
1406 " >>> import guestfs\n"
1407 " >>> help (guestfs)\n"
1408 "\n"
1409 msgstr ""
1410
1411 # type: =item
1412 #: ../src/guestfs.pod:675
1413 msgid "B<Ruby>"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:677
1418 msgid ""
1419 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1420 "can find examples written in Ruby in the libguestfs source."
1421 msgstr ""
1422
1423 # type: =item
1424 #: ../src/guestfs.pod:680
1425 msgid "B<shell scripts>"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:682
1430 msgid "For documentation see L<guestfish(1)>."
1431 msgstr ""
1432
1433 # type: =head2
1434 #: ../src/guestfs.pod:686
1435 msgid "LIBGUESTFS GOTCHAS"
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:688
1440 msgid ""
1441 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1442 "system [...] that works in the way it is documented but is counterintuitive "
1443 "and almost invites mistakes.\""
1444 msgstr ""
1445
1446 # type: textblock
1447 #: ../src/guestfs.pod:692
1448 msgid ""
1449 "Since we developed libguestfs and the associated tools, there are several "
1450 "things we would have designed differently, but are now stuck with for "
1451 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1452 "release, you can expect these to change.  Beware of them."
1453 msgstr ""
1454
1455 # type: =item
1456 #: ../src/guestfs.pod:700
1457 msgid "Autosync / forgetting to sync."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:702
1462 msgid ""
1463 "When modifying a filesystem from C or another language, you B<must> unmount "
1464 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1465 "libguestfs handle.  You can also call:"
1466 msgstr ""
1467
1468 # type: verbatim
1469 #: ../src/guestfs.pod:706
1470 #, no-wrap
1471 msgid ""
1472 " guestfs_set_autosync (g, 1);\n"
1473 "\n"
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:708
1478 msgid ""
1479 "to have the unmount/sync done automatically for you when the handle 'g' is "
1480 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:712
1485 msgid ""
1486 "If you forget to do this, then it is entirely possible that your changes "
1487 "won't be written out, or will be partially written, or (very rarely) that "
1488 "you'll get disk corruption."
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:716
1493 msgid ""
1494 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1495 "guestfish scripts that forget to sync will work just fine, which can make "
1496 "this very puzzling if you are trying to debug a problem."
1497 msgstr ""
1498
1499 # type: textblock
1500 #: ../src/guestfs.pod:720
1501 msgid ""
1502 "Update: Autosync is enabled by default for all API users starting from "
1503 "libguestfs 1.5.24."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:723
1508 msgid "Mount option C<-o sync> should not be the default."
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:725
1513 msgid ""
1514 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1515 "However C<-o sync> does not add any reliability benefit, but does have a "
1516 "very large performance impact."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:729
1521 msgid ""
1522 "The work around is to use L</guestfs_mount_options> and set the mount "
1523 "options that you actually want to use."
1524 msgstr ""
1525
1526 # type: =item
1527 #: ../src/guestfs.pod:732
1528 msgid "Read-only should be the default."
1529 msgstr ""
1530
1531 # type: textblock
1532 #: ../src/guestfs.pod:734
1533 msgid ""
1534 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1535 "specify I<--rw> if you want to make changes to the image."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:737
1540 msgid "This would reduce the potential to corrupt live VM images."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:739
1545 msgid ""
1546 "Note that many filesystems change the disk when you just mount and unmount, "
1547 "even if you didn't perform any writes.  You need to use L</"
1548 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:743
1553 msgid "guestfish command line is hard to use."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:745
1558 msgid ""
1559 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1560 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1561 "exist, so it fails.  In earlier versions of guestfish the error message was "
1562 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1563 "we should have used C<guestfish -c command> to run commands."
1564 msgstr ""
1565
1566 # type: =item
1567 #: ../src/guestfs.pod:752
1568 msgid "guestfish megabyte modifiers don't work right on all commands"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:754
1573 msgid ""
1574 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1575 "other modifiers).  What guestfish actually does is to multiply the number "
1576 "part by the modifier part and pass the result to the C API.  However this "
1577 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1578 "expecting some other unit (eg. megabytes)."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:761
1583 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1584 msgstr ""
1585
1586 # type: verbatim
1587 #: ../src/guestfs.pod:763
1588 #, no-wrap
1589 msgid ""
1590 " lvcreate LV VG 100M\n"
1591 "\n"
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1598 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1599 "megabytes * megabytes) logical volume.  The error message you get from this "
1600 "is also a little obscure."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:770
1605 msgid ""
1606 "This could be fixed in the generator by specially marking parameters and "
1607 "return values which take bytes or other units."
1608 msgstr ""
1609
1610 # type: =item
1611 #: ../src/guestfs.pod:773
1612 msgid "Ambiguity between devices and paths"
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:775
1617 msgid ""
1618 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1619 "sdb2>) and a similar pathname.  A file might just happen to be called "
1620 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1621 msgstr ""
1622
1623 # type: textblock
1624 #: ../src/guestfs.pod:780
1625 msgid ""
1626 "In the current API we usually resolve this ambiguity by having two separate "
1627 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1628 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1629 "detecting if the path supplied begins with C</dev/>."
1630 msgstr ""
1631
1632 # type: textblock
1633 #: ../src/guestfs.pod:786
1634 msgid ""
1635 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1636 "make paths/devices into structured names.  One way to do this would be to "
1637 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1638 "aspect of grub.  Another way would be to use a structured type, equivalent "
1639 "to this OCaml type:"
1640 msgstr ""
1641
1642 # type: verbatim
1643 #: ../src/guestfs.pod:792
1644 #, no-wrap
1645 msgid ""
1646 " type path = Path of string | Device of int | Partition of int * int\n"
1647 "\n"
1648 msgstr ""
1649
1650 # type: textblock
1651 #: ../src/guestfs.pod:794
1652 msgid "which would allow you to pass arguments like:"
1653 msgstr ""
1654
1655 # type: verbatim
1656 #: ../src/guestfs.pod:796
1657 #, no-wrap
1658 msgid ""
1659 " Path \"/foo/bar\"\n"
1660 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1661 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1662 " Path \"/dev/sdb2\"    (* not a device *)\n"
1663 "\n"
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:801
1668 msgid ""
1669 "As you can see there are still problems to resolve even with this "
1670 "representation.  Also consider how it might work in guestfish."
1671 msgstr ""
1672
1673 # type: =head2
1674 #: ../src/guestfs.pod:806
1675 msgid "PROTOCOL LIMITS"
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:808
1680 msgid ""
1681 "Internally libguestfs uses a message-based protocol to pass API calls and "
1682 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1683 "plenty more detail about this).  The maximum message size used by the "
1684 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1685 "aware of this limit.  The API calls which may be affected are individually "
1686 "documented, with a link back to this section of the documentation."
1687 msgstr ""
1688
1689 # type: textblock
1690 #: ../src/guestfs.pod:816
1691 msgid ""
1692 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1693 "a simple string.  Because this string is at some point internally encoded as "
1694 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1695 "the requested file is larger than this then you will get an error."
1696 msgstr ""
1697
1698 # type: textblock
1699 #: ../src/guestfs.pod:822
1700 msgid ""
1701 "In order to transfer large files into and out of the guest filesystem, you "
1702 "need to use particular calls that support this.  The sections L</UPLOADING> "
1703 "and L</DOWNLOADING> document how to do this."
1704 msgstr ""
1705
1706 # type: textblock
1707 #: ../src/guestfs.pod:826
1708 msgid ""
1709 "You might also consider mounting the disk image using our FUSE filesystem "
1710 "support (L<guestmount(1)>)."
1711 msgstr ""
1712
1713 # type: =head2
1714 #: ../src/guestfs.pod:829
1715 msgid "KEYS AND PASSPHRASES"
1716 msgstr ""
1717
1718 # type: textblock
1719 #: ../src/guestfs.pod:831
1720 msgid ""
1721 "Certain libguestfs calls take a parameter that contains sensitive key "
1722 "material, passed in as a C string."
1723 msgstr ""
1724
1725 # type: textblock
1726 #: ../src/guestfs.pod:834
1727 msgid ""
1728 "In the future we would hope to change the libguestfs implementation so that "
1729 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1730 "swap.  However this is I<not> done at the moment, because of the complexity "
1731 "of such an implementation."
1732 msgstr ""
1733
1734 # type: textblock
1735 #: ../src/guestfs.pod:839
1736 msgid ""
1737 "Therefore you should be aware that any key parameter you pass to libguestfs "
1738 "might end up being written out to the swap partition.  If this is a concern, "
1739 "scrub the swap partition or don't use libguestfs on encrypted devices."
1740 msgstr ""
1741
1742 # type: =head1
1743 #: ../src/guestfs.pod:844
1744 msgid "CONNECTION MANAGEMENT"
1745 msgstr ""
1746
1747 # type: =head2
1748 #: ../src/guestfs.pod:846
1749 msgid "guestfs_h *"
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:848
1754 msgid ""
1755 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1756 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1757 "handle and release all resources used."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:852
1762 msgid ""
1763 "For information on using multiple handles and threads, see the section L</"
1764 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1765 msgstr ""
1766
1767 # type: =head2
1768 #: ../src/guestfs.pod:855
1769 msgid "guestfs_create"
1770 msgstr ""
1771
1772 # type: verbatim
1773 #: ../src/guestfs.pod:857
1774 #, no-wrap
1775 msgid ""
1776 " guestfs_h *guestfs_create (void);\n"
1777 "\n"
1778 msgstr ""
1779
1780 # type: textblock
1781 #: ../src/guestfs.pod:859
1782 msgid "Create a connection handle."
1783 msgstr ""
1784
1785 # type: textblock
1786 #: ../src/guestfs.pod:861
1787 msgid ""
1788 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1789 "on the handle at least once."
1790 msgstr ""
1791
1792 # type: textblock
1793 #: ../src/guestfs.pod:864
1794 msgid ""
1795 "This function returns a non-NULL pointer to a handle on success or NULL on "
1796 "error."
1797 msgstr ""
1798
1799 # type: textblock
1800 #: ../src/guestfs.pod:867
1801 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1802 msgstr ""
1803
1804 # type: textblock
1805 #: ../src/guestfs.pod:869
1806 msgid ""
1807 "You may also want to configure error handling for the handle.  See L</ERROR "
1808 "HANDLING> section below."
1809 msgstr ""
1810
1811 # type: =head2
1812 #: ../src/guestfs.pod:872
1813 msgid "guestfs_close"
1814 msgstr ""
1815
1816 # type: verbatim
1817 #: ../src/guestfs.pod:874
1818 #, no-wrap
1819 msgid ""
1820 " void guestfs_close (guestfs_h *g);\n"
1821 "\n"
1822 msgstr ""
1823
1824 # type: textblock
1825 #: ../src/guestfs.pod:876
1826 msgid "This closes the connection handle and frees up all resources used."
1827 msgstr ""
1828
1829 # type: =head1
1830 #: ../src/guestfs.pod:878
1831 msgid "ERROR HANDLING"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:880
1836 msgid ""
1837 "API functions can return errors.  For example, almost all functions that "
1838 "return C<int> will return C<-1> to indicate an error."
1839 msgstr ""
1840
1841 # type: textblock
1842 #: ../src/guestfs.pod:883
1843 msgid ""
1844 "Additional information is available for errors: an error message string and "
1845 "optionally an error number (errno) if the thing that failed was a system "
1846 "call."
1847 msgstr ""
1848
1849 # type: textblock
1850 #: ../src/guestfs.pod:887
1851 msgid ""
1852 "You can get at the additional information about the last error on the handle "
1853 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1854 "up an error handler with L</guestfs_set_error_handler>."
1855 msgstr ""
1856
1857 # type: textblock
1858 #: ../src/guestfs.pod:892
1859 msgid ""
1860 "When the handle is created, a default error handler is installed which "
1861 "prints the error message string to C<stderr>.  For small short-running "
1862 "command line programs it is sufficient to do:"
1863 msgstr ""
1864
1865 # type: verbatim
1866 #: ../src/guestfs.pod:896
1867 #, no-wrap
1868 msgid ""
1869 " if (guestfs_launch (g) == -1)\n"
1870 "   exit (EXIT_FAILURE);\n"
1871 "\n"
1872 msgstr ""
1873
1874 # type: textblock
1875 #: ../src/guestfs.pod:899
1876 msgid ""
1877 "since the default error handler will ensure that an error message has been "
1878 "printed to C<stderr> before the program exits."
1879 msgstr ""
1880
1881 # type: textblock
1882 #: ../src/guestfs.pod:902
1883 msgid ""
1884 "For other programs the caller will almost certainly want to install an "
1885 "alternate error handler or do error handling in-line like this:"
1886 msgstr ""
1887
1888 # type: verbatim
1889 #: ../src/guestfs.pod:905
1890 #, no-wrap
1891 msgid ""
1892 " g = guestfs_create ();\n"
1893 " \n"
1894 msgstr ""
1895
1896 # type: verbatim
1897 #: ../src/guestfs.pod:907
1898 #, no-wrap
1899 msgid ""
1900 " /* This disables the default behaviour of printing errors\n"
1901 "    on stderr. */\n"
1902 " guestfs_set_error_handler (g, NULL, NULL);\n"
1903 " \n"
1904 msgstr ""
1905
1906 # type: verbatim
1907 #: ../src/guestfs.pod:911
1908 #, no-wrap
1909 msgid ""
1910 " if (guestfs_launch (g) == -1) {\n"
1911 "   /* Examine the error message and print it etc. */\n"
1912 "   char *msg = guestfs_last_error (g);\n"
1913 "   int errnum = guestfs_last_errno (g);\n"
1914 "   fprintf (stderr, \"%s\\n\", msg);\n"
1915 "   /* ... */\n"
1916 "  }\n"
1917 "\n"
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:919
1922 msgid ""
1923 "Out of memory errors are handled differently.  The default action is to call "
1924 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1925 "guestfs_set_out_of_memory_handler>."
1926 msgstr ""
1927
1928 # type: textblock
1929 #: ../src/guestfs.pod:923
1930 msgid ""
1931 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1932 "because there is no handle if this happens there is no way to get additional "
1933 "error information.  However L</guestfs_create> is supposed to be a "
1934 "lightweight operation which can only fail because of insufficient memory (it "
1935 "returns NULL in this case)."
1936 msgstr ""
1937
1938 # type: =head2
1939 #: ../src/guestfs.pod:929
1940 msgid "guestfs_last_error"
1941 msgstr ""
1942
1943 # type: verbatim
1944 #: ../src/guestfs.pod:931
1945 #, no-wrap
1946 msgid ""
1947 " const char *guestfs_last_error (guestfs_h *g);\n"
1948 "\n"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:933
1953 msgid ""
1954 "This returns the last error message that happened on C<g>.  If there has not "
1955 "been an error since the handle was created, then this returns C<NULL>."
1956 msgstr ""
1957
1958 # type: textblock
1959 #: ../src/guestfs.pod:937
1960 msgid ""
1961 "The lifetime of the returned string is until the next error occurs, or L</"
1962 "guestfs_close> is called."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:940
1967 msgid "guestfs_last_errno"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:942
1972 #, no-wrap
1973 msgid ""
1974 " int guestfs_last_errno (guestfs_h *g);\n"
1975 "\n"
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:944
1980 msgid "This returns the last error number (errno) that happened on C<g>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:946
1985 msgid "If successful, an errno integer not equal to zero is returned."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:948
1990 msgid ""
1991 "If no error, this returns 0.  This call can return 0 in three situations:"
1992 msgstr ""
1993
1994 # type: textblock
1995 #: ../src/guestfs.pod:955
1996 msgid "There has not been any error on the handle."
1997 msgstr ""
1998
1999 # type: textblock
2000 #: ../src/guestfs.pod:959
2001 msgid ""
2002 "There has been an error but the errno was meaningless.  This corresponds to "
2003 "the case where the error did not come from a failed system call, but for "
2004 "some other reason."
2005 msgstr ""
2006
2007 # type: textblock
2008 #: ../src/guestfs.pod:965
2009 msgid ""
2010 "There was an error from a failed system call, but for some reason the errno "
2011 "was not captured and returned.  This usually indicates a bug in libguestfs."
2012 msgstr ""
2013
2014 # type: textblock
2015 #: ../src/guestfs.pod:971
2016 msgid ""
2017 "Libguestfs tries to convert the errno from inside the applicance into a "
2018 "corresponding errno for the caller (not entirely trivial: the appliance "
2019 "might be running a completely different operating system from the library "
2020 "and error numbers are not standardized across Un*xen).  If this could not be "
2021 "done, then the error is translated to C<EINVAL>.  In practice this should "
2022 "only happen in very rare circumstances."
2023 msgstr ""
2024
2025 # type: =head2
2026 #: ../src/guestfs.pod:979
2027 msgid "guestfs_set_error_handler"
2028 msgstr ""
2029
2030 # type: verbatim
2031 #: ../src/guestfs.pod:981
2032 #, no-wrap
2033 msgid ""
2034 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2035 "                                           void *opaque,\n"
2036 "                                           const char *msg);\n"
2037 " void guestfs_set_error_handler (guestfs_h *g,\n"
2038 "                                 guestfs_error_handler_cb cb,\n"
2039 "                                 void *opaque);\n"
2040 "\n"
2041 msgstr ""
2042
2043 # type: textblock
2044 #: ../src/guestfs.pod:988
2045 msgid ""
2046 "The callback C<cb> will be called if there is an error.  The parameters "
2047 "passed to the callback are an opaque data pointer and the error message "
2048 "string."
2049 msgstr ""
2050
2051 # type: textblock
2052 #: ../src/guestfs.pod:992
2053 msgid ""
2054 "C<errno> is not passed to the callback.  To get that the callback must call "
2055 "L</guestfs_last_errno>."
2056 msgstr ""
2057
2058 # type: textblock
2059 #: ../src/guestfs.pod:995
2060 msgid ""
2061 "Note that the message string C<msg> is freed as soon as the callback "
2062 "function returns, so if you want to stash it somewhere you must make your "
2063 "own copy."
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:999
2068 msgid "The default handler prints messages on C<stderr>."
2069 msgstr ""
2070
2071 # type: textblock
2072 #: ../src/guestfs.pod:1001
2073 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2074 msgstr ""
2075
2076 # type: =head2
2077 #: ../src/guestfs.pod:1003
2078 msgid "guestfs_get_error_handler"
2079 msgstr ""
2080
2081 # type: verbatim
2082 #: ../src/guestfs.pod:1005
2083 #, no-wrap
2084 msgid ""
2085 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2086 "                                                     void **opaque_rtn);\n"
2087 "\n"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1008
2092 msgid "Returns the current error handler callback."
2093 msgstr ""
2094
2095 # type: =head2
2096 #: ../src/guestfs.pod:1010
2097 msgid "guestfs_set_out_of_memory_handler"
2098 msgstr ""
2099
2100 # type: verbatim
2101 #: ../src/guestfs.pod:1012
2102 #, no-wrap
2103 msgid ""
2104 " typedef void (*guestfs_abort_cb) (void);\n"
2105 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2106 "                                        guestfs_abort_cb);\n"
2107 "\n"
2108 msgstr ""
2109
2110 # type: textblock
2111 #: ../src/guestfs.pod:1016
2112 msgid ""
2113 "The callback C<cb> will be called if there is an out of memory situation.  "
2114 "I<Note this callback must not return>."
2115 msgstr ""
2116
2117 # type: textblock
2118 #: ../src/guestfs.pod:1019
2119 msgid "The default is to call L<abort(3)>."
2120 msgstr ""
2121
2122 # type: textblock
2123 #: ../src/guestfs.pod:1021
2124 msgid ""
2125 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2126 msgstr ""
2127
2128 # type: =head2
2129 #: ../src/guestfs.pod:1024
2130 msgid "guestfs_get_out_of_memory_handler"
2131 msgstr ""
2132
2133 # type: verbatim
2134 #: ../src/guestfs.pod:1026
2135 #, no-wrap
2136 msgid ""
2137 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2138 "\n"
2139 msgstr ""
2140
2141 # type: textblock
2142 #: ../src/guestfs.pod:1028
2143 msgid "This returns the current out of memory handler."
2144 msgstr ""
2145
2146 # type: =head1
2147 #: ../src/guestfs.pod:1030
2148 msgid "PATH"
2149 msgstr ""
2150
2151 # type: textblock
2152 #: ../src/guestfs.pod:1032
2153 msgid ""
2154 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #: ../src/guestfs.pod:1035
2160 msgid ""
2161 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2162 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #: ../src/guestfs.pod:1038
2167 msgid ""
2168 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2169 "to change the directories that libguestfs will search in.  The value is a "
2170 "colon-separated list of paths.  The current directory is I<not> searched "
2171 "unless the path contains an empty element or C<.>.  For example "
2172 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2173 "then C</usr/lib/guestfs>."
2174 msgstr ""
2175
2176 # type: =head1
2177 #: ../src/guestfs.pod:1045
2178 msgid "HIGH-LEVEL API ACTIONS"
2179 msgstr ""
2180
2181 # type: =head2
2182 #: ../src/guestfs.pod:1047
2183 msgid "ABI GUARANTEE"
2184 msgstr ""
2185
2186 # type: textblock
2187 #: ../src/guestfs.pod:1049
2188 msgid ""
2189 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2190 "actions as outlined in this section.  Although we will deprecate some "
2191 "actions, for example if they get replaced by newer calls, we will keep the "
2192 "old actions forever.  This allows you the developer to program in confidence "
2193 "against the libguestfs API."
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:907
2198 msgid "@ACTIONS@"
2199 msgstr ""
2200
2201 # type: =head1
2202 #: ../src/guestfs.pod:1057
2203 msgid "STRUCTURES"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1059
2208 msgid "@STRUCTS@"
2209 msgstr ""
2210
2211 # type: =head1
2212 #: ../src/guestfs.pod:1061
2213 msgid "AVAILABILITY"
2214 msgstr ""
2215
2216 # type: =head2
2217 #: ../src/guestfs.pod:1063
2218 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2219 msgstr ""
2220
2221 # type: textblock
2222 #: ../src/guestfs.pod:1065
2223 msgid ""
2224 "Using L</guestfs_available> you can test availability of the following "
2225 "groups of functions.  This test queries the appliance to see if the "
2226 "appliance you are currently using supports the functionality."
2227 msgstr ""
2228
2229 # type: textblock
2230 #: ../src/guestfs.pod:1070
2231 msgid "@AVAILABILITY@"
2232 msgstr ""
2233
2234 # type: =head2
2235 #: ../src/guestfs.pod:1072
2236 msgid "GUESTFISH supported COMMAND"
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1074
2241 msgid ""
2242 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2243 "prints out the available groups and whether they are supported by this build "
2244 "of libguestfs.  Note however that you have to do C<run> first."
2245 msgstr ""
2246
2247 # type: =head2
2248 #: ../src/guestfs.pod:1079
2249 msgid "SINGLE CALLS AT COMPILE TIME"
2250 msgstr ""
2251
2252 # type: textblock
2253 #: ../src/guestfs.pod:1081
2254 msgid ""
2255 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2256 "function, such as:"
2257 msgstr ""
2258
2259 # type: verbatim
2260 #: ../src/guestfs.pod:1084
2261 #, no-wrap
2262 msgid ""
2263 " #define LIBGUESTFS_HAVE_DD 1\n"
2264 "\n"
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1086
2269 msgid "if L</guestfs_dd> is available."
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1088
2274 msgid ""
2275 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2276 "function is available at compile time, we recommended using build tools such "
2277 "as autoconf or cmake.  For example in autotools you could use:"
2278 msgstr ""
2279
2280 # type: verbatim
2281 #: ../src/guestfs.pod:1093
2282 #, no-wrap
2283 msgid ""
2284 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2285 " AC_CHECK_FUNCS([guestfs_dd])\n"
2286 "\n"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1096
2291 msgid ""
2292 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2293 "in your program."
2294 msgstr ""
2295
2296 # type: =head2
2297 #: ../src/guestfs.pod:1099
2298 msgid "SINGLE CALLS AT RUN TIME"
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1101
2303 msgid ""
2304 "Testing at compile time doesn't guarantee that a function really exists in "
2305 "the library.  The reason is that you might be dynamically linked against a "
2306 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2307 "This situation unfortunately results in a segmentation fault, which is a "
2308 "shortcoming of the C dynamic linking system itself."
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1108
2313 msgid ""
2314 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2315 "in this example program (note that you still need the compile time check as "
2316 "well):"
2317 msgstr ""
2318
2319 # type: verbatim
2320 #: ../src/guestfs.pod:1112
2321 #, no-wrap
2322 msgid ""
2323 " #include <stdio.h>\n"
2324 " #include <stdlib.h>\n"
2325 " #include <unistd.h>\n"
2326 " #include <dlfcn.h>\n"
2327 " #include <guestfs.h>\n"
2328 " \n"
2329 msgstr ""
2330
2331 # type: verbatim
2332 #: ../src/guestfs.pod:1118
2333 #, no-wrap
2334 msgid ""
2335 " main ()\n"
2336 " {\n"
2337 " #ifdef LIBGUESTFS_HAVE_DD\n"
2338 "   void *dl;\n"
2339 "   int has_function;\n"
2340 " \n"
2341 msgstr ""
2342
2343 # type: verbatim
2344 #: ../src/guestfs.pod:1124
2345 #, no-wrap
2346 msgid ""
2347 "   /* Test if the function guestfs_dd is really available. */\n"
2348 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2349 "   if (!dl) {\n"
2350 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2351 "     exit (EXIT_FAILURE);\n"
2352 "   }\n"
2353 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2354 "   dlclose (dl);\n"
2355 " \n"
2356 msgstr ""
2357
2358 # type: verbatim
2359 #: ../src/guestfs.pod:1133
2360 #, no-wrap
2361 msgid ""
2362 "   if (!has_function)\n"
2363 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2364 "   else {\n"
2365 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2366 "     /* Now it's safe to call\n"
2367 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2368 "     */\n"
2369 "   }\n"
2370 " #else\n"
2371 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2372 " #endif\n"
2373 "  }\n"
2374 "\n"
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1146
2379 msgid ""
2380 "You may think the above is an awful lot of hassle, and it is.  There are "
2381 "other ways outside of the C linking system to ensure that this kind of "
2382 "incompatibility never arises, such as using package versioning:"
2383 msgstr ""
2384
2385 # type: verbatim
2386 #: ../src/guestfs.pod:1151
2387 #, no-wrap
2388 msgid ""
2389 " Requires: libguestfs >= 1.0.80\n"
2390 "\n"
2391 msgstr ""
2392
2393 # type: =head1
2394 #: ../src/guestfs.pod:1153
2395 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2396 msgstr ""
2397
2398 # type: textblock
2399 #: ../src/guestfs.pod:1155
2400 msgid ""
2401 "A recent feature of the API is the introduction of calls which take optional "
2402 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2403 "takes variable arguments (ie. C<...>), as in this example:"
2404 msgstr ""
2405
2406 # type: verbatim
2407 #: ../src/guestfs.pod:1160
2408 #, no-wrap
2409 msgid ""
2410 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2411 "\n"
2412 msgstr ""
2413
2414 # type: textblock
2415 #: ../src/guestfs.pod:1162
2416 msgid ""
2417 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2418 "call with no optional arguments specified:"
2419 msgstr ""
2420
2421 # type: verbatim
2422 #: ../src/guestfs.pod:1165
2423 #, no-wrap
2424 msgid ""
2425 " guestfs_add_drive_opts (g, filename, -1);\n"
2426 "\n"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1167
2431 msgid "With a single optional argument:"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1169
2436 #, no-wrap
2437 msgid ""
2438 " guestfs_add_drive_opts (g, filename,\n"
2439 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2440 "                         -1);\n"
2441 "\n"
2442 msgstr ""
2443
2444 # type: textblock
2445 #: ../src/guestfs.pod:1173
2446 msgid "With two:"
2447 msgstr ""
2448
2449 # type: verbatim
2450 #: ../src/guestfs.pod:1175
2451 #, no-wrap
2452 msgid ""
2453 " guestfs_add_drive_opts (g, filename,\n"
2454 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2455 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2456 "                         -1);\n"
2457 "\n"
2458 msgstr ""
2459
2460 # type: textblock
2461 #: ../src/guestfs.pod:1180
2462 msgid ""
2463 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2464 "happen!"
2465 msgstr ""
2466
2467 # type: =head2
2468 #: ../src/guestfs.pod:1183
2469 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1185
2474 msgid ""
2475 "The second variant has the same name with the suffix C<_va>, which works the "
2476 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2477 "example function, this is declared:"
2478 msgstr ""
2479
2480 # type: verbatim
2481 #: ../src/guestfs.pod:1189
2482 #, no-wrap
2483 msgid ""
2484 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2485 "                                va_list args);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: =head2
2490 #: ../src/guestfs.pod:1192
2491 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1194
2496 msgid ""
2497 "The third variant is useful where you need to construct these calls.  You "
2498 "pass in a structure where you fill in the optional fields.  The structure "
2499 "has a bitmask as the first element which you must set to indicate which "
2500 "fields you have filled in.  For our example function the structure and call "
2501 "are declared:"
2502 msgstr ""
2503
2504 # type: verbatim
2505 #: ../src/guestfs.pod:1200
2506 #, no-wrap
2507 msgid ""
2508 " struct guestfs_add_drive_opts_argv {\n"
2509 "   uint64_t bitmask;\n"
2510 "   int readonly;\n"
2511 "   const char *format;\n"
2512 "   /* ... */\n"
2513 " };\n"
2514 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2515 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2516 "\n"
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1209
2521 msgid "You could call it like this:"
2522 msgstr ""
2523
2524 # type: verbatim
2525 #: ../src/guestfs.pod:1211
2526 #, no-wrap
2527 msgid ""
2528 " struct guestfs_add_drive_opts_argv optargs = {\n"
2529 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2530 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2531 "   .readonly = 1,\n"
2532 "   .format = \"qcow2\"\n"
2533 " };\n"
2534 " \n"
2535 msgstr ""
2536
2537 # type: verbatim
2538 #: ../src/guestfs.pod:1218
2539 #, no-wrap
2540 msgid ""
2541 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2542 "\n"
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11
2547 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
2548 #: ../fish/guestfish-actions.pod:1255
2549 msgid "Notes:"
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1226
2554 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1231
2559 msgid "You do not need to fill in all fields of the structure."
2560 msgstr ""
2561
2562 # type: textblock
2563 #: ../src/guestfs.pod:1235
2564 msgid ""
2565 "There must be a one-to-one correspondence between fields of the structure "
2566 "that are filled in, and bits set in the bitmask."
2567 msgstr ""
2568
2569 # type: =head2
2570 #: ../src/guestfs.pod:1240
2571 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2572 msgstr ""
2573
2574 # type: textblock
2575 #: ../src/guestfs.pod:1242
2576 msgid ""
2577 "In other languages, optional arguments are expressed in the way that is "
2578 "natural for that language.  We refer you to the language-specific "
2579 "documentation for more details on that."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1246
2584 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2585 msgstr ""
2586
2587 # type: =end
2588 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2589 msgid "html"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1250
2594 msgid ""
2595 "<!-- old anchor for the next section --> <a name="
2596 "\"state_machine_and_low_level_event_api\"/>"
2597 msgstr ""
2598
2599 # type: =head1
2600 #: ../src/guestfs.pod:1255
2601 msgid "ARCHITECTURE"
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1257
2606 msgid ""
2607 "Internally, libguestfs is implemented by running an appliance (a special "
2608 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2609 "process of the main program."
2610 msgstr ""
2611
2612 # type: verbatim
2613 #: ../src/guestfs.pod:1261
2614 #, no-wrap
2615 msgid ""
2616 "  ___________________\n"
2617 " /                   \\\n"
2618 " | main program      |\n"
2619 " |                   |\n"
2620 " |                   |           child process / appliance\n"
2621 " |                   |           __________________________\n"
2622 " |                   |          / qemu                     \\\n"
2623 " +-------------------+   RPC    |      +-----------------+ |\n"
2624 " | libguestfs     <--------------------> guestfsd        | |\n"
2625 " |                   |          |      +-----------------+ |\n"
2626 " \\___________________/          |      | Linux kernel    | |\n"
2627 "                                |      +--^--------------+ |\n"
2628 "                                \\_________|________________/\n"
2629 "                                          |\n"
2630 "                                   _______v______\n"
2631 "                                  /              \\\n"
2632 "                                  | Device or    |\n"
2633 "                                  | disk image   |\n"
2634 "                                  \\______________/\n"
2635 "\n"
2636 msgstr ""
2637
2638 # type: textblock
2639 #: ../src/guestfs.pod:1281
2640 msgid ""
2641 "The library, linked to the main program, creates the child process and hence "
2642 "the appliance in the L</guestfs_launch> function."
2643 msgstr ""
2644
2645 # type: textblock
2646 #: ../src/guestfs.pod:1284
2647 msgid ""
2648 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2649 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2650 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2651 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2652 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2653 "attached to the qemu process which translates device access by the "
2654 "appliance's Linux kernel into accesses to the image."
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1293
2659 msgid ""
2660 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2661 "Although the disk image you are attached to might also be used by some "
2662 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2663 "care if both libguestfs's qemu process and your virtual machine are trying "
2664 "to update the disk image at the same time, since these usually results in "
2665 "massive disk corruption)."
2666 msgstr ""
2667
2668 # type: =head1
2669 #: ../src/guestfs.pod:1300
2670 msgid "STATE MACHINE"
2671 msgstr ""
2672
2673 # type: textblock
2674 #: ../src/guestfs.pod:1302
2675 msgid "libguestfs uses a state machine to model the child process:"
2676 msgstr ""
2677
2678 # type: verbatim
2679 #: ../src/guestfs.pod:1304
2680 #, no-wrap
2681 msgid ""
2682 "                         |\n"
2683 "                    guestfs_create\n"
2684 "                         |\n"
2685 "                         |\n"
2686 "                     ____V_____\n"
2687 "                    /          \\\n"
2688 "                    |  CONFIG  |\n"
2689 "                    \\__________/\n"
2690 "                     ^ ^   ^  \\\n"
2691 "                    /  |    \\  \\ guestfs_launch\n"
2692 "                   /   |    _\\__V______\n"
2693 "                  /    |   /           \\\n"
2694 "                 /     |   | LAUNCHING |\n"
2695 "                /      |   \\___________/\n"
2696 "               /       |       /\n"
2697 "              /        |  guestfs_launch\n"
2698 "             /         |     /\n"
2699 "    ______  /        __|____V\n"
2700 "   /      \\ ------> /        \\\n"
2701 "   | BUSY |         | READY  |\n"
2702 "   \\______/ <------ \\________/\n"
2703 "\n"
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1326
2708 msgid ""
2709 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2710 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2711 "(3) alternating between READY and BUSY as commands are issued to, and "
2712 "carried out by, the child process."
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1331
2717 msgid ""
2718 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2719 "asynchronously at any time (eg. due to some internal error), and that causes "
2720 "the state to transition back to CONFIG."
2721 msgstr ""
2722
2723 # type: textblock
2724 #: ../src/guestfs.pod:1335
2725 msgid ""
2726 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2727 "issued when in the CONFIG state."
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1338
2732 msgid ""
2733 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2734 "L</guestfs_launch> blocks until the child process is READY to accept "
2735 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2736 "moves the state from CONFIG to LAUNCHING while it is running."
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1344
2741 msgid ""
2742 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2743 "state.  These API calls block waiting for the command to be carried out (ie. "
2744 "the state to transition to BUSY and then back to READY).  There are no non-"
2745 "blocking versions, and no way to issue more than one command per handle at "
2746 "the same time."
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1350
2751 msgid ""
2752 "Finally, the child process sends asynchronous messages back to the main "
2753 "program, such as kernel log messages.  You can register a callback to "
2754 "receive these messages."
2755 msgstr ""
2756
2757 # type: =head2
2758 #: ../src/guestfs.pod:1354
2759 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2760 msgstr ""
2761
2762 # type: textblock
2763 #: ../src/guestfs.pod:1356
2764 msgid ""
2765 "The child process generates events in some situations.  Current events "
2766 "include: receiving a log message, the child process exits."
2767 msgstr ""
2768
2769 # type: textblock
2770 #: ../src/guestfs.pod:1359
2771 msgid ""
2772 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2773 "types of events."
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1362
2778 msgid ""
2779 "Only I<one callback of each type> can be registered for each handle.  "
2780 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2781 "that type.  Cancel all callbacks of this type by calling this function with "
2782 "C<cb> set to C<NULL>."
2783 msgstr ""
2784
2785 # type: =head2
2786 #: ../src/guestfs.pod:1367
2787 msgid "guestfs_set_log_message_callback"
2788 msgstr ""
2789
2790 # type: verbatim
2791 #: ../src/guestfs.pod:1369
2792 #, no-wrap
2793 msgid ""
2794 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2795 "                                         char *buf, int len);\n"
2796 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2797 "                                        guestfs_log_message_cb cb,\n"
2798 "                                        void *opaque);\n"
2799 "\n"
2800 msgstr ""
2801
2802 # type: textblock
2803 #: ../src/guestfs.pod:1375
2804 msgid ""
2805 "The callback function C<cb> will be called whenever qemu or the guest writes "
2806 "anything to the console."
2807 msgstr ""
2808
2809 # type: textblock
2810 #: ../src/guestfs.pod:1378
2811 msgid "Use this function to capture kernel messages and similar."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1380
2816 msgid ""
2817 "Normally there is no log message handler, and log messages are just "
2818 "discarded."
2819 msgstr ""
2820
2821 # type: =head2
2822 #: ../src/guestfs.pod:1383
2823 msgid "guestfs_set_subprocess_quit_callback"
2824 msgstr ""
2825
2826 # type: verbatim
2827 #: ../src/guestfs.pod:1385
2828 #, no-wrap
2829 msgid ""
2830 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2831 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2832 "                                            guestfs_subprocess_quit_cb cb,\n"
2833 "                                            void *opaque);\n"
2834 "\n"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1390
2839 msgid ""
2840 "The callback function C<cb> will be called when the child process quits, "
2841 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2842 "corresponds to a transition from any state to the CONFIG state)."
2843 msgstr ""
2844
2845 # type: =head2
2846 #: ../src/guestfs.pod:1395
2847 msgid "guestfs_set_launch_done_callback"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1397
2852 #, no-wrap
2853 msgid ""
2854 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2855 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2856 "                                        guestfs_launch_done_cb cb,\n"
2857 "                                        void *opaque);\n"
2858 "\n"
2859 msgstr ""
2860
2861 # type: textblock
2862 #: ../src/guestfs.pod:1402
2863 msgid ""
2864 "The callback function C<cb> will be called when the child process becomes "
2865 "ready first time after it has been launched.  (This corresponds to a "
2866 "transition from LAUNCHING to the READY state)."
2867 msgstr ""
2868
2869 # type: =head2
2870 #: ../src/guestfs.pod:1406
2871 msgid "guestfs_set_close_callback"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #: ../src/guestfs.pod:1408
2876 #, no-wrap
2877 msgid ""
2878 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2879 " void guestfs_set_close_callback (guestfs_h *g,\n"
2880 "                                  guestfs_close_cb cb,\n"
2881 "                                  void *opaque);\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #: ../src/guestfs.pod:1413
2887 msgid ""
2888 "The callback function C<cb> will be called while the handle is being closed "
2889 "(synchronously from L</guestfs_close>)."
2890 msgstr ""
2891
2892 # type: textblock
2893 #: ../src/guestfs.pod:1416
2894 msgid ""
2895 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2896 "handles that are open when the program exits.  This means that this callback "
2897 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2898 "problems in higher-level languages (eg. if your HLL interpreter has already "
2899 "been cleaned up by the time this is called, and if your callback then jumps "
2900 "into some HLL function)."
2901 msgstr ""
2902
2903 # type: =head2
2904 #: ../src/guestfs.pod:1424
2905 msgid "guestfs_set_progress_callback"
2906 msgstr ""
2907
2908 # type: verbatim
2909 #: ../src/guestfs.pod:1426
2910 #, no-wrap
2911 msgid ""
2912 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2913 "                                      int proc_nr, int serial,\n"
2914 "                                      uint64_t position, uint64_t total);\n"
2915 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2916 "                                     guestfs_progress_cb cb,\n"
2917 "                                     void *opaque);\n"
2918 "\n"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1433
2923 msgid ""
2924 "Some long-running operations can generate progress messages.  If this "
2925 "callback is registered, then it will be called each time a progress message "
2926 "is generated (usually two seconds after the operation started, and three "
2927 "times per second thereafter until it completes, although the frequency may "
2928 "change in future versions)."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1439
2933 msgid ""
2934 "The callback receives two numbers: C<position> and C<total>.  The units of "
2935 "C<total> are not defined, although for some operations C<total> may relate "
2936 "in some way to the amount of data to be transferred (eg. in bytes or "
2937 "megabytes), and C<position> may be the portion which has been transferred."
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1445
2942 msgid "The only defined and stable parts of the API are:"
2943 msgstr ""
2944
2945 # type: textblock
2946 #: ../src/guestfs.pod:1451
2947 msgid ""
2948 "The callback can display to the user some type of progress bar or indicator "
2949 "which shows the ratio of C<position>:C<total>."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1456
2954 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1460
2959 msgid ""
2960 "If any progress notification is sent during a call, then a final progress "
2961 "notification is always sent when C<position> = C<total>."
2962 msgstr ""
2963
2964 # type: textblock
2965 #: ../src/guestfs.pod:1463
2966 msgid ""
2967 "This is to simplify caller code, so callers can easily set the progress "
2968 "indicator to \"100%\" at the end of the operation, without requiring special "
2969 "code to detect this case."
2970 msgstr ""
2971
2972 # type: textblock
2973 #: ../src/guestfs.pod:1469
2974 msgid ""
2975 "The callback also receives the procedure number and serial number of the "
2976 "call.  These are only useful for debugging protocol issues, and the callback "
2977 "can normally ignore them.  The callback may want to print these numbers in "
2978 "error messages or debugging messages."
2979 msgstr ""
2980
2981 # type: =head1
2982 #: ../src/guestfs.pod:1474
2983 msgid "PRIVATE DATA AREA"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1476
2988 msgid ""
2989 "You can attach named pieces of private data to the libguestfs handle, and "
2990 "fetch them by name for the lifetime of the handle.  This is called the "
2991 "private data area and is only available from the C API."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1480
2996 msgid "To attach a named piece of data, use the following call:"
2997 msgstr ""
2998
2999 # type: verbatim
3000 #: ../src/guestfs.pod:1482
3001 #, no-wrap
3002 msgid ""
3003 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3004 "\n"
3005 msgstr ""
3006
3007 # type: textblock
3008 #: ../src/guestfs.pod:1484
3009 msgid ""
3010 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3011 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3012 "overwritten."
3013 msgstr ""
3014
3015 # type: textblock
3016 #: ../src/guestfs.pod:1488
3017 msgid ""
3018 "You can use any C<key> you want, but names beginning with an underscore "
3019 "character are reserved for internal libguestfs purposes (for implementing "
3020 "language bindings).  It is recommended to prefix the name with some unique "
3021 "string to avoid collisions with other users."
3022 msgstr ""
3023
3024 # type: textblock
3025 #: ../src/guestfs.pod:1493
3026 msgid "To retrieve the pointer, use:"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #: ../src/guestfs.pod:1495
3031 #, no-wrap
3032 msgid ""
3033 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1497
3039 msgid ""
3040 "This function returns C<NULL> if either no data is found associated with "
3041 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3042 "C<NULL>."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1501
3047 msgid ""
3048 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3049 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3050 "all.  In particular, libguestfs does I<not> try to free the data when the "
3051 "handle is closed.  If the data must be freed, then the caller must either "
3052 "free it before calling L</guestfs_close> or must set up a close callback to "
3053 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3054 "can be registered for a handle)."
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1509
3059 msgid ""
3060 "The private data area is implemented using a hash table, and should be "
3061 "reasonably efficient for moderate numbers of keys."
3062 msgstr ""
3063
3064 # type: =head1
3065 #: ../src/guestfs.pod:1512
3066 msgid "BLOCK DEVICE NAMING"
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1514
3071 msgid ""
3072 "In the kernel there is now quite a profusion of schemata for naming block "
3073 "devices (in this context, by I<block device> I mean a physical or virtual "
3074 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
3075 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
3076 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
3077 "for the old IDE driver (particularly for SATA devices) those devices also "
3078 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
3079 "paravirtualized drivers.  This has created several different naming systems, "
3080 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
3081 msgstr ""
3082
3083 # type: textblock
3084 #: ../src/guestfs.pod:1526
3085 msgid ""
3086 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3087 "Linux kernel to access block devices.  We can run a variety of appliances "
3088 "based on a variety of Linux kernels."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1530
3093 msgid ""
3094 "This causes a problem for libguestfs because many API calls use device or "
3095 "partition names.  Working scripts and the recipe (example) scripts that we "
3096 "make available over the internet could fail if the naming scheme changes."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1535
3101 msgid ""
3102 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3103 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3104 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3105 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3106 msgstr ""
3107
3108 # type: textblock
3109 #: ../src/guestfs.pod:1541
3110 msgid ""
3111 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3112 "L</guestfs_list_partitions> and similar calls return the true names of the "
3113 "devices and partitions as known to the appliance."
3114 msgstr ""
3115
3116 # type: =head2
3117 #: ../src/guestfs.pod:1546
3118 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3119 msgstr ""
3120
3121 # type: textblock
3122 #: ../src/guestfs.pod:1548
3123 msgid ""
3124 "Usually this translation is transparent.  However in some (very rare)  cases "
3125 "you may need to know the exact algorithm.  Such cases include where you use "
3126 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3127 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1554
3132 msgid ""
3133 "The algorithm is applied only to I<parameters> which are known to be either "
3134 "device or partition names.  Return values from functions such as L</"
3135 "guestfs_list_devices> are never changed."
3136 msgstr ""
3137
3138 # type: textblock
3139 #: ../src/guestfs.pod:1562
3140 msgid "Is the string a parameter which is a device or partition name?"
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1566
3145 msgid "Does the string begin with C</dev/sd>?"
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1570
3150 msgid ""
3151 "Does the named device exist? If so, we use that device.  However if I<not> "
3152 "then we continue with this algorithm."
3153 msgstr ""
3154
3155 # type: textblock
3156 #: ../src/guestfs.pod:1575
3157 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1577
3162 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3163 msgstr ""
3164
3165 # type: textblock
3166 #: ../src/guestfs.pod:1579
3167 msgid "If that named device exists, use it.  If not, continue."
3168 msgstr ""
3169
3170 # type: textblock
3171 #: ../src/guestfs.pod:1583
3172 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1585
3177 msgid "If that named device exists, use it.  If not, return an error."
3178 msgstr ""
3179
3180 # type: =head2
3181 #: ../src/guestfs.pod:1589
3182 msgid "PORTABILITY CONCERNS"
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1591
3187 msgid ""
3188 "Although the standard naming scheme and automatic translation is useful for "
3189 "simple programs and guestfish scripts, for larger programs it is best not to "
3190 "rely on this mechanism."
3191 msgstr ""
3192
3193 # type: textblock
3194 #: ../src/guestfs.pod:1595
3195 msgid ""
3196 "Where possible for maximum future portability programs using libguestfs "
3197 "should use these future-proof techniques:"
3198 msgstr ""
3199
3200 # type: textblock
3201 #: ../src/guestfs.pod:1602
3202 msgid ""
3203 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3204 "device names, and then use those names directly."
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1605
3209 msgid ""
3210 "Since those device names exist by definition, they will never be translated."
3211 msgstr ""
3212
3213 # type: textblock
3214 #: ../src/guestfs.pod:1610
3215 msgid ""
3216 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3217 "filesystem labels."
3218 msgstr ""
3219
3220 # type: =head1
3221 #: ../src/guestfs.pod:1615
3222 msgid "INTERNALS"
3223 msgstr ""
3224
3225 # type: =head2
3226 #: ../src/guestfs.pod:1617
3227 msgid "COMMUNICATION PROTOCOL"
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1619
3232 msgid ""
3233 "Don't rely on using this protocol directly.  This section documents how it "
3234 "currently works, but it may change at any time."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1622
3239 msgid ""
3240 "The protocol used to talk between the library and the daemon running inside "
3241 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3242 "1014, RFC 1832, RFC 4506)."
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1626
3247 msgid ""
3248 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3249 "this file is automatically generated)."
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1629
3254 msgid ""
3255 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3256 "and C<FileOut> parameters, which are handled with very simple request/reply "
3257 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3258 "parameters, which use the same request and reply messages, but they may also "
3259 "be followed by files sent using a chunked encoding."
3260 msgstr ""
3261
3262 # type: =head3
3263 #: ../src/guestfs.pod:1636
3264 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1638
3269 msgid "For ordinary functions, the request message is:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #: ../src/guestfs.pod:1640
3274 #, no-wrap
3275 msgid ""
3276 " total length (header + arguments,\n"
3277 "      but not including the length word itself)\n"
3278 " struct guestfs_message_header (encoded as XDR)\n"
3279 " struct guestfs_<foo>_args (encoded as XDR)\n"
3280 "\n"
3281 msgstr ""
3282
3283 # type: textblock
3284 #: ../src/guestfs.pod:1645
3285 msgid ""
3286 "The total length field allows the daemon to allocate a fixed size buffer "
3287 "into which it slurps the rest of the message.  As a result, the total length "
3288 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3289 "effective size of any request is limited to somewhere under this size."
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1651
3294 msgid ""
3295 "Note also that many functions don't take any arguments, in which case the "
3296 "C<guestfs_I<foo>_args> is completely omitted."
3297 msgstr ""
3298
3299 # type: textblock
3300 #: ../src/guestfs.pod:1654
3301 msgid ""
3302 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3303 "receiver knows what type of args structure to expect, or none at all."
3304 msgstr ""
3305
3306 # type: textblock
3307 #: ../src/guestfs.pod:1658
3308 msgid "The reply message for ordinary functions is:"
3309 msgstr ""
3310
3311 # type: verbatim
3312 #: ../src/guestfs.pod:1660
3313 #, no-wrap
3314 msgid ""
3315 " total length (header + ret,\n"
3316 "      but not including the length word itself)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3319 "\n"
3320 msgstr ""
3321
3322 # type: textblock
3323 #: ../src/guestfs.pod:1665
3324 msgid ""
3325 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3326 "functions that return no formal return values."
3327 msgstr ""
3328
3329 # type: textblock
3330 #: ../src/guestfs.pod:1668
3331 msgid ""
3332 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1671
3337 msgid ""
3338 "In the case of an error, a flag is set in the header, and the reply message "
3339 "is slightly changed:"
3340 msgstr ""
3341
3342 # type: verbatim
3343 #: ../src/guestfs.pod:1674
3344 #, no-wrap
3345 msgid ""
3346 " total length (header + error,\n"
3347 "      but not including the length word itself)\n"
3348 " struct guestfs_message_header (encoded as XDR)\n"
3349 " struct guestfs_message_error (encoded as XDR)\n"
3350 "\n"
3351 msgstr ""
3352
3353 # type: textblock
3354 #: ../src/guestfs.pod:1679
3355 msgid ""
3356 "The C<guestfs_message_error> structure contains the error message as a "
3357 "string."
3358 msgstr ""
3359
3360 # type: =head3
3361 #: ../src/guestfs.pod:1682
3362 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1684
3367 msgid ""
3368 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3369 "The normal request message is sent (see above).  However this is followed by "
3370 "a sequence of file chunks."
3371 msgstr ""
3372
3373 # type: verbatim
3374 #: ../src/guestfs.pod:1688
3375 #, no-wrap
3376 msgid ""
3377 " total length (header + arguments,\n"
3378 "      but not including the length word itself,\n"
3379 "      and not including the chunks)\n"
3380 " struct guestfs_message_header (encoded as XDR)\n"
3381 " struct guestfs_<foo>_args (encoded as XDR)\n"
3382 " sequence of chunks for FileIn param #0\n"
3383 " sequence of chunks for FileIn param #1 etc.\n"
3384 "\n"
3385 msgstr ""
3386
3387 # type: textblock
3388 #: ../src/guestfs.pod:1696
3389 msgid "The \"sequence of chunks\" is:"
3390 msgstr ""
3391
3392 # type: verbatim
3393 #: ../src/guestfs.pod:1698
3394 #, no-wrap
3395 msgid ""
3396 " length of chunk (not including length word itself)\n"
3397 " struct guestfs_chunk (encoded as XDR)\n"
3398 " length of chunk\n"
3399 " struct guestfs_chunk (encoded as XDR)\n"
3400 "   ...\n"
3401 " length of chunk\n"
3402 " struct guestfs_chunk (with data.data_len == 0)\n"
3403 "\n"
3404 msgstr ""
3405
3406 # type: textblock
3407 #: ../src/guestfs.pod:1706
3408 msgid ""
3409 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3410 "is set in the final chunk to indicate either successful completion or early "
3411 "cancellation."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1710
3416 msgid ""
3417 "At time of writing there are no functions that have more than one FileIn "
3418 "parameter.  However this is (theoretically) supported, by sending the "
3419 "sequence of chunks for each FileIn parameter one after another (from left to "
3420 "right)."
3421 msgstr ""
3422
3423 # type: textblock
3424 #: ../src/guestfs.pod:1715
3425 msgid ""
3426 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3427 "transfer.  The library does this by sending a chunk with a special flag set "
3428 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3429 "RPC, does I<not> send any reply, and goes back to reading the next request."
3430 msgstr ""
3431
3432 # type: textblock
3433 #: ../src/guestfs.pod:1721
3434 msgid ""
3435 "The daemon may also cancel.  It does this by writing a special word "
3436 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3437 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3438 "cancel chunk).  The special word is chosen so that even if cancellation "
3439 "happens right at the end of the transfer (after the library has finished "
3440 "writing and has started listening for the reply), the \"spurious\" cancel "
3441 "flag will not be confused with the reply message."
3442 msgstr ""
3443
3444 # type: textblock
3445 #: ../src/guestfs.pod:1730
3446 msgid ""
3447 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3448 "limit), and also files where the size is not known in advance (eg. from "
3449 "pipes or sockets).  However the chunks are rather small "
3450 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3451 "to keep much in memory."
3452 msgstr ""
3453
3454 # type: =head3
3455 #: ../src/guestfs.pod:1736
3456 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1738
3461 msgid ""
3462 "The protocol for FileOut parameters is exactly the same as for FileIn "
3463 "parameters, but with the roles of daemon and library reversed."
3464 msgstr ""
3465
3466 # type: verbatim
3467 #: ../src/guestfs.pod:1741
3468 #, no-wrap
3469 msgid ""
3470 " total length (header + ret,\n"
3471 "      but not including the length word itself,\n"
3472 "      and not including the chunks)\n"
3473 " struct guestfs_message_header (encoded as XDR)\n"
3474 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3475 " sequence of chunks for FileOut param #0\n"
3476 " sequence of chunks for FileOut param #1 etc.\n"
3477 "\n"
3478 msgstr ""
3479
3480 # type: =head3
3481 #: ../src/guestfs.pod:1749
3482 msgid "INITIAL MESSAGE"
3483 msgstr ""
3484
3485 # type: textblock
3486 #: ../src/guestfs.pod:1751
3487 msgid ""
3488 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3489 "which indicates that the guest and daemon is alive.  This is what L</"
3490 "guestfs_launch> waits for."
3491 msgstr ""
3492
3493 # type: =head3
3494 #: ../src/guestfs.pod:1755
3495 msgid "PROGRESS NOTIFICATION MESSAGES"
3496 msgstr ""
3497
3498 # type: textblock
3499 #: ../src/guestfs.pod:1757
3500 msgid ""
3501 "The daemon may send progress notification messages at any time.  These are "
3502 "distinguished by the normal length word being replaced by "
3503 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1761
3508 msgid ""
3509 "The library turns them into progress callbacks (see "
3510 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3511 "discards them if not."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1765
3516 msgid ""
3517 "The daemon self-limits the frequency of progress messages it sends (see "
3518 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3519 "messages."
3520 msgstr ""
3521
3522 # type: =head1
3523 #: ../src/guestfs.pod:1769
3524 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3525 msgstr ""
3526
3527 # type: textblock
3528 #: ../src/guestfs.pod:1771
3529 msgid ""
3530 "All high-level libguestfs actions are synchronous.  If you want to use "
3531 "libguestfs asynchronously then you must create a thread."
3532 msgstr ""
3533
3534 # type: textblock
3535 #: ../src/guestfs.pod:1774
3536 msgid ""
3537 "Only use the handle from a single thread.  Either use the handle exclusively "
3538 "from one thread, or provide your own mutex so that two threads cannot issue "
3539 "calls on the same handle at the same time."
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1778
3544 msgid ""
3545 "See the graphical program guestfs-browser for one possible architecture for "
3546 "multithreaded programs using libvirt and libguestfs."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1781
3551 msgid "QEMU WRAPPERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1783
3556 msgid ""
3557 "If you want to compile your own qemu, run qemu from a non-standard location, "
3558 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3559 "around qemu."
3560 msgstr ""
3561
3562 # type: textblock
3563 #: ../src/guestfs.pod:1787
3564 msgid ""
3565 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3566 "last command in the shell script (so that qemu replaces the shell and "
3567 "becomes the direct child of the libguestfs-using program).  If you don't do "
3568 "this, then the qemu process won't be cleaned up correctly."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1792
3573 msgid ""
3574 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3575 "source:"
3576 msgstr ""
3577
3578 # type: verbatim
3579 #: ../src/guestfs.pod:1795
3580 #, no-wrap
3581 msgid ""
3582 " #!/bin/sh -\n"
3583 " qemudir=/home/rjones/d/qemu\n"
3584 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3585 "\n"
3586 msgstr ""
3587
3588 # type: textblock
3589 #: ../src/guestfs.pod:1799
3590 msgid ""
3591 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3592 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3593 "example:"
3594 msgstr ""
3595
3596 # type: verbatim
3597 #: ../src/guestfs.pod:1803
3598 #, no-wrap
3599 msgid ""
3600 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3601 "\n"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1805
3606 msgid ""
3607 "Note that libguestfs also calls qemu with the -help and -version options in "
3608 "order to determine features."
3609 msgstr ""
3610
3611 # type: =head1
3612 #: ../src/guestfs.pod:1808
3613 msgid "LIBGUESTFS VERSION NUMBERS"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1810
3618 msgid ""
3619 "Since April 2010, libguestfs has started to make separate development and "
3620 "stable releases, along with corresponding branches in our git repository.  "
3621 "These separate releases can be identified by version number:"
3622 msgstr ""
3623
3624 # type: verbatim
3625 #: ../src/guestfs.pod:1815
3626 #, no-wrap
3627 msgid ""
3628 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3629 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3630 "       |\n"
3631 "       v\n"
3632 " 1  .  3  .  5\n"
3633 " ^           ^\n"
3634 " |           |\n"
3635 " |           `-------- sub-version\n"
3636 " |\n"
3637 " `------ always '1' because we don't change the ABI\n"
3638 "\n"
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1826
3643 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3644 msgstr ""
3645
3646 # type: textblock
3647 #: ../src/guestfs.pod:1828
3648 msgid ""
3649 "As time passes we cherry pick fixes from the development branch and backport "
3650 "those into the stable branch, the effect being that the stable branch should "
3651 "get more stable and less buggy over time.  So the stable releases are ideal "
3652 "for people who don't need new features but would just like the software to "
3653 "work."
3654 msgstr ""
3655
3656 # type: textblock
3657 #: ../src/guestfs.pod:1834
3658 msgid "Our criteria for backporting changes are:"
3659 msgstr ""
3660
3661 # type: textblock
3662 #: ../src/guestfs.pod:1840
3663 msgid ""
3664 "Documentation changes which don't affect any code are backported unless the "
3665 "documentation refers to a future feature which is not in stable."
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1846
3670 msgid ""
3671 "Bug fixes which are not controversial, fix obvious problems, and have been "
3672 "well tested are backported."
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1851
3677 msgid ""
3678 "Simple rearrangements of code which shouldn't affect how it works get "
3679 "backported.  This is so that the code in the two branches doesn't get too "
3680 "far out of step, allowing us to backport future fixes more easily."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1857
3685 msgid ""
3686 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3687 "exceptional case: the new feature is required in order to implement an "
3688 "important bug fix."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1863
3693 msgid ""
3694 "A new stable branch starts when we think the new features in development are "
3695 "substantial and compelling enough over the current stable branch to warrant "
3696 "it.  When that happens we create new stable and development versions 1.N.0 "
3697 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3698 "stable at this point, but by backporting fixes from development, that branch "
3699 "will stabilize over time."
3700 msgstr ""
3701
3702 # type: =head1
3703 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:914
3704 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3705 #: ../tools/virt-rescue.pl:255
3706 msgid "ENVIRONMENT VARIABLES"
3707 msgstr ""
3708
3709 # type: =item
3710 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:940
3711 msgid "LIBGUESTFS_APPEND"
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:942
3716 msgid "Pass additional options to the guest kernel."
3717 msgstr ""
3718
3719 # type: =item
3720 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:944
3721 msgid "LIBGUESTFS_DEBUG"
3722 msgstr ""
3723
3724 # type: textblock
3725 #: ../src/guestfs.pod:1881
3726 msgid ""
3727 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3728 "effect as calling C<guestfs_set_verbose (g, 1)>."
3729 msgstr ""
3730
3731 # type: =item
3732 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:949
3733 msgid "LIBGUESTFS_MEMSIZE"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:951
3738 msgid ""
3739 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3740 msgstr ""
3741
3742 # type: verbatim
3743 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:954
3744 #, no-wrap
3745 msgid ""
3746 " LIBGUESTFS_MEMSIZE=700\n"
3747 "\n"
3748 msgstr ""
3749
3750 # type: =item
3751 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:956
3752 msgid "LIBGUESTFS_PATH"
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs.pod:1893
3757 msgid ""
3758 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3759 "the discussion of paths in section PATH above."
3760 msgstr ""
3761
3762 # type: =item
3763 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:961
3764 msgid "LIBGUESTFS_QEMU"
3765 msgstr ""
3766
3767 # type: textblock
3768 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:963
3769 msgid ""
3770 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3771 "which was found at compile time by the configure script is used."
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1902
3776 msgid "See also L</QEMU WRAPPERS> above."
3777 msgstr ""
3778
3779 # type: =item
3780 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:967
3781 msgid "LIBGUESTFS_TRACE"
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs.pod:1906
3786 msgid ""
3787 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3788 "effect as calling C<guestfs_set_trace (g, 1)>."
3789 msgstr ""
3790
3791 # type: =item
3792 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:976
3793 msgid "TMPDIR"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:978
3798 msgid "Location of temporary directory, defaults to C</tmp>."
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:980
3803 msgid ""
3804 "If libguestfs was compiled to use the supermin appliance then the real "
3805 "appliance is cached in this directory, shared between all handles belonging "
3806 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3807 "use in case C</tmp> is not large enough."
3808 msgstr ""
3809
3810 # type: =head1
3811 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod:1038
3812 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
3813 #: ../inspector/virt-inspector.pl:536 ../tools/virt-edit.pl:350
3814 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3815 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3816 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-tar.pl:281
3817 #: ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534
3818 #: ../tools/virt-list-partitions.pl:254
3819 msgid "SEE ALSO"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1923
3824 msgid ""
3825 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3826 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3827 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3828 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3829 "L<http://libguestfs.org/>."
3830 msgstr ""
3831
3832 # type: textblock
3833 #: ../src/guestfs.pod:1941
3834 msgid ""
3835 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3836 "(8)>, L<disktype(1)>."
3837 msgstr ""
3838
3839 # type: =head1
3840 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499
3841 #: ../tools/virt-make-fs.pl:548
3842 msgid "BUGS"
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs.pod:1950
3847 msgid "To get a list of bugs against libguestfs use this link:"
3848 msgstr ""
3849
3850 # type: textblock
3851 #: ../src/guestfs.pod:1952
3852 msgid ""
3853 "L<https://bugzilla.redhat.com/buglist.cgi?"
3854 "component=libguestfs&product=Virtualization+Tools>"
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:1954
3859 msgid "To report a new bug against libguestfs use this link:"
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs.pod:1956
3864 msgid ""
3865 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3866 "component=libguestfs&product=Virtualization+Tools>"
3867 msgstr ""
3868
3869 # type: textblock
3870 #: ../src/guestfs.pod:1958
3871 msgid "When reporting a bug, please check:"
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:1964
3876 msgid "That the bug hasn't been reported already."
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:1968
3881 msgid "That you are testing a recent version."
3882 msgstr ""
3883
3884 # type: textblock
3885 #: ../src/guestfs.pod:1972
3886 msgid "Describe the bug accurately, and give a way to reproduce it."
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs.pod:1976
3891 msgid ""
3892 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3893 "bug report."
3894 msgstr ""
3895
3896 # type: =head1
3897 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1055
3898 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
3899 #: ../inspector/virt-inspector.pl:546
3900 msgid "AUTHORS"
3901 msgstr ""
3902
3903 # type: textblock
3904 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1057
3905 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
3906 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3907 msgstr ""
3908
3909 # type: =head1
3910 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod:1059
3911 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
3912 #: ../inspector/virt-inspector.pl:560 ../tools/virt-edit.pl:366
3913 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3914 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3915 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:296
3916 #: ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563
3917 #: ../tools/virt-list-partitions.pl:269
3918 msgid "COPYRIGHT"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1061
3923 #: ../fuse/guestmount.pod:250
3924 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:1990
3929 msgid ""
3930 "This library is free software; you can redistribute it and/or modify it "
3931 "under the terms of the GNU Lesser General Public License as published by the "
3932 "Free Software Foundation; either version 2 of the License, or (at your "
3933 "option) any later version."
3934 msgstr ""
3935
3936 # type: textblock
3937 #: ../src/guestfs.pod:1995
3938 msgid ""
3939 "This library is distributed in the hope that it will be useful, but WITHOUT "
3940 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3941 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3942 "for more details."
3943 msgstr ""
3944
3945 # type: textblock
3946 #: ../src/guestfs.pod:2000
3947 msgid ""
3948 "You should have received a copy of the GNU Lesser General Public License "
3949 "along with this library; if not, write to the Free Software Foundation, "
3950 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3951 msgstr ""
3952
3953 # type: =head2
3954 #: ../src/guestfs-actions.pod:1
3955 msgid "guestfs_add_cdrom"
3956 msgstr ""
3957
3958 # type: verbatim
3959 #: ../src/guestfs-actions.pod:3
3960 #, no-wrap
3961 msgid ""
3962 " int\n"
3963 " guestfs_add_cdrom (guestfs_h *g,\n"
3964 "                    const char *filename);\n"
3965 "\n"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3970 msgid "This function adds a virtual CD-ROM disk image to the guest."
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3975 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3976 msgstr ""
3977
3978 # type: textblock
3979 #: ../src/guestfs-actions.pod:17
3980 msgid ""
3981 "This call checks for the existence of C<filename>.  This stops you from "
3982 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3983 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3984 "instead."
3985 msgstr ""
3986
3987 # type: textblock
3988 #: ../src/guestfs-actions.pod:24
3989 msgid ""
3990 "If you just want to add an ISO file (often you use this as an efficient way "
3991 "to transfer large files into the guest), then you should probably use "
3992 "C<guestfs_add_drive_ro> instead."
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
3997 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
3998 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
3999 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
4000 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
4001 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
4002 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
4003 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
4004 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
4005 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
4006 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
4007 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
4008 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
4009 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
4010 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
4011 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
4012 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
4013 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
4014 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
4015 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2213
4016 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2418
4017 #: ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:3045
4018 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3080
4019 #: ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3219
4020 #: ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3246
4021 #: ../src/guestfs-actions.pod:3261 ../src/guestfs-actions.pod:3297
4022 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3389
4023 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3429
4024 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:3484
4025 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3522
4026 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3569
4027 #: ../src/guestfs-actions.pod:3605 ../src/guestfs-actions.pod:3621
4028 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
4029 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3759
4030 #: ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:3792
4031 #: ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3861
4032 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3895
4033 #: ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3923
4034 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
4035 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:4024
4036 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4074
4037 #: ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4105
4038 #: ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4135
4039 #: ../src/guestfs-actions.pod:4150 ../src/guestfs-actions.pod:4165
4040 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4215
4041 #: ../src/guestfs-actions.pod:4235 ../src/guestfs-actions.pod:4249
4042 #: ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4315
4043 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366
4044 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4411
4045 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4563
4046 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4642
4047 #: ../src/guestfs-actions.pod:4660 ../src/guestfs-actions.pod:4692
4048 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4775
4049 #: ../src/guestfs-actions.pod:4788 ../src/guestfs-actions.pod:4802
4050 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5110
4051 #: ../src/guestfs-actions.pod:5124 ../src/guestfs-actions.pod:5136
4052 #: ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5162
4053 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5192
4054 #: ../src/guestfs-actions.pod:5213 ../src/guestfs-actions.pod:5232
4055 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5269
4056 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5310
4057 #: ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5350
4058 #: ../src/guestfs-actions.pod:5369 ../src/guestfs-actions.pod:5386
4059 #: ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5438
4060 #: ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5481
4061 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5511
4062 #: ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5567
4063 #: ../src/guestfs-actions.pod:5590 ../src/guestfs-actions.pod:5616
4064 #: ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:5845
4065 #: ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5870
4066 #: ../src/guestfs-actions.pod:5883 ../src/guestfs-actions.pod:5905
4067 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5931
4068 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:5959
4069 #: ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6035
4070 #: ../src/guestfs-actions.pod:6051 ../src/guestfs-actions.pod:6067
4071 #: ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6097
4072 #: ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6153
4073 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6208
4074 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6239
4075 #: ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6299
4076 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6436
4077 #: ../src/guestfs-actions.pod:6450 ../src/guestfs-actions.pod:6505
4078 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6563
4079 #: ../src/guestfs-actions.pod:6596 ../src/guestfs-actions.pod:6650
4080 #: ../src/guestfs-actions.pod:6676 ../src/guestfs-actions.pod:6742
4081 #: ../src/guestfs-actions.pod:6761 ../src/guestfs-actions.pod:6790
4082 msgid "This function returns 0 on success or -1 on error."
4083 msgstr ""
4084
4085 # type: textblock
4086 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
4087 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
4088 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4089 msgid ""
4090 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4091 "instead."
4092 msgstr ""
4093
4094 # type: textblock
4095 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
4096 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
4097 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
4098 #: ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6853
4099 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156
4100 #: ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951
4101 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322
4102 #: ../fish/guestfish-actions.pod:4423 ../fish/guestfish-actions.pod:4520
4103 msgid ""
4104 "Deprecated functions will not be removed from the API, but the fact that "
4105 "they are deprecated indicates that there are problems with correct use of "
4106 "these functions."
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
4111 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
4112 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
4113 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3062
4114 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:5271
4115 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5498
4116 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6086
4117 #: ../src/guestfs-actions.pod:6598
4118 msgid "(Added in 0.3)"
4119 msgstr ""
4120
4121 # type: =head2
4122 #: ../src/guestfs-actions.pod:41
4123 msgid "guestfs_add_domain"
4124 msgstr ""
4125
4126 # type: verbatim
4127 #: ../src/guestfs-actions.pod:43
4128 #, no-wrap
4129 msgid ""
4130 " int\n"
4131 " guestfs_add_domain (guestfs_h *g,\n"
4132 "                     const char *dom,\n"
4133 "                     ...);\n"
4134 "\n"
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
4139 msgid ""
4140 "You may supply a list of optional arguments to this call.  Use zero or more "
4141 "of the following pairs of parameters, and terminate the list with C<-1> on "
4142 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4143 msgstr ""
4144
4145 # type: verbatim
4146 #: ../src/guestfs-actions.pod:53
4147 #, no-wrap
4148 msgid ""
4149 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4150 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4151 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4152 "\n"
4153 msgstr ""
4154
4155 # type: textblock
4156 #: ../src/guestfs-actions.pod:57
4157 msgid ""
4158 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4159 "It works by connecting to libvirt, requesting the domain and domain XML from "
4160 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4161 "one."
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4166 msgid ""
4167 "The number of disks added is returned.  This operation is atomic: if an "
4168 "error is returned, then no disks are added."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4173 msgid ""
4174 "This function does some minimal checks to make sure the libvirt domain is "
4175 "not running (unless C<readonly> is true).  In a future version we will try "
4176 "to acquire the libvirt lock on each disk."
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4181 msgid ""
4182 "Disks must be accessible locally.  This often means that adding disks from a "
4183 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4184 "unless those disks are accessible via the same device path locally too."
4185 msgstr ""
4186
4187 # type: textblock
4188 #: ../src/guestfs-actions.pod:74
4189 msgid ""
4190 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4191 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4192 "libvirt URI (or one set through an environment variable, see the libvirt "
4193 "documentation for full details).  If you are using the C API directly then "
4194 "it is more flexible to create the libvirt connection object yourself, get "
4195 "the domain object, and call C<guestfs_add_libvirt_dom>."
4196 msgstr ""
4197
4198 # type: textblock
4199 #: ../src/guestfs-actions.pod:82
4200 msgid ""
4201 "The other optional parameters are passed directly through to "
4202 "C<guestfs_add_drive_opts>."
4203 msgstr ""
4204
4205 # type: textblock
4206 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:336
4207 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
4208 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
4209 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
4210 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
4211 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
4212 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
4213 #: ../src/guestfs-actions.pod:2344 ../src/guestfs-actions.pod:2602
4214 #: ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:4338
4215 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4872
4216 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:6194
4217 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6622
4218 #: ../src/guestfs-actions.pod:6635
4219 msgid "On error this function returns -1."
4220 msgstr ""
4221
4222 # type: =head2
4223 #: ../src/guestfs-actions.pod:87
4224 msgid "guestfs_add_domain_va"
4225 msgstr ""
4226
4227 # type: verbatim
4228 #: ../src/guestfs-actions.pod:89
4229 #, no-wrap
4230 msgid ""
4231 " int\n"
4232 " guestfs_add_domain_va (guestfs_h *g,\n"
4233 "                        const char *dom,\n"
4234 "                        va_list args);\n"
4235 "\n"
4236 msgstr ""
4237
4238 # type: textblock
4239 #: ../src/guestfs-actions.pod:94
4240 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
4245 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
4246 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4247 msgstr ""
4248
4249 # type: =head2
4250 #: ../src/guestfs-actions.pod:98
4251 msgid "guestfs_add_domain_argv"
4252 msgstr ""
4253
4254 # type: verbatim
4255 #: ../src/guestfs-actions.pod:100
4256 #, no-wrap
4257 msgid ""
4258 " int\n"
4259 " guestfs_add_domain_argv (guestfs_h *g,\n"
4260 "                          const char *dom,\n"
4261 "                          const struct guestfs_add_domain_argv *optargs);\n"
4262 "\n"
4263 msgstr ""
4264
4265 # type: textblock
4266 #: ../src/guestfs-actions.pod:105
4267 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4268 msgstr ""
4269
4270 # type: =head2
4271 #: ../src/guestfs-actions.pod:109
4272 msgid "guestfs_add_drive"
4273 msgstr ""
4274
4275 # type: verbatim
4276 #: ../src/guestfs-actions.pod:111
4277 #, no-wrap
4278 msgid ""
4279 " int\n"
4280 " guestfs_add_drive (guestfs_h *g,\n"
4281 "                    const char *filename);\n"
4282 "\n"
4283 msgstr ""
4284
4285 # type: textblock
4286 #: ../src/guestfs-actions.pod:115
4287 msgid ""
4288 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4289 "optional parameters, so the disk is added writable, with the format being "
4290 "detected automatically."
4291 msgstr ""
4292
4293 # type: textblock
4294 #: ../src/guestfs-actions.pod:119
4295 msgid ""
4296 "Automatic detection of the format opens you up to a potential security hole "
4297 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4298 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4299 "you should think about replacing calls to this function with calls to "
4300 "C<guestfs_add_drive_opts>, and specifying the format."
4301 msgstr ""
4302
4303 # type: =head2
4304 #: ../src/guestfs-actions.pod:130
4305 msgid "guestfs_add_drive_opts"
4306 msgstr ""
4307
4308 # type: verbatim
4309 #: ../src/guestfs-actions.pod:132
4310 #, no-wrap
4311 msgid ""
4312 " int\n"
4313 " guestfs_add_drive_opts (guestfs_h *g,\n"
4314 "                         const char *filename,\n"
4315 "                         ...);\n"
4316 "\n"
4317 msgstr ""
4318
4319 # type: verbatim
4320 #: ../src/guestfs-actions.pod:142
4321 #, no-wrap
4322 msgid ""
4323 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4324 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4325 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4326 "\n"
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:92
4331 msgid ""
4332 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4333 "The first time you call this function, the disk appears as C</dev/sda>, the "
4334 "second time as C</dev/sdb>, and so on."
4335 msgstr ""
4336
4337 # type: textblock
4338 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:97
4339 msgid ""
4340 "You don't necessarily need to be root when using libguestfs.  However you "
4341 "obviously do need sufficient permissions to access the filename for whatever "
4342 "operations you want to perform (ie. read access if you just want to read the "
4343 "image or write access if you want to modify the image)."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:103
4348 msgid "This call checks that C<filename> exists."
4349 msgstr ""
4350
4351 # type: textblock
4352 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:105
4353 msgid "The optional arguments are:"
4354 msgstr ""
4355
4356 # type: =item
4357 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:109
4358 msgid "C<readonly>"
4359 msgstr ""
4360
4361 # type: textblock
4362 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:111
4363 msgid ""
4364 "If true then the image is treated as read-only.  Writes are still allowed, "
4365 "but they are stored in a temporary snapshot overlay which is discarded at "
4366 "the end.  The disk that you add is not modified."
4367 msgstr ""
4368
4369 # type: =item
4370 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:115
4371 msgid "C<format>"
4372 msgstr ""
4373
4374 # type: textblock
4375 #: ../src/guestfs-actions.pod:171
4376 msgid ""
4377 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4378 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4379 "Possible formats include C<raw> and C<qcow2>."
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:121
4384 msgid ""
4385 "Automatic detection of the format opens you up to a potential security hole "
4386 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4387 "RHBZ#642934.  Specifying the format closes this security hole."
4388 msgstr ""
4389
4390 # type: =item
4391 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:126
4392 msgid "C<iface>"
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:182
4397 msgid ""
4398 "This rarely-used option lets you emulate the behaviour of the deprecated "
4399 "C<guestfs_add_drive_with_if> call (q.v.)"
4400 msgstr ""
4401
4402 # type: textblock
4403 #: ../src/guestfs-actions.pod:189
4404 msgid "(Added in 1.5.23)"
4405 msgstr ""
4406
4407 # type: =head2
4408 #: ../src/guestfs-actions.pod:191
4409 msgid "guestfs_add_drive_opts_va"
4410 msgstr ""
4411
4412 # type: verbatim
4413 #: ../src/guestfs-actions.pod:193
4414 #, no-wrap
4415 msgid ""
4416 " int\n"
4417 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4418 "                            const char *filename,\n"
4419 "                            va_list args);\n"
4420 "\n"
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:198
4425 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4426 msgstr ""
4427
4428 # type: =head2
4429 #: ../src/guestfs-actions.pod:202
4430 msgid "guestfs_add_drive_opts_argv"
4431 msgstr ""
4432
4433 # type: verbatim
4434 #: ../src/guestfs-actions.pod:204
4435 #, no-wrap
4436 msgid ""
4437 " int\n"
4438 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4439 "                              const char *filename,\n"
4440 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4441 "\n"
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:209
4446 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4447 msgstr ""
4448
4449 # type: =head2
4450 #: ../src/guestfs-actions.pod:213
4451 msgid "guestfs_add_drive_ro"
4452 msgstr ""
4453
4454 # type: verbatim
4455 #: ../src/guestfs-actions.pod:215
4456 #, no-wrap
4457 msgid ""
4458 " int\n"
4459 " guestfs_add_drive_ro (guestfs_h *g,\n"
4460 "                       const char *filename);\n"
4461 "\n"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:219
4466 msgid ""
4467 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4468 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4469 "disk is added read-only, with the format being detected automatically."
4470 msgstr ""
4471
4472 # type: textblock
4473 #: ../src/guestfs-actions.pod:226
4474 msgid "(Added in 1.0.38)"
4475 msgstr ""
4476
4477 # type: =head2
4478 #: ../src/guestfs-actions.pod:228
4479 msgid "guestfs_add_drive_ro_with_if"
4480 msgstr ""
4481
4482 # type: verbatim
4483 #: ../src/guestfs-actions.pod:230
4484 #, no-wrap
4485 msgid ""
4486 " int\n"
4487 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4488 "                               const char *filename,\n"
4489 "                               const char *iface);\n"
4490 "\n"
4491 msgstr ""
4492
4493 # type: textblock
4494 #: ../src/guestfs-actions.pod:235
4495 msgid ""
4496 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4497 "QEMU interface emulation to use at run time."
4498 msgstr ""
4499
4500 # type: textblock
4501 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
4502 #: ../src/guestfs-actions.pod:2303
4503 msgid "(Added in 1.0.84)"
4504 msgstr ""
4505
4506 # type: =head2
4507 #: ../src/guestfs-actions.pod:249
4508 msgid "guestfs_add_drive_with_if"
4509 msgstr ""
4510
4511 # type: verbatim
4512 #: ../src/guestfs-actions.pod:251
4513 #, no-wrap
4514 msgid ""
4515 " int\n"
4516 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4517 "                            const char *filename,\n"
4518 "                            const char *iface);\n"
4519 "\n"
4520 msgstr ""
4521
4522 # type: textblock
4523 #: ../src/guestfs-actions.pod:256
4524 msgid ""
4525 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4526 "QEMU interface emulation to use at run time."
4527 msgstr ""
4528
4529 # type: =head2
4530 #: ../src/guestfs-actions.pod:270
4531 msgid "guestfs_aug_clear"
4532 msgstr ""
4533
4534 # type: verbatim
4535 #: ../src/guestfs-actions.pod:272
4536 #, no-wrap
4537 msgid ""
4538 " int\n"
4539 " guestfs_aug_clear (guestfs_h *g,\n"
4540 "                    const char *augpath);\n"
4541 "\n"
4542 msgstr ""
4543
4544 # type: textblock
4545 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:178
4546 msgid ""
4547 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4548 "L<augtool(1)> C<clear> command."
4549 msgstr ""
4550
4551 # type: textblock
4552 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
4553 msgid "(Added in 1.3.4)"
4554 msgstr ""
4555
4556 # type: =head2
4557 #: ../src/guestfs-actions.pod:283
4558 msgid "guestfs_aug_close"
4559 msgstr ""
4560
4561 # type: verbatim
4562 #: ../src/guestfs-actions.pod:285
4563 #, no-wrap
4564 msgid ""
4565 " int\n"
4566 " guestfs_aug_close (guestfs_h *g);\n"
4567 "\n"
4568 msgstr ""
4569
4570 # type: textblock
4571 #: ../src/guestfs-actions.pod:288
4572 msgid ""
4573 "Close the current Augeas handle and free up any resources used by it.  After "
4574 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4575 "any other Augeas functions."
4576 msgstr ""
4577
4578 # type: textblock
4579 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
4580 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
4581 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4582 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
4583 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
4584 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4585 #: ../src/guestfs-actions.pod:4949
4586 msgid "(Added in 0.7)"
4587 msgstr ""
4588
4589 # type: =head2
4590 #: ../src/guestfs-actions.pod:297
4591 msgid "guestfs_aug_defnode"
4592 msgstr ""
4593
4594 # type: verbatim
4595 #: ../src/guestfs-actions.pod:299
4596 #, no-wrap
4597 msgid ""
4598 " struct guestfs_int_bool *\n"
4599 " guestfs_aug_defnode (guestfs_h *g,\n"
4600 "                      const char *name,\n"
4601 "                      const char *expr,\n"
4602 "                      const char *val);\n"
4603 "\n"
4604 msgstr ""
4605
4606 # type: textblock
4607 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:194
4608 msgid ""
4609 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4610 msgstr ""
4611
4612 # type: textblock
4613 #: ../src/guestfs-actions.pod:308
4614 msgid ""
4615 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4616 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4617 "containing that single node."
4618 msgstr ""
4619
4620 # type: textblock
4621 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:201
4622 msgid ""
4623 "On success this returns a pair containing the number of nodes in the "
4624 "nodeset, and a boolean flag if a node was created."
4625 msgstr ""
4626
4627 # type: textblock
4628 #: ../src/guestfs-actions.pod:316
4629 msgid ""
4630 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4631 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4632 msgstr ""
4633
4634 # type: =head2
4635 #: ../src/guestfs-actions.pod:322
4636 msgid "guestfs_aug_defvar"
4637 msgstr ""
4638
4639 # type: verbatim
4640 #: ../src/guestfs-actions.pod:324
4641 #, no-wrap
4642 msgid ""
4643 " int\n"
4644 " guestfs_aug_defvar (guestfs_h *g,\n"
4645 "                     const char *name,\n"
4646 "                     const char *expr);\n"
4647 "\n"
4648 msgstr ""
4649
4650 # type: textblock
4651 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:209
4652 msgid ""
4653 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4654 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4655 msgstr ""
4656
4657 # type: textblock
4658 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:213
4659 msgid ""
4660 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4661 "evaluates to something which is not a nodeset."
4662 msgstr ""
4663
4664 # type: =head2
4665 #: ../src/guestfs-actions.pod:340
4666 msgid "guestfs_aug_get"
4667 msgstr ""
4668
4669 # type: verbatim
4670 #: ../src/guestfs-actions.pod:342
4671 #, no-wrap
4672 msgid ""
4673 " char *\n"
4674 " guestfs_aug_get (guestfs_h *g,\n"
4675 "                  const char *augpath);\n"
4676 "\n"
4677 msgstr ""
4678
4679 # type: textblock
4680 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:220
4681 msgid ""
4682 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4683 "node, the C<value> is returned."
4684 msgstr ""
4685
4686 # type: textblock
4687 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
4688 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
4689 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
4690 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
4691 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
4692 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
4693 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
4694 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
4695 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2268
4696 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2548
4697 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2713
4698 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:2791
4699 #: ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3191
4700 #: ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:3711
4701 #: ../src/guestfs-actions.pod:3821 ../src/guestfs-actions.pod:4484
4702 #: ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4847
4703 #: ../src/guestfs-actions.pod:5025 ../src/guestfs-actions.pod:5074
4704 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5653
4705 #: ../src/guestfs-actions.pod:5670 ../src/guestfs-actions.pod:5694
4706 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6377
4707 #: ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6575
4708 #: ../src/guestfs-actions.pod:6847
4709 msgid ""
4710 "This function returns a string, or NULL on error.  I<The caller must free "
4711 "the returned string after use>."
4712 msgstr ""
4713
4714 # type: =head2
4715 #: ../src/guestfs-actions.pod:354
4716 msgid "guestfs_aug_init"
4717 msgstr ""
4718
4719 # type: verbatim
4720 #: ../src/guestfs-actions.pod:356
4721 #, no-wrap
4722 msgid ""
4723 " int\n"
4724 " guestfs_aug_init (guestfs_h *g,\n"
4725 "                   const char *root,\n"
4726 "                   int flags);\n"
4727 "\n"
4728 msgstr ""
4729
4730 # type: textblock
4731 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4732 msgid ""
4733 "Create a new Augeas handle for editing configuration files.  If there was "
4734 "any previous Augeas handle associated with this guestfs session, then it is "
4735 "closed."
4736 msgstr ""
4737
4738 # type: textblock
4739 #: ../src/guestfs-actions.pod:365
4740 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4745 msgid ""
4746 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4747 msgstr ""
4748
4749 # type: textblock
4750 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4751 msgid ""
4752 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4753 "logical I<or> of the following integers:"
4754 msgstr ""
4755
4756 # type: =item
4757 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4758 msgid "C<AUG_SAVE_BACKUP> = 1"
4759 msgstr ""
4760
4761 # type: textblock
4762 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4763 msgid "Keep the original file with a C<.augsave> extension."
4764 msgstr ""
4765
4766 # type: =item
4767 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4768 msgid "C<AUG_SAVE_NEWFILE> = 2"
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4773 msgid ""
4774 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4775 "original.  Overrides C<AUG_SAVE_BACKUP>."
4776 msgstr ""
4777
4778 # type: =item
4779 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4780 msgid "C<AUG_TYPE_CHECK> = 4"
4781 msgstr ""
4782
4783 # type: textblock
4784 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4785 msgid "Typecheck lenses (can be expensive)."
4786 msgstr ""
4787
4788 # type: =item
4789 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4790 msgid "C<AUG_NO_STDINC> = 8"
4791 msgstr ""
4792
4793 # type: textblock
4794 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4795 msgid "Do not use standard load path for modules."
4796 msgstr ""
4797
4798 # type: =item
4799 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4800 msgid "C<AUG_SAVE_NOOP> = 16"
4801 msgstr ""
4802
4803 # type: textblock
4804 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4805 msgid "Make save a no-op, just record what would have been changed."
4806 msgstr ""
4807
4808 # type: =item
4809 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4810 msgid "C<AUG_NO_LOAD> = 32"
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:400
4815 msgid "Do not load the tree in C<guestfs_aug_init>."
4816 msgstr ""
4817
4818 # type: textblock
4819 #: ../src/guestfs-actions.pod:404
4820 msgid "To close the handle, you can call C<guestfs_aug_close>."
4821 msgstr ""
4822
4823 # type: textblock
4824 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4825 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4826 msgstr ""
4827
4828 # type: =head2
4829 #: ../src/guestfs-actions.pod:412
4830 msgid "guestfs_aug_insert"
4831 msgstr ""
4832
4833 # type: verbatim
4834 #: ../src/guestfs-actions.pod:414
4835 #, no-wrap
4836 msgid ""
4837 " int\n"
4838 " guestfs_aug_insert (guestfs_h *g,\n"
4839 "                     const char *augpath,\n"
4840 "                     const char *label,\n"
4841 "                     int before);\n"
4842 "\n"
4843 msgstr ""
4844
4845 # type: textblock
4846 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4847 msgid ""
4848 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4849 "or after C<path> (depending on the boolean flag C<before>)."
4850 msgstr ""
4851
4852 # type: textblock
4853 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4854 msgid ""
4855 "C<path> must match exactly one existing node in the tree, and C<label> must "
4856 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4857 msgstr ""
4858
4859 # type: =head2
4860 #: ../src/guestfs-actions.pod:432
4861 msgid "guestfs_aug_load"
4862 msgstr ""
4863
4864 # type: verbatim
4865 #: ../src/guestfs-actions.pod:434
4866 #, no-wrap
4867 msgid ""
4868 " int\n"
4869 " guestfs_aug_load (guestfs_h *g);\n"
4870 "\n"
4871 msgstr ""
4872
4873 # type: textblock
4874 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4875 msgid "Load files into the tree."
4876 msgstr ""
4877
4878 # type: textblock
4879 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4880 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4881 msgstr ""
4882
4883 # type: =head2
4884 #: ../src/guestfs-actions.pod:446
4885 msgid "guestfs_aug_ls"
4886 msgstr ""
4887
4888 # type: verbatim
4889 #: ../src/guestfs-actions.pod:448
4890 #, no-wrap
4891 msgid ""
4892 " char **\n"
4893 " guestfs_aug_ls (guestfs_h *g,\n"
4894 "                 const char *augpath);\n"
4895 "\n"
4896 msgstr ""
4897
4898 # type: textblock
4899 #: ../src/guestfs-actions.pod:452
4900 msgid ""
4901 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4902 "sorting the resulting nodes into alphabetical order."
4903 msgstr ""
4904
4905 # type: textblock
4906 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
4907 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
4908 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
4909 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
4910 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
4911 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
4912 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
4913 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
4914 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2754
4915 #: ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:3111
4916 #: ../src/guestfs-actions.pod:3173 ../src/guestfs-actions.pod:3278
4917 #: ../src/guestfs-actions.pod:3683 ../src/guestfs-actions.pod:4299
4918 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4945
4919 #: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5710
4920 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5826
4921 #: ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:5996
4922 #: ../src/guestfs-actions.pod:6468 ../src/guestfs-actions.pod:6488
4923 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6700
4924 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6804
4925 #: ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6869
4926 #: ../src/guestfs-actions.pod:6888
4927 msgid ""
4928 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4929 ">), or NULL if there was an error.  I<The caller must free the strings and "
4930 "the array after use>."
4931 msgstr ""
4932
4933 # type: textblock
4934 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
4935 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
4936 #: ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2965
4937 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3574
4938 #: ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3794
4939 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4303
4940 #: ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:5138
4941 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5164
4942 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:6210
4943 #: ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6452
4944 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6688
4945 msgid "(Added in 0.8)"
4946 msgstr ""
4947
4948 # type: =head2
4949 #: ../src/guestfs-actions.pod:461
4950 msgid "guestfs_aug_match"
4951 msgstr ""
4952
4953 # type: verbatim
4954 #: ../src/guestfs-actions.pod:463
4955 #, no-wrap
4956 msgid ""
4957 " char **\n"
4958 " guestfs_aug_match (guestfs_h *g,\n"
4959 "                    const char *augpath);\n"
4960 "\n"
4961 msgstr ""
4962
4963 # type: textblock
4964 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4965 msgid ""
4966 "Returns a list of paths which match the path expression C<path>.  The "
4967 "returned paths are sufficiently qualified so that they match exactly one "
4968 "node in the current tree."
4969 msgstr ""
4970
4971 # type: =head2
4972 #: ../src/guestfs-actions.pod:477
4973 msgid "guestfs_aug_mv"
4974 msgstr ""
4975
4976 # type: verbatim
4977 #: ../src/guestfs-actions.pod:479
4978 #, no-wrap
4979 msgid ""
4980 " int\n"
4981 " guestfs_aug_mv (guestfs_h *g,\n"
4982 "                 const char *src,\n"
4983 "                 const char *dest);\n"
4984 "\n"
4985 msgstr ""
4986
4987 # type: textblock
4988 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4989 msgid ""
4990 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4991 "C<dest> is overwritten if it exists."
4992 msgstr ""
4993
4994 # type: =head2
4995 #: ../src/guestfs-actions.pod:491
4996 msgid "guestfs_aug_rm"
4997 msgstr ""
4998
4999 # type: verbatim
5000 #: ../src/guestfs-actions.pod:493
5001 #, no-wrap
5002 msgid ""
5003 " int\n"
5004 " guestfs_aug_rm (guestfs_h *g,\n"
5005 "                 const char *augpath);\n"
5006 "\n"
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5011 msgid "Remove C<path> and all of its children."
5012 msgstr ""
5013
5014 # type: textblock
5015 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5016 msgid "On success this returns the number of entries which were removed."
5017 msgstr ""
5018
5019 # type: =head2
5020 #: ../src/guestfs-actions.pod:505
5021 msgid "guestfs_aug_save"
5022 msgstr ""
5023
5024 # type: verbatim
5025 #: ../src/guestfs-actions.pod:507
5026 #, no-wrap
5027 msgid ""
5028 " int\n"
5029 " guestfs_aug_save (guestfs_h *g);\n"
5030 "\n"
5031 msgstr ""
5032
5033 # type: textblock
5034 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5035 msgid "This writes all pending changes to disk."
5036 msgstr ""
5037
5038 # type: textblock
5039 #: ../src/guestfs-actions.pod:512
5040 msgid ""
5041 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5042 "are saved."
5043 msgstr ""
5044
5045 # type: =head2
5046 #: ../src/guestfs-actions.pod:519
5047 msgid "guestfs_aug_set"
5048 msgstr ""
5049
5050 # type: verbatim
5051 #: ../src/guestfs-actions.pod:521
5052 #, no-wrap
5053 msgid ""
5054 " int\n"
5055 " guestfs_aug_set (guestfs_h *g,\n"
5056 "                  const char *augpath,\n"
5057 "                  const char *val);\n"
5058 "\n"
5059 msgstr ""
5060
5061 # type: textblock
5062 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5063 msgid "Set the value associated with C<path> to C<val>."
5064 msgstr ""
5065
5066 # type: textblock
5067 #: ../src/guestfs-actions.pod:528
5068 msgid ""
5069 "In the Augeas API, it is possible to clear a node by setting the value to "
5070 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5071 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5072 msgstr ""
5073
5074 # type: =head2
5075 #: ../src/guestfs-actions.pod:537
5076 msgid "guestfs_available"
5077 msgstr ""
5078
5079 # type: verbatim
5080 #: ../src/guestfs-actions.pod:539
5081 #, no-wrap
5082 msgid ""
5083 " int\n"
5084 " guestfs_available (guestfs_h *g,\n"
5085 "                    char *const *groups);\n"
5086 "\n"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5091 msgid ""
5092 "This command is used to check the availability of some groups of "
5093 "functionality in the appliance, which not all builds of the libguestfs "
5094 "appliance will be able to provide."
5095 msgstr ""
5096
5097 # type: textblock
5098 #: ../src/guestfs-actions.pod:547
5099 msgid ""
5100 "The libguestfs groups, and the functions that those groups correspond to, "
5101 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5102 "runtime by calling C<guestfs_available_all_groups>."
5103 msgstr ""
5104
5105 # type: textblock
5106 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5107 msgid ""
5108 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5109 "\"]> would check for the availability of the Linux inotify functions and "
5110 "Augeas (configuration file editing) functions."
5111 msgstr ""
5112
5113 # type: textblock
5114 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5115 msgid "The command returns no error if I<all> requested groups are available."
5116 msgstr ""
5117
5118 # type: textblock
5119 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5120 msgid ""
5121 "It fails with an error if one or more of the requested groups is unavailable "
5122 "in the appliance."
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5127 msgid ""
5128 "If an unknown group name is included in the list of groups then an error is "
5129 "always returned."
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5134 msgid "I<Notes:>"
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:571
5139 msgid "You must call C<guestfs_launch> before calling this function."
5140 msgstr ""
5141
5142 # type: textblock
5143 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5144 msgid ""
5145 "The reason is because we don't know what groups are supported by the "
5146 "appliance/daemon until it is running and can be queried."
5147 msgstr ""
5148
5149 # type: textblock
5150 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5151 msgid ""
5152 "If a group of functions is available, this does not necessarily mean that "
5153 "they will work.  You still have to check for errors when calling individual "
5154 "API functions even if they are available."
5155 msgstr ""
5156
5157 # type: textblock
5158 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5159 msgid ""
5160 "It is usually the job of distro packagers to build complete functionality "
5161 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5162 "with all requirements satisfied, will support everything."
5163 msgstr ""
5164
5165 # type: textblock
5166 #: ../src/guestfs-actions.pod:593
5167 msgid ""
5168 "This call was added in version C<1.0.80>.  In previous versions of "
5169 "libguestfs all you could do would be to speculatively execute a command to "
5170 "find out if the daemon implemented it.  See also C<guestfs_version>."
5171 msgstr ""
5172
5173 # type: textblock
5174 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5175 msgid "(Added in 1.0.80)"
5176 msgstr ""
5177
5178 # type: =head2
5179 #: ../src/guestfs-actions.pod:604
5180 msgid "guestfs_available_all_groups"
5181 msgstr ""
5182
5183 # type: verbatim
5184 #: ../src/guestfs-actions.pod:606
5185 #, no-wrap
5186 msgid ""
5187 " char **\n"
5188 " guestfs_available_all_groups (guestfs_h *g);\n"
5189 "\n"
5190 msgstr ""
5191
5192 # type: textblock
5193 #: ../src/guestfs-actions.pod:609
5194 msgid ""
5195 "This command returns a list of all optional groups that this daemon knows "
5196 "about.  Note this returns both supported and unsupported groups.  To find "
5197 "out which ones the daemon can actually support you have to call "
5198 "C<guestfs_available> on each member of the returned list."
5199 msgstr ""
5200
5201 # type: textblock
5202 #: ../src/guestfs-actions.pod:615
5203 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:621
5208 msgid "(Added in 1.3.15)"
5209 msgstr ""
5210
5211 # type: =head2
5212 #: ../src/guestfs-actions.pod:623
5213 msgid "guestfs_base64_in"
5214 msgstr ""
5215
5216 # type: verbatim
5217 #: ../src/guestfs-actions.pod:625
5218 #, no-wrap
5219 msgid ""
5220 " int\n"
5221 " guestfs_base64_in (guestfs_h *g,\n"
5222 "                    const char *base64file,\n"
5223 "                    const char *filename);\n"
5224 "\n"
5225 msgstr ""
5226
5227 # type: textblock
5228 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5229 msgid ""
5230 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5231 msgstr ""
5232
5233 # type: textblock
5234 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5235 msgid "(Added in 1.3.5)"
5236 msgstr ""
5237
5238 # type: =head2
5239 #: ../src/guestfs-actions.pod:637
5240 msgid "guestfs_base64_out"
5241 msgstr ""
5242
5243 # type: verbatim
5244 #: ../src/guestfs-actions.pod:639
5245 #, no-wrap
5246 msgid ""
5247 " int\n"
5248 " guestfs_base64_out (guestfs_h *g,\n"
5249 "                     const char *filename,\n"
5250 "                     const char *base64file);\n"
5251 "\n"
5252 msgstr ""
5253
5254 # type: textblock
5255 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5256 msgid ""
5257 "This command downloads the contents of C<filename>, writing it out to local "
5258 "file C<base64file> encoded as base64."
5259 msgstr ""
5260
5261 # type: =head2
5262 #: ../src/guestfs-actions.pod:651
5263 msgid "guestfs_blockdev_flushbufs"
5264 msgstr ""
5265
5266 # type: verbatim
5267 #: ../src/guestfs-actions.pod:653
5268 #, no-wrap
5269 msgid ""
5270 " int\n"
5271 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5272 "                             const char *device);\n"
5273 "\n"
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5278 msgid ""
5279 "This tells the kernel to flush internal buffers associated with C<device>."
5280 msgstr ""
5281
5282 # type: textblock
5283 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5284 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5285 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5286 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5287 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5288 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5289 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5290 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5291 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5292 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5293 msgid "This uses the L<blockdev(8)> command."
5294 msgstr ""
5295
5296 # type: textblock
5297 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5298 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5299 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5300 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5301 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5302 msgid "(Added in 0.9.3)"
5303 msgstr ""
5304
5305 # type: =head2
5306 #: ../src/guestfs-actions.pod:666
5307 msgid "guestfs_blockdev_getbsz"
5308 msgstr ""
5309
5310 # type: verbatim
5311 #: ../src/guestfs-actions.pod:668
5312 #, no-wrap
5313 msgid ""
5314 " int\n"
5315 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5316 "                          const char *device);\n"
5317 "\n"
5318 msgstr ""
5319
5320 # type: textblock
5321 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5322 msgid "This returns the block size of a device."
5323 msgstr ""
5324
5325 # type: textblock
5326 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5327 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5328 msgid ""
5329 "(Note this is different from both I<size in blocks> and I<filesystem block "
5330 "size>)."
5331 msgstr ""
5332
5333 # type: =head2
5334 #: ../src/guestfs-actions.pod:683
5335 msgid "guestfs_blockdev_getro"
5336 msgstr ""
5337
5338 # type: verbatim
5339 #: ../src/guestfs-actions.pod:685
5340 #, no-wrap
5341 msgid ""
5342 " int\n"
5343 " guestfs_blockdev_getro (guestfs_h *g,\n"
5344 "                         const char *device);\n"
5345 "\n"
5346 msgstr ""
5347
5348 # type: textblock
5349 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5350 msgid ""
5351 "Returns a boolean indicating if the block device is read-only (true if read-"
5352 "only, false if not)."
5353 msgstr ""
5354
5355 # type: textblock
5356 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5357 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5358 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5359 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5360 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5361 #: ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2887
5362 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:2916
5363 #: ../src/guestfs-actions.pod:2932 ../src/guestfs-actions.pod:2947
5364 #: ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:2977
5365 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3004
5366 #: ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3034
5367 #: ../src/guestfs-actions.pod:4448
5368 msgid "This function returns a C truth value on success or -1 on error."
5369 msgstr ""
5370
5371 # type: =head2
5372 #: ../src/guestfs-actions.pod:698
5373 msgid "guestfs_blockdev_getsize64"
5374 msgstr ""
5375
5376 # type: verbatim
5377 #: ../src/guestfs-actions.pod:700
5378 #, no-wrap
5379 msgid ""
5380 " int64_t\n"
5381 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5382 "                             const char *device);\n"
5383 "\n"
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5388 msgid "This returns the size of the device in bytes."
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:706
5393 msgid "See also C<guestfs_blockdev_getsz>."
5394 msgstr ""
5395
5396 # type: =head2
5397 #: ../src/guestfs-actions.pod:714
5398 msgid "guestfs_blockdev_getss"
5399 msgstr ""
5400
5401 # type: verbatim
5402 #: ../src/guestfs-actions.pod:716
5403 #, no-wrap
5404 msgid ""
5405 " int\n"
5406 " guestfs_blockdev_getss (guestfs_h *g,\n"
5407 "                         const char *device);\n"
5408 "\n"
5409 msgstr ""
5410
5411 # type: textblock
5412 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5413 msgid ""
5414 "This returns the size of sectors on a block device.  Usually 512, but can be "
5415 "larger for modern devices."
5416 msgstr ""
5417
5418 # type: textblock
5419 #: ../src/guestfs-actions.pod:723
5420 msgid ""
5421 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5422 "that)."
5423 msgstr ""
5424
5425 # type: =head2
5426 #: ../src/guestfs-actions.pod:732
5427 msgid "guestfs_blockdev_getsz"
5428 msgstr ""
5429
5430 # type: verbatim
5431 #: ../src/guestfs-actions.pod:734
5432 #, no-wrap
5433 msgid ""
5434 " int64_t\n"
5435 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5436 "                         const char *device);\n"
5437 "\n"
5438 msgstr ""
5439
5440 # type: textblock
5441 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5442 msgid ""
5443 "This returns the size of the device in units of 512-byte sectors (even if "
5444 "the sectorsize isn't 512 bytes ... weird)."
5445 msgstr ""
5446
5447 # type: textblock
5448 #: ../src/guestfs-actions.pod:741
5449 msgid ""
5450 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5451 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5452 msgstr ""
5453
5454 # type: =head2
5455 #: ../src/guestfs-actions.pod:751
5456 msgid "guestfs_blockdev_rereadpt"
5457 msgstr ""
5458
5459 # type: verbatim
5460 #: ../src/guestfs-actions.pod:753
5461 #, no-wrap
5462 msgid ""
5463 " int\n"
5464 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5465 "                            const char *device);\n"
5466 "\n"
5467 msgstr ""
5468
5469 # type: textblock
5470 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5471 msgid "Reread the partition table on C<device>."
5472 msgstr ""
5473
5474 # type: =head2
5475 #: ../src/guestfs-actions.pod:765
5476 msgid "guestfs_blockdev_setbsz"
5477 msgstr ""
5478
5479 # type: verbatim
5480 #: ../src/guestfs-actions.pod:767
5481 #, no-wrap
5482 msgid ""
5483 " int\n"
5484 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5485 "                          const char *device,\n"
5486 "                          int blocksize);\n"
5487 "\n"
5488 msgstr ""
5489
5490 # type: textblock
5491 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5492 msgid "This sets the block size of a device."
5493 msgstr ""
5494
5495 # type: =head2
5496 #: ../src/guestfs-actions.pod:783
5497 msgid "guestfs_blockdev_setro"
5498 msgstr ""
5499
5500 # type: verbatim
5501 #: ../src/guestfs-actions.pod:785
5502 #, no-wrap
5503 msgid ""
5504 " int\n"
5505 " guestfs_blockdev_setro (guestfs_h *g,\n"
5506 "                         const char *device);\n"
5507 "\n"
5508 msgstr ""
5509
5510 # type: textblock
5511 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5512 msgid "Sets the block device named C<device> to read-only."
5513 msgstr ""
5514
5515 # type: =head2
5516 #: ../src/guestfs-actions.pod:797
5517 msgid "guestfs_blockdev_setrw"
5518 msgstr ""
5519
5520 # type: verbatim
5521 #: ../src/guestfs-actions.pod:799
5522 #, no-wrap
5523 msgid ""
5524 " int\n"
5525 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5526 "                         const char *device);\n"
5527 "\n"
5528 msgstr ""
5529
5530 # type: textblock
5531 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5532 msgid "Sets the block device named C<device> to read-write."
5533 msgstr ""
5534
5535 # type: =head2
5536 #: ../src/guestfs-actions.pod:811
5537 msgid "guestfs_case_sensitive_path"
5538 msgstr ""
5539
5540 # type: verbatim
5541 #: ../src/guestfs-actions.pod:813
5542 #, no-wrap
5543 msgid ""
5544 " char *\n"
5545 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5546 "                              const char *path);\n"
5547 "\n"
5548 msgstr ""
5549
5550 # type: textblock
5551 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5552 msgid ""
5553 "This can be used to resolve case insensitive paths on a filesystem which is "
5554 "case sensitive.  The use case is to resolve paths which you have read from "
5555 "Windows configuration files or the Windows Registry, to the true path."
5556 msgstr ""
5557
5558 # type: textblock
5559 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5560 msgid ""
5561 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5562 "(and probably others), which is that although the underlying filesystem is "
5563 "case-insensitive, the driver exports the filesystem to Linux as case-"
5564 "sensitive."
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5569 msgid ""
5570 "One consequence of this is that special directories such as C<c:\\windows> "
5571 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5572 "precise details of how they were created.  In Windows itself this would not "
5573 "be a problem."
5574 msgstr ""
5575
5576 # type: textblock
5577 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5578 msgid ""
5579 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5580 "#posixfilenames1>"
5581 msgstr ""
5582
5583 # type: textblock
5584 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5585 msgid ""
5586 "This function resolves the true case of each element in the path and returns "
5587 "the case-sensitive path."
5588 msgstr ""
5589
5590 # type: textblock
5591 #: ../src/guestfs-actions.pod:839
5592 msgid ""
5593 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5594 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5595 "how the directories were originally created under Windows)."
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5600 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5601 msgstr ""
5602
5603 # type: textblock
5604 #: ../src/guestfs-actions.pod:847
5605 msgid "See also C<guestfs_realpath>."
5606 msgstr ""
5607
5608 # type: textblock
5609 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6380
5610 msgid "(Added in 1.0.75)"
5611 msgstr ""
5612
5613 # type: =head2
5614 #: ../src/guestfs-actions.pod:854
5615 msgid "guestfs_cat"
5616 msgstr ""
5617
5618 # type: verbatim
5619 #: ../src/guestfs-actions.pod:856
5620 #, no-wrap
5621 msgid ""
5622 " char *\n"
5623 " guestfs_cat (guestfs_h *g,\n"
5624 "              const char *path);\n"
5625 "\n"
5626 msgstr ""
5627
5628 # type: textblock
5629 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:4935
5630 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3267
5631 msgid "Return the contents of the file named C<path>."
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:862
5636 msgid ""
5637 "Note that this function cannot correctly handle binary files (specifically, "
5638 "files containing C<\\0> character which is treated as end of string).  For "
5639 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5640 "functions which have a more complex interface."
5641 msgstr ""
5642
5643 # type: textblock
5644 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5645 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5646 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5647 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5648 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5649 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5650 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5651 #: ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4743
5652 #: ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4900
5653 #: ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:5775
5654 #: ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:5976
5655 #: ../src/guestfs-actions.pod:6000 ../src/guestfs-actions.pod:6652
5656 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6704
5657 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6808
5658 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6873
5659 #: ../src/guestfs-actions.pod:6892 ../fish/guestfish-actions.pod:582
5660 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5661 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5662 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5663 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5664 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5665 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5666 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3137
5667 #: ../fish/guestfish-actions.pod:3152 ../fish/guestfish-actions.pod:3228
5668 #: ../fish/guestfish-actions.pod:3245 ../fish/guestfish-actions.pod:3260
5669 #: ../fish/guestfish-actions.pod:3843 ../fish/guestfish-actions.pod:3889
5670 #: ../fish/guestfish-actions.pod:3974 ../fish/guestfish-actions.pod:3989
5671 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4417
5672 #: ../fish/guestfish-actions.pod:4434 ../fish/guestfish-actions.pod:4444
5673 #: ../fish/guestfish-actions.pod:4492 ../fish/guestfish-actions.pod:4502
5674 #: ../fish/guestfish-actions.pod:4531 ../fish/guestfish-actions.pod:4541
5675 msgid ""
5676 "Because of the message protocol, there is a transfer limit of somewhere "
5677 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3115
5682 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3194
5683 #: ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3687
5684 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:4823
5685 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:6539
5686 #: ../src/guestfs-actions.pod:6553
5687 msgid "(Added in 0.4)"
5688 msgstr ""
5689
5690 # type: =head2
5691 #: ../src/guestfs-actions.pod:875
5692 msgid "guestfs_checksum"
5693 msgstr ""
5694
5695 # type: verbatim
5696 #: ../src/guestfs-actions.pod:877
5697 #, no-wrap
5698 msgid ""
5699 " char *\n"
5700 " guestfs_checksum (guestfs_h *g,\n"
5701 "                   const char *csumtype,\n"
5702 "                   const char *path);\n"
5703 "\n"
5704 msgstr ""
5705
5706 # type: textblock
5707 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5708 msgid ""
5709 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5710 msgstr ""
5711
5712 # type: textblock
5713 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5714 msgid ""
5715 "The type of checksum to compute is given by the C<csumtype> parameter which "
5716 "must have one of the following values:"
5717 msgstr ""
5718
5719 # type: =item
5720 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5721 msgid "C<crc>"
5722 msgstr ""
5723
5724 # type: textblock
5725 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5726 msgid ""
5727 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5728 "C<cksum> command."
5729 msgstr ""
5730
5731 # type: =item
5732 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5733 msgid "C<md5>"
5734 msgstr ""
5735
5736 # type: textblock
5737 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5738 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5739 msgstr ""
5740
5741 # type: =item
5742 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5743 msgid "C<sha1>"
5744 msgstr ""
5745
5746 # type: textblock
5747 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5748 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5749 msgstr ""
5750
5751 # type: =item
5752 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5753 msgid "C<sha224>"
5754 msgstr ""
5755
5756 # type: textblock
5757 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5758 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5759 msgstr ""
5760
5761 # type: =item
5762 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5763 msgid "C<sha256>"
5764 msgstr ""
5765
5766 # type: textblock
5767 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5768 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5769 msgstr ""
5770
5771 # type: =item
5772 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5773 msgid "C<sha384>"
5774 msgstr ""
5775
5776 # type: textblock
5777 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5778 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5779 msgstr ""
5780
5781 # type: =item
5782 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5783 msgid "C<sha512>"
5784 msgstr ""
5785
5786 # type: textblock
5787 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5788 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5789 msgstr ""
5790
5791 # type: textblock
5792 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5793 msgid "The checksum is returned as a printable string."
5794 msgstr ""
5795
5796 # type: textblock
5797 #: ../src/guestfs-actions.pod:923
5798 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:925
5803 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5804 msgstr ""
5805
5806 # type: textblock
5807 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
5808 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2889
5809 #: ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2979
5810 #: ../src/guestfs-actions.pod:3006 ../src/guestfs-actions.pod:6241
5811 msgid "(Added in 1.0.2)"
5812 msgstr ""
5813
5814 # type: =head2
5815 #: ../src/guestfs-actions.pod:932
5816 msgid "guestfs_checksum_device"
5817 msgstr ""
5818
5819 # type: verbatim
5820 #: ../src/guestfs-actions.pod:934
5821 #, no-wrap
5822 msgid ""
5823 " char *\n"
5824 " guestfs_checksum_device (guestfs_h *g,\n"
5825 "                          const char *csumtype,\n"
5826 "                          const char *device);\n"
5827 "\n"
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:939
5832 msgid ""
5833 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5834 "device named C<device>.  For the types of checksums supported see the "
5835 "C<guestfs_checksum> command."
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4354
5840 #: ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4450
5841 #: ../src/guestfs-actions.pod:4468 ../src/guestfs-actions.pod:4644
5842 #: ../src/guestfs-actions.pod:6155 ../src/guestfs-actions.pod:6169
5843 #: ../src/guestfs-actions.pod:6565
5844 msgid "(Added in 1.3.2)"
5845 msgstr ""
5846
5847 # type: =head2
5848 #: ../src/guestfs-actions.pod:948
5849 msgid "guestfs_checksums_out"
5850 msgstr ""
5851
5852 # type: verbatim
5853 #: ../src/guestfs-actions.pod:950
5854 #, no-wrap
5855 msgid ""
5856 " int\n"
5857 " guestfs_checksums_out (guestfs_h *g,\n"
5858 "                        const char *csumtype,\n"
5859 "                        const char *directory,\n"
5860 "                        const char *sumsfile);\n"
5861 "\n"
5862 msgstr ""
5863
5864 # type: textblock
5865 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5866 msgid ""
5867 "This command computes the checksums of all regular files in C<directory> and "
5868 "then emits a list of those checksums to the local output file C<sumsfile>."
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5873 msgid ""
5874 "This can be used for verifying the integrity of a virtual machine.  However "
5875 "to be properly secure you should pay attention to the output of the checksum "
5876 "command (it uses the ones from GNU coreutils).  In particular when the "
5877 "filename is not printable, coreutils uses a special backslash syntax.  For "
5878 "more information, see the GNU coreutils info file."
5879 msgstr ""
5880
5881 # type: textblock
5882 #: ../src/guestfs-actions.pod:970
5883 msgid "(Added in 1.3.7)"
5884 msgstr ""
5885
5886 # type: =head2
5887 #: ../src/guestfs-actions.pod:972
5888 msgid "guestfs_chmod"
5889 msgstr ""
5890
5891 # type: verbatim
5892 #: ../src/guestfs-actions.pod:974
5893 #, no-wrap
5894 msgid ""
5895 " int\n"
5896 " guestfs_chmod (guestfs_h *g,\n"
5897 "                int mode,\n"
5898 "                const char *path);\n"
5899 "\n"
5900 msgstr ""
5901
5902 # type: textblock
5903 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5904 msgid ""
5905 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5906 "supported."
5907 msgstr ""
5908
5909 # type: textblock
5910 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5911 msgid ""
5912 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5913 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5914 "C<700>."
5915 msgstr ""
5916
5917 # type: textblock
5918 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:3938
5919 #: ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4072
5920 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:671
5921 #: ../fish/guestfish-actions.pod:2627 ../fish/guestfish-actions.pod:2712
5922 #: ../fish/guestfish-actions.pod:2722 ../fish/guestfish-actions.pod:2732
5923 msgid "The mode actually set is affected by the umask."
5924 msgstr ""
5925
5926 # type: =head2
5927 #: ../src/guestfs-actions.pod:992
5928 msgid "guestfs_chown"
5929 msgstr ""
5930
5931 # type: verbatim
5932 #: ../src/guestfs-actions.pod:994
5933 #, no-wrap
5934 msgid ""
5935 " int\n"
5936 " guestfs_chown (guestfs_h *g,\n"
5937 "                int owner,\n"
5938 "                int group,\n"
5939 "                const char *path);\n"
5940 "\n"
5941 msgstr ""
5942
5943 # type: textblock
5944 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5945 msgid "Change the file owner to C<owner> and group to C<group>."
5946 msgstr ""
5947
5948 # type: textblock
5949 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3076
5950 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2105
5951 msgid ""
5952 "Only numeric uid and gid are supported.  If you want to use names, you will "
5953 "need to locate and parse the password file yourself (Augeas support makes "
5954 "this relatively easy)."
5955 msgstr ""
5956
5957 # type: =head2
5958 #: ../src/guestfs-actions.pod:1010
5959 msgid "guestfs_command"
5960 msgstr ""
5961
5962 # type: verbatim
5963 #: ../src/guestfs-actions.pod:1012
5964 #, no-wrap
5965 msgid ""
5966 " char *\n"
5967 " guestfs_command (guestfs_h *g,\n"
5968 "                  char *const *arguments);\n"
5969 "\n"
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5974 msgid ""
5975 "This call runs a command from the guest filesystem.  The filesystem must be "
5976 "mounted, and must contain a compatible operating system (ie. something "
5977 "Linux, with the same or compatible processor architecture)."
5978 msgstr ""
5979
5980 # type: textblock
5981 #: ../src/guestfs-actions.pod:1021
5982 msgid ""
5983 "The single parameter is an argv-style list of arguments.  The first element "
5984 "is the name of the program to run.  Subsequent elements are parameters.  The "
5985 "list must be non-empty (ie. must contain a program name).  Note that the "
5986 "command runs directly, and is I<not> invoked via the shell (see "
5987 "C<guestfs_sh>)."
5988 msgstr ""
5989
5990 # type: textblock
5991 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5992 msgid "The return value is anything printed to I<stdout> by the command."
5993 msgstr ""
5994
5995 # type: textblock
5996 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5997 msgid ""
5998 "If the command returns a non-zero exit status, then this function returns an "
5999 "error message.  The error message string is the content of I<stderr> from "
6000 "the command."
6001 msgstr ""
6002
6003 # type: textblock
6004 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6005 msgid ""
6006 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6007 "bin>.  If you require a program from another location, you should provide "
6008 "the full path in the first parameter."
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6013 msgid ""
6014 "Shared libraries and data files required by the program must be available on "
6015 "filesystems which are mounted in the correct places.  It is the caller's "
6016 "responsibility to ensure all filesystems that are needed are mounted at the "
6017 "right locations."
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6022 #: ../src/guestfs-actions.pod:1535
6023 msgid "(Added in 0.9.1)"
6024 msgstr ""
6025
6026 # type: =head2
6027 #: ../src/guestfs-actions.pod:1054
6028 msgid "guestfs_command_lines"
6029 msgstr ""
6030
6031 # type: verbatim
6032 #: ../src/guestfs-actions.pod:1056
6033 #, no-wrap
6034 msgid ""
6035 " char **\n"
6036 " guestfs_command_lines (guestfs_h *g,\n"
6037 "                        char *const *arguments);\n"
6038 "\n"
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:1060
6043 msgid ""
6044 "This is the same as C<guestfs_command>, but splits the result into a list of "
6045 "lines."
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../src/guestfs-actions.pod:1063
6050 msgid "See also: C<guestfs_sh_lines>"
6051 msgstr ""
6052
6053 # type: =head2
6054 #: ../src/guestfs-actions.pod:1074
6055 msgid "guestfs_config"
6056 msgstr ""
6057
6058 # type: verbatim
6059 #: ../src/guestfs-actions.pod:1076
6060 #, no-wrap
6061 msgid ""
6062 " int\n"
6063 " guestfs_config (guestfs_h *g,\n"
6064 "                 const char *qemuparam,\n"
6065 "                 const char *qemuvalue);\n"
6066 "\n"
6067 msgstr ""
6068
6069 # type: textblock
6070 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6071 msgid ""
6072 "This can be used to add arbitrary qemu command line parameters of the form "
6073 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6074 "setting some parameters which would interfere with parameters that we use."
6075 msgstr ""
6076
6077 # type: textblock
6078 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6079 msgid "The first character of C<param> string must be a C<-> (dash)."
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6084 msgid "C<value> can be NULL."
6085 msgstr ""
6086
6087 # type: =head2
6088 #: ../src/guestfs-actions.pod:1094
6089 msgid "guestfs_copy_size"
6090 msgstr ""
6091
6092 # type: verbatim
6093 #: ../src/guestfs-actions.pod:1096
6094 #, no-wrap
6095 msgid ""
6096 " int\n"
6097 " guestfs_copy_size (guestfs_h *g,\n"
6098 "                    const char *src,\n"
6099 "                    const char *dest,\n"
6100 "                    int64_t size);\n"
6101 "\n"
6102 msgstr ""
6103
6104 # type: textblock
6105 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6106 msgid ""
6107 "This command copies exactly C<size> bytes from one source device or file "
6108 "C<src> to another destination device or file C<dest>."
6109 msgstr ""
6110
6111 # type: textblock
6112 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6113 msgid ""
6114 "Note this will fail if the source is too short or if the destination is not "
6115 "large enough."
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6120 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6121 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6744
6122 #: ../src/guestfs-actions.pod:6763
6123 msgid ""
6124 "This long-running command can generate progress notification messages so "
6125 "that the caller can display a progress bar or indicator.  To receive these "
6126 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6127 "guestfs_set_progress_callback>."
6128 msgstr ""
6129
6130 # type: textblock
6131 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3714
6132 #: ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:6472
6133 #: ../src/guestfs-actions.pod:6492 ../src/guestfs-actions.pod:6578
6134 msgid "(Added in 1.0.87)"
6135 msgstr ""
6136
6137 # type: =head2
6138 #: ../src/guestfs-actions.pod:1117
6139 msgid "guestfs_cp"
6140 msgstr ""
6141
6142 # type: verbatim
6143 #: ../src/guestfs-actions.pod:1119
6144 #, no-wrap
6145 msgid ""
6146 " int\n"
6147 " guestfs_cp (guestfs_h *g,\n"
6148 "             const char *src,\n"
6149 "             const char *dest);\n"
6150 "\n"
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6155 msgid ""
6156 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6157 "destination filename or destination directory."
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6162 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6163 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4317
6164 #: ../src/guestfs-actions.pod:4694
6165 msgid "(Added in 1.0.18)"
6166 msgstr ""
6167
6168 # type: =head2
6169 #: ../src/guestfs-actions.pod:1131
6170 msgid "guestfs_cp_a"
6171 msgstr ""
6172
6173 # type: verbatim
6174 #: ../src/guestfs-actions.pod:1133
6175 #, no-wrap
6176 msgid ""
6177 " int\n"
6178 " guestfs_cp_a (guestfs_h *g,\n"
6179 "               const char *src,\n"
6180 "               const char *dest);\n"
6181 "\n"
6182 msgstr ""
6183
6184 # type: textblock
6185 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6186 msgid ""
6187 "This copies a file or directory from C<src> to C<dest> recursively using the "
6188 "C<cp -a> command."
6189 msgstr ""
6190
6191 # type: =head2
6192 #: ../src/guestfs-actions.pod:1145
6193 msgid "guestfs_dd"
6194 msgstr ""
6195
6196 # type: verbatim
6197 #: ../src/guestfs-actions.pod:1147
6198 #, no-wrap
6199 msgid ""
6200 " int\n"
6201 " guestfs_dd (guestfs_h *g,\n"
6202 "             const char *src,\n"
6203 "             const char *dest);\n"
6204 "\n"
6205 msgstr ""
6206
6207 # type: textblock
6208 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6209 msgid ""
6210 "This command copies from one source device or file C<src> to another "
6211 "destination device or file C<dest>.  Normally you would use this to copy to "
6212 "or from a device or partition, for example to duplicate a filesystem."
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1157
6217 msgid ""
6218 "If the destination is a device, it must be as large or larger than the "
6219 "source file or device, otherwise the copy will fail.  This command cannot do "
6220 "partial copies (see C<guestfs_copy_size>)."
6221 msgstr ""
6222
6223 # type: =head2
6224 #: ../src/guestfs-actions.pod:1165
6225 msgid "guestfs_df"
6226 msgstr ""
6227
6228 # type: verbatim
6229 #: ../src/guestfs-actions.pod:1167
6230 #, no-wrap
6231 msgid ""
6232 " char *\n"
6233 " guestfs_df (guestfs_h *g);\n"
6234 "\n"
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6239 msgid "This command runs the C<df> command to report disk space used."
6240 msgstr ""
6241
6242 # type: textblock
6243 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6244 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6245 msgid ""
6246 "This command is mostly useful for interactive sessions.  It is I<not> "
6247 "intended that you try to parse the output string.  Use C<statvfs> from "
6248 "programs."
6249 msgstr ""
6250
6251 # type: textblock
6252 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6253 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6254 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6255 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:4217
6256 #: ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6003
6257 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6624
6258 #: ../src/guestfs-actions.pod:6637
6259 msgid "(Added in 1.0.54)"
6260 msgstr ""
6261
6262 # type: =head2
6263 #: ../src/guestfs-actions.pod:1181
6264 msgid "guestfs_df_h"
6265 msgstr ""
6266
6267 # type: verbatim
6268 #: ../src/guestfs-actions.pod:1183
6269 #, no-wrap
6270 msgid ""
6271 " char *\n"
6272 " guestfs_df_h (guestfs_h *g);\n"
6273 "\n"
6274 msgstr ""
6275
6276 # type: textblock
6277 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6278 msgid ""
6279 "This command runs the C<df -h> command to report disk space used in human-"
6280 "readable format."
6281 msgstr ""
6282
6283 # type: =head2
6284 #: ../src/guestfs-actions.pod:1198
6285 msgid "guestfs_dmesg"
6286 msgstr ""
6287
6288 # type: verbatim
6289 #: ../src/guestfs-actions.pod:1200
6290 #, no-wrap
6291 msgid ""
6292 " char *\n"
6293 " guestfs_dmesg (guestfs_h *g);\n"
6294 "\n"
6295 msgstr ""
6296
6297 # type: textblock
6298 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6299 msgid ""
6300 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6301 "This is sometimes useful for extended debugging of problems."
6302 msgstr ""
6303
6304 # type: textblock
6305 #: ../src/guestfs-actions.pod:1207
6306 msgid ""
6307 "Another way to get the same information is to enable verbose messages with "
6308 "C<guestfs_set_verbose> or by setting the environment variable "
6309 "C<LIBGUESTFS_DEBUG=1> before running the program."
6310 msgstr ""
6311
6312 # type: =head2
6313 #: ../src/guestfs-actions.pod:1217
6314 msgid "guestfs_download"
6315 msgstr ""
6316
6317 # type: verbatim
6318 #: ../src/guestfs-actions.pod:1219
6319 #, no-wrap
6320 msgid ""
6321 " int\n"
6322 " guestfs_download (guestfs_h *g,\n"
6323 "                   const char *remotefilename,\n"
6324 "                   const char *filename);\n"
6325 "\n"
6326 msgstr ""
6327
6328 # type: textblock
6329 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6330 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6331 msgid ""
6332 "Download file C<remotefilename> and save it as C<filename> on the local "
6333 "machine."
6334 msgstr ""
6335
6336 # type: textblock
6337 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6235
6338 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4147
6339 msgid "C<filename> can also be a named pipe."
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1229
6344 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6345 msgstr ""
6346
6347 # type: =head2
6348 #: ../src/guestfs-actions.pod:1240
6349 msgid "guestfs_download_offset"
6350 msgstr ""
6351
6352 # type: verbatim
6353 #: ../src/guestfs-actions.pod:1242
6354 #, no-wrap
6355 msgid ""
6356 " int\n"
6357 " guestfs_download_offset (guestfs_h *g,\n"
6358 "                          const char *remotefilename,\n"
6359 "                          const char *filename,\n"
6360 "                          int64_t offset,\n"
6361 "                          int64_t size);\n"
6362 "\n"
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6367 msgid ""
6368 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6369 "region must be within the file or device)."
6370 msgstr ""
6371
6372 # type: textblock
6373 #: ../src/guestfs-actions.pod:1255
6374 msgid ""
6375 "Note that there is no limit on the amount of data that can be downloaded "
6376 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6377 "full amount unless an error occurs."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1260
6382 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6270
6387 msgid "(Added in 1.5.17)"
6388 msgstr ""
6389
6390 # type: =head2
6391 #: ../src/guestfs-actions.pod:1271
6392 msgid "guestfs_drop_caches"
6393 msgstr ""
6394
6395 # type: verbatim
6396 #: ../src/guestfs-actions.pod:1273
6397 #, no-wrap
6398 msgid ""
6399 " int\n"
6400 " guestfs_drop_caches (guestfs_h *g,\n"
6401 "                      int whattodrop);\n"
6402 "\n"
6403 msgstr ""
6404
6405 # type: textblock
6406 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6407 msgid ""
6408 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6409 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6410 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6415 msgid "Setting C<whattodrop> to 3 should drop everything."
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6420 msgid ""
6421 "This automatically calls L<sync(2)> before the operation, so that the "
6422 "maximum guest memory is freed."
6423 msgstr ""
6424
6425 # type: =head2
6426 #: ../src/guestfs-actions.pod:1291
6427 msgid "guestfs_du"
6428 msgstr ""
6429
6430 # type: verbatim
6431 #: ../src/guestfs-actions.pod:1293
6432 #, no-wrap
6433 msgid ""
6434 " int64_t\n"
6435 " guestfs_du (guestfs_h *g,\n"
6436 "             const char *path);\n"
6437 "\n"
6438 msgstr ""
6439
6440 # type: textblock
6441 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6442 msgid ""
6443 "This command runs the C<du -s> command to estimate file space usage for "
6444 "C<path>."
6445 msgstr ""
6446
6447 # type: textblock
6448 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6449 msgid ""
6450 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6451 "estimate includes the contents of the directory and all subdirectories "
6452 "(recursively)."
6453 msgstr ""
6454
6455 # type: textblock
6456 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6457 msgid ""
6458 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6459 msgstr ""
6460
6461 # type: =head2
6462 #: ../src/guestfs-actions.pod:1311
6463 msgid "guestfs_e2fsck_f"
6464 msgstr ""
6465
6466 # type: verbatim
6467 #: ../src/guestfs-actions.pod:1313
6468 #, no-wrap
6469 msgid ""
6470 " int\n"
6471 " guestfs_e2fsck_f (guestfs_h *g,\n"
6472 "                   const char *device);\n"
6473 "\n"
6474 msgstr ""
6475
6476 # type: textblock
6477 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6478 msgid ""
6479 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6480 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6481 "clean (C<-f>)."
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1321
6486 msgid ""
6487 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6488 "Normally you should use C<guestfs_fsck>."
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1326
6493 msgid "(Added in 1.0.29)"
6494 msgstr ""
6495
6496 # type: =head2
6497 #: ../src/guestfs-actions.pod:1328
6498 msgid "guestfs_echo_daemon"
6499 msgstr ""
6500
6501 # type: verbatim
6502 #: ../src/guestfs-actions.pod:1330
6503 #, no-wrap
6504 msgid ""
6505 " char *\n"
6506 " guestfs_echo_daemon (guestfs_h *g,\n"
6507 "                      char *const *words);\n"
6508 "\n"
6509 msgstr ""
6510
6511 # type: textblock
6512 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6513 msgid ""
6514 "This command concatenates the list of C<words> passed with single spaces "
6515 "between them and returns the resulting string."
6516 msgstr ""
6517
6518 # type: textblock
6519 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6520 msgid "You can use this command to test the connection through to the daemon."
6521 msgstr ""
6522
6523 # type: textblock
6524 #: ../src/guestfs-actions.pod:1339
6525 msgid "See also C<guestfs_ping_daemon>."
6526 msgstr ""
6527
6528 # type: textblock
6529 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6530 #: ../src/guestfs-actions.pod:5483
6531 msgid "(Added in 1.0.69)"
6532 msgstr ""
6533
6534 # type: =head2
6535 #: ../src/guestfs-actions.pod:1346
6536 msgid "guestfs_egrep"
6537 msgstr ""
6538
6539 # type: verbatim
6540 #: ../src/guestfs-actions.pod:1348
6541 #, no-wrap
6542 msgid ""
6543 " char **\n"
6544 " guestfs_egrep (guestfs_h *g,\n"
6545 "                const char *regex,\n"
6546 "                const char *path);\n"
6547 "\n"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6552 msgid ""
6553 "This calls the external C<egrep> program and returns the matching lines."
6554 msgstr ""
6555
6556 # type: textblock
6557 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6558 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6559 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6560 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6561 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6562 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6563 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3207
6564 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3234
6565 #: ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:4152
6566 #: ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5077
6567 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5859
6568 #: ../src/guestfs-actions.pod:5872 ../src/guestfs-actions.pod:5885
6569 #: ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5920
6570 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5946
6571 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:6726
6572 #: ../src/guestfs-actions.pod:6811 ../src/guestfs-actions.pod:6830
6573 #: ../src/guestfs-actions.pod:6876 ../src/guestfs-actions.pod:6895
6574 msgid "(Added in 1.0.66)"
6575 msgstr ""
6576
6577 # type: =head2
6578 #: ../src/guestfs-actions.pod:1365
6579 msgid "guestfs_egrepi"
6580 msgstr ""
6581
6582 # type: verbatim
6583 #: ../src/guestfs-actions.pod:1367
6584 #, no-wrap
6585 msgid ""
6586 " char **\n"
6587 " guestfs_egrepi (guestfs_h *g,\n"
6588 "                 const char *regex,\n"
6589 "                 const char *path);\n"
6590 "\n"
6591 msgstr ""
6592
6593 # type: textblock
6594 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6595 msgid ""
6596 "This calls the external C<egrep -i> program and returns the matching lines."
6597 msgstr ""
6598
6599 # type: =head2
6600 #: ../src/guestfs-actions.pod:1384
6601 msgid "guestfs_equal"
6602 msgstr ""
6603
6604 # type: verbatim
6605 #: ../src/guestfs-actions.pod:1386
6606 #, no-wrap
6607 msgid ""
6608 " int\n"
6609 " guestfs_equal (guestfs_h *g,\n"
6610 "                const char *file1,\n"
6611 "                const char *file2);\n"
6612 "\n"
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6617 msgid ""
6618 "This compares the two files C<file1> and C<file2> and returns true if their "
6619 "content is exactly equal, or false otherwise."
6620 msgstr ""
6621
6622 # type: textblock
6623 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6624 msgid "The external L<cmp(1)> program is used for the comparison."
6625 msgstr ""
6626
6627 # type: =head2
6628 #: ../src/guestfs-actions.pod:1400
6629 msgid "guestfs_exists"
6630 msgstr ""
6631
6632 # type: verbatim
6633 #: ../src/guestfs-actions.pod:1402
6634 #, no-wrap
6635 msgid ""
6636 " int\n"
6637 " guestfs_exists (guestfs_h *g,\n"
6638 "                 const char *path);\n"
6639 "\n"
6640 msgstr ""
6641
6642 # type: textblock
6643 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6644 msgid ""
6645 "This returns C<true> if and only if there is a file, directory (or anything) "
6646 "with the given C<path> name."
6647 msgstr ""
6648
6649 # type: textblock
6650 #: ../src/guestfs-actions.pod:1409
6651 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6652 msgstr ""
6653
6654 # type: =head2
6655 #: ../src/guestfs-actions.pod:1415
6656 msgid "guestfs_fallocate"
6657 msgstr ""
6658
6659 # type: verbatim
6660 #: ../src/guestfs-actions.pod:1417
6661 #, no-wrap
6662 msgid ""
6663 " int\n"
6664 " guestfs_fallocate (guestfs_h *g,\n"
6665 "                    const char *path,\n"
6666 "                    int len);\n"
6667 "\n"
6668 msgstr ""
6669
6670 # type: textblock
6671 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6672 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6673 msgid ""
6674 "This command preallocates a file (containing zero bytes) named C<path> of "
6675 "size C<len> bytes.  If the file exists already, it is overwritten."
6676 msgstr ""
6677
6678 # type: textblock
6679 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6680 msgid ""
6681 "Do not confuse this with the guestfish-specific C<alloc> command which "
6682 "allocates a file in the host and attaches it as a device."
6683 msgstr ""
6684
6685 # type: textblock
6686 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6687 msgid ""
6688 "This function is deprecated.  In new code, use the C<fallocate64> call "
6689 "instead."
6690 msgstr ""
6691
6692 # type: =head2
6693 #: ../src/guestfs-actions.pod:1441
6694 msgid "guestfs_fallocate64"
6695 msgstr ""
6696
6697 # type: verbatim
6698 #: ../src/guestfs-actions.pod:1443
6699 #, no-wrap
6700 msgid ""
6701 " int\n"
6702 " guestfs_fallocate64 (guestfs_h *g,\n"
6703 "                      const char *path,\n"
6704 "                      int64_t len);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1452
6710 msgid ""
6711 "Note that this call allocates disk blocks for the file.  To create a sparse "
6712 "file use C<guestfs_truncate_size> instead."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1455
6717 msgid ""
6718 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6719 "oversight it only allowed 30 bit lengths to be specified, effectively "
6720 "limiting the maximum size of files created through that call to 1GB."
6721 msgstr ""
6722
6723 # type: textblock
6724 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6725 msgid ""
6726 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6727 "commands which create a file in the host and attach it as a device."
6728 msgstr ""
6729
6730 # type: textblock
6731 #: ../src/guestfs-actions.pod:1466
6732 msgid "(Added in 1.3.17)"
6733 msgstr ""
6734
6735 # type: =head2
6736 #: ../src/guestfs-actions.pod:1468
6737 msgid "guestfs_fgrep"
6738 msgstr ""
6739
6740 # type: verbatim
6741 #: ../src/guestfs-actions.pod:1470
6742 #, no-wrap
6743 msgid ""
6744 " char **\n"
6745 " guestfs_fgrep (guestfs_h *g,\n"
6746 "                const char *pattern,\n"
6747 "                const char *path);\n"
6748 "\n"
6749 msgstr ""
6750
6751 # type: textblock
6752 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6753 msgid ""
6754 "This calls the external C<fgrep> program and returns the matching lines."
6755 msgstr ""
6756
6757 # type: =head2
6758 #: ../src/guestfs-actions.pod:1487
6759 msgid "guestfs_fgrepi"
6760 msgstr ""
6761
6762 # type: verbatim
6763 #: ../src/guestfs-actions.pod:1489
6764 #, no-wrap
6765 msgid ""
6766 " char **\n"
6767 " guestfs_fgrepi (guestfs_h *g,\n"
6768 "                 const char *pattern,\n"
6769 "                 const char *path);\n"
6770 "\n"
6771 msgstr ""
6772
6773 # type: textblock
6774 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6775 msgid ""
6776 "This calls the external C<fgrep -i> program and returns the matching lines."
6777 msgstr ""
6778
6779 # type: =head2
6780 #: ../src/guestfs-actions.pod:1506
6781 msgid "guestfs_file"
6782 msgstr ""
6783
6784 # type: verbatim
6785 #: ../src/guestfs-actions.pod:1508
6786 #, no-wrap
6787 msgid ""
6788 " char *\n"
6789 " guestfs_file (guestfs_h *g,\n"
6790 "               const char *path);\n"
6791 "\n"
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6796 msgid ""
6797 "This call uses the standard L<file(1)> command to determine the type or "
6798 "contents of the file."
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6803 msgid ""
6804 "This call will also transparently look inside various types of compressed "
6805 "file."
6806 msgstr ""
6807
6808 # type: textblock
6809 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6810 msgid ""
6811 "The exact command which runs is C<file -zb path>.  Note in particular that "
6812 "the filename is not prepended to the output (the C<-b> option)."
6813 msgstr ""
6814
6815 # type: textblock
6816 #: ../src/guestfs-actions.pod:1522
6817 msgid ""
6818 "This command can also be used on C</dev/> devices (and partitions, LV "
6819 "names).  You can for example use this to determine if a device contains a "
6820 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6821 msgstr ""
6822
6823 # type: textblock
6824 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6825 msgid ""
6826 "If the C<path> does not begin with C</dev/> then this command only works for "
6827 "the content of regular files.  For other file types (directory, symbolic "
6828 "link etc) it will just return the string C<directory> etc."
6829 msgstr ""
6830
6831 # type: =head2
6832 #: ../src/guestfs-actions.pod:1537
6833 msgid "guestfs_file_architecture"
6834 msgstr ""
6835
6836 # type: verbatim
6837 #: ../src/guestfs-actions.pod:1539
6838 #, no-wrap
6839 msgid ""
6840 " char *\n"
6841 " guestfs_file_architecture (guestfs_h *g,\n"
6842 "                            const char *filename);\n"
6843 "\n"
6844 msgstr ""
6845
6846 # type: textblock
6847 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6848 msgid ""
6849 "This detects the architecture of the binary C<filename>, and returns it if "
6850 "known."
6851 msgstr ""
6852
6853 # type: textblock
6854 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6855 msgid "Currently defined architectures are:"
6856 msgstr ""
6857
6858 # type: =item
6859 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6860 msgid "\"i386\""
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6865 msgid ""
6866 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6867 "irrespective of the precise processor requirements of the binary."
6868 msgstr ""
6869
6870 # type: =item
6871 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6872 msgid "\"x86_64\""
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6877 msgid "64 bit x86-64."
6878 msgstr ""
6879
6880 # type: =item
6881 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6882 msgid "\"sparc\""
6883 msgstr ""
6884
6885 # type: textblock
6886 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6887 msgid "32 bit SPARC."
6888 msgstr ""
6889
6890 # type: =item
6891 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6892 msgid "\"sparc64\""
6893 msgstr ""
6894
6895 # type: textblock
6896 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6897 msgid "64 bit SPARC V9 and above."
6898 msgstr ""
6899
6900 # type: =item
6901 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6902 msgid "\"ia64\""
6903 msgstr ""
6904
6905 # type: textblock
6906 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6907 msgid "Intel Itanium."
6908 msgstr ""
6909
6910 # type: =item
6911 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6912 msgid "\"ppc\""
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6917 msgid "32 bit Power PC."
6918 msgstr ""
6919
6920 # type: =item
6921 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6922 msgid "\"ppc64\""
6923 msgstr ""
6924
6925 # type: textblock
6926 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6927 msgid "64 bit Power PC."
6928 msgstr ""
6929
6930 # type: textblock
6931 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6932 msgid "Libguestfs may return other architecture strings in future."
6933 msgstr ""
6934
6935 # type: textblock
6936 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6937 msgid "The function works on at least the following types of files:"
6938 msgstr ""
6939
6940 # type: textblock
6941 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6942 msgid "many types of Un*x and Linux binary"
6943 msgstr ""
6944
6945 # type: textblock
6946 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6947 msgid "many types of Un*x and Linux shared library"
6948 msgstr ""
6949
6950 # type: textblock
6951 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6952 msgid "Windows Win32 and Win64 binaries"
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6957 msgid "Windows Win32 and Win64 DLLs"
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6962 msgid "Win32 binaries and DLLs return C<i386>."
6963 msgstr ""
6964
6965 # type: textblock
6966 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6967 msgid "Win64 binaries and DLLs return C<x86_64>."
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6972 msgid "Linux kernel modules"
6973 msgstr ""
6974
6975 # type: textblock
6976 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6977 msgid "Linux new-style initrd images"
6978 msgstr ""
6979
6980 # type: textblock
6981 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6982 msgid "some non-x86 Linux vmlinuz kernels"
6983 msgstr ""
6984
6985 # type: textblock
6986 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6987 msgid "What it can't do currently:"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6992 msgid "static libraries (libfoo.a)"
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6997 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6998 msgstr ""
6999
7000 # type: textblock
7001 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7002 msgid "x86 Linux vmlinuz kernels"
7003 msgstr ""
7004
7005 # type: textblock
7006 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7007 msgid ""
7008 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7009 "compressed code, and are horribly hard to unpack.  If you want to find the "
7010 "architecture of a kernel, use the architecture of the associated initrd or "
7011 "kernel module(s) instead."
7012 msgstr ""
7013
7014 # type: textblock
7015 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7016 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7017 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2577
7018 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2625
7019 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2738
7020 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2860
7021 #: ../src/guestfs-actions.pod:2992
7022 msgid "(Added in 1.5.3)"
7023 msgstr ""
7024
7025 # type: =head2
7026 #: ../src/guestfs-actions.pod:1649
7027 msgid "guestfs_filesize"
7028 msgstr ""
7029
7030 # type: verbatim
7031 #: ../src/guestfs-actions.pod:1651
7032 #, no-wrap
7033 msgid ""
7034 " int64_t\n"
7035 " guestfs_filesize (guestfs_h *g,\n"
7036 "                   const char *file);\n"
7037 "\n"
7038 msgstr ""
7039
7040 # type: textblock
7041 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7042 msgid "This command returns the size of C<file> in bytes."
7043 msgstr ""
7044
7045 # type: textblock
7046 #: ../src/guestfs-actions.pod:1657
7047 msgid ""
7048 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7049 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7050 "devices, use C<guestfs_blockdev_getsize64>."
7051 msgstr ""
7052
7053 # type: textblock
7054 #: ../src/guestfs-actions.pod:1663
7055 msgid "(Added in 1.0.82)"
7056 msgstr ""
7057
7058 # type: =head2
7059 #: ../src/guestfs-actions.pod:1665
7060 msgid "guestfs_fill"
7061 msgstr ""
7062
7063 # type: verbatim
7064 #: ../src/guestfs-actions.pod:1667
7065 #, no-wrap
7066 msgid ""
7067 " int\n"
7068 " guestfs_fill (guestfs_h *g,\n"
7069 "               int c,\n"
7070 "               int len,\n"
7071 "               const char *path);\n"
7072 "\n"
7073 msgstr ""
7074
7075 # type: textblock
7076 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7077 msgid ""
7078 "This command creates a new file called C<path>.  The initial content of the "
7079 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7080 "[0..255]>."
7081 msgstr ""
7082
7083 # type: textblock
7084 #: ../src/guestfs-actions.pod:1677
7085 msgid ""
7086 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7087 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7088 "bytes use C<guestfs_fill_pattern>."
7089 msgstr ""
7090
7091 # type: textblock
7092 #: ../src/guestfs-actions.pod:1689
7093 msgid "(Added in 1.0.79)"
7094 msgstr ""
7095
7096 # type: =head2
7097 #: ../src/guestfs-actions.pod:1691
7098 msgid "guestfs_fill_pattern"
7099 msgstr ""
7100
7101 # type: verbatim
7102 #: ../src/guestfs-actions.pod:1693
7103 #, no-wrap
7104 msgid ""
7105 " int\n"
7106 " guestfs_fill_pattern (guestfs_h *g,\n"
7107 "                       const char *pattern,\n"
7108 "                       int len,\n"
7109 "                       const char *path);\n"
7110 "\n"
7111 msgstr ""
7112
7113 # type: textblock
7114 #: ../src/guestfs-actions.pod:1699
7115 msgid ""
7116 "This function is like C<guestfs_fill> except that it creates a new file of "
7117 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7118 "pattern is truncated if necessary to ensure the length of the file is "
7119 "exactly C<len> bytes."
7120 msgstr ""
7121
7122 # type: textblock
7123 #: ../src/guestfs-actions.pod:1711
7124 msgid "(Added in 1.3.12)"
7125 msgstr ""
7126
7127 # type: =head2
7128 #: ../src/guestfs-actions.pod:1713
7129 msgid "guestfs_find"
7130 msgstr ""
7131
7132 # type: verbatim
7133 #: ../src/guestfs-actions.pod:1715
7134 #, no-wrap
7135 msgid ""
7136 " char **\n"
7137 " guestfs_find (guestfs_h *g,\n"
7138 "               const char *directory);\n"
7139 "\n"
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7144 msgid ""
7145 "This command lists out all files and directories, recursively, starting at "
7146 "C<directory>.  It is essentially equivalent to running the shell command "
7147 "C<find directory -print> but some post-processing happens on the output, "
7148 "described below."
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7153 msgid ""
7154 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7155 "structure was:"
7156 msgstr ""
7157
7158 # type: verbatim
7159 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7160 #, no-wrap
7161 msgid ""
7162 " /tmp/a\n"
7163 " /tmp/b\n"
7164 " /tmp/c/d\n"
7165 "\n"
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1731
7170 msgid ""
7171 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7172 msgstr ""
7173
7174 # type: verbatim
7175 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7176 #, no-wrap
7177 msgid ""
7178 " a\n"
7179 " b\n"
7180 " c\n"
7181 " c/d\n"
7182 "\n"
7183 msgstr ""
7184
7185 # type: textblock
7186 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7187 msgid "If C<directory> is not a directory, then this command returns an error."
7188 msgstr ""
7189
7190 # type: textblock
7191 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7192 msgid "The returned list is sorted."
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1744
7197 msgid "See also C<guestfs_find0>."
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3651
7202 #: ../src/guestfs-actions.pod:5112
7203 msgid "(Added in 1.0.27)"
7204 msgstr ""
7205
7206 # type: =head2
7207 #: ../src/guestfs-actions.pod:1755
7208 msgid "guestfs_find0"
7209 msgstr ""
7210
7211 # type: verbatim
7212 #: ../src/guestfs-actions.pod:1757
7213 #, no-wrap
7214 msgid ""
7215 " int\n"
7216 " guestfs_find0 (guestfs_h *g,\n"
7217 "                const char *directory,\n"
7218 "                const char *files);\n"
7219 "\n"
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7224 msgid ""
7225 "This command lists out all files and directories, recursively, starting at "
7226 "C<directory>, placing the resulting list in the external file called "
7227 "C<files>."
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1766
7232 msgid ""
7233 "This command works the same way as C<guestfs_find> with the following "
7234 "exceptions:"
7235 msgstr ""
7236
7237 # type: textblock
7238 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7239 msgid "The resulting list is written to an external file."
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7244 msgid ""
7245 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7246 "L<find(1)> option I<-print0>."
7247 msgstr ""
7248
7249 # type: textblock
7250 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7251 msgid "This command is not limited in the number of names that it can return."
7252 msgstr ""
7253
7254 # type: textblock
7255 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7256 msgid "The result list is not sorted."
7257 msgstr ""
7258
7259 # type: textblock
7260 #: ../src/guestfs-actions.pod:1793
7261 msgid "(Added in 1.0.74)"
7262 msgstr ""
7263
7264 # type: =head2
7265 #: ../src/guestfs-actions.pod:1795
7266 msgid "guestfs_findfs_label"
7267 msgstr ""
7268
7269 # type: verbatim
7270 #: ../src/guestfs-actions.pod:1797
7271 #, no-wrap
7272 msgid ""
7273 " char *\n"
7274 " guestfs_findfs_label (guestfs_h *g,\n"
7275 "                       const char *label);\n"
7276 "\n"
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7281 msgid ""
7282 "This command searches the filesystems and returns the one which has the "
7283 "given label.  An error is returned if no such filesystem can be found."
7284 msgstr ""
7285
7286 # type: textblock
7287 #: ../src/guestfs-actions.pod:1805
7288 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7289 msgstr ""
7290
7291 # type: =head2
7292 #: ../src/guestfs-actions.pod:1812
7293 msgid "guestfs_findfs_uuid"
7294 msgstr ""
7295
7296 # type: verbatim
7297 #: ../src/guestfs-actions.pod:1814
7298 #, no-wrap
7299 msgid ""
7300 " char *\n"
7301 " guestfs_findfs_uuid (guestfs_h *g,\n"
7302 "                      const char *uuid);\n"
7303 "\n"
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7308 msgid ""
7309 "This command searches the filesystems and returns the one which has the "
7310 "given UUID.  An error is returned if no such filesystem can be found."
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1822
7315 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7316 msgstr ""
7317
7318 # type: =head2
7319 #: ../src/guestfs-actions.pod:1829
7320 msgid "guestfs_fsck"
7321 msgstr ""
7322
7323 # type: verbatim
7324 #: ../src/guestfs-actions.pod:1831
7325 #, no-wrap
7326 msgid ""
7327 " int\n"
7328 " guestfs_fsck (guestfs_h *g,\n"
7329 "               const char *fstype,\n"
7330 "               const char *device);\n"
7331 "\n"
7332 msgstr ""
7333
7334 # type: textblock
7335 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7336 msgid ""
7337 "This runs the filesystem checker (fsck) on C<device> which should have "
7338 "filesystem type C<fstype>."
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7343 msgid ""
7344 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7345 "codes from C<fsck>."
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7350 msgid "Multiple status codes can be summed together."
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7355 msgid ""
7356 "A non-zero return code can mean \"success\", for example if errors have been "
7357 "corrected on the filesystem."
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7362 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7363 msgstr ""
7364
7365 # type: textblock
7366 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7367 msgid ""
7368 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7369 msgstr ""
7370
7371 # type: textblock
7372 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6749
7373 msgid "(Added in 1.0.16)"
7374 msgstr ""
7375
7376 # type: =head2
7377 #: ../src/guestfs-actions.pod:1868
7378 msgid "guestfs_get_append"
7379 msgstr ""
7380
7381 # type: verbatim
7382 #: ../src/guestfs-actions.pod:1870
7383 #, no-wrap
7384 msgid ""
7385 " const char *\n"
7386 " guestfs_get_append (guestfs_h *g);\n"
7387 "\n"
7388 msgstr ""
7389
7390 # type: textblock
7391 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7392 msgid ""
7393 "Return the additional kernel options which are added to the guest kernel "
7394 "command line."
7395 msgstr ""
7396
7397 # type: textblock
7398 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7399 msgid "If C<NULL> then no options are added."
7400 msgstr ""
7401
7402 # type: textblock
7403 #: ../src/guestfs-actions.pod:1878
7404 msgid ""
7405 "This function returns a string which may be NULL.  There is no way to return "
7406 "an error from this function.  The string is owned by the guest handle and "
7407 "must I<not> be freed."
7408 msgstr ""
7409
7410 # type: textblock
7411 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4790
7412 #: ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5621
7413 #: ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5656
7414 #: ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:6420
7415 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6792
7416 msgid "(Added in 1.0.26)"
7417 msgstr ""
7418
7419 # type: =head2
7420 #: ../src/guestfs-actions.pod:1884
7421 msgid "guestfs_get_autosync"
7422 msgstr ""
7423
7424 # type: verbatim
7425 #: ../src/guestfs-actions.pod:1886
7426 #, no-wrap
7427 msgid ""
7428 " int\n"
7429 " guestfs_get_autosync (guestfs_h *g);\n"
7430 "\n"
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7435 msgid "Get the autosync flag."
7436 msgstr ""
7437
7438 # type: =head2
7439 #: ../src/guestfs-actions.pod:1895
7440 msgid "guestfs_get_direct"
7441 msgstr ""
7442
7443 # type: verbatim
7444 #: ../src/guestfs-actions.pod:1897
7445 #, no-wrap
7446 msgid ""
7447 " int\n"
7448 " guestfs_get_direct (guestfs_h *g);\n"
7449 "\n"
7450 msgstr ""
7451
7452 # type: textblock
7453 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7454 msgid "Return the direct appliance mode flag."
7455 msgstr ""
7456
7457 # type: textblock
7458 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5294
7459 msgid "(Added in 1.0.72)"
7460 msgstr ""
7461
7462 # type: =head2
7463 #: ../src/guestfs-actions.pod:1906
7464 msgid "guestfs_get_e2label"
7465 msgstr ""
7466
7467 # type: verbatim
7468 #: ../src/guestfs-actions.pod:1908
7469 #, no-wrap
7470 msgid ""
7471 " char *\n"
7472 " guestfs_get_e2label (guestfs_h *g,\n"
7473 "                      const char *device);\n"
7474 "\n"
7475 msgstr ""
7476
7477 # type: textblock
7478 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7479 msgid ""
7480 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7485 msgid ""
7486 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7487 msgstr ""
7488
7489 # type: textblock
7490 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7491 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5331
7492 msgid "(Added in 1.0.15)"
7493 msgstr ""
7494
7495 # type: =head2
7496 #: ../src/guestfs-actions.pod:1927
7497 msgid "guestfs_get_e2uuid"
7498 msgstr ""
7499
7500 # type: verbatim
7501 #: ../src/guestfs-actions.pod:1929
7502 #, no-wrap
7503 msgid ""
7504 " char *\n"
7505 " guestfs_get_e2uuid (guestfs_h *g,\n"
7506 "                     const char *device);\n"
7507 "\n"
7508 msgstr ""
7509
7510 # type: textblock
7511 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7512 msgid ""
7513 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7518 msgid ""
7519 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7520 msgstr ""
7521
7522 # type: =head2
7523 #: ../src/guestfs-actions.pod:1948
7524 msgid "guestfs_get_memsize"
7525 msgstr ""
7526
7527 # type: verbatim
7528 #: ../src/guestfs-actions.pod:1950
7529 #, no-wrap
7530 msgid ""
7531 " int\n"
7532 " guestfs_get_memsize (guestfs_h *g);\n"
7533 "\n"
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7538 msgid ""
7539 "This gets the memory size in megabytes allocated to the qemu subprocess."
7540 msgstr ""
7541
7542 # type: textblock
7543 #: ../src/guestfs-actions.pod:1956
7544 msgid ""
7545 "If C<guestfs_set_memsize> was not called on this handle, and if "
7546 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7547 "value for memsize."
7548 msgstr ""
7549
7550 # type: textblock
7551 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7552 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5454
7553 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7554 #: ../fish/guestfish-actions.pod:3554 ../fish/guestfish-actions.pod:3641
7555 msgid ""
7556 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:3942
7561 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4076
7562 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4107
7563 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4137
7564 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5352
7565 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:6196
7566 msgid "(Added in 1.0.55)"
7567 msgstr ""
7568
7569 # type: =head2
7570 #: ../src/guestfs-actions.pod:1967
7571 msgid "guestfs_get_network"
7572 msgstr ""
7573
7574 # type: verbatim
7575 #: ../src/guestfs-actions.pod:1969
7576 #, no-wrap
7577 msgid ""
7578 " int\n"
7579 " guestfs_get_network (guestfs_h *g);\n"
7580 "\n"
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7585 msgid "This returns the enable network flag."
7586 msgstr ""
7587
7588 # type: textblock
7589 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5371
7590 msgid "(Added in 1.5.4)"
7591 msgstr ""
7592
7593 # type: =head2
7594 #: ../src/guestfs-actions.pod:1978
7595 msgid "guestfs_get_path"
7596 msgstr ""
7597
7598 # type: verbatim
7599 #: ../src/guestfs-actions.pod:1980
7600 #, no-wrap
7601 msgid ""
7602 " const char *\n"
7603 " guestfs_get_path (guestfs_h *g);\n"
7604 "\n"
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7609 msgid "Return the current search path."
7610 msgstr ""
7611
7612 # type: textblock
7613 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7614 msgid ""
7615 "This is always non-NULL.  If it wasn't set already, then this will return "
7616 "the default path."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7621 msgid ""
7622 "This function returns a string, or NULL on error.  The string is owned by "
7623 "the guest handle and must I<not> be freed."
7624 msgstr ""
7625
7626 # type: =head2
7627 #: ../src/guestfs-actions.pod:1993
7628 msgid "guestfs_get_pid"
7629 msgstr ""
7630
7631 # type: verbatim
7632 #: ../src/guestfs-actions.pod:1995
7633 #, no-wrap
7634 msgid ""
7635 " int\n"
7636 " guestfs_get_pid (guestfs_h *g);\n"
7637 "\n"
7638 msgstr ""
7639
7640 # type: textblock
7641 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7642 msgid ""
7643 "Return the process ID of the qemu subprocess.  If there is no qemu "
7644 "subprocess, then this will return an error."
7645 msgstr ""
7646
7647 # type: textblock
7648 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7649 msgid "This is an internal call used for debugging and testing."
7650 msgstr ""
7651
7652 # type: textblock
7653 #: ../src/guestfs-actions.pod:2005
7654 msgid "(Added in 1.0.56)"
7655 msgstr ""
7656
7657 # type: =head2
7658 #: ../src/guestfs-actions.pod:2007
7659 msgid "guestfs_get_qemu"
7660 msgstr ""
7661
7662 # type: verbatim
7663 #: ../src/guestfs-actions.pod:2009
7664 #, no-wrap
7665 msgid ""
7666 " const char *\n"
7667 " guestfs_get_qemu (guestfs_h *g);\n"
7668 "\n"
7669 msgstr ""
7670
7671 # type: textblock
7672 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7673 msgid "Return the current qemu binary."
7674 msgstr ""
7675
7676 # type: textblock
7677 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7678 msgid ""
7679 "This is always non-NULL.  If it wasn't set already, then this will return "
7680 "the default qemu binary name."
7681 msgstr ""
7682
7683 # type: textblock
7684 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5416
7685 msgid "(Added in 1.0.6)"
7686 msgstr ""
7687
7688 # type: =head2
7689 #: ../src/guestfs-actions.pod:2022
7690 msgid "guestfs_get_recovery_proc"
7691 msgstr ""
7692
7693 # type: verbatim
7694 #: ../src/guestfs-actions.pod:2024
7695 #, no-wrap
7696 msgid ""
7697 " int\n"
7698 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7699 "\n"
7700 msgstr ""
7701
7702 # type: textblock
7703 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7704 msgid "Return the recovery process enabled flag."
7705 msgstr ""
7706
7707 # type: textblock
7708 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3082
7709 #: ../src/guestfs-actions.pod:3349 ../src/guestfs-actions.pod:3749
7710 #: ../src/guestfs-actions.pod:3781 ../src/guestfs-actions.pod:4720
7711 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5440
7712 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6119
7713 #: ../src/guestfs-actions.pod:6301
7714 msgid "(Added in 1.0.77)"
7715 msgstr ""
7716
7717 # type: =head2
7718 #: ../src/guestfs-actions.pod:2033
7719 msgid "guestfs_get_selinux"
7720 msgstr ""
7721
7722 # type: verbatim
7723 #: ../src/guestfs-actions.pod:2035
7724 #, no-wrap
7725 msgid ""
7726 " int\n"
7727 " guestfs_get_selinux (guestfs_h *g);\n"
7728 "\n"
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../src/guestfs-actions.pod:2038
7733 msgid ""
7734 "This returns the current setting of the selinux flag which is passed to the "
7735 "appliance at boot time.  See C<guestfs_set_selinux>."
7736 msgstr ""
7737
7738 # type: textblock
7739 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7740 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5513
7741 msgid "(Added in 1.0.67)"
7742 msgstr ""
7743
7744 # type: =head2
7745 #: ../src/guestfs-actions.pod:2048
7746 msgid "guestfs_get_state"
7747 msgstr ""
7748
7749 # type: verbatim
7750 #: ../src/guestfs-actions.pod:2050
7751 #, no-wrap
7752 msgid ""
7753 " int\n"
7754 " guestfs_get_state (guestfs_h *g);\n"
7755 "\n"
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7760 msgid ""
7761 "This returns the current state as an opaque integer.  This is only useful "
7762 "for printing debug and internal error messages."
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2885
7767 #: ../src/guestfs-actions.pod:2914 ../src/guestfs-actions.pod:2975
7768 #: ../src/guestfs-actions.pod:3002 ../fish/guestfish-actions.pod:1398
7769 #: ../fish/guestfish-actions.pod:1987 ../fish/guestfish-actions.pod:2005
7770 #: ../fish/guestfish-actions.pod:2043 ../fish/guestfish-actions.pod:2059
7771 msgid "For more information on states, see L<guestfs(3)>."
7772 msgstr ""
7773
7774 # type: =head2
7775 #: ../src/guestfs-actions.pod:2062
7776 msgid "guestfs_get_trace"
7777 msgstr ""
7778
7779 # type: verbatim
7780 #: ../src/guestfs-actions.pod:2064
7781 #, no-wrap
7782 msgid ""
7783 " int\n"
7784 " guestfs_get_trace (guestfs_h *g);\n"
7785 "\n"
7786 msgstr ""
7787
7788 # type: textblock
7789 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7790 msgid "Return the command trace flag."
7791 msgstr ""
7792
7793 # type: =head2
7794 #: ../src/guestfs-actions.pod:2073
7795 msgid "guestfs_get_umask"
7796 msgstr ""
7797
7798 # type: verbatim
7799 #: ../src/guestfs-actions.pod:2075
7800 #, no-wrap
7801 msgid ""
7802 " int\n"
7803 " guestfs_get_umask (guestfs_h *g);\n"
7804 "\n"
7805 msgstr ""
7806
7807 # type: textblock
7808 #: ../src/guestfs-actions.pod:2078
7809 msgid ""
7810 "Return the current umask.  By default the umask is C<022> unless it has been "
7811 "set by calling C<guestfs_umask>."
7812 msgstr ""
7813
7814 # type: =head2
7815 #: ../src/guestfs-actions.pod:2085
7816 msgid "guestfs_get_verbose"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #: ../src/guestfs-actions.pod:2087
7821 #, no-wrap
7822 msgid ""
7823 " int\n"
7824 " guestfs_get_verbose (guestfs_h *g);\n"
7825 "\n"
7826 msgstr ""
7827
7828 # type: textblock
7829 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7830 msgid "This returns the verbose messages flag."
7831 msgstr ""
7832
7833 # type: =head2
7834 #: ../src/guestfs-actions.pod:2096
7835 msgid "guestfs_getcon"
7836 msgstr ""
7837
7838 # type: verbatim
7839 #: ../src/guestfs-actions.pod:2098
7840 #, no-wrap
7841 msgid ""
7842 " char *\n"
7843 " guestfs_getcon (guestfs_h *g);\n"
7844 "\n"
7845 msgstr ""
7846
7847 # type: textblock
7848 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7849 msgid "This gets the SELinux security context of the daemon."
7850 msgstr ""
7851
7852 # type: textblock
7853 #: ../src/guestfs-actions.pod:2103
7854 msgid ""
7855 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7856 msgstr ""
7857
7858 # type: =head2
7859 #: ../src/guestfs-actions.pod:2111
7860 msgid "guestfs_getxattrs"
7861 msgstr ""
7862
7863 # type: verbatim
7864 #: ../src/guestfs-actions.pod:2113
7865 #, no-wrap
7866 msgid ""
7867 " struct guestfs_xattr_list *\n"
7868 " guestfs_getxattrs (guestfs_h *g,\n"
7869 "                    const char *path);\n"
7870 "\n"
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7875 msgid ""
7876 "This call lists the extended attributes of the file or directory C<path>."
7877 msgstr ""
7878
7879 # type: textblock
7880 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7881 msgid ""
7882 "At the system call level, this is a combination of the L<listxattr(2)> and "
7883 "L<getxattr(2)> calls."
7884 msgstr ""
7885
7886 # type: textblock
7887 #: ../src/guestfs-actions.pod:2123
7888 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3094
7893 #: ../src/guestfs-actions.pod:3745
7894 msgid ""
7895 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7896 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7897 msgstr ""
7898
7899 # type: textblock
7900 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3098
7901 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3299
7902 #: ../src/guestfs-actions.pod:5093 ../src/guestfs-actions.pod:5532
7903 #: ../src/guestfs-actions.pod:6857
7904 msgid "(Added in 1.0.59)"
7905 msgstr ""
7906
7907 # type: =head2
7908 #: ../src/guestfs-actions.pod:2131
7909 msgid "guestfs_glob_expand"
7910 msgstr ""
7911
7912 # type: verbatim
7913 #: ../src/guestfs-actions.pod:2133
7914 #, no-wrap
7915 msgid ""
7916 " char **\n"
7917 " guestfs_glob_expand (guestfs_h *g,\n"
7918 "                      const char *pattern);\n"
7919 "\n"
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7924 msgid ""
7925 "This command searches for all the pathnames matching C<pattern> according to "
7926 "the wildcard expansion rules used by the shell."
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7931 msgid ""
7932 "If no paths match, then this returns an empty list (note: not an error)."
7933 msgstr ""
7934
7935 # type: textblock
7936 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7937 msgid ""
7938 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7939 "GLOB_BRACE>.  See that manual page for more details."
7940 msgstr ""
7941
7942 # type: textblock
7943 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5697
7944 #: ../src/guestfs-actions.pod:5714
7945 msgid "(Added in 1.0.50)"
7946 msgstr ""
7947
7948 # type: =head2
7949 #: ../src/guestfs-actions.pod:2154
7950 msgid "guestfs_grep"
7951 msgstr ""
7952
7953 # type: verbatim
7954 #: ../src/guestfs-actions.pod:2156
7955 #, no-wrap
7956 msgid ""
7957 " char **\n"
7958 " guestfs_grep (guestfs_h *g,\n"
7959 "               const char *regex,\n"
7960 "               const char *path);\n"
7961 "\n"
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7966 msgid "This calls the external C<grep> program and returns the matching lines."
7967 msgstr ""
7968
7969 # type: =head2
7970 #: ../src/guestfs-actions.pod:2173
7971 msgid "guestfs_grepi"
7972 msgstr ""
7973
7974 # type: verbatim
7975 #: ../src/guestfs-actions.pod:2175
7976 #, no-wrap
7977 msgid ""
7978 " char **\n"
7979 " guestfs_grepi (guestfs_h *g,\n"
7980 "                const char *regex,\n"
7981 "                const char *path);\n"
7982 "\n"
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7987 msgid ""
7988 "This calls the external C<grep -i> program and returns the matching lines."
7989 msgstr ""
7990
7991 # type: =head2
7992 #: ../src/guestfs-actions.pod:2192
7993 msgid "guestfs_grub_install"
7994 msgstr ""
7995
7996 # type: verbatim
7997 #: ../src/guestfs-actions.pod:2194
7998 #, no-wrap
7999 msgid ""
8000 " int\n"
8001 " guestfs_grub_install (guestfs_h *g,\n"
8002 "                       const char *root,\n"
8003 "                       const char *device);\n"
8004 "\n"
8005 msgstr ""
8006
8007 # type: textblock
8008 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8009 msgid ""
8010 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8011 "the root directory being C<root>."
8012 msgstr ""
8013
8014 # type: textblock
8015 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8016 msgid ""
8017 "Note: If grub-install reports the error \"No suitable drive was found in the "
8018 "generated device map.\" it may be that you need to create a C</boot/grub/"
8019 "device.map> file first that contains the mapping between grub device names "
8020 "and Linux device names.  It is usually sufficient to create a file "
8021 "containing:"
8022 msgstr ""
8023
8024 # type: verbatim
8025 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8026 #, no-wrap
8027 msgid ""
8028 " (hd0) /dev/vda\n"
8029 "\n"
8030 msgstr ""
8031
8032 # type: textblock
8033 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8034 msgid "replacing C</dev/vda> with the name of the installation device."
8035 msgstr ""
8036
8037 # type: textblock
8038 #: ../src/guestfs-actions.pod:2215
8039 msgid "(Added in 1.0.17)"
8040 msgstr ""
8041
8042 # type: =head2
8043 #: ../src/guestfs-actions.pod:2217
8044 msgid "guestfs_head"
8045 msgstr ""
8046
8047 # type: verbatim
8048 #: ../src/guestfs-actions.pod:2219
8049 #, no-wrap
8050 msgid ""
8051 " char **\n"
8052 " guestfs_head (guestfs_h *g,\n"
8053 "               const char *path);\n"
8054 "\n"
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8059 msgid ""
8060 "This command returns up to the first 10 lines of a file as a list of strings."
8061 msgstr ""
8062
8063 # type: =head2
8064 #: ../src/guestfs-actions.pod:2235
8065 msgid "guestfs_head_n"
8066 msgstr ""
8067
8068 # type: verbatim
8069 #: ../src/guestfs-actions.pod:2237
8070 #, no-wrap
8071 msgid ""
8072 " char **\n"
8073 " guestfs_head_n (guestfs_h *g,\n"
8074 "                 int nrlines,\n"
8075 "                 const char *path);\n"
8076 "\n"
8077 msgstr ""
8078
8079 # type: textblock
8080 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8081 msgid ""
8082 "If the parameter C<nrlines> is a positive number, this returns the first "
8083 "C<nrlines> lines of the file C<path>."
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8088 msgid ""
8089 "If the parameter C<nrlines> is a negative number, this returns lines from "
8090 "the file C<path>, excluding the last C<nrlines> lines."
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:5994
8095 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:3987
8096 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8097 msgstr ""
8098
8099 # type: =head2
8100 #: ../src/guestfs-actions.pod:2259
8101 msgid "guestfs_hexdump"
8102 msgstr ""
8103
8104 # type: verbatim
8105 #: ../src/guestfs-actions.pod:2261
8106 #, no-wrap
8107 msgid ""
8108 " char *\n"
8109 " guestfs_hexdump (guestfs_h *g,\n"
8110 "                  const char *path);\n"
8111 "\n"
8112 msgstr ""
8113
8114 # type: textblock
8115 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8116 msgid ""
8117 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8118 "readable, canonical hex dump of the file."
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5778
8123 #: ../src/guestfs-actions.pod:5833
8124 msgid "(Added in 1.0.22)"
8125 msgstr ""
8126
8127 # type: =head2
8128 #: ../src/guestfs-actions.pod:2276
8129 msgid "guestfs_initrd_cat"
8130 msgstr ""
8131
8132 # type: verbatim
8133 #: ../src/guestfs-actions.pod:2278
8134 #, no-wrap
8135 msgid ""
8136 " char *\n"
8137 " guestfs_initrd_cat (guestfs_h *g,\n"
8138 "                     const char *initrdpath,\n"
8139 "                     const char *filename,\n"
8140 "                     size_t *size_r);\n"
8141 "\n"
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8146 msgid ""
8147 "This command unpacks the file C<filename> from the initrd file called "
8148 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8149 "character."
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8154 msgid ""
8155 "For example, in guestfish you could use the following command to examine the "
8156 "boot script (usually called C</init>)  contained in a Linux initrd or "
8157 "initramfs image:"
8158 msgstr ""
8159
8160 # type: verbatim
8161 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8162 #, no-wrap
8163 msgid ""
8164 " initrd-cat /boot/initrd-<version>.img init\n"
8165 "\n"
8166 msgstr ""
8167
8168 # type: textblock
8169 #: ../src/guestfs-actions.pod:2294
8170 msgid "See also C<guestfs_initrd_list>."
8171 msgstr ""
8172
8173 # type: textblock
8174 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4713
8175 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4920
8176 msgid ""
8177 "This function returns a buffer, or NULL on error.  The size of the returned "
8178 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8179 "after use>."
8180 msgstr ""
8181
8182 # type: =head2
8183 #: ../src/guestfs-actions.pod:2305
8184 msgid "guestfs_initrd_list"
8185 msgstr ""
8186
8187 # type: verbatim
8188 #: ../src/guestfs-actions.pod:2307
8189 #, no-wrap
8190 msgid ""
8191 " char **\n"
8192 " guestfs_initrd_list (guestfs_h *g,\n"
8193 "                      const char *path);\n"
8194 "\n"
8195 msgstr ""
8196
8197 # type: textblock
8198 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8199 msgid "This command lists out files contained in an initrd."
8200 msgstr ""
8201
8202 # type: textblock
8203 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8204 msgid ""
8205 "The files are listed without any initial C</> character.  The files are "
8206 "listed in the order they appear (not necessarily alphabetical).  Directory "
8207 "names are listed as separate items."
8208 msgstr ""
8209
8210 # type: textblock
8211 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8212 msgid ""
8213 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8214 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8215 "files)."
8216 msgstr ""
8217
8218 # type: =head2
8219 #: ../src/guestfs-actions.pod:2327
8220 msgid "guestfs_inotify_add_watch"
8221 msgstr ""
8222
8223 # type: verbatim
8224 #: ../src/guestfs-actions.pod:2329
8225 #, no-wrap
8226 msgid ""
8227 " int64_t\n"
8228 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8229 "                            const char *path,\n"
8230 "                            int mask);\n"
8231 "\n"
8232 msgstr ""
8233
8234 # type: textblock
8235 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8236 msgid "Watch C<path> for the events listed in C<mask>."
8237 msgstr ""
8238
8239 # type: textblock
8240 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8241 msgid ""
8242 "Note that if C<path> is a directory then events within that directory are "
8243 "watched, but this does I<not> happen recursively (in subdirectories)."
8244 msgstr ""
8245
8246 # type: textblock
8247 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8248 msgid ""
8249 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8250 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8251 msgstr ""
8252
8253 # type: =head2
8254 #: ../src/guestfs-actions.pod:2348
8255 msgid "guestfs_inotify_close"
8256 msgstr ""
8257
8258 # type: verbatim
8259 #: ../src/guestfs-actions.pod:2350
8260 #, no-wrap
8261 msgid ""
8262 " int\n"
8263 " guestfs_inotify_close (guestfs_h *g);\n"
8264 "\n"
8265 msgstr ""
8266
8267 # type: textblock
8268 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8269 msgid ""
8270 "This closes the inotify handle which was previously opened by inotify_init.  "
8271 "It removes all watches, throws away any pending events, and deallocates all "
8272 "resources."
8273 msgstr ""
8274
8275 # type: =head2
8276 #: ../src/guestfs-actions.pod:2361
8277 msgid "guestfs_inotify_files"
8278 msgstr ""
8279
8280 # type: verbatim
8281 #: ../src/guestfs-actions.pod:2363
8282 #, no-wrap
8283 msgid ""
8284 " char **\n"
8285 " guestfs_inotify_files (guestfs_h *g);\n"
8286 "\n"
8287 msgstr ""
8288
8289 # type: textblock
8290 #: ../src/guestfs-actions.pod:2366
8291 msgid ""
8292 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8293 "returns a list of pathnames of objects that were touched.  The returned "
8294 "pathnames are sorted and deduplicated."
8295 msgstr ""
8296
8297 # type: =head2
8298 #: ../src/guestfs-actions.pod:2376
8299 msgid "guestfs_inotify_init"
8300 msgstr ""
8301
8302 # type: verbatim
8303 #: ../src/guestfs-actions.pod:2378
8304 #, no-wrap
8305 msgid ""
8306 " int\n"
8307 " guestfs_inotify_init (guestfs_h *g,\n"
8308 "                       int maxevents);\n"
8309 "\n"
8310 msgstr ""
8311
8312 # type: textblock
8313 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8314 msgid ""
8315 "This command creates a new inotify handle.  The inotify subsystem can be "
8316 "used to notify events which happen to objects in the guest filesystem."
8317 msgstr ""
8318
8319 # type: textblock
8320 #: ../src/guestfs-actions.pod:2386
8321 msgid ""
8322 "C<maxevents> is the maximum number of events which will be queued up between "
8323 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8324 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8325 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8326 "throws away events, but records the fact that it threw them away by setting "
8327 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8328 "C<guestfs_inotify_read>)."
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2396
8333 msgid ""
8334 "Before any events are generated, you have to add some watches to the "
8335 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8336 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8337 msgstr ""
8338
8339 # type: textblock
8340 #: ../src/guestfs-actions.pod:2402
8341 msgid ""
8342 "Queued up events should be read periodically by calling "
8343 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8344 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8345 "often enough then you risk the internal queue overflowing."
8346 msgstr ""
8347
8348 # type: textblock
8349 #: ../src/guestfs-actions.pod:2409
8350 msgid ""
8351 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8352 "This also removes any watches automatically."
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8357 msgid ""
8358 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8359 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8360 "that there is one global inotify handle per libguestfs instance."
8361 msgstr ""
8362
8363 # type: =head2
8364 #: ../src/guestfs-actions.pod:2422
8365 msgid "guestfs_inotify_read"
8366 msgstr ""
8367
8368 # type: verbatim
8369 #: ../src/guestfs-actions.pod:2424
8370 #, no-wrap
8371 msgid ""
8372 " struct guestfs_inotify_event_list *\n"
8373 " guestfs_inotify_read (guestfs_h *g);\n"
8374 "\n"
8375 msgstr ""
8376
8377 # type: textblock
8378 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8379 msgid ""
8380 "Return the complete queue of events that have happened since the previous "
8381 "read call."
8382 msgstr ""
8383
8384 # type: textblock
8385 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8386 msgid "If no events have happened, this returns an empty list."
8387 msgstr ""
8388
8389 # type: textblock
8390 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8391 msgid ""
8392 "I<Note>: In order to make sure that all events have been read, you must call "
8393 "this function repeatedly until it returns an empty list.  The reason is that "
8394 "the call will read events up to the maximum appliance-to-host message size "
8395 "and leave remaining events in the queue."
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2438
8400 msgid ""
8401 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8402 "there was an error.  I<The caller must call "
8403 "C<guestfs_free_inotify_event_list> after use>."
8404 msgstr ""
8405
8406 # type: =head2
8407 #: ../src/guestfs-actions.pod:2444
8408 msgid "guestfs_inotify_rm_watch"
8409 msgstr ""
8410
8411 # type: verbatim
8412 #: ../src/guestfs-actions.pod:2446
8413 #, no-wrap
8414 msgid ""
8415 " int\n"
8416 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8417 "                           int wd);\n"
8418 "\n"
8419 msgstr ""
8420
8421 # type: textblock
8422 #: ../src/guestfs-actions.pod:2450
8423 msgid ""
8424 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8425 msgstr ""
8426
8427 # type: =head2
8428 #: ../src/guestfs-actions.pod:2457
8429 msgid "guestfs_inspect_get_arch"
8430 msgstr ""
8431
8432 # type: verbatim
8433 #: ../src/guestfs-actions.pod:2459
8434 #, no-wrap
8435 msgid ""
8436 " char *\n"
8437 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8438 "                           const char *root);\n"
8439 "\n"
8440 msgstr ""
8441
8442 # type: textblock
8443 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8444 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
8445 #: ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:2633
8446 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2693
8447 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2764
8448 #: ../src/guestfs-actions.pod:2802
8449 msgid ""
8450 "This function should only be called with a root device string as returned by "
8451 "C<guestfs_inspect_os>."
8452 msgstr ""
8453
8454 # type: textblock
8455 #: ../src/guestfs-actions.pod:2466
8456 msgid ""
8457 "This returns the architecture of the inspected operating system.  The "
8458 "possible return values are listed under C<guestfs_file_architecture>."
8459 msgstr ""
8460
8461 # type: textblock
8462 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8463 msgid ""
8464 "If the architecture could not be determined, then the string C<unknown> is "
8465 "returned."
8466 msgstr ""
8467
8468 # type: textblock
8469 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2546
8470 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2682
8471 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2733
8472 #: ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2789
8473 #: ../src/guestfs-actions.pod:2812 ../src/guestfs-actions.pod:2852
8474 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1733
8475 #: ../fish/guestfish-actions.pod:1772 ../fish/guestfish-actions.pod:1832
8476 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:1873
8477 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:1917
8478 #: ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1967
8479 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8480 msgstr ""
8481
8482 # type: =head2
8483 #: ../src/guestfs-actions.pod:2480
8484 msgid "guestfs_inspect_get_distro"
8485 msgstr ""
8486
8487 # type: verbatim
8488 #: ../src/guestfs-actions.pod:2482
8489 #, no-wrap
8490 msgid ""
8491 " char *\n"
8492 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8493 "                             const char *root);\n"
8494 "\n"
8495 msgstr ""
8496
8497 # type: textblock
8498 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8499 msgid ""
8500 "This returns the distro (distribution) of the inspected operating system."
8501 msgstr ""
8502
8503 # type: textblock
8504 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8505 msgid "Currently defined distros are:"
8506 msgstr ""
8507
8508 # type: =item
8509 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8510 msgid "\"archlinux\""
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8515 msgid "Arch Linux."
8516 msgstr ""
8517
8518 # type: =item
8519 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8520 msgid "\"debian\""
8521 msgstr ""
8522
8523 # type: textblock
8524 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8525 msgid "Debian or a Debian-derived distro such as Ubuntu."
8526 msgstr ""
8527
8528 # type: =item
8529 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8530 msgid "\"fedora\""
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8535 msgid "Fedora."
8536 msgstr ""
8537
8538 # type: =item
8539 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8540 msgid "\"gentoo\""
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8545 msgid "Gentoo."
8546 msgstr ""
8547
8548 # type: =item
8549 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8550 msgid "\"meego\""
8551 msgstr ""
8552
8553 # type: textblock
8554 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8555 msgid "MeeGo."
8556 msgstr ""
8557
8558 # type: =item
8559 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8560 msgid "\"pardus\""
8561 msgstr ""
8562
8563 # type: textblock
8564 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8565 msgid "Pardus."
8566 msgstr ""
8567
8568 # type: =item
8569 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8570 msgid "\"redhat-based\""
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8575 msgid "Some Red Hat-derived distro."
8576 msgstr ""
8577
8578 # type: =item
8579 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8580 msgid "\"rhel\""
8581 msgstr ""
8582
8583 # type: textblock
8584 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8585 msgid "Red Hat Enterprise Linux and some derivatives."
8586 msgstr ""
8587
8588 # type: =item
8589 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2776
8590 #: ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1904
8591 msgid "\"windows\""
8592 msgstr ""
8593
8594 # type: textblock
8595 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8596 msgid ""
8597 "Windows does not have distributions.  This string is returned if the OS type "
8598 "is Windows."
8599 msgstr ""
8600
8601 # type: =item
8602 #: ../src/guestfs-actions.pod:2533 ../fish/guestfish-actions.pod:1720
8603 msgid "\"ubuntu\""
8604 msgstr ""
8605
8606 # type: textblock
8607 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1722
8608 msgid "Ubuntu."
8609 msgstr ""
8610
8611 # type: =item
8612 #: ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2780
8613 #: ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1908
8614 msgid "\"unknown\""
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1726
8619 msgid "The distro could not be determined."
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2786
8624 #: ../fish/guestfish-actions.pod:1730 ../fish/guestfish-actions.pod:1914
8625 msgid ""
8626 "Future versions of libguestfs may return other strings here.  The caller "
8627 "should be prepared to handle any string."
8628 msgstr ""
8629
8630 # type: =head2
8631 #: ../src/guestfs-actions.pod:2553
8632 msgid "guestfs_inspect_get_filesystems"
8633 msgstr ""
8634
8635 # type: verbatim
8636 #: ../src/guestfs-actions.pod:2555
8637 #, no-wrap
8638 msgid ""
8639 " char **\n"
8640 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8641 "                                  const char *root);\n"
8642 "\n"
8643 msgstr ""
8644
8645 # type: textblock
8646 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1742
8647 msgid ""
8648 "This returns a list of all the filesystems that we think are associated with "
8649 "this operating system.  This includes the root filesystem, other ordinary "
8650 "filesystems, and non-mounted devices like swap partitions."
8651 msgstr ""
8652
8653 # type: textblock
8654 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1747
8655 msgid ""
8656 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8657 "to be shared between operating systems."
8658 msgstr ""
8659
8660 # type: textblock
8661 #: ../src/guestfs-actions.pod:2570
8662 msgid ""
8663 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8664 "C<guestfs_inspect_get_mountpoints>."
8665 msgstr ""
8666
8667 # type: =head2
8668 #: ../src/guestfs-actions.pod:2579
8669 msgid "guestfs_inspect_get_major_version"
8670 msgstr ""
8671
8672 # type: verbatim
8673 #: ../src/guestfs-actions.pod:2581
8674 #, no-wrap
8675 msgid ""
8676 " int\n"
8677 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8678 "                                    const char *root);\n"
8679 "\n"
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1760
8684 msgid ""
8685 "This returns the major version number of the inspected operating system."
8686 msgstr ""
8687
8688 # type: textblock
8689 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1763
8690 msgid ""
8691 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8692 "popular public names used by the operating system.  Notably the operating "
8693 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8694 "1).  You can find out the real versions corresponding to releases of Windows "
8695 "by consulting Wikipedia or MSDN."
8696 msgstr ""
8697
8698 # type: textblock
8699 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2618
8700 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1784
8701 msgid "If the version could not be determined, then C<0> is returned."
8702 msgstr ""
8703
8704 # type: =head2
8705 #: ../src/guestfs-actions.pod:2606
8706 msgid "guestfs_inspect_get_minor_version"
8707 msgstr ""
8708
8709 # type: verbatim
8710 #: ../src/guestfs-actions.pod:2608
8711 #, no-wrap
8712 msgid ""
8713 " int\n"
8714 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8715 "                                    const char *root);\n"
8716 "\n"
8717 msgstr ""
8718
8719 # type: textblock
8720 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1781
8721 msgid ""
8722 "This returns the minor version number of the inspected operating system."
8723 msgstr ""
8724
8725 # type: textblock
8726 #: ../src/guestfs-actions.pod:2620
8727 msgid ""
8728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8729 "C<guestfs_inspect_get_major_version>."
8730 msgstr ""
8731
8732 # type: =head2
8733 #: ../src/guestfs-actions.pod:2627
8734 msgid "guestfs_inspect_get_mountpoints"
8735 msgstr ""
8736
8737 # type: verbatim
8738 #: ../src/guestfs-actions.pod:2629
8739 #, no-wrap
8740 msgid ""
8741 " char **\n"
8742 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8743 "                                  const char *root);\n"
8744 "\n"
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1796
8749 msgid ""
8750 "This returns a hash of where we think the filesystems associated with this "
8751 "operating system should be mounted.  Callers should note that this is at "
8752 "best an educated guess made by reading configuration files such as C</etc/"
8753 "fstab>."
8754 msgstr ""
8755
8756 # type: textblock
8757 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1801
8758 msgid ""
8759 "Each element in the returned hashtable has a key which is the path of the "
8760 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8761 "mounted there (eg. C</dev/sda1>)."
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1806
8766 msgid ""
8767 "Non-mounted devices such as swap devices are I<not> returned in this list."
8768 msgstr ""
8769
8770 # type: textblock
8771 #: ../src/guestfs-actions.pod:2649
8772 msgid ""
8773 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8774 "C<guestfs_inspect_get_filesystems>."
8775 msgstr ""
8776
8777 # type: textblock
8778 #: ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:3151
8779 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:6135
8780 msgid ""
8781 "This function returns a NULL-terminated array of strings, or NULL if there "
8782 "was an error.  The array of strings will always have length C<2n+1>, where "
8783 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8784 "caller must free the strings and the array after use>."
8785 msgstr ""
8786
8787 # type: =head2
8788 #: ../src/guestfs-actions.pod:2660
8789 msgid "guestfs_inspect_get_package_format"
8790 msgstr ""
8791
8792 # type: verbatim
8793 #: ../src/guestfs-actions.pod:2662
8794 #, no-wrap
8795 msgid ""
8796 " char *\n"
8797 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8798 "                                     const char *root);\n"
8799 "\n"
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2669
8804 msgid ""
8805 "This function and C<guestfs_inspect_get_package_management> return the "
8806 "package format and package management tool used by the inspected operating "
8807 "system.  For example for Fedora these functions would return C<rpm> (package "
8808 "format) and C<yum> (package management)."
8809 msgstr ""
8810
8811 # type: textblock
8812 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1825
8813 msgid ""
8814 "This returns the string C<unknown> if we could not determine the package "
8815 "format I<or> if the operating system does not have a real packaging system "
8816 "(eg. Windows)."
8817 msgstr ""
8818
8819 # type: textblock
8820 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
8821 msgid ""
8822 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8823 "Future versions of libguestfs may return other strings."
8824 msgstr ""
8825
8826 # type: =head2
8827 #: ../src/guestfs-actions.pod:2687
8828 msgid "guestfs_inspect_get_package_management"
8829 msgstr ""
8830
8831 # type: verbatim
8832 #: ../src/guestfs-actions.pod:2689
8833 #, no-wrap
8834 msgid ""
8835 " char *\n"
8836 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8837 "                                         const char *root);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2696
8843 msgid ""
8844 "C<guestfs_inspect_get_package_format> and this function return the package "
8845 "format and package management tool used by the inspected operating system.  "
8846 "For example for Fedora these functions would return C<rpm> (package format) "
8847 "and C<yum> (package management)."
8848 msgstr ""
8849
8850 # type: textblock
8851 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1847
8852 msgid ""
8853 "This returns the string C<unknown> if we could not determine the package "
8854 "management tool I<or> if the operating system does not have a real packaging "
8855 "system (eg. Windows)."
8856 msgstr ""
8857
8858 # type: textblock
8859 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1851
8860 msgid ""
8861 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8862 "derivatives), C<portage>, C<pisi>, C<pacman>.  Future versions of libguestfs "
8863 "may return other strings."
8864 msgstr ""
8865
8866 # type: =head2
8867 #: ../src/guestfs-actions.pod:2716
8868 msgid "guestfs_inspect_get_product_name"
8869 msgstr ""
8870
8871 # type: verbatim
8872 #: ../src/guestfs-actions.pod:2718
8873 #, no-wrap
8874 msgid ""
8875 " char *\n"
8876 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8877 "                                   const char *root);\n"
8878 "\n"
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1865
8883 msgid ""
8884 "This returns the product name of the inspected operating system.  The "
8885 "product name is generally some freeform string which can be displayed to the "
8886 "user, but should not be parsed by programs."
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2730 ../fish/guestfish-actions.pod:1870
8891 msgid ""
8892 "If the product name could not be determined, then the string C<unknown> is "
8893 "returned."
8894 msgstr ""
8895
8896 # type: =head2
8897 #: ../src/guestfs-actions.pod:2740
8898 msgid "guestfs_inspect_get_roots"
8899 msgstr ""
8900
8901 # type: verbatim
8902 #: ../src/guestfs-actions.pod:2742
8903 #, no-wrap
8904 msgid ""
8905 " char **\n"
8906 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8907 "\n"
8908 msgstr ""
8909
8910 # type: textblock
8911 #: ../src/guestfs-actions.pod:2745
8912 msgid ""
8913 "This function is a convenient way to get the list of root devices, as "
8914 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8915 "the whole inspection process."
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2749
8920 msgid ""
8921 "This returns an empty list if either no root devices were found or the "
8922 "caller has not called C<guestfs_inspect_os>."
8923 msgstr ""
8924
8925 # type: =head2
8926 #: ../src/guestfs-actions.pod:2758
8927 msgid "guestfs_inspect_get_type"
8928 msgstr ""
8929
8930 # type: verbatim
8931 #: ../src/guestfs-actions.pod:2760
8932 #, no-wrap
8933 msgid ""
8934 " char *\n"
8935 " guestfs_inspect_get_type (guestfs_h *g,\n"
8936 "                           const char *root);\n"
8937 "\n"
8938 msgstr ""
8939
8940 # type: textblock
8941 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1895
8942 msgid ""
8943 "This returns the type of the inspected operating system.  Currently defined "
8944 "types are:"
8945 msgstr ""
8946
8947 # type: =item
8948 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1900
8949 msgid "\"linux\""
8950 msgstr ""
8951
8952 # type: textblock
8953 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1902
8954 msgid "Any Linux-based operating system."
8955 msgstr ""
8956
8957 # type: textblock
8958 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1906
8959 msgid "Any Microsoft Windows operating system."
8960 msgstr ""
8961
8962 # type: textblock
8963 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1910
8964 msgid "The operating system type could not be determined."
8965 msgstr ""
8966
8967 # type: =head2
8968 #: ../src/guestfs-actions.pod:2796
8969 msgid "guestfs_inspect_get_windows_systemroot"
8970 msgstr ""
8971
8972 # type: verbatim
8973 #: ../src/guestfs-actions.pod:2798
8974 #, no-wrap
8975 msgid ""
8976 " char *\n"
8977 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8978 "                                         const char *root);\n"
8979 "\n"
8980 msgstr ""
8981
8982 # type: textblock
8983 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1926
8984 msgid ""
8985 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8986 "is a directory path such as C</WINDOWS>."
8987 msgstr ""
8988
8989 # type: textblock
8990 #: ../src/guestfs-actions.pod:2808 ../fish/guestfish-actions.pod:1929
8991 msgid ""
8992 "This call assumes that the guest is Windows and that the systemroot could be "
8993 "determined by inspection.  If this is not the case then an error is returned."
8994 msgstr ""
8995
8996 # type: textblock
8997 #: ../src/guestfs-actions.pod:2817
8998 msgid "(Added in 1.5.25)"
8999 msgstr ""
9000
9001 # type: =head2
9002 #: ../src/guestfs-actions.pod:2819
9003 msgid "guestfs_inspect_os"
9004 msgstr ""
9005
9006 # type: verbatim
9007 #: ../src/guestfs-actions.pod:2821
9008 #, no-wrap
9009 msgid ""
9010 " char **\n"
9011 " guestfs_inspect_os (guestfs_h *g);\n"
9012 "\n"
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1939
9017 msgid ""
9018 "This function uses other libguestfs functions and certain heuristics to "
9019 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9020 "for operating systems."
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1943
9025 msgid "The list returned is empty if no operating systems were found."
9026 msgstr ""
9027
9028 # type: textblock
9029 #: ../src/guestfs-actions.pod:2830 ../fish/guestfish-actions.pod:1945
9030 msgid ""
9031 "If one operating system was found, then this returns a list with a single "
9032 "element, which is the name of the root filesystem of this operating system.  "
9033 "It is also possible for this function to return a list containing more than "
9034 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9035 "element being the root filesystem of one of the operating systems."
9036 msgstr ""
9037
9038 # type: textblock
9039 #: ../src/guestfs-actions.pod:2837
9040 msgid ""
9041 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9042 "functions in order to query further information about each operating system, "
9043 "such as the name and version."
9044 msgstr ""
9045
9046 # type: textblock
9047 #: ../src/guestfs-actions.pod:2842
9048 msgid ""
9049 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9050 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9051 "the contents.  This should be called with no disks currently mounted.  The "
9052 "function may also use Augeas, so any existing Augeas handle will be closed."
9053 msgstr ""
9054
9055 # type: textblock
9056 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1963
9057 msgid ""
9058 "This function cannot decrypt encrypted disks.  The caller must do that first "
9059 "(supplying the necessary keys) if the disk is encrypted."
9060 msgstr ""
9061
9062 # type: textblock
9063 #: ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:3109
9064 #: ../src/guestfs-actions.pod:3171
9065 msgid "See also C<guestfs_list_filesystems>."
9066 msgstr ""
9067
9068 # type: =head2
9069 #: ../src/guestfs-actions.pod:2862
9070 msgid "guestfs_is_blockdev"
9071 msgstr ""
9072
9073 # type: verbatim
9074 #: ../src/guestfs-actions.pod:2864
9075 #, no-wrap
9076 msgid ""
9077 " int\n"
9078 " guestfs_is_blockdev (guestfs_h *g,\n"
9079 "                      const char *path);\n"
9080 "\n"
9081 msgstr ""
9082
9083 # type: textblock
9084 #: ../src/guestfs-actions.pod:2868 ../fish/guestfish-actions.pod:1975
9085 msgid ""
9086 "This returns C<true> if and only if there is a block device with the given "
9087 "C<path> name."
9088 msgstr ""
9089
9090 # type: textblock
9091 #: ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2900
9092 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2945
9093 #: ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:3017
9094 #: ../src/guestfs-actions.pod:3032
9095 msgid "See also C<guestfs_stat>."
9096 msgstr ""
9097
9098 # type: textblock
9099 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2904
9100 #: ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:3021
9101 #: ../src/guestfs-actions.pod:3036
9102 msgid "(Added in 1.5.10)"
9103 msgstr ""
9104
9105 # type: =head2
9106 #: ../src/guestfs-actions.pod:2877
9107 msgid "guestfs_is_busy"
9108 msgstr ""
9109
9110 # type: verbatim
9111 #: ../src/guestfs-actions.pod:2879
9112 #, no-wrap
9113 msgid ""
9114 " int\n"
9115 " guestfs_is_busy (guestfs_h *g);\n"
9116 "\n"
9117 msgstr ""
9118
9119 # type: textblock
9120 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1984
9121 msgid ""
9122 "This returns true iff this handle is busy processing a command (in the "
9123 "C<BUSY> state)."
9124 msgstr ""
9125
9126 # type: =head2
9127 #: ../src/guestfs-actions.pod:2891
9128 msgid "guestfs_is_chardev"
9129 msgstr ""
9130
9131 # type: verbatim
9132 #: ../src/guestfs-actions.pod:2893
9133 #, no-wrap
9134 msgid ""
9135 " int\n"
9136 " guestfs_is_chardev (guestfs_h *g,\n"
9137 "                     const char *path);\n"
9138 "\n"
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:2897 ../fish/guestfish-actions.pod:1993
9143 msgid ""
9144 "This returns C<true> if and only if there is a character device with the "
9145 "given C<path> name."
9146 msgstr ""
9147
9148 # type: =head2
9149 #: ../src/guestfs-actions.pod:2906
9150 msgid "guestfs_is_config"
9151 msgstr ""
9152
9153 # type: verbatim
9154 #: ../src/guestfs-actions.pod:2908
9155 #, no-wrap
9156 msgid ""
9157 " int\n"
9158 " guestfs_is_config (guestfs_h *g);\n"
9159 "\n"
9160 msgstr ""
9161
9162 # type: textblock
9163 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:2002
9164 msgid ""
9165 "This returns true iff this handle is being configured (in the C<CONFIG> "
9166 "state)."
9167 msgstr ""
9168
9169 # type: =head2
9170 #: ../src/guestfs-actions.pod:2920
9171 msgid "guestfs_is_dir"
9172 msgstr ""
9173
9174 # type: verbatim
9175 #: ../src/guestfs-actions.pod:2922
9176 #, no-wrap
9177 msgid ""
9178 " int\n"
9179 " guestfs_is_dir (guestfs_h *g,\n"
9180 "                 const char *path);\n"
9181 "\n"
9182 msgstr ""
9183
9184 # type: textblock
9185 #: ../src/guestfs-actions.pod:2926 ../fish/guestfish-actions.pod:2011
9186 msgid ""
9187 "This returns C<true> if and only if there is a directory with the given "
9188 "C<path> name.  Note that it returns false for other objects like files."
9189 msgstr ""
9190
9191 # type: =head2
9192 #: ../src/guestfs-actions.pod:2936
9193 msgid "guestfs_is_fifo"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #: ../src/guestfs-actions.pod:2938
9198 #, no-wrap
9199 msgid ""
9200 " int\n"
9201 " guestfs_is_fifo (guestfs_h *g,\n"
9202 "                  const char *path);\n"
9203 "\n"
9204 msgstr ""
9205
9206 # type: textblock
9207 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2021
9208 msgid ""
9209 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9210 "given C<path> name."
9211 msgstr ""
9212
9213 # type: =head2
9214 #: ../src/guestfs-actions.pod:2951
9215 msgid "guestfs_is_file"
9216 msgstr ""
9217
9218 # type: verbatim
9219 #: ../src/guestfs-actions.pod:2953
9220 #, no-wrap
9221 msgid ""
9222 " int\n"
9223 " guestfs_is_file (guestfs_h *g,\n"
9224 "                  const char *path);\n"
9225 "\n"
9226 msgstr ""
9227
9228 # type: textblock
9229 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2030
9230 msgid ""
9231 "This returns C<true> if and only if there is a regular file with the given "
9232 "C<path> name.  Note that it returns false for other objects like directories."
9233 msgstr ""
9234
9235 # type: =head2
9236 #: ../src/guestfs-actions.pod:2967
9237 msgid "guestfs_is_launching"
9238 msgstr ""
9239
9240 # type: verbatim
9241 #: ../src/guestfs-actions.pod:2969
9242 #, no-wrap
9243 msgid ""
9244 " int\n"
9245 " guestfs_is_launching (guestfs_h *g);\n"
9246 "\n"
9247 msgstr ""
9248
9249 # type: textblock
9250 #: ../src/guestfs-actions.pod:2972 ../fish/guestfish-actions.pod:2040
9251 msgid ""
9252 "This returns true iff this handle is launching the subprocess (in the "
9253 "C<LAUNCHING> state)."
9254 msgstr ""
9255
9256 # type: =head2
9257 #: ../src/guestfs-actions.pod:2981
9258 msgid "guestfs_is_lv"
9259 msgstr ""
9260
9261 # type: verbatim
9262 #: ../src/guestfs-actions.pod:2983
9263 #, no-wrap
9264 msgid ""
9265 " int\n"
9266 " guestfs_is_lv (guestfs_h *g,\n"
9267 "                const char *device);\n"
9268 "\n"
9269 msgstr ""
9270
9271 # type: textblock
9272 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2049
9273 msgid ""
9274 "This command tests whether C<device> is a logical volume, and returns true "
9275 "iff this is the case."
9276 msgstr ""
9277
9278 # type: =head2
9279 #: ../src/guestfs-actions.pod:2994
9280 msgid "guestfs_is_ready"
9281 msgstr ""
9282
9283 # type: verbatim
9284 #: ../src/guestfs-actions.pod:2996
9285 #, no-wrap
9286 msgid ""
9287 " int\n"
9288 " guestfs_is_ready (guestfs_h *g);\n"
9289 "\n"
9290 msgstr ""
9291
9292 # type: textblock
9293 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2056
9294 msgid ""
9295 "This returns true iff this handle is ready to accept commands (in the "
9296 "C<READY> state)."
9297 msgstr ""
9298
9299 # type: =head2
9300 #: ../src/guestfs-actions.pod:3008
9301 msgid "guestfs_is_socket"
9302 msgstr ""
9303
9304 # type: verbatim
9305 #: ../src/guestfs-actions.pod:3010
9306 #, no-wrap
9307 msgid ""
9308 " int\n"
9309 " guestfs_is_socket (guestfs_h *g,\n"
9310 "                    const char *path);\n"
9311 "\n"
9312 msgstr ""
9313
9314 # type: textblock
9315 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2065
9316 msgid ""
9317 "This returns C<true> if and only if there is a Unix domain socket with the "
9318 "given C<path> name."
9319 msgstr ""
9320
9321 # type: =head2
9322 #: ../src/guestfs-actions.pod:3023
9323 msgid "guestfs_is_symlink"
9324 msgstr ""
9325
9326 # type: verbatim
9327 #: ../src/guestfs-actions.pod:3025
9328 #, no-wrap
9329 msgid ""
9330 " int\n"
9331 " guestfs_is_symlink (guestfs_h *g,\n"
9332 "                     const char *path);\n"
9333 "\n"
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2074
9338 msgid ""
9339 "This returns C<true> if and only if there is a symbolic link with the given "
9340 "C<path> name."
9341 msgstr ""
9342
9343 # type: =head2
9344 #: ../src/guestfs-actions.pod:3038
9345 msgid "guestfs_kill_subprocess"
9346 msgstr ""
9347
9348 # type: verbatim
9349 #: ../src/guestfs-actions.pod:3040
9350 #, no-wrap
9351 msgid ""
9352 " int\n"
9353 " guestfs_kill_subprocess (guestfs_h *g);\n"
9354 "\n"
9355 msgstr ""
9356
9357 # type: textblock
9358 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2083
9359 msgid "This kills the qemu subprocess.  You should never need to call this."
9360 msgstr ""
9361
9362 # type: =head2
9363 #: ../src/guestfs-actions.pod:3049
9364 msgid "guestfs_launch"
9365 msgstr ""
9366
9367 # type: verbatim
9368 #: ../src/guestfs-actions.pod:3051
9369 #, no-wrap
9370 msgid ""
9371 " int\n"
9372 " guestfs_launch (guestfs_h *g);\n"
9373 "\n"
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2091
9378 msgid ""
9379 "Internally libguestfs is implemented by running a virtual machine using "
9380 "L<qemu(1)>."
9381 msgstr ""
9382
9383 # type: textblock
9384 #: ../src/guestfs-actions.pod:3057 ../fish/guestfish-actions.pod:2094
9385 msgid ""
9386 "You should call this after configuring the handle (eg. adding drives) but "
9387 "before performing any actions."
9388 msgstr ""
9389
9390 # type: =head2
9391 #: ../src/guestfs-actions.pod:3064
9392 msgid "guestfs_lchown"
9393 msgstr ""
9394
9395 # type: verbatim
9396 #: ../src/guestfs-actions.pod:3066
9397 #, no-wrap
9398 msgid ""
9399 " int\n"
9400 " guestfs_lchown (guestfs_h *g,\n"
9401 "                 int owner,\n"
9402 "                 int group,\n"
9403 "                 const char *path);\n"
9404 "\n"
9405 msgstr ""
9406
9407 # type: textblock
9408 #: ../src/guestfs-actions.pod:3072
9409 msgid ""
9410 "Change the file owner to C<owner> and group to C<group>.  This is like "
9411 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9412 "changed, not the target."
9413 msgstr ""
9414
9415 # type: =head2
9416 #: ../src/guestfs-actions.pod:3084
9417 msgid "guestfs_lgetxattrs"
9418 msgstr ""
9419
9420 # type: verbatim
9421 #: ../src/guestfs-actions.pod:3086
9422 #, no-wrap
9423 msgid ""
9424 " struct guestfs_xattr_list *\n"
9425 " guestfs_lgetxattrs (guestfs_h *g,\n"
9426 "                     const char *path);\n"
9427 "\n"
9428 msgstr ""
9429
9430 # type: textblock
9431 #: ../src/guestfs-actions.pod:3090
9432 msgid ""
9433 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9434 "then it returns the extended attributes of the link itself."
9435 msgstr ""
9436
9437 # type: =head2
9438 #: ../src/guestfs-actions.pod:3100
9439 msgid "guestfs_list_devices"
9440 msgstr ""
9441
9442 # type: verbatim
9443 #: ../src/guestfs-actions.pod:3102
9444 #, no-wrap
9445 msgid ""
9446 " char **\n"
9447 " guestfs_list_devices (guestfs_h *g);\n"
9448 "\n"
9449 msgstr ""
9450
9451 # type: textblock
9452 #: ../src/guestfs-actions.pod:3105 ../fish/guestfish-actions.pod:2121
9453 msgid "List all the block devices."
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:3107 ../fish/guestfish-actions.pod:2123
9458 msgid "The full block device names are returned, eg. C</dev/sda>."
9459 msgstr ""
9460
9461 # type: =head2
9462 #: ../src/guestfs-actions.pod:3117
9463 msgid "guestfs_list_filesystems"
9464 msgstr ""
9465
9466 # type: verbatim
9467 #: ../src/guestfs-actions.pod:3119
9468 #, no-wrap
9469 msgid ""
9470 " char **\n"
9471 " guestfs_list_filesystems (guestfs_h *g);\n"
9472 "\n"
9473 msgstr ""
9474
9475 # type: textblock
9476 #: ../src/guestfs-actions.pod:3122 ../fish/guestfish-actions.pod:2131
9477 msgid ""
9478 "This inspection command looks for filesystems on partitions, block devices "
9479 "and logical volumes, returning a list of devices containing filesystems and "
9480 "their type."
9481 msgstr ""
9482
9483 # type: textblock
9484 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2135
9485 msgid ""
9486 "The return value is a hash, where the keys are the devices containing "
9487 "filesystems, and the values are the filesystem types.  For example:"
9488 msgstr ""
9489
9490 # type: verbatim
9491 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2139
9492 #, no-wrap
9493 msgid ""
9494 " \"/dev/sda1\" => \"ntfs\"\n"
9495 " \"/dev/sda2\" => \"ext2\"\n"
9496 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9497 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9498 "\n"
9499 msgstr ""
9500
9501 # type: textblock
9502 #: ../src/guestfs-actions.pod:3135 ../fish/guestfish-actions.pod:2144
9503 msgid ""
9504 "The value can have the special value \"unknown\", meaning the content of the "
9505 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:3139
9510 msgid ""
9511 "This command runs other libguestfs commands, which might include "
9512 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9513 "soon after launch and only when nothing is mounted."
9514 msgstr ""
9515
9516 # type: textblock
9517 #: ../src/guestfs-actions.pod:3143
9518 msgid ""
9519 "Not all of the filesystems returned will be mountable.  In particular, swap "
9520 "partitions are returned in the list.  Also this command does not check that "
9521 "each filesystem found is valid and mountable, and some filesystems might be "
9522 "mountable but require special options.  Filesystems may not all belong to a "
9523 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:4680
9528 msgid "(Added in 1.5.15)"
9529 msgstr ""
9530
9531 # type: =head2
9532 #: ../src/guestfs-actions.pod:3159
9533 msgid "guestfs_list_partitions"
9534 msgstr ""
9535
9536 # type: verbatim
9537 #: ../src/guestfs-actions.pod:3161
9538 #, no-wrap
9539 msgid ""
9540 " char **\n"
9541 " guestfs_list_partitions (guestfs_h *g);\n"
9542 "\n"
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2164
9547 msgid "List all the partitions detected on all block devices."
9548 msgstr ""
9549
9550 # type: textblock
9551 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2166
9552 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9553 msgstr ""
9554
9555 # type: textblock
9556 #: ../src/guestfs-actions.pod:3168
9557 msgid ""
9558 "This does not return logical volumes.  For that you will need to call "
9559 "C<guestfs_lvs>."
9560 msgstr ""
9561
9562 # type: =head2
9563 #: ../src/guestfs-actions.pod:3179
9564 msgid "guestfs_ll"
9565 msgstr ""
9566
9567 # type: verbatim
9568 #: ../src/guestfs-actions.pod:3181
9569 #, no-wrap
9570 msgid ""
9571 " char *\n"
9572 " guestfs_ll (guestfs_h *g,\n"
9573 "             const char *directory);\n"
9574 "\n"
9575 msgstr ""
9576
9577 # type: textblock
9578 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2177
9579 msgid ""
9580 "List the files in C<directory> (relative to the root directory, there is no "
9581 "cwd) in the format of 'ls -la'."
9582 msgstr ""
9583
9584 # type: textblock
9585 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2180
9586 msgid ""
9587 "This command is mostly useful for interactive sessions.  It is I<not> "
9588 "intended that you try to parse the output string."
9589 msgstr ""
9590
9591 # type: =head2
9592 #: ../src/guestfs-actions.pod:3196
9593 msgid "guestfs_ln"
9594 msgstr ""
9595
9596 # type: verbatim
9597 #: ../src/guestfs-actions.pod:3198
9598 #, no-wrap
9599 msgid ""
9600 " int\n"
9601 " guestfs_ln (guestfs_h *g,\n"
9602 "             const char *target,\n"
9603 "             const char *linkname);\n"
9604 "\n"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2187
9609 msgid "This command creates a hard link using the C<ln> command."
9610 msgstr ""
9611
9612 # type: =head2
9613 #: ../src/guestfs-actions.pod:3209
9614 msgid "guestfs_ln_f"
9615 msgstr ""
9616
9617 # type: verbatim
9618 #: ../src/guestfs-actions.pod:3211
9619 #, no-wrap
9620 msgid ""
9621 " int\n"
9622 " guestfs_ln_f (guestfs_h *g,\n"
9623 "               const char *target,\n"
9624 "               const char *linkname);\n"
9625 "\n"
9626 msgstr ""
9627
9628 # type: textblock
9629 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2193
9630 msgid ""
9631 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9632 "option removes the link (C<linkname>) if it exists already."
9633 msgstr ""
9634
9635 # type: =head2
9636 #: ../src/guestfs-actions.pod:3223
9637 msgid "guestfs_ln_s"
9638 msgstr ""
9639
9640 # type: verbatim
9641 #: ../src/guestfs-actions.pod:3225
9642 #, no-wrap
9643 msgid ""
9644 " int\n"
9645 " guestfs_ln_s (guestfs_h *g,\n"
9646 "               const char *target,\n"
9647 "               const char *linkname);\n"
9648 "\n"
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2200
9653 msgid "This command creates a symbolic link using the C<ln -s> command."
9654 msgstr ""
9655
9656 # type: =head2
9657 #: ../src/guestfs-actions.pod:3236
9658 msgid "guestfs_ln_sf"
9659 msgstr ""
9660
9661 # type: verbatim
9662 #: ../src/guestfs-actions.pod:3238
9663 #, no-wrap
9664 msgid ""
9665 " int\n"
9666 " guestfs_ln_sf (guestfs_h *g,\n"
9667 "                const char *target,\n"
9668 "                const char *linkname);\n"
9669 "\n"
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3243 ../fish/guestfish-actions.pod:2206
9674 msgid ""
9675 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9676 "option removes the link (C<linkname>) if it exists already."
9677 msgstr ""
9678
9679 # type: =head2
9680 #: ../src/guestfs-actions.pod:3250
9681 msgid "guestfs_lremovexattr"
9682 msgstr ""
9683
9684 # type: verbatim
9685 #: ../src/guestfs-actions.pod:3252
9686 #, no-wrap
9687 msgid ""
9688 " int\n"
9689 " guestfs_lremovexattr (guestfs_h *g,\n"
9690 "                       const char *xattr,\n"
9691 "                       const char *path);\n"
9692 "\n"
9693 msgstr ""
9694
9695 # type: textblock
9696 #: ../src/guestfs-actions.pod:3257
9697 msgid ""
9698 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9699 "link, then it removes an extended attribute of the link itself."
9700 msgstr ""
9701
9702 # type: =head2
9703 #: ../src/guestfs-actions.pod:3265
9704 msgid "guestfs_ls"
9705 msgstr ""
9706
9707 # type: verbatim
9708 #: ../src/guestfs-actions.pod:3267
9709 #, no-wrap
9710 msgid ""
9711 " char **\n"
9712 " guestfs_ls (guestfs_h *g,\n"
9713 "             const char *directory);\n"
9714 "\n"
9715 msgstr ""
9716
9717 # type: textblock
9718 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2221
9719 msgid ""
9720 "List the files in C<directory> (relative to the root directory, there is no "
9721 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3275
9726 msgid ""
9727 "This command is mostly useful for interactive sessions.  Programs should "
9728 "probably use C<guestfs_readdir> instead."
9729 msgstr ""
9730
9731 # type: =head2
9732 #: ../src/guestfs-actions.pod:3284
9733 msgid "guestfs_lsetxattr"
9734 msgstr ""
9735
9736 # type: verbatim
9737 #: ../src/guestfs-actions.pod:3286
9738 #, no-wrap
9739 msgid ""
9740 " int\n"
9741 " guestfs_lsetxattr (guestfs_h *g,\n"
9742 "                    const char *xattr,\n"
9743 "                    const char *val,\n"
9744 "                    int vallen,\n"
9745 "                    const char *path);\n"
9746 "\n"
9747 msgstr ""
9748
9749 # type: textblock
9750 #: ../src/guestfs-actions.pod:3293
9751 msgid ""
9752 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9753 "then it sets an extended attribute of the link itself."
9754 msgstr ""
9755
9756 # type: =head2
9757 #: ../src/guestfs-actions.pod:3301
9758 msgid "guestfs_lstat"
9759 msgstr ""
9760
9761 # type: verbatim
9762 #: ../src/guestfs-actions.pod:3303
9763 #, no-wrap
9764 msgid ""
9765 " struct guestfs_stat *\n"
9766 " guestfs_lstat (guestfs_h *g,\n"
9767 "                const char *path);\n"
9768 "\n"
9769 msgstr ""
9770
9771 # type: textblock
9772 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:5734
9773 #: ../fish/guestfish-actions.pod:2240 ../fish/guestfish-actions.pod:3822
9774 msgid "Returns file information for the given C<path>."
9775 msgstr ""
9776
9777 # type: textblock
9778 #: ../src/guestfs-actions.pod:3309
9779 msgid ""
9780 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9781 "link, then the link is stat-ed, not the file it refers to."
9782 msgstr ""
9783
9784 # type: textblock
9785 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2246
9786 msgid "This is the same as the C<lstat(2)> system call."
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:5738
9791 msgid ""
9792 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9793 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9794 msgstr ""
9795
9796 # type: textblock
9797 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:5742
9798 #: ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:6141
9799 msgid "(Added in 0.9.2)"
9800 msgstr ""
9801
9802 # type: =head2
9803 #: ../src/guestfs-actions.pod:3321
9804 msgid "guestfs_lstatlist"
9805 msgstr ""
9806
9807 # type: verbatim
9808 #: ../src/guestfs-actions.pod:3323
9809 #, no-wrap
9810 msgid ""
9811 " struct guestfs_stat_list *\n"
9812 " guestfs_lstatlist (guestfs_h *g,\n"
9813 "                    const char *path,\n"
9814 "                    char *const *names);\n"
9815 "\n"
9816 msgstr ""
9817
9818 # type: textblock
9819 #: ../src/guestfs-actions.pod:3328
9820 msgid ""
9821 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9822 "files, where all files are in the directory C<path>.  C<names> is the list "
9823 "of files from this directory."
9824 msgstr ""
9825
9826 # type: textblock
9827 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2256
9828 msgid ""
9829 "On return you get a list of stat structs, with a one-to-one correspondence "
9830 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9831 "then the C<ino> field of that structure is set to C<-1>."
9832 msgstr ""
9833
9834 # type: textblock
9835 #: ../src/guestfs-actions.pod:3337
9836 msgid ""
9837 "This call is intended for programs that want to efficiently list a directory "
9838 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9839 "for a similarly efficient call for getting extended attributes.  Very long "
9840 "directory listings might cause the protocol message size to be exceeded, "
9841 "causing this call to fail.  The caller must split up such requests into "
9842 "smaller groups of names."
9843 msgstr ""
9844
9845 # type: textblock
9846 #: ../src/guestfs-actions.pod:3345
9847 msgid ""
9848 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9849 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9850 msgstr ""
9851
9852 # type: =head2
9853 #: ../src/guestfs-actions.pod:3351
9854 msgid "guestfs_luks_add_key"
9855 msgstr ""
9856
9857 # type: verbatim
9858 #: ../src/guestfs-actions.pod:3353
9859 #, no-wrap
9860 msgid ""
9861 " int\n"
9862 " guestfs_luks_add_key (guestfs_h *g,\n"
9863 "                       const char *device,\n"
9864 "                       const char *key,\n"
9865 "                       const char *newkey,\n"
9866 "                       int keyslot);\n"
9867 "\n"
9868 msgstr ""
9869
9870 # type: textblock
9871 #: ../src/guestfs-actions.pod:3360 ../fish/guestfish-actions.pod:2273
9872 msgid ""
9873 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9874 "existing key, and is used to access the device.  C<newkey> is the new key to "
9875 "add.  C<keyslot> is the key slot that will be replaced."
9876 msgstr ""
9877
9878 # type: textblock
9879 #: ../src/guestfs-actions.pod:3365
9880 msgid ""
9881 "Note that if C<keyslot> already contains a key, then this command will "
9882 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9883 msgstr ""
9884
9885 # type: textblock
9886 #: ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3411
9887 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3454
9888 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3505
9889 msgid ""
9890 "This function takes a key or passphrase parameter which could contain "
9891 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9892 "information."
9893 msgstr ""
9894
9895 # type: textblock
9896 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3415
9897 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3458
9898 msgid "(Added in 1.5.2)"
9899 msgstr ""
9900
9901 # type: =head2
9902 #: ../src/guestfs-actions.pod:3377
9903 msgid "guestfs_luks_close"
9904 msgstr ""
9905
9906 # type: verbatim
9907 #: ../src/guestfs-actions.pod:3379
9908 #, no-wrap
9909 msgid ""
9910 " int\n"
9911 " guestfs_luks_close (guestfs_h *g,\n"
9912 "                     const char *device);\n"
9913 "\n"
9914 msgstr ""
9915
9916 # type: textblock
9917 #: ../src/guestfs-actions.pod:3383
9918 msgid ""
9919 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9920 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9921 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9922 "underlying block device."
9923 msgstr ""
9924
9925 # type: textblock
9926 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3490
9927 #: ../src/guestfs-actions.pod:3509 ../src/guestfs-actions.pod:3559
9928 #: ../src/guestfs-actions.pod:3607
9929 msgid "(Added in 1.5.1)"
9930 msgstr ""
9931
9932 # type: =head2
9933 #: ../src/guestfs-actions.pod:3393
9934 msgid "guestfs_luks_format"
9935 msgstr ""
9936
9937 # type: verbatim
9938 #: ../src/guestfs-actions.pod:3395
9939 #, no-wrap
9940 msgid ""
9941 " int\n"
9942 " guestfs_luks_format (guestfs_h *g,\n"
9943 "                      const char *device,\n"
9944 "                      const char *key,\n"
9945 "                      int keyslot);\n"
9946 "\n"
9947 msgstr ""
9948
9949 # type: textblock
9950 #: ../src/guestfs-actions.pod:3401 ../fish/guestfish-actions.pod:2299
9951 msgid ""
9952 "This command erases existing data on C<device> and formats the device as a "
9953 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9954 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9955 msgstr ""
9956
9957 # type: textblock
9958 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3431
9959 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:4431
9960 #: ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5569
9961 #: ../src/guestfs-actions.pod:5592 ../src/guestfs-actions.pod:5618
9962 #: ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:2307
9963 #: ../fish/guestfish-actions.pod:2320 ../fish/guestfish-actions.pod:2404
9964 #: ../fish/guestfish-actions.pod:2934 ../fish/guestfish-actions.pod:3441
9965 #: ../fish/guestfish-actions.pod:3721 ../fish/guestfish-actions.pod:3737
9966 #: ../fish/guestfish-actions.pod:3752 ../fish/guestfish-actions.pod:4467
9967 msgid ""
9968 "B<This command is dangerous.  Without careful use you can easily destroy all "
9969 "your data>."
9970 msgstr ""
9971
9972 # type: =head2
9973 #: ../src/guestfs-actions.pod:3417
9974 msgid "guestfs_luks_format_cipher"
9975 msgstr ""
9976
9977 # type: verbatim
9978 #: ../src/guestfs-actions.pod:3419
9979 #, no-wrap
9980 msgid ""
9981 " int\n"
9982 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9983 "                             const char *device,\n"
9984 "                             const char *key,\n"
9985 "                             int keyslot,\n"
9986 "                             const char *cipher);\n"
9987 "\n"
9988 msgstr ""
9989
9990 # type: textblock
9991 #: ../src/guestfs-actions.pod:3426
9992 msgid ""
9993 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9994 "set the C<cipher> used."
9995 msgstr ""
9996
9997 # type: =head2
9998 #: ../src/guestfs-actions.pod:3440
9999 msgid "guestfs_luks_kill_slot"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #: ../src/guestfs-actions.pod:3442
10004 #, no-wrap
10005 msgid ""
10006 " int\n"
10007 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10008 "                         const char *device,\n"
10009 "                         const char *key,\n"
10010 "                         int keyslot);\n"
10011 "\n"
10012 msgstr ""
10013
10014 # type: textblock
10015 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2327
10016 msgid ""
10017 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10018 "device C<device>.  C<key> must be one of the I<other> keys."
10019 msgstr ""
10020
10021 # type: =head2
10022 #: ../src/guestfs-actions.pod:3460
10023 msgid "guestfs_luks_open"
10024 msgstr ""
10025
10026 # type: verbatim
10027 #: ../src/guestfs-actions.pod:3462
10028 #, no-wrap
10029 msgid ""
10030 " int\n"
10031 " guestfs_luks_open (guestfs_h *g,\n"
10032 "                    const char *device,\n"
10033 "                    const char *key,\n"
10034 "                    const char *mapname);\n"
10035 "\n"
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2338
10040 msgid ""
10041 "This command opens a block device which has been encrypted according to the "
10042 "Linux Unified Key Setup (LUKS) standard."
10043 msgstr ""
10044
10045 # type: textblock
10046 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2341
10047 msgid "C<device> is the encrypted block device or partition."
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2343
10052 msgid ""
10053 "The caller must supply one of the keys associated with the LUKS block "
10054 "device, in the C<key> parameter."
10055 msgstr ""
10056
10057 # type: textblock
10058 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2346
10059 msgid ""
10060 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10061 "writes to this block device are decrypted from and encrypted to the "
10062 "underlying C<device> respectively."
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3480
10067 msgid ""
10068 "If this block device contains LVM volume groups, then calling "
10069 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10070 "visible."
10071 msgstr ""
10072
10073 # type: =head2
10074 #: ../src/guestfs-actions.pod:3492
10075 msgid "guestfs_luks_open_ro"
10076 msgstr ""
10077
10078 # type: verbatim
10079 #: ../src/guestfs-actions.pod:3494
10080 #, no-wrap
10081 msgid ""
10082 " int\n"
10083 " guestfs_luks_open_ro (guestfs_h *g,\n"
10084 "                       const char *device,\n"
10085 "                       const char *key,\n"
10086 "                       const char *mapname);\n"
10087 "\n"
10088 msgstr ""
10089
10090 # type: textblock
10091 #: ../src/guestfs-actions.pod:3500
10092 msgid ""
10093 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10094 "created."
10095 msgstr ""
10096
10097 # type: =head2
10098 #: ../src/guestfs-actions.pod:3511
10099 msgid "guestfs_lvcreate"
10100 msgstr ""
10101
10102 # type: verbatim
10103 #: ../src/guestfs-actions.pod:3513
10104 #, no-wrap
10105 msgid ""
10106 " int\n"
10107 " guestfs_lvcreate (guestfs_h *g,\n"
10108 "                   const char *logvol,\n"
10109 "                   const char *volgroup,\n"
10110 "                   int mbytes);\n"
10111 "\n"
10112 msgstr ""
10113
10114 # type: textblock
10115 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2371
10116 msgid ""
10117 "This creates an LVM logical volume called C<logvol> on the volume group "
10118 "C<volgroup>, with C<size> megabytes."
10119 msgstr ""
10120
10121 # type: =head2
10122 #: ../src/guestfs-actions.pod:3526
10123 msgid "guestfs_lvm_canonical_lv_name"
10124 msgstr ""
10125
10126 # type: verbatim
10127 #: ../src/guestfs-actions.pod:3528
10128 #, no-wrap
10129 msgid ""
10130 " char *\n"
10131 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10132 "                                const char *lvname);\n"
10133 "\n"
10134 msgstr ""
10135
10136 # type: textblock
10137 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2378
10138 msgid ""
10139 "This converts alternative naming schemes for LVs that you might find to the "
10140 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10141 "LV>."
10142 msgstr ""
10143
10144 # type: textblock
10145 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2382
10146 msgid ""
10147 "This command returns an error if the C<lvname> parameter does not refer to a "
10148 "logical volume."
10149 msgstr ""
10150
10151 # type: textblock
10152 #: ../src/guestfs-actions.pod:3539
10153 msgid "See also C<guestfs_is_lv>."
10154 msgstr ""
10155
10156 # type: textblock
10157 #: ../src/guestfs-actions.pod:3544
10158 msgid "(Added in 1.5.24)"
10159 msgstr ""
10160
10161 # type: =head2
10162 #: ../src/guestfs-actions.pod:3546
10163 msgid "guestfs_lvm_clear_filter"
10164 msgstr ""
10165
10166 # type: verbatim
10167 #: ../src/guestfs-actions.pod:3548
10168 #, no-wrap
10169 msgid ""
10170 " int\n"
10171 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10172 "\n"
10173 msgstr ""
10174
10175 # type: textblock
10176 #: ../src/guestfs-actions.pod:3551
10177 msgid ""
10178 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10179 "see every block device."
10180 msgstr ""
10181
10182 # type: textblock
10183 #: ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3596
10184 #: ../fish/guestfish-actions.pod:2394 ../fish/guestfish-actions.pod:2425
10185 msgid ""
10186 "This command also clears the LVM cache and performs a volume group scan."
10187 msgstr ""
10188
10189 # type: =head2
10190 #: ../src/guestfs-actions.pod:3561
10191 msgid "guestfs_lvm_remove_all"
10192 msgstr ""
10193
10194 # type: verbatim
10195 #: ../src/guestfs-actions.pod:3563
10196 #, no-wrap
10197 msgid ""
10198 " int\n"
10199 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10200 "\n"
10201 msgstr ""
10202
10203 # type: textblock
10204 #: ../src/guestfs-actions.pod:3566 ../fish/guestfish-actions.pod:2401
10205 msgid ""
10206 "This command removes all LVM logical volumes, volume groups and physical "
10207 "volumes."
10208 msgstr ""
10209
10210 # type: =head2
10211 #: ../src/guestfs-actions.pod:3576
10212 msgid "guestfs_lvm_set_filter"
10213 msgstr ""
10214
10215 # type: verbatim
10216 #: ../src/guestfs-actions.pod:3578
10217 #, no-wrap
10218 msgid ""
10219 " int\n"
10220 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10221 "                         char *const *devices);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3582 ../fish/guestfish-actions.pod:2411
10227 msgid ""
10228 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10229 "block devices in the list C<devices>, and will ignore all other attached "
10230 "block devices."
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2415
10235 msgid ""
10236 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10237 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10238 "there are two types of duplication possible: either cloned PVs/VGs which "
10239 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10240 "same name.  In normal operation you cannot create this situation, but you "
10241 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10242 "inside the LVM metadata."
10243 msgstr ""
10244
10245 # type: textblock
10246 #: ../src/guestfs-actions.pod:3599 ../fish/guestfish-actions.pod:2428
10247 msgid "You can filter whole block devices or individual partitions."
10248 msgstr ""
10249
10250 # type: textblock
10251 #: ../src/guestfs-actions.pod:3601 ../fish/guestfish-actions.pod:2430
10252 msgid ""
10253 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10254 "filesystem), even if you are not filtering out that VG."
10255 msgstr ""
10256
10257 # type: =head2
10258 #: ../src/guestfs-actions.pod:3609
10259 msgid "guestfs_lvremove"
10260 msgstr ""
10261
10262 # type: verbatim
10263 #: ../src/guestfs-actions.pod:3611
10264 #, no-wrap
10265 msgid ""
10266 " int\n"
10267 " guestfs_lvremove (guestfs_h *g,\n"
10268 "                   const char *device);\n"
10269 "\n"
10270 msgstr ""
10271
10272 # type: textblock
10273 #: ../src/guestfs-actions.pod:3615 ../fish/guestfish-actions.pod:2438
10274 msgid ""
10275 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10276 "LV, such as C</dev/VG/LV>."
10277 msgstr ""
10278
10279 # type: textblock
10280 #: ../src/guestfs-actions.pod:3618 ../fish/guestfish-actions.pod:2441
10281 msgid ""
10282 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10283 "dev/VG>."
10284 msgstr ""
10285
10286 # type: textblock
10287 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:4777
10288 #: ../src/guestfs-actions.pod:6507
10289 msgid "(Added in 1.0.13)"
10290 msgstr ""
10291
10292 # type: =head2
10293 #: ../src/guestfs-actions.pod:3625
10294 msgid "guestfs_lvrename"
10295 msgstr ""
10296
10297 # type: verbatim
10298 #: ../src/guestfs-actions.pod:3627
10299 #, no-wrap
10300 msgid ""
10301 " int\n"
10302 " guestfs_lvrename (guestfs_h *g,\n"
10303 "                   const char *logvol,\n"
10304 "                   const char *newlogvol);\n"
10305 "\n"
10306 msgstr ""
10307
10308 # type: textblock
10309 #: ../src/guestfs-actions.pod:3632 ../fish/guestfish-actions.pod:2448
10310 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10311 msgstr ""
10312
10313 # type: textblock
10314 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:6520
10315 msgid "(Added in 1.0.83)"
10316 msgstr ""
10317
10318 # type: =head2
10319 #: ../src/guestfs-actions.pod:3638
10320 msgid "guestfs_lvresize"
10321 msgstr ""
10322
10323 # type: verbatim
10324 #: ../src/guestfs-actions.pod:3640
10325 #, no-wrap
10326 msgid ""
10327 " int\n"
10328 " guestfs_lvresize (guestfs_h *g,\n"
10329 "                   const char *device,\n"
10330 "                   int mbytes);\n"
10331 "\n"
10332 msgstr ""
10333
10334 # type: textblock
10335 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2454
10336 msgid ""
10337 "This resizes (expands or shrinks) an existing LVM logical volume to "
10338 "C<mbytes>.  When reducing, data in the reduced part is lost."
10339 msgstr ""
10340
10341 # type: =head2
10342 #: ../src/guestfs-actions.pod:3653
10343 msgid "guestfs_lvresize_free"
10344 msgstr ""
10345
10346 # type: verbatim
10347 #: ../src/guestfs-actions.pod:3655
10348 #, no-wrap
10349 msgid ""
10350 " int\n"
10351 " guestfs_lvresize_free (guestfs_h *g,\n"
10352 "                        const char *lv,\n"
10353 "                        int percent);\n"
10354 "\n"
10355 msgstr ""
10356
10357 # type: textblock
10358 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2462
10359 msgid ""
10360 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10361 "remaining free space in the volume group.  Commonly you would call this with "
10362 "pc = 100 which expands the logical volume as much as possible, using all "
10363 "remaining free space in the volume group."
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3668
10368 msgid "(Added in 1.3.3)"
10369 msgstr ""
10370
10371 # type: =head2
10372 #: ../src/guestfs-actions.pod:3670
10373 msgid "guestfs_lvs"
10374 msgstr ""
10375
10376 # type: verbatim
10377 #: ../src/guestfs-actions.pod:3672
10378 #, no-wrap
10379 msgid ""
10380 " char **\n"
10381 " guestfs_lvs (guestfs_h *g);\n"
10382 "\n"
10383 msgstr ""
10384
10385 # type: textblock
10386 #: ../src/guestfs-actions.pod:3675 ../fish/guestfish-actions.pod:2472
10387 msgid ""
10388 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10389 "(8)> command."
10390 msgstr ""
10391
10392 # type: textblock
10393 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2475
10394 msgid ""
10395 "This returns a list of the logical volume device names (eg. C</dev/"
10396 "VolGroup00/LogVol00>)."
10397 msgstr ""
10398
10399 # type: textblock
10400 #: ../src/guestfs-actions.pod:3681
10401 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10402 msgstr ""
10403
10404 # type: =head2
10405 #: ../src/guestfs-actions.pod:3689
10406 msgid "guestfs_lvs_full"
10407 msgstr ""
10408
10409 # type: verbatim
10410 #: ../src/guestfs-actions.pod:3691
10411 #, no-wrap
10412 msgid ""
10413 " struct guestfs_lvm_lv_list *\n"
10414 " guestfs_lvs_full (guestfs_h *g);\n"
10415 "\n"
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2484
10420 msgid ""
10421 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10422 "(8)> command.  The \"full\" version includes all fields."
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3697
10427 msgid ""
10428 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10429 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10430 msgstr ""
10431
10432 # type: =head2
10433 #: ../src/guestfs-actions.pod:3703
10434 msgid "guestfs_lvuuid"
10435 msgstr ""
10436
10437 # type: verbatim
10438 #: ../src/guestfs-actions.pod:3705
10439 #, no-wrap
10440 msgid ""
10441 " char *\n"
10442 " guestfs_lvuuid (guestfs_h *g,\n"
10443 "                 const char *device);\n"
10444 "\n"
10445 msgstr ""
10446
10447 # type: textblock
10448 #: ../src/guestfs-actions.pod:3709 ../fish/guestfish-actions.pod:2491
10449 msgid "This command returns the UUID of the LVM LV C<device>."
10450 msgstr ""
10451
10452 # type: =head2
10453 #: ../src/guestfs-actions.pod:3716
10454 msgid "guestfs_lxattrlist"
10455 msgstr ""
10456
10457 # type: verbatim
10458 #: ../src/guestfs-actions.pod:3718
10459 #, no-wrap
10460 msgid ""
10461 " struct guestfs_xattr_list *\n"
10462 " guestfs_lxattrlist (guestfs_h *g,\n"
10463 "                     const char *path,\n"
10464 "                     char *const *names);\n"
10465 "\n"
10466 msgstr ""
10467
10468 # type: textblock
10469 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2497
10470 msgid ""
10471 "This call allows you to get the extended attributes of multiple files, where "
10472 "all files are in the directory C<path>.  C<names> is the list of files from "
10473 "this directory."
10474 msgstr ""
10475
10476 # type: textblock
10477 #: ../src/guestfs-actions.pod:3727 ../fish/guestfish-actions.pod:2501
10478 msgid ""
10479 "On return you get a flat list of xattr structs which must be interpreted "
10480 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10481 "C<attrval> in this struct is zero-length to indicate there was an error "
10482 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10483 "number (the number of following attributes for this file, which could be C<"
10484 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10485 "for the first named file.  This repeats for the second and subsequent files."
10486 msgstr ""
10487
10488 # type: textblock
10489 #: ../src/guestfs-actions.pod:3737
10490 msgid ""
10491 "This call is intended for programs that want to efficiently list a directory "
10492 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10493 "a similarly efficient call for getting standard stats.  Very long directory "
10494 "listings might cause the protocol message size to be exceeded, causing this "
10495 "call to fail.  The caller must split up such requests into smaller groups of "
10496 "names."
10497 msgstr ""
10498
10499 # type: =head2
10500 #: ../src/guestfs-actions.pod:3751
10501 msgid "guestfs_mkdir"
10502 msgstr ""
10503
10504 # type: verbatim
10505 #: ../src/guestfs-actions.pod:3753
10506 #, no-wrap
10507 msgid ""
10508 " int\n"
10509 " guestfs_mkdir (guestfs_h *g,\n"
10510 "                const char *path);\n"
10511 "\n"
10512 msgstr ""
10513
10514 # type: textblock
10515 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2523
10516 msgid "Create a directory named C<path>."
10517 msgstr ""
10518
10519 # type: =head2
10520 #: ../src/guestfs-actions.pod:3763
10521 msgid "guestfs_mkdir_mode"
10522 msgstr ""
10523
10524 # type: verbatim
10525 #: ../src/guestfs-actions.pod:3765
10526 #, no-wrap
10527 msgid ""
10528 " int\n"
10529 " guestfs_mkdir_mode (guestfs_h *g,\n"
10530 "                     const char *path,\n"
10531 "                     int mode);\n"
10532 "\n"
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3770 ../fish/guestfish-actions.pod:2529
10537 msgid ""
10538 "This command creates a directory, setting the initial permissions of the "
10539 "directory to C<mode>."
10540 msgstr ""
10541
10542 # type: textblock
10543 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2532
10544 msgid ""
10545 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10546 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10547 "other ways."
10548 msgstr ""
10549
10550 # type: textblock
10551 #: ../src/guestfs-actions.pod:3777
10552 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10553 msgstr ""
10554
10555 # type: =head2
10556 #: ../src/guestfs-actions.pod:3783
10557 msgid "guestfs_mkdir_p"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #: ../src/guestfs-actions.pod:3785
10562 #, no-wrap
10563 msgid ""
10564 " int\n"
10565 " guestfs_mkdir_p (guestfs_h *g,\n"
10566 "                  const char *path);\n"
10567 "\n"
10568 msgstr ""
10569
10570 # type: textblock
10571 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2542
10572 msgid ""
10573 "Create a directory named C<path>, creating any parent directories as "
10574 "necessary.  This is like the C<mkdir -p> shell command."
10575 msgstr ""
10576
10577 # type: =head2
10578 #: ../src/guestfs-actions.pod:3796
10579 msgid "guestfs_mkdtemp"
10580 msgstr ""
10581
10582 # type: verbatim
10583 #: ../src/guestfs-actions.pod:3798
10584 #, no-wrap
10585 msgid ""
10586 " char *\n"
10587 " guestfs_mkdtemp (guestfs_h *g,\n"
10588 "                  const char *template);\n"
10589 "\n"
10590 msgstr ""
10591
10592 # type: textblock
10593 #: ../src/guestfs-actions.pod:3802 ../fish/guestfish-actions.pod:2549
10594 msgid ""
10595 "This command creates a temporary directory.  The C<template> parameter "
10596 "should be a full pathname for the temporary directory name with the final "
10597 "six characters being \"XXXXXX\"."
10598 msgstr ""
10599
10600 # type: textblock
10601 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2554
10602 msgid ""
10603 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10604 "being suitable for Windows filesystems."
10605 msgstr ""
10606
10607 # type: textblock
10608 #: ../src/guestfs-actions.pod:3810 ../fish/guestfish-actions.pod:2557
10609 msgid "The name of the temporary directory that was created is returned."
10610 msgstr ""
10611
10612 # type: textblock
10613 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2560
10614 msgid "The temporary directory is created with mode 0700 and is owned by root."
10615 msgstr ""
10616
10617 # type: textblock
10618 #: ../src/guestfs-actions.pod:3816 ../fish/guestfish-actions.pod:2563
10619 msgid ""
10620 "The caller is responsible for deleting the temporary directory and its "
10621 "contents after use."
10622 msgstr ""
10623
10624 # type: textblock
10625 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2566
10626 msgid "See also: L<mkdtemp(3)>"
10627 msgstr ""
10628
10629 # type: =head2
10630 #: ../src/guestfs-actions.pod:3826
10631 msgid "guestfs_mke2fs_J"
10632 msgstr ""
10633
10634 # type: verbatim
10635 #: ../src/guestfs-actions.pod:3828
10636 #, no-wrap
10637 msgid ""
10638 " int\n"
10639 " guestfs_mke2fs_J (guestfs_h *g,\n"
10640 "                   const char *fstype,\n"
10641 "                   int blocksize,\n"
10642 "                   const char *device,\n"
10643 "                   const char *journal);\n"
10644 "\n"
10645 msgstr ""
10646
10647 # type: textblock
10648 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2572
10649 msgid ""
10650 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10651 "C<journal>.  It is equivalent to the command:"
10652 msgstr ""
10653
10654 # type: verbatim
10655 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2576
10656 #, no-wrap
10657 msgid ""
10658 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3841
10664 msgid "See also C<guestfs_mke2journal>."
10665 msgstr ""
10666
10667 # type: textblock
10668 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3863
10669 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3897
10670 #: ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3925
10671 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4167
10672 msgid "(Added in 1.0.68)"
10673 msgstr ""
10674
10675 # type: =head2
10676 #: ../src/guestfs-actions.pod:3847
10677 msgid "guestfs_mke2fs_JL"
10678 msgstr ""
10679
10680 # type: verbatim
10681 #: ../src/guestfs-actions.pod:3849
10682 #, no-wrap
10683 msgid ""
10684 " int\n"
10685 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10686 "                    const char *fstype,\n"
10687 "                    int blocksize,\n"
10688 "                    const char *device,\n"
10689 "                    const char *label);\n"
10690 "\n"
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2584
10695 msgid ""
10696 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10697 "the journal labeled C<label>."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3859
10702 msgid "See also C<guestfs_mke2journal_L>."
10703 msgstr ""
10704
10705 # type: =head2
10706 #: ../src/guestfs-actions.pod:3865
10707 msgid "guestfs_mke2fs_JU"
10708 msgstr ""
10709
10710 # type: verbatim
10711 #: ../src/guestfs-actions.pod:3867
10712 #, no-wrap
10713 msgid ""
10714 " int\n"
10715 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10716 "                    const char *fstype,\n"
10717 "                    int blocksize,\n"
10718 "                    const char *device,\n"
10719 "                    const char *uuid);\n"
10720 "\n"
10721 msgstr ""
10722
10723 # type: textblock
10724 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2593
10725 msgid ""
10726 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10727 "the journal with UUID C<uuid>."
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:3877
10732 msgid "See also C<guestfs_mke2journal_U>."
10733 msgstr ""
10734
10735 # type: =head2
10736 #: ../src/guestfs-actions.pod:3883
10737 msgid "guestfs_mke2journal"
10738 msgstr ""
10739
10740 # type: verbatim
10741 #: ../src/guestfs-actions.pod:3885
10742 #, no-wrap
10743 msgid ""
10744 " int\n"
10745 " guestfs_mke2journal (guestfs_h *g,\n"
10746 "                      int blocksize,\n"
10747 "                      const char *device);\n"
10748 "\n"
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:3890 ../fish/guestfish-actions.pod:2602
10753 msgid ""
10754 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10755 "command:"
10756 msgstr ""
10757
10758 # type: verbatim
10759 #: ../src/guestfs-actions.pod:3893 ../fish/guestfish-actions.pod:2605
10760 #, no-wrap
10761 msgid ""
10762 " mke2fs -O journal_dev -b blocksize device\n"
10763 "\n"
10764 msgstr ""
10765
10766 # type: =head2
10767 #: ../src/guestfs-actions.pod:3899
10768 msgid "guestfs_mke2journal_L"
10769 msgstr ""
10770
10771 # type: verbatim
10772 #: ../src/guestfs-actions.pod:3901
10773 #, no-wrap
10774 msgid ""
10775 " int\n"
10776 " guestfs_mke2journal_L (guestfs_h *g,\n"
10777 "                        int blocksize,\n"
10778 "                        const char *label,\n"
10779 "                        const char *device);\n"
10780 "\n"
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2611
10785 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10786 msgstr ""
10787
10788 # type: =head2
10789 #: ../src/guestfs-actions.pod:3913
10790 msgid "guestfs_mke2journal_U"
10791 msgstr ""
10792
10793 # type: verbatim
10794 #: ../src/guestfs-actions.pod:3915
10795 #, no-wrap
10796 msgid ""
10797 " int\n"
10798 " guestfs_mke2journal_U (guestfs_h *g,\n"
10799 "                        int blocksize,\n"
10800 "                        const char *uuid,\n"
10801 "                        const char *device);\n"
10802 "\n"
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2617
10807 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10808 msgstr ""
10809
10810 # type: =head2
10811 #: ../src/guestfs-actions.pod:3927
10812 msgid "guestfs_mkfifo"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #: ../src/guestfs-actions.pod:3929
10817 #, no-wrap
10818 msgid ""
10819 " int\n"
10820 " guestfs_mkfifo (guestfs_h *g,\n"
10821 "                 int mode,\n"
10822 "                 const char *path);\n"
10823 "\n"
10824 msgstr ""
10825
10826 # type: textblock
10827 #: ../src/guestfs-actions.pod:3934
10828 msgid ""
10829 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10830 "is just a convenient wrapper around C<guestfs_mknod>."
10831 msgstr ""
10832
10833 # type: =head2
10834 #: ../src/guestfs-actions.pod:3944
10835 msgid "guestfs_mkfs"
10836 msgstr ""
10837
10838 # type: verbatim
10839 #: ../src/guestfs-actions.pod:3946
10840 #, no-wrap
10841 msgid ""
10842 " int\n"
10843 " guestfs_mkfs (guestfs_h *g,\n"
10844 "               const char *fstype,\n"
10845 "               const char *device);\n"
10846 "\n"
10847 msgstr ""
10848
10849 # type: textblock
10850 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2633
10851 msgid ""
10852 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10853 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10854 msgstr ""
10855
10856 # type: =head2
10857 #: ../src/guestfs-actions.pod:3959
10858 msgid "guestfs_mkfs_b"
10859 msgstr ""
10860
10861 # type: verbatim
10862 #: ../src/guestfs-actions.pod:3961
10863 #, no-wrap
10864 msgid ""
10865 " int\n"
10866 " guestfs_mkfs_b (guestfs_h *g,\n"
10867 "                 const char *fstype,\n"
10868 "                 int blocksize,\n"
10869 "                 const char *device);\n"
10870 "\n"
10871 msgstr ""
10872
10873 # type: textblock
10874 #: ../src/guestfs-actions.pod:3967
10875 msgid ""
10876 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10877 "block size of the resulting filesystem.  Supported block sizes depend on the "
10878 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3972 ../fish/guestfish-actions.pod:2646
10883 msgid ""
10884 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10885 "cluster size."
10886 msgstr ""
10887
10888 # type: =head2
10889 #: ../src/guestfs-actions.pod:3979
10890 msgid "guestfs_mkmountpoint"
10891 msgstr ""
10892
10893 # type: verbatim
10894 #: ../src/guestfs-actions.pod:3981
10895 #, no-wrap
10896 msgid ""
10897 " int\n"
10898 " guestfs_mkmountpoint (guestfs_h *g,\n"
10899 "                       const char *exemptpath);\n"
10900 "\n"
10901 msgstr ""
10902
10903 # type: textblock
10904 #: ../src/guestfs-actions.pod:3985
10905 msgid ""
10906 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10907 "that can be used to create extra mountpoints before mounting the first "
10908 "filesystem."
10909 msgstr ""
10910
10911 # type: textblock
10912 #: ../src/guestfs-actions.pod:3989 ../fish/guestfish-actions.pod:2657
10913 msgid ""
10914 "These calls are I<only> necessary in some very limited circumstances, mainly "
10915 "the case where you want to mount a mix of unrelated and/or read-only "
10916 "filesystems together."
10917 msgstr ""
10918
10919 # type: textblock
10920 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:2661
10921 msgid ""
10922 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10923 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10924 "inside that.  You can unpack this as follows in guestfish:"
10925 msgstr ""
10926
10927 # type: verbatim
10928 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2666
10929 #, no-wrap
10930 msgid ""
10931 " add-ro Fedora-11-i686-Live.iso\n"
10932 " run\n"
10933 " mkmountpoint /cd\n"
10934 " mkmountpoint /sqsh\n"
10935 " mkmountpoint /ext3fs\n"
10936 " mount /dev/sda /cd\n"
10937 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10938 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10939 "\n"
10940 msgstr ""
10941
10942 # type: textblock
10943 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2675
10944 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10945 msgstr ""
10946
10947 # type: textblock
10948 #: ../src/guestfs-actions.pod:4009
10949 msgid ""
10950 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10951 "may get unexpected errors if you try to mix these calls.  It is safest to "
10952 "manually unmount filesystems and remove mountpoints after use."
10953 msgstr ""
10954
10955 # type: textblock
10956 #: ../src/guestfs-actions.pod:4013
10957 msgid ""
10958 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10959 "first, so for this to work for manual mountpoints, you must ensure that the "
10960 "innermost mountpoints have the longest pathnames, as in the example code "
10961 "above."
10962 msgstr ""
10963
10964 # type: textblock
10965 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2686
10966 msgid ""
10967 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10968 msgstr ""
10969
10970 # type: textblock
10971 #: ../src/guestfs-actions.pod:4020
10972 msgid ""
10973 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10974 "means that C<guestfs_umount_all> is called when the handle is closed which "
10975 "can also trigger these issues."
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4285
10980 #: ../src/guestfs-actions.pod:5178
10981 msgid "(Added in 1.0.62)"
10982 msgstr ""
10983
10984 # type: =head2
10985 #: ../src/guestfs-actions.pod:4028
10986 msgid "guestfs_mknod"
10987 msgstr ""
10988
10989 # type: verbatim
10990 #: ../src/guestfs-actions.pod:4030
10991 #, no-wrap
10992 msgid ""
10993 " int\n"
10994 " guestfs_mknod (guestfs_h *g,\n"
10995 "                int mode,\n"
10996 "                int devmajor,\n"
10997 "                int devminor,\n"
10998 "                const char *path);\n"
10999 "\n"
11000 msgstr ""
11001
11002 # type: textblock
11003 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2696
11004 msgid ""
11005 "This call creates block or character special devices, or named pipes (FIFOs)."
11006 msgstr ""
11007
11008 # type: textblock
11009 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2699
11010 msgid ""
11011 "The C<mode> parameter should be the mode, using the standard constants.  "
11012 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11013 "used when creating block and character special devices."
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:4045
11018 msgid ""
11019 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11020 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11021 "regular file).  These constants are available in the standard Linux header "
11022 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11023 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11024 "the appropriate constant for you."
11025 msgstr ""
11026
11027 # type: =head2
11028 #: ../src/guestfs-actions.pod:4059
11029 msgid "guestfs_mknod_b"
11030 msgstr ""
11031
11032 # type: verbatim
11033 #: ../src/guestfs-actions.pod:4061
11034 #, no-wrap
11035 msgid ""
11036 " int\n"
11037 " guestfs_mknod_b (guestfs_h *g,\n"
11038 "                  int mode,\n"
11039 "                  int devmajor,\n"
11040 "                  int devminor,\n"
11041 "                  const char *path);\n"
11042 "\n"
11043 msgstr ""
11044
11045 # type: textblock
11046 #: ../src/guestfs-actions.pod:4068
11047 msgid ""
11048 "This call creates a block device node called C<path> with mode C<mode> and "
11049 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11050 "wrapper around C<guestfs_mknod>."
11051 msgstr ""
11052
11053 # type: =head2
11054 #: ../src/guestfs-actions.pod:4078
11055 msgid "guestfs_mknod_c"
11056 msgstr ""
11057
11058 # type: verbatim
11059 #: ../src/guestfs-actions.pod:4080
11060 #, no-wrap
11061 msgid ""
11062 " int\n"
11063 " guestfs_mknod_c (guestfs_h *g,\n"
11064 "                  int mode,\n"
11065 "                  int devmajor,\n"
11066 "                  int devminor,\n"
11067 "                  const char *path);\n"
11068 "\n"
11069 msgstr ""
11070
11071 # type: textblock
11072 #: ../src/guestfs-actions.pod:4087
11073 msgid ""
11074 "This call creates a char device node called C<path> with mode C<mode> and "
11075 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11076 "wrapper around C<guestfs_mknod>."
11077 msgstr ""
11078
11079 # type: =head2
11080 #: ../src/guestfs-actions.pod:4097
11081 msgid "guestfs_mkswap"
11082 msgstr ""
11083
11084 # type: verbatim
11085 #: ../src/guestfs-actions.pod:4099
11086 #, no-wrap
11087 msgid ""
11088 " int\n"
11089 " guestfs_mkswap (guestfs_h *g,\n"
11090 "                 const char *device);\n"
11091 "\n"
11092 msgstr ""
11093
11094 # type: textblock
11095 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:2738
11096 msgid "Create a swap partition on C<device>."
11097 msgstr ""
11098
11099 # type: =head2
11100 #: ../src/guestfs-actions.pod:4109
11101 msgid "guestfs_mkswap_L"
11102 msgstr ""
11103
11104 # type: verbatim
11105 #: ../src/guestfs-actions.pod:4111
11106 #, no-wrap
11107 msgid ""
11108 " int\n"
11109 " guestfs_mkswap_L (guestfs_h *g,\n"
11110 "                   const char *label,\n"
11111 "                   const char *device);\n"
11112 "\n"
11113 msgstr ""
11114
11115 # type: textblock
11116 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2744
11117 msgid "Create a swap partition on C<device> with label C<label>."
11118 msgstr ""
11119
11120 # type: textblock
11121 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:2746
11122 msgid ""
11123 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11124 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11125 "or swap tools."
11126 msgstr ""
11127
11128 # type: =head2
11129 #: ../src/guestfs-actions.pod:4126
11130 msgid "guestfs_mkswap_U"
11131 msgstr ""
11132
11133 # type: verbatim
11134 #: ../src/guestfs-actions.pod:4128
11135 #, no-wrap
11136 msgid ""
11137 " int\n"
11138 " guestfs_mkswap_U (guestfs_h *g,\n"
11139 "                   const char *uuid,\n"
11140 "                   const char *device);\n"
11141 "\n"
11142 msgstr ""
11143
11144 # type: textblock
11145 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2754
11146 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11147 msgstr ""
11148
11149 # type: =head2
11150 #: ../src/guestfs-actions.pod:4139
11151 msgid "guestfs_mkswap_file"
11152 msgstr ""
11153
11154 # type: verbatim
11155 #: ../src/guestfs-actions.pod:4141
11156 #, no-wrap
11157 msgid ""
11158 " int\n"
11159 " guestfs_mkswap_file (guestfs_h *g,\n"
11160 "                      const char *path);\n"
11161 "\n"
11162 msgstr ""
11163
11164 # type: textblock
11165 #: ../src/guestfs-actions.pod:4145 ../fish/guestfish-actions.pod:2760
11166 msgid "Create a swap file."
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:4147
11171 msgid ""
11172 "This command just writes a swap file signature to an existing file.  To "
11173 "create the file itself, use something like C<guestfs_fallocate>."
11174 msgstr ""
11175
11176 # type: =head2
11177 #: ../src/guestfs-actions.pod:4154
11178 msgid "guestfs_modprobe"
11179 msgstr ""
11180
11181 # type: verbatim
11182 #: ../src/guestfs-actions.pod:4156
11183 #, no-wrap
11184 msgid ""
11185 " int\n"
11186 " guestfs_modprobe (guestfs_h *g,\n"
11187 "                   const char *modulename);\n"
11188 "\n"
11189 msgstr ""
11190
11191 # type: textblock
11192 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:2769
11193 msgid "This loads a kernel module in the appliance."
11194 msgstr ""
11195
11196 # type: textblock
11197 #: ../src/guestfs-actions.pod:4162 ../fish/guestfish-actions.pod:2771
11198 msgid ""
11199 "The kernel module must have been whitelisted when libguestfs was built (see "
11200 "C<appliance/kmod.whitelist.in> in the source)."
11201 msgstr ""
11202
11203 # type: =head2
11204 #: ../src/guestfs-actions.pod:4169
11205 msgid "guestfs_mount"
11206 msgstr ""
11207
11208 # type: verbatim
11209 #: ../src/guestfs-actions.pod:4171
11210 #, no-wrap
11211 msgid ""
11212 " int\n"
11213 " guestfs_mount (guestfs_h *g,\n"
11214 "                const char *device,\n"
11215 "                const char *mountpoint);\n"
11216 "\n"
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2778
11221 msgid ""
11222 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11223 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11224 "those block devices contain partitions, they will have the usual names (eg. "
11225 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11226 msgstr ""
11227
11228 # type: textblock
11229 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2784
11230 msgid ""
11231 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11232 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11233 "mounted on directories which already exist."
11234 msgstr ""
11235
11236 # type: textblock
11237 #: ../src/guestfs-actions.pod:4187 ../fish/guestfish-actions.pod:2789
11238 msgid ""
11239 "The mounted filesystem is writable, if we have sufficient permissions on the "
11240 "underlying device."
11241 msgstr ""
11242
11243 # type: textblock
11244 #: ../src/guestfs-actions.pod:4190
11245 msgid ""
11246 "B<Important note:> When you use this call, the filesystem options C<sync> "
11247 "and C<noatime> are set implicitly.  This was originally done because we "
11248 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11249 "very large negative performance impact and negligible effect on "
11250 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11251 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11252 "(use an empty string for the first parameter if you don't want any options)."
11253 msgstr ""
11254
11255 # type: =head2
11256 #: ../src/guestfs-actions.pod:4204
11257 msgid "guestfs_mount_loop"
11258 msgstr ""
11259
11260 # type: verbatim
11261 #: ../src/guestfs-actions.pod:4206
11262 #, no-wrap
11263 msgid ""
11264 " int\n"
11265 " guestfs_mount_loop (guestfs_h *g,\n"
11266 "                     const char *file,\n"
11267 "                     const char *mountpoint);\n"
11268 "\n"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:2806
11273 msgid ""
11274 "This command lets you mount C<file> (a filesystem image in a file) on a "
11275 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11276 "mountpoint>."
11277 msgstr ""
11278
11279 # type: =head2
11280 #: ../src/guestfs-actions.pod:4219
11281 msgid "guestfs_mount_options"
11282 msgstr ""
11283
11284 # type: verbatim
11285 #: ../src/guestfs-actions.pod:4221
11286 #, no-wrap
11287 msgid ""
11288 " int\n"
11289 " guestfs_mount_options (guestfs_h *g,\n"
11290 "                        const char *options,\n"
11291 "                        const char *device,\n"
11292 "                        const char *mountpoint);\n"
11293 "\n"
11294 msgstr ""
11295
11296 # type: textblock
11297 #: ../src/guestfs-actions.pod:4227
11298 msgid ""
11299 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11300 "the mount options as for the L<mount(8)> I<-o> flag."
11301 msgstr ""
11302
11303 # type: textblock
11304 #: ../src/guestfs-actions.pod:4231 ../fish/guestfish-actions.pod:2818
11305 msgid ""
11306 "If the C<options> parameter is an empty string, then no options are passed "
11307 "(all options default to whatever the filesystem uses)."
11308 msgstr ""
11309
11310 # type: textblock
11311 #: ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4251
11312 #: ../src/guestfs-actions.pod:4268
11313 msgid "(Added in 1.0.10)"
11314 msgstr ""
11315
11316 # type: =head2
11317 #: ../src/guestfs-actions.pod:4239
11318 msgid "guestfs_mount_ro"
11319 msgstr ""
11320
11321 # type: verbatim
11322 #: ../src/guestfs-actions.pod:4241
11323 #, no-wrap
11324 msgid ""
11325 " int\n"
11326 " guestfs_mount_ro (guestfs_h *g,\n"
11327 "                   const char *device,\n"
11328 "                   const char *mountpoint);\n"
11329 "\n"
11330 msgstr ""
11331
11332 # type: textblock
11333 #: ../src/guestfs-actions.pod:4246
11334 msgid ""
11335 "This is the same as the C<guestfs_mount> command, but it mounts the "
11336 "filesystem with the read-only (I<-o ro>) flag."
11337 msgstr ""
11338
11339 # type: =head2
11340 #: ../src/guestfs-actions.pod:4253
11341 msgid "guestfs_mount_vfs"
11342 msgstr ""
11343
11344 # type: verbatim
11345 #: ../src/guestfs-actions.pod:4255
11346 #, no-wrap
11347 msgid ""
11348 " int\n"
11349 " guestfs_mount_vfs (guestfs_h *g,\n"
11350 "                    const char *options,\n"
11351 "                    const char *vfstype,\n"
11352 "                    const char *device,\n"
11353 "                    const char *mountpoint);\n"
11354 "\n"
11355 msgstr ""
11356
11357 # type: textblock
11358 #: ../src/guestfs-actions.pod:4262
11359 msgid ""
11360 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11361 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11362 "t> flags."
11363 msgstr ""
11364
11365 # type: =head2
11366 #: ../src/guestfs-actions.pod:4270
11367 msgid "guestfs_mountpoints"
11368 msgstr ""
11369
11370 # type: verbatim
11371 #: ../src/guestfs-actions.pod:4272
11372 #, no-wrap
11373 msgid ""
11374 " char **\n"
11375 " guestfs_mountpoints (guestfs_h *g);\n"
11376 "\n"
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4275
11381 msgid ""
11382 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11383 "devices.  This one returns a hash table (map) of device name to directory "
11384 "where the device is mounted."
11385 msgstr ""
11386
11387 # type: =head2
11388 #: ../src/guestfs-actions.pod:4287
11389 msgid "guestfs_mounts"
11390 msgstr ""
11391
11392 # type: verbatim
11393 #: ../src/guestfs-actions.pod:4289
11394 #, no-wrap
11395 msgid ""
11396 " char **\n"
11397 " guestfs_mounts (guestfs_h *g);\n"
11398 "\n"
11399 msgstr ""
11400
11401 # type: textblock
11402 #: ../src/guestfs-actions.pod:4292 ../fish/guestfish-actions.pod:2849
11403 msgid ""
11404 "This returns the list of currently mounted filesystems.  It returns the list "
11405 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11406 msgstr ""
11407
11408 # type: textblock
11409 #: ../src/guestfs-actions.pod:4295 ../fish/guestfish-actions.pod:2852
11410 msgid "Some internal mounts are not shown."
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4297
11415 msgid "See also: C<guestfs_mountpoints>"
11416 msgstr ""
11417
11418 # type: =head2
11419 #: ../src/guestfs-actions.pod:4305
11420 msgid "guestfs_mv"
11421 msgstr ""
11422
11423 # type: verbatim
11424 #: ../src/guestfs-actions.pod:4307
11425 #, no-wrap
11426 msgid ""
11427 " int\n"
11428 " guestfs_mv (guestfs_h *g,\n"
11429 "             const char *src,\n"
11430 "             const char *dest);\n"
11431 "\n"
11432 msgstr ""
11433
11434 # type: textblock
11435 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:2860
11436 msgid ""
11437 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11438 "destination filename or destination directory."
11439 msgstr ""
11440
11441 # type: =head2
11442 #: ../src/guestfs-actions.pod:4319
11443 msgid "guestfs_ntfs_3g_probe"
11444 msgstr ""
11445
11446 # type: verbatim
11447 #: ../src/guestfs-actions.pod:4321
11448 #, no-wrap
11449 msgid ""
11450 " int\n"
11451 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11452 "                        int rw,\n"
11453 "                        const char *device);\n"
11454 "\n"
11455 msgstr ""
11456
11457 # type: textblock
11458 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:2867
11459 msgid ""
11460 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11461 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11462 "write, and some cannot be mounted at all)."
11463 msgstr ""
11464
11465 # type: textblock
11466 #: ../src/guestfs-actions.pod:4330 ../fish/guestfish-actions.pod:2871
11467 msgid ""
11468 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11469 "can be mounted read-write.  Set it to false if you want to test if the "
11470 "volume can be mounted read-only."
11471 msgstr ""
11472
11473 # type: textblock
11474 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2875
11475 msgid ""
11476 "The return value is an integer which C<0> if the operation would succeed, or "
11477 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11478 msgstr ""
11479
11480 # type: textblock
11481 #: ../src/guestfs-actions.pod:4340
11482 msgid "(Added in 1.0.43)"
11483 msgstr ""
11484
11485 # type: =head2
11486 #: ../src/guestfs-actions.pod:4342
11487 msgid "guestfs_ntfsresize"
11488 msgstr ""
11489
11490 # type: verbatim
11491 #: ../src/guestfs-actions.pod:4344
11492 #, no-wrap
11493 msgid ""
11494 " int\n"
11495 " guestfs_ntfsresize (guestfs_h *g,\n"
11496 "                     const char *device);\n"
11497 "\n"
11498 msgstr ""
11499
11500 # type: textblock
11501 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2883
11502 msgid ""
11503 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11504 "size of the underlying device.  See also L<ntfsresize(8)>."
11505 msgstr ""
11506
11507 # type: =head2
11508 #: ../src/guestfs-actions.pod:4356
11509 msgid "guestfs_ntfsresize_size"
11510 msgstr ""
11511
11512 # type: verbatim
11513 #: ../src/guestfs-actions.pod:4358
11514 #, no-wrap
11515 msgid ""
11516 " int\n"
11517 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11518 "                          const char *device,\n"
11519 "                          int64_t size);\n"
11520 "\n"
11521 msgstr ""
11522
11523 # type: textblock
11524 #: ../src/guestfs-actions.pod:4363
11525 msgid ""
11526 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11527 "to specify the new size (in bytes) explicitly."
11528 msgstr ""
11529
11530 # type: textblock
11531 #: ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4804
11532 #: ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:5126
11533 msgid "(Added in 1.3.14)"
11534 msgstr ""
11535
11536 # type: =head2
11537 #: ../src/guestfs-actions.pod:4370
11538 msgid "guestfs_part_add"
11539 msgstr ""
11540
11541 # type: verbatim
11542 #: ../src/guestfs-actions.pod:4372
11543 #, no-wrap
11544 msgid ""
11545 " int\n"
11546 " guestfs_part_add (guestfs_h *g,\n"
11547 "                   const char *device,\n"
11548 "                   const char *prlogex,\n"
11549 "                   int64_t startsect,\n"
11550 "                   int64_t endsect);\n"
11551 "\n"
11552 msgstr ""
11553
11554 # type: textblock
11555 #: ../src/guestfs-actions.pod:4379
11556 msgid ""
11557 "This command adds a partition to C<device>.  If there is no partition table "
11558 "on the device, call C<guestfs_part_init> first."
11559 msgstr ""
11560
11561 # type: textblock
11562 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:2901
11563 msgid ""
11564 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11565 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11566 "C<logical>) and C<e> (or C<extended>) partition types."
11567 msgstr ""
11568
11569 # type: textblock
11570 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2906
11571 msgid ""
11572 "C<startsect> and C<endsect> are the start and end of the partition in "
11573 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11574 "from the end of the disk (C<-1> is the last sector)."
11575 msgstr ""
11576
11577 # type: textblock
11578 #: ../src/guestfs-actions.pod:4391
11579 msgid ""
11580 "Creating a partition which covers the whole disk is not so easy.  Use "
11581 "C<guestfs_part_disk> to do that."
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4434
11586 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4565
11587 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4622
11588 #: ../src/guestfs-actions.pod:4662
11589 msgid "(Added in 1.0.78)"
11590 msgstr ""
11591
11592 # type: =head2
11593 #: ../src/guestfs-actions.pod:4398
11594 msgid "guestfs_part_del"
11595 msgstr ""
11596
11597 # type: verbatim
11598 #: ../src/guestfs-actions.pod:4400
11599 #, no-wrap
11600 msgid ""
11601 " int\n"
11602 " guestfs_part_del (guestfs_h *g,\n"
11603 "                   const char *device,\n"
11604 "                   int partnum);\n"
11605 "\n"
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:2917
11610 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11611 msgstr ""
11612
11613 # type: textblock
11614 #: ../src/guestfs-actions.pod:4407 ../fish/guestfish-actions.pod:2919
11615 msgid ""
11616 "Note that in the case of MBR partitioning, deleting an extended partition "
11617 "also deletes any logical partitions it contains."
11618 msgstr ""
11619
11620 # type: =head2
11621 #: ../src/guestfs-actions.pod:4415
11622 msgid "guestfs_part_disk"
11623 msgstr ""
11624
11625 # type: verbatim
11626 #: ../src/guestfs-actions.pod:4417
11627 #, no-wrap
11628 msgid ""
11629 " int\n"
11630 " guestfs_part_disk (guestfs_h *g,\n"
11631 "                    const char *device,\n"
11632 "                    const char *parttype);\n"
11633 "\n"
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4422
11638 msgid ""
11639 "This command is simply a combination of C<guestfs_part_init> followed by "
11640 "C<guestfs_part_add> to create a single primary partition covering the whole "
11641 "disk."
11642 msgstr ""
11643
11644 # type: textblock
11645 #: ../src/guestfs-actions.pod:4426
11646 msgid ""
11647 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11648 "possible values are described in C<guestfs_part_init>."
11649 msgstr ""
11650
11651 # type: =head2
11652 #: ../src/guestfs-actions.pod:4436
11653 msgid "guestfs_part_get_bootable"
11654 msgstr ""
11655
11656 # type: verbatim
11657 #: ../src/guestfs-actions.pod:4438
11658 #, no-wrap
11659 msgid ""
11660 " int\n"
11661 " guestfs_part_get_bootable (guestfs_h *g,\n"
11662 "                            const char *device,\n"
11663 "                            int partnum);\n"
11664 "\n"
11665 msgstr ""
11666
11667 # type: textblock
11668 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:2941
11669 msgid ""
11670 "This command returns true if the partition C<partnum> on C<device> has the "
11671 "bootable flag set."
11672 msgstr ""
11673
11674 # type: textblock
11675 #: ../src/guestfs-actions.pod:4446
11676 msgid "See also C<guestfs_part_set_bootable>."
11677 msgstr ""
11678
11679 # type: =head2
11680 #: ../src/guestfs-actions.pod:4452
11681 msgid "guestfs_part_get_mbr_id"
11682 msgstr ""
11683
11684 # type: verbatim
11685 #: ../src/guestfs-actions.pod:4454
11686 #, no-wrap
11687 msgid ""
11688 " int\n"
11689 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11690 "                          const char *device,\n"
11691 "                          int partnum);\n"
11692 "\n"
11693 msgstr ""
11694
11695 # type: textblock
11696 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2950
11697 msgid ""
11698 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11699 "partition C<partnum>."
11700 msgstr ""
11701
11702 # type: textblock
11703 #: ../src/guestfs-actions.pod:4462 ../src/guestfs-actions.pod:4638
11704 msgid ""
11705 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11706 "undefined results for other partition table types (see "
11707 "C<guestfs_part_get_parttype>)."
11708 msgstr ""
11709
11710 # type: =head2
11711 #: ../src/guestfs-actions.pod:4470
11712 msgid "guestfs_part_get_parttype"
11713 msgstr ""
11714
11715 # type: verbatim
11716 #: ../src/guestfs-actions.pod:4472
11717 #, no-wrap
11718 msgid ""
11719 " char *\n"
11720 " guestfs_part_get_parttype (guestfs_h *g,\n"
11721 "                            const char *device);\n"
11722 "\n"
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2961
11727 msgid ""
11728 "This command examines the partition table on C<device> and returns the "
11729 "partition table type (format) being used."
11730 msgstr ""
11731
11732 # type: textblock
11733 #: ../src/guestfs-actions.pod:4479
11734 msgid ""
11735 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11736 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11737 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11738 msgstr ""
11739
11740 # type: =head2
11741 #: ../src/guestfs-actions.pod:4489
11742 msgid "guestfs_part_init"
11743 msgstr ""
11744
11745 # type: verbatim
11746 #: ../src/guestfs-actions.pod:4491
11747 #, no-wrap
11748 msgid ""
11749 " int\n"
11750 " guestfs_part_init (guestfs_h *g,\n"
11751 "                    const char *device,\n"
11752 "                    const char *parttype);\n"
11753 "\n"
11754 msgstr ""
11755
11756 # type: textblock
11757 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:2973
11758 msgid ""
11759 "This creates an empty partition table on C<device> of one of the partition "
11760 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11761 "(for large disks)."
11762 msgstr ""
11763
11764 # type: textblock
11765 #: ../src/guestfs-actions.pod:4500
11766 msgid ""
11767 "Initially there are no partitions.  Following this, you should call "
11768 "C<guestfs_part_add> for each partition required."
11769 msgstr ""
11770
11771 # type: textblock
11772 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:2980
11773 msgid "Possible values for C<parttype> are:"
11774 msgstr ""
11775
11776 # type: =item
11777 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:2984
11778 msgid "B<efi> | B<gpt>"
11779 msgstr ""
11780
11781 # type: textblock
11782 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:2986
11783 msgid "Intel EFI / GPT partition table."
11784 msgstr ""
11785
11786 # type: textblock
11787 #: ../src/guestfs-actions.pod:4511 ../fish/guestfish-actions.pod:2988
11788 msgid ""
11789 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11790 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11791 "the C<mbr> format."
11792 msgstr ""
11793
11794 # type: =item
11795 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:2992
11796 msgid "B<mbr> | B<msdos>"
11797 msgstr ""
11798
11799 # type: textblock
11800 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:2994
11801 msgid ""
11802 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11803 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11804 "TB.  For large disks we recommend using C<gpt>."
11805 msgstr ""
11806
11807 # type: textblock
11808 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3001
11809 msgid ""
11810 "Other partition table types that may work but are not supported include:"
11811 msgstr ""
11812
11813 # type: =item
11814 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3006
11815 msgid "B<aix>"
11816 msgstr ""
11817
11818 # type: textblock
11819 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3008
11820 msgid "AIX disk labels."
11821 msgstr ""
11822
11823 # type: =item
11824 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3010
11825 msgid "B<amiga> | B<rdb>"
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3012
11830 msgid "Amiga \"Rigid Disk Block\" format."
11831 msgstr ""
11832
11833 # type: =item
11834 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3014
11835 msgid "B<bsd>"
11836 msgstr ""
11837
11838 # type: textblock
11839 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3016
11840 msgid "BSD disk labels."
11841 msgstr ""
11842
11843 # type: =item
11844 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3018
11845 msgid "B<dasd>"
11846 msgstr ""
11847
11848 # type: textblock
11849 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:3020
11850 msgid "DASD, used on IBM mainframes."
11851 msgstr ""
11852
11853 # type: =item
11854 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3022
11855 msgid "B<dvh>"
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3024
11860 msgid "MIPS/SGI volumes."
11861 msgstr ""
11862
11863 # type: =item
11864 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3026
11865 msgid "B<mac>"
11866 msgstr ""
11867
11868 # type: textblock
11869 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3028
11870 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11871 msgstr ""
11872
11873 # type: =item
11874 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3030
11875 msgid "B<pc98>"
11876 msgstr ""
11877
11878 # type: textblock
11879 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3032
11880 msgid "NEC PC-98 format, common in Japan apparently."
11881 msgstr ""
11882
11883 # type: =item
11884 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3034
11885 msgid "B<sun>"
11886 msgstr ""
11887
11888 # type: textblock
11889 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3036
11890 msgid "Sun disk labels."
11891 msgstr ""
11892
11893 # type: =head2
11894 #: ../src/guestfs-actions.pod:4567
11895 msgid "guestfs_part_list"
11896 msgstr ""
11897
11898 # type: verbatim
11899 #: ../src/guestfs-actions.pod:4569
11900 #, no-wrap
11901 msgid ""
11902 " struct guestfs_partition_list *\n"
11903 " guestfs_part_list (guestfs_h *g,\n"
11904 "                    const char *device);\n"
11905 "\n"
11906 msgstr ""
11907
11908 # type: textblock
11909 #: ../src/guestfs-actions.pod:4573 ../fish/guestfish-actions.pod:3044
11910 msgid ""
11911 "This command parses the partition table on C<device> and returns the list of "
11912 "partitions found."
11913 msgstr ""
11914
11915 # type: textblock
11916 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3047
11917 msgid "The fields in the returned structure are:"
11918 msgstr ""
11919
11920 # type: =item
11921 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3051
11922 msgid "B<part_num>"
11923 msgstr ""
11924
11925 # type: textblock
11926 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3053
11927 msgid "Partition number, counting from 1."
11928 msgstr ""
11929
11930 # type: =item
11931 #: ../src/guestfs-actions.pod:4584 ../fish/guestfish-actions.pod:3055
11932 msgid "B<part_start>"
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4586
11937 msgid ""
11938 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11939 "the device's sector size, see C<guestfs_blockdev_getss>."
11940 msgstr ""
11941
11942 # type: =item
11943 #: ../src/guestfs-actions.pod:4589 ../fish/guestfish-actions.pod:3060
11944 msgid "B<part_end>"
11945 msgstr ""
11946
11947 # type: textblock
11948 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3062
11949 msgid "End of the partition in bytes."
11950 msgstr ""
11951
11952 # type: =item
11953 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3064
11954 msgid "B<part_size>"
11955 msgstr ""
11956
11957 # type: textblock
11958 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3066
11959 msgid "Size of the partition in bytes."
11960 msgstr ""
11961
11962 # type: textblock
11963 #: ../src/guestfs-actions.pod:4599
11964 msgid ""
11965 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
11966 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
11967 "use>."
11968 msgstr ""
11969
11970 # type: =head2
11971 #: ../src/guestfs-actions.pod:4605
11972 msgid "guestfs_part_set_bootable"
11973 msgstr ""
11974
11975 # type: verbatim
11976 #: ../src/guestfs-actions.pod:4607
11977 #, no-wrap
11978 msgid ""
11979 " int\n"
11980 " guestfs_part_set_bootable (guestfs_h *g,\n"
11981 "                            const char *device,\n"
11982 "                            int partnum,\n"
11983 "                            int bootable);\n"
11984 "\n"
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3074
11989 msgid ""
11990 "This sets the bootable flag on partition numbered C<partnum> on device "
11991 "C<device>.  Note that partitions are numbered from 1."
11992 msgstr ""
11993
11994 # type: textblock
11995 #: ../src/guestfs-actions.pod:4616 ../fish/guestfish-actions.pod:3077
11996 msgid ""
11997 "The bootable flag is used by some operating systems (notably Windows) to "
11998 "determine which partition to boot from.  It is by no means universally "
11999 "recognized."
12000 msgstr ""
12001
12002 # type: =head2
12003 #: ../src/guestfs-actions.pod:4624
12004 msgid "guestfs_part_set_mbr_id"
12005 msgstr ""
12006
12007 # type: verbatim
12008 #: ../src/guestfs-actions.pod:4626
12009 #, no-wrap
12010 msgid ""
12011 " int\n"
12012 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12013 "                          const char *device,\n"
12014 "                          int partnum,\n"
12015 "                          int idbyte);\n"
12016 "\n"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3085
12021 msgid ""
12022 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12023 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12024 "documentation are in fact hexadecimal numbers, but usually documented "
12025 "without any leading \"0x\" which might be confusing."
12026 msgstr ""
12027
12028 # type: =head2
12029 #: ../src/guestfs-actions.pod:4646
12030 msgid "guestfs_part_set_name"
12031 msgstr ""
12032
12033 # type: verbatim
12034 #: ../src/guestfs-actions.pod:4648
12035 #, no-wrap
12036 msgid ""
12037 " int\n"
12038 " guestfs_part_set_name (guestfs_h *g,\n"
12039 "                        const char *device,\n"
12040 "                        int partnum,\n"
12041 "                        const char *name);\n"
12042 "\n"
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4654 ../fish/guestfish-actions.pod:3099
12047 msgid ""
12048 "This sets the partition name on partition numbered C<partnum> on device "
12049 "C<device>.  Note that partitions are numbered from 1."
12050 msgstr ""
12051
12052 # type: textblock
12053 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3102
12054 msgid ""
12055 "The partition name can only be set on certain types of partition table.  "
12056 "This works on C<gpt> but not on C<mbr> partitions."
12057 msgstr ""
12058
12059 # type: =head2
12060 #: ../src/guestfs-actions.pod:4664
12061 msgid "guestfs_part_to_dev"
12062 msgstr ""
12063
12064 # type: verbatim
12065 #: ../src/guestfs-actions.pod:4666
12066 #, no-wrap
12067 msgid ""
12068 " char *\n"
12069 " guestfs_part_to_dev (guestfs_h *g,\n"
12070 "                      const char *partition);\n"
12071 "\n"
12072 msgstr ""
12073
12074 # type: textblock
12075 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3109
12076 msgid ""
12077 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12078 "partition number, returning the device name (eg. \"/dev/sdb\")."
12079 msgstr ""
12080
12081 # type: textblock
12082 #: ../src/guestfs-actions.pod:4674
12083 msgid ""
12084 "The named partition must exist, for example as a string returned from "
12085 "C<guestfs_list_partitions>."
12086 msgstr ""
12087
12088 # type: =head2
12089 #: ../src/guestfs-actions.pod:4682
12090 msgid "guestfs_ping_daemon"
12091 msgstr ""
12092
12093 # type: verbatim
12094 #: ../src/guestfs-actions.pod:4684
12095 #, no-wrap
12096 msgid ""
12097 " int\n"
12098 " guestfs_ping_daemon (guestfs_h *g);\n"
12099 "\n"
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4687 ../fish/guestfish-actions.pod:3120
12104 msgid ""
12105 "This is a test probe into the guestfs daemon running inside the qemu "
12106 "subprocess.  Calling this function checks that the daemon responds to the "
12107 "ping message, without affecting the daemon or attached block device(s) in "
12108 "any other way."
12109 msgstr ""
12110
12111 # type: =head2
12112 #: ../src/guestfs-actions.pod:4696
12113 msgid "guestfs_pread"
12114 msgstr ""
12115
12116 # type: verbatim
12117 #: ../src/guestfs-actions.pod:4698
12118 #, no-wrap
12119 msgid ""
12120 " char *\n"
12121 " guestfs_pread (guestfs_h *g,\n"
12122 "                const char *path,\n"
12123 "                int count,\n"
12124 "                int64_t offset,\n"
12125 "                size_t *size_r);\n"
12126 "\n"
12127 msgstr ""
12128
12129 # type: textblock
12130 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3129
12131 msgid ""
12132 "This command lets you read part of a file.  It reads C<count> bytes of the "
12133 "file, starting at C<offset>, from file C<path>."
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4708 ../src/guestfs-actions.pod:4734
12138 #: ../fish/guestfish-actions.pod:3132 ../fish/guestfish-actions.pod:3147
12139 msgid ""
12140 "This may read fewer bytes than requested.  For further details see the "
12141 "L<pread(2)> system call."
12142 msgstr ""
12143
12144 # type: textblock
12145 #: ../src/guestfs-actions.pod:4711
12146 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12147 msgstr ""
12148
12149 # type: =head2
12150 #: ../src/guestfs-actions.pod:4722
12151 msgid "guestfs_pread_device"
12152 msgstr ""
12153
12154 # type: verbatim
12155 #: ../src/guestfs-actions.pod:4724
12156 #, no-wrap
12157 msgid ""
12158 " char *\n"
12159 " guestfs_pread_device (guestfs_h *g,\n"
12160 "                       const char *device,\n"
12161 "                       int count,\n"
12162 "                       int64_t offset,\n"
12163 "                       size_t *size_r);\n"
12164 "\n"
12165 msgstr ""
12166
12167 # type: textblock
12168 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3144
12169 msgid ""
12170 "This command lets you read part of a file.  It reads C<count> bytes of "
12171 "C<device>, starting at C<offset>."
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4737
12176 msgid "See also C<guestfs_pread>."
12177 msgstr ""
12178
12179 # type: textblock
12180 #: ../src/guestfs-actions.pod:4746
12181 msgid "(Added in 1.5.21)"
12182 msgstr ""
12183
12184 # type: =head2
12185 #: ../src/guestfs-actions.pod:4748
12186 msgid "guestfs_pvcreate"
12187 msgstr ""
12188
12189 # type: verbatim
12190 #: ../src/guestfs-actions.pod:4750
12191 #, no-wrap
12192 msgid ""
12193 " int\n"
12194 " guestfs_pvcreate (guestfs_h *g,\n"
12195 "                   const char *device);\n"
12196 "\n"
12197 msgstr ""
12198
12199 # type: textblock
12200 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3159
12201 msgid ""
12202 "This creates an LVM physical volume on the named C<device>, where C<device> "
12203 "should usually be a partition name such as C</dev/sda1>."
12204 msgstr ""
12205
12206 # type: =head2
12207 #: ../src/guestfs-actions.pod:4762
12208 msgid "guestfs_pvremove"
12209 msgstr ""
12210
12211 # type: verbatim
12212 #: ../src/guestfs-actions.pod:4764
12213 #, no-wrap
12214 msgid ""
12215 " int\n"
12216 " guestfs_pvremove (guestfs_h *g,\n"
12217 "                   const char *device);\n"
12218 "\n"
12219 msgstr ""
12220
12221 # type: textblock
12222 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3167
12223 msgid ""
12224 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12225 "it."
12226 msgstr ""
12227
12228 # type: textblock
12229 #: ../src/guestfs-actions.pod:4771 ../fish/guestfish-actions.pod:3170
12230 msgid ""
12231 "The implementation uses the C<pvremove> command which refuses to wipe "
12232 "physical volumes that contain any volume groups, so you have to remove those "
12233 "first."
12234 msgstr ""
12235
12236 # type: =head2
12237 #: ../src/guestfs-actions.pod:4779
12238 msgid "guestfs_pvresize"
12239 msgstr ""
12240
12241 # type: verbatim
12242 #: ../src/guestfs-actions.pod:4781
12243 #, no-wrap
12244 msgid ""
12245 " int\n"
12246 " guestfs_pvresize (guestfs_h *g,\n"
12247 "                   const char *device);\n"
12248 "\n"
12249 msgstr ""
12250
12251 # type: textblock
12252 #: ../src/guestfs-actions.pod:4785 ../fish/guestfish-actions.pod:3178
12253 msgid ""
12254 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12255 "the new size of the underlying device."
12256 msgstr ""
12257
12258 # type: =head2
12259 #: ../src/guestfs-actions.pod:4792
12260 msgid "guestfs_pvresize_size"
12261 msgstr ""
12262
12263 # type: verbatim
12264 #: ../src/guestfs-actions.pod:4794
12265 #, no-wrap
12266 msgid ""
12267 " int\n"
12268 " guestfs_pvresize_size (guestfs_h *g,\n"
12269 "                        const char *device,\n"
12270 "                        int64_t size);\n"
12271 "\n"
12272 msgstr ""
12273
12274 # type: textblock
12275 #: ../src/guestfs-actions.pod:4799
12276 msgid ""
12277 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12278 "specify the new size (in bytes) explicitly."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:4806
12283 msgid "guestfs_pvs"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:4808
12288 #, no-wrap
12289 msgid ""
12290 " char **\n"
12291 " guestfs_pvs (guestfs_h *g);\n"
12292 "\n"
12293 msgstr ""
12294
12295 # type: textblock
12296 #: ../src/guestfs-actions.pod:4811 ../fish/guestfish-actions.pod:3192
12297 msgid ""
12298 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12299 "(8)> command."
12300 msgstr ""
12301
12302 # type: textblock
12303 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3195
12304 msgid ""
12305 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12306 "sda2>)."
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4817
12311 msgid "See also C<guestfs_pvs_full>."
12312 msgstr ""
12313
12314 # type: =head2
12315 #: ../src/guestfs-actions.pod:4825
12316 msgid "guestfs_pvs_full"
12317 msgstr ""
12318
12319 # type: verbatim
12320 #: ../src/guestfs-actions.pod:4827
12321 #, no-wrap
12322 msgid ""
12323 " struct guestfs_lvm_pv_list *\n"
12324 " guestfs_pvs_full (guestfs_h *g);\n"
12325 "\n"
12326 msgstr ""
12327
12328 # type: textblock
12329 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3204
12330 msgid ""
12331 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12332 "(8)> command.  The \"full\" version includes all fields."
12333 msgstr ""
12334
12335 # type: textblock
12336 #: ../src/guestfs-actions.pod:4833
12337 msgid ""
12338 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12339 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12340 msgstr ""
12341
12342 # type: =head2
12343 #: ../src/guestfs-actions.pod:4839
12344 msgid "guestfs_pvuuid"
12345 msgstr ""
12346
12347 # type: verbatim
12348 #: ../src/guestfs-actions.pod:4841
12349 #, no-wrap
12350 msgid ""
12351 " char *\n"
12352 " guestfs_pvuuid (guestfs_h *g,\n"
12353 "                 const char *device);\n"
12354 "\n"
12355 msgstr ""
12356
12357 # type: textblock
12358 #: ../src/guestfs-actions.pod:4845 ../fish/guestfish-actions.pod:3211
12359 msgid "This command returns the UUID of the LVM PV C<device>."
12360 msgstr ""
12361
12362 # type: =head2
12363 #: ../src/guestfs-actions.pod:4852
12364 msgid "guestfs_pwrite"
12365 msgstr ""
12366
12367 # type: verbatim
12368 #: ../src/guestfs-actions.pod:4854
12369 #, no-wrap
12370 msgid ""
12371 " int\n"
12372 " guestfs_pwrite (guestfs_h *g,\n"
12373 "                 const char *path,\n"
12374 "                 const char *content,\n"
12375 "                 size_t content_size,\n"
12376 "                 int64_t offset);\n"
12377 "\n"
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3217
12382 msgid ""
12383 "This command writes to part of a file.  It writes the data buffer C<content> "
12384 "to the file C<path> starting at offset C<offset>."
12385 msgstr ""
12386
12387 # type: textblock
12388 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3220
12389 msgid ""
12390 "This command implements the L<pwrite(2)> system call, and like that system "
12391 "call it may not write the full data requested.  The return value is the "
12392 "number of bytes that were actually written to the file.  This could even be "
12393 "0, although short writes are unlikely for regular files in ordinary "
12394 "circumstances."
12395 msgstr ""
12396
12397 # type: textblock
12398 #: ../src/guestfs-actions.pod:4870
12399 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12400 msgstr ""
12401
12402 # type: =head2
12403 #: ../src/guestfs-actions.pod:4879
12404 msgid "guestfs_pwrite_device"
12405 msgstr ""
12406
12407 # type: verbatim
12408 #: ../src/guestfs-actions.pod:4881
12409 #, no-wrap
12410 msgid ""
12411 " int\n"
12412 " guestfs_pwrite_device (guestfs_h *g,\n"
12413 "                        const char *device,\n"
12414 "                        const char *content,\n"
12415 "                        size_t content_size,\n"
12416 "                        int64_t offset);\n"
12417 "\n"
12418 msgstr ""
12419
12420 # type: textblock
12421 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3235
12422 msgid ""
12423 "This command writes to part of a device.  It writes the data buffer "
12424 "C<content> to C<device> starting at offset C<offset>."
12425 msgstr ""
12426
12427 # type: textblock
12428 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3238
12429 msgid ""
12430 "This command implements the L<pwrite(2)> system call, and like that system "
12431 "call it may not write the full data requested (although short writes to disk "
12432 "devices and partitions are probably impossible with standard Linux kernels)."
12433 msgstr ""
12434
12435 # type: textblock
12436 #: ../src/guestfs-actions.pod:4896
12437 msgid "See also C<guestfs_pwrite>."
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:4903
12442 msgid "(Added in 1.5.20)"
12443 msgstr ""
12444
12445 # type: =head2
12446 #: ../src/guestfs-actions.pod:4905
12447 msgid "guestfs_read_file"
12448 msgstr ""
12449
12450 # type: verbatim
12451 #: ../src/guestfs-actions.pod:4907
12452 #, no-wrap
12453 msgid ""
12454 " char *\n"
12455 " guestfs_read_file (guestfs_h *g,\n"
12456 "                    const char *path,\n"
12457 "                    size_t *size_r);\n"
12458 "\n"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3252
12463 msgid "This calls returns the contents of the file C<path> as a buffer."
12464 msgstr ""
12465
12466 # type: textblock
12467 #: ../src/guestfs-actions.pod:4915
12468 msgid ""
12469 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12470 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12471 "function is limited in the total size of file that can be handled."
12472 msgstr ""
12473
12474 # type: textblock
12475 #: ../src/guestfs-actions.pod:4927
12476 msgid "(Added in 1.0.63)"
12477 msgstr ""
12478
12479 # type: =head2
12480 #: ../src/guestfs-actions.pod:4929
12481 msgid "guestfs_read_lines"
12482 msgstr ""
12483
12484 # type: verbatim
12485 #: ../src/guestfs-actions.pod:4931
12486 #, no-wrap
12487 msgid ""
12488 " char **\n"
12489 " guestfs_read_lines (guestfs_h *g,\n"
12490 "                     const char *path);\n"
12491 "\n"
12492 msgstr ""
12493
12494 # type: textblock
12495 #: ../src/guestfs-actions.pod:4937 ../fish/guestfish-actions.pod:3269
12496 msgid ""
12497 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12498 "C<CRLF> character sequences are I<not> returned."
12499 msgstr ""
12500
12501 # type: textblock
12502 #: ../src/guestfs-actions.pod:4940
12503 msgid ""
12504 "Note that this function cannot correctly handle binary files (specifically, "
12505 "files containing C<\\0> character which is treated as end of line).  For "
12506 "those you need to use the C<guestfs_read_file> function which has a more "
12507 "complex interface."
12508 msgstr ""
12509
12510 # type: =head2
12511 #: ../src/guestfs-actions.pod:4951
12512 msgid "guestfs_readdir"
12513 msgstr ""
12514
12515 # type: verbatim
12516 #: ../src/guestfs-actions.pod:4953
12517 #, no-wrap
12518 msgid ""
12519 " struct guestfs_dirent_list *\n"
12520 " guestfs_readdir (guestfs_h *g,\n"
12521 "                  const char *dir);\n"
12522 "\n"
12523 msgstr ""
12524
12525 # type: textblock
12526 #: ../src/guestfs-actions.pod:4957 ../fish/guestfish-actions.pod:3281
12527 msgid "This returns the list of directory entries in directory C<dir>."
12528 msgstr ""
12529
12530 # type: textblock
12531 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3283
12532 msgid ""
12533 "All entries in the directory are returned, including C<.> and C<..>.  The "
12534 "entries are I<not> sorted, but returned in the same order as the underlying "
12535 "filesystem."
12536 msgstr ""
12537
12538 # type: textblock
12539 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3287
12540 msgid ""
12541 "Also this call returns basic file type information about each file.  The "
12542 "C<ftyp> field will contain one of the following characters:"
12543 msgstr ""
12544
12545 # type: =item
12546 #: ../src/guestfs-actions.pod:4968 ../fish/guestfish-actions.pod:3292
12547 msgid "'b'"
12548 msgstr ""
12549
12550 # type: textblock
12551 #: ../src/guestfs-actions.pod:4970 ../fish/guestfish-actions.pod:3294
12552 msgid "Block special"
12553 msgstr ""
12554
12555 # type: =item
12556 #: ../src/guestfs-actions.pod:4972 ../fish/guestfish-actions.pod:3296
12557 msgid "'c'"
12558 msgstr ""
12559
12560 # type: textblock
12561 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3298
12562 msgid "Char special"
12563 msgstr ""
12564
12565 # type: =item
12566 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3300
12567 msgid "'d'"
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3302
12572 msgid "Directory"
12573 msgstr ""
12574
12575 # type: =item
12576 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3304
12577 msgid "'f'"
12578 msgstr ""
12579
12580 # type: textblock
12581 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3306
12582 msgid "FIFO (named pipe)"
12583 msgstr ""
12584
12585 # type: =item
12586 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3308
12587 msgid "'l'"
12588 msgstr ""
12589
12590 # type: textblock
12591 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3310
12592 msgid "Symbolic link"
12593 msgstr ""
12594
12595 # type: =item
12596 #: ../src/guestfs-actions.pod:4988 ../fish/guestfish-actions.pod:3312
12597 msgid "'r'"
12598 msgstr ""
12599
12600 # type: textblock
12601 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3314
12602 msgid "Regular file"
12603 msgstr ""
12604
12605 # type: =item
12606 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3316
12607 msgid "'s'"
12608 msgstr ""
12609
12610 # type: textblock
12611 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3318
12612 msgid "Socket"
12613 msgstr ""
12614
12615 # type: =item
12616 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3320
12617 msgid "'u'"
12618 msgstr ""
12619
12620 # type: textblock
12621 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3322
12622 msgid "Unknown file type"
12623 msgstr ""
12624
12625 # type: =item
12626 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3324
12627 msgid "'?'"
12628 msgstr ""
12629
12630 # type: textblock
12631 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3326
12632 msgid ""
12633 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12634 msgstr ""
12635
12636 # type: textblock
12637 #: ../src/guestfs-actions.pod:5007
12638 msgid ""
12639 "This function is primarily intended for use by programs.  To get a simple "
12640 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12641 "consumption, use C<guestfs_ll>."
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:5011
12646 msgid ""
12647 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12648 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
12649 msgstr ""
12650
12651 # type: =head2
12652 #: ../src/guestfs-actions.pod:5017
12653 msgid "guestfs_readlink"
12654 msgstr ""
12655
12656 # type: verbatim
12657 #: ../src/guestfs-actions.pod:5019
12658 #, no-wrap
12659 msgid ""
12660 " char *\n"
12661 " guestfs_readlink (guestfs_h *g,\n"
12662 "                   const char *path);\n"
12663 "\n"
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:5023 ../fish/guestfish-actions.pod:3339
12668 msgid "This command reads the target of a symbolic link."
12669 msgstr ""
12670
12671 # type: =head2
12672 #: ../src/guestfs-actions.pod:5030
12673 msgid "guestfs_readlinklist"
12674 msgstr ""
12675
12676 # type: verbatim
12677 #: ../src/guestfs-actions.pod:5032
12678 #, no-wrap
12679 msgid ""
12680 " char **\n"
12681 " guestfs_readlinklist (guestfs_h *g,\n"
12682 "                       const char *path,\n"
12683 "                       char *const *names);\n"
12684 "\n"
12685 msgstr ""
12686
12687 # type: textblock
12688 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3345
12689 msgid ""
12690 "This call allows you to do a C<readlink> operation on multiple files, where "
12691 "all files are in the directory C<path>.  C<names> is the list of files from "
12692 "this directory."
12693 msgstr ""
12694
12695 # type: textblock
12696 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3349
12697 msgid ""
12698 "On return you get a list of strings, with a one-to-one correspondence to the "
12699 "C<names> list.  Each string is the value of the symbolic link."
12700 msgstr ""
12701
12702 # type: textblock
12703 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3353
12704 msgid ""
12705 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12706 "result string is the empty string C<\"\">.  However the whole operation is "
12707 "completed even if there were C<readlink(2)> errors, and so you can call this "
12708 "function with names where you don't know if they are symbolic links already "
12709 "(albeit slightly less efficient)."
12710 msgstr ""
12711
12712 # type: textblock
12713 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3360
12714 msgid ""
12715 "This call is intended for programs that want to efficiently list a directory "
12716 "contents without making many round-trips.  Very long directory listings "
12717 "might cause the protocol message size to be exceeded, causing this call to "
12718 "fail.  The caller must split up such requests into smaller groups of names."
12719 msgstr ""
12720
12721 # type: =head2
12722 #: ../src/guestfs-actions.pod:5065
12723 msgid "guestfs_realpath"
12724 msgstr ""
12725
12726 # type: verbatim
12727 #: ../src/guestfs-actions.pod:5067
12728 #, no-wrap
12729 msgid ""
12730 " char *\n"
12731 " guestfs_realpath (guestfs_h *g,\n"
12732 "                   const char *path);\n"
12733 "\n"
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:5071 ../fish/guestfish-actions.pod:3371
12738 msgid ""
12739 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12740 "has no C<.>, C<..> or symbolic link path elements."
12741 msgstr ""
12742
12743 # type: =head2
12744 #: ../src/guestfs-actions.pod:5079
12745 msgid "guestfs_removexattr"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #: ../src/guestfs-actions.pod:5081
12750 #, no-wrap
12751 msgid ""
12752 " int\n"
12753 " guestfs_removexattr (guestfs_h *g,\n"
12754 "                      const char *xattr,\n"
12755 "                      const char *path);\n"
12756 "\n"
12757 msgstr ""
12758
12759 # type: textblock
12760 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3378
12761 msgid ""
12762 "This call removes the extended attribute named C<xattr> of the file C<path>."
12763 msgstr ""
12764
12765 # type: textblock
12766 #: ../src/guestfs-actions.pod:5089
12767 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12768 msgstr ""
12769
12770 # type: =head2
12771 #: ../src/guestfs-actions.pod:5095
12772 msgid "guestfs_resize2fs"
12773 msgstr ""
12774
12775 # type: verbatim
12776 #: ../src/guestfs-actions.pod:5097
12777 #, no-wrap
12778 msgid ""
12779 " int\n"
12780 " guestfs_resize2fs (guestfs_h *g,\n"
12781 "                    const char *device);\n"
12782 "\n"
12783 msgstr ""
12784
12785 # type: textblock
12786 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3387
12787 msgid ""
12788 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12789 "underlying device."
12790 msgstr ""
12791
12792 # type: textblock
12793 #: ../src/guestfs-actions.pod:5104
12794 msgid ""
12795 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12796 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12797 "sometimes gives an error about this and sometimes not.  In any case, it is "
12798 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12799 msgstr ""
12800
12801 # type: =head2
12802 #: ../src/guestfs-actions.pod:5114
12803 msgid "guestfs_resize2fs_size"
12804 msgstr ""
12805
12806 # type: verbatim
12807 #: ../src/guestfs-actions.pod:5116
12808 #, no-wrap
12809 msgid ""
12810 " int\n"
12811 " guestfs_resize2fs_size (guestfs_h *g,\n"
12812 "                         const char *device,\n"
12813 "                         int64_t size);\n"
12814 "\n"
12815 msgstr ""
12816
12817 # type: textblock
12818 #: ../src/guestfs-actions.pod:5121
12819 msgid ""
12820 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12821 "to specify the new size (in bytes) explicitly."
12822 msgstr ""
12823
12824 # type: =head2
12825 #: ../src/guestfs-actions.pod:5128
12826 msgid "guestfs_rm"
12827 msgstr ""
12828
12829 # type: verbatim
12830 #: ../src/guestfs-actions.pod:5130
12831 #, no-wrap
12832 msgid ""
12833 " int\n"
12834 " guestfs_rm (guestfs_h *g,\n"
12835 "             const char *path);\n"
12836 "\n"
12837 msgstr ""
12838
12839 # type: textblock
12840 #: ../src/guestfs-actions.pod:5134 ../fish/guestfish-actions.pod:3407
12841 msgid "Remove the single file C<path>."
12842 msgstr ""
12843
12844 # type: =head2
12845 #: ../src/guestfs-actions.pod:5140
12846 msgid "guestfs_rm_rf"
12847 msgstr ""
12848
12849 # type: verbatim
12850 #: ../src/guestfs-actions.pod:5142
12851 #, no-wrap
12852 msgid ""
12853 " int\n"
12854 " guestfs_rm_rf (guestfs_h *g,\n"
12855 "                const char *path);\n"
12856 "\n"
12857 msgstr ""
12858
12859 # type: textblock
12860 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3413
12861 msgid ""
12862 "Remove the file or directory C<path>, recursively removing the contents if "
12863 "its a directory.  This is like the C<rm -rf> shell command."
12864 msgstr ""
12865
12866 # type: =head2
12867 #: ../src/guestfs-actions.pod:5154
12868 msgid "guestfs_rmdir"
12869 msgstr ""
12870
12871 # type: verbatim
12872 #: ../src/guestfs-actions.pod:5156
12873 #, no-wrap
12874 msgid ""
12875 " int\n"
12876 " guestfs_rmdir (guestfs_h *g,\n"
12877 "                const char *path);\n"
12878 "\n"
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:5160 ../fish/guestfish-actions.pod:3421
12883 msgid "Remove the single directory C<path>."
12884 msgstr ""
12885
12886 # type: =head2
12887 #: ../src/guestfs-actions.pod:5166
12888 msgid "guestfs_rmmountpoint"
12889 msgstr ""
12890
12891 # type: verbatim
12892 #: ../src/guestfs-actions.pod:5168
12893 #, no-wrap
12894 msgid ""
12895 " int\n"
12896 " guestfs_rmmountpoint (guestfs_h *g,\n"
12897 "                       const char *exemptpath);\n"
12898 "\n"
12899 msgstr ""
12900
12901 # type: textblock
12902 #: ../src/guestfs-actions.pod:5172
12903 msgid ""
12904 "This calls removes a mountpoint that was previously created with "
12905 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12906 msgstr ""
12907
12908 # type: =head2
12909 #: ../src/guestfs-actions.pod:5180
12910 msgid "guestfs_scrub_device"
12911 msgstr ""
12912
12913 # type: verbatim
12914 #: ../src/guestfs-actions.pod:5182
12915 #, no-wrap
12916 msgid ""
12917 " int\n"
12918 " guestfs_scrub_device (guestfs_h *g,\n"
12919 "                       const char *device);\n"
12920 "\n"
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3435
12925 msgid ""
12926 "This command writes patterns over C<device> to make data retrieval more "
12927 "difficult."
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5210
12932 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3438
12933 #: ../fish/guestfish-actions.pod:3453 ../fish/guestfish-actions.pod:3466
12934 msgid ""
12935 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12936 "more details."
12937 msgstr ""
12938
12939 # type: textblock
12940 #: ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5215
12941 #: ../src/guestfs-actions.pod:5234
12942 msgid "(Added in 1.0.52)"
12943 msgstr ""
12944
12945 # type: =head2
12946 #: ../src/guestfs-actions.pod:5199
12947 msgid "guestfs_scrub_file"
12948 msgstr ""
12949
12950 # type: verbatim
12951 #: ../src/guestfs-actions.pod:5201
12952 #, no-wrap
12953 msgid ""
12954 " int\n"
12955 " guestfs_scrub_file (guestfs_h *g,\n"
12956 "                     const char *file);\n"
12957 "\n"
12958 msgstr ""
12959
12960 # type: textblock
12961 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3448
12962 msgid ""
12963 "This command writes patterns over a file to make data retrieval more "
12964 "difficult."
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3451
12969 msgid "The file is I<removed> after scrubbing."
12970 msgstr ""
12971
12972 # type: =head2
12973 #: ../src/guestfs-actions.pod:5217
12974 msgid "guestfs_scrub_freespace"
12975 msgstr ""
12976
12977 # type: verbatim
12978 #: ../src/guestfs-actions.pod:5219
12979 #, no-wrap
12980 msgid ""
12981 " int\n"
12982 " guestfs_scrub_freespace (guestfs_h *g,\n"
12983 "                          const char *dir);\n"
12984 "\n"
12985 msgstr ""
12986
12987 # type: textblock
12988 #: ../src/guestfs-actions.pod:5223
12989 msgid ""
12990 "This command creates the directory C<dir> and then fills it with files until "
12991 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12992 "and deletes them.  The intention is to scrub any free space on the partition "
12993 "containing C<dir>."
12994 msgstr ""
12995
12996 # type: =head2
12997 #: ../src/guestfs-actions.pod:5236
12998 msgid "guestfs_set_append"
12999 msgstr ""
13000
13001 # type: verbatim
13002 #: ../src/guestfs-actions.pod:5238
13003 #, no-wrap
13004 msgid ""
13005 " int\n"
13006 " guestfs_set_append (guestfs_h *g,\n"
13007 "                     const char *append);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #: ../src/guestfs-actions.pod:5242 ../fish/guestfish-actions.pod:3475
13013 msgid ""
13014 "This function is used to add additional options to the guest kernel command "
13015 "line."
13016 msgstr ""
13017
13018 # type: textblock
13019 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3478
13020 msgid ""
13021 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13022 "environment variable."
13023 msgstr ""
13024
13025 # type: textblock
13026 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:3481
13027 msgid ""
13028 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13029 "(libguestfs always adds a few of its own)."
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5255
13034 msgid "guestfs_set_autosync"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5257
13039 #, no-wrap
13040 msgid ""
13041 " int\n"
13042 " guestfs_set_autosync (guestfs_h *g,\n"
13043 "                       int autosync);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5261
13049 msgid ""
13050 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13051 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13052 "the handle is closed (also if the program exits without closing handles)."
13053 msgstr ""
13054
13055 # type: textblock
13056 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:3495
13057 msgid ""
13058 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13059 "disabled by default)."
13060 msgstr ""
13061
13062 # type: =head2
13063 #: ../src/guestfs-actions.pod:5273
13064 msgid "guestfs_set_direct"
13065 msgstr ""
13066
13067 # type: verbatim
13068 #: ../src/guestfs-actions.pod:5275
13069 #, no-wrap
13070 msgid ""
13071 " int\n"
13072 " guestfs_set_direct (guestfs_h *g,\n"
13073 "                     int direct);\n"
13074 "\n"
13075 msgstr ""
13076
13077 # type: textblock
13078 #: ../src/guestfs-actions.pod:5279 ../fish/guestfish-actions.pod:3504
13079 msgid ""
13080 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13081 "passed directly through to the appliance once it is launched."
13082 msgstr ""
13083
13084 # type: textblock
13085 #: ../src/guestfs-actions.pod:5283
13086 msgid ""
13087 "One consequence of this is that log messages aren't caught by the library "
13088 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13089 "stdout."
13090 msgstr ""
13091
13092 # type: textblock
13093 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3512
13094 msgid "You probably don't want to use this unless you know what you are doing."
13095 msgstr ""
13096
13097 # type: textblock
13098 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:3515
13099 msgid "The default is disabled."
13100 msgstr ""
13101
13102 # type: =head2
13103 #: ../src/guestfs-actions.pod:5296
13104 msgid "guestfs_set_e2label"
13105 msgstr ""
13106
13107 # type: verbatim
13108 #: ../src/guestfs-actions.pod:5298
13109 #, no-wrap
13110 msgid ""
13111 " int\n"
13112 " guestfs_set_e2label (guestfs_h *g,\n"
13113 "                      const char *device,\n"
13114 "                      const char *label);\n"
13115 "\n"
13116 msgstr ""
13117
13118 # type: textblock
13119 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3521
13120 msgid ""
13121 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13122 "C<label>.  Filesystem labels are limited to 16 characters."
13123 msgstr ""
13124
13125 # type: textblock
13126 #: ../src/guestfs-actions.pod:5307
13127 msgid ""
13128 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13129 "the existing label on a filesystem."
13130 msgstr ""
13131
13132 # type: =head2
13133 #: ../src/guestfs-actions.pod:5314
13134 msgid "guestfs_set_e2uuid"
13135 msgstr ""
13136
13137 # type: verbatim
13138 #: ../src/guestfs-actions.pod:5316
13139 #, no-wrap
13140 msgid ""
13141 " int\n"
13142 " guestfs_set_e2uuid (guestfs_h *g,\n"
13143 "                     const char *device,\n"
13144 "                     const char *uuid);\n"
13145 "\n"
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5321 ../fish/guestfish-actions.pod:3532
13150 msgid ""
13151 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13152 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13153 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5326
13158 msgid ""
13159 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13160 "the existing UUID of a filesystem."
13161 msgstr ""
13162
13163 # type: =head2
13164 #: ../src/guestfs-actions.pod:5333
13165 msgid "guestfs_set_memsize"
13166 msgstr ""
13167
13168 # type: verbatim
13169 #: ../src/guestfs-actions.pod:5335
13170 #, no-wrap
13171 msgid ""
13172 " int\n"
13173 " guestfs_set_memsize (guestfs_h *g,\n"
13174 "                      int memsize);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5339
13180 msgid ""
13181 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13182 "This only has any effect if called before C<guestfs_launch>."
13183 msgstr ""
13184
13185 # type: textblock
13186 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3550
13187 msgid ""
13188 "You can also change this by setting the environment variable "
13189 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13190 msgstr ""
13191
13192 # type: =head2
13193 #: ../src/guestfs-actions.pod:5354
13194 msgid "guestfs_set_network"
13195 msgstr ""
13196
13197 # type: verbatim
13198 #: ../src/guestfs-actions.pod:5356
13199 #, no-wrap
13200 msgid ""
13201 " int\n"
13202 " guestfs_set_network (guestfs_h *g,\n"
13203 "                      int network);\n"
13204 "\n"
13205 msgstr ""
13206
13207 # type: textblock
13208 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:3563
13209 msgid ""
13210 "If C<network> is true, then the network is enabled in the libguestfs "
13211 "appliance.  The default is false."
13212 msgstr ""
13213
13214 # type: textblock
13215 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3566
13216 msgid ""
13217 "This affects whether commands are able to access the network (see L<guestfs"
13218 "(3)/RUNNING COMMANDS>)."
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5366
13223 msgid ""
13224 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13225 "effect."
13226 msgstr ""
13227
13228 # type: =head2
13229 #: ../src/guestfs-actions.pod:5373
13230 msgid "guestfs_set_path"
13231 msgstr ""
13232
13233 # type: verbatim
13234 #: ../src/guestfs-actions.pod:5375
13235 #, no-wrap
13236 msgid ""
13237 " int\n"
13238 " guestfs_set_path (guestfs_h *g,\n"
13239 "                   const char *searchpath);\n"
13240 "\n"
13241 msgstr ""
13242
13243 # type: textblock
13244 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3578
13245 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13246 msgstr ""
13247
13248 # type: textblock
13249 #: ../src/guestfs-actions.pod:5381 ../fish/guestfish-actions.pod:3580
13250 msgid ""
13251 "The default is C<$libdir/guestfs> unless overridden by setting "
13252 "C<LIBGUESTFS_PATH> environment variable."
13253 msgstr ""
13254
13255 # type: textblock
13256 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3583
13257 msgid "Setting C<path> to C<NULL> restores the default path."
13258 msgstr ""
13259
13260 # type: =head2
13261 #: ../src/guestfs-actions.pod:5390
13262 msgid "guestfs_set_qemu"
13263 msgstr ""
13264
13265 # type: verbatim
13266 #: ../src/guestfs-actions.pod:5392
13267 #, no-wrap
13268 msgid ""
13269 " int\n"
13270 " guestfs_set_qemu (guestfs_h *g,\n"
13271 "                   const char *qemu);\n"
13272 "\n"
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3591
13277 msgid "Set the qemu binary that we will use."
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3593
13282 msgid ""
13283 "The default is chosen when the library was compiled by the configure script."
13284 msgstr ""
13285
13286 # type: textblock
13287 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3596
13288 msgid ""
13289 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13290 "variable."
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3599
13295 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13296 msgstr ""
13297
13298 # type: textblock
13299 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3601
13300 msgid ""
13301 "Note that you should call this function as early as possible after creating "
13302 "the handle.  This is because some pre-launch operations depend on testing "
13303 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13304 "don't retest features, and so you might see inconsistent results.  Using the "
13305 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13306 "the qemu binary at the same time as the handle is created."
13307 msgstr ""
13308
13309 # type: =head2
13310 #: ../src/guestfs-actions.pod:5418
13311 msgid "guestfs_set_recovery_proc"
13312 msgstr ""
13313
13314 # type: verbatim
13315 #: ../src/guestfs-actions.pod:5420
13316 #, no-wrap
13317 msgid ""
13318 " int\n"
13319 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13320 "                            int recoveryproc);\n"
13321 "\n"
13322 msgstr ""
13323
13324 # type: textblock
13325 #: ../src/guestfs-actions.pod:5424
13326 msgid ""
13327 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13328 "not create a recovery process.  The purpose of the recovery process is to "
13329 "stop runaway qemu processes in the case where the main program aborts "
13330 "abruptly."
13331 msgstr ""
13332
13333 # type: textblock
13334 #: ../src/guestfs-actions.pod:5429
13335 msgid ""
13336 "This only has any effect if called before C<guestfs_launch>, and the default "
13337 "is true."
13338 msgstr ""
13339
13340 # type: textblock
13341 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3623
13342 msgid ""
13343 "About the only time when you would want to disable this is if the main "
13344 "process will fork itself into the background (\"daemonize\" itself).  In "
13345 "this case the recovery process thinks that the main program has disappeared "
13346 "and so kills qemu, which is not very helpful."
13347 msgstr ""
13348
13349 # type: =head2
13350 #: ../src/guestfs-actions.pod:5442
13351 msgid "guestfs_set_selinux"
13352 msgstr ""
13353
13354 # type: verbatim
13355 #: ../src/guestfs-actions.pod:5444
13356 #, no-wrap
13357 msgid ""
13358 " int\n"
13359 " guestfs_set_selinux (guestfs_h *g,\n"
13360 "                      int selinux);\n"
13361 "\n"
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3635
13366 msgid ""
13367 "This sets the selinux flag that is passed to the appliance at boot time.  "
13368 "The default is C<selinux=0> (disabled)."
13369 msgstr ""
13370
13371 # type: textblock
13372 #: ../src/guestfs-actions.pod:5451 ../fish/guestfish-actions.pod:3638
13373 msgid ""
13374 "Note that if SELinux is enabled, it is always in Permissive mode "
13375 "(C<enforcing=0>)."
13376 msgstr ""
13377
13378 # type: =head2
13379 #: ../src/guestfs-actions.pod:5461
13380 msgid "guestfs_set_trace"
13381 msgstr ""
13382
13383 # type: verbatim
13384 #: ../src/guestfs-actions.pod:5463
13385 #, no-wrap
13386 msgid ""
13387 " int\n"
13388 " guestfs_set_trace (guestfs_h *g,\n"
13389 "                    int trace);\n"
13390 "\n"
13391 msgstr ""
13392
13393 # type: textblock
13394 #: ../src/guestfs-actions.pod:5467 ../fish/guestfish-actions.pod:3650
13395 msgid ""
13396 "If the command trace flag is set to 1, then commands are printed on stderr "
13397 "before they are executed in a format which is very similar to the one used "
13398 "by guestfish.  In other words, you can run a program with this enabled, and "
13399 "you will get out a script which you can feed to guestfish to perform the "
13400 "same set of actions."
13401 msgstr ""
13402
13403 # type: textblock
13404 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3657
13405 msgid ""
13406 "If you want to trace C API calls into libguestfs (and other libraries) then "
13407 "possibly a better way is to use the external ltrace(1) command."
13408 msgstr ""
13409
13410 # type: textblock
13411 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3661
13412 msgid ""
13413 "Command traces are disabled unless the environment variable "
13414 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13415 msgstr ""
13416
13417 # type: =head2
13418 #: ../src/guestfs-actions.pod:5485
13419 msgid "guestfs_set_verbose"
13420 msgstr ""
13421
13422 # type: verbatim
13423 #: ../src/guestfs-actions.pod:5487
13424 #, no-wrap
13425 msgid ""
13426 " int\n"
13427 " guestfs_set_verbose (guestfs_h *g,\n"
13428 "                      int verbose);\n"
13429 "\n"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3670
13434 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13435 msgstr ""
13436
13437 # type: textblock
13438 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3672
13439 msgid ""
13440 "Verbose messages are disabled unless the environment variable "
13441 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13442 msgstr ""
13443
13444 # type: =head2
13445 #: ../src/guestfs-actions.pod:5500
13446 msgid "guestfs_setcon"
13447 msgstr ""
13448
13449 # type: verbatim
13450 #: ../src/guestfs-actions.pod:5502
13451 #, no-wrap
13452 msgid ""
13453 " int\n"
13454 " guestfs_setcon (guestfs_h *g,\n"
13455 "                 const char *context);\n"
13456 "\n"
13457 msgstr ""
13458
13459 # type: textblock
13460 #: ../src/guestfs-actions.pod:5506 ../fish/guestfish-actions.pod:3679
13461 msgid ""
13462 "This sets the SELinux security context of the daemon to the string "
13463 "C<context>."
13464 msgstr ""
13465
13466 # type: textblock
13467 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3682
13468 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13469 msgstr ""
13470
13471 # type: =head2
13472 #: ../src/guestfs-actions.pod:5515
13473 msgid "guestfs_setxattr"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #: ../src/guestfs-actions.pod:5517
13478 #, no-wrap
13479 msgid ""
13480 " int\n"
13481 " guestfs_setxattr (guestfs_h *g,\n"
13482 "                   const char *xattr,\n"
13483 "                   const char *val,\n"
13484 "                   int vallen,\n"
13485 "                   const char *path);\n"
13486 "\n"
13487 msgstr ""
13488
13489 # type: textblock
13490 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:3688
13491 msgid ""
13492 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13493 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13494 msgstr ""
13495
13496 # type: textblock
13497 #: ../src/guestfs-actions.pod:5528
13498 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13499 msgstr ""
13500
13501 # type: =head2
13502 #: ../src/guestfs-actions.pod:5534
13503 msgid "guestfs_sfdisk"
13504 msgstr ""
13505
13506 # type: verbatim
13507 #: ../src/guestfs-actions.pod:5536
13508 #, no-wrap
13509 msgid ""
13510 " int\n"
13511 " guestfs_sfdisk (guestfs_h *g,\n"
13512 "                 const char *device,\n"
13513 "                 int cyls,\n"
13514 "                 int heads,\n"
13515 "                 int sectors,\n"
13516 "                 char *const *lines);\n"
13517 "\n"
13518 msgstr ""
13519
13520 # type: textblock
13521 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:3698
13522 msgid ""
13523 "This is a direct interface to the L<sfdisk(8)> program for creating "
13524 "partitions on block devices."
13525 msgstr ""
13526
13527 # type: textblock
13528 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3701
13529 msgid "C<device> should be a block device, for example C</dev/sda>."
13530 msgstr ""
13531
13532 # type: textblock
13533 #: ../src/guestfs-actions.pod:5549 ../fish/guestfish-actions.pod:3703
13534 msgid ""
13535 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13536 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13537 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13538 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13539 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13540 "the kernel) cannot work out the right geometry and you will need to tell it."
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5557 ../fish/guestfish-actions.pod:3711
13545 msgid ""
13546 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13547 "refer to the L<sfdisk(8)> manpage."
13548 msgstr ""
13549
13550 # type: textblock
13551 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3714
13552 msgid ""
13553 "To create a single partition occupying the whole disk, you would pass "
13554 "C<lines> as a single element list, when the single element being the string "
13555 "C<,> (comma)."
13556 msgstr ""
13557
13558 # type: textblock
13559 #: ../src/guestfs-actions.pod:5564
13560 msgid ""
13561 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13562 msgstr ""
13563
13564 # type: =head2
13565 #: ../src/guestfs-actions.pod:5574
13566 msgid "guestfs_sfdiskM"
13567 msgstr ""
13568
13569 # type: verbatim
13570 #: ../src/guestfs-actions.pod:5576
13571 #, no-wrap
13572 msgid ""
13573 " int\n"
13574 " guestfs_sfdiskM (guestfs_h *g,\n"
13575 "                  const char *device,\n"
13576 "                  char *const *lines);\n"
13577 "\n"
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5581
13582 msgid ""
13583 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13584 "partition sizes are specified in megabytes only (rounded to the nearest "
13585 "cylinder) and you don't need to specify the cyls, heads and sectors "
13586 "parameters which were rarely if ever used anyway."
13587 msgstr ""
13588
13589 # type: textblock
13590 #: ../src/guestfs-actions.pod:5587
13591 msgid ""
13592 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13593 "C<guestfs_part_disk>"
13594 msgstr ""
13595
13596 # type: =head2
13597 #: ../src/guestfs-actions.pod:5597
13598 msgid "guestfs_sfdisk_N"
13599 msgstr ""
13600
13601 # type: verbatim
13602 #: ../src/guestfs-actions.pod:5599
13603 #, no-wrap
13604 msgid ""
13605 " int\n"
13606 " guestfs_sfdisk_N (guestfs_h *g,\n"
13607 "                   const char *device,\n"
13608 "                   int partnum,\n"
13609 "                   int cyls,\n"
13610 "                   int heads,\n"
13611 "                   int sectors,\n"
13612 "                   const char *line);\n"
13613 "\n"
13614 msgstr ""
13615
13616 # type: textblock
13617 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3744
13618 msgid ""
13619 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13620 "(note: C<n> counts from 1)."
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5611
13625 msgid ""
13626 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13627 "for the cyls/heads/sectors parameters."
13628 msgstr ""
13629
13630 # type: textblock
13631 #: ../src/guestfs-actions.pod:5614
13632 msgid "See also: C<guestfs_part_add>"
13633 msgstr ""
13634
13635 # type: =head2
13636 #: ../src/guestfs-actions.pod:5623
13637 msgid "guestfs_sfdisk_disk_geometry"
13638 msgstr ""
13639
13640 # type: verbatim
13641 #: ../src/guestfs-actions.pod:5625
13642 #, no-wrap
13643 msgid ""
13644 " char *\n"
13645 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13646 "                               const char *device);\n"
13647 "\n"
13648 msgstr ""
13649
13650 # type: textblock
13651 #: ../src/guestfs-actions.pod:5629
13652 msgid ""
13653 "This displays the disk geometry of C<device> read from the partition table.  "
13654 "Especially in the case where the underlying block device has been resized, "
13655 "this can be different from the kernel's idea of the geometry (see "
13656 "C<guestfs_sfdisk_kernel_geometry>)."
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5650
13661 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3773
13662 msgid "The result is in human-readable format, and not designed to be parsed."
13663 msgstr ""
13664
13665 # type: =head2
13666 #: ../src/guestfs-actions.pod:5642
13667 msgid "guestfs_sfdisk_kernel_geometry"
13668 msgstr ""
13669
13670 # type: verbatim
13671 #: ../src/guestfs-actions.pod:5644
13672 #, no-wrap
13673 msgid ""
13674 " char *\n"
13675 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13676 "                                 const char *device);\n"
13677 "\n"
13678 msgstr ""
13679
13680 # type: textblock
13681 #: ../src/guestfs-actions.pod:5648 ../fish/guestfish-actions.pod:3771
13682 msgid "This displays the kernel's idea of the geometry of C<device>."
13683 msgstr ""
13684
13685 # type: =head2
13686 #: ../src/guestfs-actions.pod:5658
13687 msgid "guestfs_sfdisk_l"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #: ../src/guestfs-actions.pod:5660
13692 #, no-wrap
13693 msgid ""
13694 " char *\n"
13695 " guestfs_sfdisk_l (guestfs_h *g,\n"
13696 "                   const char *device);\n"
13697 "\n"
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3780
13702 msgid ""
13703 "This displays the partition table on C<device>, in the human-readable output "
13704 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5668
13709 msgid "See also: C<guestfs_part_list>"
13710 msgstr ""
13711
13712 # type: =head2
13713 #: ../src/guestfs-actions.pod:5675
13714 msgid "guestfs_sh"
13715 msgstr ""
13716
13717 # type: verbatim
13718 #: ../src/guestfs-actions.pod:5677
13719 #, no-wrap
13720 msgid ""
13721 " char *\n"
13722 " guestfs_sh (guestfs_h *g,\n"
13723 "             const char *command);\n"
13724 "\n"
13725 msgstr ""
13726
13727 # type: textblock
13728 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3790
13729 msgid ""
13730 "This call runs a command from the guest filesystem via the guest's C</bin/"
13731 "sh>."
13732 msgstr ""
13733
13734 # type: textblock
13735 #: ../src/guestfs-actions.pod:5684
13736 msgid "This is like C<guestfs_command>, but passes the command to:"
13737 msgstr ""
13738
13739 # type: verbatim
13740 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3795
13741 #, no-wrap
13742 msgid ""
13743 " /bin/sh -c \"command\"\n"
13744 "\n"
13745 msgstr ""
13746
13747 # type: textblock
13748 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3797
13749 msgid ""
13750 "Depending on the guest's shell, this usually results in wildcards being "
13751 "expanded, shell expressions being interpolated and so on."
13752 msgstr ""
13753
13754 # type: textblock
13755 #: ../src/guestfs-actions.pod:5692
13756 msgid "All the provisos about C<guestfs_command> apply to this call."
13757 msgstr ""
13758
13759 # type: =head2
13760 #: ../src/guestfs-actions.pod:5699
13761 msgid "guestfs_sh_lines"
13762 msgstr ""
13763
13764 # type: verbatim
13765 #: ../src/guestfs-actions.pod:5701
13766 #, no-wrap
13767 msgid ""
13768 " char **\n"
13769 " guestfs_sh_lines (guestfs_h *g,\n"
13770 "                   const char *command);\n"
13771 "\n"
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5705
13776 msgid ""
13777 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13778 "lines."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5708
13783 msgid "See also: C<guestfs_command_lines>"
13784 msgstr ""
13785
13786 # type: =head2
13787 #: ../src/guestfs-actions.pod:5716
13788 msgid "guestfs_sleep"
13789 msgstr ""
13790
13791 # type: verbatim
13792 #: ../src/guestfs-actions.pod:5718
13793 #, no-wrap
13794 msgid ""
13795 " int\n"
13796 " guestfs_sleep (guestfs_h *g,\n"
13797 "                int secs);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3816
13803 msgid "Sleep for C<secs> seconds."
13804 msgstr ""
13805
13806 # type: textblock
13807 #: ../src/guestfs-actions.pod:5726
13808 msgid "(Added in 1.0.41)"
13809 msgstr ""
13810
13811 # type: =head2
13812 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-structs.pod:109
13813 msgid "guestfs_stat"
13814 msgstr ""
13815
13816 # type: verbatim
13817 #: ../src/guestfs-actions.pod:5730
13818 #, no-wrap
13819 msgid ""
13820 " struct guestfs_stat *\n"
13821 " guestfs_stat (guestfs_h *g,\n"
13822 "               const char *path);\n"
13823 "\n"
13824 msgstr ""
13825
13826 # type: textblock
13827 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:3824
13828 msgid "This is the same as the C<stat(2)> system call."
13829 msgstr ""
13830
13831 # type: =head2
13832 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-structs.pod:135
13833 msgid "guestfs_statvfs"
13834 msgstr ""
13835
13836 # type: verbatim
13837 #: ../src/guestfs-actions.pod:5746
13838 #, no-wrap
13839 msgid ""
13840 " struct guestfs_statvfs *\n"
13841 " guestfs_statvfs (guestfs_h *g,\n"
13842 "                  const char *path);\n"
13843 "\n"
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3830
13848 msgid ""
13849 "Returns file system statistics for any mounted file system.  C<path> should "
13850 "be a file or directory in the mounted file system (typically it is the mount "
13851 "point itself, but it doesn't need to be)."
13852 msgstr ""
13853
13854 # type: textblock
13855 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3834
13856 msgid "This is the same as the C<statvfs(2)> system call."
13857 msgstr ""
13858
13859 # type: textblock
13860 #: ../src/guestfs-actions.pod:5756
13861 msgid ""
13862 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13863 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13864 msgstr ""
13865
13866 # type: =head2
13867 #: ../src/guestfs-actions.pod:5762
13868 msgid "guestfs_strings"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #: ../src/guestfs-actions.pod:5764
13873 #, no-wrap
13874 msgid ""
13875 " char **\n"
13876 " guestfs_strings (guestfs_h *g,\n"
13877 "                  const char *path);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:3840
13883 msgid ""
13884 "This runs the L<strings(1)> command on a file and returns the list of "
13885 "printable strings found."
13886 msgstr ""
13887
13888 # type: =head2
13889 #: ../src/guestfs-actions.pod:5780
13890 msgid "guestfs_strings_e"
13891 msgstr ""
13892
13893 # type: verbatim
13894 #: ../src/guestfs-actions.pod:5782
13895 #, no-wrap
13896 msgid ""
13897 " char **\n"
13898 " guestfs_strings_e (guestfs_h *g,\n"
13899 "                    const char *encoding,\n"
13900 "                    const char *path);\n"
13901 "\n"
13902 msgstr ""
13903
13904 # type: textblock
13905 #: ../src/guestfs-actions.pod:5787
13906 msgid ""
13907 "This is like the C<guestfs_strings> command, but allows you to specify the "
13908 "encoding of strings that are looked for in the source file C<path>."
13909 msgstr ""
13910
13911 # type: textblock
13912 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3854
13913 msgid "Allowed encodings are:"
13914 msgstr ""
13915
13916 # type: =item
13917 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3858
13918 msgid "s"
13919 msgstr ""
13920
13921 # type: textblock
13922 #: ../src/guestfs-actions.pod:5797
13923 msgid ""
13924 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13925 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13926 msgstr ""
13927
13928 # type: =item
13929 #: ../src/guestfs-actions.pod:5800 ../fish/guestfish-actions.pod:3863
13930 msgid "S"
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:5802 ../fish/guestfish-actions.pod:3865
13935 msgid "Single 8-bit-byte characters."
13936 msgstr ""
13937
13938 # type: =item
13939 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3867
13940 msgid "b"
13941 msgstr ""
13942
13943 # type: textblock
13944 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3869
13945 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13946 msgstr ""
13947
13948 # type: =item
13949 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3872
13950 msgid "l (lower case letter L)"
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3874
13955 msgid ""
13956 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13957 "examining binaries in Windows guests."
13958 msgstr ""
13959
13960 # type: =item
13961 #: ../src/guestfs-actions.pod:5814 ../fish/guestfish-actions.pod:3877
13962 msgid "B"
13963 msgstr ""
13964
13965 # type: textblock
13966 #: ../src/guestfs-actions.pod:5816 ../fish/guestfish-actions.pod:3879
13967 msgid "32-bit big endian such as UCS-4BE."
13968 msgstr ""
13969
13970 # type: =item
13971 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3881
13972 msgid "L"
13973 msgstr ""
13974
13975 # type: textblock
13976 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3883
13977 msgid "32-bit little endian such as UCS-4LE."
13978 msgstr ""
13979
13980 # type: textblock
13981 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3887
13982 msgid "The returned strings are transcoded to UTF-8."
13983 msgstr ""
13984
13985 # type: =head2
13986 #: ../src/guestfs-actions.pod:5835
13987 msgid "guestfs_swapoff_device"
13988 msgstr ""
13989
13990 # type: verbatim
13991 #: ../src/guestfs-actions.pod:5837
13992 #, no-wrap
13993 msgid ""
13994 " int\n"
13995 " guestfs_swapoff_device (guestfs_h *g,\n"
13996 "                         const char *device);\n"
13997 "\n"
13998 msgstr ""
13999
14000 # type: textblock
14001 #: ../src/guestfs-actions.pod:5841
14002 msgid ""
14003 "This command disables the libguestfs appliance swap device or partition "
14004 "named C<device>.  See C<guestfs_swapon_device>."
14005 msgstr ""
14006
14007 # type: =head2
14008 #: ../src/guestfs-actions.pod:5849
14009 msgid "guestfs_swapoff_file"
14010 msgstr ""
14011
14012 # type: verbatim
14013 #: ../src/guestfs-actions.pod:5851
14014 #, no-wrap
14015 msgid ""
14016 " int\n"
14017 " guestfs_swapoff_file (guestfs_h *g,\n"
14018 "                       const char *file);\n"
14019 "\n"
14020 msgstr ""
14021
14022 # type: textblock
14023 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3904
14024 msgid "This command disables the libguestfs appliance swap on file."
14025 msgstr ""
14026
14027 # type: =head2
14028 #: ../src/guestfs-actions.pod:5861
14029 msgid "guestfs_swapoff_label"
14030 msgstr ""
14031
14032 # type: verbatim
14033 #: ../src/guestfs-actions.pod:5863
14034 #, no-wrap
14035 msgid ""
14036 " int\n"
14037 " guestfs_swapoff_label (guestfs_h *g,\n"
14038 "                        const char *label);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3910
14044 msgid ""
14045 "This command disables the libguestfs appliance swap on labeled swap "
14046 "partition."
14047 msgstr ""
14048
14049 # type: =head2
14050 #: ../src/guestfs-actions.pod:5874
14051 msgid "guestfs_swapoff_uuid"
14052 msgstr ""
14053
14054 # type: verbatim
14055 #: ../src/guestfs-actions.pod:5876
14056 #, no-wrap
14057 msgid ""
14058 " int\n"
14059 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14060 "                       const char *uuid);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3917
14066 msgid ""
14067 "This command disables the libguestfs appliance swap partition with the given "
14068 "UUID."
14069 msgstr ""
14070
14071 # type: =head2
14072 #: ../src/guestfs-actions.pod:5887
14073 msgid "guestfs_swapon_device"
14074 msgstr ""
14075
14076 # type: verbatim
14077 #: ../src/guestfs-actions.pod:5889
14078 #, no-wrap
14079 msgid ""
14080 " int\n"
14081 " guestfs_swapon_device (guestfs_h *g,\n"
14082 "                        const char *device);\n"
14083 "\n"
14084 msgstr ""
14085
14086 # type: textblock
14087 #: ../src/guestfs-actions.pod:5893
14088 msgid ""
14089 "This command enables the libguestfs appliance to use the swap device or "
14090 "partition named C<device>.  The increased memory is made available for all "
14091 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14092 msgstr ""
14093
14094 # type: textblock
14095 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:3929
14096 msgid ""
14097 "Note that you should not swap to existing guest swap partitions unless you "
14098 "know what you are doing.  They may contain hibernation information, or other "
14099 "information that the guest doesn't want you to trash.  You also risk leaking "
14100 "information about the host to the guest this way.  Instead, attach a new "
14101 "host device to the guest and swap on that."
14102 msgstr ""
14103
14104 # type: =head2
14105 #: ../src/guestfs-actions.pod:5909
14106 msgid "guestfs_swapon_file"
14107 msgstr ""
14108
14109 # type: verbatim
14110 #: ../src/guestfs-actions.pod:5911
14111 #, no-wrap
14112 msgid ""
14113 " int\n"
14114 " guestfs_swapon_file (guestfs_h *g,\n"
14115 "                      const char *file);\n"
14116 "\n"
14117 msgstr ""
14118
14119 # type: textblock
14120 #: ../src/guestfs-actions.pod:5915
14121 msgid ""
14122 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14123 "notes."
14124 msgstr ""
14125
14126 # type: =head2
14127 #: ../src/guestfs-actions.pod:5922
14128 msgid "guestfs_swapon_label"
14129 msgstr ""
14130
14131 # type: verbatim
14132 #: ../src/guestfs-actions.pod:5924
14133 #, no-wrap
14134 msgid ""
14135 " int\n"
14136 " guestfs_swapon_label (guestfs_h *g,\n"
14137 "                       const char *label);\n"
14138 "\n"
14139 msgstr ""
14140
14141 # type: textblock
14142 #: ../src/guestfs-actions.pod:5928
14143 msgid ""
14144 "This command enables swap to a labeled swap partition.  See "
14145 "C<guestfs_swapon_device> for other notes."
14146 msgstr ""
14147
14148 # type: =head2
14149 #: ../src/guestfs-actions.pod:5935
14150 msgid "guestfs_swapon_uuid"
14151 msgstr ""
14152
14153 # type: verbatim
14154 #: ../src/guestfs-actions.pod:5937
14155 #, no-wrap
14156 msgid ""
14157 " int\n"
14158 " guestfs_swapon_uuid (guestfs_h *g,\n"
14159 "                      const char *uuid);\n"
14160 "\n"
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-actions.pod:5941
14165 msgid ""
14166 "This command enables swap to a swap partition with the given UUID.  See "
14167 "C<guestfs_swapon_device> for other notes."
14168 msgstr ""
14169
14170 # type: =head2
14171 #: ../src/guestfs-actions.pod:5948
14172 msgid "guestfs_sync"
14173 msgstr ""
14174
14175 # type: verbatim
14176 #: ../src/guestfs-actions.pod:5950
14177 #, no-wrap
14178 msgid ""
14179 " int\n"
14180 " guestfs_sync (guestfs_h *g);\n"
14181 "\n"
14182 msgstr ""
14183
14184 # type: textblock
14185 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3961
14186 msgid ""
14187 "This syncs the disk, so that any writes are flushed through to the "
14188 "underlying disk image."
14189 msgstr ""
14190
14191 # type: textblock
14192 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3964
14193 msgid ""
14194 "You should always call this if you have modified a disk image, before "
14195 "closing the handle."
14196 msgstr ""
14197
14198 # type: =head2
14199 #: ../src/guestfs-actions.pod:5963
14200 msgid "guestfs_tail"
14201 msgstr ""
14202
14203 # type: verbatim
14204 #: ../src/guestfs-actions.pod:5965
14205 #, no-wrap
14206 msgid ""
14207 " char **\n"
14208 " guestfs_tail (guestfs_h *g,\n"
14209 "               const char *path);\n"
14210 "\n"
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3971
14215 msgid ""
14216 "This command returns up to the last 10 lines of a file as a list of strings."
14217 msgstr ""
14218
14219 # type: =head2
14220 #: ../src/guestfs-actions.pod:5981
14221 msgid "guestfs_tail_n"
14222 msgstr ""
14223
14224 # type: verbatim
14225 #: ../src/guestfs-actions.pod:5983
14226 #, no-wrap
14227 msgid ""
14228 " char **\n"
14229 " guestfs_tail_n (guestfs_h *g,\n"
14230 "                 int nrlines,\n"
14231 "                 const char *path);\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:3981
14237 msgid ""
14238 "If the parameter C<nrlines> is a positive number, this returns the last "
14239 "C<nrlines> lines of the file C<path>."
14240 msgstr ""
14241
14242 # type: textblock
14243 #: ../src/guestfs-actions.pod:5991 ../fish/guestfish-actions.pod:3984
14244 msgid ""
14245 "If the parameter C<nrlines> is a negative number, this returns lines from "
14246 "the file C<path>, starting with the C<-nrlines>th line."
14247 msgstr ""
14248
14249 # type: =head2
14250 #: ../src/guestfs-actions.pod:6005
14251 msgid "guestfs_tar_in"
14252 msgstr ""
14253
14254 # type: verbatim
14255 #: ../src/guestfs-actions.pod:6007
14256 #, no-wrap
14257 msgid ""
14258 " int\n"
14259 " guestfs_tar_in (guestfs_h *g,\n"
14260 "                 const char *tarfile,\n"
14261 "                 const char *directory);\n"
14262 "\n"
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:6012 ../fish/guestfish-actions.pod:3996
14267 msgid ""
14268 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14269 "tar file) into C<directory>."
14270 msgstr ""
14271
14272 # type: textblock
14273 #: ../src/guestfs-actions.pod:6015
14274 msgid ""
14275 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14276 msgstr ""
14277
14278 # type: textblock
14279 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6037
14280 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6069
14281 msgid "(Added in 1.0.3)"
14282 msgstr ""
14283
14284 # type: =head2
14285 #: ../src/guestfs-actions.pod:6022
14286 msgid "guestfs_tar_out"
14287 msgstr ""
14288
14289 # type: verbatim
14290 #: ../src/guestfs-actions.pod:6024
14291 #, no-wrap
14292 msgid ""
14293 " int\n"
14294 " guestfs_tar_out (guestfs_h *g,\n"
14295 "                  const char *directory,\n"
14296 "                  const char *tarfile);\n"
14297 "\n"
14298 msgstr ""
14299
14300 # type: textblock
14301 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4008
14302 msgid ""
14303 "This command packs the contents of C<directory> and downloads it to local "
14304 "file C<tarfile>."
14305 msgstr ""
14306
14307 # type: textblock
14308 #: ../src/guestfs-actions.pod:6032
14309 msgid ""
14310 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14311 "C<guestfs_txz_out>."
14312 msgstr ""
14313
14314 # type: =head2
14315 #: ../src/guestfs-actions.pod:6039
14316 msgid "guestfs_tgz_in"
14317 msgstr ""
14318
14319 # type: verbatim
14320 #: ../src/guestfs-actions.pod:6041
14321 #, no-wrap
14322 msgid ""
14323 " int\n"
14324 " guestfs_tgz_in (guestfs_h *g,\n"
14325 "                 const char *tarball,\n"
14326 "                 const char *directory);\n"
14327 "\n"
14328 msgstr ""
14329
14330 # type: textblock
14331 #: ../src/guestfs-actions.pod:6046 ../fish/guestfish-actions.pod:4020
14332 msgid ""
14333 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14334 "tar file) into C<directory>."
14335 msgstr ""
14336
14337 # type: textblock
14338 #: ../src/guestfs-actions.pod:6049
14339 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14340 msgstr ""
14341
14342 # type: =head2
14343 #: ../src/guestfs-actions.pod:6055
14344 msgid "guestfs_tgz_out"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../src/guestfs-actions.pod:6057
14349 #, no-wrap
14350 msgid ""
14351 " int\n"
14352 " guestfs_tgz_out (guestfs_h *g,\n"
14353 "                  const char *directory,\n"
14354 "                  const char *tarball);\n"
14355 "\n"
14356 msgstr ""
14357
14358 # type: textblock
14359 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4031
14360 msgid ""
14361 "This command packs the contents of C<directory> and downloads it to local "
14362 "file C<tarball>."
14363 msgstr ""
14364
14365 # type: textblock
14366 #: ../src/guestfs-actions.pod:6065
14367 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14368 msgstr ""
14369
14370 # type: =head2
14371 #: ../src/guestfs-actions.pod:6071
14372 msgid "guestfs_touch"
14373 msgstr ""
14374
14375 # type: verbatim
14376 #: ../src/guestfs-actions.pod:6073
14377 #, no-wrap
14378 msgid ""
14379 " int\n"
14380 " guestfs_touch (guestfs_h *g,\n"
14381 "                const char *path);\n"
14382 "\n"
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4042
14387 msgid ""
14388 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14389 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14390 "length file."
14391 msgstr ""
14392
14393 # type: textblock
14394 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4046
14395 msgid ""
14396 "This command only works on regular files, and will fail on other file types "
14397 "such as directories, symbolic links, block special etc."
14398 msgstr ""
14399
14400 # type: =head2
14401 #: ../src/guestfs-actions.pod:6088
14402 msgid "guestfs_truncate"
14403 msgstr ""
14404
14405 # type: verbatim
14406 #: ../src/guestfs-actions.pod:6090
14407 #, no-wrap
14408 msgid ""
14409 " int\n"
14410 " guestfs_truncate (guestfs_h *g,\n"
14411 "                   const char *path);\n"
14412 "\n"
14413 msgstr ""
14414
14415 # type: textblock
14416 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4053
14417 msgid ""
14418 "This command truncates C<path> to a zero-length file.  The file must exist "
14419 "already."
14420 msgstr ""
14421
14422 # type: =head2
14423 #: ../src/guestfs-actions.pod:6101
14424 msgid "guestfs_truncate_size"
14425 msgstr ""
14426
14427 # type: verbatim
14428 #: ../src/guestfs-actions.pod:6103
14429 #, no-wrap
14430 msgid ""
14431 " int\n"
14432 " guestfs_truncate_size (guestfs_h *g,\n"
14433 "                        const char *path,\n"
14434 "                        int64_t size);\n"
14435 "\n"
14436 msgstr ""
14437
14438 # type: textblock
14439 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4060
14440 msgid ""
14441 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14442 "already."
14443 msgstr ""
14444
14445 # type: textblock
14446 #: ../src/guestfs-actions.pod:6111
14447 msgid ""
14448 "If the current file size is less than C<size> then the file is extended to "
14449 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14450 "blocks are not allocated for the file until you write to it).  To create a "
14451 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14452 msgstr ""
14453
14454 # type: =head2
14455 #: ../src/guestfs-actions.pod:6121
14456 msgid "guestfs_tune2fs_l"
14457 msgstr ""
14458
14459 # type: verbatim
14460 #: ../src/guestfs-actions.pod:6123
14461 #, no-wrap
14462 msgid ""
14463 " char **\n"
14464 " guestfs_tune2fs_l (guestfs_h *g,\n"
14465 "                    const char *device);\n"
14466 "\n"
14467 msgstr ""
14468
14469 # type: textblock
14470 #: ../src/guestfs-actions.pod:6127 ../fish/guestfish-actions.pod:4073
14471 msgid ""
14472 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14473 "C<device>."
14474 msgstr ""
14475
14476 # type: textblock
14477 #: ../src/guestfs-actions.pod:6130 ../fish/guestfish-actions.pod:4076
14478 msgid ""
14479 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14480 "for more details.  The list of fields returned isn't clearly defined, and "
14481 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14482 "and the filesystem itself."
14483 msgstr ""
14484
14485 # type: =head2
14486 #: ../src/guestfs-actions.pod:6143
14487 msgid "guestfs_txz_in"
14488 msgstr ""
14489
14490 # type: verbatim
14491 #: ../src/guestfs-actions.pod:6145
14492 #, no-wrap
14493 msgid ""
14494 " int\n"
14495 " guestfs_txz_in (guestfs_h *g,\n"
14496 "                 const char *tarball,\n"
14497 "                 const char *directory);\n"
14498 "\n"
14499 msgstr ""
14500
14501 # type: textblock
14502 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4085
14503 msgid ""
14504 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14505 "tar file) into C<directory>."
14506 msgstr ""
14507
14508 # type: =head2
14509 #: ../src/guestfs-actions.pod:6157
14510 msgid "guestfs_txz_out"
14511 msgstr ""
14512
14513 # type: verbatim
14514 #: ../src/guestfs-actions.pod:6159
14515 #, no-wrap
14516 msgid ""
14517 " int\n"
14518 " guestfs_txz_out (guestfs_h *g,\n"
14519 "                  const char *directory,\n"
14520 "                  const char *tarball);\n"
14521 "\n"
14522 msgstr ""
14523
14524 # type: textblock
14525 #: ../src/guestfs-actions.pod:6164 ../fish/guestfish-actions.pod:4094
14526 msgid ""
14527 "This command packs the contents of C<directory> and downloads it to local "
14528 "file C<tarball> (as an xz compressed tar archive)."
14529 msgstr ""
14530
14531 # type: =head2
14532 #: ../src/guestfs-actions.pod:6171
14533 msgid "guestfs_umask"
14534 msgstr ""
14535
14536 # type: verbatim
14537 #: ../src/guestfs-actions.pod:6173
14538 #, no-wrap
14539 msgid ""
14540 " int\n"
14541 " guestfs_umask (guestfs_h *g,\n"
14542 "                int mask);\n"
14543 "\n"
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-actions.pod:6177 ../fish/guestfish-actions.pod:4103
14548 msgid ""
14549 "This function sets the mask used for creating new files and device nodes to "
14550 "C<mask & 0777>."
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4106
14555 msgid ""
14556 "Typical umask values would be C<022> which creates new files with "
14557 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14558 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14559 msgstr ""
14560
14561 # type: textblock
14562 #: ../src/guestfs-actions.pod:6185 ../fish/guestfish-actions.pod:4111
14563 msgid ""
14564 "The default umask is C<022>.  This is important because it means that "
14565 "directories and device nodes will be created with C<0644> or C<0755> mode "
14566 "even if you specify C<0777>."
14567 msgstr ""
14568
14569 # type: textblock
14570 #: ../src/guestfs-actions.pod:6189
14571 msgid ""
14572 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14573 "C<guestfs_mkdir>."
14574 msgstr ""
14575
14576 # type: textblock
14577 #: ../src/guestfs-actions.pod:6192 ../fish/guestfish-actions.pod:4118
14578 msgid "This call returns the previous umask."
14579 msgstr ""
14580
14581 # type: =head2
14582 #: ../src/guestfs-actions.pod:6198
14583 msgid "guestfs_umount"
14584 msgstr ""
14585
14586 # type: verbatim
14587 #: ../src/guestfs-actions.pod:6200
14588 #, no-wrap
14589 msgid ""
14590 " int\n"
14591 " guestfs_umount (guestfs_h *g,\n"
14592 "                 const char *pathordevice);\n"
14593 "\n"
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4126
14598 msgid ""
14599 "This unmounts the given filesystem.  The filesystem may be specified either "
14600 "by its mountpoint (path) or the device which contains the filesystem."
14601 msgstr ""
14602
14603 # type: =head2
14604 #: ../src/guestfs-actions.pod:6212
14605 msgid "guestfs_umount_all"
14606 msgstr ""
14607
14608 # type: verbatim
14609 #: ../src/guestfs-actions.pod:6214
14610 #, no-wrap
14611 msgid ""
14612 " int\n"
14613 " guestfs_umount_all (guestfs_h *g);\n"
14614 "\n"
14615 msgstr ""
14616
14617 # type: textblock
14618 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4136
14619 msgid "This unmounts all mounted filesystems."
14620 msgstr ""
14621
14622 # type: textblock
14623 #: ../src/guestfs-actions.pod:6219 ../fish/guestfish-actions.pod:4138
14624 msgid "Some internal mounts are not unmounted by this call."
14625 msgstr ""
14626
14627 # type: =head2
14628 #: ../src/guestfs-actions.pod:6225
14629 msgid "guestfs_upload"
14630 msgstr ""
14631
14632 # type: verbatim
14633 #: ../src/guestfs-actions.pod:6227
14634 #, no-wrap
14635 msgid ""
14636 " int\n"
14637 " guestfs_upload (guestfs_h *g,\n"
14638 "                 const char *filename,\n"
14639 "                 const char *remotefilename);\n"
14640 "\n"
14641 msgstr ""
14642
14643 # type: textblock
14644 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6251
14645 #: ../fish/guestfish-actions.pod:4144 ../fish/guestfish-actions.pod:4157
14646 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14647 msgstr ""
14648
14649 # type: textblock
14650 #: ../src/guestfs-actions.pod:6237
14651 msgid "See also C<guestfs_download>."
14652 msgstr ""
14653
14654 # type: =head2
14655 #: ../src/guestfs-actions.pod:6243
14656 msgid "guestfs_upload_offset"
14657 msgstr ""
14658
14659 # type: verbatim
14660 #: ../src/guestfs-actions.pod:6245
14661 #, no-wrap
14662 msgid ""
14663 " int\n"
14664 " guestfs_upload_offset (guestfs_h *g,\n"
14665 "                        const char *filename,\n"
14666 "                        const char *remotefilename,\n"
14667 "                        int64_t offset);\n"
14668 "\n"
14669 msgstr ""
14670
14671 # type: textblock
14672 #: ../src/guestfs-actions.pod:6254 ../fish/guestfish-actions.pod:4160
14673 msgid ""
14674 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14675 "The intention is to overwrite parts of existing files or devices, although "
14676 "if a non-existant file is specified then it is created with a \"hole\" "
14677 "before C<offset>.  The size of the data written is implicit in the size of "
14678 "the source C<filename>."
14679 msgstr ""
14680
14681 # type: textblock
14682 #: ../src/guestfs-actions.pod:6261
14683 msgid ""
14684 "Note that there is no limit on the amount of data that can be uploaded with "
14685 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14686 "full amount unless an error occurs."
14687 msgstr ""
14688
14689 # type: textblock
14690 #: ../src/guestfs-actions.pod:6266
14691 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14692 msgstr ""
14693
14694 # type: =head2
14695 #: ../src/guestfs-actions.pod:6272
14696 msgid "guestfs_utimens"
14697 msgstr ""
14698
14699 # type: verbatim
14700 #: ../src/guestfs-actions.pod:6274
14701 #, no-wrap
14702 msgid ""
14703 " int\n"
14704 " guestfs_utimens (guestfs_h *g,\n"
14705 "                  const char *path,\n"
14706 "                  int64_t atsecs,\n"
14707 "                  int64_t atnsecs,\n"
14708 "                  int64_t mtsecs,\n"
14709 "                  int64_t mtnsecs);\n"
14710 "\n"
14711 msgstr ""
14712
14713 # type: textblock
14714 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4180
14715 msgid "This command sets the timestamps of a file with nanosecond precision."
14716 msgstr ""
14717
14718 # type: textblock
14719 #: ../src/guestfs-actions.pod:6285 ../fish/guestfish-actions.pod:4183
14720 msgid ""
14721 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14722 "from the epoch."
14723 msgstr ""
14724
14725 # type: textblock
14726 #: ../src/guestfs-actions.pod:6288 ../fish/guestfish-actions.pod:4186
14727 msgid ""
14728 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14729 "nanoseconds from the epoch."
14730 msgstr ""
14731
14732 # type: textblock
14733 #: ../src/guestfs-actions.pod:6291 ../fish/guestfish-actions.pod:4189
14734 msgid ""
14735 "If the C<*nsecs> field contains the special value C<-1> then the "
14736 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14737 "ignored in this case)."
14738 msgstr ""
14739
14740 # type: textblock
14741 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4193
14742 msgid ""
14743 "If the C<*nsecs> field contains the special value C<-2> then the "
14744 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14745 "in this case)."
14746 msgstr ""
14747
14748 # type: =head2
14749 #: ../src/guestfs-actions.pod:6303 ../src/guestfs-structs.pod:175
14750 msgid "guestfs_version"
14751 msgstr ""
14752
14753 # type: verbatim
14754 #: ../src/guestfs-actions.pod:6305
14755 #, no-wrap
14756 msgid ""
14757 " struct guestfs_version *\n"
14758 " guestfs_version (guestfs_h *g);\n"
14759 "\n"
14760 msgstr ""
14761
14762 # type: textblock
14763 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4201
14764 msgid ""
14765 "Return the libguestfs version number that the program is linked against."
14766 msgstr ""
14767
14768 # type: textblock
14769 #: ../src/guestfs-actions.pod:6311 ../fish/guestfish-actions.pod:4204
14770 msgid ""
14771 "Note that because of dynamic linking this is not necessarily the version of "
14772 "libguestfs that you compiled against.  You can compile the program, and then "
14773 "at runtime dynamically link against a completely different C<libguestfs.so> "
14774 "library."
14775 msgstr ""
14776
14777 # type: textblock
14778 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4209
14779 msgid ""
14780 "This call was added in version C<1.0.58>.  In previous versions of "
14781 "libguestfs there was no way to get the version number.  From C code you can "
14782 "use dynamic linker functions to find out if this symbol exists (if it "
14783 "doesn't, then it's an earlier version)."
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4215
14788 msgid ""
14789 "The call returns a structure with four elements.  The first three (C<major>, "
14790 "C<minor> and C<release>) are numbers and correspond to the usual version "
14791 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14792 "but may be used for distro-specific information."
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6328 ../fish/guestfish-actions.pod:4221
14797 msgid ""
14798 "To construct the original version string: C<$major.$minor.$release$extra>"
14799 msgstr ""
14800
14801 # type: textblock
14802 #: ../src/guestfs-actions.pod:6331 ../fish/guestfish-actions.pod:4224
14803 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14804 msgstr ""
14805
14806 # type: textblock
14807 #: ../src/guestfs-actions.pod:6333
14808 msgid ""
14809 "I<Note:> Don't use this call to test for availability of features.  In "
14810 "enterprise distributions we backport features from later versions into "
14811 "earlier versions, making this an unreliable way to test for features.  Use "
14812 "C<guestfs_available> instead."
14813 msgstr ""
14814
14815 # type: textblock
14816 #: ../src/guestfs-actions.pod:6339
14817 msgid ""
14818 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14819 "error.  I<The caller must call C<guestfs_free_version> after use>."
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6343
14824 msgid "(Added in 1.0.58)"
14825 msgstr ""
14826
14827 # type: =head2
14828 #: ../src/guestfs-actions.pod:6345
14829 msgid "guestfs_vfs_label"
14830 msgstr ""
14831
14832 # type: verbatim
14833 #: ../src/guestfs-actions.pod:6347
14834 #, no-wrap
14835 msgid ""
14836 " char *\n"
14837 " guestfs_vfs_label (guestfs_h *g,\n"
14838 "                    const char *device);\n"
14839 "\n"
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4236
14844 msgid "This returns the filesystem label of the filesystem on C<device>."
14845 msgstr ""
14846
14847 # type: textblock
14848 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4239
14849 msgid "If the filesystem is unlabeled, this returns the empty string."
14850 msgstr ""
14851
14852 # type: textblock
14853 #: ../src/guestfs-actions.pod:6356
14854 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6398
14859 msgid "(Added in 1.3.18)"
14860 msgstr ""
14861
14862 # type: =head2
14863 #: ../src/guestfs-actions.pod:6363
14864 msgid "guestfs_vfs_type"
14865 msgstr ""
14866
14867 # type: verbatim
14868 #: ../src/guestfs-actions.pod:6365
14869 #, no-wrap
14870 msgid ""
14871 " char *\n"
14872 " guestfs_vfs_type (guestfs_h *g,\n"
14873 "                   const char *device);\n"
14874 "\n"
14875 msgstr ""
14876
14877 # type: textblock
14878 #: ../src/guestfs-actions.pod:6369 ../fish/guestfish-actions.pod:4247
14879 msgid ""
14880 "This command gets the filesystem type corresponding to the filesystem on "
14881 "C<device>."
14882 msgstr ""
14883
14884 # type: textblock
14885 #: ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:4250
14886 msgid ""
14887 "For most filesystems, the result is the name of the Linux VFS module which "
14888 "would be used to mount this filesystem if you mounted it without specifying "
14889 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14890 msgstr ""
14891
14892 # type: =head2
14893 #: ../src/guestfs-actions.pod:6382
14894 msgid "guestfs_vfs_uuid"
14895 msgstr ""
14896
14897 # type: verbatim
14898 #: ../src/guestfs-actions.pod:6384
14899 #, no-wrap
14900 msgid ""
14901 " char *\n"
14902 " guestfs_vfs_uuid (guestfs_h *g,\n"
14903 "                   const char *device);\n"
14904 "\n"
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4259
14909 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14910 msgstr ""
14911
14912 # type: textblock
14913 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4262
14914 msgid "If the filesystem does not have a UUID, this returns the empty string."
14915 msgstr ""
14916
14917 # type: textblock
14918 #: ../src/guestfs-actions.pod:6393
14919 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14920 msgstr ""
14921
14922 # type: =head2
14923 #: ../src/guestfs-actions.pod:6400
14924 msgid "guestfs_vg_activate"
14925 msgstr ""
14926
14927 # type: verbatim
14928 #: ../src/guestfs-actions.pod:6402
14929 #, no-wrap
14930 msgid ""
14931 " int\n"
14932 " guestfs_vg_activate (guestfs_h *g,\n"
14933 "                      int activate,\n"
14934 "                      char *const *volgroups);\n"
14935 "\n"
14936 msgstr ""
14937
14938 # type: textblock
14939 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4270
14940 msgid ""
14941 "This command activates or (if C<activate> is false) deactivates all logical "
14942 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14943 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14944 "deactivated, then those devices disappear."
14945 msgstr ""
14946
14947 # type: textblock
14948 #: ../src/guestfs-actions.pod:6413 ../fish/guestfish-actions.pod:4276
14949 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14950 msgstr ""
14951
14952 # type: textblock
14953 #: ../src/guestfs-actions.pod:6415 ../fish/guestfish-actions.pod:4278
14954 msgid ""
14955 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14956 "activated or deactivated."
14957 msgstr ""
14958
14959 # type: =head2
14960 #: ../src/guestfs-actions.pod:6422
14961 msgid "guestfs_vg_activate_all"
14962 msgstr ""
14963
14964 # type: verbatim
14965 #: ../src/guestfs-actions.pod:6424
14966 #, no-wrap
14967 msgid ""
14968 " int\n"
14969 " guestfs_vg_activate_all (guestfs_h *g,\n"
14970 "                          int activate);\n"
14971 "\n"
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4285
14976 msgid ""
14977 "This command activates or (if C<activate> is false) deactivates all logical "
14978 "volumes in all volume groups.  If activated, then they are made known to the "
14979 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14980 "those devices disappear."
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4291
14985 msgid "This command is the same as running C<vgchange -a y|n>"
14986 msgstr ""
14987
14988 # type: =head2
14989 #: ../src/guestfs-actions.pod:6440
14990 msgid "guestfs_vgcreate"
14991 msgstr ""
14992
14993 # type: verbatim
14994 #: ../src/guestfs-actions.pod:6442
14995 #, no-wrap
14996 msgid ""
14997 " int\n"
14998 " guestfs_vgcreate (guestfs_h *g,\n"
14999 "                   const char *volgroup,\n"
15000 "                   char *const *physvols);\n"
15001 "\n"
15002 msgstr ""
15003
15004 # type: textblock
15005 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4297
15006 msgid ""
15007 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15008 "of physical volumes C<physvols>."
15009 msgstr ""
15010
15011 # type: =head2
15012 #: ../src/guestfs-actions.pod:6454
15013 msgid "guestfs_vglvuuids"
15014 msgstr ""
15015
15016 # type: verbatim
15017 #: ../src/guestfs-actions.pod:6456
15018 #, no-wrap
15019 msgid ""
15020 " char **\n"
15021 " guestfs_vglvuuids (guestfs_h *g,\n"
15022 "                    const char *vgname);\n"
15023 "\n"
15024 msgstr ""
15025
15026 # type: textblock
15027 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4304
15028 msgid ""
15029 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15030 "volumes created in this volume group."
15031 msgstr ""
15032
15033 # type: textblock
15034 #: ../src/guestfs-actions.pod:6463
15035 msgid ""
15036 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15037 "associate logical volumes and volume groups."
15038 msgstr ""
15039
15040 # type: textblock
15041 #: ../src/guestfs-actions.pod:6466
15042 msgid "See also C<guestfs_vgpvuuids>."
15043 msgstr ""
15044
15045 # type: =head2
15046 #: ../src/guestfs-actions.pod:6474
15047 msgid "guestfs_vgpvuuids"
15048 msgstr ""
15049
15050 # type: verbatim
15051 #: ../src/guestfs-actions.pod:6476
15052 #, no-wrap
15053 msgid ""
15054 " char **\n"
15055 " guestfs_vgpvuuids (guestfs_h *g,\n"
15056 "                    const char *vgname);\n"
15057 "\n"
15058 msgstr ""
15059
15060 # type: textblock
15061 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4316
15062 msgid ""
15063 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15064 "volumes that this volume group resides on."
15065 msgstr ""
15066
15067 # type: textblock
15068 #: ../src/guestfs-actions.pod:6483
15069 msgid ""
15070 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15071 "associate physical volumes and volume groups."
15072 msgstr ""
15073
15074 # type: textblock
15075 #: ../src/guestfs-actions.pod:6486
15076 msgid "See also C<guestfs_vglvuuids>."
15077 msgstr ""
15078
15079 # type: =head2
15080 #: ../src/guestfs-actions.pod:6494
15081 msgid "guestfs_vgremove"
15082 msgstr ""
15083
15084 # type: verbatim
15085 #: ../src/guestfs-actions.pod:6496
15086 #, no-wrap
15087 msgid ""
15088 " int\n"
15089 " guestfs_vgremove (guestfs_h *g,\n"
15090 "                   const char *vgname);\n"
15091 "\n"
15092 msgstr ""
15093
15094 # type: textblock
15095 #: ../src/guestfs-actions.pod:6500 ../fish/guestfish-actions.pod:4328
15096 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15097 msgstr ""
15098
15099 # type: textblock
15100 #: ../src/guestfs-actions.pod:6502 ../fish/guestfish-actions.pod:4330
15101 msgid ""
15102 "This also forcibly removes all logical volumes in the volume group (if any)."
15103 msgstr ""
15104
15105 # type: =head2
15106 #: ../src/guestfs-actions.pod:6509
15107 msgid "guestfs_vgrename"
15108 msgstr ""
15109
15110 # type: verbatim
15111 #: ../src/guestfs-actions.pod:6511
15112 #, no-wrap
15113 msgid ""
15114 " int\n"
15115 " guestfs_vgrename (guestfs_h *g,\n"
15116 "                   const char *volgroup,\n"
15117 "                   const char *newvolgroup);\n"
15118 "\n"
15119 msgstr ""
15120
15121 # type: textblock
15122 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4337
15123 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15124 msgstr ""
15125
15126 # type: =head2
15127 #: ../src/guestfs-actions.pod:6522
15128 msgid "guestfs_vgs"
15129 msgstr ""
15130
15131 # type: verbatim
15132 #: ../src/guestfs-actions.pod:6524
15133 #, no-wrap
15134 msgid ""
15135 " char **\n"
15136 " guestfs_vgs (guestfs_h *g);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-actions.pod:6527 ../fish/guestfish-actions.pod:4343
15142 msgid ""
15143 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15144 "> command."
15145 msgstr ""
15146
15147 # type: textblock
15148 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4346
15149 msgid ""
15150 "This returns a list of just the volume group names that were detected (eg. "
15151 "C<VolGroup00>)."
15152 msgstr ""
15153
15154 # type: textblock
15155 #: ../src/guestfs-actions.pod:6533
15156 msgid "See also C<guestfs_vgs_full>."
15157 msgstr ""
15158
15159 # type: =head2
15160 #: ../src/guestfs-actions.pod:6541
15161 msgid "guestfs_vgs_full"
15162 msgstr ""
15163
15164 # type: verbatim
15165 #: ../src/guestfs-actions.pod:6543
15166 #, no-wrap
15167 msgid ""
15168 " struct guestfs_lvm_vg_list *\n"
15169 " guestfs_vgs_full (guestfs_h *g);\n"
15170 "\n"
15171 msgstr ""
15172
15173 # type: textblock
15174 #: ../src/guestfs-actions.pod:6546 ../fish/guestfish-actions.pod:4355
15175 msgid ""
15176 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15177 "> command.  The \"full\" version includes all fields."
15178 msgstr ""
15179
15180 # type: textblock
15181 #: ../src/guestfs-actions.pod:6549
15182 msgid ""
15183 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15184 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15185 msgstr ""
15186
15187 # type: =head2
15188 #: ../src/guestfs-actions.pod:6555
15189 msgid "guestfs_vgscan"
15190 msgstr ""
15191
15192 # type: verbatim
15193 #: ../src/guestfs-actions.pod:6557
15194 #, no-wrap
15195 msgid ""
15196 " int\n"
15197 " guestfs_vgscan (guestfs_h *g);\n"
15198 "\n"
15199 msgstr ""
15200
15201 # type: textblock
15202 #: ../src/guestfs-actions.pod:6560 ../fish/guestfish-actions.pod:4362
15203 msgid ""
15204 "This rescans all block devices and rebuilds the list of LVM physical "
15205 "volumes, volume groups and logical volumes."
15206 msgstr ""
15207
15208 # type: =head2
15209 #: ../src/guestfs-actions.pod:6567
15210 msgid "guestfs_vguuid"
15211 msgstr ""
15212
15213 # type: verbatim
15214 #: ../src/guestfs-actions.pod:6569
15215 #, no-wrap
15216 msgid ""
15217 " char *\n"
15218 " guestfs_vguuid (guestfs_h *g,\n"
15219 "                 const char *vgname);\n"
15220 "\n"
15221 msgstr ""
15222
15223 # type: textblock
15224 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4369
15225 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15226 msgstr ""
15227
15228 # type: =head2
15229 #: ../src/guestfs-actions.pod:6580
15230 msgid "guestfs_wait_ready"
15231 msgstr ""
15232
15233 # type: verbatim
15234 #: ../src/guestfs-actions.pod:6582
15235 #, no-wrap
15236 msgid ""
15237 " int\n"
15238 " guestfs_wait_ready (guestfs_h *g);\n"
15239 "\n"
15240 msgstr ""
15241
15242 # type: textblock
15243 #: ../src/guestfs-actions.pod:6585
15244 msgid "This function is a no op."
15245 msgstr ""
15246
15247 # type: textblock
15248 #: ../src/guestfs-actions.pod:6587
15249 msgid ""
15250 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15251 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15252 "is no longer necessary because C<guestfs_launch> now does the waiting."
15253 msgstr ""
15254
15255 # type: textblock
15256 #: ../src/guestfs-actions.pod:6592
15257 msgid ""
15258 "If you see any calls to this function in code then you can just remove them, "
15259 "unless you want to retain compatibility with older versions of the API."
15260 msgstr ""
15261
15262 # type: =head2
15263 #: ../src/guestfs-actions.pod:6600
15264 msgid "guestfs_wc_c"
15265 msgstr ""
15266
15267 # type: verbatim
15268 #: ../src/guestfs-actions.pod:6602
15269 #, no-wrap
15270 msgid ""
15271 " int\n"
15272 " guestfs_wc_c (guestfs_h *g,\n"
15273 "               const char *path);\n"
15274 "\n"
15275 msgstr ""
15276
15277 # type: textblock
15278 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4375
15279 msgid ""
15280 "This command counts the characters in a file, using the C<wc -c> external "
15281 "command."
15282 msgstr ""
15283
15284 # type: =head2
15285 #: ../src/guestfs-actions.pod:6613
15286 msgid "guestfs_wc_l"
15287 msgstr ""
15288
15289 # type: verbatim
15290 #: ../src/guestfs-actions.pod:6615
15291 #, no-wrap
15292 msgid ""
15293 " int\n"
15294 " guestfs_wc_l (guestfs_h *g,\n"
15295 "               const char *path);\n"
15296 "\n"
15297 msgstr ""
15298
15299 # type: textblock
15300 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4382
15301 msgid ""
15302 "This command counts the lines in a file, using the C<wc -l> external command."
15303 msgstr ""
15304
15305 # type: =head2
15306 #: ../src/guestfs-actions.pod:6626
15307 msgid "guestfs_wc_w"
15308 msgstr ""
15309
15310 # type: verbatim
15311 #: ../src/guestfs-actions.pod:6628
15312 #, no-wrap
15313 msgid ""
15314 " int\n"
15315 " guestfs_wc_w (guestfs_h *g,\n"
15316 "               const char *path);\n"
15317 "\n"
15318 msgstr ""
15319
15320 # type: textblock
15321 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4389
15322 msgid ""
15323 "This command counts the words in a file, using the C<wc -w> external command."
15324 msgstr ""
15325
15326 # type: =head2
15327 #: ../src/guestfs-actions.pod:6639
15328 msgid "guestfs_write"
15329 msgstr ""
15330
15331 # type: verbatim
15332 #: ../src/guestfs-actions.pod:6641
15333 #, no-wrap
15334 msgid ""
15335 " int\n"
15336 " guestfs_write (guestfs_h *g,\n"
15337 "                const char *path,\n"
15338 "                const char *content,\n"
15339 "                size_t content_size);\n"
15340 "\n"
15341 msgstr ""
15342
15343 # type: textblock
15344 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4396
15345 msgid ""
15346 "This call creates a file called C<path>.  The content of the file is the "
15347 "string C<content> (which can contain any 8 bit data)."
15348 msgstr ""
15349
15350 # type: =head2
15351 #: ../src/guestfs-actions.pod:6657
15352 msgid "guestfs_write_file"
15353 msgstr ""
15354
15355 # type: verbatim
15356 #: ../src/guestfs-actions.pod:6659
15357 #, no-wrap
15358 msgid ""
15359 " int\n"
15360 " guestfs_write_file (guestfs_h *g,\n"
15361 "                     const char *path,\n"
15362 "                     const char *content,\n"
15363 "                     int size);\n"
15364 "\n"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../src/guestfs-actions.pod:6665 ../fish/guestfish-actions.pod:4406
15369 msgid ""
15370 "This call creates a file called C<path>.  The contents of the file is the "
15371 "string C<content> (which can contain any 8 bit data), with length C<size>."
15372 msgstr ""
15373
15374 # type: textblock
15375 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4410
15376 msgid ""
15377 "As a special case, if C<size> is C<0> then the length is calculated using "
15378 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15379 msgstr ""
15380
15381 # type: textblock
15382 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4414
15383 msgid ""
15384 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15385 "I<not> work, even if the length is specified."
15386 msgstr ""
15387
15388 # type: textblock
15389 #: ../src/guestfs-actions.pod:6681 ../fish/guestfish-actions.pod:4420
15390 msgid ""
15391 "This function is deprecated.  In new code, use the C<write> call instead."
15392 msgstr ""
15393
15394 # type: =head2
15395 #: ../src/guestfs-actions.pod:6690
15396 msgid "guestfs_zegrep"
15397 msgstr ""
15398
15399 # type: verbatim
15400 #: ../src/guestfs-actions.pod:6692
15401 #, no-wrap
15402 msgid ""
15403 " char **\n"
15404 " guestfs_zegrep (guestfs_h *g,\n"
15405 "                 const char *regex,\n"
15406 "                 const char *path);\n"
15407 "\n"
15408 msgstr ""
15409
15410 # type: textblock
15411 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4431
15412 msgid ""
15413 "This calls the external C<zegrep> program and returns the matching lines."
15414 msgstr ""
15415
15416 # type: =head2
15417 #: ../src/guestfs-actions.pod:6709
15418 msgid "guestfs_zegrepi"
15419 msgstr ""
15420
15421 # type: verbatim
15422 #: ../src/guestfs-actions.pod:6711
15423 #, no-wrap
15424 msgid ""
15425 " char **\n"
15426 " guestfs_zegrepi (guestfs_h *g,\n"
15427 "                  const char *regex,\n"
15428 "                  const char *path);\n"
15429 "\n"
15430 msgstr ""
15431
15432 # type: textblock
15433 #: ../src/guestfs-actions.pod:6716 ../fish/guestfish-actions.pod:4441
15434 msgid ""
15435 "This calls the external C<zegrep -i> program and returns the matching lines."
15436 msgstr ""
15437
15438 # type: =head2
15439 #: ../src/guestfs-actions.pod:6728
15440 msgid "guestfs_zero"
15441 msgstr ""
15442
15443 # type: verbatim
15444 #: ../src/guestfs-actions.pod:6730
15445 #, no-wrap
15446 msgid ""
15447 " int\n"
15448 " guestfs_zero (guestfs_h *g,\n"
15449 "               const char *device);\n"
15450 "\n"
15451 msgstr ""
15452
15453 # type: textblock
15454 #: ../src/guestfs-actions.pod:6734 ../fish/guestfish-actions.pod:4451
15455 msgid "This command writes zeroes over the first few blocks of C<device>."
15456 msgstr ""
15457
15458 # type: textblock
15459 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4453
15460 msgid ""
15461 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15462 "securely wipe the device).  It should be sufficient to remove any partition "
15463 "tables, filesystem superblocks and so on."
15464 msgstr ""
15465
15466 # type: textblock
15467 #: ../src/guestfs-actions.pod:6740
15468 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15469 msgstr ""
15470
15471 # type: =head2
15472 #: ../src/guestfs-actions.pod:6751
15473 msgid "guestfs_zero_device"
15474 msgstr ""
15475
15476 # type: verbatim
15477 #: ../src/guestfs-actions.pod:6753
15478 #, no-wrap
15479 msgid ""
15480 " int\n"
15481 " guestfs_zero_device (guestfs_h *g,\n"
15482 "                      const char *device);\n"
15483 "\n"
15484 msgstr ""
15485
15486 # type: textblock
15487 #: ../src/guestfs-actions.pod:6757
15488 msgid ""
15489 "This command writes zeroes over the entire C<device>.  Compare with "
15490 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15491 msgstr ""
15492
15493 # type: textblock
15494 #: ../src/guestfs-actions.pod:6771
15495 msgid "(Added in 1.3.1)"
15496 msgstr ""
15497
15498 # type: =head2
15499 #: ../src/guestfs-actions.pod:6773
15500 msgid "guestfs_zerofree"
15501 msgstr ""
15502
15503 # type: verbatim
15504 #: ../src/guestfs-actions.pod:6775
15505 #, no-wrap
15506 msgid ""
15507 " int\n"
15508 " guestfs_zerofree (guestfs_h *g,\n"
15509 "                   const char *device);\n"
15510 "\n"
15511 msgstr ""
15512
15513 # type: textblock
15514 #: ../src/guestfs-actions.pod:6779 ../fish/guestfish-actions.pod:4474
15515 msgid ""
15516 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15517 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15518 "possible to compress the filesystem more effectively."
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4479
15523 msgid "You should B<not> run this program if the filesystem is mounted."
15524 msgstr ""
15525
15526 # type: textblock
15527 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4482
15528 msgid ""
15529 "It is possible that using this program can damage the filesystem or data on "
15530 "the filesystem."
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-actions.pod:6794
15535 msgid "guestfs_zfgrep"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-actions.pod:6796
15540 #, no-wrap
15541 msgid ""
15542 " char **\n"
15543 " guestfs_zfgrep (guestfs_h *g,\n"
15544 "                 const char *pattern,\n"
15545 "                 const char *path);\n"
15546 "\n"
15547 msgstr ""
15548
15549 # type: textblock
15550 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4489
15551 msgid ""
15552 "This calls the external C<zfgrep> program and returns the matching lines."
15553 msgstr ""
15554
15555 # type: =head2
15556 #: ../src/guestfs-actions.pod:6813
15557 msgid "guestfs_zfgrepi"
15558 msgstr ""
15559
15560 # type: verbatim
15561 #: ../src/guestfs-actions.pod:6815
15562 #, no-wrap
15563 msgid ""
15564 " char **\n"
15565 " guestfs_zfgrepi (guestfs_h *g,\n"
15566 "                  const char *pattern,\n"
15567 "                  const char *path);\n"
15568 "\n"
15569 msgstr ""
15570
15571 # type: textblock
15572 #: ../src/guestfs-actions.pod:6820 ../fish/guestfish-actions.pod:4499
15573 msgid ""
15574 "This calls the external C<zfgrep -i> program and returns the matching lines."
15575 msgstr ""
15576
15577 # type: =head2
15578 #: ../src/guestfs-actions.pod:6832
15579 msgid "guestfs_zfile"
15580 msgstr ""
15581
15582 # type: verbatim
15583 #: ../src/guestfs-actions.pod:6834
15584 #, no-wrap
15585 msgid ""
15586 " char *\n"
15587 " guestfs_zfile (guestfs_h *g,\n"
15588 "                const char *meth,\n"
15589 "                const char *path);\n"
15590 "\n"
15591 msgstr ""
15592
15593 # type: textblock
15594 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4509
15595 msgid ""
15596 "This command runs C<file> after first decompressing C<path> using C<method>."
15597 msgstr ""
15598
15599 # type: textblock
15600 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4512
15601 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../src/guestfs-actions.pod:6844
15606 msgid ""
15607 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15608 "files."
15609 msgstr ""
15610
15611 # type: textblock
15612 #: ../src/guestfs-actions.pod:6850 ../fish/guestfish-actions.pod:4517
15613 msgid ""
15614 "This function is deprecated.  In new code, use the C<file> call instead."
15615 msgstr ""
15616
15617 # type: =head2
15618 #: ../src/guestfs-actions.pod:6859
15619 msgid "guestfs_zgrep"
15620 msgstr ""
15621
15622 # type: verbatim
15623 #: ../src/guestfs-actions.pod:6861
15624 #, no-wrap
15625 msgid ""
15626 " char **\n"
15627 " guestfs_zgrep (guestfs_h *g,\n"
15628 "                const char *regex,\n"
15629 "                const char *path);\n"
15630 "\n"
15631 msgstr ""
15632
15633 # type: textblock
15634 #: ../src/guestfs-actions.pod:6866 ../fish/guestfish-actions.pod:4528
15635 msgid ""
15636 "This calls the external C<zgrep> program and returns the matching lines."
15637 msgstr ""
15638
15639 # type: =head2
15640 #: ../src/guestfs-actions.pod:6878
15641 msgid "guestfs_zgrepi"
15642 msgstr ""
15643
15644 # type: verbatim
15645 #: ../src/guestfs-actions.pod:6880
15646 #, no-wrap
15647 msgid ""
15648 " char **\n"
15649 " guestfs_zgrepi (guestfs_h *g,\n"
15650 "                 const char *regex,\n"
15651 "                 const char *path);\n"
15652 "\n"
15653 msgstr ""
15654
15655 # type: textblock
15656 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4538
15657 msgid ""
15658 "This calls the external C<zgrep -i> program and returns the matching lines."
15659 msgstr ""
15660
15661 # type: =item
15662 #: ../src/guestfs-availability.pod:3
15663 msgid "B<augeas>"
15664 msgstr ""
15665
15666 # type: textblock
15667 #: ../src/guestfs-availability.pod:5
15668 msgid ""
15669 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15670 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15671 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15672 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15673 "L</guestfs_aug_save> L</guestfs_aug_set>"
15674 msgstr ""
15675
15676 # type: =item
15677 #: ../src/guestfs-availability.pod:21
15678 msgid "B<inotify>"
15679 msgstr ""
15680
15681 # type: textblock
15682 #: ../src/guestfs-availability.pod:23
15683 msgid ""
15684 "The following functions: L</guestfs_inotify_add_watch> L</"
15685 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15686 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15687 msgstr ""
15688
15689 # type: =item
15690 #: ../src/guestfs-availability.pod:31
15691 msgid "B<linuxfsuuid>"
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../src/guestfs-availability.pod:33
15696 msgid ""
15697 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15698 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15699 msgstr ""
15700
15701 # type: =item
15702 #: ../src/guestfs-availability.pod:40
15703 msgid "B<linuxmodules>"
15704 msgstr ""
15705
15706 # type: textblock
15707 #: ../src/guestfs-availability.pod:42
15708 msgid "The following functions: L</guestfs_modprobe>"
15709 msgstr ""
15710
15711 # type: =item
15712 #: ../src/guestfs-availability.pod:45
15713 msgid "B<linuxxattrs>"
15714 msgstr ""
15715
15716 # type: textblock
15717 #: ../src/guestfs-availability.pod:47
15718 msgid ""
15719 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15720 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15721 "guestfs_removexattr> L</guestfs_setxattr>"
15722 msgstr ""
15723
15724 # type: =item
15725 #: ../src/guestfs-availability.pod:56
15726 msgid "B<luks>"
15727 msgstr ""
15728
15729 # type: textblock
15730 #: ../src/guestfs-availability.pod:58
15731 msgid ""
15732 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15733 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15734 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15735 msgstr ""
15736
15737 # type: =item
15738 #: ../src/guestfs-availability.pod:67
15739 msgid "B<lvm2>"
15740 msgstr ""
15741
15742 # type: textblock
15743 #: ../src/guestfs-availability.pod:69
15744 msgid ""
15745 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15746 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15747 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15748 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15749 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15750 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15751 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15752 msgstr ""
15753
15754 # type: =item
15755 #: ../src/guestfs-availability.pod:92
15756 msgid "B<mknod>"
15757 msgstr ""
15758
15759 # type: textblock
15760 #: ../src/guestfs-availability.pod:94
15761 msgid ""
15762 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15763 "guestfs_mknod_b> L</guestfs_mknod_c>"
15764 msgstr ""
15765
15766 # type: =item
15767 #: ../src/guestfs-availability.pod:100
15768 msgid "B<ntfs3g>"
15769 msgstr ""
15770
15771 # type: textblock
15772 #: ../src/guestfs-availability.pod:102
15773 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15774 msgstr ""
15775
15776 # type: =item
15777 #: ../src/guestfs-availability.pod:105
15778 msgid "B<ntfsprogs>"
15779 msgstr ""
15780
15781 # type: textblock
15782 #: ../src/guestfs-availability.pod:107
15783 msgid ""
15784 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15785 msgstr ""
15786
15787 # type: =item
15788 #: ../src/guestfs-availability.pod:111
15789 msgid "B<realpath>"
15790 msgstr ""
15791
15792 # type: textblock
15793 #: ../src/guestfs-availability.pod:113
15794 msgid "The following functions: L</guestfs_realpath>"
15795 msgstr ""
15796
15797 # type: =item
15798 #: ../src/guestfs-availability.pod:116
15799 msgid "B<scrub>"
15800 msgstr ""
15801
15802 # type: textblock
15803 #: ../src/guestfs-availability.pod:118
15804 msgid ""
15805 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15806 "guestfs_scrub_freespace>"
15807 msgstr ""
15808
15809 # type: =item
15810 #: ../src/guestfs-availability.pod:123
15811 msgid "B<selinux>"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../src/guestfs-availability.pod:125
15816 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15817 msgstr ""
15818
15819 # type: =item
15820 #: ../src/guestfs-availability.pod:129
15821 msgid "B<xz>"
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../src/guestfs-availability.pod:131
15826 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15827 msgstr ""
15828
15829 # type: =item
15830 #: ../src/guestfs-availability.pod:135
15831 msgid "B<zerofree>"
15832 msgstr ""
15833
15834 # type: textblock
15835 #: ../src/guestfs-availability.pod:137
15836 msgid "The following functions: L</guestfs_zerofree>"
15837 msgstr ""
15838
15839 # type: =head2
15840 #: ../src/guestfs-structs.pod:1
15841 msgid "guestfs_int_bool"
15842 msgstr ""
15843
15844 # type: verbatim
15845 #: ../src/guestfs-structs.pod:3
15846 #, no-wrap
15847 msgid ""
15848 " struct guestfs_int_bool {\n"
15849 "   int32_t i;\n"
15850 "   int32_t b;\n"
15851 " };\n"
15852 " \n"
15853 msgstr ""
15854
15855 # type: verbatim
15856 #: ../src/guestfs-structs.pod:8
15857 #, no-wrap
15858 msgid ""
15859 " struct guestfs_int_bool_list {\n"
15860 "   uint32_t len; /* Number of elements in list. */\n"
15861 "   struct guestfs_int_bool *val; /* Elements. */\n"
15862 " };\n"
15863 " \n"
15864 msgstr ""
15865
15866 # type: verbatim
15867 #: ../src/guestfs-structs.pod:13
15868 #, no-wrap
15869 msgid ""
15870 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15871 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15872 "\n"
15873 msgstr ""
15874
15875 # type: =head2
15876 #: ../src/guestfs-structs.pod:16
15877 msgid "guestfs_lvm_pv"
15878 msgstr ""
15879
15880 # type: verbatim
15881 #: ../src/guestfs-structs.pod:18
15882 #, no-wrap
15883 msgid ""
15884 " struct guestfs_lvm_pv {\n"
15885 "   char *pv_name;\n"
15886 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15887 "   char pv_uuid[32];\n"
15888 "   char *pv_fmt;\n"
15889 "   uint64_t pv_size;\n"
15890 "   uint64_t dev_size;\n"
15891 "   uint64_t pv_free;\n"
15892 "   uint64_t pv_used;\n"
15893 "   char *pv_attr;\n"
15894 "   int64_t pv_pe_count;\n"
15895 "   int64_t pv_pe_alloc_count;\n"
15896 "   char *pv_tags;\n"
15897 "   uint64_t pe_start;\n"
15898 "   int64_t pv_mda_count;\n"
15899 "   uint64_t pv_mda_free;\n"
15900 " };\n"
15901 " \n"
15902 msgstr ""
15903
15904 # type: verbatim
15905 #: ../src/guestfs-structs.pod:36
15906 #, no-wrap
15907 msgid ""
15908 " struct guestfs_lvm_pv_list {\n"
15909 "   uint32_t len; /* Number of elements in list. */\n"
15910 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15911 " };\n"
15912 " \n"
15913 msgstr ""
15914
15915 # type: verbatim
15916 #: ../src/guestfs-structs.pod:41
15917 #, no-wrap
15918 msgid ""
15919 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15920 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15921 "\n"
15922 msgstr ""
15923
15924 # type: =head2
15925 #: ../src/guestfs-structs.pod:44
15926 msgid "guestfs_lvm_vg"
15927 msgstr ""
15928
15929 # type: verbatim
15930 #: ../src/guestfs-structs.pod:46
15931 #, no-wrap
15932 msgid ""
15933 " struct guestfs_lvm_vg {\n"
15934 "   char *vg_name;\n"
15935 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15936 "   char vg_uuid[32];\n"
15937 "   char *vg_fmt;\n"
15938 "   char *vg_attr;\n"
15939 "   uint64_t vg_size;\n"
15940 "   uint64_t vg_free;\n"
15941 "   char *vg_sysid;\n"
15942 "   uint64_t vg_extent_size;\n"
15943 "   int64_t vg_extent_count;\n"
15944 "   int64_t vg_free_count;\n"
15945 "   int64_t max_lv;\n"
15946 "   int64_t max_pv;\n"
15947 "   int64_t pv_count;\n"
15948 "   int64_t lv_count;\n"
15949 "   int64_t snap_count;\n"
15950 "   int64_t vg_seqno;\n"
15951 "   char *vg_tags;\n"
15952 "   int64_t vg_mda_count;\n"
15953 "   uint64_t vg_mda_free;\n"
15954 " };\n"
15955 " \n"
15956 msgstr ""
15957
15958 # type: verbatim
15959 #: ../src/guestfs-structs.pod:69
15960 #, no-wrap
15961 msgid ""
15962 " struct guestfs_lvm_vg_list {\n"
15963 "   uint32_t len; /* Number of elements in list. */\n"
15964 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15965 " };\n"
15966 " \n"
15967 msgstr ""
15968
15969 # type: verbatim
15970 #: ../src/guestfs-structs.pod:74
15971 #, no-wrap
15972 msgid ""
15973 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15974 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15975 "\n"
15976 msgstr ""
15977
15978 # type: =head2
15979 #: ../src/guestfs-structs.pod:77
15980 msgid "guestfs_lvm_lv"
15981 msgstr ""
15982
15983 # type: verbatim
15984 #: ../src/guestfs-structs.pod:79
15985 #, no-wrap
15986 msgid ""
15987 " struct guestfs_lvm_lv {\n"
15988 "   char *lv_name;\n"
15989 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15990 "   char lv_uuid[32];\n"
15991 "   char *lv_attr;\n"
15992 "   int64_t lv_major;\n"
15993 "   int64_t lv_minor;\n"
15994 "   int64_t lv_kernel_major;\n"
15995 "   int64_t lv_kernel_minor;\n"
15996 "   uint64_t lv_size;\n"
15997 "   int64_t seg_count;\n"
15998 "   char *origin;\n"
15999 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16000 "   float snap_percent;\n"
16001 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16002 "   float copy_percent;\n"
16003 "   char *move_pv;\n"
16004 "   char *lv_tags;\n"
16005 "   char *mirror_log;\n"
16006 "   char *modules;\n"
16007 " };\n"
16008 " \n"
16009 msgstr ""
16010
16011 # type: verbatim
16012 #: ../src/guestfs-structs.pod:101
16013 #, no-wrap
16014 msgid ""
16015 " struct guestfs_lvm_lv_list {\n"
16016 "   uint32_t len; /* Number of elements in list. */\n"
16017 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16018 " };\n"
16019 " \n"
16020 msgstr ""
16021
16022 # type: verbatim
16023 #: ../src/guestfs-structs.pod:106
16024 #, no-wrap
16025 msgid ""
16026 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16027 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16028 "\n"
16029 msgstr ""
16030
16031 # type: verbatim
16032 #: ../src/guestfs-structs.pod:111
16033 #, no-wrap
16034 msgid ""
16035 " struct guestfs_stat {\n"
16036 "   int64_t dev;\n"
16037 "   int64_t ino;\n"
16038 "   int64_t mode;\n"
16039 "   int64_t nlink;\n"
16040 "   int64_t uid;\n"
16041 "   int64_t gid;\n"
16042 "   int64_t rdev;\n"
16043 "   int64_t size;\n"
16044 "   int64_t blksize;\n"
16045 "   int64_t blocks;\n"
16046 "   int64_t atime;\n"
16047 "   int64_t mtime;\n"
16048 "   int64_t ctime;\n"
16049 " };\n"
16050 " \n"
16051 msgstr ""
16052
16053 # type: verbatim
16054 #: ../src/guestfs-structs.pod:127
16055 #, no-wrap
16056 msgid ""
16057 " struct guestfs_stat_list {\n"
16058 "   uint32_t len; /* Number of elements in list. */\n"
16059 "   struct guestfs_stat *val; /* Elements. */\n"
16060 " };\n"
16061 " \n"
16062 msgstr ""
16063
16064 # type: verbatim
16065 #: ../src/guestfs-structs.pod:132
16066 #, no-wrap
16067 msgid ""
16068 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16069 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16070 "\n"
16071 msgstr ""
16072
16073 # type: verbatim
16074 #: ../src/guestfs-structs.pod:137
16075 #, no-wrap
16076 msgid ""
16077 " struct guestfs_statvfs {\n"
16078 "   int64_t bsize;\n"
16079 "   int64_t frsize;\n"
16080 "   int64_t blocks;\n"
16081 "   int64_t bfree;\n"
16082 "   int64_t bavail;\n"
16083 "   int64_t files;\n"
16084 "   int64_t ffree;\n"
16085 "   int64_t favail;\n"
16086 "   int64_t fsid;\n"
16087 "   int64_t flag;\n"
16088 "   int64_t namemax;\n"
16089 " };\n"
16090 " \n"
16091 msgstr ""
16092
16093 # type: verbatim
16094 #: ../src/guestfs-structs.pod:151
16095 #, no-wrap
16096 msgid ""
16097 " struct guestfs_statvfs_list {\n"
16098 "   uint32_t len; /* Number of elements in list. */\n"
16099 "   struct guestfs_statvfs *val; /* Elements. */\n"
16100 " };\n"
16101 " \n"
16102 msgstr ""
16103
16104 # type: verbatim
16105 #: ../src/guestfs-structs.pod:156
16106 #, no-wrap
16107 msgid ""
16108 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16109 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16110 "\n"
16111 msgstr ""
16112
16113 # type: =head2
16114 #: ../src/guestfs-structs.pod:159
16115 msgid "guestfs_dirent"
16116 msgstr ""
16117
16118 # type: verbatim
16119 #: ../src/guestfs-structs.pod:161
16120 #, no-wrap
16121 msgid ""
16122 " struct guestfs_dirent {\n"
16123 "   int64_t ino;\n"
16124 "   char ftyp;\n"
16125 "   char *name;\n"
16126 " };\n"
16127 " \n"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../src/guestfs-structs.pod:167
16132 #, no-wrap
16133 msgid ""
16134 " struct guestfs_dirent_list {\n"
16135 "   uint32_t len; /* Number of elements in list. */\n"
16136 "   struct guestfs_dirent *val; /* Elements. */\n"
16137 " };\n"
16138 " \n"
16139 msgstr ""
16140
16141 # type: verbatim
16142 #: ../src/guestfs-structs.pod:172
16143 #, no-wrap
16144 msgid ""
16145 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16146 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16147 "\n"
16148 msgstr ""
16149
16150 # type: verbatim
16151 #: ../src/guestfs-structs.pod:177
16152 #, no-wrap
16153 msgid ""
16154 " struct guestfs_version {\n"
16155 "   int64_t major;\n"
16156 "   int64_t minor;\n"
16157 "   int64_t release;\n"
16158 "   char *extra;\n"
16159 " };\n"
16160 " \n"
16161 msgstr ""
16162
16163 # type: verbatim
16164 #: ../src/guestfs-structs.pod:184
16165 #, no-wrap
16166 msgid ""
16167 " struct guestfs_version_list {\n"
16168 "   uint32_t len; /* Number of elements in list. */\n"
16169 "   struct guestfs_version *val; /* Elements. */\n"
16170 " };\n"
16171 " \n"
16172 msgstr ""
16173
16174 # type: verbatim
16175 #: ../src/guestfs-structs.pod:189
16176 #, no-wrap
16177 msgid ""
16178 " void guestfs_free_version (struct guestfs_free_version *);\n"
16179 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16180 "\n"
16181 msgstr ""
16182
16183 # type: =head2
16184 #: ../src/guestfs-structs.pod:192
16185 msgid "guestfs_xattr"
16186 msgstr ""
16187
16188 # type: verbatim
16189 #: ../src/guestfs-structs.pod:194
16190 #, no-wrap
16191 msgid ""
16192 " struct guestfs_xattr {\n"
16193 "   char *attrname;\n"
16194 "   /* The next two fields describe a byte array. */\n"
16195 "   uint32_t attrval_len;\n"
16196 "   char *attrval;\n"
16197 " };\n"
16198 " \n"
16199 msgstr ""
16200
16201 # type: verbatim
16202 #: ../src/guestfs-structs.pod:201
16203 #, no-wrap
16204 msgid ""
16205 " struct guestfs_xattr_list {\n"
16206 "   uint32_t len; /* Number of elements in list. */\n"
16207 "   struct guestfs_xattr *val; /* Elements. */\n"
16208 " };\n"
16209 " \n"
16210 msgstr ""
16211
16212 # type: verbatim
16213 #: ../src/guestfs-structs.pod:206
16214 #, no-wrap
16215 msgid ""
16216 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16217 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16218 "\n"
16219 msgstr ""
16220
16221 # type: =head2
16222 #: ../src/guestfs-structs.pod:209
16223 msgid "guestfs_inotify_event"
16224 msgstr ""
16225
16226 # type: verbatim
16227 #: ../src/guestfs-structs.pod:211
16228 #, no-wrap
16229 msgid ""
16230 " struct guestfs_inotify_event {\n"
16231 "   int64_t in_wd;\n"
16232 "   uint32_t in_mask;\n"
16233 "   uint32_t in_cookie;\n"
16234 "   char *in_name;\n"
16235 " };\n"
16236 " \n"
16237 msgstr ""
16238
16239 # type: verbatim
16240 #: ../src/guestfs-structs.pod:218
16241 #, no-wrap
16242 msgid ""
16243 " struct guestfs_inotify_event_list {\n"
16244 "   uint32_t len; /* Number of elements in list. */\n"
16245 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16246 " };\n"
16247 " \n"
16248 msgstr ""
16249
16250 # type: verbatim
16251 #: ../src/guestfs-structs.pod:223
16252 #, no-wrap
16253 msgid ""
16254 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16255 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16256 "\n"
16257 msgstr ""
16258
16259 # type: =head2
16260 #: ../src/guestfs-structs.pod:226
16261 msgid "guestfs_partition"
16262 msgstr ""
16263
16264 # type: verbatim
16265 #: ../src/guestfs-structs.pod:228
16266 #, no-wrap
16267 msgid ""
16268 " struct guestfs_partition {\n"
16269 "   int32_t part_num;\n"
16270 "   uint64_t part_start;\n"
16271 "   uint64_t part_end;\n"
16272 "   uint64_t part_size;\n"
16273 " };\n"
16274 " \n"
16275 msgstr ""
16276
16277 # type: verbatim
16278 #: ../src/guestfs-structs.pod:235
16279 #, no-wrap
16280 msgid ""
16281 " struct guestfs_partition_list {\n"
16282 "   uint32_t len; /* Number of elements in list. */\n"
16283 "   struct guestfs_partition *val; /* Elements. */\n"
16284 " };\n"
16285 " \n"
16286 msgstr ""
16287
16288 # type: verbatim
16289 #: ../src/guestfs-structs.pod:240
16290 #, no-wrap
16291 msgid ""
16292 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16293 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16294 "\n"
16295 msgstr ""
16296
16297 # type: textblock
16298 #: ../fish/guestfish.pod:5
16299 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16300 msgstr ""
16301
16302 # type: verbatim
16303 #: ../fish/guestfish.pod:9
16304 #, no-wrap
16305 msgid ""
16306 " guestfish [--options] [commands]\n"
16307 "\n"
16308 msgstr ""
16309
16310 # type: verbatim
16311 #: ../fish/guestfish.pod:11
16312 #, no-wrap
16313 msgid ""
16314 " guestfish\n"
16315 "\n"
16316 msgstr ""
16317
16318 # type: verbatim
16319 #: ../fish/guestfish.pod:13
16320 #, no-wrap
16321 msgid ""
16322 " guestfish [--ro|--rw] -a disk.img\n"
16323 "\n"
16324 msgstr ""
16325
16326 # type: verbatim
16327 #: ../fish/guestfish.pod:15
16328 #, no-wrap
16329 msgid ""
16330 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16331 "\n"
16332 msgstr ""
16333
16334 # type: verbatim
16335 #: ../fish/guestfish.pod:17
16336 #, no-wrap
16337 msgid ""
16338 " guestfish -d libvirt-domain\n"
16339 "\n"
16340 msgstr ""
16341
16342 # type: verbatim
16343 #: ../fish/guestfish.pod:19
16344 #, no-wrap
16345 msgid ""
16346 " guestfish [--ro|--rw] -a disk.img -i\n"
16347 "\n"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #: ../fish/guestfish.pod:21
16352 #, no-wrap
16353 msgid ""
16354 " guestfish -d libvirt-domain -i\n"
16355 "\n"
16356 msgstr ""
16357
16358 # type: =head1
16359 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16360 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16361 #: ../tools/virt-rescue.pl:41
16362 msgid "WARNING"
16363 msgstr ""
16364
16365 # type: textblock
16366 #: ../fish/guestfish.pod:25
16367 msgid ""
16368 "Using guestfish in read/write mode on live virtual machines can be "
16369 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16370 "option to use guestfish safely if the disk image or virtual machine might be "
16371 "live."
16372 msgstr ""
16373
16374 # type: textblock
16375 #: ../fish/guestfish.pod:32
16376 msgid ""
16377 "Guestfish is a shell and command-line tool for examining and modifying "
16378 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16379 "functionality of the guestfs API, see L<guestfs(3)>."
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../fish/guestfish.pod:36
16384 msgid ""
16385 "Guestfish gives you structured access to the libguestfs API, from shell "
16386 "scripts or the command line or interactively.  If you want to rescue a "
16387 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16388 "command."
16389 msgstr ""
16390
16391 # type: =head1
16392 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16393 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16394 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16395 msgid "EXAMPLES"
16396 msgstr ""
16397
16398 # type: =head2
16399 #: ../fish/guestfish.pod:43
16400 msgid "As an interactive shell"
16401 msgstr ""
16402
16403 # type: verbatim
16404 #: ../fish/guestfish.pod:45
16405 #, no-wrap
16406 msgid ""
16407 " $ guestfish\n"
16408 " \n"
16409 msgstr ""
16410
16411 # type: verbatim
16412 #: ../fish/guestfish.pod:47
16413 #, no-wrap
16414 msgid ""
16415 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16416 " editing virtual machine filesystems.\n"
16417 " \n"
16418 msgstr ""
16419
16420 # type: verbatim
16421 #: ../fish/guestfish.pod:50
16422 #, no-wrap
16423 msgid ""
16424 " Type: 'help' for a list of commands\n"
16425 "       'man' to read the manual\n"
16426 "       'quit' to quit the shell\n"
16427 " \n"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #: ../fish/guestfish.pod:54
16432 #, no-wrap
16433 msgid ""
16434 " ><fs> add-ro disk.img\n"
16435 " ><fs> run\n"
16436 " ><fs> list-filesystems\n"
16437 " /dev/sda1: ext4\n"
16438 " /dev/vg_guest/lv_root: ext4\n"
16439 " /dev/vg_guest/lv_swap: swap\n"
16440 " ><fs> mount /dev/vg_guest/lv_root /\n"
16441 " ><fs> cat /etc/fstab\n"
16442 " # /etc/fstab\n"
16443 " # Created by anaconda\n"
16444 " [...]\n"
16445 " ><fs> exit\n"
16446 "\n"
16447 msgstr ""
16448
16449 # type: =head2
16450 #: ../fish/guestfish.pod:67
16451 msgid "From shell scripts"
16452 msgstr ""
16453
16454 # type: textblock
16455 #: ../fish/guestfish.pod:69
16456 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16457 msgstr ""
16458
16459 # type: verbatim
16460 #: ../fish/guestfish.pod:71
16461 #, no-wrap
16462 msgid ""
16463 " guestfish <<_EOF_\n"
16464 " add disk.img\n"
16465 " run\n"
16466 " mount /dev/vg_guest/lv_root /\n"
16467 " write /etc/motd \"Welcome, new users\"\n"
16468 " _EOF_\n"
16469 "\n"
16470 msgstr ""
16471
16472 # type: textblock
16473 #: ../fish/guestfish.pod:78
16474 msgid "List the LVM logical volumes in a disk image:"
16475 msgstr ""
16476
16477 # type: verbatim
16478 #: ../fish/guestfish.pod:80
16479 #, no-wrap
16480 msgid ""
16481 " guestfish -a disk.img --ro <<_EOF_\n"
16482 " run\n"
16483 " lvs\n"
16484 " _EOF_\n"
16485 "\n"
16486 msgstr ""
16487
16488 # type: textblock
16489 #: ../fish/guestfish.pod:85
16490 msgid "List all the filesystems in a disk image:"
16491 msgstr ""
16492
16493 # type: verbatim
16494 #: ../fish/guestfish.pod:87
16495 #, no-wrap
16496 msgid ""
16497 " guestfish -a disk.img --ro <<_EOF_\n"
16498 " run\n"
16499 " list-filesystems\n"
16500 " _EOF_\n"
16501 "\n"
16502 msgstr ""
16503
16504 # type: =head2
16505 #: ../fish/guestfish.pod:92
16506 msgid "On one command line"
16507 msgstr ""
16508
16509 # type: textblock
16510 #: ../fish/guestfish.pod:94
16511 msgid "Update C</etc/resolv.conf> in a guest:"
16512 msgstr ""
16513
16514 # type: verbatim
16515 #: ../fish/guestfish.pod:96
16516 #, no-wrap
16517 msgid ""
16518 " guestfish \\\n"
16519 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16520 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16521 "\n"
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:100
16526 msgid "Edit C</boot/grub/grub.conf> interactively:"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../fish/guestfish.pod:102
16531 #, no-wrap
16532 msgid ""
16533 " guestfish --rw --add disk.img \\\n"
16534 "   --mount /dev/vg_guest/lv_root \\\n"
16535 "   --mount /dev/sda1:/boot \\\n"
16536 "   edit /boot/grub/grub.conf\n"
16537 "\n"
16538 msgstr ""
16539
16540 # type: =head2
16541 #: ../fish/guestfish.pod:107
16542 msgid "Mount disks automatically"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:109
16547 msgid ""
16548 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16549 msgstr ""
16550
16551 # type: verbatim
16552 #: ../fish/guestfish.pod:112
16553 #, no-wrap
16554 msgid ""
16555 " guestfish --ro -a disk.img -i cat /etc/group\n"
16556 "\n"
16557 msgstr ""
16558
16559 # type: verbatim
16560 #: ../fish/guestfish.pod:114
16561 #, no-wrap
16562 msgid ""
16563 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16564 "\n"
16565 msgstr ""
16566
16567 # type: textblock
16568 #: ../fish/guestfish.pod:116
16569 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16570 msgstr ""
16571
16572 # type: verbatim
16573 #: ../fish/guestfish.pod:118
16574 #, no-wrap
16575 msgid ""
16576 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16577 "\n"
16578 msgstr ""
16579
16580 # type: =head2
16581 #: ../fish/guestfish.pod:120
16582 msgid "As a script interpreter"
16583 msgstr ""
16584
16585 # type: textblock
16586 #: ../fish/guestfish.pod:122
16587 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16588 msgstr ""
16589
16590 # type: verbatim
16591 #: ../fish/guestfish.pod:124
16592 #, no-wrap
16593 msgid ""
16594 " #!/usr/bin/guestfish -f\n"
16595 " sparse test1.img 100M\n"
16596 " run\n"
16597 " part-disk /dev/sda mbr\n"
16598 " mkfs ext2 /dev/sda1\n"
16599 "\n"
16600 msgstr ""
16601
16602 # type: =head2
16603 #: ../fish/guestfish.pod:130
16604 msgid "Start with a prepared disk"
16605 msgstr ""
16606
16607 # type: textblock
16608 #: ../fish/guestfish.pod:132
16609 msgid ""
16610 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16611 "single ext2-formatted partition:"
16612 msgstr ""
16613
16614 # type: verbatim
16615 #: ../fish/guestfish.pod:135
16616 #, no-wrap
16617 msgid ""
16618 " guestfish -N fs\n"
16619 "\n"
16620 msgstr ""
16621
16622 # type: textblock
16623 #: ../fish/guestfish.pod:137
16624 msgid "To list what is available do:"
16625 msgstr ""
16626
16627 # type: verbatim
16628 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16629 #, no-wrap
16630 msgid ""
16631 " guestfish -N help | less\n"
16632 "\n"
16633 msgstr ""
16634
16635 # type: =head2
16636 #: ../fish/guestfish.pod:141
16637 msgid "Remote control"
16638 msgstr ""
16639
16640 # type: verbatim
16641 #: ../fish/guestfish.pod:143
16642 #, no-wrap
16643 msgid ""
16644 " eval \"`guestfish --listen`\"\n"
16645 " guestfish --remote add-ro disk.img\n"
16646 " guestfish --remote run\n"
16647 " guestfish --remote lvs\n"
16648 "\n"
16649 msgstr ""
16650
16651 # type: =head1
16652 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16653 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16654 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16655 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16656 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98
16657 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
16658 #: ../tools/virt-list-partitions.pl:51
16659 msgid "OPTIONS"
16660 msgstr ""
16661
16662 # type: =item
16663 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
16664 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16665 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16666 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16667 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
16668 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16669 msgid "B<--help>"
16670 msgstr ""
16671
16672 # type: textblock
16673 #: ../fish/guestfish.pod:154
16674 msgid "Displays general help on options."
16675 msgstr ""
16676
16677 # type: =item
16678 #: ../fish/guestfish.pod:156
16679 msgid "B<-h> | B<--cmd-help>"
16680 msgstr ""
16681
16682 # type: textblock
16683 #: ../fish/guestfish.pod:158
16684 msgid "Lists all available guestfish commands."
16685 msgstr ""
16686
16687 # type: =item
16688 #: ../fish/guestfish.pod:160
16689 msgid "B<-h cmd> | B<--cmd-help cmd>"
16690 msgstr ""
16691
16692 # type: textblock
16693 #: ../fish/guestfish.pod:162
16694 msgid "Displays detailed help on a single command C<cmd>."
16695 msgstr ""
16696
16697 # type: =item
16698 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16699 msgid "B<-a image> | B<--add image>"
16700 msgstr ""
16701
16702 # type: textblock
16703 #: ../fish/guestfish.pod:166
16704 msgid "Add a block device or virtual machine image to the shell."
16705 msgstr ""
16706
16707 # type: textblock
16708 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16709 msgid ""
16710 "The format of the disk image is auto-detected.  To override this and force a "
16711 "particular format use the I<--format=..> option."
16712 msgstr ""
16713
16714 # type: =item
16715 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16716 msgid "B<-c URI> | B<--connect URI>"
16717 msgstr ""
16718
16719 # type: textblock
16720 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16721 msgid ""
16722 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16723 "URI to use.  The default is to use the default libvirt connection."
16724 msgstr ""
16725
16726 # type: =item
16727 #: ../fish/guestfish.pod:177
16728 msgid "B<--csh>"
16729 msgstr ""
16730
16731 # type: textblock
16732 #: ../fish/guestfish.pod:179
16733 msgid ""
16734 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16735 "section L</REMOTE CONTROL AND CSH> below."
16736 msgstr ""
16737
16738 # type: =item
16739 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16740 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16741 msgstr ""
16742
16743 # type: textblock
16744 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16745 msgid ""
16746 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16747 "used, then any libvirt domain can be used.  However in write mode, only "
16748 "libvirt domains which are shut down can be named here."
16749 msgstr ""
16750
16751 # type: =item
16752 #: ../fish/guestfish.pod:188
16753 msgid "B<-D> | B<--no-dest-paths>"
16754 msgstr ""
16755
16756 # type: textblock
16757 #: ../fish/guestfish.pod:190
16758 msgid ""
16759 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16760 "to hit the tab key to complete paths on the guest filesystem, but this "
16761 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16762 "allow this feature to be disabled."
16763 msgstr ""
16764
16765 # type: =item
16766 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16767 msgid "B<--echo-keys>"
16768 msgstr ""
16769
16770 # type: textblock
16771 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16772 msgid ""
16773 "When prompting for keys and passphrases, guestfish normally turns echoing "
16774 "off so you cannot see what you are typing.  If you are not worried about "
16775 "Tempest attacks and there is no one else in the room you can specify this "
16776 "flag to see what you are typing."
16777 msgstr ""
16778
16779 # type: =item
16780 #: ../fish/guestfish.pod:202
16781 msgid "B<-f file> | B<--file file>"
16782 msgstr ""
16783
16784 # type: textblock
16785 #: ../fish/guestfish.pod:204
16786 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16787 msgstr ""
16788
16789 # type: verbatim
16790 #: ../fish/guestfish.pod:207
16791 #, no-wrap
16792 msgid ""
16793 " #!/usr/bin/guestfish -f\n"
16794 "\n"
16795 msgstr ""
16796
16797 # type: =item
16798 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16799 msgid "B<--format=raw|qcow2|..> | B<--format>"
16800 msgstr ""
16801
16802 # type: textblock
16803 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16804 msgid ""
16805 "The default for the I<-a> option is to auto-detect the format of the disk "
16806 "image.  Using this forces the disk format for I<-a> options which follow on "
16807 "the command line.  Using I<--format> with no argument switches back to auto-"
16808 "detection for subsequent I<-a> options."
16809 msgstr ""
16810
16811 # type: textblock
16812 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
16813 #: ../inspector/virt-inspector.pl:515
16814 msgid "For example:"
16815 msgstr ""
16816
16817 # type: verbatim
16818 #: ../fish/guestfish.pod:218
16819 #, no-wrap
16820 msgid ""
16821 " guestfish --format=raw -a disk.img\n"
16822 "\n"
16823 msgstr ""
16824
16825 # type: textblock
16826 #: ../fish/guestfish.pod:220
16827 msgid "forces raw format (no auto-detection) for C<disk.img>."
16828 msgstr ""
16829
16830 # type: verbatim
16831 #: ../fish/guestfish.pod:222
16832 #, no-wrap
16833 msgid ""
16834 " guestfish --format=raw -a disk.img --format -a another.img\n"
16835 "\n"
16836 msgstr ""
16837
16838 # type: textblock
16839 #: ../fish/guestfish.pod:224
16840 msgid ""
16841 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16842 "detection for C<another.img>."
16843 msgstr ""
16844
16845 # type: textblock
16846 #: ../fish/guestfish.pod:227
16847 msgid ""
16848 "If you have untrusted raw-format guest disk images, you should use this "
16849 "option to specify the disk format.  This avoids a possible security problem "
16850 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16851 msgstr ""
16852
16853 # type: =item
16854 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16855 msgid "B<-i> | B<--inspector>"
16856 msgstr ""
16857
16858 # type: textblock
16859 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16860 msgid ""
16861 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16862 "system and mount filesystems as they would be mounted on the real virtual "
16863 "machine."
16864 msgstr ""
16865
16866 # type: textblock
16867 #: ../fish/guestfish.pod:238
16868 msgid "Typical usage is either:"
16869 msgstr ""
16870
16871 # type: verbatim
16872 #: ../fish/guestfish.pod:240
16873 #, no-wrap
16874 msgid ""
16875 " guestfish -d myguest -i\n"
16876 "\n"
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:242
16881 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16882 msgstr ""
16883
16884 # type: verbatim
16885 #: ../fish/guestfish.pod:244
16886 #, no-wrap
16887 msgid ""
16888 " guestfish --ro -d myguest -i\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: textblock
16893 #: ../fish/guestfish.pod:246
16894 msgid "(for active domains, readonly), or specify the block device directly:"
16895 msgstr ""
16896
16897 # type: verbatim
16898 #: ../fish/guestfish.pod:248
16899 #, no-wrap
16900 msgid ""
16901 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16902 "\n"
16903 msgstr ""
16904
16905 # type: textblock
16906 #: ../fish/guestfish.pod:250
16907 msgid ""
16908 "Note that the command line syntax changed slightly over older versions of "
16909 "guestfish.  You can still use the old syntax:"
16910 msgstr ""
16911
16912 # type: verbatim
16913 #: ../fish/guestfish.pod:253
16914 #, no-wrap
16915 msgid ""
16916 " guestfish [--ro] -i disk.img\n"
16917 "\n"
16918 msgstr ""
16919
16920 # type: verbatim
16921 #: ../fish/guestfish.pod:255
16922 #, no-wrap
16923 msgid ""
16924 " guestfish [--ro] -i libvirt-domain\n"
16925 "\n"
16926 msgstr ""
16927
16928 # type: =item
16929 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16930 msgid "B<--keys-from-stdin>"
16931 msgstr ""
16932
16933 # type: textblock
16934 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16935 msgid ""
16936 "Read key or passphrase parameters from stdin.  The default is to try to read "
16937 "passphrases from the user by opening C</dev/tty>."
16938 msgstr ""
16939
16940 # type: =item
16941 #: ../fish/guestfish.pod:262
16942 msgid "B<--listen>"
16943 msgstr ""
16944
16945 # type: textblock
16946 #: ../fish/guestfish.pod:264
16947 msgid ""
16948 "Fork into the background and listen for remote commands.  See section L</"
16949 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16950 msgstr ""
16951
16952 # type: =item
16953 #: ../fish/guestfish.pod:267
16954 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16955 msgstr ""
16956
16957 # type: textblock
16958 #: ../fish/guestfish.pod:269
16959 msgid "Mount the named partition or logical volume on the given mountpoint."
16960 msgstr ""
16961
16962 # type: textblock
16963 #: ../fish/guestfish.pod:271
16964 msgid "If the mountpoint is omitted, it defaults to C</>."
16965 msgstr ""
16966
16967 # type: textblock
16968 #: ../fish/guestfish.pod:273
16969 msgid "You have to mount something on C</> before most commands will work."
16970 msgstr ""
16971
16972 # type: textblock
16973 #: ../fish/guestfish.pod:275
16974 msgid ""
16975 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16976 "launched."
16977 msgstr ""
16978
16979 # type: textblock
16980 #: ../fish/guestfish.pod:278
16981 msgid ""
16982 "If you don't know what filesystems a disk image contains, you can either run "
16983 "guestfish without this option, then list the partitions and LVs available "
16984 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16985 "list-filesystems(1)> program."
16986 msgstr ""
16987
16988 # type: =item
16989 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16990 msgid "B<-n> | B<--no-sync>"
16991 msgstr ""
16992
16993 # type: textblock
16994 #: ../fish/guestfish.pod:285
16995 msgid ""
16996 "Disable autosync.  This is enabled by default.  See the discussion of "
16997 "autosync in the L<guestfs(3)> manpage."
16998 msgstr ""
16999
17000 # type: =item
17001 #: ../fish/guestfish.pod:288
17002 msgid "B<-N type> | B<--new type> | B<-N help>"
17003 msgstr ""
17004
17005 # type: textblock
17006 #: ../fish/guestfish.pod:290
17007 msgid ""
17008 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17009 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17010 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17011 "IMAGES> below."
17012 msgstr ""
17013
17014 # type: =item
17015 #: ../fish/guestfish.pod:295
17016 msgid "B<--progress-bars>"
17017 msgstr ""
17018
17019 # type: textblock
17020 #: ../fish/guestfish.pod:297
17021 msgid "Enable progress bars, even when guestfish is used non-interactively."
17022 msgstr ""
17023
17024 # type: textblock
17025 #: ../fish/guestfish.pod:299
17026 msgid ""
17027 "Progress bars are enabled by default when guestfish is used as an "
17028 "interactive shell."
17029 msgstr ""
17030
17031 # type: =item
17032 #: ../fish/guestfish.pod:302
17033 msgid "B<--no-progress-bars>"
17034 msgstr ""
17035
17036 # type: textblock
17037 #: ../fish/guestfish.pod:304
17038 msgid "Disable progress bars."
17039 msgstr ""
17040
17041 # type: =item
17042 #: ../fish/guestfish.pod:306
17043 msgid "B<--remote[=pid]>"
17044 msgstr ""
17045
17046 # type: textblock
17047 #: ../fish/guestfish.pod:308
17048 msgid ""
17049 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17050 "CONTROL GUESTFISH OVER A SOCKET> below."
17051 msgstr ""
17052
17053 # type: =item
17054 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
17055 msgid "B<-r> | B<--ro>"
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:313
17060 msgid ""
17061 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17062 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17063 msgstr ""
17064
17065 # type: textblock
17066 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
17067 msgid ""
17068 "The option must always be used if the disk image or virtual machine might be "
17069 "running, and is generally recommended in cases where you don't need write "
17070 "access to the disk."
17071 msgstr ""
17072
17073 # type: textblock
17074 #: ../fish/guestfish.pod:320
17075 msgid ""
17076 "Note that prepared disk images created with I<-N> are not affected by the "
17077 "I<--ro> option."
17078 msgstr ""
17079
17080 # type: textblock
17081 #: ../fish/guestfish.pod:323
17082 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17083 msgstr ""
17084
17085 # type: =item
17086 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17087 #: ../tools/virt-rescue.pl:195
17088 msgid "B<--selinux>"
17089 msgstr ""
17090
17091 # type: textblock
17092 #: ../fish/guestfish.pod:327
17093 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17094 msgstr ""
17095
17096 # type: =item
17097 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17098 msgid "B<-v> | B<--verbose>"
17099 msgstr ""
17100
17101 # type: textblock
17102 #: ../fish/guestfish.pod:331
17103 msgid ""
17104 "Enable very verbose messages.  This is particularly useful if you find a bug."
17105 msgstr ""
17106
17107 # type: =item
17108 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17109 msgid "B<-V> | B<--version>"
17110 msgstr ""
17111
17112 # type: textblock
17113 #: ../fish/guestfish.pod:336
17114 msgid "Display the guestfish / libguestfs version number and exit."
17115 msgstr ""
17116
17117 # type: =item
17118 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17119 msgid "B<-w> | B<--rw>"
17120 msgstr ""
17121
17122 # type: textblock
17123 #: ../fish/guestfish.pod:340
17124 msgid ""
17125 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17126 "WRITE> below."
17127 msgstr ""
17128
17129 # type: =item
17130 #: ../fish/guestfish.pod:343
17131 msgid "B<-x>"
17132 msgstr ""
17133
17134 # type: textblock
17135 #: ../fish/guestfish.pod:345
17136 msgid "Echo each command before executing it."
17137 msgstr ""
17138
17139 # type: =head1
17140 #: ../fish/guestfish.pod:349
17141 msgid "COMMANDS ON COMMAND LINE"
17142 msgstr ""
17143
17144 # type: textblock
17145 #: ../fish/guestfish.pod:351
17146 msgid ""
17147 "Any additional (non-option) arguments are treated as commands to execute."
17148 msgstr ""
17149
17150 # type: textblock
17151 #: ../fish/guestfish.pod:354
17152 msgid ""
17153 "Commands to execute should be separated by a colon (C<:>), where the colon "
17154 "is a separate parameter.  Thus:"
17155 msgstr ""
17156
17157 # type: verbatim
17158 #: ../fish/guestfish.pod:357
17159 #, no-wrap
17160 msgid ""
17161 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17162 "\n"
17163 msgstr ""
17164
17165 # type: textblock
17166 #: ../fish/guestfish.pod:359
17167 msgid ""
17168 "If there are no additional arguments, then we enter a shell, either an "
17169 "interactive shell with a prompt (if the input is a terminal) or a non-"
17170 "interactive shell."
17171 msgstr ""
17172
17173 # type: textblock
17174 #: ../fish/guestfish.pod:363
17175 msgid ""
17176 "In either command line mode or non-interactive shell, the first command that "
17177 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17178 "prompt) if a command fails, you can continue to enter commands."
17179 msgstr ""
17180
17181 # type: =head1
17182 #: ../fish/guestfish.pod:368
17183 msgid "USING launch (OR run)"
17184 msgstr ""
17185
17186 # type: textblock
17187 #: ../fish/guestfish.pod:370
17188 msgid ""
17189 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17190 "then launch it, then mount any disks you need, and finally issue actions/"
17191 "commands.  So the general order of the day is:"
17192 msgstr ""
17193
17194 # type: textblock
17195 #: ../fish/guestfish.pod:378
17196 msgid "add or -a/--add"
17197 msgstr ""
17198
17199 # type: textblock
17200 #: ../fish/guestfish.pod:382
17201 msgid "launch (aka run)"
17202 msgstr ""
17203
17204 # type: textblock
17205 #: ../fish/guestfish.pod:386
17206 msgid "mount or -m/--mount"
17207 msgstr ""
17208
17209 # type: textblock
17210 #: ../fish/guestfish.pod:390
17211 msgid "any other commands"
17212 msgstr ""
17213
17214 # type: textblock
17215 #: ../fish/guestfish.pod:394
17216 msgid ""
17217 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17218 "guest before mounting or performing any other commands."
17219 msgstr ""
17220
17221 # type: textblock
17222 #: ../fish/guestfish.pod:397
17223 msgid ""
17224 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17225 "I<--new> options were given then C<run> is done automatically, simply "
17226 "because guestfish can't perform the action you asked for without doing this."
17227 msgstr ""
17228
17229 # type: =head1
17230 #: ../fish/guestfish.pod:402
17231 msgid "OPENING DISKS FOR READ AND WRITE"
17232 msgstr ""
17233
17234 # type: textblock
17235 #: ../fish/guestfish.pod:404
17236 msgid ""
17237 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17238 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17239 "open disk images read-only or for writing."
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:408
17244 msgid ""
17245 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17246 "disk images supplied on the command line for write.  To open a disk image "
17247 "read-only you have to do I<-a image --ro>."
17248 msgstr ""
17249
17250 # type: textblock
17251 #: ../fish/guestfish.pod:412
17252 msgid ""
17253 "This matters: If you accidentally open a live VM disk image writable then "
17254 "you will cause irreversible disk corruption."
17255 msgstr ""
17256
17257 # type: textblock
17258 #: ../fish/guestfish.pod:415
17259 msgid ""
17260 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17261 "images will be opened read-only.  You will have to either specify "
17262 "I<guestfish --rw> or change a configuration file in order to get write "
17263 "access for disk images specified by those other command line options."
17264 msgstr ""
17265
17266 # type: textblock
17267 #: ../fish/guestfish.pod:420
17268 msgid ""
17269 "This version of guestfish has a I<--rw> option which does nothing (it is "
17270 "already the default).  However it is highly recommended that you use this "
17271 "option to indicate that guestfish needs write access, and to prepare your "
17272 "scripts for the day when this option will be required for write access."
17273 msgstr ""
17274
17275 # type: textblock
17276 #: ../fish/guestfish.pod:426
17277 msgid ""
17278 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17279 "other libguestfs program apart from guestfish and guestmount."
17280 msgstr ""
17281
17282 # type: =head1
17283 #: ../fish/guestfish.pod:429
17284 msgid "QUOTING"
17285 msgstr ""
17286
17287 # type: textblock
17288 #: ../fish/guestfish.pod:431
17289 msgid ""
17290 "You can quote ordinary parameters using either single or double quotes.  For "
17291 "example:"
17292 msgstr ""
17293
17294 # type: verbatim
17295 #: ../fish/guestfish.pod:434
17296 #, no-wrap
17297 msgid ""
17298 " add \"file with a space.img\"\n"
17299 "\n"
17300 msgstr ""
17301
17302 # type: verbatim
17303 #: ../fish/guestfish.pod:436
17304 #, no-wrap
17305 msgid ""
17306 " rm '/file name'\n"
17307 "\n"
17308 msgstr ""
17309
17310 # type: verbatim
17311 #: ../fish/guestfish.pod:438
17312 #, no-wrap
17313 msgid ""
17314 " rm '/\"'\n"
17315 "\n"
17316 msgstr ""
17317
17318 # type: textblock
17319 #: ../fish/guestfish.pod:440
17320 msgid ""
17321 "A few commands require a list of strings to be passed.  For these, use a "
17322 "whitespace-separated list, enclosed in quotes.  Strings containing "
17323 "whitespace to be passed through must be enclosed in single quotes.  A "
17324 "literal single quote must be escaped with a backslash."
17325 msgstr ""
17326
17327 # type: verbatim
17328 #: ../fish/guestfish.pod:445
17329 #, no-wrap
17330 msgid ""
17331 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17332 " command \"/bin/echo 'foo      bar'\"\n"
17333 " command \"/bin/echo \\'foo\\'\"\n"
17334 "\n"
17335 msgstr ""
17336
17337 # type: =head1
17338 #: ../fish/guestfish.pod:449
17339 msgid "OPTIONAL ARGUMENTS"
17340 msgstr ""
17341
17342 # type: textblock
17343 #: ../fish/guestfish.pod:451
17344 msgid ""
17345 "Some commands take optional arguments.  These arguments appear in this "
17346 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17347 msgstr ""
17348
17349 # type: verbatim
17350 #: ../fish/guestfish.pod:455
17351 #, no-wrap
17352 msgid ""
17353 " add-drive-opts filename\n"
17354 "\n"
17355 msgstr ""
17356
17357 # type: verbatim
17358 #: ../fish/guestfish.pod:457
17359 #, no-wrap
17360 msgid ""
17361 " add-drive-opts filename readonly:true\n"
17362 "\n"
17363 msgstr ""
17364
17365 # type: verbatim
17366 #: ../fish/guestfish.pod:459
17367 #, no-wrap
17368 msgid ""
17369 " add-drive-opts filename format:qcow2 readonly:false\n"
17370 "\n"
17371 msgstr ""
17372
17373 # type: textblock
17374 #: ../fish/guestfish.pod:461
17375 msgid ""
17376 "Each optional argument can appear at most once.  All optional arguments must "
17377 "appear after the required ones."
17378 msgstr ""
17379
17380 # type: =head1
17381 #: ../fish/guestfish.pod:464
17382 msgid "NUMBERS"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish.pod:466
17387 msgid ""
17388 "This section applies to all commands which can take integers as parameters."
17389 msgstr ""
17390
17391 # type: =head2
17392 #: ../fish/guestfish.pod:469
17393 msgid "SIZE SUFFIX"
17394 msgstr ""
17395
17396 # type: textblock
17397 #: ../fish/guestfish.pod:471
17398 msgid ""
17399 "When the command takes a parameter measured in bytes, you can use one of the "
17400 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17401 msgstr ""
17402
17403 # type: =item
17404 #: ../fish/guestfish.pod:477
17405 msgid "B<k> or B<K> or B<KiB>"
17406 msgstr ""
17407
17408 # type: textblock
17409 #: ../fish/guestfish.pod:479
17410 msgid "The size in kilobytes (multiplied by 1024)."
17411 msgstr ""
17412
17413 # type: =item
17414 #: ../fish/guestfish.pod:481
17415 msgid "B<KB>"
17416 msgstr ""
17417
17418 # type: textblock
17419 #: ../fish/guestfish.pod:483
17420 msgid "The size in SI 1000 byte units."
17421 msgstr ""
17422
17423 # type: =item
17424 #: ../fish/guestfish.pod:485
17425 msgid "B<M> or B<MiB>"
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:487
17430 msgid "The size in megabytes (multiplied by 1048576)."
17431 msgstr ""
17432
17433 # type: =item
17434 #: ../fish/guestfish.pod:489
17435 msgid "B<MB>"
17436 msgstr ""
17437
17438 # type: textblock
17439 #: ../fish/guestfish.pod:491
17440 msgid "The size in SI 1000000 byte units."
17441 msgstr ""
17442
17443 # type: =item
17444 #: ../fish/guestfish.pod:493
17445 msgid "B<G> or B<GiB>"
17446 msgstr ""
17447
17448 # type: textblock
17449 #: ../fish/guestfish.pod:495
17450 msgid "The size in gigabytes (multiplied by 2**30)."
17451 msgstr ""
17452
17453 # type: =item
17454 #: ../fish/guestfish.pod:497
17455 msgid "B<GB>"
17456 msgstr ""
17457
17458 # type: textblock
17459 #: ../fish/guestfish.pod:499
17460 msgid "The size in SI 10**9 byte units."
17461 msgstr ""
17462
17463 # type: =item
17464 #: ../fish/guestfish.pod:501
17465 msgid "B<T> or B<TiB>"
17466 msgstr ""
17467
17468 # type: textblock
17469 #: ../fish/guestfish.pod:503
17470 msgid "The size in terabytes (multiplied by 2**40)."
17471 msgstr ""
17472
17473 # type: =item
17474 #: ../fish/guestfish.pod:505
17475 msgid "B<TB>"
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish.pod:507
17480 msgid "The size in SI 10**12 byte units."
17481 msgstr ""
17482
17483 # type: =item
17484 #: ../fish/guestfish.pod:509
17485 msgid "B<P> or B<PiB>"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish.pod:511
17490 msgid "The size in petabytes (multiplied by 2**50)."
17491 msgstr ""
17492
17493 # type: =item
17494 #: ../fish/guestfish.pod:513
17495 msgid "B<PB>"
17496 msgstr ""
17497
17498 # type: textblock
17499 #: ../fish/guestfish.pod:515
17500 msgid "The size in SI 10**15 byte units."
17501 msgstr ""
17502
17503 # type: =item
17504 #: ../fish/guestfish.pod:517
17505 msgid "B<E> or B<EiB>"
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish.pod:519
17510 msgid "The size in exabytes (multiplied by 2**60)."
17511 msgstr ""
17512
17513 # type: =item
17514 #: ../fish/guestfish.pod:521
17515 msgid "B<EB>"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:523
17520 msgid "The size in SI 10**18 byte units."
17521 msgstr ""
17522
17523 # type: =item
17524 #: ../fish/guestfish.pod:525
17525 msgid "B<Z> or B<ZiB>"
17526 msgstr ""
17527
17528 # type: textblock
17529 #: ../fish/guestfish.pod:527
17530 msgid "The size in zettabytes (multiplied by 2**70)."
17531 msgstr ""
17532
17533 # type: =item
17534 #: ../fish/guestfish.pod:529
17535 msgid "B<ZB>"
17536 msgstr ""
17537
17538 # type: textblock
17539 #: ../fish/guestfish.pod:531
17540 msgid "The size in SI 10**21 byte units."
17541 msgstr ""
17542
17543 # type: =item
17544 #: ../fish/guestfish.pod:533
17545 msgid "B<Y> or B<YiB>"
17546 msgstr ""
17547
17548 # type: textblock
17549 #: ../fish/guestfish.pod:535
17550 msgid "The size in yottabytes (multiplied by 2**80)."
17551 msgstr ""
17552
17553 # type: =item
17554 #: ../fish/guestfish.pod:537
17555 msgid "B<YB>"
17556 msgstr ""
17557
17558 # type: textblock
17559 #: ../fish/guestfish.pod:539
17560 msgid "The size in SI 10**24 byte units."
17561 msgstr ""
17562
17563 # type: verbatim
17564 #: ../fish/guestfish.pod:545
17565 #, no-wrap
17566 msgid ""
17567 " truncate-size /file 1G\n"
17568 "\n"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish.pod:547
17573 msgid "would truncate the file to 1 gigabyte."
17574 msgstr ""
17575
17576 # type: textblock
17577 #: ../fish/guestfish.pod:549
17578 msgid ""
17579 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17580 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17581 "suffix will probably not do what you expect."
17582 msgstr ""
17583
17584 # type: =head2
17585 #: ../fish/guestfish.pod:553
17586 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:555
17591 msgid ""
17592 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17593 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #: ../fish/guestfish.pod:558
17598 #, no-wrap
17599 msgid ""
17600 " 1234      decimal number 1234\n"
17601 " 02322     octal number, equivalent to decimal 1234\n"
17602 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17603 "\n"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:562
17608 msgid ""
17609 "When using the C<chmod> command, you almost always want to specify an octal "
17610 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17611 "L<chmod(1)> program):"
17612 msgstr ""
17613
17614 # type: verbatim
17615 #: ../fish/guestfish.pod:566
17616 #, no-wrap
17617 msgid ""
17618 " chmod 0777 /public  # OK\n"
17619 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17620 "\n"
17621 msgstr ""
17622
17623 # type: textblock
17624 #: ../fish/guestfish.pod:569
17625 msgid ""
17626 "Commands that return numbers usually print them in decimal, but some "
17627 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17628 "octal, preceeded by C<0>)."
17629 msgstr ""
17630
17631 # type: =head1
17632 #: ../fish/guestfish.pod:573
17633 msgid "WILDCARDS AND GLOBBING"
17634 msgstr ""
17635
17636 # type: textblock
17637 #: ../fish/guestfish.pod:575
17638 msgid ""
17639 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17640 "(globbing) by default.  So for example the following will not do what you "
17641 "expect:"
17642 msgstr ""
17643
17644 # type: verbatim
17645 #: ../fish/guestfish.pod:579
17646 #, no-wrap
17647 msgid ""
17648 " rm-rf /home/*\n"
17649 "\n"
17650 msgstr ""
17651
17652 # type: textblock
17653 #: ../fish/guestfish.pod:581
17654 msgid ""
17655 "Assuming you don't have a directory called literally C</home/*> then the "
17656 "above command will return an error."
17657 msgstr ""
17658
17659 # type: textblock
17660 #: ../fish/guestfish.pod:584
17661 msgid "To perform wildcard expansion, use the C<glob> command."
17662 msgstr ""
17663
17664 # type: verbatim
17665 #: ../fish/guestfish.pod:586
17666 #, no-wrap
17667 msgid ""
17668 " glob rm-rf /home/*\n"
17669 "\n"
17670 msgstr ""
17671
17672 # type: textblock
17673 #: ../fish/guestfish.pod:588
17674 msgid ""
17675 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17676 "many times), equivalent to:"
17677 msgstr ""
17678
17679 # type: verbatim
17680 #: ../fish/guestfish.pod:591
17681 #, no-wrap
17682 msgid ""
17683 " rm-rf /home/jim\n"
17684 " rm-rf /home/joe\n"
17685 " rm-rf /home/mary\n"
17686 "\n"
17687 msgstr ""
17688
17689 # type: textblock
17690 #: ../fish/guestfish.pod:595
17691 msgid "C<glob> only works on simple guest paths and not on device names."
17692 msgstr ""
17693
17694 # type: textblock
17695 #: ../fish/guestfish.pod:597
17696 msgid ""
17697 "If you have several parameters, each containing a wildcard, then glob will "
17698 "perform a Cartesian product."
17699 msgstr ""
17700
17701 # type: =head1
17702 #: ../fish/guestfish.pod:600
17703 msgid "COMMENTS"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish.pod:602
17708 msgid ""
17709 "Any line which starts with a I<#> character is treated as a comment and "
17710 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17711 "a command.  For example:"
17712 msgstr ""
17713
17714 # type: verbatim
17715 #: ../fish/guestfish.pod:606
17716 #, no-wrap
17717 msgid ""
17718 " # this is a comment\n"
17719 "         # this is a comment\n"
17720 " foo # NOT a comment\n"
17721 "\n"
17722 msgstr ""
17723
17724 # type: textblock
17725 #: ../fish/guestfish.pod:610
17726 msgid "Blank lines are also ignored."
17727 msgstr ""
17728
17729 # type: =head1
17730 #: ../fish/guestfish.pod:612
17731 msgid "RUNNING COMMANDS LOCALLY"
17732 msgstr ""
17733
17734 # type: textblock
17735 #: ../fish/guestfish.pod:614
17736 msgid ""
17737 "Any line which starts with a I<!> character is treated as a command sent to "
17738 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17739 msgstr ""
17740
17741 # type: verbatim
17742 #: ../fish/guestfish.pod:618
17743 #, no-wrap
17744 msgid ""
17745 " !mkdir local\n"
17746 " tgz-out /remote local/remote-data.tar.gz\n"
17747 "\n"
17748 msgstr ""
17749
17750 # type: textblock
17751 #: ../fish/guestfish.pod:621
17752 msgid ""
17753 "will create a directory C<local> on the host, and then export the contents "
17754 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17755 "(See C<tgz-out>)."
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish.pod:625
17760 msgid ""
17761 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17762 "effect, due to the way that subprocesses work in Unix."
17763 msgstr ""
17764
17765 # type: =head1
17766 #: ../fish/guestfish.pod:628
17767 msgid "PIPES"
17768 msgstr ""
17769
17770 # type: textblock
17771 #: ../fish/guestfish.pod:630
17772 msgid ""
17773 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17774 "command (a guestfish command) to the second command (any host command).  For "
17775 "example:"
17776 msgstr ""
17777
17778 # type: verbatim
17779 #: ../fish/guestfish.pod:634
17780 #, no-wrap
17781 msgid ""
17782 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17783 "\n"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish.pod:636
17788 msgid ""
17789 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17790 "program).  The above command would list all accounts in the guest filesystem "
17791 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17792 msgstr ""
17793
17794 # type: verbatim
17795 #: ../fish/guestfish.pod:641
17796 #, no-wrap
17797 msgid ""
17798 " hexdump /bin/ls | head\n"
17799 " list-devices | tail -1\n"
17800 " tgz-out / - | tar ztf -\n"
17801 "\n"
17802 msgstr ""
17803
17804 # type: textblock
17805 #: ../fish/guestfish.pod:645
17806 msgid ""
17807 "The space before the pipe symbol is required, any space after the pipe "
17808 "symbol is optional.  Everything after the pipe symbol is just passed "
17809 "straight to the host shell, so it can contain redirections, globs and "
17810 "anything else that makes sense on the host side."
17811 msgstr ""
17812
17813 # type: textblock
17814 #: ../fish/guestfish.pod:650
17815 msgid ""
17816 "To use a literal argument which begins with a pipe symbol, you have to quote "
17817 "it, eg:"
17818 msgstr ""
17819
17820 # type: verbatim
17821 #: ../fish/guestfish.pod:653
17822 #, no-wrap
17823 msgid ""
17824 " echo \"|\"\n"
17825 "\n"
17826 msgstr ""
17827
17828 # type: =head1
17829 #: ../fish/guestfish.pod:655
17830 msgid "HOME DIRECTORIES"
17831 msgstr ""
17832
17833 # type: textblock
17834 #: ../fish/guestfish.pod:657
17835 msgid ""
17836 "If a parameter starts with the character C<~> then the tilde may be expanded "
17837 "as a home directory path (either C<~> for the current user's home directory, "
17838 "or C<~user> for another user)."
17839 msgstr ""
17840
17841 # type: textblock
17842 #: ../fish/guestfish.pod:661
17843 msgid ""
17844 "Note that home directory expansion happens for users known I<on the host>, "
17845 "not in the guest filesystem."
17846 msgstr ""
17847
17848 # type: textblock
17849 #: ../fish/guestfish.pod:664
17850 msgid ""
17851 "To use a literal argument which begins with a tilde, you have to quote it, "
17852 "eg:"
17853 msgstr ""
17854
17855 # type: verbatim
17856 #: ../fish/guestfish.pod:667
17857 #, no-wrap
17858 msgid ""
17859 " echo \"~\"\n"
17860 "\n"
17861 msgstr ""
17862
17863 # type: textblock
17864 #: ../fish/guestfish.pod:671
17865 msgid ""
17866 "Libguestfs has some support for Linux guests encrypted according to the "
17867 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17868 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17869 "LUKS is supported."
17870 msgstr ""
17871
17872 # type: textblock
17873 #: ../fish/guestfish.pod:676
17874 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17875 msgstr ""
17876
17877 # type: verbatim
17878 #: ../fish/guestfish.pod:678
17879 #, no-wrap
17880 msgid ""
17881 " ><fs> vfs-type /dev/sda2\n"
17882 " crypto_LUKS\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish.pod:681
17888 msgid ""
17889 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17890 "device called C</dev/mapper/luksdev>."
17891 msgstr ""
17892
17893 # type: verbatim
17894 #: ../fish/guestfish.pod:684
17895 #, no-wrap
17896 msgid ""
17897 " ><fs> luks-open /dev/sda2 luksdev\n"
17898 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17899 "\n"
17900 msgstr ""
17901
17902 # type: textblock
17903 #: ../fish/guestfish.pod:687
17904 msgid ""
17905 "Finally you have to tell LVM to scan for volume groups on the newly created "
17906 "mapper device:"
17907 msgstr ""
17908
17909 # type: verbatim
17910 #: ../fish/guestfish.pod:690
17911 #, no-wrap
17912 msgid ""
17913 " vgscan\n"
17914 " vg-activate-all true\n"
17915 "\n"
17916 msgstr ""
17917
17918 # type: textblock
17919 #: ../fish/guestfish.pod:693
17920 msgid "The logical volume(s) can now be mounted in the usual way."
17921 msgstr ""
17922
17923 # type: textblock
17924 #: ../fish/guestfish.pod:695
17925 msgid ""
17926 "Before closing a LUKS device you must unmount any logical volumes on it and "
17927 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17928 "one.  Then you can close the mapper device:"
17929 msgstr ""
17930
17931 # type: verbatim
17932 #: ../fish/guestfish.pod:699
17933 #, no-wrap
17934 msgid ""
17935 " vg-activate false /dev/VG\n"
17936 " luks-close /dev/mapper/luksdev\n"
17937 "\n"
17938 msgstr ""
17939
17940 # type: =head1
17941 #: ../fish/guestfish.pod:702
17942 msgid "WINDOWS PATHS"
17943 msgstr ""
17944
17945 # type: textblock
17946 #: ../fish/guestfish.pod:704
17947 msgid ""
17948 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17949 "(with some limitations).  The following commands are equivalent:"
17950 msgstr ""
17951
17952 # type: verbatim
17953 #: ../fish/guestfish.pod:707
17954 #, no-wrap
17955 msgid ""
17956 " file /WINDOWS/system32/config/system.LOG\n"
17957 "\n"
17958 msgstr ""
17959
17960 # type: verbatim
17961 #: ../fish/guestfish.pod:709
17962 #, no-wrap
17963 msgid ""
17964 " file win:/windows/system32/config/system.log\n"
17965 "\n"
17966 msgstr ""
17967
17968 # type: verbatim
17969 #: ../fish/guestfish.pod:711
17970 #, no-wrap
17971 msgid ""
17972 " file win:\\windows\\system32\\config\\system.log\n"
17973 "\n"
17974 msgstr ""
17975
17976 # type: verbatim
17977 #: ../fish/guestfish.pod:713
17978 #, no-wrap
17979 msgid ""
17980 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17981 "\n"
17982 msgstr ""
17983
17984 # type: textblock
17985 #: ../fish/guestfish.pod:715
17986 msgid ""
17987 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17988 "handles case insensitivity like Windows would.  This only works in argument "
17989 "positions that expect a path."
17990 msgstr ""
17991
17992 # type: =head1
17993 #: ../fish/guestfish.pod:719
17994 msgid "UPLOADING AND DOWNLOADING FILES"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:721
17999 msgid ""
18000 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18001 "others which upload from or download to a local file, you can use the "
18002 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18003 msgstr ""
18004
18005 # type: verbatim
18006 #: ../fish/guestfish.pod:725
18007 #, no-wrap
18008 msgid ""
18009 " upload - /foo\n"
18010 "\n"
18011 msgstr ""
18012
18013 # type: textblock
18014 #: ../fish/guestfish.pod:727
18015 msgid ""
18016 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18017 msgstr ""
18018
18019 # type: verbatim
18020 #: ../fish/guestfish.pod:730
18021 #, no-wrap
18022 msgid ""
18023 " tar-out /etc - | tar tf -\n"
18024 "\n"
18025 msgstr ""
18026
18027 # type: textblock
18028 #: ../fish/guestfish.pod:732
18029 msgid ""
18030 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18031 "command (see L</PIPES>)."
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:735
18036 msgid ""
18037 "When using C<-> to read from stdin, the input is read up to the end of "
18038 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18039 "some arbitrary end marker:"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #: ../fish/guestfish.pod:739
18044 #, no-wrap
18045 msgid ""
18046 " upload -<<END /foo\n"
18047 " input line 1\n"
18048 " input line 2\n"
18049 " input line 3\n"
18050 " END\n"
18051 "\n"
18052 msgstr ""
18053
18054 # type: textblock
18055 #: ../fish/guestfish.pod:745
18056 msgid ""
18057 "Any string of characters can be used instead of C<END>.  The end marker must "
18058 "appear on a line of its own, without any preceeding or following characters "
18059 "(not even spaces)."
18060 msgstr ""
18061
18062 # type: textblock
18063 #: ../fish/guestfish.pod:749
18064 msgid ""
18065 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18066 "upload local files (so-called \"FileIn\" parameters in the generator)."
18067 msgstr ""
18068
18069 # type: =head1
18070 #: ../fish/guestfish.pod:752
18071 msgid "EXIT ON ERROR BEHAVIOUR"
18072 msgstr ""
18073
18074 # type: textblock
18075 #: ../fish/guestfish.pod:754
18076 msgid ""
18077 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18078 "taking commands from a human over a tty), and will exit on the first error "
18079 "in non-interactive mode (scripts, commands given on the command line)."
18080 msgstr ""
18081
18082 # type: textblock
18083 #: ../fish/guestfish.pod:759
18084 msgid ""
18085 "If you prefix a command with a I<-> character, then that command will not "
18086 "cause guestfish to exit, even if that (one) command returns an error."
18087 msgstr ""
18088
18089 # type: =head1
18090 #: ../fish/guestfish.pod:763
18091 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish.pod:765
18096 msgid ""
18097 "Guestfish can be remote-controlled over a socket.  This is useful "
18098 "particularly in shell scripts where you want to make several different "
18099 "changes to a filesystem, but you don't want the overhead of starting up a "
18100 "guestfish process each time."
18101 msgstr ""
18102
18103 # type: textblock
18104 #: ../fish/guestfish.pod:770
18105 msgid "Start a guestfish server process using:"
18106 msgstr ""
18107
18108 # type: verbatim
18109 #: ../fish/guestfish.pod:772
18110 #, no-wrap
18111 msgid ""
18112 " eval \"`guestfish --listen`\"\n"
18113 "\n"
18114 msgstr ""
18115
18116 # type: textblock
18117 #: ../fish/guestfish.pod:774
18118 msgid "and then send it commands by doing:"
18119 msgstr ""
18120
18121 # type: verbatim
18122 #: ../fish/guestfish.pod:776
18123 #, no-wrap
18124 msgid ""
18125 " guestfish --remote cmd [...]\n"
18126 "\n"
18127 msgstr ""
18128
18129 # type: textblock
18130 #: ../fish/guestfish.pod:778
18131 msgid "To cause the server to exit, send it the exit command:"
18132 msgstr ""
18133
18134 # type: verbatim
18135 #: ../fish/guestfish.pod:780
18136 #, no-wrap
18137 msgid ""
18138 " guestfish --remote exit\n"
18139 "\n"
18140 msgstr ""
18141
18142 # type: textblock
18143 #: ../fish/guestfish.pod:782
18144 msgid ""
18145 "Note that the server will normally exit if there is an error in a command.  "
18146 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18147 "BEHAVIOUR>."
18148 msgstr ""
18149
18150 # type: =head2
18151 #: ../fish/guestfish.pod:786
18152 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18153 msgstr ""
18154
18155 # type: textblock
18156 #: ../fish/guestfish.pod:788
18157 msgid ""
18158 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18159 "is how the I<--remote> option knows where to send the commands.  You can "
18160 "have several guestfish listener processes running using:"
18161 msgstr ""
18162
18163 # type: verbatim
18164 #: ../fish/guestfish.pod:792
18165 #, no-wrap
18166 msgid ""
18167 " eval \"`guestfish --listen`\"\n"
18168 " pid1=$GUESTFISH_PID\n"
18169 " eval \"`guestfish --listen`\"\n"
18170 " pid2=$GUESTFISH_PID\n"
18171 " ...\n"
18172 " guestfish --remote=$pid1 cmd\n"
18173 " guestfish --remote=$pid2 cmd\n"
18174 "\n"
18175 msgstr ""
18176
18177 # type: =head2
18178 #: ../fish/guestfish.pod:800
18179 msgid "REMOTE CONTROL AND CSH"
18180 msgstr ""
18181
18182 # type: textblock
18183 #: ../fish/guestfish.pod:802
18184 msgid ""
18185 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18186 "option:"
18187 msgstr ""
18188
18189 # type: verbatim
18190 #: ../fish/guestfish.pod:805
18191 #, no-wrap
18192 msgid ""
18193 " eval \"`guestfish --listen --csh`\"\n"
18194 "\n"
18195 msgstr ""
18196
18197 # type: =head2
18198 #: ../fish/guestfish.pod:807
18199 msgid "REMOTE CONTROL DETAILS"
18200 msgstr ""
18201
18202 # type: textblock
18203 #: ../fish/guestfish.pod:809
18204 msgid ""
18205 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18206 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18207 "and C<$PID> is the process ID of the server."
18208 msgstr ""
18209
18210 # type: textblock
18211 #: ../fish/guestfish.pod:813
18212 msgid "Guestfish client and server versions must match exactly."
18213 msgstr ""
18214
18215 # type: =head1
18216 #: ../fish/guestfish.pod:815
18217 msgid "PREPARED DISK IMAGES"
18218 msgstr ""
18219
18220 # type: textblock
18221 #: ../fish/guestfish.pod:817
18222 msgid ""
18223 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18224 "preformatted disk images that guestfish can make for you to save typing.  "
18225 "This is particularly useful for testing purposes.  This option is used "
18226 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18227 "can be mixed with I<-a>)."
18228 msgstr ""
18229
18230 # type: textblock
18231 #: ../fish/guestfish.pod:823
18232 msgid ""
18233 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18234 "the second and so on.  Existing files in the current directory are "
18235 "I<overwritten>."
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish.pod:827
18240 msgid ""
18241 "The type briefly describes how the disk should be sized, partitioned, how "
18242 "filesystem(s) should be created, and how content should be added.  "
18243 "Optionally the type can be followed by extra parameters, separated by C<:> "
18244 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18245 "allocated disk, containing a single partition, with the partition formatted "
18246 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18247 "disk instead."
18248 msgstr ""
18249
18250 # type: textblock
18251 #: ../fish/guestfish.pod:835
18252 msgid "To list the available types and any extra parameters they take, run:"
18253 msgstr ""
18254
18255 # type: textblock
18256 #: ../fish/guestfish.pod:839
18257 msgid ""
18258 "Note that the prepared filesystem is not mounted.  You would usually have to "
18259 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18260 msgstr ""
18261
18262 # type: textblock
18263 #: ../fish/guestfish.pod:843
18264 msgid ""
18265 "If any I<-N> or I<--new> options are given, the guest is automatically "
18266 "launched."
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:848
18271 msgid "Create a 100MB disk with an ext4-formatted partition:"
18272 msgstr ""
18273
18274 # type: verbatim
18275 #: ../fish/guestfish.pod:850
18276 #, no-wrap
18277 msgid ""
18278 " guestfish -N fs:ext4\n"
18279 "\n"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:852
18284 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18285 msgstr ""
18286
18287 # type: verbatim
18288 #: ../fish/guestfish.pod:854
18289 #, no-wrap
18290 msgid ""
18291 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18292 "\n"
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish.pod:856
18297 msgid "Create a blank 200MB disk:"
18298 msgstr ""
18299
18300 # type: verbatim
18301 #: ../fish/guestfish.pod:858
18302 #, no-wrap
18303 msgid ""
18304 " guestfish -N disk:200M\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: =head1
18309 #: ../fish/guestfish.pod:860
18310 msgid "PROGRESS BARS"
18311 msgstr ""
18312
18313 # type: textblock
18314 #: ../fish/guestfish.pod:862
18315 msgid ""
18316 "Some (not all) long-running commands send progress notification messages as "
18317 "they are running.  Guestfish turns these messages into progress bars."
18318 msgstr ""
18319
18320 # type: textblock
18321 #: ../fish/guestfish.pod:866
18322 msgid ""
18323 "When a command that supports progress bars takes longer than two seconds to "
18324 "run, and if progress bars are enabled, then you will see one appearing below "
18325 "the command:"
18326 msgstr ""
18327
18328 # type: verbatim
18329 #: ../fish/guestfish.pod:870
18330 #, no-wrap
18331 msgid ""
18332 " ><fs> copy-size /large-file /another-file 2048M\n"
18333 " / 10% [#####-----------------------------------------] 00:30\n"
18334 "\n"
18335 msgstr ""
18336
18337 # type: textblock
18338 #: ../fish/guestfish.pod:873
18339 msgid ""
18340 "The spinner on the left hand side moves round once for every progress "
18341 "notification received from the backend.  This is a (reasonably) golden "
18342 "assurance that the command is \"doing something\" even if the progress bar "
18343 "is not moving, because the command is able to send the progress "
18344 "notifications.  When the bar reaches 100% and the command finishes, the "
18345 "spinner disappears."
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish.pod:880
18350 msgid ""
18351 "Progress bars are enabled by default when guestfish is used interactively.  "
18352 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18353 "and you can disable them completely using I<--no-progress-bars>."
18354 msgstr ""
18355
18356 # type: =head1
18357 #: ../fish/guestfish.pod:885
18358 msgid "GUESTFISH COMMANDS"
18359 msgstr ""
18360
18361 # type: textblock
18362 #: ../fish/guestfish.pod:887
18363 msgid ""
18364 "The commands in this section are guestfish convenience commands, in other "
18365 "words, they are not part of the L<guestfs(3)> API."
18366 msgstr ""
18367
18368 # type: =head2
18369 #: ../fish/guestfish.pod:890
18370 msgid "help"
18371 msgstr ""
18372
18373 # type: verbatim
18374 #: ../fish/guestfish.pod:892
18375 #, no-wrap
18376 msgid ""
18377 " help\n"
18378 " help cmd\n"
18379 "\n"
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish.pod:895
18384 msgid "Without any parameter, this provides general help."
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish.pod:897
18389 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18390 msgstr ""
18391
18392 # type: =head2
18393 #: ../fish/guestfish.pod:899
18394 msgid "quit | exit"
18395 msgstr ""
18396
18397 # type: textblock
18398 #: ../fish/guestfish.pod:901
18399 msgid "This exits guestfish.  You can also use C<^D> key."
18400 msgstr ""
18401
18402 # type: textblock
18403 #: ../fish/guestfish.pod:903
18404 msgid "@FISH_COMMANDS@"
18405 msgstr ""
18406
18407 # type: =head1
18408 #: ../fish/guestfish.pod:905
18409 msgid "COMMANDS"
18410 msgstr ""
18411
18412 # type: =head1
18413 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18414 msgid "EXIT CODE"
18415 msgstr ""
18416
18417 # type: textblock
18418 #: ../fish/guestfish.pod:911
18419 msgid ""
18420 "guestfish returns 0 if the commands completed without error, or 1 if there "
18421 "was an error."
18422 msgstr ""
18423
18424 # type: =item
18425 #: ../fish/guestfish.pod:918
18426 msgid "EDITOR"
18427 msgstr ""
18428
18429 # type: textblock
18430 #: ../fish/guestfish.pod:920
18431 msgid ""
18432 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18433 "C<vi>."
18434 msgstr ""
18435
18436 # type: =item
18437 #: ../fish/guestfish.pod:923
18438 msgid "GUESTFISH_PID"
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish.pod:925
18443 msgid ""
18444 "Used with the I<--remote> option to specify the remote guestfish process to "
18445 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18446 msgstr ""
18447
18448 # type: =item
18449 #: ../fish/guestfish.pod:929
18450 msgid "HEXEDITOR"
18451 msgstr ""
18452
18453 # type: textblock
18454 #: ../fish/guestfish.pod:931
18455 msgid ""
18456 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18457 "not specified, the external L<hexedit(1)> program is used."
18458 msgstr ""
18459
18460 # type: =item
18461 #: ../fish/guestfish.pod:935
18462 msgid "HOME"
18463 msgstr ""
18464
18465 # type: textblock
18466 #: ../fish/guestfish.pod:937
18467 msgid ""
18468 "If compiled with GNU readline support, various files in the home directory "
18469 "can be used.  See L</FILES>."
18470 msgstr ""
18471
18472 # type: textblock
18473 #: ../fish/guestfish.pod:946
18474 msgid ""
18475 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18476 "effect as using the B<-v> option."
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish.pod:958
18481 msgid ""
18482 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18483 "the discussion of paths in L<guestfs(3)>."
18484 msgstr ""
18485
18486 # type: textblock
18487 #: ../fish/guestfish.pod:969
18488 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18489 msgstr ""
18490
18491 # type: =item
18492 #: ../fish/guestfish.pod:971
18493 msgid "PAGER"
18494 msgstr ""
18495
18496 # type: textblock
18497 #: ../fish/guestfish.pod:973
18498 msgid ""
18499 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18500 "C<more>."
18501 msgstr ""
18502
18503 # type: =head1
18504 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18505 msgid "FILES"
18506 msgstr ""
18507
18508 # type: =item
18509 #: ../fish/guestfish.pod:992
18510 msgid "$HOME/.guestfish"
18511 msgstr ""
18512
18513 # type: textblock
18514 #: ../fish/guestfish.pod:994
18515 msgid ""
18516 "If compiled with GNU readline support, then the command history is saved in "
18517 "this file."
18518 msgstr ""
18519
18520 # type: =item
18521 #: ../fish/guestfish.pod:997
18522 msgid "$HOME/.inputrc"
18523 msgstr ""
18524
18525 # type: =item
18526 #: ../fish/guestfish.pod:999
18527 msgid "/etc/inputrc"
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish.pod:1001
18532 msgid ""
18533 "If compiled with GNU readline support, then these files can be used to "
18534 "configure readline.  For further information, please see L<readline(3)/"
18535 "INITIALIZATION FILE>."
18536 msgstr ""
18537
18538 # type: textblock
18539 #: ../fish/guestfish.pod:1005
18540 msgid "To write rules which only apply to guestfish, use:"
18541 msgstr ""
18542
18543 # type: verbatim
18544 #: ../fish/guestfish.pod:1007
18545 #, no-wrap
18546 msgid ""
18547 " $if guestfish\n"
18548 " ...\n"
18549 " $endif\n"
18550 "\n"
18551 msgstr ""
18552
18553 # type: textblock
18554 #: ../fish/guestfish.pod:1011
18555 msgid ""
18556 "Variables that you can set in inputrc that change the behaviour of guestfish "
18557 "in useful ways include:"
18558 msgstr ""
18559
18560 # type: =item
18561 #: ../fish/guestfish.pod:1016
18562 msgid "completion-ignore-case (default: on)"
18563 msgstr ""
18564
18565 # type: textblock
18566 #: ../fish/guestfish.pod:1018
18567 msgid ""
18568 "By default, guestfish will ignore case when tab-completing paths on the "
18569 "disk.  Use:"
18570 msgstr ""
18571
18572 # type: verbatim
18573 #: ../fish/guestfish.pod:1021
18574 #, no-wrap
18575 msgid ""
18576 " set completion-ignore-case off\n"
18577 "\n"
18578 msgstr ""
18579
18580 # type: textblock
18581 #: ../fish/guestfish.pod:1023
18582 msgid "to make guestfish case sensitive."
18583 msgstr ""
18584
18585 # type: =item
18586 #: ../fish/guestfish.pod:1027
18587 msgid "test1.img"
18588 msgstr ""
18589
18590 # type: =item
18591 #: ../fish/guestfish.pod:1029
18592 msgid "test2.img (etc)"
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish.pod:1031
18597 msgid ""
18598 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18599 "will be created in the file C<test1.img> in the current directory.  The "
18600 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18601 "the same name will be overwritten."
18602 msgstr ""
18603
18604 # type: textblock
18605 #: ../fish/guestfish.pod:1040
18606 msgid ""
18607 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18608 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18609 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18610 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18611 msgstr ""
18612
18613 # type: textblock
18614 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
18615 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:564
18616 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
18617 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
18618 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
18619 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
18620 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
18621 msgid ""
18622 "This program is free software; you can redistribute it and/or modify it "
18623 "under the terms of the GNU General Public License as published by the Free "
18624 "Software Foundation; either version 2 of the License, or (at your option) "
18625 "any later version."
18626 msgstr ""
18627
18628 # type: textblock
18629 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
18630 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:569
18631 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
18632 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
18633 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
18634 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
18635 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
18636 msgid ""
18637 "This program is distributed in the hope that it will be useful, but WITHOUT "
18638 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18639 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18640 "more details."
18641 msgstr ""
18642
18643 # type: textblock
18644 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
18645 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:574
18646 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
18647 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
18648 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
18649 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
18650 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
18651 msgid ""
18652 "You should have received a copy of the GNU General Public License along with "
18653 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18654 "Ave, Cambridge, MA 02139, USA."
18655 msgstr ""
18656
18657 # type: =head2
18658 #: ../fish/guestfish-actions.pod:1
18659 msgid "add-cdrom"
18660 msgstr ""
18661
18662 # type: verbatim
18663 #: ../fish/guestfish-actions.pod:3
18664 #, no-wrap
18665 msgid ""
18666 " add-cdrom filename\n"
18667 "\n"
18668 msgstr ""
18669
18670 # type: textblock
18671 #: ../fish/guestfish-actions.pod:15
18672 msgid ""
18673 "This call checks for the existence of C<filename>.  This stops you from "
18674 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18675 "and C<http:> URLs.  To specify those, use the general L</config> call "
18676 "instead."
18677 msgstr ""
18678
18679 # type: textblock
18680 #: ../fish/guestfish-actions.pod:22
18681 msgid ""
18682 "If you just want to add an ISO file (often you use this as an efficient way "
18683 "to transfer large files into the guest), then you should probably use L</add-"
18684 "drive-ro> instead."
18685 msgstr ""
18686
18687 # type: =head2
18688 #: ../fish/guestfish-actions.pod:35
18689 msgid "add-domain"
18690 msgstr ""
18691
18692 # type: =head2
18693 #: ../fish/guestfish-actions.pod:37
18694 msgid "domain"
18695 msgstr ""
18696
18697 # type: verbatim
18698 #: ../fish/guestfish-actions.pod:39
18699 #, no-wrap
18700 msgid ""
18701 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18702 "\n"
18703 msgstr ""
18704
18705 # type: textblock
18706 #: ../fish/guestfish-actions.pod:41
18707 msgid ""
18708 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18709 "It works by connecting to libvirt, requesting the domain and domain XML from "
18710 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18711 msgstr ""
18712
18713 # type: textblock
18714 #: ../fish/guestfish-actions.pod:58
18715 msgid ""
18716 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
18717 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
18718 "libvirt URI (or one set through an environment variable, see the libvirt "
18719 "documentation for full details).  If you are using the C API directly then "
18720 "it is more flexible to create the libvirt connection object yourself, get "
18721 "the domain object, and call L</add-libvirt-dom>."
18722 msgstr ""
18723
18724 # type: textblock
18725 #: ../fish/guestfish-actions.pod:66
18726 msgid ""
18727 "The other optional parameters are passed directly through to L</add-drive-"
18728 "opts>."
18729 msgstr ""
18730
18731 # type: textblock
18732 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18733 msgid ""
18734 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18735 msgstr ""
18736
18737 # type: =head2
18738 #: ../fish/guestfish-actions.pod:71
18739 msgid "add-drive"
18740 msgstr ""
18741
18742 # type: verbatim
18743 #: ../fish/guestfish-actions.pod:73
18744 #, no-wrap
18745 msgid ""
18746 " add-drive filename\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish-actions.pod:75
18752 msgid ""
18753 "This function is the equivalent of calling L</add-drive-opts> with no "
18754 "optional parameters, so the disk is added writable, with the format being "
18755 "detected automatically."
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish-actions.pod:79
18760 msgid ""
18761 "Automatic detection of the format opens you up to a potential security hole "
18762 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18763 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18764 "you should think about replacing calls to this function with calls to L</add-"
18765 "drive-opts>, and specifying the format."
18766 msgstr ""
18767
18768 # type: =head2
18769 #: ../fish/guestfish-actions.pod:86
18770 msgid "add-drive-opts"
18771 msgstr ""
18772
18773 # type: =head2
18774 #: ../fish/guestfish-actions.pod:88
18775 msgid "add"
18776 msgstr ""
18777
18778 # type: verbatim
18779 #: ../fish/guestfish-actions.pod:90
18780 #, no-wrap
18781 msgid ""
18782 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18783 "\n"
18784 msgstr ""
18785
18786 # type: textblock
18787 #: ../fish/guestfish-actions.pod:117
18788 msgid ""
18789 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
18790 "add-drive-ro>) then the format is automatically detected.  Possible formats "
18791 "include C<raw> and C<qcow2>."
18792 msgstr ""
18793
18794 # type: textblock
18795 #: ../fish/guestfish-actions.pod:128
18796 msgid ""
18797 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
18798 "add-drive-with-if> call (q.v.)"
18799 msgstr ""
18800
18801 # type: =head2
18802 #: ../fish/guestfish-actions.pod:135
18803 msgid "add-drive-ro"
18804 msgstr ""
18805
18806 # type: =head2
18807 #: ../fish/guestfish-actions.pod:137
18808 msgid "add-ro"
18809 msgstr ""
18810
18811 # type: verbatim
18812 #: ../fish/guestfish-actions.pod:139
18813 #, no-wrap
18814 msgid ""
18815 " add-drive-ro filename\n"
18816 "\n"
18817 msgstr ""
18818
18819 # type: textblock
18820 #: ../fish/guestfish-actions.pod:141
18821 msgid ""
18822 "This function is the equivalent of calling L</add-drive-opts> with the "
18823 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18824 "is added read-only, with the format being detected automatically."
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:146
18829 msgid "add-drive-ro-with-if"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:148
18834 #, no-wrap
18835 msgid ""
18836 " add-drive-ro-with-if filename iface\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: textblock
18841 #: ../fish/guestfish-actions.pod:150
18842 msgid ""
18843 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18844 "interface emulation to use at run time."
18845 msgstr ""
18846
18847 # type: =head2
18848 #: ../fish/guestfish-actions.pod:160
18849 msgid "add-drive-with-if"
18850 msgstr ""
18851
18852 # type: verbatim
18853 #: ../fish/guestfish-actions.pod:162
18854 #, no-wrap
18855 msgid ""
18856 " add-drive-with-if filename iface\n"
18857 "\n"
18858 msgstr ""
18859
18860 # type: textblock
18861 #: ../fish/guestfish-actions.pod:164
18862 msgid ""
18863 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18864 "interface emulation to use at run time."
18865 msgstr ""
18866
18867 # type: =head2
18868 #: ../fish/guestfish-actions.pod:174
18869 msgid "aug-clear"
18870 msgstr ""
18871
18872 # type: verbatim
18873 #: ../fish/guestfish-actions.pod:176
18874 #, no-wrap
18875 msgid ""
18876 " aug-clear augpath\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: =head2
18881 #: ../fish/guestfish-actions.pod:181
18882 msgid "aug-close"
18883 msgstr ""
18884
18885 # type: verbatim
18886 #: ../fish/guestfish-actions.pod:183
18887 #, no-wrap
18888 msgid ""
18889 " aug-close\n"
18890 "\n"
18891 msgstr ""
18892
18893 # type: textblock
18894 #: ../fish/guestfish-actions.pod:185
18895 msgid ""
18896 "Close the current Augeas handle and free up any resources used by it.  After "
18897 "calling this, you have to call L</aug-init> again before you can use any "
18898 "other Augeas functions."
18899 msgstr ""
18900
18901 # type: =head2
18902 #: ../fish/guestfish-actions.pod:190
18903 msgid "aug-defnode"
18904 msgstr ""
18905
18906 # type: verbatim
18907 #: ../fish/guestfish-actions.pod:192
18908 #, no-wrap
18909 msgid ""
18910 " aug-defnode name expr val\n"
18911 "\n"
18912 msgstr ""
18913
18914 # type: textblock
18915 #: ../fish/guestfish-actions.pod:197
18916 msgid ""
18917 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18918 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18919 "containing that single node."
18920 msgstr ""
18921
18922 # type: =head2
18923 #: ../fish/guestfish-actions.pod:205
18924 msgid "aug-defvar"
18925 msgstr ""
18926
18927 # type: verbatim
18928 #: ../fish/guestfish-actions.pod:207
18929 #, no-wrap
18930 msgid ""
18931 " aug-defvar name expr\n"
18932 "\n"
18933 msgstr ""
18934
18935 # type: =head2
18936 #: ../fish/guestfish-actions.pod:216
18937 msgid "aug-get"
18938 msgstr ""
18939
18940 # type: verbatim
18941 #: ../fish/guestfish-actions.pod:218
18942 #, no-wrap
18943 msgid ""
18944 " aug-get augpath\n"
18945 "\n"
18946 msgstr ""
18947
18948 # type: =head2
18949 #: ../fish/guestfish-actions.pod:223
18950 msgid "aug-init"
18951 msgstr ""
18952
18953 # type: verbatim
18954 #: ../fish/guestfish-actions.pod:225
18955 #, no-wrap
18956 msgid ""
18957 " aug-init root flags\n"
18958 "\n"
18959 msgstr ""
18960
18961 # type: textblock
18962 #: ../fish/guestfish-actions.pod:231
18963 msgid "You must call this before using any other L</aug-*> commands."
18964 msgstr ""
18965
18966 # type: textblock
18967 #: ../fish/guestfish-actions.pod:266
18968 msgid "Do not load the tree in L</aug-init>."
18969 msgstr ""
18970
18971 # type: textblock
18972 #: ../fish/guestfish-actions.pod:270
18973 msgid "To close the handle, you can call L</aug-close>."
18974 msgstr ""
18975
18976 # type: =head2
18977 #: ../fish/guestfish-actions.pod:274
18978 msgid "aug-insert"
18979 msgstr ""
18980
18981 # type: verbatim
18982 #: ../fish/guestfish-actions.pod:276
18983 #, no-wrap
18984 msgid ""
18985 " aug-insert augpath label true|false\n"
18986 "\n"
18987 msgstr ""
18988
18989 # type: =head2
18990 #: ../fish/guestfish-actions.pod:286
18991 msgid "aug-load"
18992 msgstr ""
18993
18994 # type: verbatim
18995 #: ../fish/guestfish-actions.pod:288
18996 #, no-wrap
18997 msgid ""
18998 " aug-load\n"
18999 "\n"
19000 msgstr ""
19001
19002 # type: =head2
19003 #: ../fish/guestfish-actions.pod:295
19004 msgid "aug-ls"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #: ../fish/guestfish-actions.pod:297
19009 #, no-wrap
19010 msgid ""
19011 " aug-ls augpath\n"
19012 "\n"
19013 msgstr ""
19014
19015 # type: textblock
19016 #: ../fish/guestfish-actions.pod:299
19017 msgid ""
19018 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19019 "resulting nodes into alphabetical order."
19020 msgstr ""
19021
19022 # type: =head2
19023 #: ../fish/guestfish-actions.pod:302
19024 msgid "aug-match"
19025 msgstr ""
19026
19027 # type: verbatim
19028 #: ../fish/guestfish-actions.pod:304
19029 #, no-wrap
19030 msgid ""
19031 " aug-match augpath\n"
19032 "\n"
19033 msgstr ""
19034
19035 # type: =head2
19036 #: ../fish/guestfish-actions.pod:310
19037 msgid "aug-mv"
19038 msgstr ""
19039
19040 # type: verbatim
19041 #: ../fish/guestfish-actions.pod:312
19042 #, no-wrap
19043 msgid ""
19044 " aug-mv src dest\n"
19045 "\n"
19046 msgstr ""
19047
19048 # type: =head2
19049 #: ../fish/guestfish-actions.pod:317
19050 msgid "aug-rm"
19051 msgstr ""
19052
19053 # type: verbatim
19054 #: ../fish/guestfish-actions.pod:319
19055 #, no-wrap
19056 msgid ""
19057 " aug-rm augpath\n"
19058 "\n"
19059 msgstr ""
19060
19061 # type: =head2
19062 #: ../fish/guestfish-actions.pod:325
19063 msgid "aug-save"
19064 msgstr ""
19065
19066 # type: verbatim
19067 #: ../fish/guestfish-actions.pod:327
19068 #, no-wrap
19069 msgid ""
19070 " aug-save\n"
19071 "\n"
19072 msgstr ""
19073
19074 # type: textblock
19075 #: ../fish/guestfish-actions.pod:331
19076 msgid ""
19077 "The flags which were passed to L</aug-init> affect exactly how files are "
19078 "saved."
19079 msgstr ""
19080
19081 # type: =head2
19082 #: ../fish/guestfish-actions.pod:334
19083 msgid "aug-set"
19084 msgstr ""
19085
19086 # type: verbatim
19087 #: ../fish/guestfish-actions.pod:336
19088 #, no-wrap
19089 msgid ""
19090 " aug-set augpath val\n"
19091 "\n"
19092 msgstr ""
19093
19094 # type: textblock
19095 #: ../fish/guestfish-actions.pod:340
19096 msgid ""
19097 "In the Augeas API, it is possible to clear a node by setting the value to "
19098 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19099 "this call.  Instead you must use the L</aug-clear> call."
19100 msgstr ""
19101
19102 # type: =head2
19103 #: ../fish/guestfish-actions.pod:345
19104 msgid "available"
19105 msgstr ""
19106
19107 # type: verbatim
19108 #: ../fish/guestfish-actions.pod:347
19109 #, no-wrap
19110 msgid ""
19111 " available 'groups ...'\n"
19112 "\n"
19113 msgstr ""
19114
19115 # type: textblock
19116 #: ../fish/guestfish-actions.pod:353
19117 msgid ""
19118 "The libguestfs groups, and the functions that those groups correspond to, "
19119 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19120 "runtime by calling L</available-all-groups>."
19121 msgstr ""
19122
19123 # type: textblock
19124 #: ../fish/guestfish-actions.pod:377
19125 msgid "You must call L</launch> before calling this function."
19126 msgstr ""
19127
19128 # type: textblock
19129 #: ../fish/guestfish-actions.pod:399
19130 msgid ""
19131 "This call was added in version C<1.0.80>.  In previous versions of "
19132 "libguestfs all you could do would be to speculatively execute a command to "
19133 "find out if the daemon implemented it.  See also L</version>."
19134 msgstr ""
19135
19136 # type: =head2
19137 #: ../fish/guestfish-actions.pod:406
19138 msgid "available-all-groups"
19139 msgstr ""
19140
19141 # type: verbatim
19142 #: ../fish/guestfish-actions.pod:408
19143 #, no-wrap
19144 msgid ""
19145 " available-all-groups\n"
19146 "\n"
19147 msgstr ""
19148
19149 # type: textblock
19150 #: ../fish/guestfish-actions.pod:410
19151 msgid ""
19152 "This command returns a list of all optional groups that this daemon knows "
19153 "about.  Note this returns both supported and unsupported groups.  To find "
19154 "out which ones the daemon can actually support you have to call L</"
19155 "available> on each member of the returned list."
19156 msgstr ""
19157
19158 # type: textblock
19159 #: ../fish/guestfish-actions.pod:416
19160 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19161 msgstr ""
19162
19163 # type: =head2
19164 #: ../fish/guestfish-actions.pod:418
19165 msgid "base64-in"
19166 msgstr ""
19167
19168 # type: verbatim
19169 #: ../fish/guestfish-actions.pod:420
19170 #, no-wrap
19171 msgid ""
19172 " base64-in (base64file|-) filename\n"
19173 "\n"
19174 msgstr ""
19175
19176 # type: textblock
19177 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19178 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19179 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19180 #: ../fish/guestfish-actions.pod:4002 ../fish/guestfish-actions.pod:4014
19181 #: ../fish/guestfish-actions.pod:4025 ../fish/guestfish-actions.pod:4036
19182 #: ../fish/guestfish-actions.pod:4088 ../fish/guestfish-actions.pod:4097
19183 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4174
19184 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19185 msgstr ""
19186
19187 # type: =head2
19188 #: ../fish/guestfish-actions.pod:427
19189 msgid "base64-out"
19190 msgstr ""
19191
19192 # type: verbatim
19193 #: ../fish/guestfish-actions.pod:429
19194 #, no-wrap
19195 msgid ""
19196 " base64-out filename (base64file|-)\n"
19197 "\n"
19198 msgstr ""
19199
19200 # type: =head2
19201 #: ../fish/guestfish-actions.pod:436
19202 msgid "blockdev-flushbufs"
19203 msgstr ""
19204
19205 # type: verbatim
19206 #: ../fish/guestfish-actions.pod:438
19207 #, no-wrap
19208 msgid ""
19209 " blockdev-flushbufs device\n"
19210 "\n"
19211 msgstr ""
19212
19213 # type: =head2
19214 #: ../fish/guestfish-actions.pod:445
19215 msgid "blockdev-getbsz"
19216 msgstr ""
19217
19218 # type: verbatim
19219 #: ../fish/guestfish-actions.pod:447
19220 #, no-wrap
19221 msgid ""
19222 " blockdev-getbsz device\n"
19223 "\n"
19224 msgstr ""
19225
19226 # type: =head2
19227 #: ../fish/guestfish-actions.pod:456
19228 msgid "blockdev-getro"
19229 msgstr ""
19230
19231 # type: verbatim
19232 #: ../fish/guestfish-actions.pod:458
19233 #, no-wrap
19234 msgid ""
19235 " blockdev-getro device\n"
19236 "\n"
19237 msgstr ""
19238
19239 # type: =head2
19240 #: ../fish/guestfish-actions.pod:465
19241 msgid "blockdev-getsize64"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #: ../fish/guestfish-actions.pod:467
19246 #, no-wrap
19247 msgid ""
19248 " blockdev-getsize64 device\n"
19249 "\n"
19250 msgstr ""
19251
19252 # type: textblock
19253 #: ../fish/guestfish-actions.pod:471
19254 msgid "See also L</blockdev-getsz>."
19255 msgstr ""
19256
19257 # type: =head2
19258 #: ../fish/guestfish-actions.pod:475
19259 msgid "blockdev-getss"
19260 msgstr ""
19261
19262 # type: verbatim
19263 #: ../fish/guestfish-actions.pod:477
19264 #, no-wrap
19265 msgid ""
19266 " blockdev-getss device\n"
19267 "\n"
19268 msgstr ""
19269
19270 # type: textblock
19271 #: ../fish/guestfish-actions.pod:482
19272 msgid ""
19273 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:487
19278 msgid "blockdev-getsz"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:489
19283 #, no-wrap
19284 msgid ""
19285 " blockdev-getsz device\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: textblock
19290 #: ../fish/guestfish-actions.pod:494
19291 msgid ""
19292 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19293 "blockdev-getsize64> for the more useful I<size in bytes>."
19294 msgstr ""
19295
19296 # type: =head2
19297 #: ../fish/guestfish-actions.pod:500
19298 msgid "blockdev-rereadpt"
19299 msgstr ""
19300
19301 # type: verbatim
19302 #: ../fish/guestfish-actions.pod:502
19303 #, no-wrap
19304 msgid ""
19305 " blockdev-rereadpt device\n"
19306 "\n"
19307 msgstr ""
19308
19309 # type: =head2
19310 #: ../fish/guestfish-actions.pod:508
19311 msgid "blockdev-setbsz"
19312 msgstr ""
19313
19314 # type: verbatim
19315 #: ../fish/guestfish-actions.pod:510
19316 #, no-wrap
19317 msgid ""
19318 " blockdev-setbsz device blocksize\n"
19319 "\n"
19320 msgstr ""
19321
19322 # type: =head2
19323 #: ../fish/guestfish-actions.pod:519
19324 msgid "blockdev-setro"
19325 msgstr ""
19326
19327 # type: verbatim
19328 #: ../fish/guestfish-actions.pod:521
19329 #, no-wrap
19330 msgid ""
19331 " blockdev-setro device\n"
19332 "\n"
19333 msgstr ""
19334
19335 # type: =head2
19336 #: ../fish/guestfish-actions.pod:527
19337 msgid "blockdev-setrw"
19338 msgstr ""
19339
19340 # type: verbatim
19341 #: ../fish/guestfish-actions.pod:529
19342 #, no-wrap
19343 msgid ""
19344 " blockdev-setrw device\n"
19345 "\n"
19346 msgstr ""
19347
19348 # type: =head2
19349 #: ../fish/guestfish-actions.pod:535
19350 msgid "case-sensitive-path"
19351 msgstr ""
19352
19353 # type: verbatim
19354 #: ../fish/guestfish-actions.pod:537
19355 #, no-wrap
19356 msgid ""
19357 " case-sensitive-path path\n"
19358 "\n"
19359 msgstr ""
19360
19361 # type: textblock
19362 #: ../fish/guestfish-actions.pod:561
19363 msgid ""
19364 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19365 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19366 "the directories were originally created under Windows)."
19367 msgstr ""
19368
19369 # type: textblock
19370 #: ../fish/guestfish-actions.pod:569
19371 msgid "See also L</realpath>."
19372 msgstr ""
19373
19374 # type: =head2
19375 #: ../fish/guestfish-actions.pod:571
19376 msgid "cat"
19377 msgstr ""
19378
19379 # type: verbatim
19380 #: ../fish/guestfish-actions.pod:573
19381 #, no-wrap
19382 msgid ""
19383 " cat path\n"
19384 "\n"
19385 msgstr ""
19386
19387 # type: textblock
19388 #: ../fish/guestfish-actions.pod:577
19389 msgid ""
19390 "Note that this function cannot correctly handle binary files (specifically, "
19391 "files containing C<\\0> character which is treated as end of string).  For "
19392 "those you need to use the L</read-file> or L</download> functions which have "
19393 "a more complex interface."
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:585
19398 msgid "checksum"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:587
19403 #, no-wrap
19404 msgid ""
19405 " checksum csumtype path\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: textblock
19410 #: ../fish/guestfish-actions.pod:630
19411 msgid "To get the checksum for a device, use L</checksum-device>."
19412 msgstr ""
19413
19414 # type: textblock
19415 #: ../fish/guestfish-actions.pod:632
19416 msgid "To get the checksums for many files, use L</checksums-out>."
19417 msgstr ""
19418
19419 # type: =head2
19420 #: ../fish/guestfish-actions.pod:634
19421 msgid "checksum-device"
19422 msgstr ""
19423
19424 # type: verbatim
19425 #: ../fish/guestfish-actions.pod:636
19426 #, no-wrap
19427 msgid ""
19428 " checksum-device csumtype device\n"
19429 "\n"
19430 msgstr ""
19431
19432 # type: textblock
19433 #: ../fish/guestfish-actions.pod:638
19434 msgid ""
19435 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19436 "device named C<device>.  For the types of checksums supported see the L</"
19437 "checksum> command."
19438 msgstr ""
19439
19440 # type: =head2
19441 #: ../fish/guestfish-actions.pod:642
19442 msgid "checksums-out"
19443 msgstr ""
19444
19445 # type: verbatim
19446 #: ../fish/guestfish-actions.pod:644
19447 #, no-wrap
19448 msgid ""
19449 " checksums-out csumtype directory (sumsfile|-)\n"
19450 "\n"
19451 msgstr ""
19452
19453 # type: =head2
19454 #: ../fish/guestfish-actions.pod:660
19455 msgid "chmod"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #: ../fish/guestfish-actions.pod:662
19460 #, no-wrap
19461 msgid ""
19462 " chmod mode path\n"
19463 "\n"
19464 msgstr ""
19465
19466 # type: =head2
19467 #: ../fish/guestfish-actions.pod:673
19468 msgid "chown"
19469 msgstr ""
19470
19471 # type: verbatim
19472 #: ../fish/guestfish-actions.pod:675
19473 #, no-wrap
19474 msgid ""
19475 " chown owner group path\n"
19476 "\n"
19477 msgstr ""
19478
19479 # type: =head2
19480 #: ../fish/guestfish-actions.pod:683
19481 msgid "command"
19482 msgstr ""
19483
19484 # type: verbatim
19485 #: ../fish/guestfish-actions.pod:685
19486 #, no-wrap
19487 msgid ""
19488 " command 'arguments ...'\n"
19489 "\n"
19490 msgstr ""
19491
19492 # type: textblock
19493 #: ../fish/guestfish-actions.pod:692
19494 msgid ""
19495 "The single parameter is an argv-style list of arguments.  The first element "
19496 "is the name of the program to run.  Subsequent elements are parameters.  The "
19497 "list must be non-empty (ie. must contain a program name).  Note that the "
19498 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19499 msgstr ""
19500
19501 # type: =head2
19502 #: ../fish/guestfish-actions.pod:720
19503 msgid "command-lines"
19504 msgstr ""
19505
19506 # type: verbatim
19507 #: ../fish/guestfish-actions.pod:722
19508 #, no-wrap
19509 msgid ""
19510 " command-lines 'arguments ...'\n"
19511 "\n"
19512 msgstr ""
19513
19514 # type: textblock
19515 #: ../fish/guestfish-actions.pod:724
19516 msgid ""
19517 "This is the same as L</command>, but splits the result into a list of lines."
19518 msgstr ""
19519
19520 # type: textblock
19521 #: ../fish/guestfish-actions.pod:727
19522 msgid "See also: L</sh-lines>"
19523 msgstr ""
19524
19525 # type: =head2
19526 #: ../fish/guestfish-actions.pod:732
19527 msgid "config"
19528 msgstr ""
19529
19530 # type: verbatim
19531 #: ../fish/guestfish-actions.pod:734
19532 #, no-wrap
19533 msgid ""
19534 " config qemuparam qemuvalue\n"
19535 "\n"
19536 msgstr ""
19537
19538 # type: =head2
19539 #: ../fish/guestfish-actions.pod:745
19540 msgid "copy-size"
19541 msgstr ""
19542
19543 # type: verbatim
19544 #: ../fish/guestfish-actions.pod:747
19545 #, no-wrap
19546 msgid ""
19547 " copy-size src dest size\n"
19548 "\n"
19549 msgstr ""
19550
19551 # type: =head2
19552 #: ../fish/guestfish-actions.pod:755
19553 msgid "cp"
19554 msgstr ""
19555
19556 # type: verbatim
19557 #: ../fish/guestfish-actions.pod:757
19558 #, no-wrap
19559 msgid ""
19560 " cp src dest\n"
19561 "\n"
19562 msgstr ""
19563
19564 # type: =head2
19565 #: ../fish/guestfish-actions.pod:762
19566 msgid "cp-a"
19567 msgstr ""
19568
19569 # type: verbatim
19570 #: ../fish/guestfish-actions.pod:764
19571 #, no-wrap
19572 msgid ""
19573 " cp-a src dest\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: =head2
19578 #: ../fish/guestfish-actions.pod:769
19579 msgid "dd"
19580 msgstr ""
19581
19582 # type: verbatim
19583 #: ../fish/guestfish-actions.pod:771
19584 #, no-wrap
19585 msgid ""
19586 " dd src dest\n"
19587 "\n"
19588 msgstr ""
19589
19590 # type: textblock
19591 #: ../fish/guestfish-actions.pod:778
19592 msgid ""
19593 "If the destination is a device, it must be as large or larger than the "
19594 "source file or device, otherwise the copy will fail.  This command cannot do "
19595 "partial copies (see L</copy-size>)."
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:782
19600 msgid "df"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:784
19605 #, no-wrap
19606 msgid ""
19607 " df\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:792
19613 msgid "df-h"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:794
19618 #, no-wrap
19619 msgid ""
19620 " df-h\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:803
19626 msgid "dmesg"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:805
19631 #, no-wrap
19632 msgid ""
19633 " dmesg\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: textblock
19638 #: ../fish/guestfish-actions.pod:811
19639 msgid ""
19640 "Another way to get the same information is to enable verbose messages with "
19641 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19642 "before running the program."
19643 msgstr ""
19644
19645 # type: =head2
19646 #: ../fish/guestfish-actions.pod:816
19647 msgid "download"
19648 msgstr ""
19649
19650 # type: verbatim
19651 #: ../fish/guestfish-actions.pod:818
19652 #, no-wrap
19653 msgid ""
19654 " download remotefilename (filename|-)\n"
19655 "\n"
19656 msgstr ""
19657
19658 # type: textblock
19659 #: ../fish/guestfish-actions.pod:825
19660 msgid "See also L</upload>, L</cat>."
19661 msgstr ""
19662
19663 # type: =head2
19664 #: ../fish/guestfish-actions.pod:829
19665 msgid "download-offset"
19666 msgstr ""
19667
19668 # type: verbatim
19669 #: ../fish/guestfish-actions.pod:831
19670 #, no-wrap
19671 msgid ""
19672 " download-offset remotefilename (filename|-) offset size\n"
19673 "\n"
19674 msgstr ""
19675
19676 # type: textblock
19677 #: ../fish/guestfish-actions.pod:839
19678 msgid ""
19679 "Note that there is no limit on the amount of data that can be downloaded "
19680 "with this call, unlike with L</pread>, and this call always reads the full "
19681 "amount unless an error occurs."
19682 msgstr ""
19683
19684 # type: textblock
19685 #: ../fish/guestfish-actions.pod:844
19686 msgid "See also L</download>, L</pread>."
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:848
19691 msgid "drop-caches"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:850
19696 #, no-wrap
19697 msgid ""
19698 " drop-caches whattodrop\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: =head2
19703 #: ../fish/guestfish-actions.pod:862
19704 msgid "du"
19705 msgstr ""
19706
19707 # type: verbatim
19708 #: ../fish/guestfish-actions.pod:864
19709 #, no-wrap
19710 msgid ""
19711 " du path\n"
19712 "\n"
19713 msgstr ""
19714
19715 # type: =head2
19716 #: ../fish/guestfish-actions.pod:876
19717 msgid "e2fsck-f"
19718 msgstr ""
19719
19720 # type: verbatim
19721 #: ../fish/guestfish-actions.pod:878
19722 #, no-wrap
19723 msgid ""
19724 " e2fsck-f device\n"
19725 "\n"
19726 msgstr ""
19727
19728 # type: textblock
19729 #: ../fish/guestfish-actions.pod:884
19730 msgid ""
19731 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19732 "should use L</fsck>."
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:887
19737 msgid "echo-daemon"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:889
19742 #, no-wrap
19743 msgid ""
19744 " echo-daemon 'words ...'\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:896
19750 msgid "See also L</ping-daemon>."
19751 msgstr ""
19752
19753 # type: =head2
19754 #: ../fish/guestfish-actions.pod:898
19755 msgid "egrep"
19756 msgstr ""
19757
19758 # type: verbatim
19759 #: ../fish/guestfish-actions.pod:900
19760 #, no-wrap
19761 msgid ""
19762 " egrep regex path\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:908
19768 msgid "egrepi"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:910
19773 #, no-wrap
19774 msgid ""
19775 " egrepi regex path\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: =head2
19780 #: ../fish/guestfish-actions.pod:918
19781 msgid "equal"
19782 msgstr ""
19783
19784 # type: verbatim
19785 #: ../fish/guestfish-actions.pod:920
19786 #, no-wrap
19787 msgid ""
19788 " equal file1 file2\n"
19789 "\n"
19790 msgstr ""
19791
19792 # type: =head2
19793 #: ../fish/guestfish-actions.pod:927
19794 msgid "exists"
19795 msgstr ""
19796
19797 # type: verbatim
19798 #: ../fish/guestfish-actions.pod:929
19799 #, no-wrap
19800 msgid ""
19801 " exists path\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: textblock
19806 #: ../fish/guestfish-actions.pod:934
19807 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19808 msgstr ""
19809
19810 # type: =head2
19811 #: ../fish/guestfish-actions.pod:936
19812 msgid "fallocate"
19813 msgstr ""
19814
19815 # type: verbatim
19816 #: ../fish/guestfish-actions.pod:938
19817 #, no-wrap
19818 msgid ""
19819 " fallocate path len\n"
19820 "\n"
19821 msgstr ""
19822
19823 # type: =head2
19824 #: ../fish/guestfish-actions.pod:955
19825 msgid "fallocate64"
19826 msgstr ""
19827
19828 # type: verbatim
19829 #: ../fish/guestfish-actions.pod:957
19830 #, no-wrap
19831 msgid ""
19832 " fallocate64 path len\n"
19833 "\n"
19834 msgstr ""
19835
19836 # type: textblock
19837 #: ../fish/guestfish-actions.pod:963
19838 msgid ""
19839 "Note that this call allocates disk blocks for the file.  To create a sparse "
19840 "file use L</truncate-size> instead."
19841 msgstr ""
19842
19843 # type: textblock
19844 #: ../fish/guestfish-actions.pod:966
19845 msgid ""
19846 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19847 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19848 "maximum size of files created through that call to 1GB."
19849 msgstr ""
19850
19851 # type: =head2
19852 #: ../fish/guestfish-actions.pod:975
19853 msgid "fgrep"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #: ../fish/guestfish-actions.pod:977
19858 #, no-wrap
19859 msgid ""
19860 " fgrep pattern path\n"
19861 "\n"
19862 msgstr ""
19863
19864 # type: =head2
19865 #: ../fish/guestfish-actions.pod:985
19866 msgid "fgrepi"
19867 msgstr ""
19868
19869 # type: verbatim
19870 #: ../fish/guestfish-actions.pod:987
19871 #, no-wrap
19872 msgid ""
19873 " fgrepi pattern path\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: =head2
19878 #: ../fish/guestfish-actions.pod:995
19879 msgid "file"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #: ../fish/guestfish-actions.pod:997
19884 #, no-wrap
19885 msgid ""
19886 " file path\n"
19887 "\n"
19888 msgstr ""
19889
19890 # type: textblock
19891 #: ../fish/guestfish-actions.pod:1009
19892 msgid ""
19893 "This command can also be used on C</dev/> devices (and partitions, LV "
19894 "names).  You can for example use this to determine if a device contains a "
19895 "filesystem, although it's usually better to use L</vfs-type>."
19896 msgstr ""
19897
19898 # type: =head2
19899 #: ../fish/guestfish-actions.pod:1019
19900 msgid "file-architecture"
19901 msgstr ""
19902
19903 # type: verbatim
19904 #: ../fish/guestfish-actions.pod:1021
19905 #, no-wrap
19906 msgid ""
19907 " file-architecture filename\n"
19908 "\n"
19909 msgstr ""
19910
19911 # type: =head2
19912 #: ../fish/guestfish-actions.pod:1124
19913 msgid "filesize"
19914 msgstr ""
19915
19916 # type: verbatim
19917 #: ../fish/guestfish-actions.pod:1126
19918 #, no-wrap
19919 msgid ""
19920 " filesize file\n"
19921 "\n"
19922 msgstr ""
19923
19924 # type: textblock
19925 #: ../fish/guestfish-actions.pod:1130
19926 msgid ""
19927 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19928 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19929 msgstr ""
19930
19931 # type: =head2
19932 #: ../fish/guestfish-actions.pod:1134
19933 msgid "fill"
19934 msgstr ""
19935
19936 # type: verbatim
19937 #: ../fish/guestfish-actions.pod:1136
19938 #, no-wrap
19939 msgid ""
19940 " fill c len path\n"
19941 "\n"
19942 msgstr ""
19943
19944 # type: textblock
19945 #: ../fish/guestfish-actions.pod:1142
19946 msgid ""
19947 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19948 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19949 "L</fill-pattern>."
19950 msgstr ""
19951
19952 # type: =head2
19953 #: ../fish/guestfish-actions.pod:1147
19954 msgid "fill-pattern"
19955 msgstr ""
19956
19957 # type: verbatim
19958 #: ../fish/guestfish-actions.pod:1149
19959 #, no-wrap
19960 msgid ""
19961 " fill-pattern pattern len path\n"
19962 "\n"
19963 msgstr ""
19964
19965 # type: textblock
19966 #: ../fish/guestfish-actions.pod:1151
19967 msgid ""
19968 "This function is like L</fill> except that it creates a new file of length "
19969 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19970 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19971 "bytes."
19972 msgstr ""
19973
19974 # type: =head2
19975 #: ../fish/guestfish-actions.pod:1156
19976 msgid "find"
19977 msgstr ""
19978
19979 # type: verbatim
19980 #: ../fish/guestfish-actions.pod:1158
19981 #, no-wrap
19982 msgid ""
19983 " find directory\n"
19984 "\n"
19985 msgstr ""
19986
19987 # type: textblock
19988 #: ../fish/guestfish-actions.pod:1172
19989 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19990 msgstr ""
19991
19992 # type: textblock
19993 #: ../fish/guestfish-actions.pod:1185
19994 msgid "See also L</find0>."
19995 msgstr ""
19996
19997 # type: =head2
19998 #: ../fish/guestfish-actions.pod:1190
19999 msgid "find0"
20000 msgstr ""
20001
20002 # type: verbatim
20003 #: ../fish/guestfish-actions.pod:1192
20004 #, no-wrap
20005 msgid ""
20006 " find0 directory (files|-)\n"
20007 "\n"
20008 msgstr ""
20009
20010 # type: textblock
20011 #: ../fish/guestfish-actions.pod:1198
20012 msgid ""
20013 "This command works the same way as L</find> with the following exceptions:"
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:1225
20018 msgid "findfs-label"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:1227
20023 #, no-wrap
20024 msgid ""
20025 " findfs-label label\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: textblock
20030 #: ../fish/guestfish-actions.pod:1233
20031 msgid "To find the label of a filesystem, use L</vfs-label>."
20032 msgstr ""
20033
20034 # type: =head2
20035 #: ../fish/guestfish-actions.pod:1235
20036 msgid "findfs-uuid"
20037 msgstr ""
20038
20039 # type: verbatim
20040 #: ../fish/guestfish-actions.pod:1237
20041 #, no-wrap
20042 msgid ""
20043 " findfs-uuid uuid\n"
20044 "\n"
20045 msgstr ""
20046
20047 # type: textblock
20048 #: ../fish/guestfish-actions.pod:1243
20049 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20050 msgstr ""
20051
20052 # type: =head2
20053 #: ../fish/guestfish-actions.pod:1245
20054 msgid "fsck"
20055 msgstr ""
20056
20057 # type: verbatim
20058 #: ../fish/guestfish-actions.pod:1247
20059 #, no-wrap
20060 msgid ""
20061 " fsck fstype device\n"
20062 "\n"
20063 msgstr ""
20064
20065 # type: =head2
20066 #: ../fish/guestfish-actions.pod:1277
20067 msgid "get-append"
20068 msgstr ""
20069
20070 # type: verbatim
20071 #: ../fish/guestfish-actions.pod:1279
20072 #, no-wrap
20073 msgid ""
20074 " get-append\n"
20075 "\n"
20076 msgstr ""
20077
20078 # type: =head2
20079 #: ../fish/guestfish-actions.pod:1286
20080 msgid "get-autosync"
20081 msgstr ""
20082
20083 # type: verbatim
20084 #: ../fish/guestfish-actions.pod:1288
20085 #, no-wrap
20086 msgid ""
20087 " get-autosync\n"
20088 "\n"
20089 msgstr ""
20090
20091 # type: =head2
20092 #: ../fish/guestfish-actions.pod:1292
20093 msgid "get-direct"
20094 msgstr ""
20095
20096 # type: verbatim
20097 #: ../fish/guestfish-actions.pod:1294
20098 #, no-wrap
20099 msgid ""
20100 " get-direct\n"
20101 "\n"
20102 msgstr ""
20103
20104 # type: =head2
20105 #: ../fish/guestfish-actions.pod:1298
20106 msgid "get-e2label"
20107 msgstr ""
20108
20109 # type: verbatim
20110 #: ../fish/guestfish-actions.pod:1300
20111 #, no-wrap
20112 msgid ""
20113 " get-e2label device\n"
20114 "\n"
20115 msgstr ""
20116
20117 # type: =head2
20118 #: ../fish/guestfish-actions.pod:1312
20119 msgid "get-e2uuid"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #: ../fish/guestfish-actions.pod:1314
20124 #, no-wrap
20125 msgid ""
20126 " get-e2uuid device\n"
20127 "\n"
20128 msgstr ""
20129
20130 # type: =head2
20131 #: ../fish/guestfish-actions.pod:1326
20132 msgid "get-memsize"
20133 msgstr ""
20134
20135 # type: verbatim
20136 #: ../fish/guestfish-actions.pod:1328
20137 #, no-wrap
20138 msgid ""
20139 " get-memsize\n"
20140 "\n"
20141 msgstr ""
20142
20143 # type: textblock
20144 #: ../fish/guestfish-actions.pod:1333
20145 msgid ""
20146 "If L</set-memsize> was not called on this handle, and if "
20147 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20148 "value for memsize."
20149 msgstr ""
20150
20151 # type: =head2
20152 #: ../fish/guestfish-actions.pod:1340
20153 msgid "get-network"
20154 msgstr ""
20155
20156 # type: verbatim
20157 #: ../fish/guestfish-actions.pod:1342
20158 #, no-wrap
20159 msgid ""
20160 " get-network\n"
20161 "\n"
20162 msgstr ""
20163
20164 # type: =head2
20165 #: ../fish/guestfish-actions.pod:1346
20166 msgid "get-path"
20167 msgstr ""
20168
20169 # type: verbatim
20170 #: ../fish/guestfish-actions.pod:1348
20171 #, no-wrap
20172 msgid ""
20173 " get-path\n"
20174 "\n"
20175 msgstr ""
20176
20177 # type: =head2
20178 #: ../fish/guestfish-actions.pod:1355
20179 msgid "get-pid"
20180 msgstr ""
20181
20182 # type: =head2
20183 #: ../fish/guestfish-actions.pod:1357
20184 msgid "pid"
20185 msgstr ""
20186
20187 # type: verbatim
20188 #: ../fish/guestfish-actions.pod:1359
20189 #, no-wrap
20190 msgid ""
20191 " get-pid\n"
20192 "\n"
20193 msgstr ""
20194
20195 # type: =head2
20196 #: ../fish/guestfish-actions.pod:1366
20197 msgid "get-qemu"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #: ../fish/guestfish-actions.pod:1368
20202 #, no-wrap
20203 msgid ""
20204 " get-qemu\n"
20205 "\n"
20206 msgstr ""
20207
20208 # type: =head2
20209 #: ../fish/guestfish-actions.pod:1375
20210 msgid "get-recovery-proc"
20211 msgstr ""
20212
20213 # type: verbatim
20214 #: ../fish/guestfish-actions.pod:1377
20215 #, no-wrap
20216 msgid ""
20217 " get-recovery-proc\n"
20218 "\n"
20219 msgstr ""
20220
20221 # type: =head2
20222 #: ../fish/guestfish-actions.pod:1381
20223 msgid "get-selinux"
20224 msgstr ""
20225
20226 # type: verbatim
20227 #: ../fish/guestfish-actions.pod:1383
20228 #, no-wrap
20229 msgid ""
20230 " get-selinux\n"
20231 "\n"
20232 msgstr ""
20233
20234 # type: textblock
20235 #: ../fish/guestfish-actions.pod:1385
20236 msgid ""
20237 "This returns the current setting of the selinux flag which is passed to the "
20238 "appliance at boot time.  See L</set-selinux>."
20239 msgstr ""
20240
20241 # type: =head2
20242 #: ../fish/guestfish-actions.pod:1391
20243 msgid "get-state"
20244 msgstr ""
20245
20246 # type: verbatim
20247 #: ../fish/guestfish-actions.pod:1393
20248 #, no-wrap
20249 msgid ""
20250 " get-state\n"
20251 "\n"
20252 msgstr ""
20253
20254 # type: =head2
20255 #: ../fish/guestfish-actions.pod:1400
20256 msgid "get-trace"
20257 msgstr ""
20258
20259 # type: verbatim
20260 #: ../fish/guestfish-actions.pod:1402
20261 #, no-wrap
20262 msgid ""
20263 " get-trace\n"
20264 "\n"
20265 msgstr ""
20266
20267 # type: =head2
20268 #: ../fish/guestfish-actions.pod:1406
20269 msgid "get-umask"
20270 msgstr ""
20271
20272 # type: verbatim
20273 #: ../fish/guestfish-actions.pod:1408
20274 #, no-wrap
20275 msgid ""
20276 " get-umask\n"
20277 "\n"
20278 msgstr ""
20279
20280 # type: textblock
20281 #: ../fish/guestfish-actions.pod:1410
20282 msgid ""
20283 "Return the current umask.  By default the umask is C<022> unless it has been "
20284 "set by calling L</umask>."
20285 msgstr ""
20286
20287 # type: =head2
20288 #: ../fish/guestfish-actions.pod:1413
20289 msgid "get-verbose"
20290 msgstr ""
20291
20292 # type: verbatim
20293 #: ../fish/guestfish-actions.pod:1415
20294 #, no-wrap
20295 msgid ""
20296 " get-verbose\n"
20297 "\n"
20298 msgstr ""
20299
20300 # type: =head2
20301 #: ../fish/guestfish-actions.pod:1419
20302 msgid "getcon"
20303 msgstr ""
20304
20305 # type: verbatim
20306 #: ../fish/guestfish-actions.pod:1421
20307 #, no-wrap
20308 msgid ""
20309 " getcon\n"
20310 "\n"
20311 msgstr ""
20312
20313 # type: textblock
20314 #: ../fish/guestfish-actions.pod:1425
20315 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20316 msgstr ""
20317
20318 # type: =head2
20319 #: ../fish/guestfish-actions.pod:1428
20320 msgid "getxattrs"
20321 msgstr ""
20322
20323 # type: verbatim
20324 #: ../fish/guestfish-actions.pod:1430
20325 #, no-wrap
20326 msgid ""
20327 " getxattrs path\n"
20328 "\n"
20329 msgstr ""
20330
20331 # type: textblock
20332 #: ../fish/guestfish-actions.pod:1438
20333 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20334 msgstr ""
20335
20336 # type: =head2
20337 #: ../fish/guestfish-actions.pod:1440
20338 msgid "glob-expand"
20339 msgstr ""
20340
20341 # type: verbatim
20342 #: ../fish/guestfish-actions.pod:1442
20343 #, no-wrap
20344 msgid ""
20345 " glob-expand pattern\n"
20346 "\n"
20347 msgstr ""
20348
20349 # type: =head2
20350 #: ../fish/guestfish-actions.pod:1455
20351 msgid "grep"
20352 msgstr ""
20353
20354 # type: verbatim
20355 #: ../fish/guestfish-actions.pod:1457
20356 #, no-wrap
20357 msgid ""
20358 " grep regex path\n"
20359 "\n"
20360 msgstr ""
20361
20362 # type: =head2
20363 #: ../fish/guestfish-actions.pod:1465
20364 msgid "grepi"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #: ../fish/guestfish-actions.pod:1467
20369 #, no-wrap
20370 msgid ""
20371 " grepi regex path\n"
20372 "\n"
20373 msgstr ""
20374
20375 # type: =head2
20376 #: ../fish/guestfish-actions.pod:1475
20377 msgid "grub-install"
20378 msgstr ""
20379
20380 # type: verbatim
20381 #: ../fish/guestfish-actions.pod:1477
20382 #, no-wrap
20383 msgid ""
20384 " grub-install root device\n"
20385 "\n"
20386 msgstr ""
20387
20388 # type: =head2
20389 #: ../fish/guestfish-actions.pod:1493
20390 msgid "head"
20391 msgstr ""
20392
20393 # type: verbatim
20394 #: ../fish/guestfish-actions.pod:1495
20395 #, no-wrap
20396 msgid ""
20397 " head path\n"
20398 "\n"
20399 msgstr ""
20400
20401 # type: =head2
20402 #: ../fish/guestfish-actions.pod:1503
20403 msgid "head-n"
20404 msgstr ""
20405
20406 # type: verbatim
20407 #: ../fish/guestfish-actions.pod:1505
20408 #, no-wrap
20409 msgid ""
20410 " head-n nrlines path\n"
20411 "\n"
20412 msgstr ""
20413
20414 # type: =head2
20415 #: ../fish/guestfish-actions.pod:1518
20416 msgid "hexdump"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #: ../fish/guestfish-actions.pod:1520
20421 #, no-wrap
20422 msgid ""
20423 " hexdump path\n"
20424 "\n"
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:1528
20429 msgid "initrd-cat"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:1530
20434 #, no-wrap
20435 msgid ""
20436 " initrd-cat initrdpath filename\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: textblock
20441 #: ../fish/guestfish-actions.pod:1542
20442 msgid "See also L</initrd-list>."
20443 msgstr ""
20444
20445 # type: =head2
20446 #: ../fish/guestfish-actions.pod:1547
20447 msgid "initrd-list"
20448 msgstr ""
20449
20450 # type: verbatim
20451 #: ../fish/guestfish-actions.pod:1549
20452 #, no-wrap
20453 msgid ""
20454 " initrd-list path\n"
20455 "\n"
20456 msgstr ""
20457
20458 # type: =head2
20459 #: ../fish/guestfish-actions.pod:1561
20460 msgid "inotify-add-watch"
20461 msgstr ""
20462
20463 # type: verbatim
20464 #: ../fish/guestfish-actions.pod:1563
20465 #, no-wrap
20466 msgid ""
20467 " inotify-add-watch path mask\n"
20468 "\n"
20469 msgstr ""
20470
20471 # type: =head2
20472 #: ../fish/guestfish-actions.pod:1575
20473 msgid "inotify-close"
20474 msgstr ""
20475
20476 # type: verbatim
20477 #: ../fish/guestfish-actions.pod:1577
20478 #, no-wrap
20479 msgid ""
20480 " inotify-close\n"
20481 "\n"
20482 msgstr ""
20483
20484 # type: =head2
20485 #: ../fish/guestfish-actions.pod:1583
20486 msgid "inotify-files"
20487 msgstr ""
20488
20489 # type: verbatim
20490 #: ../fish/guestfish-actions.pod:1585
20491 #, no-wrap
20492 msgid ""
20493 " inotify-files\n"
20494 "\n"
20495 msgstr ""
20496
20497 # type: textblock
20498 #: ../fish/guestfish-actions.pod:1587
20499 msgid ""
20500 "This function is a helpful wrapper around L</inotify-read> which just "
20501 "returns a list of pathnames of objects that were touched.  The returned "
20502 "pathnames are sorted and deduplicated."
20503 msgstr ""
20504
20505 # type: =head2
20506 #: ../fish/guestfish-actions.pod:1591
20507 msgid "inotify-init"
20508 msgstr ""
20509
20510 # type: verbatim
20511 #: ../fish/guestfish-actions.pod:1593
20512 #, no-wrap
20513 msgid ""
20514 " inotify-init maxevents\n"
20515 "\n"
20516 msgstr ""
20517
20518 # type: textblock
20519 #: ../fish/guestfish-actions.pod:1599
20520 msgid ""
20521 "C<maxevents> is the maximum number of events which will be queued up between "
20522 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20523 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20524 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20525 "but records the fact that it threw them away by setting a flag "
20526 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20527 msgstr ""
20528
20529 # type: textblock
20530 #: ../fish/guestfish-actions.pod:1609
20531 msgid ""
20532 "Before any events are generated, you have to add some watches to the "
20533 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20534 "L</inotify-watch-all>."
20535 msgstr ""
20536
20537 # type: textblock
20538 #: ../fish/guestfish-actions.pod:1615
20539 msgid ""
20540 "Queued up events should be read periodically by calling L</inotify-read> (or "
20541 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20542 "If you don't read the events out often enough then you risk the internal "
20543 "queue overflowing."
20544 msgstr ""
20545
20546 # type: textblock
20547 #: ../fish/guestfish-actions.pod:1622
20548 msgid ""
20549 "The handle should be closed after use by calling L</inotify-close>.  This "
20550 "also removes any watches automatically."
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:1631
20555 msgid "inotify-read"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:1633
20560 #, no-wrap
20561 msgid ""
20562 " inotify-read\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:1646
20568 msgid "inotify-rm-watch"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:1648
20573 #, no-wrap
20574 msgid ""
20575 " inotify-rm-watch wd\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: textblock
20580 #: ../fish/guestfish-actions.pod:1650
20581 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20582 msgstr ""
20583
20584 # type: =head2
20585 #: ../fish/guestfish-actions.pod:1653
20586 msgid "inspect-get-arch"
20587 msgstr ""
20588
20589 # type: verbatim
20590 #: ../fish/guestfish-actions.pod:1655
20591 #, no-wrap
20592 msgid ""
20593 " inspect-get-arch root\n"
20594 "\n"
20595 msgstr ""
20596
20597 # type: textblock
20598 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
20599 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1757
20600 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1793
20601 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1838
20602 #: ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1892
20603 #: ../fish/guestfish-actions.pod:1923
20604 msgid ""
20605 "This function should only be called with a root device string as returned by "
20606 "L</inspect-os>."
20607 msgstr ""
20608
20609 # type: textblock
20610 #: ../fish/guestfish-actions.pod:1660
20611 msgid ""
20612 "This returns the architecture of the inspected operating system.  The "
20613 "possible return values are listed under L</file-architecture>."
20614 msgstr ""
20615
20616 # type: =head2
20617 #: ../fish/guestfish-actions.pod:1669
20618 msgid "inspect-get-distro"
20619 msgstr ""
20620
20621 # type: verbatim
20622 #: ../fish/guestfish-actions.pod:1671
20623 #, no-wrap
20624 msgid ""
20625 " inspect-get-distro root\n"
20626 "\n"
20627 msgstr ""
20628
20629 # type: =head2
20630 #: ../fish/guestfish-actions.pod:1735
20631 msgid "inspect-get-filesystems"
20632 msgstr ""
20633
20634 # type: verbatim
20635 #: ../fish/guestfish-actions.pod:1737
20636 #, no-wrap
20637 msgid ""
20638 " inspect-get-filesystems root\n"
20639 "\n"
20640 msgstr ""
20641
20642 # type: textblock
20643 #: ../fish/guestfish-actions.pod:1750
20644 msgid ""
20645 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20646 "get-mountpoints>."
20647 msgstr ""
20648
20649 # type: =head2
20650 #: ../fish/guestfish-actions.pod:1753
20651 msgid "inspect-get-major-version"
20652 msgstr ""
20653
20654 # type: verbatim
20655 #: ../fish/guestfish-actions.pod:1755
20656 #, no-wrap
20657 msgid ""
20658 " inspect-get-major-version root\n"
20659 "\n"
20660 msgstr ""
20661
20662 # type: =head2
20663 #: ../fish/guestfish-actions.pod:1774
20664 msgid "inspect-get-minor-version"
20665 msgstr ""
20666
20667 # type: verbatim
20668 #: ../fish/guestfish-actions.pod:1776
20669 #, no-wrap
20670 msgid ""
20671 " inspect-get-minor-version root\n"
20672 "\n"
20673 msgstr ""
20674
20675 # type: textblock
20676 #: ../fish/guestfish-actions.pod:1786
20677 msgid ""
20678 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20679 "get-major-version>."
20680 msgstr ""
20681
20682 # type: =head2
20683 #: ../fish/guestfish-actions.pod:1789
20684 msgid "inspect-get-mountpoints"
20685 msgstr ""
20686
20687 # type: verbatim
20688 #: ../fish/guestfish-actions.pod:1791
20689 #, no-wrap
20690 msgid ""
20691 " inspect-get-mountpoints root\n"
20692 "\n"
20693 msgstr ""
20694
20695 # type: textblock
20696 #: ../fish/guestfish-actions.pod:1809
20697 msgid ""
20698 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20699 "get-filesystems>."
20700 msgstr ""
20701
20702 # type: =head2
20703 #: ../fish/guestfish-actions.pod:1812
20704 msgid "inspect-get-package-format"
20705 msgstr ""
20706
20707 # type: verbatim
20708 #: ../fish/guestfish-actions.pod:1814
20709 #, no-wrap
20710 msgid ""
20711 " inspect-get-package-format root\n"
20712 "\n"
20713 msgstr ""
20714
20715 # type: textblock
20716 #: ../fish/guestfish-actions.pod:1819
20717 msgid ""
20718 "This function and L</inspect-get-package-management> return the package "
20719 "format and package management tool used by the inspected operating system.  "
20720 "For example for Fedora these functions would return C<rpm> (package format) "
20721 "and C<yum> (package management)."
20722 msgstr ""
20723
20724 # type: =head2
20725 #: ../fish/guestfish-actions.pod:1834
20726 msgid "inspect-get-package-management"
20727 msgstr ""
20728
20729 # type: verbatim
20730 #: ../fish/guestfish-actions.pod:1836
20731 #, no-wrap
20732 msgid ""
20733 " inspect-get-package-management root\n"
20734 "\n"
20735 msgstr ""
20736
20737 # type: textblock
20738 #: ../fish/guestfish-actions.pod:1841
20739 msgid ""
20740 "L</inspect-get-package-format> and this function return the package format "
20741 "and package management tool used by the inspected operating system.  For "
20742 "example for Fedora these functions would return C<rpm> (package format) and "
20743 "C<yum> (package management)."
20744 msgstr ""
20745
20746 # type: =head2
20747 #: ../fish/guestfish-actions.pod:1858
20748 msgid "inspect-get-product-name"
20749 msgstr ""
20750
20751 # type: verbatim
20752 #: ../fish/guestfish-actions.pod:1860
20753 #, no-wrap
20754 msgid ""
20755 " inspect-get-product-name root\n"
20756 "\n"
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:1875
20761 msgid "inspect-get-roots"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:1877
20766 #, no-wrap
20767 msgid ""
20768 " inspect-get-roots\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:1879
20774 msgid ""
20775 "This function is a convenient way to get the list of root devices, as "
20776 "returned from a previous call to L</inspect-os>, but without redoing the "
20777 "whole inspection process."
20778 msgstr ""
20779
20780 # type: textblock
20781 #: ../fish/guestfish-actions.pod:1883
20782 msgid ""
20783 "This returns an empty list if either no root devices were found or the "
20784 "caller has not called L</inspect-os>."
20785 msgstr ""
20786
20787 # type: =head2
20788 #: ../fish/guestfish-actions.pod:1888
20789 msgid "inspect-get-type"
20790 msgstr ""
20791
20792 # type: verbatim
20793 #: ../fish/guestfish-actions.pod:1890
20794 #, no-wrap
20795 msgid ""
20796 " inspect-get-type root\n"
20797 "\n"
20798 msgstr ""
20799
20800 # type: =head2
20801 #: ../fish/guestfish-actions.pod:1919
20802 msgid "inspect-get-windows-systemroot"
20803 msgstr ""
20804
20805 # type: verbatim
20806 #: ../fish/guestfish-actions.pod:1921
20807 #, no-wrap
20808 msgid ""
20809 " inspect-get-windows-systemroot root\n"
20810 "\n"
20811 msgstr ""
20812
20813 # type: =head2
20814 #: ../fish/guestfish-actions.pod:1935
20815 msgid "inspect-os"
20816 msgstr ""
20817
20818 # type: verbatim
20819 #: ../fish/guestfish-actions.pod:1937
20820 #, no-wrap
20821 msgid ""
20822 " inspect-os\n"
20823 "\n"
20824 msgstr ""
20825
20826 # type: textblock
20827 #: ../fish/guestfish-actions.pod:1952
20828 msgid ""
20829 "You can pass the root string(s) returned to other L</inspect-get-*> "
20830 "functions in order to query further information about each operating system, "
20831 "such as the name and version."
20832 msgstr ""
20833
20834 # type: textblock
20835 #: ../fish/guestfish-actions.pod:1957
20836 msgid ""
20837 "This function uses other libguestfs features such as L</mount-ro> and L</"
20838 "umount-all> in order to mount and unmount filesystems and look at the "
20839 "contents.  This should be called with no disks currently mounted.  The "
20840 "function may also use Augeas, so any existing Augeas handle will be closed."
20841 msgstr ""
20842
20843 # type: textblock
20844 #: ../fish/guestfish-actions.pod:1969 ../fish/guestfish-actions.pod:2125
20845 #: ../fish/guestfish-actions.pod:2171
20846 msgid "See also L</list-filesystems>."
20847 msgstr ""
20848
20849 # type: =head2
20850 #: ../fish/guestfish-actions.pod:1971
20851 msgid "is-blockdev"
20852 msgstr ""
20853
20854 # type: verbatim
20855 #: ../fish/guestfish-actions.pod:1973
20856 #, no-wrap
20857 msgid ""
20858 " is-blockdev path\n"
20859 "\n"
20860 msgstr ""
20861
20862 # type: textblock
20863 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1996
20864 #: ../fish/guestfish-actions.pod:2015 ../fish/guestfish-actions.pod:2024
20865 #: ../fish/guestfish-actions.pod:2034 ../fish/guestfish-actions.pod:2068
20866 #: ../fish/guestfish-actions.pod:2077
20867 msgid "See also L</stat>."
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:1980
20872 msgid "is-busy"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:1982
20877 #, no-wrap
20878 msgid ""
20879 " is-busy\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:1989
20885 msgid "is-chardev"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:1991
20890 #, no-wrap
20891 msgid ""
20892 " is-chardev path\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: =head2
20897 #: ../fish/guestfish-actions.pod:1998
20898 msgid "is-config"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #: ../fish/guestfish-actions.pod:2000
20903 #, no-wrap
20904 msgid ""
20905 " is-config\n"
20906 "\n"
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:2007
20911 msgid "is-dir"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:2009
20916 #, no-wrap
20917 msgid ""
20918 " is-dir path\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:2017
20924 msgid "is-fifo"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:2019
20929 #, no-wrap
20930 msgid ""
20931 " is-fifo path\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: =head2
20936 #: ../fish/guestfish-actions.pod:2026
20937 msgid "is-file"
20938 msgstr ""
20939
20940 # type: verbatim
20941 #: ../fish/guestfish-actions.pod:2028
20942 #, no-wrap
20943 msgid ""
20944 " is-file path\n"
20945 "\n"
20946 msgstr ""
20947
20948 # type: =head2
20949 #: ../fish/guestfish-actions.pod:2036
20950 msgid "is-launching"
20951 msgstr ""
20952
20953 # type: verbatim
20954 #: ../fish/guestfish-actions.pod:2038
20955 #, no-wrap
20956 msgid ""
20957 " is-launching\n"
20958 "\n"
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:2045
20963 msgid "is-lv"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:2047
20968 #, no-wrap
20969 msgid ""
20970 " is-lv device\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: =head2
20975 #: ../fish/guestfish-actions.pod:2052
20976 msgid "is-ready"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #: ../fish/guestfish-actions.pod:2054
20981 #, no-wrap
20982 msgid ""
20983 " is-ready\n"
20984 "\n"
20985 msgstr ""
20986
20987 # type: =head2
20988 #: ../fish/guestfish-actions.pod:2061
20989 msgid "is-socket"
20990 msgstr ""
20991
20992 # type: verbatim
20993 #: ../fish/guestfish-actions.pod:2063
20994 #, no-wrap
20995 msgid ""
20996 " is-socket path\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: =head2
21001 #: ../fish/guestfish-actions.pod:2070
21002 msgid "is-symlink"
21003 msgstr ""
21004
21005 # type: verbatim
21006 #: ../fish/guestfish-actions.pod:2072
21007 #, no-wrap
21008 msgid ""
21009 " is-symlink path\n"
21010 "\n"
21011 msgstr ""
21012
21013 # type: =head2
21014 #: ../fish/guestfish-actions.pod:2079
21015 msgid "kill-subprocess"
21016 msgstr ""
21017
21018 # type: verbatim
21019 #: ../fish/guestfish-actions.pod:2081
21020 #, no-wrap
21021 msgid ""
21022 " kill-subprocess\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: =head2
21027 #: ../fish/guestfish-actions.pod:2085
21028 msgid "launch"
21029 msgstr ""
21030
21031 # type: =head2
21032 #: ../fish/guestfish-actions.pod:2087
21033 msgid "run"
21034 msgstr ""
21035
21036 # type: verbatim
21037 #: ../fish/guestfish-actions.pod:2089
21038 #, no-wrap
21039 msgid ""
21040 " launch\n"
21041 "\n"
21042 msgstr ""
21043
21044 # type: =head2
21045 #: ../fish/guestfish-actions.pod:2097
21046 msgid "lchown"
21047 msgstr ""
21048
21049 # type: verbatim
21050 #: ../fish/guestfish-actions.pod:2099
21051 #, no-wrap
21052 msgid ""
21053 " lchown owner group path\n"
21054 "\n"
21055 msgstr ""
21056
21057 # type: textblock
21058 #: ../fish/guestfish-actions.pod:2101
21059 msgid ""
21060 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21061 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21062 "target."
21063 msgstr ""
21064
21065 # type: =head2
21066 #: ../fish/guestfish-actions.pod:2109
21067 msgid "lgetxattrs"
21068 msgstr ""
21069
21070 # type: verbatim
21071 #: ../fish/guestfish-actions.pod:2111
21072 #, no-wrap
21073 msgid ""
21074 " lgetxattrs path\n"
21075 "\n"
21076 msgstr ""
21077
21078 # type: textblock
21079 #: ../fish/guestfish-actions.pod:2113
21080 msgid ""
21081 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21082 "it returns the extended attributes of the link itself."
21083 msgstr ""
21084
21085 # type: =head2
21086 #: ../fish/guestfish-actions.pod:2117
21087 msgid "list-devices"
21088 msgstr ""
21089
21090 # type: verbatim
21091 #: ../fish/guestfish-actions.pod:2119
21092 #, no-wrap
21093 msgid ""
21094 " list-devices\n"
21095 "\n"
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:2127
21100 msgid "list-filesystems"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:2129
21105 #, no-wrap
21106 msgid ""
21107 " list-filesystems\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #: ../fish/guestfish-actions.pod:2148
21113 msgid ""
21114 "This command runs other libguestfs commands, which might include L</mount> "
21115 "and L</umount>, and therefore you should use this soon after launch and only "
21116 "when nothing is mounted."
21117 msgstr ""
21118
21119 # type: textblock
21120 #: ../fish/guestfish-actions.pod:2152
21121 msgid ""
21122 "Not all of the filesystems returned will be mountable.  In particular, swap "
21123 "partitions are returned in the list.  Also this command does not check that "
21124 "each filesystem found is valid and mountable, and some filesystems might be "
21125 "mountable but require special options.  Filesystems may not all belong to a "
21126 "single logical operating system (use L</inspect-os> to look for OSes)."
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2160
21131 msgid "list-partitions"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2162
21136 #, no-wrap
21137 msgid ""
21138 " list-partitions\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: textblock
21143 #: ../fish/guestfish-actions.pod:2168
21144 msgid ""
21145 "This does not return logical volumes.  For that you will need to call L</"
21146 "lvs>."
21147 msgstr ""
21148
21149 # type: =head2
21150 #: ../fish/guestfish-actions.pod:2173
21151 msgid "ll"
21152 msgstr ""
21153
21154 # type: verbatim
21155 #: ../fish/guestfish-actions.pod:2175
21156 #, no-wrap
21157 msgid ""
21158 " ll directory\n"
21159 "\n"
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:2183
21164 msgid "ln"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:2185
21169 #, no-wrap
21170 msgid ""
21171 " ln target linkname\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: =head2
21176 #: ../fish/guestfish-actions.pod:2189
21177 msgid "ln-f"
21178 msgstr ""
21179
21180 # type: verbatim
21181 #: ../fish/guestfish-actions.pod:2191
21182 #, no-wrap
21183 msgid ""
21184 " ln-f target linkname\n"
21185 "\n"
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:2196
21190 msgid "ln-s"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:2198
21195 #, no-wrap
21196 msgid ""
21197 " ln-s target linkname\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:2202
21203 msgid "ln-sf"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:2204
21208 #, no-wrap
21209 msgid ""
21210 " ln-sf target linkname\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: =head2
21215 #: ../fish/guestfish-actions.pod:2209
21216 msgid "lremovexattr"
21217 msgstr ""
21218
21219 # type: verbatim
21220 #: ../fish/guestfish-actions.pod:2211
21221 #, no-wrap
21222 msgid ""
21223 " lremovexattr xattr path\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: textblock
21228 #: ../fish/guestfish-actions.pod:2213
21229 msgid ""
21230 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21231 "it removes an extended attribute of the link itself."
21232 msgstr ""
21233
21234 # type: =head2
21235 #: ../fish/guestfish-actions.pod:2217
21236 msgid "ls"
21237 msgstr ""
21238
21239 # type: verbatim
21240 #: ../fish/guestfish-actions.pod:2219
21241 #, no-wrap
21242 msgid ""
21243 " ls directory\n"
21244 "\n"
21245 msgstr ""
21246
21247 # type: textblock
21248 #: ../fish/guestfish-actions.pod:2225
21249 msgid ""
21250 "This command is mostly useful for interactive sessions.  Programs should "
21251 "probably use L</readdir> instead."
21252 msgstr ""
21253
21254 # type: =head2
21255 #: ../fish/guestfish-actions.pod:2228
21256 msgid "lsetxattr"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #: ../fish/guestfish-actions.pod:2230
21261 #, no-wrap
21262 msgid ""
21263 " lsetxattr xattr val vallen path\n"
21264 "\n"
21265 msgstr ""
21266
21267 # type: textblock
21268 #: ../fish/guestfish-actions.pod:2232
21269 msgid ""
21270 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21271 "sets an extended attribute of the link itself."
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:2236
21276 msgid "lstat"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:2238
21281 #, no-wrap
21282 msgid ""
21283 " lstat path\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: textblock
21288 #: ../fish/guestfish-actions.pod:2242
21289 msgid ""
21290 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21291 "the link is stat-ed, not the file it refers to."
21292 msgstr ""
21293
21294 # type: =head2
21295 #: ../fish/guestfish-actions.pod:2248
21296 msgid "lstatlist"
21297 msgstr ""
21298
21299 # type: verbatim
21300 #: ../fish/guestfish-actions.pod:2250
21301 #, no-wrap
21302 msgid ""
21303 " lstatlist path 'names ...'\n"
21304 "\n"
21305 msgstr ""
21306
21307 # type: textblock
21308 #: ../fish/guestfish-actions.pod:2252
21309 msgid ""
21310 "This call allows you to perform the L</lstat> operation on multiple files, "
21311 "where all files are in the directory C<path>.  C<names> is the list of files "
21312 "from this directory."
21313 msgstr ""
21314
21315 # type: textblock
21316 #: ../fish/guestfish-actions.pod:2261
21317 msgid ""
21318 "This call is intended for programs that want to efficiently list a directory "
21319 "contents without making many round-trips.  See also L</lxattrlist> for a "
21320 "similarly efficient call for getting extended attributes.  Very long "
21321 "directory listings might cause the protocol message size to be exceeded, "
21322 "causing this call to fail.  The caller must split up such requests into "
21323 "smaller groups of names."
21324 msgstr ""
21325
21326 # type: =head2
21327 #: ../fish/guestfish-actions.pod:2269
21328 msgid "luks-add-key"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #: ../fish/guestfish-actions.pod:2271
21333 #, no-wrap
21334 msgid ""
21335 " luks-add-key device keyslot\n"
21336 "\n"
21337 msgstr ""
21338
21339 # type: textblock
21340 #: ../fish/guestfish-actions.pod:2278
21341 msgid ""
21342 "Note that if C<keyslot> already contains a key, then this command will "
21343 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21344 msgstr ""
21345
21346 # type: textblock
21347 #: ../fish/guestfish-actions.pod:2282 ../fish/guestfish-actions.pod:2304
21348 #: ../fish/guestfish-actions.pod:2317 ../fish/guestfish-actions.pod:2331
21349 #: ../fish/guestfish-actions.pod:2354 ../fish/guestfish-actions.pod:2364
21350 msgid ""
21351 "This command has one or more key or passphrase parameters.  Guestfish will "
21352 "prompt for these separately."
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:2285
21357 msgid "luks-close"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:2287
21362 #, no-wrap
21363 msgid ""
21364 " luks-close device\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: textblock
21369 #: ../fish/guestfish-actions.pod:2289
21370 msgid ""
21371 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21372 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21373 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21374 "block device."
21375 msgstr ""
21376
21377 # type: =head2
21378 #: ../fish/guestfish-actions.pod:2295
21379 msgid "luks-format"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #: ../fish/guestfish-actions.pod:2297
21384 #, no-wrap
21385 msgid ""
21386 " luks-format device keyslot\n"
21387 "\n"
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:2310
21392 msgid "luks-format-cipher"
21393 msgstr ""
21394
21395 # type: verbatim
21396 #: ../fish/guestfish-actions.pod:2312
21397 #, no-wrap
21398 msgid ""
21399 " luks-format-cipher device keyslot cipher\n"
21400 "\n"
21401 msgstr ""
21402
21403 # type: textblock
21404 #: ../fish/guestfish-actions.pod:2314
21405 msgid ""
21406 "This command is the same as L</luks-format> but it also allows you to set "
21407 "the C<cipher> used."
21408 msgstr ""
21409
21410 # type: =head2
21411 #: ../fish/guestfish-actions.pod:2323
21412 msgid "luks-kill-slot"
21413 msgstr ""
21414
21415 # type: verbatim
21416 #: ../fish/guestfish-actions.pod:2325
21417 #, no-wrap
21418 msgid ""
21419 " luks-kill-slot device keyslot\n"
21420 "\n"
21421 msgstr ""
21422
21423 # type: =head2
21424 #: ../fish/guestfish-actions.pod:2334
21425 msgid "luks-open"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #: ../fish/guestfish-actions.pod:2336
21430 #, no-wrap
21431 msgid ""
21432 " luks-open device mapname\n"
21433 "\n"
21434 msgstr ""
21435
21436 # type: textblock
21437 #: ../fish/guestfish-actions.pod:2350
21438 msgid ""
21439 "If this block device contains LVM volume groups, then calling L</vgscan> "
21440 "followed by L</vg-activate-all> will make them visible."
21441 msgstr ""
21442
21443 # type: =head2
21444 #: ../fish/guestfish-actions.pod:2357
21445 msgid "luks-open-ro"
21446 msgstr ""
21447
21448 # type: verbatim
21449 #: ../fish/guestfish-actions.pod:2359
21450 #, no-wrap
21451 msgid ""
21452 " luks-open-ro device mapname\n"
21453 "\n"
21454 msgstr ""
21455
21456 # type: textblock
21457 #: ../fish/guestfish-actions.pod:2361
21458 msgid ""
21459 "This is the same as L</luks-open> except that a read-only mapping is created."
21460 msgstr ""
21461
21462 # type: =head2
21463 #: ../fish/guestfish-actions.pod:2367
21464 msgid "lvcreate"
21465 msgstr ""
21466
21467 # type: verbatim
21468 #: ../fish/guestfish-actions.pod:2369
21469 #, no-wrap
21470 msgid ""
21471 " lvcreate logvol volgroup mbytes\n"
21472 "\n"
21473 msgstr ""
21474
21475 # type: =head2
21476 #: ../fish/guestfish-actions.pod:2374
21477 msgid "lvm-canonical-lv-name"
21478 msgstr ""
21479
21480 # type: verbatim
21481 #: ../fish/guestfish-actions.pod:2376
21482 #, no-wrap
21483 msgid ""
21484 " lvm-canonical-lv-name lvname\n"
21485 "\n"
21486 msgstr ""
21487
21488 # type: textblock
21489 #: ../fish/guestfish-actions.pod:2385
21490 msgid "See also L</is-lv>."
21491 msgstr ""
21492
21493 # type: =head2
21494 #: ../fish/guestfish-actions.pod:2387
21495 msgid "lvm-clear-filter"
21496 msgstr ""
21497
21498 # type: verbatim
21499 #: ../fish/guestfish-actions.pod:2389
21500 #, no-wrap
21501 msgid ""
21502 " lvm-clear-filter\n"
21503 "\n"
21504 msgstr ""
21505
21506 # type: textblock
21507 #: ../fish/guestfish-actions.pod:2391
21508 msgid ""
21509 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21510 "block device."
21511 msgstr ""
21512
21513 # type: =head2
21514 #: ../fish/guestfish-actions.pod:2397
21515 msgid "lvm-remove-all"
21516 msgstr ""
21517
21518 # type: verbatim
21519 #: ../fish/guestfish-actions.pod:2399
21520 #, no-wrap
21521 msgid ""
21522 " lvm-remove-all\n"
21523 "\n"
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:2407
21528 msgid "lvm-set-filter"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:2409
21533 #, no-wrap
21534 msgid ""
21535 " lvm-set-filter 'devices ...'\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:2434
21541 msgid "lvremove"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:2436
21546 #, no-wrap
21547 msgid ""
21548 " lvremove device\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: =head2
21553 #: ../fish/guestfish-actions.pod:2444
21554 msgid "lvrename"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #: ../fish/guestfish-actions.pod:2446
21559 #, no-wrap
21560 msgid ""
21561 " lvrename logvol newlogvol\n"
21562 "\n"
21563 msgstr ""
21564
21565 # type: =head2
21566 #: ../fish/guestfish-actions.pod:2450
21567 msgid "lvresize"
21568 msgstr ""
21569
21570 # type: verbatim
21571 #: ../fish/guestfish-actions.pod:2452
21572 #, no-wrap
21573 msgid ""
21574 " lvresize device mbytes\n"
21575 "\n"
21576 msgstr ""
21577
21578 # type: =head2
21579 #: ../fish/guestfish-actions.pod:2458
21580 msgid "lvresize-free"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #: ../fish/guestfish-actions.pod:2460
21585 #, no-wrap
21586 msgid ""
21587 " lvresize-free lv percent\n"
21588 "\n"
21589 msgstr ""
21590
21591 # type: =head2
21592 #: ../fish/guestfish-actions.pod:2468
21593 msgid "lvs"
21594 msgstr ""
21595
21596 # type: verbatim
21597 #: ../fish/guestfish-actions.pod:2470
21598 #, no-wrap
21599 msgid ""
21600 " lvs\n"
21601 "\n"
21602 msgstr ""
21603
21604 # type: textblock
21605 #: ../fish/guestfish-actions.pod:2478
21606 msgid "See also L</lvs-full>, L</list-filesystems>."
21607 msgstr ""
21608
21609 # type: =head2
21610 #: ../fish/guestfish-actions.pod:2480
21611 msgid "lvs-full"
21612 msgstr ""
21613
21614 # type: verbatim
21615 #: ../fish/guestfish-actions.pod:2482
21616 #, no-wrap
21617 msgid ""
21618 " lvs-full\n"
21619 "\n"
21620 msgstr ""
21621
21622 # type: =head2
21623 #: ../fish/guestfish-actions.pod:2487
21624 msgid "lvuuid"
21625 msgstr ""
21626
21627 # type: verbatim
21628 #: ../fish/guestfish-actions.pod:2489
21629 #, no-wrap
21630 msgid ""
21631 " lvuuid device\n"
21632 "\n"
21633 msgstr ""
21634
21635 # type: =head2
21636 #: ../fish/guestfish-actions.pod:2493
21637 msgid "lxattrlist"
21638 msgstr ""
21639
21640 # type: verbatim
21641 #: ../fish/guestfish-actions.pod:2495
21642 #, no-wrap
21643 msgid ""
21644 " lxattrlist path 'names ...'\n"
21645 "\n"
21646 msgstr ""
21647
21648 # type: textblock
21649 #: ../fish/guestfish-actions.pod:2511
21650 msgid ""
21651 "This call is intended for programs that want to efficiently list a directory "
21652 "contents without making many round-trips.  See also L</lstatlist> for a "
21653 "similarly efficient call for getting standard stats.  Very long directory "
21654 "listings might cause the protocol message size to be exceeded, causing this "
21655 "call to fail.  The caller must split up such requests into smaller groups of "
21656 "names."
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:2519
21661 msgid "mkdir"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:2521
21666 #, no-wrap
21667 msgid ""
21668 " mkdir path\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: =head2
21673 #: ../fish/guestfish-actions.pod:2525
21674 msgid "mkdir-mode"
21675 msgstr ""
21676
21677 # type: verbatim
21678 #: ../fish/guestfish-actions.pod:2527
21679 #, no-wrap
21680 msgid ""
21681 " mkdir-mode path mode\n"
21682 "\n"
21683 msgstr ""
21684
21685 # type: textblock
21686 #: ../fish/guestfish-actions.pod:2536
21687 msgid "See also L</mkdir>, L</umask>"
21688 msgstr ""
21689
21690 # type: =head2
21691 #: ../fish/guestfish-actions.pod:2538
21692 msgid "mkdir-p"
21693 msgstr ""
21694
21695 # type: verbatim
21696 #: ../fish/guestfish-actions.pod:2540
21697 #, no-wrap
21698 msgid ""
21699 " mkdir-p path\n"
21700 "\n"
21701 msgstr ""
21702
21703 # type: =head2
21704 #: ../fish/guestfish-actions.pod:2545
21705 msgid "mkdtemp"
21706 msgstr ""
21707
21708 # type: verbatim
21709 #: ../fish/guestfish-actions.pod:2547
21710 #, no-wrap
21711 msgid ""
21712 " mkdtemp template\n"
21713 "\n"
21714 msgstr ""
21715
21716 # type: =head2
21717 #: ../fish/guestfish-actions.pod:2568
21718 msgid "mke2fs-J"
21719 msgstr ""
21720
21721 # type: verbatim
21722 #: ../fish/guestfish-actions.pod:2570
21723 #, no-wrap
21724 msgid ""
21725 " mke2fs-J fstype blocksize device journal\n"
21726 "\n"
21727 msgstr ""
21728
21729 # type: textblock
21730 #: ../fish/guestfish-actions.pod:2578
21731 msgid "See also L</mke2journal>."
21732 msgstr ""
21733
21734 # type: =head2
21735 #: ../fish/guestfish-actions.pod:2580
21736 msgid "mke2fs-JL"
21737 msgstr ""
21738
21739 # type: verbatim
21740 #: ../fish/guestfish-actions.pod:2582
21741 #, no-wrap
21742 msgid ""
21743 " mke2fs-JL fstype blocksize device label\n"
21744 "\n"
21745 msgstr ""
21746
21747 # type: textblock
21748 #: ../fish/guestfish-actions.pod:2587
21749 msgid "See also L</mke2journal-L>."
21750 msgstr ""
21751
21752 # type: =head2
21753 #: ../fish/guestfish-actions.pod:2589
21754 msgid "mke2fs-JU"
21755 msgstr ""
21756
21757 # type: verbatim
21758 #: ../fish/guestfish-actions.pod:2591
21759 #, no-wrap
21760 msgid ""
21761 " mke2fs-JU fstype blocksize device uuid\n"
21762 "\n"
21763 msgstr ""
21764
21765 # type: textblock
21766 #: ../fish/guestfish-actions.pod:2596
21767 msgid "See also L</mke2journal-U>."
21768 msgstr ""
21769
21770 # type: =head2
21771 #: ../fish/guestfish-actions.pod:2598
21772 msgid "mke2journal"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #: ../fish/guestfish-actions.pod:2600
21777 #, no-wrap
21778 msgid ""
21779 " mke2journal blocksize device\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: =head2
21784 #: ../fish/guestfish-actions.pod:2607
21785 msgid "mke2journal-L"
21786 msgstr ""
21787
21788 # type: verbatim
21789 #: ../fish/guestfish-actions.pod:2609
21790 #, no-wrap
21791 msgid ""
21792 " mke2journal-L blocksize label device\n"
21793 "\n"
21794 msgstr ""
21795
21796 # type: =head2
21797 #: ../fish/guestfish-actions.pod:2613
21798 msgid "mke2journal-U"
21799 msgstr ""
21800
21801 # type: verbatim
21802 #: ../fish/guestfish-actions.pod:2615
21803 #, no-wrap
21804 msgid ""
21805 " mke2journal-U blocksize uuid device\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head2
21810 #: ../fish/guestfish-actions.pod:2619
21811 msgid "mkfifo"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #: ../fish/guestfish-actions.pod:2621
21816 #, no-wrap
21817 msgid ""
21818 " mkfifo mode path\n"
21819 "\n"
21820 msgstr ""
21821
21822 # type: textblock
21823 #: ../fish/guestfish-actions.pod:2623
21824 msgid ""
21825 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21826 "is just a convenient wrapper around L</mknod>."
21827 msgstr ""
21828
21829 # type: =head2
21830 #: ../fish/guestfish-actions.pod:2629
21831 msgid "mkfs"
21832 msgstr ""
21833
21834 # type: verbatim
21835 #: ../fish/guestfish-actions.pod:2631
21836 #, no-wrap
21837 msgid ""
21838 " mkfs fstype device\n"
21839 "\n"
21840 msgstr ""
21841
21842 # type: =head2
21843 #: ../fish/guestfish-actions.pod:2637
21844 msgid "mkfs-b"
21845 msgstr ""
21846
21847 # type: verbatim
21848 #: ../fish/guestfish-actions.pod:2639
21849 #, no-wrap
21850 msgid ""
21851 " mkfs-b fstype blocksize device\n"
21852 "\n"
21853 msgstr ""
21854
21855 # type: textblock
21856 #: ../fish/guestfish-actions.pod:2641
21857 msgid ""
21858 "This call is similar to L</mkfs>, but it allows you to control the block "
21859 "size of the resulting filesystem.  Supported block sizes depend on the "
21860 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:2649
21865 msgid "mkmountpoint"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:2651
21870 #, no-wrap
21871 msgid ""
21872 " mkmountpoint exemptpath\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: textblock
21877 #: ../fish/guestfish-actions.pod:2653
21878 msgid ""
21879 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21880 "to create extra mountpoints before mounting the first filesystem."
21881 msgstr ""
21882
21883 # type: textblock
21884 #: ../fish/guestfish-actions.pod:2677
21885 msgid ""
21886 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21887 "unexpected errors if you try to mix these calls.  It is safest to manually "
21888 "unmount filesystems and remove mountpoints after use."
21889 msgstr ""
21890
21891 # type: textblock
21892 #: ../fish/guestfish-actions.pod:2681
21893 msgid ""
21894 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21895 "for this to work for manual mountpoints, you must ensure that the innermost "
21896 "mountpoints have the longest pathnames, as in the example code above."
21897 msgstr ""
21898
21899 # type: textblock
21900 #: ../fish/guestfish-actions.pod:2688
21901 msgid ""
21902 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21903 "that L</umount-all> is called when the handle is closed which can also "
21904 "trigger these issues."
21905 msgstr ""
21906
21907 # type: =head2
21908 #: ../fish/guestfish-actions.pod:2692
21909 msgid "mknod"
21910 msgstr ""
21911
21912 # type: verbatim
21913 #: ../fish/guestfish-actions.pod:2694
21914 #, no-wrap
21915 msgid ""
21916 " mknod mode devmajor devminor path\n"
21917 "\n"
21918 msgstr ""
21919
21920 # type: textblock
21921 #: ../fish/guestfish-actions.pod:2704
21922 msgid ""
21923 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21924 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21925 "regular file).  These constants are available in the standard Linux header "
21926 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21927 "wrappers around this command which bitwise OR in the appropriate constant "
21928 "for you."
21929 msgstr ""
21930
21931 # type: =head2
21932 #: ../fish/guestfish-actions.pod:2714
21933 msgid "mknod-b"
21934 msgstr ""
21935
21936 # type: verbatim
21937 #: ../fish/guestfish-actions.pod:2716
21938 #, no-wrap
21939 msgid ""
21940 " mknod-b mode devmajor devminor path\n"
21941 "\n"
21942 msgstr ""
21943
21944 # type: textblock
21945 #: ../fish/guestfish-actions.pod:2718
21946 msgid ""
21947 "This call creates a block device node called C<path> with mode C<mode> and "
21948 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21949 "wrapper around L</mknod>."
21950 msgstr ""
21951
21952 # type: =head2
21953 #: ../fish/guestfish-actions.pod:2724
21954 msgid "mknod-c"
21955 msgstr ""
21956
21957 # type: verbatim
21958 #: ../fish/guestfish-actions.pod:2726
21959 #, no-wrap
21960 msgid ""
21961 " mknod-c mode devmajor devminor path\n"
21962 "\n"
21963 msgstr ""
21964
21965 # type: textblock
21966 #: ../fish/guestfish-actions.pod:2728
21967 msgid ""
21968 "This call creates a char device node called C<path> with mode C<mode> and "
21969 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21970 "wrapper around L</mknod>."
21971 msgstr ""
21972
21973 # type: =head2
21974 #: ../fish/guestfish-actions.pod:2734
21975 msgid "mkswap"
21976 msgstr ""
21977
21978 # type: verbatim
21979 #: ../fish/guestfish-actions.pod:2736
21980 #, no-wrap
21981 msgid ""
21982 " mkswap device\n"
21983 "\n"
21984 msgstr ""
21985
21986 # type: =head2
21987 #: ../fish/guestfish-actions.pod:2740
21988 msgid "mkswap-L"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #: ../fish/guestfish-actions.pod:2742
21993 #, no-wrap
21994 msgid ""
21995 " mkswap-L label device\n"
21996 "\n"
21997 msgstr ""
21998
21999 # type: =head2
22000 #: ../fish/guestfish-actions.pod:2750
22001 msgid "mkswap-U"
22002 msgstr ""
22003
22004 # type: verbatim
22005 #: ../fish/guestfish-actions.pod:2752
22006 #, no-wrap
22007 msgid ""
22008 " mkswap-U uuid device\n"
22009 "\n"
22010 msgstr ""
22011
22012 # type: =head2
22013 #: ../fish/guestfish-actions.pod:2756
22014 msgid "mkswap-file"
22015 msgstr ""
22016
22017 # type: verbatim
22018 #: ../fish/guestfish-actions.pod:2758
22019 #, no-wrap
22020 msgid ""
22021 " mkswap-file path\n"
22022 "\n"
22023 msgstr ""
22024
22025 # type: textblock
22026 #: ../fish/guestfish-actions.pod:2762
22027 msgid ""
22028 "This command just writes a swap file signature to an existing file.  To "
22029 "create the file itself, use something like L</fallocate>."
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:2765
22034 msgid "modprobe"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:2767
22039 #, no-wrap
22040 msgid ""
22041 " modprobe modulename\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: =head2
22046 #: ../fish/guestfish-actions.pod:2774
22047 msgid "mount"
22048 msgstr ""
22049
22050 # type: verbatim
22051 #: ../fish/guestfish-actions.pod:2776
22052 #, no-wrap
22053 msgid ""
22054 " mount device mountpoint\n"
22055 "\n"
22056 msgstr ""
22057
22058 # type: textblock
22059 #: ../fish/guestfish-actions.pod:2792
22060 msgid ""
22061 "B<Important note:> When you use this call, the filesystem options C<sync> "
22062 "and C<noatime> are set implicitly.  This was originally done because we "
22063 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22064 "very large negative performance impact and negligible effect on "
22065 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22066 "code that needs performance, and instead use L</mount-options> (use an empty "
22067 "string for the first parameter if you don't want any options)."
22068 msgstr ""
22069
22070 # type: =head2
22071 #: ../fish/guestfish-actions.pod:2802
22072 msgid "mount-loop"
22073 msgstr ""
22074
22075 # type: verbatim
22076 #: ../fish/guestfish-actions.pod:2804
22077 #, no-wrap
22078 msgid ""
22079 " mount-loop file mountpoint\n"
22080 "\n"
22081 msgstr ""
22082
22083 # type: =head2
22084 #: ../fish/guestfish-actions.pod:2810
22085 msgid "mount-options"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #: ../fish/guestfish-actions.pod:2812
22090 #, no-wrap
22091 msgid ""
22092 " mount-options options device mountpoint\n"
22093 "\n"
22094 msgstr ""
22095
22096 # type: textblock
22097 #: ../fish/guestfish-actions.pod:2814
22098 msgid ""
22099 "This is the same as the L</mount> command, but it allows you to set the "
22100 "mount options as for the L<mount(8)> I<-o> flag."
22101 msgstr ""
22102
22103 # type: =head2
22104 #: ../fish/guestfish-actions.pod:2822
22105 msgid "mount-ro"
22106 msgstr ""
22107
22108 # type: verbatim
22109 #: ../fish/guestfish-actions.pod:2824
22110 #, no-wrap
22111 msgid ""
22112 " mount-ro device mountpoint\n"
22113 "\n"
22114 msgstr ""
22115
22116 # type: textblock
22117 #: ../fish/guestfish-actions.pod:2826
22118 msgid ""
22119 "This is the same as the L</mount> command, but it mounts the filesystem with "
22120 "the read-only (I<-o ro>) flag."
22121 msgstr ""
22122
22123 # type: =head2
22124 #: ../fish/guestfish-actions.pod:2829
22125 msgid "mount-vfs"
22126 msgstr ""
22127
22128 # type: verbatim
22129 #: ../fish/guestfish-actions.pod:2831
22130 #, no-wrap
22131 msgid ""
22132 " mount-vfs options vfstype device mountpoint\n"
22133 "\n"
22134 msgstr ""
22135
22136 # type: textblock
22137 #: ../fish/guestfish-actions.pod:2833
22138 msgid ""
22139 "This is the same as the L</mount> command, but it allows you to set both the "
22140 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22141 msgstr ""
22142
22143 # type: =head2
22144 #: ../fish/guestfish-actions.pod:2837
22145 msgid "mountpoints"
22146 msgstr ""
22147
22148 # type: verbatim
22149 #: ../fish/guestfish-actions.pod:2839
22150 #, no-wrap
22151 msgid ""
22152 " mountpoints\n"
22153 "\n"
22154 msgstr ""
22155
22156 # type: textblock
22157 #: ../fish/guestfish-actions.pod:2841
22158 msgid ""
22159 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22160 "This one returns a hash table (map) of device name to directory where the "
22161 "device is mounted."
22162 msgstr ""
22163
22164 # type: =head2
22165 #: ../fish/guestfish-actions.pod:2845
22166 msgid "mounts"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #: ../fish/guestfish-actions.pod:2847
22171 #, no-wrap
22172 msgid ""
22173 " mounts\n"
22174 "\n"
22175 msgstr ""
22176
22177 # type: textblock
22178 #: ../fish/guestfish-actions.pod:2854
22179 msgid "See also: L</mountpoints>"
22180 msgstr ""
22181
22182 # type: =head2
22183 #: ../fish/guestfish-actions.pod:2856
22184 msgid "mv"
22185 msgstr ""
22186
22187 # type: verbatim
22188 #: ../fish/guestfish-actions.pod:2858
22189 #, no-wrap
22190 msgid ""
22191 " mv src dest\n"
22192 "\n"
22193 msgstr ""
22194
22195 # type: =head2
22196 #: ../fish/guestfish-actions.pod:2863
22197 msgid "ntfs-3g-probe"
22198 msgstr ""
22199
22200 # type: verbatim
22201 #: ../fish/guestfish-actions.pod:2865
22202 #, no-wrap
22203 msgid ""
22204 " ntfs-3g-probe true|false device\n"
22205 "\n"
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:2879
22210 msgid "ntfsresize"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:2881
22215 #, no-wrap
22216 msgid ""
22217 " ntfsresize device\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: =head2
22222 #: ../fish/guestfish-actions.pod:2887
22223 msgid "ntfsresize-size"
22224 msgstr ""
22225
22226 # type: verbatim
22227 #: ../fish/guestfish-actions.pod:2889
22228 #, no-wrap
22229 msgid ""
22230 " ntfsresize-size device size\n"
22231 "\n"
22232 msgstr ""
22233
22234 # type: textblock
22235 #: ../fish/guestfish-actions.pod:2891
22236 msgid ""
22237 "This command is the same as L</ntfsresize> except that it allows you to "
22238 "specify the new size (in bytes) explicitly."
22239 msgstr ""
22240
22241 # type: =head2
22242 #: ../fish/guestfish-actions.pod:2894
22243 msgid "part-add"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #: ../fish/guestfish-actions.pod:2896
22248 #, no-wrap
22249 msgid ""
22250 " part-add device prlogex startsect endsect\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: textblock
22255 #: ../fish/guestfish-actions.pod:2898
22256 msgid ""
22257 "This command adds a partition to C<device>.  If there is no partition table "
22258 "on the device, call L</part-init> first."
22259 msgstr ""
22260
22261 # type: textblock
22262 #: ../fish/guestfish-actions.pod:2910
22263 msgid ""
22264 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22265 "part-disk> to do that."
22266 msgstr ""
22267
22268 # type: =head2
22269 #: ../fish/guestfish-actions.pod:2913
22270 msgid "part-del"
22271 msgstr ""
22272
22273 # type: verbatim
22274 #: ../fish/guestfish-actions.pod:2915
22275 #, no-wrap
22276 msgid ""
22277 " part-del device partnum\n"
22278 "\n"
22279 msgstr ""
22280
22281 # type: =head2
22282 #: ../fish/guestfish-actions.pod:2923
22283 msgid "part-disk"
22284 msgstr ""
22285
22286 # type: verbatim
22287 #: ../fish/guestfish-actions.pod:2925
22288 #, no-wrap
22289 msgid ""
22290 " part-disk device parttype\n"
22291 "\n"
22292 msgstr ""
22293
22294 # type: textblock
22295 #: ../fish/guestfish-actions.pod:2927
22296 msgid ""
22297 "This command is simply a combination of L</part-init> followed by L</part-"
22298 "add> to create a single primary partition covering the whole disk."
22299 msgstr ""
22300
22301 # type: textblock
22302 #: ../fish/guestfish-actions.pod:2931
22303 msgid ""
22304 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22305 "possible values are described in L</part-init>."
22306 msgstr ""
22307
22308 # type: =head2
22309 #: ../fish/guestfish-actions.pod:2937
22310 msgid "part-get-bootable"
22311 msgstr ""
22312
22313 # type: verbatim
22314 #: ../fish/guestfish-actions.pod:2939
22315 #, no-wrap
22316 msgid ""
22317 " part-get-bootable device partnum\n"
22318 "\n"
22319 msgstr ""
22320
22321 # type: textblock
22322 #: ../fish/guestfish-actions.pod:2944
22323 msgid "See also L</part-set-bootable>."
22324 msgstr ""
22325
22326 # type: =head2
22327 #: ../fish/guestfish-actions.pod:2946
22328 msgid "part-get-mbr-id"
22329 msgstr ""
22330
22331 # type: verbatim
22332 #: ../fish/guestfish-actions.pod:2948
22333 #, no-wrap
22334 msgid ""
22335 " part-get-mbr-id device partnum\n"
22336 "\n"
22337 msgstr ""
22338
22339 # type: textblock
22340 #: ../fish/guestfish-actions.pod:2953 ../fish/guestfish-actions.pod:3091
22341 msgid ""
22342 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22343 "undefined results for other partition table types (see L</part-get-"
22344 "parttype>)."
22345 msgstr ""
22346
22347 # type: =head2
22348 #: ../fish/guestfish-actions.pod:2957
22349 msgid "part-get-parttype"
22350 msgstr ""
22351
22352 # type: verbatim
22353 #: ../fish/guestfish-actions.pod:2959
22354 #, no-wrap
22355 msgid ""
22356 " part-get-parttype device\n"
22357 "\n"
22358 msgstr ""
22359
22360 # type: textblock
22361 #: ../fish/guestfish-actions.pod:2964
22362 msgid ""
22363 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22364 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22365 "possible, although unusual.  See L</part-init> for a full list."
22366 msgstr ""
22367
22368 # type: =head2
22369 #: ../fish/guestfish-actions.pod:2969
22370 msgid "part-init"
22371 msgstr ""
22372
22373 # type: verbatim
22374 #: ../fish/guestfish-actions.pod:2971
22375 #, no-wrap
22376 msgid ""
22377 " part-init device parttype\n"
22378 "\n"
22379 msgstr ""
22380
22381 # type: textblock
22382 #: ../fish/guestfish-actions.pod:2977
22383 msgid ""
22384 "Initially there are no partitions.  Following this, you should call L</part-"
22385 "add> for each partition required."
22386 msgstr ""
22387
22388 # type: =head2
22389 #: ../fish/guestfish-actions.pod:3040
22390 msgid "part-list"
22391 msgstr ""
22392
22393 # type: verbatim
22394 #: ../fish/guestfish-actions.pod:3042
22395 #, no-wrap
22396 msgid ""
22397 " part-list device\n"
22398 "\n"
22399 msgstr ""
22400
22401 # type: textblock
22402 #: ../fish/guestfish-actions.pod:3057
22403 msgid ""
22404 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22405 "the device's sector size, see L</blockdev-getss>."
22406 msgstr ""
22407
22408 # type: =head2
22409 #: ../fish/guestfish-actions.pod:3070
22410 msgid "part-set-bootable"
22411 msgstr ""
22412
22413 # type: verbatim
22414 #: ../fish/guestfish-actions.pod:3072
22415 #, no-wrap
22416 msgid ""
22417 " part-set-bootable device partnum true|false\n"
22418 "\n"
22419 msgstr ""
22420
22421 # type: =head2
22422 #: ../fish/guestfish-actions.pod:3081
22423 msgid "part-set-mbr-id"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #: ../fish/guestfish-actions.pod:3083
22428 #, no-wrap
22429 msgid ""
22430 " part-set-mbr-id device partnum idbyte\n"
22431 "\n"
22432 msgstr ""
22433
22434 # type: =head2
22435 #: ../fish/guestfish-actions.pod:3095
22436 msgid "part-set-name"
22437 msgstr ""
22438
22439 # type: verbatim
22440 #: ../fish/guestfish-actions.pod:3097
22441 #, no-wrap
22442 msgid ""
22443 " part-set-name device partnum name\n"
22444 "\n"
22445 msgstr ""
22446
22447 # type: =head2
22448 #: ../fish/guestfish-actions.pod:3105
22449 msgid "part-to-dev"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #: ../fish/guestfish-actions.pod:3107
22454 #, no-wrap
22455 msgid ""
22456 " part-to-dev partition\n"
22457 "\n"
22458 msgstr ""
22459
22460 # type: textblock
22461 #: ../fish/guestfish-actions.pod:3113
22462 msgid ""
22463 "The named partition must exist, for example as a string returned from L</"
22464 "list-partitions>."
22465 msgstr ""
22466
22467 # type: =head2
22468 #: ../fish/guestfish-actions.pod:3116
22469 msgid "ping-daemon"
22470 msgstr ""
22471
22472 # type: verbatim
22473 #: ../fish/guestfish-actions.pod:3118
22474 #, no-wrap
22475 msgid ""
22476 " ping-daemon\n"
22477 "\n"
22478 msgstr ""
22479
22480 # type: =head2
22481 #: ../fish/guestfish-actions.pod:3125
22482 msgid "pread"
22483 msgstr ""
22484
22485 # type: verbatim
22486 #: ../fish/guestfish-actions.pod:3127
22487 #, no-wrap
22488 msgid ""
22489 " pread path count offset\n"
22490 "\n"
22491 msgstr ""
22492
22493 # type: textblock
22494 #: ../fish/guestfish-actions.pod:3135
22495 msgid "See also L</pwrite>, L</pread-device>."
22496 msgstr ""
22497
22498 # type: =head2
22499 #: ../fish/guestfish-actions.pod:3140
22500 msgid "pread-device"
22501 msgstr ""
22502
22503 # type: verbatim
22504 #: ../fish/guestfish-actions.pod:3142
22505 #, no-wrap
22506 msgid ""
22507 " pread-device device count offset\n"
22508 "\n"
22509 msgstr ""
22510
22511 # type: textblock
22512 #: ../fish/guestfish-actions.pod:3150
22513 msgid "See also L</pread>."
22514 msgstr ""
22515
22516 # type: =head2
22517 #: ../fish/guestfish-actions.pod:3155
22518 msgid "pvcreate"
22519 msgstr ""
22520
22521 # type: verbatim
22522 #: ../fish/guestfish-actions.pod:3157
22523 #, no-wrap
22524 msgid ""
22525 " pvcreate device\n"
22526 "\n"
22527 msgstr ""
22528
22529 # type: =head2
22530 #: ../fish/guestfish-actions.pod:3163
22531 msgid "pvremove"
22532 msgstr ""
22533
22534 # type: verbatim
22535 #: ../fish/guestfish-actions.pod:3165
22536 #, no-wrap
22537 msgid ""
22538 " pvremove device\n"
22539 "\n"
22540 msgstr ""
22541
22542 # type: =head2
22543 #: ../fish/guestfish-actions.pod:3174
22544 msgid "pvresize"
22545 msgstr ""
22546
22547 # type: verbatim
22548 #: ../fish/guestfish-actions.pod:3176
22549 #, no-wrap
22550 msgid ""
22551 " pvresize device\n"
22552 "\n"
22553 msgstr ""
22554
22555 # type: =head2
22556 #: ../fish/guestfish-actions.pod:3181
22557 msgid "pvresize-size"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #: ../fish/guestfish-actions.pod:3183
22562 #, no-wrap
22563 msgid ""
22564 " pvresize-size device size\n"
22565 "\n"
22566 msgstr ""
22567
22568 # type: textblock
22569 #: ../fish/guestfish-actions.pod:3185
22570 msgid ""
22571 "This command is the same as L</pvresize> except that it allows you to "
22572 "specify the new size (in bytes) explicitly."
22573 msgstr ""
22574
22575 # type: =head2
22576 #: ../fish/guestfish-actions.pod:3188
22577 msgid "pvs"
22578 msgstr ""
22579
22580 # type: verbatim
22581 #: ../fish/guestfish-actions.pod:3190
22582 #, no-wrap
22583 msgid ""
22584 " pvs\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: textblock
22589 #: ../fish/guestfish-actions.pod:3198
22590 msgid "See also L</pvs-full>."
22591 msgstr ""
22592
22593 # type: =head2
22594 #: ../fish/guestfish-actions.pod:3200
22595 msgid "pvs-full"
22596 msgstr ""
22597
22598 # type: verbatim
22599 #: ../fish/guestfish-actions.pod:3202
22600 #, no-wrap
22601 msgid ""
22602 " pvs-full\n"
22603 "\n"
22604 msgstr ""
22605
22606 # type: =head2
22607 #: ../fish/guestfish-actions.pod:3207
22608 msgid "pvuuid"
22609 msgstr ""
22610
22611 # type: verbatim
22612 #: ../fish/guestfish-actions.pod:3209
22613 #, no-wrap
22614 msgid ""
22615 " pvuuid device\n"
22616 "\n"
22617 msgstr ""
22618
22619 # type: =head2
22620 #: ../fish/guestfish-actions.pod:3213
22621 msgid "pwrite"
22622 msgstr ""
22623
22624 # type: verbatim
22625 #: ../fish/guestfish-actions.pod:3215
22626 #, no-wrap
22627 msgid ""
22628 " pwrite path content offset\n"
22629 "\n"
22630 msgstr ""
22631
22632 # type: textblock
22633 #: ../fish/guestfish-actions.pod:3226
22634 msgid "See also L</pread>, L</pwrite-device>."
22635 msgstr ""
22636
22637 # type: =head2
22638 #: ../fish/guestfish-actions.pod:3231
22639 msgid "pwrite-device"
22640 msgstr ""
22641
22642 # type: verbatim
22643 #: ../fish/guestfish-actions.pod:3233
22644 #, no-wrap
22645 msgid ""
22646 " pwrite-device device content offset\n"
22647 "\n"
22648 msgstr ""
22649
22650 # type: textblock
22651 #: ../fish/guestfish-actions.pod:3243
22652 msgid "See also L</pwrite>."
22653 msgstr ""
22654
22655 # type: =head2
22656 #: ../fish/guestfish-actions.pod:3248
22657 msgid "read-file"
22658 msgstr ""
22659
22660 # type: verbatim
22661 #: ../fish/guestfish-actions.pod:3250
22662 #, no-wrap
22663 msgid ""
22664 " read-file path\n"
22665 "\n"
22666 msgstr ""
22667
22668 # type: textblock
22669 #: ../fish/guestfish-actions.pod:3255
22670 msgid ""
22671 "Unlike L</cat>, this function can correctly handle files that contain "
22672 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22673 "is limited in the total size of file that can be handled."
22674 msgstr ""
22675
22676 # type: =head2
22677 #: ../fish/guestfish-actions.pod:3263
22678 msgid "read-lines"
22679 msgstr ""
22680
22681 # type: verbatim
22682 #: ../fish/guestfish-actions.pod:3265
22683 #, no-wrap
22684 msgid ""
22685 " read-lines path\n"
22686 "\n"
22687 msgstr ""
22688
22689 # type: textblock
22690 #: ../fish/guestfish-actions.pod:3272
22691 msgid ""
22692 "Note that this function cannot correctly handle binary files (specifically, "
22693 "files containing C<\\0> character which is treated as end of line).  For "
22694 "those you need to use the L</read-file> function which has a more complex "
22695 "interface."
22696 msgstr ""
22697
22698 # type: =head2
22699 #: ../fish/guestfish-actions.pod:3277
22700 msgid "readdir"
22701 msgstr ""
22702
22703 # type: verbatim
22704 #: ../fish/guestfish-actions.pod:3279
22705 #, no-wrap
22706 msgid ""
22707 " readdir dir\n"
22708 "\n"
22709 msgstr ""
22710
22711 # type: textblock
22712 #: ../fish/guestfish-actions.pod:3331
22713 msgid ""
22714 "This function is primarily intended for use by programs.  To get a simple "
22715 "list of names, use L</ls>.  To get a printable directory for human "
22716 "consumption, use L</ll>."
22717 msgstr ""
22718
22719 # type: =head2
22720 #: ../fish/guestfish-actions.pod:3335
22721 msgid "readlink"
22722 msgstr ""
22723
22724 # type: verbatim
22725 #: ../fish/guestfish-actions.pod:3337
22726 #, no-wrap
22727 msgid ""
22728 " readlink path\n"
22729 "\n"
22730 msgstr ""
22731
22732 # type: =head2
22733 #: ../fish/guestfish-actions.pod:3341
22734 msgid "readlinklist"
22735 msgstr ""
22736
22737 # type: verbatim
22738 #: ../fish/guestfish-actions.pod:3343
22739 #, no-wrap
22740 msgid ""
22741 " readlinklist path 'names ...'\n"
22742 "\n"
22743 msgstr ""
22744
22745 # type: =head2
22746 #: ../fish/guestfish-actions.pod:3367
22747 msgid "realpath"
22748 msgstr ""
22749
22750 # type: verbatim
22751 #: ../fish/guestfish-actions.pod:3369
22752 #, no-wrap
22753 msgid ""
22754 " realpath path\n"
22755 "\n"
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:3374
22760 msgid "removexattr"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:3376
22765 #, no-wrap
22766 msgid ""
22767 " removexattr xattr path\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: textblock
22772 #: ../fish/guestfish-actions.pod:3381
22773 msgid "See also: L</lremovexattr>, L<attr(5)>."
22774 msgstr ""
22775
22776 # type: =head2
22777 #: ../fish/guestfish-actions.pod:3383
22778 msgid "resize2fs"
22779 msgstr ""
22780
22781 # type: verbatim
22782 #: ../fish/guestfish-actions.pod:3385
22783 #, no-wrap
22784 msgid ""
22785 " resize2fs device\n"
22786 "\n"
22787 msgstr ""
22788
22789 # type: textblock
22790 #: ../fish/guestfish-actions.pod:3390
22791 msgid ""
22792 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22793 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22794 "gives an error about this and sometimes not.  In any case, it is always safe "
22795 "to call L</e2fsck-f> before calling this function."
22796 msgstr ""
22797
22798 # type: =head2
22799 #: ../fish/guestfish-actions.pod:3396
22800 msgid "resize2fs-size"
22801 msgstr ""
22802
22803 # type: verbatim
22804 #: ../fish/guestfish-actions.pod:3398
22805 #, no-wrap
22806 msgid ""
22807 " resize2fs-size device size\n"
22808 "\n"
22809 msgstr ""
22810
22811 # type: textblock
22812 #: ../fish/guestfish-actions.pod:3400
22813 msgid ""
22814 "This command is the same as L</resize2fs> except that it allows you to "
22815 "specify the new size (in bytes) explicitly."
22816 msgstr ""
22817
22818 # type: =head2
22819 #: ../fish/guestfish-actions.pod:3403
22820 msgid "rm"
22821 msgstr ""
22822
22823 # type: verbatim
22824 #: ../fish/guestfish-actions.pod:3405
22825 #, no-wrap
22826 msgid ""
22827 " rm path\n"
22828 "\n"
22829 msgstr ""
22830
22831 # type: =head2
22832 #: ../fish/guestfish-actions.pod:3409
22833 msgid "rm-rf"
22834 msgstr ""
22835
22836 # type: verbatim
22837 #: ../fish/guestfish-actions.pod:3411
22838 #, no-wrap
22839 msgid ""
22840 " rm-rf path\n"
22841 "\n"
22842 msgstr ""
22843
22844 # type: =head2
22845 #: ../fish/guestfish-actions.pod:3417
22846 msgid "rmdir"
22847 msgstr ""
22848
22849 # type: verbatim
22850 #: ../fish/guestfish-actions.pod:3419
22851 #, no-wrap
22852 msgid ""
22853 " rmdir path\n"
22854 "\n"
22855 msgstr ""
22856
22857 # type: =head2
22858 #: ../fish/guestfish-actions.pod:3423
22859 msgid "rmmountpoint"
22860 msgstr ""
22861
22862 # type: verbatim
22863 #: ../fish/guestfish-actions.pod:3425
22864 #, no-wrap
22865 msgid ""
22866 " rmmountpoint exemptpath\n"
22867 "\n"
22868 msgstr ""
22869
22870 # type: textblock
22871 #: ../fish/guestfish-actions.pod:3427
22872 msgid ""
22873 "This calls removes a mountpoint that was previously created with L</"
22874 "mkmountpoint>.  See L</mkmountpoint> for full details."
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:3431
22879 msgid "scrub-device"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:3433
22884 #, no-wrap
22885 msgid ""
22886 " scrub-device device\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-actions.pod:3444
22892 msgid "scrub-file"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-actions.pod:3446
22897 #, no-wrap
22898 msgid ""
22899 " scrub-file file\n"
22900 "\n"
22901 msgstr ""
22902
22903 # type: =head2
22904 #: ../fish/guestfish-actions.pod:3456
22905 msgid "scrub-freespace"
22906 msgstr ""
22907
22908 # type: verbatim
22909 #: ../fish/guestfish-actions.pod:3458
22910 #, no-wrap
22911 msgid ""
22912 " scrub-freespace dir\n"
22913 "\n"
22914 msgstr ""
22915
22916 # type: textblock
22917 #: ../fish/guestfish-actions.pod:3460
22918 msgid ""
22919 "This command creates the directory C<dir> and then fills it with files until "
22920 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22921 "deletes them.  The intention is to scrub any free space on the partition "
22922 "containing C<dir>."
22923 msgstr ""
22924
22925 # type: =head2
22926 #: ../fish/guestfish-actions.pod:3469
22927 msgid "set-append"
22928 msgstr ""
22929
22930 # type: =head2
22931 #: ../fish/guestfish-actions.pod:3471
22932 msgid "append"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #: ../fish/guestfish-actions.pod:3473
22937 #, no-wrap
22938 msgid ""
22939 " set-append append\n"
22940 "\n"
22941 msgstr ""
22942
22943 # type: =head2
22944 #: ../fish/guestfish-actions.pod:3484
22945 msgid "set-autosync"
22946 msgstr ""
22947
22948 # type: =head2
22949 #: ../fish/guestfish-actions.pod:3486
22950 msgid "autosync"
22951 msgstr ""
22952
22953 # type: verbatim
22954 #: ../fish/guestfish-actions.pod:3488
22955 #, no-wrap
22956 msgid ""
22957 " set-autosync true|false\n"
22958 "\n"
22959 msgstr ""
22960
22961 # type: textblock
22962 #: ../fish/guestfish-actions.pod:3490
22963 msgid ""
22964 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22965 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22966 "closed (also if the program exits without closing handles)."
22967 msgstr ""
22968
22969 # type: =head2
22970 #: ../fish/guestfish-actions.pod:3498
22971 msgid "set-direct"
22972 msgstr ""
22973
22974 # type: =head2
22975 #: ../fish/guestfish-actions.pod:3500
22976 msgid "direct"
22977 msgstr ""
22978
22979 # type: verbatim
22980 #: ../fish/guestfish-actions.pod:3502
22981 #, no-wrap
22982 msgid ""
22983 " set-direct true|false\n"
22984 "\n"
22985 msgstr ""
22986
22987 # type: textblock
22988 #: ../fish/guestfish-actions.pod:3508
22989 msgid ""
22990 "One consequence of this is that log messages aren't caught by the library "
22991 "and handled by L</set-log-message-callback>, but go straight to stdout."
22992 msgstr ""
22993
22994 # type: =head2
22995 #: ../fish/guestfish-actions.pod:3517
22996 msgid "set-e2label"
22997 msgstr ""
22998
22999 # type: verbatim
23000 #: ../fish/guestfish-actions.pod:3519
23001 #, no-wrap
23002 msgid ""
23003 " set-e2label device label\n"
23004 "\n"
23005 msgstr ""
23006
23007 # type: textblock
23008 #: ../fish/guestfish-actions.pod:3525
23009 msgid ""
23010 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23011 "label on a filesystem."
23012 msgstr ""
23013
23014 # type: =head2
23015 #: ../fish/guestfish-actions.pod:3528
23016 msgid "set-e2uuid"
23017 msgstr ""
23018
23019 # type: verbatim
23020 #: ../fish/guestfish-actions.pod:3530
23021 #, no-wrap
23022 msgid ""
23023 " set-e2uuid device uuid\n"
23024 "\n"
23025 msgstr ""
23026
23027 # type: textblock
23028 #: ../fish/guestfish-actions.pod:3537
23029 msgid ""
23030 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23031 "UUID of a filesystem."
23032 msgstr ""
23033
23034 # type: =head2
23035 #: ../fish/guestfish-actions.pod:3540
23036 msgid "set-memsize"
23037 msgstr ""
23038
23039 # type: =head2
23040 #: ../fish/guestfish-actions.pod:3542
23041 msgid "memsize"
23042 msgstr ""
23043
23044 # type: verbatim
23045 #: ../fish/guestfish-actions.pod:3544
23046 #, no-wrap
23047 msgid ""
23048 " set-memsize memsize\n"
23049 "\n"
23050 msgstr ""
23051
23052 # type: textblock
23053 #: ../fish/guestfish-actions.pod:3546
23054 msgid ""
23055 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23056 "This only has any effect if called before L</launch>."
23057 msgstr ""
23058
23059 # type: =head2
23060 #: ../fish/guestfish-actions.pod:3557
23061 msgid "set-network"
23062 msgstr ""
23063
23064 # type: =head2
23065 #: ../fish/guestfish-actions.pod:3559
23066 msgid "network"
23067 msgstr ""
23068
23069 # type: verbatim
23070 #: ../fish/guestfish-actions.pod:3561
23071 #, no-wrap
23072 msgid ""
23073 " set-network true|false\n"
23074 "\n"
23075 msgstr ""
23076
23077 # type: textblock
23078 #: ../fish/guestfish-actions.pod:3569
23079 msgid ""
23080 "You must call this before calling L</launch>, otherwise it has no effect."
23081 msgstr ""
23082
23083 # type: =head2
23084 #: ../fish/guestfish-actions.pod:3572
23085 msgid "set-path"
23086 msgstr ""
23087
23088 # type: =head2
23089 #: ../fish/guestfish-actions.pod:3574
23090 msgid "path"
23091 msgstr ""
23092
23093 # type: verbatim
23094 #: ../fish/guestfish-actions.pod:3576
23095 #, no-wrap
23096 msgid ""
23097 " set-path searchpath\n"
23098 "\n"
23099 msgstr ""
23100
23101 # type: =head2
23102 #: ../fish/guestfish-actions.pod:3585
23103 msgid "set-qemu"
23104 msgstr ""
23105
23106 # type: =head2
23107 #: ../fish/guestfish-actions.pod:3587
23108 msgid "qemu"
23109 msgstr ""
23110
23111 # type: verbatim
23112 #: ../fish/guestfish-actions.pod:3589
23113 #, no-wrap
23114 msgid ""
23115 " set-qemu qemu\n"
23116 "\n"
23117 msgstr ""
23118
23119 # type: =head2
23120 #: ../fish/guestfish-actions.pod:3609
23121 msgid "set-recovery-proc"
23122 msgstr ""
23123
23124 # type: =head2
23125 #: ../fish/guestfish-actions.pod:3611
23126 msgid "recovery-proc"
23127 msgstr ""
23128
23129 # type: verbatim
23130 #: ../fish/guestfish-actions.pod:3613
23131 #, no-wrap
23132 msgid ""
23133 " set-recovery-proc true|false\n"
23134 "\n"
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../fish/guestfish-actions.pod:3615
23139 msgid ""
23140 "If this is called with the parameter C<false> then L</launch> does not "
23141 "create a recovery process.  The purpose of the recovery process is to stop "
23142 "runaway qemu processes in the case where the main program aborts abruptly."
23143 msgstr ""
23144
23145 # type: textblock
23146 #: ../fish/guestfish-actions.pod:3620
23147 msgid ""
23148 "This only has any effect if called before L</launch>, and the default is "
23149 "true."
23150 msgstr ""
23151
23152 # type: =head2
23153 #: ../fish/guestfish-actions.pod:3629
23154 msgid "set-selinux"
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-actions.pod:3631
23159 msgid "selinux"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-actions.pod:3633
23164 #, no-wrap
23165 msgid ""
23166 " set-selinux true|false\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: =head2
23171 #: ../fish/guestfish-actions.pod:3644
23172 msgid "set-trace"
23173 msgstr ""
23174
23175 # type: =head2
23176 #: ../fish/guestfish-actions.pod:3646
23177 msgid "trace"
23178 msgstr ""
23179
23180 # type: verbatim
23181 #: ../fish/guestfish-actions.pod:3648
23182 #, no-wrap
23183 msgid ""
23184 " set-trace true|false\n"
23185 "\n"
23186 msgstr ""
23187
23188 # type: =head2
23189 #: ../fish/guestfish-actions.pod:3664
23190 msgid "set-verbose"
23191 msgstr ""
23192
23193 # type: =head2
23194 #: ../fish/guestfish-actions.pod:3666
23195 msgid "verbose"
23196 msgstr ""
23197
23198 # type: verbatim
23199 #: ../fish/guestfish-actions.pod:3668
23200 #, no-wrap
23201 msgid ""
23202 " set-verbose true|false\n"
23203 "\n"
23204 msgstr ""
23205
23206 # type: =head2
23207 #: ../fish/guestfish-actions.pod:3675
23208 msgid "setcon"
23209 msgstr ""
23210
23211 # type: verbatim
23212 #: ../fish/guestfish-actions.pod:3677
23213 #, no-wrap
23214 msgid ""
23215 " setcon context\n"
23216 "\n"
23217 msgstr ""
23218
23219 # type: =head2
23220 #: ../fish/guestfish-actions.pod:3684
23221 msgid "setxattr"
23222 msgstr ""
23223
23224 # type: verbatim
23225 #: ../fish/guestfish-actions.pod:3686
23226 #, no-wrap
23227 msgid ""
23228 " setxattr xattr val vallen path\n"
23229 "\n"
23230 msgstr ""
23231
23232 # type: textblock
23233 #: ../fish/guestfish-actions.pod:3692
23234 msgid "See also: L</lsetxattr>, L<attr(5)>."
23235 msgstr ""
23236
23237 # type: =head2
23238 #: ../fish/guestfish-actions.pod:3694
23239 msgid "sfdisk"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #: ../fish/guestfish-actions.pod:3696
23244 #, no-wrap
23245 msgid ""
23246 " sfdisk device cyls heads sectors 'lines ...'\n"
23247 "\n"
23248 msgstr ""
23249
23250 # type: textblock
23251 #: ../fish/guestfish-actions.pod:3718
23252 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23253 msgstr ""
23254
23255 # type: =head2
23256 #: ../fish/guestfish-actions.pod:3724
23257 msgid "sfdiskM"
23258 msgstr ""
23259
23260 # type: verbatim
23261 #: ../fish/guestfish-actions.pod:3726
23262 #, no-wrap
23263 msgid ""
23264 " sfdiskM device 'lines ...'\n"
23265 "\n"
23266 msgstr ""
23267
23268 # type: textblock
23269 #: ../fish/guestfish-actions.pod:3728
23270 msgid ""
23271 "This is a simplified interface to the L</sfdisk> command, where partition "
23272 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23273 "you don't need to specify the cyls, heads and sectors parameters which were "
23274 "rarely if ever used anyway."
23275 msgstr ""
23276
23277 # type: textblock
23278 #: ../fish/guestfish-actions.pod:3734
23279 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23280 msgstr ""
23281
23282 # type: =head2
23283 #: ../fish/guestfish-actions.pod:3740
23284 msgid "sfdisk-N"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #: ../fish/guestfish-actions.pod:3742
23289 #, no-wrap
23290 msgid ""
23291 " sfdisk-N device partnum cyls heads sectors line\n"
23292 "\n"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../fish/guestfish-actions.pod:3747
23297 msgid ""
23298 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23299 "cyls/heads/sectors parameters."
23300 msgstr ""
23301
23302 # type: textblock
23303 #: ../fish/guestfish-actions.pod:3750
23304 msgid "See also: L</part-add>"
23305 msgstr ""
23306
23307 # type: =head2
23308 #: ../fish/guestfish-actions.pod:3755
23309 msgid "sfdisk-disk-geometry"
23310 msgstr ""
23311
23312 # type: verbatim
23313 #: ../fish/guestfish-actions.pod:3757
23314 #, no-wrap
23315 msgid ""
23316 " sfdisk-disk-geometry device\n"
23317 "\n"
23318 msgstr ""
23319
23320 # type: textblock
23321 #: ../fish/guestfish-actions.pod:3759
23322 msgid ""
23323 "This displays the disk geometry of C<device> read from the partition table.  "
23324 "Especially in the case where the underlying block device has been resized, "
23325 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23326 "kernel-geometry>)."
23327 msgstr ""
23328
23329 # type: =head2
23330 #: ../fish/guestfish-actions.pod:3767
23331 msgid "sfdisk-kernel-geometry"
23332 msgstr ""
23333
23334 # type: verbatim
23335 #: ../fish/guestfish-actions.pod:3769
23336 #, no-wrap
23337 msgid ""
23338 " sfdisk-kernel-geometry device\n"
23339 "\n"
23340 msgstr ""
23341
23342 # type: =head2
23343 #: ../fish/guestfish-actions.pod:3776
23344 msgid "sfdisk-l"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-actions.pod:3778
23349 #, no-wrap
23350 msgid ""
23351 " sfdisk-l device\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: textblock
23356 #: ../fish/guestfish-actions.pod:3784
23357 msgid "See also: L</part-list>"
23358 msgstr ""
23359
23360 # type: =head2
23361 #: ../fish/guestfish-actions.pod:3786
23362 msgid "sh"
23363 msgstr ""
23364
23365 # type: verbatim
23366 #: ../fish/guestfish-actions.pod:3788
23367 #, no-wrap
23368 msgid ""
23369 " sh command\n"
23370 "\n"
23371 msgstr ""
23372
23373 # type: textblock
23374 #: ../fish/guestfish-actions.pod:3793
23375 msgid "This is like L</command>, but passes the command to:"
23376 msgstr ""
23377
23378 # type: textblock
23379 #: ../fish/guestfish-actions.pod:3801
23380 msgid "All the provisos about L</command> apply to this call."
23381 msgstr ""
23382
23383 # type: =head2
23384 #: ../fish/guestfish-actions.pod:3803
23385 msgid "sh-lines"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #: ../fish/guestfish-actions.pod:3805
23390 #, no-wrap
23391 msgid ""
23392 " sh-lines command\n"
23393 "\n"
23394 msgstr ""
23395
23396 # type: textblock
23397 #: ../fish/guestfish-actions.pod:3807
23398 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../fish/guestfish-actions.pod:3810
23403 msgid "See also: L</command-lines>"
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:3812
23408 msgid "sleep"
23409 msgstr ""
23410
23411 # type: verbatim
23412 #: ../fish/guestfish-actions.pod:3814
23413 #, no-wrap
23414 msgid ""
23415 " sleep secs\n"
23416 "\n"
23417 msgstr ""
23418
23419 # type: =head2
23420 #: ../fish/guestfish-actions.pod:3818
23421 msgid "stat"
23422 msgstr ""
23423
23424 # type: verbatim
23425 #: ../fish/guestfish-actions.pod:3820
23426 #, no-wrap
23427 msgid ""
23428 " stat path\n"
23429 "\n"
23430 msgstr ""
23431
23432 # type: =head2
23433 #: ../fish/guestfish-actions.pod:3826
23434 msgid "statvfs"
23435 msgstr ""
23436
23437 # type: verbatim
23438 #: ../fish/guestfish-actions.pod:3828
23439 #, no-wrap
23440 msgid ""
23441 " statvfs path\n"
23442 "\n"
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:3836
23447 msgid "strings"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:3838
23452 #, no-wrap
23453 msgid ""
23454 " strings path\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: =head2
23459 #: ../fish/guestfish-actions.pod:3846
23460 msgid "strings-e"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #: ../fish/guestfish-actions.pod:3848
23465 #, no-wrap
23466 msgid ""
23467 " strings-e encoding path\n"
23468 "\n"
23469 msgstr ""
23470
23471 # type: textblock
23472 #: ../fish/guestfish-actions.pod:3850
23473 msgid ""
23474 "This is like the L</strings> command, but allows you to specify the encoding "
23475 "of strings that are looked for in the source file C<path>."
23476 msgstr ""
23477
23478 # type: textblock
23479 #: ../fish/guestfish-actions.pod:3860
23480 msgid ""
23481 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23482 "ISO-8859-X (this is what L</strings> uses)."
23483 msgstr ""
23484
23485 # type: =head2
23486 #: ../fish/guestfish-actions.pod:3892
23487 msgid "swapoff-device"
23488 msgstr ""
23489
23490 # type: verbatim
23491 #: ../fish/guestfish-actions.pod:3894
23492 #, no-wrap
23493 msgid ""
23494 " swapoff-device device\n"
23495 "\n"
23496 msgstr ""
23497
23498 # type: textblock
23499 #: ../fish/guestfish-actions.pod:3896
23500 msgid ""
23501 "This command disables the libguestfs appliance swap device or partition "
23502 "named C<device>.  See L</swapon-device>."
23503 msgstr ""
23504
23505 # type: =head2
23506 #: ../fish/guestfish-actions.pod:3900
23507 msgid "swapoff-file"
23508 msgstr ""
23509
23510 # type: verbatim
23511 #: ../fish/guestfish-actions.pod:3902
23512 #, no-wrap
23513 msgid ""
23514 " swapoff-file file\n"
23515 "\n"
23516 msgstr ""
23517
23518 # type: =head2
23519 #: ../fish/guestfish-actions.pod:3906
23520 msgid "swapoff-label"
23521 msgstr ""
23522
23523 # type: verbatim
23524 #: ../fish/guestfish-actions.pod:3908
23525 #, no-wrap
23526 msgid ""
23527 " swapoff-label label\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: =head2
23532 #: ../fish/guestfish-actions.pod:3913
23533 msgid "swapoff-uuid"
23534 msgstr ""
23535
23536 # type: verbatim
23537 #: ../fish/guestfish-actions.pod:3915
23538 #, no-wrap
23539 msgid ""
23540 " swapoff-uuid uuid\n"
23541 "\n"
23542 msgstr ""
23543
23544 # type: =head2
23545 #: ../fish/guestfish-actions.pod:3920
23546 msgid "swapon-device"
23547 msgstr ""
23548
23549 # type: verbatim
23550 #: ../fish/guestfish-actions.pod:3922
23551 #, no-wrap
23552 msgid ""
23553 " swapon-device device\n"
23554 "\n"
23555 msgstr ""
23556
23557 # type: textblock
23558 #: ../fish/guestfish-actions.pod:3924
23559 msgid ""
23560 "This command enables the libguestfs appliance to use the swap device or "
23561 "partition named C<device>.  The increased memory is made available for all "
23562 "commands, for example those run using L</command> or L</sh>."
23563 msgstr ""
23564
23565 # type: =head2
23566 #: ../fish/guestfish-actions.pod:3936
23567 msgid "swapon-file"
23568 msgstr ""
23569
23570 # type: verbatim
23571 #: ../fish/guestfish-actions.pod:3938
23572 #, no-wrap
23573 msgid ""
23574 " swapon-file file\n"
23575 "\n"
23576 msgstr ""
23577
23578 # type: textblock
23579 #: ../fish/guestfish-actions.pod:3940
23580 msgid ""
23581 "This command enables swap to a file.  See L</swapon-device> for other notes."
23582 msgstr ""
23583
23584 # type: =head2
23585 #: ../fish/guestfish-actions.pod:3943
23586 msgid "swapon-label"
23587 msgstr ""
23588
23589 # type: verbatim
23590 #: ../fish/guestfish-actions.pod:3945
23591 #, no-wrap
23592 msgid ""
23593 " swapon-label label\n"
23594 "\n"
23595 msgstr ""
23596
23597 # type: textblock
23598 #: ../fish/guestfish-actions.pod:3947
23599 msgid ""
23600 "This command enables swap to a labeled swap partition.  See L</swapon-"
23601 "device> for other notes."
23602 msgstr ""
23603
23604 # type: =head2
23605 #: ../fish/guestfish-actions.pod:3950
23606 msgid "swapon-uuid"
23607 msgstr ""
23608
23609 # type: verbatim
23610 #: ../fish/guestfish-actions.pod:3952
23611 #, no-wrap
23612 msgid ""
23613 " swapon-uuid uuid\n"
23614 "\n"
23615 msgstr ""
23616
23617 # type: textblock
23618 #: ../fish/guestfish-actions.pod:3954
23619 msgid ""
23620 "This command enables swap to a swap partition with the given UUID.  See L</"
23621 "swapon-device> for other notes."
23622 msgstr ""
23623
23624 # type: =head2
23625 #: ../fish/guestfish-actions.pod:3957
23626 msgid "sync"
23627 msgstr ""
23628
23629 # type: verbatim
23630 #: ../fish/guestfish-actions.pod:3959
23631 #, no-wrap
23632 msgid ""
23633 " sync\n"
23634 "\n"
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:3967
23639 msgid "tail"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #: ../fish/guestfish-actions.pod:3969
23644 #, no-wrap
23645 msgid ""
23646 " tail path\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: =head2
23651 #: ../fish/guestfish-actions.pod:3977
23652 msgid "tail-n"
23653 msgstr ""
23654
23655 # type: verbatim
23656 #: ../fish/guestfish-actions.pod:3979
23657 #, no-wrap
23658 msgid ""
23659 " tail-n nrlines path\n"
23660 "\n"
23661 msgstr ""
23662
23663 # type: =head2
23664 #: ../fish/guestfish-actions.pod:3992
23665 msgid "tar-in"
23666 msgstr ""
23667
23668 # type: verbatim
23669 #: ../fish/guestfish-actions.pod:3994
23670 #, no-wrap
23671 msgid ""
23672 " tar-in (tarfile|-) directory\n"
23673 "\n"
23674 msgstr ""
23675
23676 # type: textblock
23677 #: ../fish/guestfish-actions.pod:3999
23678 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23679 msgstr ""
23680
23681 # type: =head2
23682 #: ../fish/guestfish-actions.pod:4004
23683 msgid "tar-out"
23684 msgstr ""
23685
23686 # type: verbatim
23687 #: ../fish/guestfish-actions.pod:4006
23688 #, no-wrap
23689 msgid ""
23690 " tar-out directory (tarfile|-)\n"
23691 "\n"
23692 msgstr ""
23693
23694 # type: textblock
23695 #: ../fish/guestfish-actions.pod:4011
23696 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23697 msgstr ""
23698
23699 # type: =head2
23700 #: ../fish/guestfish-actions.pod:4016
23701 msgid "tgz-in"
23702 msgstr ""
23703
23704 # type: verbatim
23705 #: ../fish/guestfish-actions.pod:4018
23706 #, no-wrap
23707 msgid ""
23708 " tgz-in (tarball|-) directory\n"
23709 "\n"
23710 msgstr ""
23711
23712 # type: textblock
23713 #: ../fish/guestfish-actions.pod:4023
23714 msgid "To upload an uncompressed tarball, use L</tar-in>."
23715 msgstr ""
23716
23717 # type: =head2
23718 #: ../fish/guestfish-actions.pod:4027
23719 msgid "tgz-out"
23720 msgstr ""
23721
23722 # type: verbatim
23723 #: ../fish/guestfish-actions.pod:4029
23724 #, no-wrap
23725 msgid ""
23726 " tgz-out directory (tarball|-)\n"
23727 "\n"
23728 msgstr ""
23729
23730 # type: textblock
23731 #: ../fish/guestfish-actions.pod:4034
23732 msgid "To download an uncompressed tarball, use L</tar-out>."
23733 msgstr ""
23734
23735 # type: =head2
23736 #: ../fish/guestfish-actions.pod:4038
23737 msgid "touch"
23738 msgstr ""
23739
23740 # type: verbatim
23741 #: ../fish/guestfish-actions.pod:4040
23742 #, no-wrap
23743 msgid ""
23744 " touch path\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: =head2
23749 #: ../fish/guestfish-actions.pod:4049
23750 msgid "truncate"
23751 msgstr ""
23752
23753 # type: verbatim
23754 #: ../fish/guestfish-actions.pod:4051
23755 #, no-wrap
23756 msgid ""
23757 " truncate path\n"
23758 "\n"
23759 msgstr ""
23760
23761 # type: =head2
23762 #: ../fish/guestfish-actions.pod:4056
23763 msgid "truncate-size"
23764 msgstr ""
23765
23766 # type: verbatim
23767 #: ../fish/guestfish-actions.pod:4058
23768 #, no-wrap
23769 msgid ""
23770 " truncate-size path size\n"
23771 "\n"
23772 msgstr ""
23773
23774 # type: textblock
23775 #: ../fish/guestfish-actions.pod:4063
23776 msgid ""
23777 "If the current file size is less than C<size> then the file is extended to "
23778 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23779 "blocks are not allocated for the file until you write to it).  To create a "
23780 "non-sparse file of zeroes, use L</fallocate64> instead."
23781 msgstr ""
23782
23783 # type: =head2
23784 #: ../fish/guestfish-actions.pod:4069
23785 msgid "tune2fs-l"
23786 msgstr ""
23787
23788 # type: verbatim
23789 #: ../fish/guestfish-actions.pod:4071
23790 #, no-wrap
23791 msgid ""
23792 " tune2fs-l device\n"
23793 "\n"
23794 msgstr ""
23795
23796 # type: =head2
23797 #: ../fish/guestfish-actions.pod:4081
23798 msgid "txz-in"
23799 msgstr ""
23800
23801 # type: verbatim
23802 #: ../fish/guestfish-actions.pod:4083
23803 #, no-wrap
23804 msgid ""
23805 " txz-in (tarball|-) directory\n"
23806 "\n"
23807 msgstr ""
23808
23809 # type: =head2
23810 #: ../fish/guestfish-actions.pod:4090
23811 msgid "txz-out"
23812 msgstr ""
23813
23814 # type: verbatim
23815 #: ../fish/guestfish-actions.pod:4092
23816 #, no-wrap
23817 msgid ""
23818 " txz-out directory (tarball|-)\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: =head2
23823 #: ../fish/guestfish-actions.pod:4099
23824 msgid "umask"
23825 msgstr ""
23826
23827 # type: verbatim
23828 #: ../fish/guestfish-actions.pod:4101
23829 #, no-wrap
23830 msgid ""
23831 " umask mask\n"
23832 "\n"
23833 msgstr ""
23834
23835 # type: textblock
23836 #: ../fish/guestfish-actions.pod:4115
23837 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23838 msgstr ""
23839
23840 # type: =head2
23841 #: ../fish/guestfish-actions.pod:4120
23842 msgid "umount"
23843 msgstr ""
23844
23845 # type: =head2
23846 #: ../fish/guestfish-actions.pod:4122
23847 msgid "unmount"
23848 msgstr ""
23849
23850 # type: verbatim
23851 #: ../fish/guestfish-actions.pod:4124
23852 #, no-wrap
23853 msgid ""
23854 " umount pathordevice\n"
23855 "\n"
23856 msgstr ""
23857
23858 # type: =head2
23859 #: ../fish/guestfish-actions.pod:4130
23860 msgid "umount-all"
23861 msgstr ""
23862
23863 # type: =head2
23864 #: ../fish/guestfish-actions.pod:4132
23865 msgid "unmount-all"
23866 msgstr ""
23867
23868 # type: verbatim
23869 #: ../fish/guestfish-actions.pod:4134
23870 #, no-wrap
23871 msgid ""
23872 " umount-all\n"
23873 "\n"
23874 msgstr ""
23875
23876 # type: =head2
23877 #: ../fish/guestfish-actions.pod:4140
23878 msgid "upload"
23879 msgstr ""
23880
23881 # type: verbatim
23882 #: ../fish/guestfish-actions.pod:4142
23883 #, no-wrap
23884 msgid ""
23885 " upload (filename|-) remotefilename\n"
23886 "\n"
23887 msgstr ""
23888
23889 # type: textblock
23890 #: ../fish/guestfish-actions.pod:4149
23891 msgid "See also L</download>."
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-actions.pod:4153
23896 msgid "upload-offset"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-actions.pod:4155
23901 #, no-wrap
23902 msgid ""
23903 " upload-offset (filename|-) remotefilename offset\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: textblock
23908 #: ../fish/guestfish-actions.pod:4167
23909 msgid ""
23910 "Note that there is no limit on the amount of data that can be uploaded with "
23911 "this call, unlike with L</pwrite>, and this call always writes the full "
23912 "amount unless an error occurs."
23913 msgstr ""
23914
23915 # type: textblock
23916 #: ../fish/guestfish-actions.pod:4172
23917 msgid "See also L</upload>, L</pwrite>."
23918 msgstr ""
23919
23920 # type: =head2
23921 #: ../fish/guestfish-actions.pod:4176
23922 msgid "utimens"
23923 msgstr ""
23924
23925 # type: verbatim
23926 #: ../fish/guestfish-actions.pod:4178
23927 #, no-wrap
23928 msgid ""
23929 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23930 "\n"
23931 msgstr ""
23932
23933 # type: =head2
23934 #: ../fish/guestfish-actions.pod:4197
23935 msgid "version"
23936 msgstr ""
23937
23938 # type: verbatim
23939 #: ../fish/guestfish-actions.pod:4199
23940 #, no-wrap
23941 msgid ""
23942 " version\n"
23943 "\n"
23944 msgstr ""
23945
23946 # type: textblock
23947 #: ../fish/guestfish-actions.pod:4226
23948 msgid ""
23949 "I<Note:> Don't use this call to test for availability of features.  In "
23950 "enterprise distributions we backport features from later versions into "
23951 "earlier versions, making this an unreliable way to test for features.  Use "
23952 "L</available> instead."
23953 msgstr ""
23954
23955 # type: =head2
23956 #: ../fish/guestfish-actions.pod:4232
23957 msgid "vfs-label"
23958 msgstr ""
23959
23960 # type: verbatim
23961 #: ../fish/guestfish-actions.pod:4234
23962 #, no-wrap
23963 msgid ""
23964 " vfs-label device\n"
23965 "\n"
23966 msgstr ""
23967
23968 # type: textblock
23969 #: ../fish/guestfish-actions.pod:4241
23970 msgid "To find a filesystem from the label, use L</findfs-label>."
23971 msgstr ""
23972
23973 # type: =head2
23974 #: ../fish/guestfish-actions.pod:4243
23975 msgid "vfs-type"
23976 msgstr ""
23977
23978 # type: verbatim
23979 #: ../fish/guestfish-actions.pod:4245
23980 #, no-wrap
23981 msgid ""
23982 " vfs-type device\n"
23983 "\n"
23984 msgstr ""
23985
23986 # type: =head2
23987 #: ../fish/guestfish-actions.pod:4255
23988 msgid "vfs-uuid"
23989 msgstr ""
23990
23991 # type: verbatim
23992 #: ../fish/guestfish-actions.pod:4257
23993 #, no-wrap
23994 msgid ""
23995 " vfs-uuid device\n"
23996 "\n"
23997 msgstr ""
23998
23999 # type: textblock
24000 #: ../fish/guestfish-actions.pod:4264
24001 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24002 msgstr ""
24003
24004 # type: =head2
24005 #: ../fish/guestfish-actions.pod:4266
24006 msgid "vg-activate"
24007 msgstr ""
24008
24009 # type: verbatim
24010 #: ../fish/guestfish-actions.pod:4268
24011 #, no-wrap
24012 msgid ""
24013 " vg-activate true|false 'volgroups ...'\n"
24014 "\n"
24015 msgstr ""
24016
24017 # type: =head2
24018 #: ../fish/guestfish-actions.pod:4281
24019 msgid "vg-activate-all"
24020 msgstr ""
24021
24022 # type: verbatim
24023 #: ../fish/guestfish-actions.pod:4283
24024 #, no-wrap
24025 msgid ""
24026 " vg-activate-all true|false\n"
24027 "\n"
24028 msgstr ""
24029
24030 # type: =head2
24031 #: ../fish/guestfish-actions.pod:4293
24032 msgid "vgcreate"
24033 msgstr ""
24034
24035 # type: verbatim
24036 #: ../fish/guestfish-actions.pod:4295
24037 #, no-wrap
24038 msgid ""
24039 " vgcreate volgroup 'physvols ...'\n"
24040 "\n"
24041 msgstr ""
24042
24043 # type: =head2
24044 #: ../fish/guestfish-actions.pod:4300
24045 msgid "vglvuuids"
24046 msgstr ""
24047
24048 # type: verbatim
24049 #: ../fish/guestfish-actions.pod:4302
24050 #, no-wrap
24051 msgid ""
24052 " vglvuuids vgname\n"
24053 "\n"
24054 msgstr ""
24055
24056 # type: textblock
24057 #: ../fish/guestfish-actions.pod:4307
24058 msgid ""
24059 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24060 "logical volumes and volume groups."
24061 msgstr ""
24062
24063 # type: textblock
24064 #: ../fish/guestfish-actions.pod:4310
24065 msgid "See also L</vgpvuuids>."
24066 msgstr ""
24067
24068 # type: =head2
24069 #: ../fish/guestfish-actions.pod:4312
24070 msgid "vgpvuuids"
24071 msgstr ""
24072
24073 # type: verbatim
24074 #: ../fish/guestfish-actions.pod:4314
24075 #, no-wrap
24076 msgid ""
24077 " vgpvuuids vgname\n"
24078 "\n"
24079 msgstr ""
24080
24081 # type: textblock
24082 #: ../fish/guestfish-actions.pod:4319
24083 msgid ""
24084 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24085 "physical volumes and volume groups."
24086 msgstr ""
24087
24088 # type: textblock
24089 #: ../fish/guestfish-actions.pod:4322
24090 msgid "See also L</vglvuuids>."
24091 msgstr ""
24092
24093 # type: =head2
24094 #: ../fish/guestfish-actions.pod:4324
24095 msgid "vgremove"
24096 msgstr ""
24097
24098 # type: verbatim
24099 #: ../fish/guestfish-actions.pod:4326
24100 #, no-wrap
24101 msgid ""
24102 " vgremove vgname\n"
24103 "\n"
24104 msgstr ""
24105
24106 # type: =head2
24107 #: ../fish/guestfish-actions.pod:4333
24108 msgid "vgrename"
24109 msgstr ""
24110
24111 # type: verbatim
24112 #: ../fish/guestfish-actions.pod:4335
24113 #, no-wrap
24114 msgid ""
24115 " vgrename volgroup newvolgroup\n"
24116 "\n"
24117 msgstr ""
24118
24119 # type: =head2
24120 #: ../fish/guestfish-actions.pod:4339
24121 msgid "vgs"
24122 msgstr ""
24123
24124 # type: verbatim
24125 #: ../fish/guestfish-actions.pod:4341
24126 #, no-wrap
24127 msgid ""
24128 " vgs\n"
24129 "\n"
24130 msgstr ""
24131
24132 # type: textblock
24133 #: ../fish/guestfish-actions.pod:4349
24134 msgid "See also L</vgs-full>."
24135 msgstr ""
24136
24137 # type: =head2
24138 #: ../fish/guestfish-actions.pod:4351
24139 msgid "vgs-full"
24140 msgstr ""
24141
24142 # type: verbatim
24143 #: ../fish/guestfish-actions.pod:4353
24144 #, no-wrap
24145 msgid ""
24146 " vgs-full\n"
24147 "\n"
24148 msgstr ""
24149
24150 # type: =head2
24151 #: ../fish/guestfish-actions.pod:4358
24152 msgid "vgscan"
24153 msgstr ""
24154
24155 # type: verbatim
24156 #: ../fish/guestfish-actions.pod:4360
24157 #, no-wrap
24158 msgid ""
24159 " vgscan\n"
24160 "\n"
24161 msgstr ""
24162
24163 # type: =head2
24164 #: ../fish/guestfish-actions.pod:4365
24165 msgid "vguuid"
24166 msgstr ""
24167
24168 # type: verbatim
24169 #: ../fish/guestfish-actions.pod:4367
24170 #, no-wrap
24171 msgid ""
24172 " vguuid vgname\n"
24173 "\n"
24174 msgstr ""
24175
24176 # type: =head2
24177 #: ../fish/guestfish-actions.pod:4371
24178 msgid "wc-c"
24179 msgstr ""
24180
24181 # type: verbatim
24182 #: ../fish/guestfish-actions.pod:4373
24183 #, no-wrap
24184 msgid ""
24185 " wc-c path\n"
24186 "\n"
24187 msgstr ""
24188
24189 # type: =head2
24190 #: ../fish/guestfish-actions.pod:4378
24191 msgid "wc-l"
24192 msgstr ""
24193
24194 # type: verbatim
24195 #: ../fish/guestfish-actions.pod:4380
24196 #, no-wrap
24197 msgid ""
24198 " wc-l path\n"
24199 "\n"
24200 msgstr ""
24201
24202 # type: =head2
24203 #: ../fish/guestfish-actions.pod:4385
24204 msgid "wc-w"
24205 msgstr ""
24206
24207 # type: verbatim
24208 #: ../fish/guestfish-actions.pod:4387
24209 #, no-wrap
24210 msgid ""
24211 " wc-w path\n"
24212 "\n"
24213 msgstr ""
24214
24215 # type: =head2
24216 #: ../fish/guestfish-actions.pod:4392
24217 msgid "write"
24218 msgstr ""
24219
24220 # type: verbatim
24221 #: ../fish/guestfish-actions.pod:4394
24222 #, no-wrap
24223 msgid ""
24224 " write path content\n"
24225 "\n"
24226 msgstr ""
24227
24228 # type: =head2
24229 #: ../fish/guestfish-actions.pod:4402
24230 msgid "write-file"
24231 msgstr ""
24232
24233 # type: verbatim
24234 #: ../fish/guestfish-actions.pod:4404
24235 #, no-wrap
24236 msgid ""
24237 " write-file path content size\n"
24238 "\n"
24239 msgstr ""
24240
24241 # type: =head2
24242 #: ../fish/guestfish-actions.pod:4427
24243 msgid "zegrep"
24244 msgstr ""
24245
24246 # type: verbatim
24247 #: ../fish/guestfish-actions.pod:4429
24248 #, no-wrap
24249 msgid ""
24250 " zegrep regex path\n"
24251 "\n"
24252 msgstr ""
24253
24254 # type: =head2
24255 #: ../fish/guestfish-actions.pod:4437
24256 msgid "zegrepi"
24257 msgstr ""
24258
24259 # type: verbatim
24260 #: ../fish/guestfish-actions.pod:4439
24261 #, no-wrap
24262 msgid ""
24263 " zegrepi regex path\n"
24264 "\n"
24265 msgstr ""
24266
24267 # type: =head2
24268 #: ../fish/guestfish-actions.pod:4447
24269 msgid "zero"
24270 msgstr ""
24271
24272 # type: verbatim
24273 #: ../fish/guestfish-actions.pod:4449
24274 #, no-wrap
24275 msgid ""
24276 " zero device\n"
24277 "\n"
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../fish/guestfish-actions.pod:4457
24282 msgid "See also: L</zero-device>, L</scrub-device>."
24283 msgstr ""
24284
24285 # type: =head2
24286 #: ../fish/guestfish-actions.pod:4459
24287 msgid "zero-device"
24288 msgstr ""
24289
24290 # type: verbatim
24291 #: ../fish/guestfish-actions.pod:4461
24292 #, no-wrap
24293 msgid ""
24294 " zero-device device\n"
24295 "\n"
24296 msgstr ""
24297
24298 # type: textblock
24299 #: ../fish/guestfish-actions.pod:4463
24300 msgid ""
24301 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24302 "which just zeroes the first few blocks of a device."
24303 msgstr ""
24304
24305 # type: =head2
24306 #: ../fish/guestfish-actions.pod:4470
24307 msgid "zerofree"
24308 msgstr ""
24309
24310 # type: verbatim
24311 #: ../fish/guestfish-actions.pod:4472
24312 #, no-wrap
24313 msgid ""
24314 " zerofree device\n"
24315 "\n"
24316 msgstr ""
24317
24318 # type: =head2
24319 #: ../fish/guestfish-actions.pod:4485
24320 msgid "zfgrep"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #: ../fish/guestfish-actions.pod:4487
24325 #, no-wrap
24326 msgid ""
24327 " zfgrep pattern path\n"
24328 "\n"
24329 msgstr ""
24330
24331 # type: =head2
24332 #: ../fish/guestfish-actions.pod:4495
24333 msgid "zfgrepi"
24334 msgstr ""
24335
24336 # type: verbatim
24337 #: ../fish/guestfish-actions.pod:4497
24338 #, no-wrap
24339 msgid ""
24340 " zfgrepi pattern path\n"
24341 "\n"
24342 msgstr ""
24343
24344 # type: =head2
24345 #: ../fish/guestfish-actions.pod:4505
24346 msgid "zfile"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../fish/guestfish-actions.pod:4507
24351 #, no-wrap
24352 msgid ""
24353 " zfile meth path\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: textblock
24358 #: ../fish/guestfish-actions.pod:4514
24359 msgid ""
24360 "Since 1.0.63, use L</file> instead which can now process compressed files."
24361 msgstr ""
24362
24363 # type: =head2
24364 #: ../fish/guestfish-actions.pod:4524
24365 msgid "zgrep"
24366 msgstr ""
24367
24368 # type: verbatim
24369 #: ../fish/guestfish-actions.pod:4526
24370 #, no-wrap
24371 msgid ""
24372 " zgrep regex path\n"
24373 "\n"
24374 msgstr ""
24375
24376 # type: =head2
24377 #: ../fish/guestfish-actions.pod:4534
24378 msgid "zgrepi"
24379 msgstr ""
24380
24381 # type: verbatim
24382 #: ../fish/guestfish-actions.pod:4536
24383 #, no-wrap
24384 msgid ""
24385 " zgrepi regex path\n"
24386 "\n"
24387 msgstr ""
24388
24389 # type: =head2
24390 #: ../fish/guestfish-commands.pod:1
24391 msgid "alloc"
24392 msgstr ""
24393
24394 # type: =head2
24395 #: ../fish/guestfish-commands.pod:3
24396 msgid "allocate"
24397 msgstr ""
24398
24399 # type: verbatim
24400 #: ../fish/guestfish-commands.pod:5
24401 #, no-wrap
24402 msgid ""
24403 " alloc filename size\n"
24404 "\n"
24405 msgstr ""
24406
24407 # type: textblock
24408 #: ../fish/guestfish-commands.pod:7
24409 msgid ""
24410 "This creates an empty (zeroed) file of the given size, and then adds so it "
24411 "can be further examined."
24412 msgstr ""
24413
24414 # type: textblock
24415 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24416 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24417 msgstr ""
24418
24419 # type: textblock
24420 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24421 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../fish/guestfish-commands.pod:14
24426 msgid ""
24427 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24428 "image, see L</PREPARED DISK IMAGES>."
24429 msgstr ""
24430
24431 # type: =head2
24432 #: ../fish/guestfish-commands.pod:17
24433 msgid "copy-in"
24434 msgstr ""
24435
24436 # type: verbatim
24437 #: ../fish/guestfish-commands.pod:19
24438 #, no-wrap
24439 msgid ""
24440 " copy-in local [local ...] /remotedir\n"
24441 "\n"
24442 msgstr ""
24443
24444 # type: textblock
24445 #: ../fish/guestfish-commands.pod:21
24446 msgid ""
24447 "C<copy-in> copies local files or directories recursively into the disk "
24448 "image, placing them in the directory called C</remotedir> (which must "
24449 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24450 "other commands as necessary."
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../fish/guestfish-commands.pod:26
24455 msgid ""
24456 "Multiple local files and directories can be specified, but the last "
24457 "parameter must always be a remote directory.  Wildcards cannot be used."
24458 msgstr ""
24459
24460 # type: =head2
24461 #: ../fish/guestfish-commands.pod:30
24462 msgid "copy-out"
24463 msgstr ""
24464
24465 # type: verbatim
24466 #: ../fish/guestfish-commands.pod:32
24467 #, no-wrap
24468 msgid ""
24469 " copy-out remote [remote ...] localdir\n"
24470 "\n"
24471 msgstr ""
24472
24473 # type: textblock
24474 #: ../fish/guestfish-commands.pod:34
24475 msgid ""
24476 "C<copy-out> copies remote files or directories recursively out of the disk "
24477 "image, placing them on the host disk in a local directory called C<localdir> "
24478 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
24479 "download>, L</tar-out> and other commands as necessary."
24480 msgstr ""
24481
24482 # type: textblock
24483 #: ../fish/guestfish-commands.pod:40
24484 msgid ""
24485 "Multiple remote files and directories can be specified, but the last "
24486 "parameter must always be a local directory.  To download to the current "
24487 "directory, use C<.> as in:"
24488 msgstr ""
24489
24490 # type: verbatim
24491 #: ../fish/guestfish-commands.pod:44
24492 #, no-wrap
24493 msgid ""
24494 " copy-out /home .\n"
24495 "\n"
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../fish/guestfish-commands.pod:46
24500 msgid ""
24501 "Wildcards cannot be used in the ordinary command, but you can use them with "
24502 "the help of L</glob> like this:"
24503 msgstr ""
24504
24505 # type: verbatim
24506 #: ../fish/guestfish-commands.pod:49
24507 #, no-wrap
24508 msgid ""
24509 " glob copy-out /home/* .\n"
24510 "\n"
24511 msgstr ""
24512
24513 # type: =head2
24514 #: ../fish/guestfish-commands.pod:51
24515 msgid "echo"
24516 msgstr ""
24517
24518 # type: verbatim
24519 #: ../fish/guestfish-commands.pod:53
24520 #, no-wrap
24521 msgid ""
24522 " echo [params ...]\n"
24523 "\n"
24524 msgstr ""
24525
24526 # type: textblock
24527 #: ../fish/guestfish-commands.pod:55
24528 msgid "This echos the parameters to the terminal."
24529 msgstr ""
24530
24531 # type: =head2
24532 #: ../fish/guestfish-commands.pod:57
24533 msgid "edit"
24534 msgstr ""
24535
24536 # type: =head2
24537 #: ../fish/guestfish-commands.pod:59
24538 msgid "vi"
24539 msgstr ""
24540
24541 # type: =head2
24542 #: ../fish/guestfish-commands.pod:61
24543 msgid "emacs"
24544 msgstr ""
24545
24546 # type: verbatim
24547 #: ../fish/guestfish-commands.pod:63
24548 #, no-wrap
24549 msgid ""
24550 " edit filename\n"
24551 "\n"
24552 msgstr ""
24553
24554 # type: textblock
24555 #: ../fish/guestfish-commands.pod:65
24556 msgid ""
24557 "This is used to edit a file.  It downloads the file, edits it locally using "
24558 "your editor, then uploads the result."
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../fish/guestfish-commands.pod:68
24563 msgid ""
24564 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24565 "or C<emacs> you will get those corresponding editors."
24566 msgstr ""
24567
24568 # type: =head2
24569 #: ../fish/guestfish-commands.pod:72
24570 msgid "glob"
24571 msgstr ""
24572
24573 # type: verbatim
24574 #: ../fish/guestfish-commands.pod:74
24575 #, no-wrap
24576 msgid ""
24577 " glob command args...\n"
24578 "\n"
24579 msgstr ""
24580
24581 # type: textblock
24582 #: ../fish/guestfish-commands.pod:76
24583 msgid ""
24584 "Expand wildcards in any paths in the args list, and run C<command> "
24585 "repeatedly on each matching path."
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../fish/guestfish-commands.pod:79
24590 msgid "See L</WILDCARDS AND GLOBBING>."
24591 msgstr ""
24592
24593 # type: =head2
24594 #: ../fish/guestfish-commands.pod:81
24595 msgid "hexedit"
24596 msgstr ""
24597
24598 # type: verbatim
24599 #: ../fish/guestfish-commands.pod:83
24600 #, no-wrap
24601 msgid ""
24602 " hexedit <filename|device>\n"
24603 " hexedit <filename|device> <max>\n"
24604 " hexedit <filename|device> <start> <max>\n"
24605 "\n"
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../fish/guestfish-commands.pod:87
24610 msgid ""
24611 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24612 "device."
24613 msgstr ""
24614
24615 # type: textblock
24616 #: ../fish/guestfish-commands.pod:90
24617 msgid ""
24618 "This command works by downloading potentially the whole file or device, "
24619 "editing it locally, then uploading it.  If the file or device is large, you "
24620 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24621 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24622 "usual modifiers allowed such as C<1M> (1 megabyte)."
24623 msgstr ""
24624
24625 # type: textblock
24626 #: ../fish/guestfish-commands.pod:97
24627 msgid "For example to edit the first few sectors of a disk you might do:"
24628 msgstr ""
24629
24630 # type: verbatim
24631 #: ../fish/guestfish-commands.pod:100
24632 #, no-wrap
24633 msgid ""
24634 " hexedit /dev/sda 1M\n"
24635 "\n"
24636 msgstr ""
24637
24638 # type: textblock
24639 #: ../fish/guestfish-commands.pod:102
24640 msgid ""
24641 "which would allow you to edit anywhere within the first megabyte of the disk."
24642 msgstr ""
24643
24644 # type: textblock
24645 #: ../fish/guestfish-commands.pod:105
24646 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24647 msgstr ""
24648
24649 # type: verbatim
24650 #: ../fish/guestfish-commands.pod:107
24651 #, no-wrap
24652 msgid ""
24653 " hexedit /dev/sda1 0x400 0x400\n"
24654 "\n"
24655 msgstr ""
24656
24657 # type: textblock
24658 #: ../fish/guestfish-commands.pod:109
24659 msgid "(assuming the superblock is in the standard location)."
24660 msgstr ""
24661
24662 # type: textblock
24663 #: ../fish/guestfish-commands.pod:111
24664 msgid ""
24665 "This command requires the external L<hexedit(1)> program.  You can specify "
24666 "another program to use by setting the C<HEXEDITOR> environment variable."
24667 msgstr ""
24668
24669 # type: textblock
24670 #: ../fish/guestfish-commands.pod:115
24671 msgid "See also L</hexdump>."
24672 msgstr ""
24673
24674 # type: =head2
24675 #: ../fish/guestfish-commands.pod:117
24676 msgid "lcd"
24677 msgstr ""
24678
24679 # type: verbatim
24680 #: ../fish/guestfish-commands.pod:119
24681 #, no-wrap
24682 msgid ""
24683 " lcd directory\n"
24684 "\n"
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../fish/guestfish-commands.pod:121
24689 msgid ""
24690 "Change the local directory, ie. the current directory of guestfish itself."
24691 msgstr ""
24692
24693 # type: textblock
24694 #: ../fish/guestfish-commands.pod:124
24695 msgid "Note that C<!cd> won't do what you might expect."
24696 msgstr ""
24697
24698 # type: =head2
24699 #: ../fish/guestfish-commands.pod:126
24700 msgid "man"
24701 msgstr ""
24702
24703 # type: =head2
24704 #: ../fish/guestfish-commands.pod:128
24705 msgid "manual"
24706 msgstr ""
24707
24708 # type: verbatim
24709 #: ../fish/guestfish-commands.pod:130
24710 #, no-wrap
24711 msgid ""
24712 "  man\n"
24713 "\n"
24714 msgstr ""
24715
24716 # type: textblock
24717 #: ../fish/guestfish-commands.pod:132
24718 msgid "Opens the manual page for guestfish."
24719 msgstr ""
24720
24721 # type: =head2
24722 #: ../fish/guestfish-commands.pod:134
24723 msgid "more"
24724 msgstr ""
24725
24726 # type: =head2
24727 #: ../fish/guestfish-commands.pod:136
24728 msgid "less"
24729 msgstr ""
24730
24731 # type: verbatim
24732 #: ../fish/guestfish-commands.pod:138
24733 #, no-wrap
24734 msgid ""
24735 " more filename\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: verbatim
24740 #: ../fish/guestfish-commands.pod:140
24741 #, no-wrap
24742 msgid ""
24743 " less filename\n"
24744 "\n"
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../fish/guestfish-commands.pod:142
24749 msgid "This is used to view a file."
24750 msgstr ""
24751
24752 # type: textblock
24753 #: ../fish/guestfish-commands.pod:144
24754 msgid ""
24755 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24756 "C<less> you will get the C<less> command specifically."
24757 msgstr ""
24758
24759 # type: =head2
24760 #: ../fish/guestfish-commands.pod:147
24761 msgid "reopen"
24762 msgstr ""
24763
24764 # type: verbatim
24765 #: ../fish/guestfish-commands.pod:149
24766 #, no-wrap
24767 msgid ""
24768 "  reopen\n"
24769 "\n"
24770 msgstr ""
24771
24772 # type: textblock
24773 #: ../fish/guestfish-commands.pod:151
24774 msgid ""
24775 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24776 "normally, because the handle is closed properly when guestfish exits.  "
24777 "However this is occasionally useful for testing."
24778 msgstr ""
24779
24780 # type: =head2
24781 #: ../fish/guestfish-commands.pod:155
24782 msgid "sparse"
24783 msgstr ""
24784
24785 # type: verbatim
24786 #: ../fish/guestfish-commands.pod:157
24787 #, no-wrap
24788 msgid ""
24789 " sparse filename size\n"
24790 "\n"
24791 msgstr ""
24792
24793 # type: textblock
24794 #: ../fish/guestfish-commands.pod:159
24795 msgid ""
24796 "This creates an empty sparse file of the given size, and then adds so it can "
24797 "be further examined."
24798 msgstr ""
24799
24800 # type: textblock
24801 #: ../fish/guestfish-commands.pod:162
24802 msgid ""
24803 "In all respects it works the same as the L</alloc> command, except that the "
24804 "image file is allocated sparsely, which means that disk blocks are not "
24805 "assigned to the file until they are needed.  Sparse disk files only use "
24806 "space when written to, but they are slower and there is a danger you could "
24807 "run out of real disk space during a write operation."
24808 msgstr ""
24809
24810 # type: =head2
24811 #: ../fish/guestfish-commands.pod:172
24812 msgid "supported"
24813 msgstr ""
24814
24815 # type: verbatim
24816 #: ../fish/guestfish-commands.pod:174
24817 #, no-wrap
24818 msgid ""
24819 " supported\n"
24820 "\n"
24821 msgstr ""
24822
24823 # type: textblock
24824 #: ../fish/guestfish-commands.pod:176
24825 msgid ""
24826 "This command returns a list of the optional groups known to the daemon, and "
24827 "indicates which ones are supported by this build of the libguestfs appliance."
24828 msgstr ""
24829
24830 # type: textblock
24831 #: ../fish/guestfish-commands.pod:180
24832 msgid "See also L<guestfs(3)/AVAILABILITY>."
24833 msgstr ""
24834
24835 # type: =head2
24836 #: ../fish/guestfish-commands.pod:182
24837 msgid "time"
24838 msgstr ""
24839
24840 # type: verbatim
24841 #: ../fish/guestfish-commands.pod:184
24842 #, no-wrap
24843 msgid ""
24844 " time command args...\n"
24845 "\n"
24846 msgstr ""
24847
24848 # type: textblock
24849 #: ../fish/guestfish-commands.pod:186
24850 msgid ""
24851 "Run the command as usual, but print the elapsed time afterwards.  This can "
24852 "be useful for benchmarking operations."
24853 msgstr ""
24854
24855 # type: textblock
24856 #: ../test-tool/libguestfs-test-tool.pod:5
24857 msgid "libguestfs-test-tool - End user tests for libguestfs"
24858 msgstr ""
24859
24860 # type: verbatim
24861 #: ../test-tool/libguestfs-test-tool.pod:9
24862 #, no-wrap
24863 msgid ""
24864 " libguestfs-test-tool [--options]\n"
24865 "\n"
24866 msgstr ""
24867
24868 # type: textblock
24869 #: ../test-tool/libguestfs-test-tool.pod:13
24870 msgid ""
24871 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24872 "and developers, to allow them to check basic libguestfs functionality is "
24873 "working.  This is needed because libguestfs occasionally breaks for reasons "
24874 "beyond our control: usually because of changes in the underlying qemu or "
24875 "kernel packages, or the host environment."
24876 msgstr ""
24877
24878 # type: textblock
24879 #: ../test-tool/libguestfs-test-tool.pod:20
24880 msgid "If you suspect a problem in libguestfs, then just run:"
24881 msgstr ""
24882
24883 # type: verbatim
24884 #: ../test-tool/libguestfs-test-tool.pod:22
24885 #, no-wrap
24886 msgid ""
24887 " libguestfs-test-tool\n"
24888 "\n"
24889 msgstr ""
24890
24891 # type: textblock
24892 #: ../test-tool/libguestfs-test-tool.pod:24
24893 msgid "It will print lots of diagnostic messages."
24894 msgstr ""
24895
24896 # type: textblock
24897 #: ../test-tool/libguestfs-test-tool.pod:26
24898 msgid "If it runs to completion successfully, you will see this near the end:"
24899 msgstr ""
24900
24901 # type: verbatim
24902 #: ../test-tool/libguestfs-test-tool.pod:28
24903 #, no-wrap
24904 msgid ""
24905 " ===== TEST FINISHED OK =====\n"
24906 "\n"
24907 msgstr ""
24908
24909 # type: textblock
24910 #: ../test-tool/libguestfs-test-tool.pod:30
24911 msgid "and the test tool will exit with code 0."
24912 msgstr ""
24913
24914 # type: textblock
24915 #: ../test-tool/libguestfs-test-tool.pod:32
24916 msgid ""
24917 "If it fails (and/or exits with non-zero error code), please paste the "
24918 "B<complete, unedited> output of the test tool into a bug report.  More "
24919 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24920 "> website."
24921 msgstr ""
24922
24923 # type: =item
24924 #: ../test-tool/libguestfs-test-tool.pod:41
24925 msgid "I<--help>"
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../test-tool/libguestfs-test-tool.pod:43
24930 msgid "Display short usage information and exit."
24931 msgstr ""
24932
24933 # type: =item
24934 #: ../test-tool/libguestfs-test-tool.pod:45
24935 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24936 msgstr ""
24937
24938 # type: textblock
24939 #: ../test-tool/libguestfs-test-tool.pod:47
24940 msgid ""
24941 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24942 "normally look in the C<$libexec> directory that was configured when the tool "
24943 "was built."
24944 msgstr ""
24945
24946 # type: =item
24947 #: ../test-tool/libguestfs-test-tool.pod:51
24948 msgid "I<--qemu qemu_binary>"
24949 msgstr ""
24950
24951 # type: textblock
24952 #: ../test-tool/libguestfs-test-tool.pod:53
24953 msgid ""
24954 "If you have downloaded another qemu binary, point this option at the full "
24955 "path of the binary to try it."
24956 msgstr ""
24957
24958 # type: =item
24959 #: ../test-tool/libguestfs-test-tool.pod:56
24960 msgid "I<--qemudir qemu_source_dir>"
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../test-tool/libguestfs-test-tool.pod:58
24965 msgid ""
24966 "If you have compiled qemu from source, point this option at the source "
24967 "directory to try it."
24968 msgstr ""
24969
24970 # type: =item
24971 #: ../test-tool/libguestfs-test-tool.pod:61
24972 msgid "I<--timeout N>"
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../test-tool/libguestfs-test-tool.pod:63
24977 msgid ""
24978 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24979 "does not usually need to be adjusted unless your machine is very slow."
24980 msgstr ""
24981
24982 # type: =head1
24983 #: ../test-tool/libguestfs-test-tool.pod:69
24984 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24985 msgstr ""
24986
24987 # type: textblock
24988 #: ../test-tool/libguestfs-test-tool.pod:71
24989 msgid ""
24990 "If you have compiled another version of qemu from source and would like to "
24991 "try that, then you can use the I<--qemudir> option to point to the qemu "
24992 "source directory."
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../test-tool/libguestfs-test-tool.pod:75
24997 msgid ""
24998 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24999 "option to point to the binary."
25000 msgstr ""
25001
25002 # type: textblock
25003 #: ../test-tool/libguestfs-test-tool.pod:78
25004 msgid ""
25005 "When using an alternate qemu with libguestfs, usually you would need to "
25006 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25007 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25008 "use either of the I<--qemudir> or I<--qemu> options."
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../test-tool/libguestfs-test-tool.pod:85
25013 msgid ""
25014 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25015 "I<1> if there was an error."
25016 msgstr ""
25017
25018 # type: =item
25019 #: ../test-tool/libguestfs-test-tool.pod:92
25020 msgid "/usr/libexec/libguestfs-test-tool-helper"
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../test-tool/libguestfs-test-tool.pod:94
25025 msgid ""
25026 "This helper program is run inside the appliance and provides additional "
25027 "tests."
25028 msgstr ""
25029
25030 # type: =item
25031 #: ../test-tool/libguestfs-test-tool.pod:97
25032 msgid "/usr/bin/mkisofs"
25033 msgstr ""
25034
25035 # type: textblock
25036 #: ../test-tool/libguestfs-test-tool.pod:99
25037 msgid ""
25038 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25039 "which is used as part of the tests."
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../test-tool/libguestfs-test-tool.pod:106
25044 msgid ""
25045 "For the full list of environment variables which may affect libguestfs, "
25046 "please see the L<guestfs(3)> manual page."
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../test-tool/libguestfs-test-tool.pod:111
25051 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25052 msgstr ""
25053
25054 # type: textblock
25055 #: ../test-tool/libguestfs-test-tool.pod:121
25056 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25057 msgstr ""
25058
25059 # type: textblock
25060 #: ../fuse/guestmount.pod:5
25061 msgid ""
25062 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25063 msgstr ""
25064
25065 # type: verbatim
25066 #: ../fuse/guestmount.pod:9
25067 #, no-wrap
25068 msgid ""
25069 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25070 "\n"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #: ../fuse/guestmount.pod:11
25075 #, no-wrap
25076 msgid ""
25077 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: verbatim
25082 #: ../fuse/guestmount.pod:13
25083 #, no-wrap
25084 msgid ""
25085 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25086 "\n"
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../fuse/guestmount.pod:17
25091 msgid ""
25092 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25093 "machines.  If you do this, you risk disk corruption in the VM."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../fuse/guestmount.pod:22
25098 msgid ""
25099 "The guestmount program can be used to mount virtual machine filesystems and "
25100 "other disk images on the host.  It uses libguestfs for access to the guest "
25101 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25102 "a mountable device."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../fuse/guestmount.pod:27
25107 msgid ""
25108 "Along with other options, you have to give at least one device (I<-a> "
25109 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25110 "option) or use the I<-i> inspection option.  How this works is better "
25111 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25112 "below."
25113 msgstr ""
25114
25115 # type: textblock
25116 #: ../fuse/guestmount.pod:33
25117 msgid ""
25118 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25119 "by you, and the filesystem will not be visible to any other users unless you "
25120 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25121 "the filesystem, use the C<fusermount -u> command."
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../fuse/guestmount.pod:41
25126 msgid ""
25127 "For a typical Windows guest which has its main filesystem on the first "
25128 "partition:"
25129 msgstr ""
25130
25131 # type: verbatim
25132 #: ../fuse/guestmount.pod:44
25133 #, no-wrap
25134 msgid ""
25135 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25136 "\n"
25137 msgstr ""
25138
25139 # type: textblock
25140 #: ../fuse/guestmount.pod:46
25141 msgid ""
25142 "For a typical Linux guest which has a /boot filesystem on the first "
25143 "partition, and the root filesystem on a logical volume:"
25144 msgstr ""
25145
25146 # type: verbatim
25147 #: ../fuse/guestmount.pod:49
25148 #, no-wrap
25149 msgid ""
25150 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25151 "\n"
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../fuse/guestmount.pod:51
25156 msgid "To get libguestfs to detect guest mountpoints for you:"
25157 msgstr ""
25158
25159 # type: verbatim
25160 #: ../fuse/guestmount.pod:53
25161 #, no-wrap
25162 msgid ""
25163 " guestmount -a guest.img -i --ro /mnt\n"
25164 "\n"
25165 msgstr ""
25166
25167 # type: textblock
25168 #: ../fuse/guestmount.pod:55
25169 msgid "For a libvirt guest called \"Guest\" you could do:"
25170 msgstr ""
25171
25172 # type: verbatim
25173 #: ../fuse/guestmount.pod:57
25174 #, no-wrap
25175 msgid ""
25176 " guestmount -d Guest -i --ro /mnt\n"
25177 "\n"
25178 msgstr ""
25179
25180 # type: textblock
25181 #: ../fuse/guestmount.pod:59
25182 msgid ""
25183 "If you don't know what filesystems are contained in a guest or disk image, "
25184 "use L<virt-list-filesystems(1)> first:"
25185 msgstr ""
25186
25187 # type: verbatim
25188 #: ../fuse/guestmount.pod:62
25189 #, no-wrap
25190 msgid ""
25191 " virt-list-filesystems MyGuest\n"
25192 "\n"
25193 msgstr ""
25194
25195 # type: textblock
25196 #: ../fuse/guestmount.pod:64
25197 msgid ""
25198 "If you want to trace the libguestfs calls but without excessive debugging "
25199 "information, we recommend:"
25200 msgstr ""
25201
25202 # type: verbatim
25203 #: ../fuse/guestmount.pod:67
25204 #, no-wrap
25205 msgid ""
25206 " guestmount [...] --trace /mnt\n"
25207 "\n"
25208 msgstr ""
25209
25210 # type: textblock
25211 #: ../fuse/guestmount.pod:69
25212 msgid "If you want to debug the program, we recommend:"
25213 msgstr ""
25214
25215 # type: verbatim
25216 #: ../fuse/guestmount.pod:71
25217 #, no-wrap
25218 msgid ""
25219 " guestmount [...] --trace --verbose /mnt\n"
25220 "\n"
25221 msgstr ""
25222
25223 # type: textblock
25224 #: ../fuse/guestmount.pod:79
25225 msgid "Add a block device or virtual machine image."
25226 msgstr ""
25227
25228 # type: =item
25229 #: ../fuse/guestmount.pod:96
25230 msgid "B<--dir-cache-timeout N>"
25231 msgstr ""
25232
25233 # type: textblock
25234 #: ../fuse/guestmount.pod:98
25235 msgid ""
25236 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25237 "seconds.  The readdir cache [actually, there are several semi-independent "
25238 "caches] is populated after a readdir(2) call with the stat and extended "
25239 "attributes of the files in the directory, in anticipation that they will be "
25240 "requested soon after."
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../fuse/guestmount.pod:104
25245 msgid ""
25246 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25247 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25248 "requests, only cache existing ones."
25249 msgstr ""
25250
25251 # type: textblock
25252 #: ../fuse/guestmount.pod:122
25253 msgid ""
25254 "If you have untrusted raw-format guest disk images, you should use this "
25255 "option to specify the disk format.  This avoids a possible security problem "
25256 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25257 "guestfs_add_drive_opts>."
25258 msgstr ""
25259
25260 # type: =item
25261 #: ../fuse/guestmount.pod:127
25262 msgid "B<--fuse-help>"
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../fuse/guestmount.pod:129
25267 msgid "Display help on special FUSE options (see I<-o> below)."
25268 msgstr ""
25269
25270 # type: textblock
25271 #: ../fuse/guestmount.pod:133
25272 msgid "Display brief help and exit."
25273 msgstr ""
25274
25275 # type: =item
25276 #: ../fuse/guestmount.pod:146
25277 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25278 msgstr ""
25279
25280 # type: textblock
25281 #: ../fuse/guestmount.pod:148
25282 msgid ""
25283 "Mount the named partition or logical volume on the given mountpoint B<in the "
25284 "guest> (this has nothing to do with mountpoints in the host)."
25285 msgstr ""
25286
25287 # type: textblock
25288 #: ../fuse/guestmount.pod:151
25289 msgid ""
25290 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25291 "something on C</>."
25292 msgstr ""
25293
25294 # type: textblock
25295 #: ../fuse/guestmount.pod:156
25296 msgid ""
25297 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25298 "unmounted.  If you specify this option, then we don't attempt to sync the "
25299 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25300 msgstr ""
25301
25302 # type: =item
25303 #: ../fuse/guestmount.pod:161
25304 msgid "B<-o option> | B<--option option>"
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../fuse/guestmount.pod:163
25309 msgid "Pass extra options to FUSE."
25310 msgstr ""
25311
25312 # type: textblock
25313 #: ../fuse/guestmount.pod:165
25314 msgid ""
25315 "To get a list of all the extra options supported by FUSE, use the command "
25316 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25317 "of them are a good idea."
25318 msgstr ""
25319
25320 # type: verbatim
25321 #: ../fuse/guestmount.pod:169
25322 #, no-wrap
25323 msgid ""
25324 " guestmount --fuse-help\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../fuse/guestmount.pod:171
25330 msgid "Some potentially useful FUSE options:"
25331 msgstr ""
25332
25333 # type: =item
25334 #: ../fuse/guestmount.pod:175
25335 msgid "B<-o allow_other>"
25336 msgstr ""
25337
25338 # type: textblock
25339 #: ../fuse/guestmount.pod:177
25340 msgid "Allow other users to see the filesystem."
25341 msgstr ""
25342
25343 # type: =item
25344 #: ../fuse/guestmount.pod:179
25345 msgid "B<-o attr_timeout=N>"
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../fuse/guestmount.pod:181
25350 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25351 msgstr ""
25352
25353 # type: =item
25354 #: ../fuse/guestmount.pod:183
25355 msgid "B<-o kernel_cache>"
25356 msgstr ""
25357
25358 # type: textblock
25359 #: ../fuse/guestmount.pod:185
25360 msgid ""
25361 "Allow the kernel to cache files (reduces the number of reads that have to go "
25362 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25363 "afford the extra memory usage."
25364 msgstr ""
25365
25366 # type: =item
25367 #: ../fuse/guestmount.pod:189
25368 msgid "B<-o uid=N> B<-o gid=N>"
25369 msgstr ""
25370
25371 # type: textblock
25372 #: ../fuse/guestmount.pod:191
25373 msgid ""
25374 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25375 "the chosen values."
25376 msgstr ""
25377
25378 # type: textblock
25379 #: ../fuse/guestmount.pod:198
25380 msgid ""
25381 "Add devices and mount everything read-only.  Also disallow writes and make "
25382 "the disk appear read-only to FUSE."
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../fuse/guestmount.pod:201
25387 msgid ""
25388 "This is highly recommended if you are not going to edit the guest disk.  If "
25389 "the guest is running and this option is I<not> supplied, then there is a "
25390 "strong risk of disk corruption in the guest.  We try to prevent this from "
25391 "happening, but it is not always possible."
25392 msgstr ""
25393
25394 # type: textblock
25395 #: ../fuse/guestmount.pod:206
25396 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25397 msgstr ""
25398
25399 # type: textblock
25400 #: ../fuse/guestmount.pod:210
25401 msgid "Enable SELinux support for the guest."
25402 msgstr ""
25403
25404 # type: textblock
25405 #: ../fuse/guestmount.pod:214
25406 msgid "Enable verbose messages from underlying libguestfs."
25407 msgstr ""
25408
25409 # type: textblock
25410 #: ../fuse/guestmount.pod:218
25411 msgid "Display the program version and exit."
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../fuse/guestmount.pod:222
25416 msgid ""
25417 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25418 "FOR READ AND WRITE>."
25419 msgstr ""
25420
25421 # type: =item
25422 #: ../fuse/guestmount.pod:225
25423 msgid "B<-x> | B<--trace>"
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../fuse/guestmount.pod:227
25428 msgid "Trace libguestfs calls."
25429 msgstr ""
25430
25431 # type: textblock
25432 #: ../fuse/guestmount.pod:229
25433 msgid "This also stops the daemon from forking into the background."
25434 msgstr ""
25435
25436 # type: textblock
25437 #: ../fuse/guestmount.pod:235
25438 msgid ""
25439 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25440 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
25441 "net/>."
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../inspector/virt-inspector.pl:35
25446 msgid ""
25447 "virt-inspector - Display operating system version and other information "
25448 "about a virtual machine"
25449 msgstr ""
25450
25451 # type: verbatim
25452 #: ../inspector/virt-inspector.pl:39
25453 #, no-wrap
25454 msgid ""
25455 " virt-inspector [--connect URI] domname\n"
25456 "\n"
25457 msgstr ""
25458
25459 # type: verbatim
25460 #: ../inspector/virt-inspector.pl:41
25461 #, no-wrap
25462 msgid ""
25463 " virt-inspector guest.img [guest.img ...]\n"
25464 "\n"
25465 msgstr ""
25466
25467 # type: textblock
25468 #: ../inspector/virt-inspector.pl:45
25469 msgid ""
25470 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25471 "determine the version of the operating system and other information about "
25472 "the virtual machine."
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../inspector/virt-inspector.pl:49
25477 msgid "Virt-inspector produces XML output for feeding into other programs."
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../inspector/virt-inspector.pl:51
25482 msgid ""
25483 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25484 "libvirt domain (see: C<virsh list --all>)."
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../inspector/virt-inspector.pl:54
25489 msgid ""
25490 "You can also run virt-inspector directly on disk images from a single "
25491 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25492 "has several block devices, in which case you should list them one after "
25493 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25494 "to the guest's C</dev/sdb> and so on."
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../inspector/virt-inspector.pl:60
25499 msgid ""
25500 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25501 "inspect several virtual machines, you have to run virt-inspector several "
25502 "times (for example, from a shell script for-loop)."
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../inspector/virt-inspector.pl:65
25507 msgid ""
25508 "Because virt-inspector needs direct access to guest images, it won't "
25509 "normally work over remote libvirt connections."
25510 msgstr ""
25511
25512 # type: textblock
25513 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
25514 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
25515 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
25516 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
25517 #: ../tools/virt-list-partitions.pl:61
25518 msgid "Display brief help."
25519 msgstr ""
25520
25521 # type: =item
25522 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
25523 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
25524 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
25525 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
25526 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25527 msgid "B<--version>"
25528 msgstr ""
25529
25530 # type: textblock
25531 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
25532 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
25533 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
25534 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
25535 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25536 msgid "Display version number and exit."
25537 msgstr ""
25538
25539 # type: =item
25540 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
25541 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
25542 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
25543 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25544 msgid "B<--connect URI> | B<-c URI>"
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
25549 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
25550 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
25551 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25552 msgid ""
25553 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25554 "to the default libvirt hypervisor."
25555 msgstr ""
25556
25557 # type: textblock
25558 #: ../inspector/virt-inspector.pl:97
25559 msgid ""
25560 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25561 "you specify guest block devices directly, then libvirt is not used at all."
25562 msgstr ""
25563
25564 # type: =item
25565 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
25566 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
25567 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
25568 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
25569 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25570 msgid "B<--format> raw"
25571 msgstr ""
25572
25573 # type: textblock
25574 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
25575 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
25576 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
25577 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
25578 #: ../tools/virt-list-partitions.pl:89
25579 msgid ""
25580 "Specify the format of disk images given on the command line.  If this is "
25581 "omitted then the format is autodetected from the content of the disk image."
25582 msgstr ""
25583
25584 # type: textblock
25585 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
25586 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
25587 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
25588 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
25589 #: ../tools/virt-list-partitions.pl:93
25590 msgid ""
25591 "If disk images are requested from libvirt, then this program asks libvirt "
25592 "for this information.  In this case, the value of the format parameter is "
25593 "ignored."
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
25598 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
25599 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
25600 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
25601 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
25602 #: ../tools/virt-list-partitions.pl:97
25603 msgid ""
25604 "If working with untrusted raw-format guest disk images, you should ensure "
25605 "the format is always specified."
25606 msgstr ""
25607
25608 # type: =head1
25609 #: ../inspector/virt-inspector.pl:149
25610 msgid "XML FORMAT"
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../inspector/virt-inspector.pl:151
25615 msgid ""
25616 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25617 "supplied with libguestfs.  This section is just an overview."
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../inspector/virt-inspector.pl:154
25622 msgid ""
25623 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25624 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25625 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25626 "which is vanishingly rare in real world VMs."
25627 msgstr ""
25628
25629 # type: =head2
25630 #: ../inspector/virt-inspector.pl:159
25631 msgid "E<lt>operatingsystemE<gt>"
25632 msgstr ""
25633
25634 # type: textblock
25635 #: ../inspector/virt-inspector.pl:161
25636 msgid ""
25637 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25638 "describe the operating system, its architecture, the descriptive \"product "
25639 "name\" string, the type of OS and so on, as in this example:"
25640 msgstr ""
25641
25642 # type: verbatim
25643 #: ../inspector/virt-inspector.pl:165
25644 #, no-wrap
25645 msgid ""
25646 " <operatingsystems>\n"
25647 "   <operatingsystem>\n"
25648 "     <root>/dev/sda2</root>\n"
25649 "     <name>windows</name>\n"
25650 "     <arch>i386</arch>\n"
25651 "     <distro>windows</distro>\n"
25652 "     <product_name>Windows 7 Enterprise</product_name>\n"
25653 "     <major_version>6</major_version>\n"
25654 "     <minor_version>1</minor_version>\n"
25655 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25656 "\n"
25657 msgstr ""
25658
25659 # type: textblock
25660 #: ../inspector/virt-inspector.pl:176
25661 msgid ""
25662 "These fields are derived from the libguestfs inspection API, and you can "
25663 "find more details in L<guestfs(3)/INSPECTION>."
25664 msgstr ""
25665
25666 # type: textblock
25667 #: ../inspector/virt-inspector.pl:179
25668 msgid ""
25669 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25670 "of view of libguestfs (block devices may have completely different names "
25671 "inside the VM itself)."
25672 msgstr ""
25673
25674 # type: =head2
25675 #: ../inspector/virt-inspector.pl:240
25676 msgid "E<lt>mountpointsE<gt>"
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../inspector/virt-inspector.pl:242
25681 msgid ""
25682 "Un*x-like guests typically have multiple filesystems which are mounted at "
25683 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25684 "element which looks like this:"
25685 msgstr ""
25686
25687 # type: verbatim
25688 #: ../inspector/virt-inspector.pl:246
25689 #, no-wrap
25690 msgid ""
25691 " <operatingsystems>\n"
25692 "   <operatingsystem>\n"
25693 "     ...\n"
25694 "     <mountpoints>\n"
25695 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25696 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25697 "     </mountpoints>\n"
25698 "\n"
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../inspector/virt-inspector.pl:254
25703 msgid ""
25704 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25705 "and may have completely different names inside the guest.  Only mountable "
25706 "filesystems appear in this list, not things like swap devices."
25707 msgstr ""
25708
25709 # type: =head2
25710 #: ../inspector/virt-inspector.pl:276
25711 msgid "E<lt>filesystemsE<gt>"
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../inspector/virt-inspector.pl:278
25716 msgid ""
25717 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25718 "filesystems belonging to the guest, including swap and empty partitions.  "
25719 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25720 "this OS or shared by this OS and other OSes)."
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../inspector/virt-inspector.pl:283
25725 msgid "You might see something like this:"
25726 msgstr ""
25727
25728 # type: verbatim
25729 #: ../inspector/virt-inspector.pl:285
25730 #, no-wrap
25731 msgid ""
25732 " <operatingsystems>\n"
25733 "   <operatingsystem>\n"
25734 "     ...\n"
25735 "     <filesystems>\n"
25736 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25737 "         <type>ext4</type>\n"
25738 "         <label>Fedora-13-x86_64</label>\n"
25739 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25740 "       </filesystem>\n"
25741 "\n"
25742 msgstr ""
25743
25744 # type: textblock
25745 #: ../inspector/virt-inspector.pl:295
25746 msgid ""
25747 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25748 "the label, and the UUID."
25749 msgstr ""
25750
25751 # type: =head2
25752 #: ../inspector/virt-inspector.pl:337
25753 msgid "E<lt>applicationsE<gt>"
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../inspector/virt-inspector.pl:339
25758 msgid ""
25759 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25760 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25761 "machine.  At the moment we are only able to list RPMs and Debian packages "
25762 "installed, but in future we will support other Linux distros and Windows."
25763 msgstr ""
25764
25765 # type: textblock
25766 #: ../inspector/virt-inspector.pl:345
25767 msgid ""
25768 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25769 "Typical values would be C<rpm> and C<deb>."
25770 msgstr ""
25771
25772 # type: textblock
25773 #: ../inspector/virt-inspector.pl:348
25774 msgid ""
25775 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25776 "Typical values include C<yum>, C<up2date> and C<apt>"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../inspector/virt-inspector.pl:351
25781 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25782 msgstr ""
25783
25784 # type: verbatim
25785 #: ../inspector/virt-inspector.pl:354
25786 #, no-wrap
25787 msgid ""
25788 " <operatingsystems>\n"
25789 "   <operatingsystem>\n"
25790 "     ...\n"
25791 "     <applications>\n"
25792 "       <application>\n"
25793 "         <name>coreutils</name>\n"
25794 "         <version>8.5</version>\n"
25795 "         <release>1</release>\n"
25796 "       </application>\n"
25797 "\n"
25798 msgstr ""
25799
25800 # type: textblock
25801 #: ../inspector/virt-inspector.pl:364
25802 msgid ""
25803 "(The version and release fields may not be available for some package types)."
25804 msgstr ""
25805
25806 # type: =head1
25807 #: ../inspector/virt-inspector.pl:510
25808 msgid "USING XPATH"
25809 msgstr ""
25810
25811 # type: textblock
25812 #: ../inspector/virt-inspector.pl:512
25813 msgid ""
25814 "You can use the XPath query language, and/or the xpath tool, in order to "
25815 "select parts of the XML."
25816 msgstr ""
25817
25818 # type: verbatim
25819 #: ../inspector/virt-inspector.pl:517
25820 #, no-wrap
25821 msgid ""
25822 " $ virt-inspector Guest | xpath //filesystems\n"
25823 " Found 1 nodes:\n"
25824 " -- NODE --\n"
25825 " <filesystems>\n"
25826 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25827 "        <type>ext4</type>\n"
25828 " [etc]\n"
25829 "\n"
25830 msgstr ""
25831
25832 # type: verbatim
25833 #: ../inspector/virt-inspector.pl:525
25834 #, no-wrap
25835 msgid ""
25836 " $ virt-inspector Guest | \\\n"
25837 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25838 " Query didn't return a nodeset. Value: ext4\n"
25839 "\n"
25840 msgstr ""
25841
25842 # type: =head2
25843 #: ../inspector/virt-inspector.pl:529 ../tools/virt-edit.pl:343
25844 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
25845 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
25846 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
25847 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
25848 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
25849 msgid "SHELL QUOTING"
25850 msgstr ""
25851
25852 # type: textblock
25853 #: ../inspector/virt-inspector.pl:531 ../tools/virt-edit.pl:345
25854 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
25855 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
25856 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276
25857 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
25858 #: ../tools/virt-list-partitions.pl:249
25859 msgid ""
25860 "Libvirt guest names can contain arbitrary characters, some of which have "
25861 "meaning to the shell such as C<#> and space.  You may need to quote or "
25862 "escape these characters on the command line.  See the shell manual page L<sh"
25863 "(1)> for details."
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../inspector/virt-inspector.pl:538
25868 msgid ""
25869 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25870 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25871 msgstr ""
25872
25873 # type: textblock
25874 #: ../inspector/virt-inspector.pl:552 ../tools/virt-edit.pl:364
25875 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25876 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25877 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294
25878 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
25879 #: ../tools/virt-list-partitions.pl:267
25880 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../inspector/virt-inspector.pl:556
25885 msgid "Matthew Booth L<mbooth@redhat.com>"
25886 msgstr ""
25887
25888 # type: textblock
25889 #: ../inspector/virt-inspector.pl:562 ../tools/virt-win-reg.pl:516
25890 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25891 msgid "Copyright (C) 2010 Red Hat Inc."
25892 msgstr ""
25893
25894 # type: textblock
25895 #: ../tools/virt-edit.pl:34
25896 msgid "virt-edit - Edit a file in a virtual machine"
25897 msgstr ""
25898
25899 # type: verbatim
25900 #: ../tools/virt-edit.pl:38
25901 #, no-wrap
25902 msgid ""
25903 " virt-edit [--options] domname file\n"
25904 "\n"
25905 msgstr ""
25906
25907 # type: verbatim
25908 #: ../tools/virt-edit.pl:40
25909 #, no-wrap
25910 msgid ""
25911 " virt-edit [--options] disk.img [disk.img ...] file\n"
25912 "\n"
25913 msgstr ""
25914
25915 # type: verbatim
25916 #: ../tools/virt-edit.pl:42
25917 #, no-wrap
25918 msgid ""
25919 " virt-edit [domname|disk.img] file -e 'expr'\n"
25920 "\n"
25921 msgstr ""
25922
25923 # type: textblock
25924 #: ../tools/virt-edit.pl:46
25925 msgid ""
25926 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25927 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25928 "doing this, but doesn't catch all cases."
25929 msgstr ""
25930
25931 # type: textblock
25932 #: ../tools/virt-edit.pl:52
25933 msgid ""
25934 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25935 "the named virtual machine (or disk image)."
25936 msgstr ""
25937
25938 # type: textblock
25939 #: ../tools/virt-edit.pl:55
25940 msgid ""
25941 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25942 "you should look at the L<guestfish(1)> tool."
25943 msgstr ""
25944
25945 # type: textblock
25946 #: ../tools/virt-edit.pl:60
25947 msgid "Edit the named files interactively:"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-edit.pl:62
25952 #, no-wrap
25953 msgid ""
25954 " virt-edit mydomain /boot/grub/grub.conf\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: verbatim
25959 #: ../tools/virt-edit.pl:64
25960 #, no-wrap
25961 msgid ""
25962 " virt-edit mydomain /etc/passwd\n"
25963 "\n"
25964 msgstr ""
25965
25966 # type: textblock
25967 #: ../tools/virt-edit.pl:66
25968 msgid ""
25969 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25970 "below).  To change the init default level to 5:"
25971 msgstr ""
25972
25973 # type: verbatim
25974 #: ../tools/virt-edit.pl:70
25975 #, no-wrap
25976 msgid ""
25977 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25978 "\n"
25979 msgstr ""
25980
25981 # type: =item
25982 #: ../tools/virt-edit.pl:96
25983 msgid "B<--backup extension> | B<-b extension>"
25984 msgstr ""
25985
25986 # type: textblock
25987 #: ../tools/virt-edit.pl:98
25988 msgid ""
25989 "Create a backup of the original file I<in the guest disk image>.  The backup "
25990 "has the original filename with C<extension> added."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../tools/virt-edit.pl:101
25995 msgid ""
25996 "Usually the first character of C<extension> would be a dot C<.> so you would "
25997 "write:"
25998 msgstr ""
25999
26000 # type: verbatim
26001 #: ../tools/virt-edit.pl:104
26002 #, no-wrap
26003 msgid ""
26004 " virt-edit -b .orig [etc]\n"
26005 "\n"
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../tools/virt-edit.pl:106
26010 msgid "By default, no backup file is made."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26015 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
26016 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
26017 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
26018 msgid ""
26019 "If you specify guest block devices directly, then libvirt is not used at all."
26020 msgstr ""
26021
26022 # type: =item
26023 #: ../tools/virt-edit.pl:141
26024 msgid "B<--expr EXPR> | B<-e EXPR>"
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-edit.pl:143
26029 msgid ""
26030 "Instead of launching the external editor, non-interactively apply the Perl "
26031 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26032 "EDITING> below."
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../tools/virt-edit.pl:147
26037 msgid ""
26038 "Be careful to properly quote the expression to prevent it from being altered "
26039 "by the shell."
26040 msgstr ""
26041
26042 # type: =head1
26043 #: ../tools/virt-edit.pl:268
26044 msgid "NON-INTERACTIVE EDITING"
26045 msgstr ""
26046
26047 # type: textblock
26048 #: ../tools/virt-edit.pl:270
26049 msgid ""
26050 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26051 "administrator can interactively edit the file."
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../tools/virt-edit.pl:273
26056 msgid ""
26057 "There are two ways also to use C<virt-edit> from scripts in order to make "
26058 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26059 "like this, it's less error-prone to write scripts directly using the "
26060 "libguestfs API and Augeas for configuration file editing.)"
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../tools/virt-edit.pl:279
26065 msgid ""
26066 "The first method is to temporarily set C<$EDITOR> to any script or program "
26067 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26068 "update C<tmpfile> in place however it likes."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-edit.pl:283
26073 msgid ""
26074 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26075 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26076 "instances of C<foo> with C<bar> in a file:"
26077 msgstr ""
26078
26079 # type: verbatim
26080 #: ../tools/virt-edit.pl:287
26081 #, no-wrap
26082 msgid ""
26083 " virt-edit domname filename -e 's/foo/bar/'\n"
26084 "\n"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-edit.pl:289
26089 msgid ""
26090 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26091 "For example to delete root's password you could do:"
26092 msgstr ""
26093
26094 # type: verbatim
26095 #: ../tools/virt-edit.pl:292
26096 #, no-wrap
26097 msgid ""
26098 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26099 "\n"
26100 msgstr ""
26101
26102 # type: textblock
26103 #: ../tools/virt-edit.pl:294
26104 msgid ""
26105 "What really happens is that the snippet is evaluated as a Perl expression "
26106 "for each line of the file.  The line, including the final C<\\n>, is passed "
26107 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26108 msgstr ""
26109
26110 # type: textblock
26111 #: ../tools/virt-edit.pl:299
26112 msgid ""
26113 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26114 "C<apache> user account from the password file you can do:"
26115 msgstr ""
26116
26117 # type: verbatim
26118 #: ../tools/virt-edit.pl:302
26119 #, no-wrap
26120 msgid ""
26121 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26122 "\n"
26123 msgstr ""
26124
26125 # type: textblock
26126 #: ../tools/virt-edit.pl:304
26127 msgid ""
26128 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26129 "the end of the file is rather difficult this way since there is no concept "
26130 "of \"last line of the file\" - your expression just doesn't get called "
26131 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26132 "want to do this."
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../tools/virt-edit.pl:310
26137 msgid ""
26138 "The variable C<$lineno> contains the current line number.  As is "
26139 "traditional, the first line in the file is number C<1>."
26140 msgstr ""
26141
26142 # type: textblock
26143 #: ../tools/virt-edit.pl:313
26144 msgid ""
26145 "The return value from the expression is ignored, but the expression may call "
26146 "C<die> in order to abort the whole program, leaving the original file "
26147 "untouched."
26148 msgstr ""
26149
26150 # type: textblock
26151 #: ../tools/virt-edit.pl:317
26152 msgid ""
26153 "Remember when matching the end of a line that C<$_> may contain the final C<"
26154 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26155 "newline then neither of these.  Thus to match or substitute some text at the "
26156 "end of a line, use this regular expression:"
26157 msgstr ""
26158
26159 # type: verbatim
26160 #: ../tools/virt-edit.pl:322
26161 #, no-wrap
26162 msgid ""
26163 " /some text(\\r?\\n)?$/\n"
26164 "\n"
26165 msgstr ""
26166
26167 # type: textblock
26168 #: ../tools/virt-edit.pl:324
26169 msgid ""
26170 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26171 "$_> itself (since that would remove all newlines from the file):"
26172 msgstr ""
26173
26174 # type: verbatim
26175 #: ../tools/virt-edit.pl:328
26176 #, no-wrap
26177 msgid ""
26178 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26179 "\n"
26180 msgstr ""
26181
26182 # type: =item
26183 #: ../tools/virt-edit.pl:334
26184 msgid "C<EDITOR>"
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-edit.pl:336
26189 msgid ""
26190 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26191 "\"emacs -nw\">"
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-edit.pl:339
26196 msgid "If not set, C<vi> is used."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-edit.pl:352
26201 msgid ""
26202 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26203 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26204 "L<perlre(1)>."
26205 msgstr ""
26206
26207 # type: =head1
26208 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26209 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26210 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26211 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26212 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26213 msgid "AUTHOR"
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26218 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26219 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26220 msgstr ""
26221
26222 # type: textblock
26223 #: ../tools/virt-win-reg.pl:37
26224 msgid ""
26225 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26226 msgstr ""
26227
26228 # type: verbatim
26229 #: ../tools/virt-win-reg.pl:41
26230 #, no-wrap
26231 msgid ""
26232 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26233 "\n"
26234 msgstr ""
26235
26236 # type: verbatim
26237 #: ../tools/virt-win-reg.pl:43
26238 #, no-wrap
26239 msgid ""
26240 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26241 "\n"
26242 msgstr ""
26243
26244 # type: verbatim
26245 #: ../tools/virt-win-reg.pl:45
26246 #, no-wrap
26247 msgid ""
26248 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26249 "\n"
26250 msgstr ""
26251
26252 # type: verbatim
26253 #: ../tools/virt-win-reg.pl:47
26254 #, no-wrap
26255 msgid ""
26256 " virt-win-reg --merge domname [input.reg ...]\n"
26257 "\n"
26258 msgstr ""
26259
26260 # type: verbatim
26261 #: ../tools/virt-win-reg.pl:49
26262 #, no-wrap
26263 msgid ""
26264 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26265 "\n"
26266 msgstr ""
26267
26268 # type: textblock
26269 #: ../tools/virt-win-reg.pl:53
26270 msgid ""
26271 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26272 "virtual machines.  If you do this, you I<will> get irreversible disk "
26273 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26274 "but doesn't catch all cases."
26275 msgstr ""
26276
26277 # type: textblock
26278 #: ../tools/virt-win-reg.pl:58
26279 msgid ""
26280 "Modifying the Windows Registry is an inherently risky operation.  The format "
26281 "is deliberately obscure and undocumented, and Registry changes can leave the "
26282 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26283 "you have a reliable backup first."
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-win-reg.pl:65
26288 msgid ""
26289 "This program can export and merge Windows Registry entries from a Windows "
26290 "guest."
26291 msgstr ""
26292
26293 # type: textblock
26294 #: ../tools/virt-win-reg.pl:68
26295 msgid ""
26296 "The first parameter is the libvirt guest name or the raw disk image of a "
26297 "Windows guest."
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-win-reg.pl:71
26302 msgid ""
26303 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26304 "exported (recursively).  For example:"
26305 msgstr ""
26306
26307 # type: verbatim
26308 #: ../tools/virt-win-reg.pl:74
26309 #, no-wrap
26310 msgid ""
26311 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../tools/virt-win-reg.pl:76
26317 msgid ""
26318 "You can also display single values from within registry keys, for example:"
26319 msgstr ""
26320
26321 # type: verbatim
26322 #: ../tools/virt-win-reg.pl:79
26323 #, no-wrap
26324 msgid ""
26325 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26326 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26327 " Windows 7 Enterprise\n"
26328 "\n"
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../tools/virt-win-reg.pl:83
26333 msgid ""
26334 "With C<--merge>, you can merge a textual regedit file into the Windows "
26335 "Registry:"
26336 msgstr ""
26337
26338 # type: verbatim
26339 #: ../tools/virt-win-reg.pl:86
26340 #, no-wrap
26341 msgid ""
26342 " $ virt-win-reg --merge Windows7 changes.reg\n"
26343 "\n"
26344 msgstr ""
26345
26346 # type: =head2
26347 #: ../tools/virt-win-reg.pl:88
26348 msgid "SUPPORTED SYSTEMS"
26349 msgstr ""
26350
26351 # type: textblock
26352 #: ../tools/virt-win-reg.pl:90
26353 msgid ""
26354 "The program currently supports Windows NT-derived guests starting with "
26355 "Windows XP through to at least Windows 7."
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-win-reg.pl:93
26360 msgid ""
26361 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26362 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26363 "and C<HKEY_USERS\\.DEFAULT>."
26364 msgstr ""
26365
26366 # type: textblock
26367 #: ../tools/virt-win-reg.pl:97
26368 msgid ""
26369 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26370 "C<HKEY_USERS>."
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-win-reg.pl:100
26375 msgid ""
26376 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26377 "time."
26378 msgstr ""
26379
26380 # type: =head2
26381 #: ../tools/virt-win-reg.pl:103
26382 msgid "NOTE"
26383 msgstr ""
26384
26385 # type: textblock
26386 #: ../tools/virt-win-reg.pl:105
26387 msgid ""
26388 "This program is only meant for simple access to the registry.  If you want "
26389 "to do complicated things with the registry, we suggest you download the "
26390 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26391 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26392 "L<hivexregedit(1)>."
26393 msgstr ""
26394
26395 # type: =head2
26396 #: ../tools/virt-win-reg.pl:111
26397 msgid "ENCODING"
26398 msgstr ""
26399
26400 # type: textblock
26401 #: ../tools/virt-win-reg.pl:113
26402 msgid ""
26403 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26404 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26405 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26406 "Windows-style line endings, you may need to reencode the whole file before "
26407 "or after processing."
26408 msgstr ""
26409
26410 # type: textblock
26411 #: ../tools/virt-win-reg.pl:119
26412 msgid ""
26413 "To reencode a file from Windows format to Linux (before processing it with "
26414 "the C<--merge> option), you would do something like this:"
26415 msgstr ""
26416
26417 # type: verbatim
26418 #: ../tools/virt-win-reg.pl:122
26419 #, no-wrap
26420 msgid ""
26421 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26422 "\n"
26423 msgstr ""
26424
26425 # type: textblock
26426 #: ../tools/virt-win-reg.pl:124
26427 msgid ""
26428 "To go in the opposite direction, after exporting and before sending the file "
26429 "to a Windows user, do something like this:"
26430 msgstr ""
26431
26432 # type: verbatim
26433 #: ../tools/virt-win-reg.pl:127
26434 #, no-wrap
26435 msgid ""
26436 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26437 "\n"
26438 msgstr ""
26439
26440 # type: textblock
26441 #: ../tools/virt-win-reg.pl:129
26442 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-win-reg.pl:131
26447 msgid ""
26448 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26449 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26450 "style (CRLF) line endings, like this:"
26451 msgstr ""
26452
26453 # type: verbatim
26454 #: ../tools/virt-win-reg.pl:135
26455 #, no-wrap
26456 msgid ""
26457 " $ file software.reg\n"
26458 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26459 " with CRLF line terminators\n"
26460 "\n"
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-win-reg.pl:139
26465 msgid "This file would need conversion before you could C<--merge> it."
26466 msgstr ""
26467
26468 # type: textblock
26469 #: ../tools/virt-win-reg.pl:143
26470 msgid ""
26471 "Be careful when passing parameters containing C<\\> (backslash) in the "
26472 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26473 "(but not both) to protect them from the shell."
26474 msgstr ""
26475
26476 # type: textblock
26477 #: ../tools/virt-win-reg.pl:147
26478 msgid "Paths and value names are case-insensitive."
26479 msgstr ""
26480
26481 # type: =head2
26482 #: ../tools/virt-win-reg.pl:149
26483 msgid "CurrentControlSet etc."
26484 msgstr ""
26485
26486 # type: textblock
26487 #: ../tools/virt-win-reg.pl:151
26488 msgid ""
26489 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26490 "Registry at the level of the hive file, and therefore you cannot modify "
26491 "these."
26492 msgstr ""
26493
26494 # type: textblock
26495 #: ../tools/virt-win-reg.pl:155
26496 msgid ""
26497 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26498 "circumstances it might refer to another control set.  The way to find out is "
26499 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26500 msgstr ""
26501
26502 # type: verbatim
26503 #: ../tools/virt-win-reg.pl:159
26504 #, no-wrap
26505 msgid ""
26506 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26507 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26508 " \"Current\"=dword:00000001\n"
26509 " \"Default\"=dword:00000001\n"
26510 " \"Failed\"=dword:00000000\n"
26511 " \"LastKnownGood\"=dword:00000002\n"
26512 "\n"
26513 msgstr ""
26514
26515 # type: textblock
26516 #: ../tools/virt-win-reg.pl:166
26517 msgid "\"Current\" is the one which Windows will choose when it boots."
26518 msgstr ""
26519
26520 # type: textblock
26521 #: ../tools/virt-win-reg.pl:168
26522 msgid ""
26523 "Similarly, other C<Current...> keys in the path may need to be replaced."
26524 msgstr ""
26525
26526 # type: =item
26527 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26528 msgid "B<--debug>"
26529 msgstr ""
26530
26531 # type: textblock
26532 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26533 msgid "Enable debugging messages."
26534 msgstr ""
26535
26536 # type: =item
26537 #: ../tools/virt-win-reg.pl:232
26538 msgid "B<--merge>"
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../tools/virt-win-reg.pl:234
26543 msgid ""
26544 "In merge mode, this merges a textual regedit file into the Windows Registry "
26545 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26546 "displays or exports Registry entries instead."
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../tools/virt-win-reg.pl:238
26551 msgid ""
26552 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26553 "result in disk corruption.  However exporting (without this flag)  is always "
26554 "safe."
26555 msgstr ""
26556
26557 # type: =item
26558 #: ../tools/virt-win-reg.pl:246
26559 msgid "B<--encoding> UTF-16LE|ASCII"
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-win-reg.pl:248
26564 msgid ""
26565 "When merging (only), you may need to specify the encoding for strings to be "
26566 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26567 "(3)/ENCODING STRINGS>."
26568 msgstr ""
26569
26570 # type: textblock
26571 #: ../tools/virt-win-reg.pl:252
26572 msgid ""
26573 "The default is to use UTF-16LE, which should work with recent versions of "
26574 "Windows."
26575 msgstr ""
26576
26577 # type: textblock
26578 #: ../tools/virt-win-reg.pl:486
26579 msgid ""
26580 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26581 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26582 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26587 msgid ""
26588 "When reporting bugs, please enable debugging and capture the I<complete> "
26589 "output:"
26590 msgstr ""
26591
26592 # type: verbatim
26593 #: ../tools/virt-win-reg.pl:504
26594 #, no-wrap
26595 msgid ""
26596 " export LIBGUESTFS_DEBUG=1\n"
26597 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26598 "\n"
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-win-reg.pl:507
26603 msgid ""
26604 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26605 "redhat.com/>"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-df.pl:36
26610 msgid "virt-df - Display free space on virtual filesystems"
26611 msgstr ""
26612
26613 # type: verbatim
26614 #: ../tools/virt-df.pl:40
26615 #, no-wrap
26616 msgid ""
26617 " virt-df [--options]\n"
26618 "\n"
26619 msgstr ""
26620
26621 # type: verbatim
26622 #: ../tools/virt-df.pl:42
26623 #, no-wrap
26624 msgid ""
26625 " virt-df [--options] domname\n"
26626 "\n"
26627 msgstr ""
26628
26629 # type: verbatim
26630 #: ../tools/virt-df.pl:44
26631 #, no-wrap
26632 msgid ""
26633 " virt-df [--options] disk.img [disk.img ...]\n"
26634 "\n"
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-df.pl:48
26639 msgid ""
26640 "C<virt-df> is a command line tool to display free space on virtual machine "
26641 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26642 "space allocated to a virtual machine, but can look inside the virtual "
26643 "machine to see how much space is really being used."
26644 msgstr ""
26645
26646 # type: textblock
26647 #: ../tools/virt-df.pl:53
26648 msgid ""
26649 "It is like the L<df(1)> command, but for virtual machines, except that it "
26650 "also works for Windows virtual machines."
26651 msgstr ""
26652
26653 # type: textblock
26654 #: ../tools/virt-df.pl:56
26655 msgid ""
26656 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26657 "of all active and inactive guests, and performs a C<df>-type operation on "
26658 "each one in turn, printing out the results."
26659 msgstr ""
26660
26661 # type: textblock
26662 #: ../tools/virt-df.pl:60
26663 msgid ""
26664 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26665 "either the single named libvirt domain, or on the disk image(s) listed on "
26666 "the command line (which must all belong to a single VM).  In this mode (with "
26667 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26668 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26669 msgstr ""
26670
26671 # type: textblock
26672 #: ../tools/virt-df.pl:67
26673 msgid ""
26674 "Use the C<--csv> option to get a format which can be easily parsed by other "
26675 "programs.  Other options are mostly similar to standard C<df> options.  See "
26676 "below for the complete list."
26677 msgstr ""
26678
26679 # type: =item
26680 #: ../tools/virt-df.pl:107
26681 msgid "B<--csv>"
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-df.pl:109
26686 msgid ""
26687 "Write out the results in CSV format (comma-separated values).  This format "
26688 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26689 "ABOUT CSV FORMAT> below."
26690 msgstr ""
26691
26692 # type: =item
26693 #: ../tools/virt-df.pl:134
26694 msgid "B<--human-readable> | B<-h>"
26695 msgstr ""
26696
26697 # type: textblock
26698 #: ../tools/virt-df.pl:136
26699 msgid "Print sizes in human-readable format."
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-df.pl:138
26704 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26705 msgstr ""
26706
26707 # type: =item
26708 #: ../tools/virt-df.pl:144
26709 msgid "B<--inodes> | B<-i>"
26710 msgstr ""
26711
26712 # type: textblock
26713 #: ../tools/virt-df.pl:146
26714 msgid "Print inodes instead of blocks."
26715 msgstr ""
26716
26717 # type: =item
26718 #: ../tools/virt-df.pl:152
26719 msgid "B<--one-per-guest>"
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-df.pl:154
26724 msgid ""
26725 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26726 "disks from several guests to a single libguestfs appliance."
26727 msgstr ""
26728
26729 # type: textblock
26730 #: ../tools/virt-df.pl:157
26731 msgid "You might use this option in the following circumstances:"
26732 msgstr ""
26733
26734 # type: textblock
26735 #: ../tools/virt-df.pl:163
26736 msgid ""
26737 "If you think an untrusted guest might actively try to exploit the libguestfs "
26738 "appliance kernel, then this prevents one guest from interfering with the "
26739 "stats printed for another guest."
26740 msgstr ""
26741
26742 # type: textblock
26743 #: ../tools/virt-df.pl:169
26744 msgid ""
26745 "If the kernel has a bug which stops it from accessing a filesystem in one "
26746 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26747 "and report stats for further guests."
26748 msgstr ""
26749
26750 # type: =item
26751 #: ../tools/virt-df.pl:180
26752 msgid "B<--uuid>"
26753 msgstr ""
26754
26755 # type: textblock
26756 #: ../tools/virt-df.pl:182
26757 msgid ""
26758 "Print UUIDs instead of names.  This is useful for following a guest even "
26759 "when the guest is migrated or renamed, or when two guests happen to have the "
26760 "same name."
26761 msgstr ""
26762
26763 # type: textblock
26764 #: ../tools/virt-df.pl:186
26765 msgid ""
26766 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26767 "images, we still print the disk image name even when this option is "
26768 "specified."
26769 msgstr ""
26770
26771 # type: =head1
26772 #: ../tools/virt-df.pl:609
26773 msgid "NOTE ABOUT CSV FORMAT"
26774 msgstr ""
26775
26776 # type: textblock
26777 #: ../tools/virt-df.pl:611
26778 msgid ""
26779 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26780 "should be easy to parse, but it is definitely not easy to parse."
26781 msgstr ""
26782
26783 # type: textblock
26784 #: ../tools/virt-df.pl:614
26785 msgid ""
26786 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26787 "reliably.  This example has two columns:"
26788 msgstr ""
26789
26790 # type: verbatim
26791 #: ../tools/virt-df.pl:617
26792 #, no-wrap
26793 msgid ""
26794 " \"foo,bar\",baz\n"
26795 "\n"
26796 msgstr ""
26797
26798 # type: textblock
26799 #: ../tools/virt-df.pl:619
26800 msgid ""
26801 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26802 "reliably.  This example has one row:"
26803 msgstr ""
26804
26805 # type: verbatim
26806 #: ../tools/virt-df.pl:622
26807 #, no-wrap
26808 msgid ""
26809 " \"foo\n"
26810 " bar\",baz\n"
26811 "\n"
26812 msgstr ""
26813
26814 # type: textblock
26815 #: ../tools/virt-df.pl:625
26816 msgid ""
26817 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26818 "packaged in major Linux distributions)."
26819 msgstr ""
26820
26821 # type: textblock
26822 #: ../tools/virt-df.pl:628
26823 msgid ""
26824 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26825 "or Python's built-in csv library)."
26826 msgstr ""
26827
26828 # type: textblock
26829 #: ../tools/virt-df.pl:631
26830 msgid "Most spreadsheets and databases can import CSV directly."
26831 msgstr ""
26832
26833 # type: textblock
26834 #: ../tools/virt-df.pl:642
26835 msgid ""
26836 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26837 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26838 msgstr ""
26839
26840 # type: textblock
26841 #: ../tools/virt-ls.pl:34
26842 msgid "virt-ls - List files in a virtual machine"
26843 msgstr ""
26844
26845 # type: verbatim
26846 #: ../tools/virt-ls.pl:38
26847 #, no-wrap
26848 msgid ""
26849 " virt-ls [--options] domname directory\n"
26850 "\n"
26851 msgstr ""
26852
26853 # type: verbatim
26854 #: ../tools/virt-ls.pl:40
26855 #, no-wrap
26856 msgid ""
26857 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26858 "\n"
26859 msgstr ""
26860
26861 # type: textblock
26862 #: ../tools/virt-ls.pl:44
26863 msgid ""
26864 "C<virt-ls> is a command line tool to list the names of files in a directory "
26865 "inside a virtual machine or disk image."
26866 msgstr ""
26867
26868 # type: textblock
26869 #: ../tools/virt-ls.pl:47
26870 msgid ""
26871 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26872 "For more complex cases you should look at the L<guestfish(1)> tool."
26873 msgstr ""
26874
26875 # type: textblock
26876 #: ../tools/virt-ls.pl:51
26877 msgid ""
26878 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26879 "simple listing is like the ordinary L<ls(1)> command:"
26880 msgstr ""
26881
26882 # type: verbatim
26883 #: ../tools/virt-ls.pl:54
26884 #, no-wrap
26885 msgid ""
26886 " $ virt-ls myguest /\n"
26887 " bin\n"
26888 " boot\n"
26889 " [etc.]\n"
26890 "\n"
26891 msgstr ""
26892
26893 # type: textblock
26894 #: ../tools/virt-ls.pl:59
26895 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26896 msgstr ""
26897
26898 # type: verbatim
26899 #: ../tools/virt-ls.pl:61
26900 #, no-wrap
26901 msgid ""
26902 " $ virt-ls -l myguest /\n"
26903 " total 204\n"
26904 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26905 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26906 " [etc.]\n"
26907 "\n"
26908 msgstr ""
26909
26910 # type: textblock
26911 #: ../tools/virt-ls.pl:67
26912 msgid ""
26913 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26914 "and directories recursively:"
26915 msgstr ""
26916
26917 # type: verbatim
26918 #: ../tools/virt-ls.pl:70
26919 #, no-wrap
26920 msgid ""
26921 " $ virt-ls -R myguest /tmp\n"
26922 " foo\n"
26923 " foo/bar\n"
26924 " [etc.]\n"
26925 "\n"
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-ls.pl:75
26930 msgid ""
26931 "You I<cannot> combine these options.  To do more complicated things, use "
26932 "L<guestfish(1)>."
26933 msgstr ""
26934
26935 # type: =item
26936 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26937 #: ../tools/virt-list-partitions.pl:112
26938 msgid "B<-l> | B<--long>"
26939 msgstr ""
26940
26941 # type: =item
26942 #: ../tools/virt-ls.pl:133
26943 msgid "B<-R> | B<--recursive>"
26944 msgstr ""
26945
26946 # type: textblock
26947 #: ../tools/virt-ls.pl:135
26948 msgid ""
26949 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26950 "simple, flat list of the files in the named directory."
26951 msgstr ""
26952
26953 # type: textblock
26954 #: ../tools/virt-ls.pl:138
26955 msgid ""
26956 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26957 "like the plain C<ls -l> command)."
26958 msgstr ""
26959
26960 # type: textblock
26961 #: ../tools/virt-ls.pl:141
26962 msgid ""
26963 "C<virt-ls -R> produces a recursive list of files starting at the named "
26964 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26965 "details."
26966 msgstr ""
26967
26968 # type: textblock
26969 #: ../tools/virt-ls.pl:145
26970 msgid "You cannot combine these options."
26971 msgstr ""
26972
26973 # type: textblock
26974 #: ../tools/virt-ls.pl:234
26975 msgid ""
26976 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26977 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26978 "org/>."
26979 msgstr ""
26980
26981 # type: textblock
26982 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26983 #: ../tools/virt-tar.pl:298
26984 msgid "Copyright (C) 2009 Red Hat Inc."
26985 msgstr ""
26986
26987 # type: textblock
26988 #: ../tools/virt-resize.pl:42
26989 msgid "virt-resize - Resize a virtual machine disk"
26990 msgstr ""
26991
26992 # type: verbatim
26993 #: ../tools/virt-resize.pl:46
26994 #, no-wrap
26995 msgid ""
26996 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26997 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26998 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26999 "\n"
27000 msgstr ""
27001
27002 # type: textblock
27003 #: ../tools/virt-resize.pl:52
27004 msgid ""
27005 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27006 "larger or smaller overall, and resizing or deleting any partitions contained "
27007 "within."
27008 msgstr ""
27009
27010 # type: textblock
27011 #: ../tools/virt-resize.pl:56
27012 msgid ""
27013 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27014 "not> be used on live virtual machines - for consistent results, shut the "
27015 "virtual machine down before resizing it."
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-resize.pl:60
27020 msgid ""
27021 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
27022 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
27023 "read those manual pages first."
27024 msgstr ""
27025
27026 # type: textblock
27027 #: ../tools/virt-resize.pl:68
27028 msgid ""
27029 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27030 "fill the extra 5GB of space."
27031 msgstr ""
27032
27033 # type: verbatim
27034 #: ../tools/virt-resize.pl:71
27035 #, no-wrap
27036 msgid ""
27037 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27038 " virt-list-partitions -lht olddisk\n"
27039 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27040 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27041 "\n"
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-resize.pl:76
27046 msgid ""
27047 "As above, but make the /boot partition 200MB bigger, while giving the "
27048 "remaining space to /dev/sda2:"
27049 msgstr ""
27050
27051 # type: verbatim
27052 #: ../tools/virt-resize.pl:79
27053 #, no-wrap
27054 msgid ""
27055 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27056 "\n"
27057 msgstr ""
27058
27059 # type: textblock
27060 #: ../tools/virt-resize.pl:81
27061 msgid "As above, but the output format will be uncompressed qcow2:"
27062 msgstr ""
27063
27064 # type: verbatim
27065 #: ../tools/virt-resize.pl:83
27066 #, no-wrap
27067 msgid ""
27068 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27069 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27070 "\n"
27071 msgstr ""
27072
27073 # type: =head1
27074 #: ../tools/virt-resize.pl:86
27075 msgid "DETAILED USAGE"
27076 msgstr ""
27077
27078 # type: =head2
27079 #: ../tools/virt-resize.pl:88
27080 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27081 msgstr ""
27082
27083 # type: =item
27084 #: ../tools/virt-resize.pl:92
27085 msgid "1. Shut down the virtual machine"
27086 msgstr ""
27087
27088 # type: =item
27089 #: ../tools/virt-resize.pl:94
27090 msgid "2. Locate input disk image"
27091 msgstr ""
27092
27093 # type: textblock
27094 #: ../tools/virt-resize.pl:96
27095 msgid ""
27096 "Locate the input disk image (ie. the file or device on the host containing "
27097 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27098 "dumpxml> like this to find the disk image name:"
27099 msgstr ""
27100
27101 # type: verbatim
27102 #: ../tools/virt-resize.pl:100
27103 #, no-wrap
27104 msgid ""
27105 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27106 " Found 1 nodes:\n"
27107 " -- NODE --\n"
27108 " <source dev=\"/dev/vg/lv_guest\" />\n"
27109 "\n"
27110 msgstr ""
27111
27112 # type: =item
27113 #: ../tools/virt-resize.pl:105
27114 msgid "3. Look at current sizing"
27115 msgstr ""
27116
27117 # type: textblock
27118 #: ../tools/virt-resize.pl:107
27119 msgid ""
27120 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
27121 msgstr ""
27122
27123 # type: verbatim
27124 #: ../tools/virt-resize.pl:110
27125 #, no-wrap
27126 msgid ""
27127 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27128 " /dev/sda1 ext3 101.9M\n"
27129 " /dev/sda2 pv 7.9G\n"
27130 " /dev/sda device 8.0G\n"
27131 "\n"
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-resize.pl:115
27136 msgid ""
27137 "(This example is a virtual machine with an 8 GB disk which we would like to "
27138 "expand up to 10 GB)."
27139 msgstr ""
27140
27141 # type: =item
27142 #: ../tools/virt-resize.pl:118
27143 msgid "4. Create output disk"
27144 msgstr ""
27145
27146 # type: textblock
27147 #: ../tools/virt-resize.pl:120
27148 msgid ""
27149 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27150 "to store the resized output disk."
27151 msgstr ""
27152
27153 # type: textblock
27154 #: ../tools/virt-resize.pl:123
27155 msgid ""
27156 "To store the resized disk image in a file, create a file of a suitable size:"
27157 msgstr ""
27158
27159 # type: verbatim
27160 #: ../tools/virt-resize.pl:126
27161 #, no-wrap
27162 msgid ""
27163 " # rm -f outdisk\n"
27164 " # truncate -s 10G outdisk\n"
27165 "\n"
27166 msgstr ""
27167
27168 # type: textblock
27169 #: ../tools/virt-resize.pl:129
27170 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27171 msgstr ""
27172
27173 # type: verbatim
27174 #: ../tools/virt-resize.pl:131
27175 #, no-wrap
27176 msgid ""
27177 " # lvcreate -L 10G -n lv_name vg_name\n"
27178 "\n"
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-resize.pl:133
27183 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27184 msgstr ""
27185
27186 # type: verbatim
27187 #: ../tools/virt-resize.pl:135
27188 #, no-wrap
27189 msgid ""
27190 " # virsh pool-list\n"
27191 " # virsh vol-create-as poolname newvol 10G\n"
27192 "\n"
27193 msgstr ""
27194
27195 # type: =item
27196 #: ../tools/virt-resize.pl:138
27197 msgid "5. Resize"
27198 msgstr ""
27199
27200 # type: textblock
27201 #: ../tools/virt-resize.pl:140
27202 msgid ""
27203 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27204 "file) and the output disk.  The output disk is the one created in the "
27205 "previous step."
27206 msgstr ""
27207
27208 # type: verbatim
27209 #: ../tools/virt-resize.pl:144
27210 #, no-wrap
27211 msgid ""
27212 " # virt-resize indisk outdisk\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: textblock
27217 #: ../tools/virt-resize.pl:146
27218 msgid ""
27219 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27220 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27221 "larger, then an extra, empty partition is created at the end of the disk "
27222 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27223 "error."
27224 msgstr ""
27225
27226 # type: textblock
27227 #: ../tools/virt-resize.pl:152
27228 msgid ""
27229 "More realistically you'd want to expand existing partitions in the disk "
27230 "image by passing extra options (for the full list see the L</OPTIONS> "
27231 "section below)."
27232 msgstr ""
27233
27234 # type: textblock
27235 #: ../tools/virt-resize.pl:156
27236 msgid ""
27237 "L</--expand> is the most useful option.  It expands the named partition "
27238 "within the disk to fill any extra space:"
27239 msgstr ""
27240
27241 # type: verbatim
27242 #: ../tools/virt-resize.pl:159
27243 #, no-wrap
27244 msgid ""
27245 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27246 "\n"
27247 msgstr ""
27248
27249 # type: textblock
27250 #: ../tools/virt-resize.pl:161
27251 msgid ""
27252 "(In this case, an extra partition is I<not> created at the end of the disk, "
27253 "because there will be no unused space)."
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-resize.pl:164
27258 msgid ""
27259 "L</--resize> is the other commonly used option.  The following would "
27260 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27261 "rest of the available space:"
27262 msgstr ""
27263
27264 # type: verbatim
27265 #: ../tools/virt-resize.pl:168
27266 #, no-wrap
27267 msgid ""
27268 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27269 "     indisk outdisk\n"
27270 "\n"
27271 msgstr ""
27272
27273 # type: textblock
27274 #: ../tools/virt-resize.pl:171
27275 msgid ""
27276 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27277 "if virt-resize knows how, it will resize the contents, the equivalent of "
27278 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27279 ">.  However virt-resize does not know how to resize some filesystems, so you "
27280 "would have to online resize them after booting the guest.  And virt-resize "
27281 "also does not resize anything inside an LVM PV, it just resizes the PV "
27282 "itself and leaves the user to resize any LVs inside that PV as desired."
27283 msgstr ""
27284
27285 # type: textblock
27286 #: ../tools/virt-resize.pl:180
27287 msgid "Other options are covered below."
27288 msgstr ""
27289
27290 # type: =item
27291 #: ../tools/virt-resize.pl:182
27292 msgid "6. Test"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:184
27297 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-resize.pl:186
27302 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27303 msgstr ""
27304
27305 # type: verbatim
27306 #: ../tools/virt-resize.pl:188
27307 #, no-wrap
27308 msgid ""
27309 " # virsh edit guestname\n"
27310 "\n"
27311 msgstr ""
27312
27313 # type: textblock
27314 #: ../tools/virt-resize.pl:190
27315 msgid ""
27316 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27317 "html#elementsDisks>"
27318 msgstr ""
27319
27320 # type: textblock
27321 #: ../tools/virt-resize.pl:193
27322 msgid "Then start up the domain with the new, resized disk:"
27323 msgstr ""
27324
27325 # type: verbatim
27326 #: ../tools/virt-resize.pl:195
27327 #, no-wrap
27328 msgid ""
27329 " # virsh start guestname\n"
27330 "\n"
27331 msgstr ""
27332
27333 # type: textblock
27334 #: ../tools/virt-resize.pl:197
27335 msgid ""
27336 "and check that it still works.  See also the L</NOTES> section below for "
27337 "additional information."
27338 msgstr ""
27339
27340 # type: =item
27341 #: ../tools/virt-resize.pl:200
27342 msgid "7. Resize LVs etc inside the guest"
27343 msgstr ""
27344
27345 # type: textblock
27346 #: ../tools/virt-resize.pl:202
27347 msgid "(This can also be done offline using L<guestfish(1)>)"
27348 msgstr ""
27349
27350 # type: textblock
27351 #: ../tools/virt-resize.pl:204
27352 msgid ""
27353 "Once the guest has booted you should see the new space available, at least "
27354 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27355 "may need to resize LVs inside PVs, and also resize filesystem types that "
27356 "virt-resize does not know how to expand."
27357 msgstr ""
27358
27359 # type: =head2
27360 #: ../tools/virt-resize.pl:211
27361 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27362 msgstr ""
27363
27364 # type: textblock
27365 #: ../tools/virt-resize.pl:213
27366 msgid ""
27367 "Shrinking is somewhat more complex than expanding, and only an overview is "
27368 "given here."
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-resize.pl:216
27373 msgid ""
27374 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27375 "filesystems).  The user has to shrink content before passing the disk image "
27376 "to virt-resize, and virt-resize will check that the content has been shrunk "
27377 "properly."
27378 msgstr ""
27379
27380 # type: textblock
27381 #: ../tools/virt-resize.pl:221
27382 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27383 msgstr ""
27384
27385 # type: textblock
27386 #: ../tools/virt-resize.pl:223
27387 msgid ""
27388 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27389 "steps 3 and 4 above to allocate a new disk image."
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-resize.pl:226
27394 msgid ""
27395 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27396 msgstr ""
27397
27398 # type: =head2
27399 #: ../tools/virt-resize.pl:229
27400 msgid "IGNORING OR DELETING PARTITIONS"
27401 msgstr ""
27402
27403 # type: textblock
27404 #: ../tools/virt-resize.pl:231
27405 msgid ""
27406 "virt-resize also gives a convenient way to ignore or delete partitions when "
27407 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27408 "up the copy where you don't care about the existing contents of a "
27409 "partition.  Deleting a partition removes it completely, but note that it "
27410 "also renumbers any partitions after the one which is deleted, which can "
27411 "leave some guests unbootable."
27412 msgstr ""
27413
27414 # type: =head2
27415 #: ../tools/virt-resize.pl:238
27416 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27417 msgstr ""
27418
27419 # type: textblock
27420 #: ../tools/virt-resize.pl:240
27421 msgid ""
27422 "If the input disk is in qcow2 format, then you may prefer that the output is "
27423 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27424 "the fly.  The output format is simply determined by the format of the empty "
27425 "output container that you provide.  Thus to create qcow2 output, use:"
27426 msgstr ""
27427
27428 # type: verbatim
27429 #: ../tools/virt-resize.pl:246
27430 #, no-wrap
27431 msgid ""
27432 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27433 "\n"
27434 msgstr ""
27435
27436 # type: textblock
27437 #: ../tools/virt-resize.pl:248
27438 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27439 msgstr ""
27440
27441 # type: textblock
27442 #: ../tools/virt-resize.pl:250
27443 msgid "Similarly, to get non-sparse raw output use:"
27444 msgstr ""
27445
27446 # type: verbatim
27447 #: ../tools/virt-resize.pl:252
27448 #, no-wrap
27449 msgid ""
27450 " fallocate -l size outdisk\n"
27451 "\n"
27452 msgstr ""
27453
27454 # type: textblock
27455 #: ../tools/virt-resize.pl:254
27456 msgid ""
27457 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27458 "dev/zero of=outdisk bs=1M count=..>)"
27459 msgstr ""
27460
27461 # type: textblock
27462 #: ../tools/virt-resize.pl:267
27463 msgid "Display help."
27464 msgstr ""
27465
27466 # type: =item
27467 #: ../tools/virt-resize.pl:281
27468 msgid "B<--resize part=size>"
27469 msgstr ""
27470
27471 # type: textblock
27472 #: ../tools/virt-resize.pl:283
27473 msgid ""
27474 "Resize the named partition (expanding or shrinking it) so that it has the "
27475 "given size."
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-resize.pl:286
27480 msgid ""
27481 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27482 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27483 "Exabytes; or as a percentage of the current size; or as a relative number or "
27484 "percentage.  For example:"
27485 msgstr ""
27486
27487 # type: verbatim
27488 #: ../tools/virt-resize.pl:291
27489 #, no-wrap
27490 msgid ""
27491 " --resize /dev/sda2=10G\n"
27492 "\n"
27493 msgstr ""
27494
27495 # type: verbatim
27496 #: ../tools/virt-resize.pl:293
27497 #, no-wrap
27498 msgid ""
27499 " --resize /dev/sda4=90%\n"
27500 "\n"
27501 msgstr ""
27502
27503 # type: verbatim
27504 #: ../tools/virt-resize.pl:295
27505 #, no-wrap
27506 msgid ""
27507 " --resize /dev/sda2=+1G\n"
27508 "\n"
27509 msgstr ""
27510
27511 # type: verbatim
27512 #: ../tools/virt-resize.pl:297
27513 #, no-wrap
27514 msgid ""
27515 " --resize /dev/sda2=-200M\n"
27516 "\n"
27517 msgstr ""
27518
27519 # type: verbatim
27520 #: ../tools/virt-resize.pl:299
27521 #, no-wrap
27522 msgid ""
27523 " --resize /dev/sda1=+128K\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: verbatim
27528 #: ../tools/virt-resize.pl:301
27529 #, no-wrap
27530 msgid ""
27531 " --resize /dev/sda1=+10%\n"
27532 "\n"
27533 msgstr ""
27534
27535 # type: verbatim
27536 #: ../tools/virt-resize.pl:303
27537 #, no-wrap
27538 msgid ""
27539 " --resize /dev/sda1=-10%\n"
27540 "\n"
27541 msgstr ""
27542
27543 # type: textblock
27544 #: ../tools/virt-resize.pl:305
27545 msgid ""
27546 "You can increase the size of any partition.  Virt-resize will expand the "
27547 "direct content of the partition if it knows how (see C<--expand> below)."
27548 msgstr ""
27549
27550 # type: textblock
27551 #: ../tools/virt-resize.pl:309
27552 msgid ""
27553 "You can only I<decrease> the size of partitions that contain filesystems or "
27554 "PVs which have already been shrunk.  Virt-resize will check this has been "
27555 "done before proceeding, or else will print an error (see also C<--resize-"
27556 "force>)."
27557 msgstr ""
27558
27559 # type: textblock
27560 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27561 #: ../tools/virt-resize.pl:423
27562 msgid "You can give this option multiple times."
27563 msgstr ""
27564
27565 # type: =item
27566 #: ../tools/virt-resize.pl:320
27567 msgid "B<--resize-force part=size>"
27568 msgstr ""
27569
27570 # type: textblock
27571 #: ../tools/virt-resize.pl:322
27572 msgid ""
27573 "This is the same as C<--resize> except that it will let you decrease the "
27574 "size of any partition.  Generally this means you will lose any data which "
27575 "was at the end of the partition you shrink, but you may not care about that "
27576 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27577 "as a swap partition)."
27578 msgstr ""
27579
27580 # type: textblock
27581 #: ../tools/virt-resize.pl:328
27582 msgid "See also the C<--ignore> option."
27583 msgstr ""
27584
27585 # type: =item
27586 #: ../tools/virt-resize.pl:334
27587 msgid "B<--expand part>"
27588 msgstr ""
27589
27590 # type: textblock
27591 #: ../tools/virt-resize.pl:336
27592 msgid ""
27593 "Expand the named partition so it uses up all extra space (space left over "
27594 "after any other resize changes that you request have been done)."
27595 msgstr ""
27596
27597 # type: textblock
27598 #: ../tools/virt-resize.pl:339
27599 msgid ""
27600 "If virt-resize knows how, it will expand the direct content of the "
27601 "partition.  For example, if the partition is an LVM PV, it will expand the "
27602 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27603 "content it doesn't know about alone."
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-resize.pl:344
27608 msgid "Currently virt-resize can resize:"
27609 msgstr ""
27610
27611 # type: textblock
27612 #: ../tools/virt-resize.pl:350
27613 msgid ""
27614 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27615 "partition."
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-resize.pl:355
27620 msgid ""
27621 "NTFS filesystems contained directly in a partition, if libguestfs was "
27622 "compiled with support for NTFS."
27623 msgstr ""
27624
27625 # type: textblock
27626 #: ../tools/virt-resize.pl:358
27627 msgid ""
27628 "The filesystem must have been shut down consistently last time it was used.  "
27629 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27630 "consistency check, so at the first boot after resizing Windows will check "
27631 "the disk."
27632 msgstr ""
27633
27634 # type: textblock
27635 #: ../tools/virt-resize.pl:365
27636 msgid ""
27637 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27638 "inside the PV.  The user will have to resize LVs as desired."
27639 msgstr ""
27640
27641 # type: textblock
27642 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27643 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27644 msgstr ""
27645
27646 # type: =item
27647 #: ../tools/virt-resize.pl:377
27648 msgid "B<--shrink part>"
27649 msgstr ""
27650
27651 # type: textblock
27652 #: ../tools/virt-resize.pl:379
27653 msgid ""
27654 "Shrink the named partition until the overall disk image fits in the "
27655 "destination.  The named partition B<must> contain a filesystem or PV which "
27656 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27657 "online tools).  Virt-resize will check this and give an error if it has not "
27658 "been done."
27659 msgstr ""
27660
27661 # type: textblock
27662 #: ../tools/virt-resize.pl:385
27663 msgid ""
27664 "The amount by which the overall disk must be shrunk (after carrying out all "
27665 "other operations requested by the user) is called the \"deficit\".  For "
27666 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27667 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27668 "would give an error unless the user specified a partition to shrink and that "
27669 "partition had more than a gigabyte of free space."
27670 msgstr ""
27671
27672 # type: =item
27673 #: ../tools/virt-resize.pl:399
27674 msgid "B<--ignore part>"
27675 msgstr ""
27676
27677 # type: textblock
27678 #: ../tools/virt-resize.pl:401
27679 msgid ""
27680 "Ignore the named partition.  Effectively this means the partition is "
27681 "allocated on the destination disk, but the content is not copied across from "
27682 "the source disk.  The content of the partition will be blank (all zero "
27683 "bytes)."
27684 msgstr ""
27685
27686 # type: =item
27687 #: ../tools/virt-resize.pl:412
27688 msgid "B<--delete part>"
27689 msgstr ""
27690
27691 # type: textblock
27692 #: ../tools/virt-resize.pl:414
27693 msgid ""
27694 "Delete the named partition.  It would be more accurate to describe this as "
27695 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27696 "the original disk image is left intact."
27697 msgstr ""
27698
27699 # type: textblock
27700 #: ../tools/virt-resize.pl:418
27701 msgid ""
27702 "Note that when you delete a partition, then anything contained in the "
27703 "partition is also deleted.  Furthermore, this causes any partitions that "
27704 "come after to be I<renumbered>, which can easily make your guest unbootable."
27705 msgstr ""
27706
27707 # type: =item
27708 #: ../tools/virt-resize.pl:429
27709 msgid "B<--LV-expand logvol>"
27710 msgstr ""
27711
27712 # type: textblock
27713 #: ../tools/virt-resize.pl:431
27714 msgid ""
27715 "This takes the logical volume and, as a final step, expands it to fill all "
27716 "the space available in its volume group.  A typical usage, assuming a Linux "
27717 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27718 "lv_root> would be:"
27719 msgstr ""
27720
27721 # type: verbatim
27722 #: ../tools/virt-resize.pl:436
27723 #, no-wrap
27724 msgid ""
27725 " virt-resize indisk outdisk \\\n"
27726 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27727 "\n"
27728 msgstr ""
27729
27730 # type: textblock
27731 #: ../tools/virt-resize.pl:439
27732 msgid ""
27733 "This would first expand the partition (and PV), and then expand the root "
27734 "device to fill the extra space in the PV."
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-resize.pl:442
27739 msgid ""
27740 "The contents of the LV are also resized if virt-resize knows how to do "
27741 "that.  You can stop virt-resize from trying to expand the content by using "
27742 "the option C<--no-expand-content>."
27743 msgstr ""
27744
27745 # type: textblock
27746 #: ../tools/virt-resize.pl:446
27747 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27748 msgstr ""
27749
27750 # type: textblock
27751 #: ../tools/virt-resize.pl:449
27752 msgid ""
27753 "You can give this option multiple times, I<but> it doesn't make sense to do "
27754 "this unless the logical volumes you specify are all in different volume "
27755 "groups."
27756 msgstr ""
27757
27758 # type: =item
27759 #: ../tools/virt-resize.pl:457
27760 msgid "B<--no-copy-boot-loader>"
27761 msgstr ""
27762
27763 # type: textblock
27764 #: ../tools/virt-resize.pl:459
27765 msgid ""
27766 "By default, virt-resize copies over some sectors at the start of the disk "
27767 "(up to the beginning of the first partition).  Commonly these sectors "
27768 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27769 "in order for the guest to boot correctly."
27770 msgstr ""
27771
27772 # type: textblock
27773 #: ../tools/virt-resize.pl:464
27774 msgid ""
27775 "If you specify this flag, then this initial copy is not done.  You may need "
27776 "to reinstall the boot loader in this case."
27777 msgstr ""
27778
27779 # type: =item
27780 #: ../tools/virt-resize.pl:472
27781 msgid "B<--no-extra-partition>"
27782 msgstr ""
27783
27784 # type: textblock
27785 #: ../tools/virt-resize.pl:474
27786 msgid ""
27787 "By default, virt-resize creates an extra partition if there is any extra, "
27788 "unused space after all resizing has happened.  Use this option to prevent "
27789 "the extra partition from being created.  If you do this then the extra space "
27790 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27791 "tool in the guest."
27792 msgstr ""
27793
27794 # type: textblock
27795 #: ../tools/virt-resize.pl:480
27796 msgid ""
27797 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27798 "will be created."
27799 msgstr ""
27800
27801 # type: =item
27802 #: ../tools/virt-resize.pl:487
27803 msgid "B<--no-expand-content>"
27804 msgstr ""
27805
27806 # type: textblock
27807 #: ../tools/virt-resize.pl:489
27808 msgid ""
27809 "By default, virt-resize will try to expand the direct contents of "
27810 "partitions, if it knows how (see C<--expand> option above)."
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-resize.pl:492
27815 msgid ""
27816 "If you give the C<--no-expand-content> option then virt-resize will not "
27817 "attempt this."
27818 msgstr ""
27819
27820 # type: =item
27821 #: ../tools/virt-resize.pl:499
27822 msgid "B<-d> | B<--debug>"
27823 msgstr ""
27824
27825 # type: =item
27826 #: ../tools/virt-resize.pl:507
27827 msgid "B<-n> | B<--dryrun>"
27828 msgstr ""
27829
27830 # type: textblock
27831 #: ../tools/virt-resize.pl:509
27832 msgid "Print a summary of what would be done, but don't do anything."
27833 msgstr ""
27834
27835 # type: =item
27836 #: ../tools/virt-resize.pl:515
27837 msgid "B<-q> | B<--quiet>"
27838 msgstr ""
27839
27840 # type: textblock
27841 #: ../tools/virt-resize.pl:517
27842 msgid "Don't print the summary."
27843 msgstr ""
27844
27845 # type: textblock
27846 #: ../tools/virt-resize.pl:525
27847 msgid ""
27848 "Specify the format of the input disk image.  If this flag is not given then "
27849 "it is auto-detected from the image itself."
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-resize.pl:531
27854 msgid ""
27855 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27856 "AND NON-SPARSE RAW FORMATS>."
27857 msgstr ""
27858
27859 # type: =item
27860 #: ../tools/virt-resize.pl:538
27861 msgid "B<--output-format> raw"
27862 msgstr ""
27863
27864 # type: textblock
27865 #: ../tools/virt-resize.pl:540
27866 msgid ""
27867 "Specify the format of the output disk image.  If this flag is not given then "
27868 "it is auto-detected from the image itself."
27869 msgstr ""
27870
27871 # type: textblock
27872 #: ../tools/virt-resize.pl:546
27873 msgid ""
27874 "Note that you still need to create the output disk with the right format.  "
27875 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27876 msgstr ""
27877
27878 # type: =head1
27879 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27880 msgid "NOTES"
27881 msgstr ""
27882
27883 # type: =head2
27884 #: ../tools/virt-resize.pl:1424
27885 msgid "\"Partition 1 does not end on cylinder boundary.\""
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-resize.pl:1426
27890 msgid ""
27891 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27892 "means the partitions will not be aligned to the ancient CHS geometry.  "
27893 "However CHS geometry is meaningless for disks manufactured since the early "
27894 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27895 "cylinders is not required by any modern operating system."
27896 msgstr ""
27897
27898 # type: =head2
27899 #: ../tools/virt-resize.pl:1433
27900 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27901 msgstr ""
27902
27903 # type: textblock
27904 #: ../tools/virt-resize.pl:1435
27905 msgid ""
27906 "In Windows Vista and later versions, Microsoft switched to using a separate "
27907 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27908 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27909 "the boot partition.  Doing so seems to break the guest completely.  However "
27910 "expanding the second partition (ie. C: drive) should work."
27911 msgstr ""
27912
27913 # type: textblock
27914 #: ../tools/virt-resize.pl:1442
27915 msgid ""
27916 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27917 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27918 "it find errors) is nothing to worry about."
27919 msgstr ""
27920
27921 # type: =head2
27922 #: ../tools/virt-resize.pl:1446
27923 msgid "GUEST BOOT STUCK AT \"GRUB\""
27924 msgstr ""
27925
27926 # type: textblock
27927 #: ../tools/virt-resize.pl:1448
27928 msgid ""
27929 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27930 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27931 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27932 "although we think is to do with partition alignment."
27933 msgstr ""
27934
27935 # type: verbatim
27936 #: ../tools/virt-resize.pl:1453
27937 #, no-wrap
27938 msgid ""
27939 " guestfish -i -a newdisk\n"
27940 " ><fs> cat /boot/grub/device.map\n"
27941 " # check the contents of this file are sensible or\n"
27942 " # edit the file if necessary\n"
27943 " ><fs> grub-install / /dev/vda\n"
27944 " ><fs> exit\n"
27945 "\n"
27946 msgstr ""
27947
27948 # type: textblock
27949 #: ../tools/virt-resize.pl:1460
27950 msgid ""
27951 "For more flexible guest reconfiguration, including if you need to specify "
27952 "other parameters to grub-install, use L<virt-rescue(1)>."
27953 msgstr ""
27954
27955 # type: =head1
27956 #: ../tools/virt-resize.pl:1463
27957 msgid "ALTERNATIVE TOOLS"
27958 msgstr ""
27959
27960 # type: textblock
27961 #: ../tools/virt-resize.pl:1465
27962 msgid ""
27963 "There are several proprietary tools for resizing partitions.  We won't "
27964 "mention any here."
27965 msgstr ""
27966
27967 # type: textblock
27968 #: ../tools/virt-resize.pl:1468
27969 msgid ""
27970 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27971 "operations on disk images.  They can resize and move partitions, but I don't "
27972 "think they can do anything with the contents, and they certainly don't "
27973 "understand LVM."
27974 msgstr ""
27975
27976 # type: textblock
27977 #: ../tools/virt-resize.pl:1473
27978 msgid ""
27979 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27980 "but at a much lower level.  You will probably end up hand-calculating sector "
27981 "offsets, which is something that virt-resize was designed to avoid.  If you "
27982 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27983 "C<--debug> flag."
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-resize.pl:1488
27988 msgid ""
27989 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27990 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27991 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27992 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27993 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27994 msgstr ""
27995
27996 # type: textblock
27997 #: ../tools/virt-list-filesystems.pl:32
27998 msgid ""
27999 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28000 msgstr ""
28001
28002 # type: verbatim
28003 #: ../tools/virt-list-filesystems.pl:36
28004 #, no-wrap
28005 msgid ""
28006 " virt-list-filesystems [--options] domname\n"
28007 "\n"
28008 msgstr ""
28009
28010 # type: verbatim
28011 #: ../tools/virt-list-filesystems.pl:38
28012 #, no-wrap
28013 msgid ""
28014 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28015 "\n"
28016 msgstr ""
28017
28018 # type: textblock
28019 #: ../tools/virt-list-filesystems.pl:42
28020 msgid ""
28021 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28022 "are contained in a virtual machine or disk image."
28023 msgstr ""
28024
28025 # type: textblock
28026 #: ../tools/virt-list-filesystems.pl:46
28027 msgid ""
28028 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28029 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28030 "> tool."
28031 msgstr ""
28032
28033 # type: textblock
28034 #: ../tools/virt-list-filesystems.pl:105
28035 msgid ""
28036 "With this option, C<virt-list-filesystems> displays the type of each "
28037 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28038 msgstr ""
28039
28040 # type: =item
28041 #: ../tools/virt-list-filesystems.pl:112
28042 msgid "B<-a> | B<--all>"
28043 msgstr ""
28044
28045 # type: textblock
28046 #: ../tools/virt-list-filesystems.pl:114
28047 msgid ""
28048 "Normally we only show mountable filesystems.  If this option is given then "
28049 "swap devices are shown too."
28050 msgstr ""
28051
28052 # type: textblock
28053 #: ../tools/virt-list-filesystems.pl:188
28054 msgid ""
28055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
28056 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
28057 ">, L<http://libguestfs.org/>."
28058 msgstr ""
28059
28060 # type: textblock
28061 #: ../tools/virt-tar.pl:33
28062 msgid "virt-tar - Extract or upload files to a virtual machine"
28063 msgstr ""
28064
28065 # type: verbatim
28066 #: ../tools/virt-tar.pl:37
28067 #, no-wrap
28068 msgid ""
28069 " virt-tar [--options] -x domname directory tarball\n"
28070 "\n"
28071 msgstr ""
28072
28073 # type: verbatim
28074 #: ../tools/virt-tar.pl:39
28075 #, no-wrap
28076 msgid ""
28077 " virt-tar [--options] -u domname tarball directory\n"
28078 "\n"
28079 msgstr ""
28080
28081 # type: verbatim
28082 #: ../tools/virt-tar.pl:41
28083 #, no-wrap
28084 msgid ""
28085 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28086 "\n"
28087 msgstr ""
28088
28089 # type: verbatim
28090 #: ../tools/virt-tar.pl:43
28091 #, no-wrap
28092 msgid ""
28093 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28094 "\n"
28095 msgstr ""
28096
28097 # type: textblock
28098 #: ../tools/virt-tar.pl:47
28099 msgid "Download C</home> from the VM into a local tarball:"
28100 msgstr ""
28101
28102 # type: verbatim
28103 #: ../tools/virt-tar.pl:49
28104 #, no-wrap
28105 msgid ""
28106 " virt-tar -x domname /home home.tar\n"
28107 "\n"
28108 msgstr ""
28109
28110 # type: verbatim
28111 #: ../tools/virt-tar.pl:51
28112 #, no-wrap
28113 msgid ""
28114 " virt-tar -zx domname /home home.tar.gz\n"
28115 "\n"
28116 msgstr ""
28117
28118 # type: textblock
28119 #: ../tools/virt-tar.pl:53
28120 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28121 msgstr ""
28122
28123 # type: verbatim
28124 #: ../tools/virt-tar.pl:55
28125 #, no-wrap
28126 msgid ""
28127 " virt-tar -u domname uploadstuff.tar /tmp\n"
28128 "\n"
28129 msgstr ""
28130
28131 # type: verbatim
28132 #: ../tools/virt-tar.pl:57
28133 #, no-wrap
28134 msgid ""
28135 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28136 "\n"
28137 msgstr ""
28138
28139 # type: textblock
28140 #: ../tools/virt-tar.pl:61
28141 msgid ""
28142 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28143 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28144 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28145 msgstr ""
28146
28147 # type: textblock
28148 #: ../tools/virt-tar.pl:66
28149 msgid ""
28150 "You can use C<-x> (extract) on live virtual machines, but you might get "
28151 "inconsistent results or errors if there is filesystem activity inside the "
28152 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28153 "work, but the only way to guarantee consistent results is if the virtual "
28154 "machine is shut down."
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-tar.pl:74
28159 msgid ""
28160 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28161 "parts of a guest filesystem.  There are many possibilities: making backups, "
28162 "uploading data files, snooping on guest activity, fixing or customizing "
28163 "guests, etc."
28164 msgstr ""
28165
28166 # type: textblock
28167 #: ../tools/virt-tar.pl:79
28168 msgid ""
28169 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28170 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28171 "should look at the L<guestfish(1)> tool."
28172 msgstr ""
28173
28174 # type: textblock
28175 #: ../tools/virt-tar.pl:83
28176 msgid ""
28177 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28178 "its contents (recursively) from the virtual machine into a local tarball.  "
28179 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28180 "virtual machine.  You cannot use these two options together."
28181 msgstr ""
28182
28183 # type: textblock
28184 #: ../tools/virt-tar.pl:89
28185 msgid ""
28186 "In addition, you may need to use the C<-z> (gZip) option to enable "
28187 "compression.  When uploading, you have to specify C<-z> if the upload file "
28188 "is compressed because virt-tar won't detect this on its own."
28189 msgstr ""
28190
28191 # type: textblock
28192 #: ../tools/virt-tar.pl:93
28193 msgid ""
28194 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28195 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28196 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28197 "the L<libguestfs(3)> API)."
28198 msgstr ""
28199
28200 # type: =item
28201 #: ../tools/virt-tar.pl:151
28202 msgid "B<-x> | B<--extract> | B<--download>"
28203 msgstr ""
28204
28205 # type: =item
28206 #: ../tools/virt-tar.pl:153
28207 msgid "B<-u> | B<--upload>"
28208 msgstr ""
28209
28210 # type: textblock
28211 #: ../tools/virt-tar.pl:155
28212 msgid ""
28213 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28214 "local tarball."
28215 msgstr ""
28216
28217 # type: textblock
28218 #: ../tools/virt-tar.pl:158
28219 msgid ""
28220 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28221 "Please read the L</WARNING> section above before using this option."
28222 msgstr ""
28223
28224 # type: textblock
28225 #: ../tools/virt-tar.pl:162
28226 msgid "You must specify exactly one of these options."
28227 msgstr ""
28228
28229 # type: =item
28230 #: ../tools/virt-tar.pl:168
28231 msgid "B<-z> | B<--gzip>"
28232 msgstr ""
28233
28234 # type: textblock
28235 #: ../tools/virt-tar.pl:170
28236 msgid "Specify that the input or output tarball is gzip-compressed."
28237 msgstr ""
28238
28239 # type: textblock
28240 #: ../tools/virt-tar.pl:283
28241 msgid ""
28242 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28243 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28244 "org/>."
28245 msgstr ""
28246
28247 # type: textblock
28248 #: ../tools/virt-rescue.pl:33
28249 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28250 msgstr ""
28251
28252 # type: verbatim
28253 #: ../tools/virt-rescue.pl:37
28254 #, no-wrap
28255 msgid ""
28256 " virt-rescue [--options] domname\n"
28257 "\n"
28258 msgstr ""
28259
28260 # type: verbatim
28261 #: ../tools/virt-rescue.pl:39
28262 #, no-wrap
28263 msgid ""
28264 " virt-rescue [--options] disk.img [disk.img ...]\n"
28265 "\n"
28266 msgstr ""
28267
28268 # type: textblock
28269 #: ../tools/virt-rescue.pl:43
28270 msgid ""
28271 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28272 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28273 "you from doing this, but doesn't catch all cases."
28274 msgstr ""
28275
28276 # type: textblock
28277 #: ../tools/virt-rescue.pl:47
28278 msgid ""
28279 "However if you use the I<--ro> (read only) option, then you can attach a "
28280 "shell to a live virtual machine.  The results might be strange or "
28281 "inconsistent at times but you won't get disk corruption."
28282 msgstr ""
28283
28284 # type: textblock
28285 #: ../tools/virt-rescue.pl:53
28286 msgid ""
28287 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28288 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28289 "recovery tools which you can use to examine or rescue a virtual machine or "
28290 "disk image."
28291 msgstr ""
28292
28293 # type: textblock
28294 #: ../tools/virt-rescue.pl:58
28295 msgid ""
28296 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28297 "on disk image(s):"
28298 msgstr ""
28299
28300 # type: verbatim
28301 #: ../tools/virt-rescue.pl:61
28302 #, no-wrap
28303 msgid ""
28304 " virt-rescue GuestName\n"
28305 "\n"
28306 msgstr ""
28307
28308 # type: verbatim
28309 #: ../tools/virt-rescue.pl:63
28310 #, no-wrap
28311 msgid ""
28312 " virt-rescue --ro /path/to/disk.img\n"
28313 "\n"
28314 msgstr ""
28315
28316 # type: verbatim
28317 #: ../tools/virt-rescue.pl:65
28318 #, no-wrap
28319 msgid ""
28320 " virt-rescue /dev/sdc\n"
28321 "\n"
28322 msgstr ""
28323
28324 # type: textblock
28325 #: ../tools/virt-rescue.pl:67
28326 msgid "For live VMs you I<must> use the --ro option."
28327 msgstr ""
28328
28329 # type: textblock
28330 #: ../tools/virt-rescue.pl:69
28331 msgid ""
28332 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28333 "in an interactive bash shell where you can use many ordinary Linux "
28334 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28335 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28336 "is an empty directory called C</sysroot> where you can mount filesystems."
28337 msgstr ""
28338
28339 # type: textblock
28340 #: ../tools/virt-rescue.pl:76
28341 msgid ""
28342 "In the example below, we list logical volumes, then choose one to mount "
28343 "under C</sysroot>:"
28344 msgstr ""
28345
28346 # type: verbatim
28347 #: ../tools/virt-rescue.pl:79
28348 #, no-wrap
28349 msgid ""
28350 " ><rescue> lvs\n"
28351 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28352 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28353 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28354 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28355 " ><rescue> ls /sysroot\n"
28356 "\n"
28357 msgstr ""
28358
28359 # type: textblock
28360 #: ../tools/virt-rescue.pl:86
28361 msgid ""
28362 "If you don't know what filesystems are available on the virtual machine then "
28363 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28364 msgstr ""
28365
28366 # type: textblock
28367 #: ../tools/virt-rescue.pl:92
28368 msgid ""
28369 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28370 "virtual machine.  For example you can use it on a blank file if you want to "
28371 "partition that file (although we would recommend using L<guestfish(1)> "
28372 "instead as it is more suitable for this purpose).  You can even use virt-"
28373 "rescue on things like SD cards."
28374 msgstr ""
28375
28376 # type: textblock
28377 #: ../tools/virt-rescue.pl:98
28378 msgid ""
28379 "This tool is just designed for quick interactive hacking on a virtual "
28380 "machine.  For more structured access to a virtual machine disk image, you "
28381 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28382 "make scripted changes to guests, use L<guestfish(1)>."
28383 msgstr ""
28384
28385 # type: =item
28386 #: ../tools/virt-rescue.pl:127
28387 msgid "B<--append kernelopts>"
28388 msgstr ""
28389
28390 # type: textblock
28391 #: ../tools/virt-rescue.pl:129
28392 msgid "Pass additional options to the rescue kernel."
28393 msgstr ""
28394
28395 # type: =item
28396 #: ../tools/virt-rescue.pl:164
28397 msgid "B<--memsize MB> | B<-m MB>"
28398 msgstr ""
28399
28400 # type: textblock
28401 #: ../tools/virt-rescue.pl:166
28402 msgid ""
28403 "Change the amount of memory allocated to the rescue system.  The default is "
28404 "set by libguestfs and is small but adequate for running system tools.  The "
28405 "occasional program might need more memory.  The parameter is specified in "
28406 "megabytes."
28407 msgstr ""
28408
28409 # type: =item
28410 #: ../tools/virt-rescue.pl:175
28411 msgid "B<--network MB>"
28412 msgstr ""
28413
28414 # type: textblock
28415 #: ../tools/virt-rescue.pl:177
28416 msgid "Enable QEMU user networking in the guest."
28417 msgstr ""
28418
28419 # type: =item
28420 #: ../tools/virt-rescue.pl:183
28421 msgid "B<--ro> | B<-r>"
28422 msgstr ""
28423
28424 # type: textblock
28425 #: ../tools/virt-rescue.pl:185
28426 msgid "Open the image read-only."
28427 msgstr ""
28428
28429 # type: textblock
28430 #: ../tools/virt-rescue.pl:197
28431 msgid ""
28432 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28433 "SELINUX> before using this option."
28434 msgstr ""
28435
28436 # type: textblock
28437 #: ../tools/virt-rescue.pl:257
28438 msgid ""
28439 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28440 "ENVIRONMENT VARIABLES> for the complete list."
28441 msgstr ""
28442
28443 # type: textblock
28444 #: ../tools/virt-rescue.pl:269
28445 msgid ""
28446 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28447 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28448 msgstr ""
28449
28450 # type: textblock
28451 #: ../tools/virt-make-fs.pl:37
28452 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28453 msgstr ""
28454
28455 # type: verbatim
28456 #: ../tools/virt-make-fs.pl:41
28457 #, no-wrap
28458 msgid ""
28459 " virt-make-fs [--options] input.tar output.img\n"
28460 "\n"
28461 msgstr ""
28462
28463 # type: verbatim
28464 #: ../tools/virt-make-fs.pl:43
28465 #, no-wrap
28466 msgid ""
28467 " virt-make-fs [--options] input.tar.gz output.img\n"
28468 "\n"
28469 msgstr ""
28470
28471 # type: verbatim
28472 #: ../tools/virt-make-fs.pl:45
28473 #, no-wrap
28474 msgid ""
28475 " virt-make-fs [--options] directory output.img\n"
28476 "\n"
28477 msgstr ""
28478
28479 # type: textblock
28480 #: ../tools/virt-make-fs.pl:49
28481 msgid ""
28482 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28483 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28484 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28485 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28486 "you want to attach these filesystems to existing virtual machines (eg. to "
28487 "import large amounts of read-only data to a VM)."
28488 msgstr ""
28489
28490 # type: textblock
28491 #: ../tools/virt-make-fs.pl:57
28492 msgid "Basic usage is:"
28493 msgstr ""
28494
28495 # type: verbatim
28496 #: ../tools/virt-make-fs.pl:59
28497 #, no-wrap
28498 msgid ""
28499 " virt-make-fs input output\n"
28500 "\n"
28501 msgstr ""
28502
28503 # type: textblock
28504 #: ../tools/virt-make-fs.pl:61
28505 msgid ""
28506 "where C<input> is either a directory containing files that you want to add, "
28507 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28508 "C<output> is a disk image.  The input type is detected automatically.  The "
28509 "output disk image defaults to a raw ext2 image unless you specify extra "
28510 "flags (see L</OPTIONS> below)."
28511 msgstr ""
28512
28513 # type: =head2
28514 #: ../tools/virt-make-fs.pl:67
28515 msgid "EXTRA SPACE"
28516 msgstr ""
28517
28518 # type: textblock
28519 #: ../tools/virt-make-fs.pl:69
28520 msgid ""
28521 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28522 "the files that it contains, but might have extra space.  Depending on how "
28523 "you are going to use the output, you might think this extra space is wasted "
28524 "and want to minimize it, or you might want to leave space so that more files "
28525 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28526 "but you can use the C<--size> flag to leave space in the filesystem if you "
28527 "want it."
28528 msgstr ""
28529
28530 # type: textblock
28531 #: ../tools/virt-make-fs.pl:77
28532 msgid ""
28533 "An alternative way to leave extra space but not make the output image any "
28534 "bigger is to use an alternative disk image format (instead of the default "
28535 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28536 "image format (check your hypervisor supports this before using it).  This "
28537 "allows you to choose a large C<--size> but the extra space won't actually be "
28538 "allocated in the image until you try to store something in it."
28539 msgstr ""
28540
28541 # type: textblock
28542 #: ../tools/virt-make-fs.pl:85
28543 msgid ""
28544 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28545 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28546 "resize to build another image from scratch."
28547 msgstr ""
28548
28549 # type: =head3
28550 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28551 #: ../tools/virt-make-fs.pl:142
28552 msgid "EXAMPLE"
28553 msgstr ""
28554
28555 # type: verbatim
28556 #: ../tools/virt-make-fs.pl:91
28557 #, no-wrap
28558 msgid ""
28559 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28560 "\n"
28561 msgstr ""
28562
28563 # type: =head2
28564 #: ../tools/virt-make-fs.pl:93
28565 msgid "FILESYSTEM TYPE"
28566 msgstr ""
28567
28568 # type: textblock
28569 #: ../tools/virt-make-fs.pl:95
28570 msgid ""
28571 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28572 "libguestfs supports can be used (but I<not> read-only formats like "
28573 "ISO9660).  Here are some of the more common choices:"
28574 msgstr ""
28575
28576 # type: =item
28577 #: ../tools/virt-make-fs.pl:101
28578 msgid "I<ext3>"
28579 msgstr ""
28580
28581 # type: textblock
28582 #: ../tools/virt-make-fs.pl:103
28583 msgid ""
28584 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28585 "you are not going to use the filesystem in a way that requires the journal, "
28586 "then this is just wasted overhead."
28587 msgstr ""
28588
28589 # type: =item
28590 #: ../tools/virt-make-fs.pl:107
28591 msgid "I<ntfs> or I<vfat>"
28592 msgstr ""
28593
28594 # type: textblock
28595 #: ../tools/virt-make-fs.pl:109
28596 msgid "Useful if exporting data to a Windows guest."
28597 msgstr ""
28598
28599 # type: textblock
28600 #: ../tools/virt-make-fs.pl:111
28601 msgid ""
28602 "I<Note for vfat>: The tar archive or local directory must only contain files "
28603 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28604 "program running within libguestfs is unable to change the ownership of non-"
28605 "root files, since vfat itself does not support this."
28606 msgstr ""
28607
28608 # type: =item
28609 #: ../tools/virt-make-fs.pl:116
28610 msgid "I<minix>"
28611 msgstr ""
28612
28613 # type: textblock
28614 #: ../tools/virt-make-fs.pl:118
28615 msgid ""
28616 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28617 "total filesystem size."
28618 msgstr ""
28619
28620 # type: verbatim
28621 #: ../tools/virt-make-fs.pl:125
28622 #, no-wrap
28623 msgid ""
28624 " virt-make-fs --type=minix input minixfs.img\n"
28625 "\n"
28626 msgstr ""
28627
28628 # type: =head2
28629 #: ../tools/virt-make-fs.pl:127
28630 msgid "TO PARTITION OR NOT TO PARTITION"
28631 msgstr ""
28632
28633 # type: textblock
28634 #: ../tools/virt-make-fs.pl:129
28635 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28636 msgstr ""
28637
28638 # type: textblock
28639 #: ../tools/virt-make-fs.pl:131
28640 msgid ""
28641 "Adding a partition can make the disk image more compatible with certain "
28642 "virtualized operating systems which don't expect to see a filesystem "
28643 "directly located on a block device (Linux doesn't care and will happily "
28644 "handle both types)."
28645 msgstr ""
28646
28647 # type: textblock
28648 #: ../tools/virt-make-fs.pl:136
28649 msgid ""
28650 "On the other hand, if you have a partition table then the output image is no "
28651 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28652 "directly on a partitioned disk image.  (However libguestfs tools such as "
28653 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28654 msgstr ""
28655
28656 # type: textblock
28657 #: ../tools/virt-make-fs.pl:144
28658 msgid "Add an MBR partition:"
28659 msgstr ""
28660
28661 # type: verbatim
28662 #: ../tools/virt-make-fs.pl:146
28663 #, no-wrap
28664 msgid ""
28665 " virt-make-fs --partition -- input disk.img\n"
28666 "\n"
28667 msgstr ""
28668
28669 # type: textblock
28670 #: ../tools/virt-make-fs.pl:148
28671 msgid ""
28672 "If the output disk image could be terabyte-sized or larger, it's better to "
28673 "use an EFI/GPT-compatible partition table:"
28674 msgstr ""
28675
28676 # type: verbatim
28677 #: ../tools/virt-make-fs.pl:151
28678 #, no-wrap
28679 msgid ""
28680 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28681 "\n"
28682 msgstr ""
28683
28684 # type: textblock
28685 #: ../tools/virt-make-fs.pl:179
28686 msgid "Enable debugging information."
28687 msgstr ""
28688
28689 # type: =item
28690 #: ../tools/virt-make-fs.pl:185
28691 msgid "B<--size=E<lt>NE<gt>>"
28692 msgstr ""
28693
28694 # type: =item
28695 #: ../tools/virt-make-fs.pl:187
28696 msgid "B<--size=+E<lt>NE<gt>>"
28697 msgstr ""
28698
28699 # type: =item
28700 #: ../tools/virt-make-fs.pl:189
28701 msgid "B<-s E<lt>NE<gt>>"
28702 msgstr ""
28703
28704 # type: =item
28705 #: ../tools/virt-make-fs.pl:191
28706 msgid "B<-s +E<lt>NE<gt>>"
28707 msgstr ""
28708
28709 # type: textblock
28710 #: ../tools/virt-make-fs.pl:193
28711 msgid ""
28712 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28713 msgstr ""
28714
28715 # type: textblock
28716 #: ../tools/virt-make-fs.pl:196
28717 msgid ""
28718 "If this option is I<not> given, then the output image will be just large "
28719 "enough to contain all the files, with not much wasted space."
28720 msgstr ""
28721
28722 # type: textblock
28723 #: ../tools/virt-make-fs.pl:199
28724 msgid ""
28725 "To choose a fixed size output disk, specify an absolute number followed by b/"
28726 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28727 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28728 "files, else you will get an error."
28729 msgstr ""
28730
28731 # type: textblock
28732 #: ../tools/virt-make-fs.pl:204
28733 msgid ""
28734 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28735 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28736 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28737 "the input files, and (approximately) an extra 200 MB free space."
28738 msgstr ""
28739
28740 # type: textblock
28741 #: ../tools/virt-make-fs.pl:210
28742 msgid ""
28743 "Note that virt-make-fs estimates free space, and therefore will not produce "
28744 "filesystems containing precisely the free space requested.  (It is much more "
28745 "expensive and time-consuming to produce a filesystem which has precisely the "
28746 "desired free space)."
28747 msgstr ""
28748
28749 # type: =item
28750 #: ../tools/virt-make-fs.pl:219
28751 msgid "B<--format=E<lt>fmtE<gt>>"
28752 msgstr ""
28753
28754 # type: =item
28755 #: ../tools/virt-make-fs.pl:221
28756 msgid "B<-F E<lt>fmtE<gt>>"
28757 msgstr ""
28758
28759 # type: textblock
28760 #: ../tools/virt-make-fs.pl:223
28761 msgid "Choose the output disk image format."
28762 msgstr ""
28763
28764 # type: textblock
28765 #: ../tools/virt-make-fs.pl:225
28766 msgid "The default is C<raw> (raw disk image)."
28767 msgstr ""
28768
28769 # type: textblock
28770 #: ../tools/virt-make-fs.pl:227
28771 msgid ""
28772 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28773 "that would really make sense here is C<qcow2>."
28774 msgstr ""
28775
28776 # type: =item
28777 #: ../tools/virt-make-fs.pl:234
28778 msgid "B<--type=E<lt>fsE<gt>>"
28779 msgstr ""
28780
28781 # type: =item
28782 #: ../tools/virt-make-fs.pl:236
28783 msgid "B<-t E<lt>fsE<gt>>"
28784 msgstr ""
28785
28786 # type: textblock
28787 #: ../tools/virt-make-fs.pl:238
28788 msgid "Choose the output filesystem type."
28789 msgstr ""
28790
28791 # type: textblock
28792 #: ../tools/virt-make-fs.pl:240
28793 msgid "The default is C<ext2>."
28794 msgstr ""
28795
28796 # type: textblock
28797 #: ../tools/virt-make-fs.pl:242
28798 msgid ""
28799 "Any filesystem which is supported read-write by libguestfs can be used here."
28800 msgstr ""
28801
28802 # type: =item
28803 #: ../tools/virt-make-fs.pl:249
28804 msgid "B<--partition>"
28805 msgstr ""
28806
28807 # type: =item
28808 #: ../tools/virt-make-fs.pl:251
28809 msgid "B<--partition=E<lt>parttypeE<gt>>"
28810 msgstr ""
28811
28812 # type: textblock
28813 #: ../tools/virt-make-fs.pl:253
28814 msgid ""
28815 "If specified, this flag adds an MBR partition table to the output disk image."
28816 msgstr ""
28817
28818 # type: textblock
28819 #: ../tools/virt-make-fs.pl:256
28820 msgid ""
28821 "You can change the partition table type, eg. C<--partition=gpt> for large "
28822 "disks."
28823 msgstr ""
28824
28825 # type: textblock
28826 #: ../tools/virt-make-fs.pl:259
28827 msgid ""
28828 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28829 "might consider the next parameter to be the partition type.  For example:"
28830 msgstr ""
28831
28832 # type: verbatim
28833 #: ../tools/virt-make-fs.pl:263
28834 #, no-wrap
28835 msgid ""
28836 " virt-make-fs --partition input.tar ...\n"
28837 "\n"
28838 msgstr ""
28839
28840 # type: textblock
28841 #: ../tools/virt-make-fs.pl:265
28842 msgid ""
28843 "would cause virt-make-fs to think you wanted to use a partition type of "
28844 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28845 "dash) between options and the input file argument:"
28846 msgstr ""
28847
28848 # type: verbatim
28849 #: ../tools/virt-make-fs.pl:269
28850 #, no-wrap
28851 msgid ""
28852 " virt-make-fs --partition -- input.tar ...\n"
28853 "\n"
28854 msgstr ""
28855
28856 # type: textblock
28857 #: ../tools/virt-make-fs.pl:536
28858 msgid ""
28859 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28860 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28861 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28862 msgstr ""
28863
28864 # type: verbatim
28865 #: ../tools/virt-make-fs.pl:553
28866 #, no-wrap
28867 msgid ""
28868 " export LIBGUESTFS_DEBUG=1\n"
28869 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28870 "\n"
28871 msgstr ""
28872
28873 # type: textblock
28874 #: ../tools/virt-make-fs.pl:556
28875 msgid ""
28876 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28877 "redhat.com/>"
28878 msgstr ""
28879
28880 # type: textblock
28881 #: ../tools/virt-list-partitions.pl:32
28882 msgid ""
28883 "virt-list-partitions - List partitions in a virtual machine or disk image"
28884 msgstr ""
28885
28886 # type: verbatim
28887 #: ../tools/virt-list-partitions.pl:36
28888 #, no-wrap
28889 msgid ""
28890 " virt-list-partitions [--options] domname\n"
28891 "\n"
28892 msgstr ""
28893
28894 # type: verbatim
28895 #: ../tools/virt-list-partitions.pl:38
28896 #, no-wrap
28897 msgid ""
28898 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28899 "\n"
28900 msgstr ""
28901
28902 # type: textblock
28903 #: ../tools/virt-list-partitions.pl:42
28904 msgid ""
28905 "C<virt-list-partitions> is a command line tool to list the partitions that "
28906 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28907 "first step to using L<virt-resize(1)>."
28908 msgstr ""
28909
28910 # type: textblock
28911 #: ../tools/virt-list-partitions.pl:47
28912 msgid ""
28913 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28914 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28915 "> tool."
28916 msgstr ""
28917
28918 # type: =item
28919 #: ../tools/virt-list-partitions.pl:104
28920 msgid "B<-h> | B<--human-readable>"
28921 msgstr ""
28922
28923 # type: textblock
28924 #: ../tools/virt-list-partitions.pl:106
28925 msgid "Show sizes in human-readable form (eg. \"1G\")."
28926 msgstr ""
28927
28928 # type: textblock
28929 #: ../tools/virt-list-partitions.pl:114
28930 msgid ""
28931 "With this option, C<virt-list-partitions> displays the type and size of each "
28932 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28933 msgstr ""
28934
28935 # type: =item
28936 #: ../tools/virt-list-partitions.pl:121
28937 msgid "B<-t> | B<--total>"
28938 msgstr ""
28939
28940 # type: textblock
28941 #: ../tools/virt-list-partitions.pl:123
28942 msgid ""
28943 "Display the total size of each block device (as a separate row or rows)."
28944 msgstr ""
28945
28946 # type: textblock
28947 #: ../tools/virt-list-partitions.pl:256
28948 msgid ""
28949 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28950 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28951 "libguestfs.org/>."
28952 msgstr ""