Version 1.7.4.
[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-11 18:35+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:584 ../inspector/virt-inspector.pl:588
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:570 ../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:580
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:594 ../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:2989
4018 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3024
4019 #: ../src/guestfs-actions.pod:3149 ../src/guestfs-actions.pod:3163
4020 #: ../src/guestfs-actions.pod:3176 ../src/guestfs-actions.pod:3190
4021 #: ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3241
4022 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3333
4023 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3373
4024 #: ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3428
4025 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3466
4026 #: ../src/guestfs-actions.pod:3501 ../src/guestfs-actions.pod:3513
4027 #: ../src/guestfs-actions.pod:3549 ../src/guestfs-actions.pod:3565
4028 #: ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3593
4029 #: ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3703
4030 #: ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:3736
4031 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3805
4032 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3839
4033 #: ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3867
4034 #: ../src/guestfs-actions.pod:3884 ../src/guestfs-actions.pod:3899
4035 #: ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:3968
4036 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4018
4037 #: ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4049
4038 #: ../src/guestfs-actions.pod:4066 ../src/guestfs-actions.pod:4079
4039 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4109
4040 #: ../src/guestfs-actions.pod:4144 ../src/guestfs-actions.pod:4159
4041 #: ../src/guestfs-actions.pod:4179 ../src/guestfs-actions.pod:4193
4042 #: ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4259
4043 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4310
4044 #: ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4355
4045 #: ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4507
4046 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4586
4047 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4636
4048 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4719
4049 #: ../src/guestfs-actions.pod:4732 ../src/guestfs-actions.pod:4746
4050 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:5054
4051 #: ../src/guestfs-actions.pod:5068 ../src/guestfs-actions.pod:5080
4052 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5106
4053 #: ../src/guestfs-actions.pod:5120 ../src/guestfs-actions.pod:5136
4054 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5176
4055 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5213
4056 #: ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5254
4057 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5294
4058 #: ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5330
4059 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5382
4060 #: ../src/guestfs-actions.pod:5401 ../src/guestfs-actions.pod:5425
4061 #: ../src/guestfs-actions.pod:5440 ../src/guestfs-actions.pod:5455
4062 #: ../src/guestfs-actions.pod:5474 ../src/guestfs-actions.pod:5511
4063 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5560
4064 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5789
4065 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:5814
4066 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5849
4067 #: ../src/guestfs-actions.pod:5862 ../src/guestfs-actions.pod:5875
4068 #: ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5903
4069 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5979
4070 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6011
4071 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6041
4072 #: ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6097
4073 #: ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6152
4074 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6183
4075 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6243
4076 #: ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6380
4077 #: ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6449
4078 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-actions.pod:6507
4079 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6594
4080 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6686
4081 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6734
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:6628 ../src/guestfs-actions.pod:6797
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:4377 ../fish/guestfish-actions.pod:4474
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:2991 ../src/guestfs-actions.pod:3006
4114 #: ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:5215
4115 #: ../src/guestfs-actions.pod:5332 ../src/guestfs-actions.pod:5442
4116 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:6030
4117 #: ../src/guestfs-actions.pod:6542
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:4282
4215 #: ../src/guestfs-actions.pod:4410 ../src/guestfs-actions.pod:4816
4216 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:6138
4217 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:6566
4218 #: ../src/guestfs-actions.pod:6579
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:4893
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:2679 ../src/guestfs-actions.pod:2735
4698 #: ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:3135
4699 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3655
4700 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:4428
4701 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4791
4702 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5018
4703 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5597
4704 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5638
4705 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6321
4706 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6519
4707 #: ../src/guestfs-actions.pod:6791
4708 msgid ""
4709 "This function returns a string, or NULL on error.  I<The caller must free "
4710 "the returned string after use>."
4711 msgstr ""
4712
4713 # type: =head2
4714 #: ../src/guestfs-actions.pod:354
4715 msgid "guestfs_aug_init"
4716 msgstr ""
4717
4718 # type: verbatim
4719 #: ../src/guestfs-actions.pod:356
4720 #, no-wrap
4721 msgid ""
4722 " int\n"
4723 " guestfs_aug_init (guestfs_h *g,\n"
4724 "                   const char *root,\n"
4725 "                   int flags);\n"
4726 "\n"
4727 msgstr ""
4728
4729 # type: textblock
4730 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:227
4731 msgid ""
4732 "Create a new Augeas handle for editing configuration files.  If there was "
4733 "any previous Augeas handle associated with this guestfs session, then it is "
4734 "closed."
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:365
4739 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4740 msgstr ""
4741
4742 # type: textblock
4743 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:234
4744 msgid ""
4745 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4746 msgstr ""
4747
4748 # type: textblock
4749 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:237
4750 msgid ""
4751 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4752 "logical I<or> of the following integers:"
4753 msgstr ""
4754
4755 # type: =item
4756 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:243
4757 msgid "C<AUG_SAVE_BACKUP> = 1"
4758 msgstr ""
4759
4760 # type: textblock
4761 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:245
4762 msgid "Keep the original file with a C<.augsave> extension."
4763 msgstr ""
4764
4765 # type: =item
4766 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:247
4767 msgid "C<AUG_SAVE_NEWFILE> = 2"
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:249
4772 msgid ""
4773 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4774 "original.  Overrides C<AUG_SAVE_BACKUP>."
4775 msgstr ""
4776
4777 # type: =item
4778 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:252
4779 msgid "C<AUG_TYPE_CHECK> = 4"
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:254
4784 msgid "Typecheck lenses (can be expensive)."
4785 msgstr ""
4786
4787 # type: =item
4788 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:256
4789 msgid "C<AUG_NO_STDINC> = 8"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:258
4794 msgid "Do not use standard load path for modules."
4795 msgstr ""
4796
4797 # type: =item
4798 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:260
4799 msgid "C<AUG_SAVE_NOOP> = 16"
4800 msgstr ""
4801
4802 # type: textblock
4803 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:262
4804 msgid "Make save a no-op, just record what would have been changed."
4805 msgstr ""
4806
4807 # type: =item
4808 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:264
4809 msgid "C<AUG_NO_LOAD> = 32"
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:400
4814 msgid "Do not load the tree in C<guestfs_aug_init>."
4815 msgstr ""
4816
4817 # type: textblock
4818 #: ../src/guestfs-actions.pod:404
4819 msgid "To close the handle, you can call C<guestfs_aug_close>."
4820 msgstr ""
4821
4822 # type: textblock
4823 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:272
4824 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4825 msgstr ""
4826
4827 # type: =head2
4828 #: ../src/guestfs-actions.pod:412
4829 msgid "guestfs_aug_insert"
4830 msgstr ""
4831
4832 # type: verbatim
4833 #: ../src/guestfs-actions.pod:414
4834 #, no-wrap
4835 msgid ""
4836 " int\n"
4837 " guestfs_aug_insert (guestfs_h *g,\n"
4838 "                     const char *augpath,\n"
4839 "                     const char *label,\n"
4840 "                     int before);\n"
4841 "\n"
4842 msgstr ""
4843
4844 # type: textblock
4845 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:278
4846 msgid ""
4847 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4848 "or after C<path> (depending on the boolean flag C<before>)."
4849 msgstr ""
4850
4851 # type: textblock
4852 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:282
4853 msgid ""
4854 "C<path> must match exactly one existing node in the tree, and C<label> must "
4855 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4856 msgstr ""
4857
4858 # type: =head2
4859 #: ../src/guestfs-actions.pod:432
4860 msgid "guestfs_aug_load"
4861 msgstr ""
4862
4863 # type: verbatim
4864 #: ../src/guestfs-actions.pod:434
4865 #, no-wrap
4866 msgid ""
4867 " int\n"
4868 " guestfs_aug_load (guestfs_h *g);\n"
4869 "\n"
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:290
4874 msgid "Load files into the tree."
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:292
4879 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4880 msgstr ""
4881
4882 # type: =head2
4883 #: ../src/guestfs-actions.pod:446
4884 msgid "guestfs_aug_ls"
4885 msgstr ""
4886
4887 # type: verbatim
4888 #: ../src/guestfs-actions.pod:448
4889 #, no-wrap
4890 msgid ""
4891 " char **\n"
4892 " guestfs_aug_ls (guestfs_h *g,\n"
4893 "                 const char *augpath);\n"
4894 "\n"
4895 msgstr ""
4896
4897 # type: textblock
4898 #: ../src/guestfs-actions.pod:452
4899 msgid ""
4900 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4901 "sorting the resulting nodes into alphabetical order."
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
4906 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
4907 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
4908 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
4909 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2148
4910 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2183
4911 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2250
4912 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2370
4913 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2698
4914 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:3055
4915 #: ../src/guestfs-actions.pod:3117 ../src/guestfs-actions.pod:3222
4916 #: ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:4243
4917 #: ../src/guestfs-actions.pod:4763 ../src/guestfs-actions.pod:4889
4918 #: ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5654
4919 #: ../src/guestfs-actions.pod:5715 ../src/guestfs-actions.pod:5770
4920 #: ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5940
4921 #: ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6432
4922 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6644
4923 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6748
4924 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:6813
4925 #: ../src/guestfs-actions.pod:6832
4926 msgid ""
4927 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4928 ">), or NULL if there was an error.  I<The caller must free the strings and "
4929 "the array after use>."
4930 msgstr ""
4931
4932 # type: textblock
4933 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
4934 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
4935 #: ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2909
4936 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3518
4937 #: ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:3738
4938 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:4247
4939 #: ../src/guestfs-actions.pod:4704 ../src/guestfs-actions.pod:5082
4940 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5108
4941 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:6154
4942 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6396
4943 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6632
4944 msgid "(Added in 0.8)"
4945 msgstr ""
4946
4947 # type: =head2
4948 #: ../src/guestfs-actions.pod:461
4949 msgid "guestfs_aug_match"
4950 msgstr ""
4951
4952 # type: verbatim
4953 #: ../src/guestfs-actions.pod:463
4954 #, no-wrap
4955 msgid ""
4956 " char **\n"
4957 " guestfs_aug_match (guestfs_h *g,\n"
4958 "                    const char *augpath);\n"
4959 "\n"
4960 msgstr ""
4961
4962 # type: textblock
4963 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:306
4964 msgid ""
4965 "Returns a list of paths which match the path expression C<path>.  The "
4966 "returned paths are sufficiently qualified so that they match exactly one "
4967 "node in the current tree."
4968 msgstr ""
4969
4970 # type: =head2
4971 #: ../src/guestfs-actions.pod:477
4972 msgid "guestfs_aug_mv"
4973 msgstr ""
4974
4975 # type: verbatim
4976 #: ../src/guestfs-actions.pod:479
4977 #, no-wrap
4978 msgid ""
4979 " int\n"
4980 " guestfs_aug_mv (guestfs_h *g,\n"
4981 "                 const char *src,\n"
4982 "                 const char *dest);\n"
4983 "\n"
4984 msgstr ""
4985
4986 # type: textblock
4987 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:314
4988 msgid ""
4989 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4990 "C<dest> is overwritten if it exists."
4991 msgstr ""
4992
4993 # type: =head2
4994 #: ../src/guestfs-actions.pod:491
4995 msgid "guestfs_aug_rm"
4996 msgstr ""
4997
4998 # type: verbatim
4999 #: ../src/guestfs-actions.pod:493
5000 #, no-wrap
5001 msgid ""
5002 " int\n"
5003 " guestfs_aug_rm (guestfs_h *g,\n"
5004 "                 const char *augpath);\n"
5005 "\n"
5006 msgstr ""
5007
5008 # type: textblock
5009 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:321
5010 msgid "Remove C<path> and all of its children."
5011 msgstr ""
5012
5013 # type: textblock
5014 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:323
5015 msgid "On success this returns the number of entries which were removed."
5016 msgstr ""
5017
5018 # type: =head2
5019 #: ../src/guestfs-actions.pod:505
5020 msgid "guestfs_aug_save"
5021 msgstr ""
5022
5023 # type: verbatim
5024 #: ../src/guestfs-actions.pod:507
5025 #, no-wrap
5026 msgid ""
5027 " int\n"
5028 " guestfs_aug_save (guestfs_h *g);\n"
5029 "\n"
5030 msgstr ""
5031
5032 # type: textblock
5033 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:329
5034 msgid "This writes all pending changes to disk."
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:512
5039 msgid ""
5040 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5041 "are saved."
5042 msgstr ""
5043
5044 # type: =head2
5045 #: ../src/guestfs-actions.pod:519
5046 msgid "guestfs_aug_set"
5047 msgstr ""
5048
5049 # type: verbatim
5050 #: ../src/guestfs-actions.pod:521
5051 #, no-wrap
5052 msgid ""
5053 " int\n"
5054 " guestfs_aug_set (guestfs_h *g,\n"
5055 "                  const char *augpath,\n"
5056 "                  const char *val);\n"
5057 "\n"
5058 msgstr ""
5059
5060 # type: textblock
5061 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:338
5062 msgid "Set the value associated with C<path> to C<val>."
5063 msgstr ""
5064
5065 # type: textblock
5066 #: ../src/guestfs-actions.pod:528
5067 msgid ""
5068 "In the Augeas API, it is possible to clear a node by setting the value to "
5069 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5070 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5071 msgstr ""
5072
5073 # type: =head2
5074 #: ../src/guestfs-actions.pod:537
5075 msgid "guestfs_available"
5076 msgstr ""
5077
5078 # type: verbatim
5079 #: ../src/guestfs-actions.pod:539
5080 #, no-wrap
5081 msgid ""
5082 " int\n"
5083 " guestfs_available (guestfs_h *g,\n"
5084 "                    char *const *groups);\n"
5085 "\n"
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:349
5090 msgid ""
5091 "This command is used to check the availability of some groups of "
5092 "functionality in the appliance, which not all builds of the libguestfs "
5093 "appliance will be able to provide."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:547
5098 msgid ""
5099 "The libguestfs groups, and the functions that those groups correspond to, "
5100 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5101 "runtime by calling C<guestfs_available_all_groups>."
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:358
5106 msgid ""
5107 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5108 "\"]> would check for the availability of the Linux inotify functions and "
5109 "Augeas (configuration file editing) functions."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:363
5114 msgid "The command returns no error if I<all> requested groups are available."
5115 msgstr ""
5116
5117 # type: textblock
5118 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:365
5119 msgid ""
5120 "It fails with an error if one or more of the requested groups is unavailable "
5121 "in the appliance."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:368
5126 msgid ""
5127 "If an unknown group name is included in the list of groups then an error is "
5128 "always returned."
5129 msgstr ""
5130
5131 # type: textblock
5132 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:371
5133 msgid "I<Notes:>"
5134 msgstr ""
5135
5136 # type: textblock
5137 #: ../src/guestfs-actions.pod:571
5138 msgid "You must call C<guestfs_launch> before calling this function."
5139 msgstr ""
5140
5141 # type: textblock
5142 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:379
5143 msgid ""
5144 "The reason is because we don't know what groups are supported by the "
5145 "appliance/daemon until it is running and can be queried."
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:385
5150 msgid ""
5151 "If a group of functions is available, this does not necessarily mean that "
5152 "they will work.  You still have to check for errors when calling individual "
5153 "API functions even if they are available."
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:392
5158 msgid ""
5159 "It is usually the job of distro packagers to build complete functionality "
5160 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5161 "with all requirements satisfied, will support everything."
5162 msgstr ""
5163
5164 # type: textblock
5165 #: ../src/guestfs-actions.pod:593
5166 msgid ""
5167 "This call was added in version C<1.0.80>.  In previous versions of "
5168 "libguestfs all you could do would be to speculatively execute a command to "
5169 "find out if the daemon implemented it.  See also C<guestfs_version>."
5170 msgstr ""
5171
5172 # type: textblock
5173 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
5174 msgid "(Added in 1.0.80)"
5175 msgstr ""
5176
5177 # type: =head2
5178 #: ../src/guestfs-actions.pod:604
5179 msgid "guestfs_available_all_groups"
5180 msgstr ""
5181
5182 # type: verbatim
5183 #: ../src/guestfs-actions.pod:606
5184 #, no-wrap
5185 msgid ""
5186 " char **\n"
5187 " guestfs_available_all_groups (guestfs_h *g);\n"
5188 "\n"
5189 msgstr ""
5190
5191 # type: textblock
5192 #: ../src/guestfs-actions.pod:609
5193 msgid ""
5194 "This command returns a list of all optional groups that this daemon knows "
5195 "about.  Note this returns both supported and unsupported groups.  To find "
5196 "out which ones the daemon can actually support you have to call "
5197 "C<guestfs_available> on each member of the returned list."
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:615
5202 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5203 msgstr ""
5204
5205 # type: textblock
5206 #: ../src/guestfs-actions.pod:621
5207 msgid "(Added in 1.3.15)"
5208 msgstr ""
5209
5210 # type: =head2
5211 #: ../src/guestfs-actions.pod:623
5212 msgid "guestfs_base64_in"
5213 msgstr ""
5214
5215 # type: verbatim
5216 #: ../src/guestfs-actions.pod:625
5217 #, no-wrap
5218 msgid ""
5219 " int\n"
5220 " guestfs_base64_in (guestfs_h *g,\n"
5221 "                    const char *base64file,\n"
5222 "                    const char *filename);\n"
5223 "\n"
5224 msgstr ""
5225
5226 # type: textblock
5227 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:422
5228 msgid ""
5229 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5230 msgstr ""
5231
5232 # type: textblock
5233 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
5234 msgid "(Added in 1.3.5)"
5235 msgstr ""
5236
5237 # type: =head2
5238 #: ../src/guestfs-actions.pod:637
5239 msgid "guestfs_base64_out"
5240 msgstr ""
5241
5242 # type: verbatim
5243 #: ../src/guestfs-actions.pod:639
5244 #, no-wrap
5245 msgid ""
5246 " int\n"
5247 " guestfs_base64_out (guestfs_h *g,\n"
5248 "                     const char *filename,\n"
5249 "                     const char *base64file);\n"
5250 "\n"
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:431
5255 msgid ""
5256 "This command downloads the contents of C<filename>, writing it out to local "
5257 "file C<base64file> encoded as base64."
5258 msgstr ""
5259
5260 # type: =head2
5261 #: ../src/guestfs-actions.pod:651
5262 msgid "guestfs_blockdev_flushbufs"
5263 msgstr ""
5264
5265 # type: verbatim
5266 #: ../src/guestfs-actions.pod:653
5267 #, no-wrap
5268 msgid ""
5269 " int\n"
5270 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5271 "                             const char *device);\n"
5272 "\n"
5273 msgstr ""
5274
5275 # type: textblock
5276 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:440
5277 msgid ""
5278 "This tells the kernel to flush internal buffers associated with C<device>."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
5283 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
5284 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
5285 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
5286 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
5287 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5288 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5289 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5290 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5291 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5292 msgid "This uses the L<blockdev(8)> command."
5293 msgstr ""
5294
5295 # type: textblock
5296 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
5297 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
5298 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
5299 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
5300 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
5301 msgid "(Added in 0.9.3)"
5302 msgstr ""
5303
5304 # type: =head2
5305 #: ../src/guestfs-actions.pod:666
5306 msgid "guestfs_blockdev_getbsz"
5307 msgstr ""
5308
5309 # type: verbatim
5310 #: ../src/guestfs-actions.pod:668
5311 #, no-wrap
5312 msgid ""
5313 " int\n"
5314 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5315 "                          const char *device);\n"
5316 "\n"
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:449
5321 msgid "This returns the block size of a device."
5322 msgstr ""
5323
5324 # type: textblock
5325 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
5326 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5327 msgid ""
5328 "(Note this is different from both I<size in blocks> and I<filesystem block "
5329 "size>)."
5330 msgstr ""
5331
5332 # type: =head2
5333 #: ../src/guestfs-actions.pod:683
5334 msgid "guestfs_blockdev_getro"
5335 msgstr ""
5336
5337 # type: verbatim
5338 #: ../src/guestfs-actions.pod:685
5339 #, no-wrap
5340 msgid ""
5341 " int\n"
5342 " guestfs_blockdev_getro (guestfs_h *g,\n"
5343 "                         const char *device);\n"
5344 "\n"
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:460
5349 msgid ""
5350 "Returns a boolean indicating if the block device is read-only (true if read-"
5351 "only, false if not)."
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
5356 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
5357 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
5358 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
5359 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
5360 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2831
5361 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2860
5362 #: ../src/guestfs-actions.pod:2876 ../src/guestfs-actions.pod:2891
5363 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2921
5364 #: ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2948
5365 #: ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:2978
5366 #: ../src/guestfs-actions.pod:4392
5367 msgid "This function returns a C truth value on success or -1 on error."
5368 msgstr ""
5369
5370 # type: =head2
5371 #: ../src/guestfs-actions.pod:698
5372 msgid "guestfs_blockdev_getsize64"
5373 msgstr ""
5374
5375 # type: verbatim
5376 #: ../src/guestfs-actions.pod:700
5377 #, no-wrap
5378 msgid ""
5379 " int64_t\n"
5380 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5381 "                             const char *device);\n"
5382 "\n"
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:469
5387 msgid "This returns the size of the device in bytes."
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:706
5392 msgid "See also C<guestfs_blockdev_getsz>."
5393 msgstr ""
5394
5395 # type: =head2
5396 #: ../src/guestfs-actions.pod:714
5397 msgid "guestfs_blockdev_getss"
5398 msgstr ""
5399
5400 # type: verbatim
5401 #: ../src/guestfs-actions.pod:716
5402 #, no-wrap
5403 msgid ""
5404 " int\n"
5405 " guestfs_blockdev_getss (guestfs_h *g,\n"
5406 "                         const char *device);\n"
5407 "\n"
5408 msgstr ""
5409
5410 # type: textblock
5411 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:479
5412 msgid ""
5413 "This returns the size of sectors on a block device.  Usually 512, but can be "
5414 "larger for modern devices."
5415 msgstr ""
5416
5417 # type: textblock
5418 #: ../src/guestfs-actions.pod:723
5419 msgid ""
5420 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5421 "that)."
5422 msgstr ""
5423
5424 # type: =head2
5425 #: ../src/guestfs-actions.pod:732
5426 msgid "guestfs_blockdev_getsz"
5427 msgstr ""
5428
5429 # type: verbatim
5430 #: ../src/guestfs-actions.pod:734
5431 #, no-wrap
5432 msgid ""
5433 " int64_t\n"
5434 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5435 "                         const char *device);\n"
5436 "\n"
5437 msgstr ""
5438
5439 # type: textblock
5440 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:491
5441 msgid ""
5442 "This returns the size of the device in units of 512-byte sectors (even if "
5443 "the sectorsize isn't 512 bytes ... weird)."
5444 msgstr ""
5445
5446 # type: textblock
5447 #: ../src/guestfs-actions.pod:741
5448 msgid ""
5449 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5450 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5451 msgstr ""
5452
5453 # type: =head2
5454 #: ../src/guestfs-actions.pod:751
5455 msgid "guestfs_blockdev_rereadpt"
5456 msgstr ""
5457
5458 # type: verbatim
5459 #: ../src/guestfs-actions.pod:753
5460 #, no-wrap
5461 msgid ""
5462 " int\n"
5463 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5464 "                            const char *device);\n"
5465 "\n"
5466 msgstr ""
5467
5468 # type: textblock
5469 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:504
5470 msgid "Reread the partition table on C<device>."
5471 msgstr ""
5472
5473 # type: =head2
5474 #: ../src/guestfs-actions.pod:765
5475 msgid "guestfs_blockdev_setbsz"
5476 msgstr ""
5477
5478 # type: verbatim
5479 #: ../src/guestfs-actions.pod:767
5480 #, no-wrap
5481 msgid ""
5482 " int\n"
5483 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5484 "                          const char *device,\n"
5485 "                          int blocksize);\n"
5486 "\n"
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:512
5491 msgid "This sets the block size of a device."
5492 msgstr ""
5493
5494 # type: =head2
5495 #: ../src/guestfs-actions.pod:783
5496 msgid "guestfs_blockdev_setro"
5497 msgstr ""
5498
5499 # type: verbatim
5500 #: ../src/guestfs-actions.pod:785
5501 #, no-wrap
5502 msgid ""
5503 " int\n"
5504 " guestfs_blockdev_setro (guestfs_h *g,\n"
5505 "                         const char *device);\n"
5506 "\n"
5507 msgstr ""
5508
5509 # type: textblock
5510 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:523
5511 msgid "Sets the block device named C<device> to read-only."
5512 msgstr ""
5513
5514 # type: =head2
5515 #: ../src/guestfs-actions.pod:797
5516 msgid "guestfs_blockdev_setrw"
5517 msgstr ""
5518
5519 # type: verbatim
5520 #: ../src/guestfs-actions.pod:799
5521 #, no-wrap
5522 msgid ""
5523 " int\n"
5524 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5525 "                         const char *device);\n"
5526 "\n"
5527 msgstr ""
5528
5529 # type: textblock
5530 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:531
5531 msgid "Sets the block device named C<device> to read-write."
5532 msgstr ""
5533
5534 # type: =head2
5535 #: ../src/guestfs-actions.pod:811
5536 msgid "guestfs_case_sensitive_path"
5537 msgstr ""
5538
5539 # type: verbatim
5540 #: ../src/guestfs-actions.pod:813
5541 #, no-wrap
5542 msgid ""
5543 " char *\n"
5544 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5545 "                              const char *path);\n"
5546 "\n"
5547 msgstr ""
5548
5549 # type: textblock
5550 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:539
5551 msgid ""
5552 "This can be used to resolve case insensitive paths on a filesystem which is "
5553 "case sensitive.  The use case is to resolve paths which you have read from "
5554 "Windows configuration files or the Windows Registry, to the true path."
5555 msgstr ""
5556
5557 # type: textblock
5558 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:544
5559 msgid ""
5560 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5561 "(and probably others), which is that although the underlying filesystem is "
5562 "case-insensitive, the driver exports the filesystem to Linux as case-"
5563 "sensitive."
5564 msgstr ""
5565
5566 # type: textblock
5567 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:549
5568 msgid ""
5569 "One consequence of this is that special directories such as C<c:\\windows> "
5570 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5571 "precise details of how they were created.  In Windows itself this would not "
5572 "be a problem."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:555
5577 msgid ""
5578 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5579 "#posixfilenames1>"
5580 msgstr ""
5581
5582 # type: textblock
5583 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:558
5584 msgid ""
5585 "This function resolves the true case of each element in the path and returns "
5586 "the case-sensitive path."
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:839
5591 msgid ""
5592 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5593 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5594 "how the directories were originally created under Windows)."
5595 msgstr ""
5596
5597 # type: textblock
5598 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:566
5599 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:847
5604 msgid "See also C<guestfs_realpath>."
5605 msgstr ""
5606
5607 # type: textblock
5608 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6324
5609 msgid "(Added in 1.0.75)"
5610 msgstr ""
5611
5612 # type: =head2
5613 #: ../src/guestfs-actions.pod:854
5614 msgid "guestfs_cat"
5615 msgstr ""
5616
5617 # type: verbatim
5618 #: ../src/guestfs-actions.pod:856
5619 #, no-wrap
5620 msgid ""
5621 " char *\n"
5622 " guestfs_cat (guestfs_h *g,\n"
5623 "              const char *path);\n"
5624 "\n"
5625 msgstr ""
5626
5627 # type: textblock
5628 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:4879
5629 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3221
5630 msgid "Return the contents of the file named C<path>."
5631 msgstr ""
5632
5633 # type: textblock
5634 #: ../src/guestfs-actions.pod:862
5635 msgid ""
5636 "Note that this function cannot correctly handle binary files (specifically, "
5637 "files containing C<\\0> character which is treated as end of string).  For "
5638 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5639 "functions which have a more complex interface."
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
5644 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
5645 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
5646 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
5647 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2187
5648 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2254
5649 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:2300
5650 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4687
5651 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4844
5652 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:5719
5653 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5920
5654 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:6596
5655 #: ../src/guestfs-actions.pod:6622 ../src/guestfs-actions.pod:6648
5656 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6752
5657 #: ../src/guestfs-actions.pod:6771 ../src/guestfs-actions.pod:6817
5658 #: ../src/guestfs-actions.pod:6836 ../fish/guestfish-actions.pod:582
5659 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5660 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5661 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5662 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5663 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5664 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5665 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3091
5666 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3182
5667 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3214
5668 #: ../fish/guestfish-actions.pod:3797 ../fish/guestfish-actions.pod:3843
5669 #: ../fish/guestfish-actions.pod:3928 ../fish/guestfish-actions.pod:3943
5670 #: ../fish/guestfish-actions.pod:4353 ../fish/guestfish-actions.pod:4371
5671 #: ../fish/guestfish-actions.pod:4388 ../fish/guestfish-actions.pod:4398
5672 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4456
5673 #: ../fish/guestfish-actions.pod:4485 ../fish/guestfish-actions.pod:4495
5674 msgid ""
5675 "Because of the message protocol, there is a transfer limit of somewhere "
5676 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5677 msgstr ""
5678
5679 # type: textblock
5680 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3059
5681 #: ../src/guestfs-actions.pod:3121 ../src/guestfs-actions.pod:3138
5682 #: ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3631
5683 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:4767
5684 #: ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:6483
5685 #: ../src/guestfs-actions.pod:6497
5686 msgid "(Added in 0.4)"
5687 msgstr ""
5688
5689 # type: =head2
5690 #: ../src/guestfs-actions.pod:875
5691 msgid "guestfs_checksum"
5692 msgstr ""
5693
5694 # type: verbatim
5695 #: ../src/guestfs-actions.pod:877
5696 #, no-wrap
5697 msgid ""
5698 " char *\n"
5699 " guestfs_checksum (guestfs_h *g,\n"
5700 "                   const char *csumtype,\n"
5701 "                   const char *path);\n"
5702 "\n"
5703 msgstr ""
5704
5705 # type: textblock
5706 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:589
5707 msgid ""
5708 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5709 msgstr ""
5710
5711 # type: textblock
5712 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:592
5713 msgid ""
5714 "The type of checksum to compute is given by the C<csumtype> parameter which "
5715 "must have one of the following values:"
5716 msgstr ""
5717
5718 # type: =item
5719 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:597
5720 msgid "C<crc>"
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:599
5725 msgid ""
5726 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5727 "C<cksum> command."
5728 msgstr ""
5729
5730 # type: =item
5731 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:602
5732 msgid "C<md5>"
5733 msgstr ""
5734
5735 # type: textblock
5736 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:604
5737 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5738 msgstr ""
5739
5740 # type: =item
5741 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:606
5742 msgid "C<sha1>"
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:608
5747 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5748 msgstr ""
5749
5750 # type: =item
5751 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:610
5752 msgid "C<sha224>"
5753 msgstr ""
5754
5755 # type: textblock
5756 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:612
5757 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5758 msgstr ""
5759
5760 # type: =item
5761 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:614
5762 msgid "C<sha256>"
5763 msgstr ""
5764
5765 # type: textblock
5766 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:616
5767 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5768 msgstr ""
5769
5770 # type: =item
5771 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:618
5772 msgid "C<sha384>"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:620
5777 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5778 msgstr ""
5779
5780 # type: =item
5781 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:622
5782 msgid "C<sha512>"
5783 msgstr ""
5784
5785 # type: textblock
5786 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:624
5787 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5788 msgstr ""
5789
5790 # type: textblock
5791 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:628
5792 msgid "The checksum is returned as a printable string."
5793 msgstr ""
5794
5795 # type: textblock
5796 #: ../src/guestfs-actions.pod:923
5797 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5798 msgstr ""
5799
5800 # type: textblock
5801 #: ../src/guestfs-actions.pod:925
5802 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5803 msgstr ""
5804
5805 # type: textblock
5806 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
5807 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2833
5808 #: ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2923
5809 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:6185
5810 msgid "(Added in 1.0.2)"
5811 msgstr ""
5812
5813 # type: =head2
5814 #: ../src/guestfs-actions.pod:932
5815 msgid "guestfs_checksum_device"
5816 msgstr ""
5817
5818 # type: verbatim
5819 #: ../src/guestfs-actions.pod:934
5820 #, no-wrap
5821 msgid ""
5822 " char *\n"
5823 " guestfs_checksum_device (guestfs_h *g,\n"
5824 "                          const char *csumtype,\n"
5825 "                          const char *device);\n"
5826 "\n"
5827 msgstr ""
5828
5829 # type: textblock
5830 #: ../src/guestfs-actions.pod:939
5831 msgid ""
5832 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5833 "device named C<device>.  For the types of checksums supported see the "
5834 "C<guestfs_checksum> command."
5835 msgstr ""
5836
5837 # type: textblock
5838 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4298
5839 #: ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4394
5840 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4588
5841 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6113
5842 #: ../src/guestfs-actions.pod:6509
5843 msgid "(Added in 1.3.2)"
5844 msgstr ""
5845
5846 # type: =head2
5847 #: ../src/guestfs-actions.pod:948
5848 msgid "guestfs_checksums_out"
5849 msgstr ""
5850
5851 # type: verbatim
5852 #: ../src/guestfs-actions.pod:950
5853 #, no-wrap
5854 msgid ""
5855 " int\n"
5856 " guestfs_checksums_out (guestfs_h *g,\n"
5857 "                        const char *csumtype,\n"
5858 "                        const char *directory,\n"
5859 "                        const char *sumsfile);\n"
5860 "\n"
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:646
5865 msgid ""
5866 "This command computes the checksums of all regular files in C<directory> and "
5867 "then emits a list of those checksums to the local output file C<sumsfile>."
5868 msgstr ""
5869
5870 # type: textblock
5871 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:650
5872 msgid ""
5873 "This can be used for verifying the integrity of a virtual machine.  However "
5874 "to be properly secure you should pay attention to the output of the checksum "
5875 "command (it uses the ones from GNU coreutils).  In particular when the "
5876 "filename is not printable, coreutils uses a special backslash syntax.  For "
5877 "more information, see the GNU coreutils info file."
5878 msgstr ""
5879
5880 # type: textblock
5881 #: ../src/guestfs-actions.pod:970
5882 msgid "(Added in 1.3.7)"
5883 msgstr ""
5884
5885 # type: =head2
5886 #: ../src/guestfs-actions.pod:972
5887 msgid "guestfs_chmod"
5888 msgstr ""
5889
5890 # type: verbatim
5891 #: ../src/guestfs-actions.pod:974
5892 #, no-wrap
5893 msgid ""
5894 " int\n"
5895 " guestfs_chmod (guestfs_h *g,\n"
5896 "                int mode,\n"
5897 "                const char *path);\n"
5898 "\n"
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:664
5903 msgid ""
5904 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5905 "supported."
5906 msgstr ""
5907
5908 # type: textblock
5909 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:667
5910 msgid ""
5911 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5912 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5913 "C<700>."
5914 msgstr ""
5915
5916 # type: textblock
5917 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:3882
5918 #: ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4016
5919 #: ../src/guestfs-actions.pod:4035 ../fish/guestfish-actions.pod:671
5920 #: ../fish/guestfish-actions.pod:2581 ../fish/guestfish-actions.pod:2666
5921 #: ../fish/guestfish-actions.pod:2676 ../fish/guestfish-actions.pod:2686
5922 msgid "The mode actually set is affected by the umask."
5923 msgstr ""
5924
5925 # type: =head2
5926 #: ../src/guestfs-actions.pod:992
5927 msgid "guestfs_chown"
5928 msgstr ""
5929
5930 # type: verbatim
5931 #: ../src/guestfs-actions.pod:994
5932 #, no-wrap
5933 msgid ""
5934 " int\n"
5935 " guestfs_chown (guestfs_h *g,\n"
5936 "                int owner,\n"
5937 "                int group,\n"
5938 "                const char *path);\n"
5939 "\n"
5940 msgstr ""
5941
5942 # type: textblock
5943 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:677
5944 msgid "Change the file owner to C<owner> and group to C<group>."
5945 msgstr ""
5946
5947 # type: textblock
5948 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3020
5949 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2059
5950 msgid ""
5951 "Only numeric uid and gid are supported.  If you want to use names, you will "
5952 "need to locate and parse the password file yourself (Augeas support makes "
5953 "this relatively easy)."
5954 msgstr ""
5955
5956 # type: =head2
5957 #: ../src/guestfs-actions.pod:1010
5958 msgid "guestfs_command"
5959 msgstr ""
5960
5961 # type: verbatim
5962 #: ../src/guestfs-actions.pod:1012
5963 #, no-wrap
5964 msgid ""
5965 " char *\n"
5966 " guestfs_command (guestfs_h *g,\n"
5967 "                  char *const *arguments);\n"
5968 "\n"
5969 msgstr ""
5970
5971 # type: textblock
5972 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:687
5973 msgid ""
5974 "This call runs a command from the guest filesystem.  The filesystem must be "
5975 "mounted, and must contain a compatible operating system (ie. something "
5976 "Linux, with the same or compatible processor architecture)."
5977 msgstr ""
5978
5979 # type: textblock
5980 #: ../src/guestfs-actions.pod:1021
5981 msgid ""
5982 "The single parameter is an argv-style list of arguments.  The first element "
5983 "is the name of the program to run.  Subsequent elements are parameters.  The "
5984 "list must be non-empty (ie. must contain a program name).  Note that the "
5985 "command runs directly, and is I<not> invoked via the shell (see "
5986 "C<guestfs_sh>)."
5987 msgstr ""
5988
5989 # type: textblock
5990 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:699
5991 msgid "The return value is anything printed to I<stdout> by the command."
5992 msgstr ""
5993
5994 # type: textblock
5995 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:702
5996 msgid ""
5997 "If the command returns a non-zero exit status, then this function returns an "
5998 "error message.  The error message string is the content of I<stderr> from "
5999 "the command."
6000 msgstr ""
6001
6002 # type: textblock
6003 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:706
6004 msgid ""
6005 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6006 "bin>.  If you require a program from another location, you should provide "
6007 "the full path in the first parameter."
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:711
6012 msgid ""
6013 "Shared libraries and data files required by the program must be available on "
6014 "filesystems which are mounted in the correct places.  It is the caller's "
6015 "responsibility to ensure all filesystems that are needed are mounted at the "
6016 "right locations."
6017 msgstr ""
6018
6019 # type: textblock
6020 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
6021 #: ../src/guestfs-actions.pod:1535
6022 msgid "(Added in 0.9.1)"
6023 msgstr ""
6024
6025 # type: =head2
6026 #: ../src/guestfs-actions.pod:1054
6027 msgid "guestfs_command_lines"
6028 msgstr ""
6029
6030 # type: verbatim
6031 #: ../src/guestfs-actions.pod:1056
6032 #, no-wrap
6033 msgid ""
6034 " char **\n"
6035 " guestfs_command_lines (guestfs_h *g,\n"
6036 "                        char *const *arguments);\n"
6037 "\n"
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:1060
6042 msgid ""
6043 "This is the same as C<guestfs_command>, but splits the result into a list of "
6044 "lines."
6045 msgstr ""
6046
6047 # type: textblock
6048 #: ../src/guestfs-actions.pod:1063
6049 msgid "See also: C<guestfs_sh_lines>"
6050 msgstr ""
6051
6052 # type: =head2
6053 #: ../src/guestfs-actions.pod:1074
6054 msgid "guestfs_config"
6055 msgstr ""
6056
6057 # type: verbatim
6058 #: ../src/guestfs-actions.pod:1076
6059 #, no-wrap
6060 msgid ""
6061 " int\n"
6062 " guestfs_config (guestfs_h *g,\n"
6063 "                 const char *qemuparam,\n"
6064 "                 const char *qemuvalue);\n"
6065 "\n"
6066 msgstr ""
6067
6068 # type: textblock
6069 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:736
6070 msgid ""
6071 "This can be used to add arbitrary qemu command line parameters of the form "
6072 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6073 "setting some parameters which would interfere with parameters that we use."
6074 msgstr ""
6075
6076 # type: textblock
6077 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:741
6078 msgid "The first character of C<param> string must be a C<-> (dash)."
6079 msgstr ""
6080
6081 # type: textblock
6082 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:743
6083 msgid "C<value> can be NULL."
6084 msgstr ""
6085
6086 # type: =head2
6087 #: ../src/guestfs-actions.pod:1094
6088 msgid "guestfs_copy_size"
6089 msgstr ""
6090
6091 # type: verbatim
6092 #: ../src/guestfs-actions.pod:1096
6093 #, no-wrap
6094 msgid ""
6095 " int\n"
6096 " guestfs_copy_size (guestfs_h *g,\n"
6097 "                    const char *src,\n"
6098 "                    const char *dest,\n"
6099 "                    int64_t size);\n"
6100 "\n"
6101 msgstr ""
6102
6103 # type: textblock
6104 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:749
6105 msgid ""
6106 "This command copies exactly C<size> bytes from one source device or file "
6107 "C<src> to another destination device or file C<dest>."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:752
6112 msgid ""
6113 "Note this will fail if the source is too short or if the destination is not "
6114 "large enough."
6115 msgstr ""
6116
6117 # type: textblock
6118 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
6119 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
6120 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6688
6121 #: ../src/guestfs-actions.pod:6707
6122 msgid ""
6123 "This long-running command can generate progress notification messages so "
6124 "that the caller can display a progress bar or indicator.  To receive these "
6125 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6126 "guestfs_set_progress_callback>."
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3658
6131 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:6416
6132 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6522
6133 msgid "(Added in 1.0.87)"
6134 msgstr ""
6135
6136 # type: =head2
6137 #: ../src/guestfs-actions.pod:1117
6138 msgid "guestfs_cp"
6139 msgstr ""
6140
6141 # type: verbatim
6142 #: ../src/guestfs-actions.pod:1119
6143 #, no-wrap
6144 msgid ""
6145 " int\n"
6146 " guestfs_cp (guestfs_h *g,\n"
6147 "             const char *src,\n"
6148 "             const char *dest);\n"
6149 "\n"
6150 msgstr ""
6151
6152 # type: textblock
6153 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:759
6154 msgid ""
6155 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6156 "destination filename or destination directory."
6157 msgstr ""
6158
6159 # type: textblock
6160 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
6161 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
6162 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4261
6163 #: ../src/guestfs-actions.pod:4638
6164 msgid "(Added in 1.0.18)"
6165 msgstr ""
6166
6167 # type: =head2
6168 #: ../src/guestfs-actions.pod:1131
6169 msgid "guestfs_cp_a"
6170 msgstr ""
6171
6172 # type: verbatim
6173 #: ../src/guestfs-actions.pod:1133
6174 #, no-wrap
6175 msgid ""
6176 " int\n"
6177 " guestfs_cp_a (guestfs_h *g,\n"
6178 "               const char *src,\n"
6179 "               const char *dest);\n"
6180 "\n"
6181 msgstr ""
6182
6183 # type: textblock
6184 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:766
6185 msgid ""
6186 "This copies a file or directory from C<src> to C<dest> recursively using the "
6187 "C<cp -a> command."
6188 msgstr ""
6189
6190 # type: =head2
6191 #: ../src/guestfs-actions.pod:1145
6192 msgid "guestfs_dd"
6193 msgstr ""
6194
6195 # type: verbatim
6196 #: ../src/guestfs-actions.pod:1147
6197 #, no-wrap
6198 msgid ""
6199 " int\n"
6200 " guestfs_dd (guestfs_h *g,\n"
6201 "             const char *src,\n"
6202 "             const char *dest);\n"
6203 "\n"
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:773
6208 msgid ""
6209 "This command copies from one source device or file C<src> to another "
6210 "destination device or file C<dest>.  Normally you would use this to copy to "
6211 "or from a device or partition, for example to duplicate a filesystem."
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:1157
6216 msgid ""
6217 "If the destination is a device, it must be as large or larger than the "
6218 "source file or device, otherwise the copy will fail.  This command cannot do "
6219 "partial copies (see C<guestfs_copy_size>)."
6220 msgstr ""
6221
6222 # type: =head2
6223 #: ../src/guestfs-actions.pod:1165
6224 msgid "guestfs_df"
6225 msgstr ""
6226
6227 # type: verbatim
6228 #: ../src/guestfs-actions.pod:1167
6229 #, no-wrap
6230 msgid ""
6231 " char *\n"
6232 " guestfs_df (guestfs_h *g);\n"
6233 "\n"
6234 msgstr ""
6235
6236 # type: textblock
6237 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:786
6238 msgid "This command runs the C<df> command to report disk space used."
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
6243 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6244 msgid ""
6245 "This command is mostly useful for interactive sessions.  It is I<not> "
6246 "intended that you try to parse the output string.  Use C<statvfs> from "
6247 "programs."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
6252 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2233
6253 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2325
6254 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:4161
6255 #: ../src/guestfs-actions.pod:5923 ../src/guestfs-actions.pod:5947
6256 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6568
6257 #: ../src/guestfs-actions.pod:6581
6258 msgid "(Added in 1.0.54)"
6259 msgstr ""
6260
6261 # type: =head2
6262 #: ../src/guestfs-actions.pod:1181
6263 msgid "guestfs_df_h"
6264 msgstr ""
6265
6266 # type: verbatim
6267 #: ../src/guestfs-actions.pod:1183
6268 #, no-wrap
6269 msgid ""
6270 " char *\n"
6271 " guestfs_df_h (guestfs_h *g);\n"
6272 "\n"
6273 msgstr ""
6274
6275 # type: textblock
6276 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:796
6277 msgid ""
6278 "This command runs the C<df -h> command to report disk space used in human-"
6279 "readable format."
6280 msgstr ""
6281
6282 # type: =head2
6283 #: ../src/guestfs-actions.pod:1198
6284 msgid "guestfs_dmesg"
6285 msgstr ""
6286
6287 # type: verbatim
6288 #: ../src/guestfs-actions.pod:1200
6289 #, no-wrap
6290 msgid ""
6291 " char *\n"
6292 " guestfs_dmesg (guestfs_h *g);\n"
6293 "\n"
6294 msgstr ""
6295
6296 # type: textblock
6297 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:807
6298 msgid ""
6299 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6300 "This is sometimes useful for extended debugging of problems."
6301 msgstr ""
6302
6303 # type: textblock
6304 #: ../src/guestfs-actions.pod:1207
6305 msgid ""
6306 "Another way to get the same information is to enable verbose messages with "
6307 "C<guestfs_set_verbose> or by setting the environment variable "
6308 "C<LIBGUESTFS_DEBUG=1> before running the program."
6309 msgstr ""
6310
6311 # type: =head2
6312 #: ../src/guestfs-actions.pod:1217
6313 msgid "guestfs_download"
6314 msgstr ""
6315
6316 # type: verbatim
6317 #: ../src/guestfs-actions.pod:1219
6318 #, no-wrap
6319 msgid ""
6320 " int\n"
6321 " guestfs_download (guestfs_h *g,\n"
6322 "                   const char *remotefilename,\n"
6323 "                   const char *filename);\n"
6324 "\n"
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
6329 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6330 msgid ""
6331 "Download file C<remotefilename> and save it as C<filename> on the local "
6332 "machine."
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6179
6337 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4101
6338 msgid "C<filename> can also be a named pipe."
6339 msgstr ""
6340
6341 # type: textblock
6342 #: ../src/guestfs-actions.pod:1229
6343 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6344 msgstr ""
6345
6346 # type: =head2
6347 #: ../src/guestfs-actions.pod:1240
6348 msgid "guestfs_download_offset"
6349 msgstr ""
6350
6351 # type: verbatim
6352 #: ../src/guestfs-actions.pod:1242
6353 #, no-wrap
6354 msgid ""
6355 " int\n"
6356 " guestfs_download_offset (guestfs_h *g,\n"
6357 "                          const char *remotefilename,\n"
6358 "                          const char *filename,\n"
6359 "                          int64_t offset,\n"
6360 "                          int64_t size);\n"
6361 "\n"
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:836
6366 msgid ""
6367 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6368 "region must be within the file or device)."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1255
6373 msgid ""
6374 "Note that there is no limit on the amount of data that can be downloaded "
6375 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6376 "full amount unless an error occurs."
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1260
6381 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6382 msgstr ""
6383
6384 # type: textblock
6385 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6214
6386 msgid "(Added in 1.5.17)"
6387 msgstr ""
6388
6389 # type: =head2
6390 #: ../src/guestfs-actions.pod:1271
6391 msgid "guestfs_drop_caches"
6392 msgstr ""
6393
6394 # type: verbatim
6395 #: ../src/guestfs-actions.pod:1273
6396 #, no-wrap
6397 msgid ""
6398 " int\n"
6399 " guestfs_drop_caches (guestfs_h *g,\n"
6400 "                      int whattodrop);\n"
6401 "\n"
6402 msgstr ""
6403
6404 # type: textblock
6405 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:852
6406 msgid ""
6407 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6408 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6409 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6410 msgstr ""
6411
6412 # type: textblock
6413 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:857
6414 msgid "Setting C<whattodrop> to 3 should drop everything."
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:859
6419 msgid ""
6420 "This automatically calls L<sync(2)> before the operation, so that the "
6421 "maximum guest memory is freed."
6422 msgstr ""
6423
6424 # type: =head2
6425 #: ../src/guestfs-actions.pod:1291
6426 msgid "guestfs_du"
6427 msgstr ""
6428
6429 # type: verbatim
6430 #: ../src/guestfs-actions.pod:1293
6431 #, no-wrap
6432 msgid ""
6433 " int64_t\n"
6434 " guestfs_du (guestfs_h *g,\n"
6435 "             const char *path);\n"
6436 "\n"
6437 msgstr ""
6438
6439 # type: textblock
6440 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:866
6441 msgid ""
6442 "This command runs the C<du -s> command to estimate file space usage for "
6443 "C<path>."
6444 msgstr ""
6445
6446 # type: textblock
6447 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:869
6448 msgid ""
6449 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6450 "estimate includes the contents of the directory and all subdirectories "
6451 "(recursively)."
6452 msgstr ""
6453
6454 # type: textblock
6455 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:873
6456 msgid ""
6457 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6458 msgstr ""
6459
6460 # type: =head2
6461 #: ../src/guestfs-actions.pod:1311
6462 msgid "guestfs_e2fsck_f"
6463 msgstr ""
6464
6465 # type: verbatim
6466 #: ../src/guestfs-actions.pod:1313
6467 #, no-wrap
6468 msgid ""
6469 " int\n"
6470 " guestfs_e2fsck_f (guestfs_h *g,\n"
6471 "                   const char *device);\n"
6472 "\n"
6473 msgstr ""
6474
6475 # type: textblock
6476 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:880
6477 msgid ""
6478 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6479 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6480 "clean (C<-f>)."
6481 msgstr ""
6482
6483 # type: textblock
6484 #: ../src/guestfs-actions.pod:1321
6485 msgid ""
6486 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6487 "Normally you should use C<guestfs_fsck>."
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1326
6492 msgid "(Added in 1.0.29)"
6493 msgstr ""
6494
6495 # type: =head2
6496 #: ../src/guestfs-actions.pod:1328
6497 msgid "guestfs_echo_daemon"
6498 msgstr ""
6499
6500 # type: verbatim
6501 #: ../src/guestfs-actions.pod:1330
6502 #, no-wrap
6503 msgid ""
6504 " char *\n"
6505 " guestfs_echo_daemon (guestfs_h *g,\n"
6506 "                      char *const *words);\n"
6507 "\n"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:891
6512 msgid ""
6513 "This command concatenates the list of C<words> passed with single spaces "
6514 "between them and returns the resulting string."
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:894
6519 msgid "You can use this command to test the connection through to the daemon."
6520 msgstr ""
6521
6522 # type: textblock
6523 #: ../src/guestfs-actions.pod:1339
6524 msgid "See also C<guestfs_ping_daemon>."
6525 msgstr ""
6526
6527 # type: textblock
6528 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
6529 #: ../src/guestfs-actions.pod:5427
6530 msgid "(Added in 1.0.69)"
6531 msgstr ""
6532
6533 # type: =head2
6534 #: ../src/guestfs-actions.pod:1346
6535 msgid "guestfs_egrep"
6536 msgstr ""
6537
6538 # type: verbatim
6539 #: ../src/guestfs-actions.pod:1348
6540 #, no-wrap
6541 msgid ""
6542 " char **\n"
6543 " guestfs_egrep (guestfs_h *g,\n"
6544 "                const char *regex,\n"
6545 "                const char *path);\n"
6546 "\n"
6547 msgstr ""
6548
6549 # type: textblock
6550 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:902
6551 msgid ""
6552 "This calls the external C<egrep> program and returns the matching lines."
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
6557 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
6558 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2171
6559 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2346
6560 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2374
6561 #: ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2442
6562 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3151
6563 #: ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3178
6564 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:4096
6565 #: ../src/guestfs-actions.pod:4972 ../src/guestfs-actions.pod:5021
6566 #: ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5803
6567 #: ../src/guestfs-actions.pod:5816 ../src/guestfs-actions.pod:5829
6568 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:5864
6569 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:5890
6570 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6670
6571 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6774
6572 #: ../src/guestfs-actions.pod:6820 ../src/guestfs-actions.pod:6839
6573 msgid "(Added in 1.0.66)"
6574 msgstr ""
6575
6576 # type: =head2
6577 #: ../src/guestfs-actions.pod:1365
6578 msgid "guestfs_egrepi"
6579 msgstr ""
6580
6581 # type: verbatim
6582 #: ../src/guestfs-actions.pod:1367
6583 #, no-wrap
6584 msgid ""
6585 " char **\n"
6586 " guestfs_egrepi (guestfs_h *g,\n"
6587 "                 const char *regex,\n"
6588 "                 const char *path);\n"
6589 "\n"
6590 msgstr ""
6591
6592 # type: textblock
6593 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
6594 msgid ""
6595 "This calls the external C<egrep -i> program and returns the matching lines."
6596 msgstr ""
6597
6598 # type: =head2
6599 #: ../src/guestfs-actions.pod:1384
6600 msgid "guestfs_equal"
6601 msgstr ""
6602
6603 # type: verbatim
6604 #: ../src/guestfs-actions.pod:1386
6605 #, no-wrap
6606 msgid ""
6607 " int\n"
6608 " guestfs_equal (guestfs_h *g,\n"
6609 "                const char *file1,\n"
6610 "                const char *file2);\n"
6611 "\n"
6612 msgstr ""
6613
6614 # type: textblock
6615 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
6616 msgid ""
6617 "This compares the two files C<file1> and C<file2> and returns true if their "
6618 "content is exactly equal, or false otherwise."
6619 msgstr ""
6620
6621 # type: textblock
6622 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:925
6623 msgid "The external L<cmp(1)> program is used for the comparison."
6624 msgstr ""
6625
6626 # type: =head2
6627 #: ../src/guestfs-actions.pod:1400
6628 msgid "guestfs_exists"
6629 msgstr ""
6630
6631 # type: verbatim
6632 #: ../src/guestfs-actions.pod:1402
6633 #, no-wrap
6634 msgid ""
6635 " int\n"
6636 " guestfs_exists (guestfs_h *g,\n"
6637 "                 const char *path);\n"
6638 "\n"
6639 msgstr ""
6640
6641 # type: textblock
6642 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:931
6643 msgid ""
6644 "This returns C<true> if and only if there is a file, directory (or anything) "
6645 "with the given C<path> name."
6646 msgstr ""
6647
6648 # type: textblock
6649 #: ../src/guestfs-actions.pod:1409
6650 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6651 msgstr ""
6652
6653 # type: =head2
6654 #: ../src/guestfs-actions.pod:1415
6655 msgid "guestfs_fallocate"
6656 msgstr ""
6657
6658 # type: verbatim
6659 #: ../src/guestfs-actions.pod:1417
6660 #, no-wrap
6661 msgid ""
6662 " int\n"
6663 " guestfs_fallocate (guestfs_h *g,\n"
6664 "                    const char *path,\n"
6665 "                    int len);\n"
6666 "\n"
6667 msgstr ""
6668
6669 # type: textblock
6670 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
6671 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6672 msgid ""
6673 "This command preallocates a file (containing zero bytes) named C<path> of "
6674 "size C<len> bytes.  If the file exists already, it is overwritten."
6675 msgstr ""
6676
6677 # type: textblock
6678 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:944
6679 msgid ""
6680 "Do not confuse this with the guestfish-specific C<alloc> command which "
6681 "allocates a file in the host and attaches it as a device."
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:948
6686 msgid ""
6687 "This function is deprecated.  In new code, use the C<fallocate64> call "
6688 "instead."
6689 msgstr ""
6690
6691 # type: =head2
6692 #: ../src/guestfs-actions.pod:1441
6693 msgid "guestfs_fallocate64"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #: ../src/guestfs-actions.pod:1443
6698 #, no-wrap
6699 msgid ""
6700 " int\n"
6701 " guestfs_fallocate64 (guestfs_h *g,\n"
6702 "                      const char *path,\n"
6703 "                      int64_t len);\n"
6704 "\n"
6705 msgstr ""
6706
6707 # type: textblock
6708 #: ../src/guestfs-actions.pod:1452
6709 msgid ""
6710 "Note that this call allocates disk blocks for the file.  To create a sparse "
6711 "file use C<guestfs_truncate_size> instead."
6712 msgstr ""
6713
6714 # type: textblock
6715 #: ../src/guestfs-actions.pod:1455
6716 msgid ""
6717 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6718 "oversight it only allowed 30 bit lengths to be specified, effectively "
6719 "limiting the maximum size of files created through that call to 1GB."
6720 msgstr ""
6721
6722 # type: textblock
6723 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:971
6724 msgid ""
6725 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6726 "commands which create a file in the host and attach it as a device."
6727 msgstr ""
6728
6729 # type: textblock
6730 #: ../src/guestfs-actions.pod:1466
6731 msgid "(Added in 1.3.17)"
6732 msgstr ""
6733
6734 # type: =head2
6735 #: ../src/guestfs-actions.pod:1468
6736 msgid "guestfs_fgrep"
6737 msgstr ""
6738
6739 # type: verbatim
6740 #: ../src/guestfs-actions.pod:1470
6741 #, no-wrap
6742 msgid ""
6743 " char **\n"
6744 " guestfs_fgrep (guestfs_h *g,\n"
6745 "                const char *pattern,\n"
6746 "                const char *path);\n"
6747 "\n"
6748 msgstr ""
6749
6750 # type: textblock
6751 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:979
6752 msgid ""
6753 "This calls the external C<fgrep> program and returns the matching lines."
6754 msgstr ""
6755
6756 # type: =head2
6757 #: ../src/guestfs-actions.pod:1487
6758 msgid "guestfs_fgrepi"
6759 msgstr ""
6760
6761 # type: verbatim
6762 #: ../src/guestfs-actions.pod:1489
6763 #, no-wrap
6764 msgid ""
6765 " char **\n"
6766 " guestfs_fgrepi (guestfs_h *g,\n"
6767 "                 const char *pattern,\n"
6768 "                 const char *path);\n"
6769 "\n"
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
6774 msgid ""
6775 "This calls the external C<fgrep -i> program and returns the matching lines."
6776 msgstr ""
6777
6778 # type: =head2
6779 #: ../src/guestfs-actions.pod:1506
6780 msgid "guestfs_file"
6781 msgstr ""
6782
6783 # type: verbatim
6784 #: ../src/guestfs-actions.pod:1508
6785 #, no-wrap
6786 msgid ""
6787 " char *\n"
6788 " guestfs_file (guestfs_h *g,\n"
6789 "               const char *path);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:999
6795 msgid ""
6796 "This call uses the standard L<file(1)> command to determine the type or "
6797 "contents of the file."
6798 msgstr ""
6799
6800 # type: textblock
6801 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1002
6802 msgid ""
6803 "This call will also transparently look inside various types of compressed "
6804 "file."
6805 msgstr ""
6806
6807 # type: textblock
6808 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1005
6809 msgid ""
6810 "The exact command which runs is C<file -zb path>.  Note in particular that "
6811 "the filename is not prepended to the output (the C<-b> option)."
6812 msgstr ""
6813
6814 # type: textblock
6815 #: ../src/guestfs-actions.pod:1522
6816 msgid ""
6817 "This command can also be used on C</dev/> devices (and partitions, LV "
6818 "names).  You can for example use this to determine if a device contains a "
6819 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6820 msgstr ""
6821
6822 # type: textblock
6823 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1014
6824 msgid ""
6825 "If the C<path> does not begin with C</dev/> then this command only works for "
6826 "the content of regular files.  For other file types (directory, symbolic "
6827 "link etc) it will just return the string C<directory> etc."
6828 msgstr ""
6829
6830 # type: =head2
6831 #: ../src/guestfs-actions.pod:1537
6832 msgid "guestfs_file_architecture"
6833 msgstr ""
6834
6835 # type: verbatim
6836 #: ../src/guestfs-actions.pod:1539
6837 #, no-wrap
6838 msgid ""
6839 " char *\n"
6840 " guestfs_file_architecture (guestfs_h *g,\n"
6841 "                            const char *filename);\n"
6842 "\n"
6843 msgstr ""
6844
6845 # type: textblock
6846 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1023
6847 msgid ""
6848 "This detects the architecture of the binary C<filename>, and returns it if "
6849 "known."
6850 msgstr ""
6851
6852 # type: textblock
6853 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1026
6854 msgid "Currently defined architectures are:"
6855 msgstr ""
6856
6857 # type: =item
6858 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1030
6859 msgid "\"i386\""
6860 msgstr ""
6861
6862 # type: textblock
6863 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1032
6864 msgid ""
6865 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6866 "irrespective of the precise processor requirements of the binary."
6867 msgstr ""
6868
6869 # type: =item
6870 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1035
6871 msgid "\"x86_64\""
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1037
6876 msgid "64 bit x86-64."
6877 msgstr ""
6878
6879 # type: =item
6880 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1039
6881 msgid "\"sparc\""
6882 msgstr ""
6883
6884 # type: textblock
6885 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1041
6886 msgid "32 bit SPARC."
6887 msgstr ""
6888
6889 # type: =item
6890 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1043
6891 msgid "\"sparc64\""
6892 msgstr ""
6893
6894 # type: textblock
6895 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1045
6896 msgid "64 bit SPARC V9 and above."
6897 msgstr ""
6898
6899 # type: =item
6900 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1047
6901 msgid "\"ia64\""
6902 msgstr ""
6903
6904 # type: textblock
6905 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1049
6906 msgid "Intel Itanium."
6907 msgstr ""
6908
6909 # type: =item
6910 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1051
6911 msgid "\"ppc\""
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1053
6916 msgid "32 bit Power PC."
6917 msgstr ""
6918
6919 # type: =item
6920 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1055
6921 msgid "\"ppc64\""
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1057
6926 msgid "64 bit Power PC."
6927 msgstr ""
6928
6929 # type: textblock
6930 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1061
6931 msgid "Libguestfs may return other architecture strings in future."
6932 msgstr ""
6933
6934 # type: textblock
6935 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1063
6936 msgid "The function works on at least the following types of files:"
6937 msgstr ""
6938
6939 # type: textblock
6940 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1069
6941 msgid "many types of Un*x and Linux binary"
6942 msgstr ""
6943
6944 # type: textblock
6945 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1073
6946 msgid "many types of Un*x and Linux shared library"
6947 msgstr ""
6948
6949 # type: textblock
6950 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1077
6951 msgid "Windows Win32 and Win64 binaries"
6952 msgstr ""
6953
6954 # type: textblock
6955 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1081
6956 msgid "Windows Win32 and Win64 DLLs"
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1083
6961 msgid "Win32 binaries and DLLs return C<i386>."
6962 msgstr ""
6963
6964 # type: textblock
6965 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1085
6966 msgid "Win64 binaries and DLLs return C<x86_64>."
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1089
6971 msgid "Linux kernel modules"
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1093
6976 msgid "Linux new-style initrd images"
6977 msgstr ""
6978
6979 # type: textblock
6980 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1097
6981 msgid "some non-x86 Linux vmlinuz kernels"
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1101
6986 msgid "What it can't do currently:"
6987 msgstr ""
6988
6989 # type: textblock
6990 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1107
6991 msgid "static libraries (libfoo.a)"
6992 msgstr ""
6993
6994 # type: textblock
6995 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1111
6996 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6997 msgstr ""
6998
6999 # type: textblock
7000 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1115
7001 msgid "x86 Linux vmlinuz kernels"
7002 msgstr ""
7003
7004 # type: textblock
7005 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1117
7006 msgid ""
7007 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7008 "compressed code, and are horribly hard to unpack.  If you want to find the "
7009 "architecture of a kernel, use the architecture of the associated initrd or "
7010 "kernel module(s) instead."
7011 msgstr ""
7012
7013 # type: textblock
7014 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
7015 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2478
7016 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2577
7017 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2625
7018 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2682
7019 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2804
7020 #: ../src/guestfs-actions.pod:2936
7021 msgid "(Added in 1.5.3)"
7022 msgstr ""
7023
7024 # type: =head2
7025 #: ../src/guestfs-actions.pod:1649
7026 msgid "guestfs_filesize"
7027 msgstr ""
7028
7029 # type: verbatim
7030 #: ../src/guestfs-actions.pod:1651
7031 #, no-wrap
7032 msgid ""
7033 " int64_t\n"
7034 " guestfs_filesize (guestfs_h *g,\n"
7035 "                   const char *file);\n"
7036 "\n"
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1128
7041 msgid "This command returns the size of C<file> in bytes."
7042 msgstr ""
7043
7044 # type: textblock
7045 #: ../src/guestfs-actions.pod:1657
7046 msgid ""
7047 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7048 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7049 "devices, use C<guestfs_blockdev_getsize64>."
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1663
7054 msgid "(Added in 1.0.82)"
7055 msgstr ""
7056
7057 # type: =head2
7058 #: ../src/guestfs-actions.pod:1665
7059 msgid "guestfs_fill"
7060 msgstr ""
7061
7062 # type: verbatim
7063 #: ../src/guestfs-actions.pod:1667
7064 #, no-wrap
7065 msgid ""
7066 " int\n"
7067 " guestfs_fill (guestfs_h *g,\n"
7068 "               int c,\n"
7069 "               int len,\n"
7070 "               const char *path);\n"
7071 "\n"
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1138
7076 msgid ""
7077 "This command creates a new file called C<path>.  The initial content of the "
7078 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7079 "[0..255]>."
7080 msgstr ""
7081
7082 # type: textblock
7083 #: ../src/guestfs-actions.pod:1677
7084 msgid ""
7085 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7086 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7087 "bytes use C<guestfs_fill_pattern>."
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1689
7092 msgid "(Added in 1.0.79)"
7093 msgstr ""
7094
7095 # type: =head2
7096 #: ../src/guestfs-actions.pod:1691
7097 msgid "guestfs_fill_pattern"
7098 msgstr ""
7099
7100 # type: verbatim
7101 #: ../src/guestfs-actions.pod:1693
7102 #, no-wrap
7103 msgid ""
7104 " int\n"
7105 " guestfs_fill_pattern (guestfs_h *g,\n"
7106 "                       const char *pattern,\n"
7107 "                       int len,\n"
7108 "                       const char *path);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1699
7114 msgid ""
7115 "This function is like C<guestfs_fill> except that it creates a new file of "
7116 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7117 "pattern is truncated if necessary to ensure the length of the file is "
7118 "exactly C<len> bytes."
7119 msgstr ""
7120
7121 # type: textblock
7122 #: ../src/guestfs-actions.pod:1711
7123 msgid "(Added in 1.3.12)"
7124 msgstr ""
7125
7126 # type: =head2
7127 #: ../src/guestfs-actions.pod:1713
7128 msgid "guestfs_find"
7129 msgstr ""
7130
7131 # type: verbatim
7132 #: ../src/guestfs-actions.pod:1715
7133 #, no-wrap
7134 msgid ""
7135 " char **\n"
7136 " guestfs_find (guestfs_h *g,\n"
7137 "               const char *directory);\n"
7138 "\n"
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1160
7143 msgid ""
7144 "This command lists out all files and directories, recursively, starting at "
7145 "C<directory>.  It is essentially equivalent to running the shell command "
7146 "C<find directory -print> but some post-processing happens on the output, "
7147 "described below."
7148 msgstr ""
7149
7150 # type: textblock
7151 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1165
7152 msgid ""
7153 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7154 "structure was:"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1168
7159 #, no-wrap
7160 msgid ""
7161 " /tmp/a\n"
7162 " /tmp/b\n"
7163 " /tmp/c/d\n"
7164 "\n"
7165 msgstr ""
7166
7167 # type: textblock
7168 #: ../src/guestfs-actions.pod:1731
7169 msgid ""
7170 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7171 msgstr ""
7172
7173 # type: verbatim
7174 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1175
7175 #, no-wrap
7176 msgid ""
7177 " a\n"
7178 " b\n"
7179 " c\n"
7180 " c/d\n"
7181 "\n"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1180
7186 msgid "If C<directory> is not a directory, then this command returns an error."
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1183
7191 msgid "The returned list is sorted."
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1744
7196 msgid "See also C<guestfs_find0>."
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3595
7201 #: ../src/guestfs-actions.pod:5056
7202 msgid "(Added in 1.0.27)"
7203 msgstr ""
7204
7205 # type: =head2
7206 #: ../src/guestfs-actions.pod:1755
7207 msgid "guestfs_find0"
7208 msgstr ""
7209
7210 # type: verbatim
7211 #: ../src/guestfs-actions.pod:1757
7212 #, no-wrap
7213 msgid ""
7214 " int\n"
7215 " guestfs_find0 (guestfs_h *g,\n"
7216 "                const char *directory,\n"
7217 "                const char *files);\n"
7218 "\n"
7219 msgstr ""
7220
7221 # type: textblock
7222 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1194
7223 msgid ""
7224 "This command lists out all files and directories, recursively, starting at "
7225 "C<directory>, placing the resulting list in the external file called "
7226 "C<files>."
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1766
7231 msgid ""
7232 "This command works the same way as C<guestfs_find> with the following "
7233 "exceptions:"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1205
7238 msgid "The resulting list is written to an external file."
7239 msgstr ""
7240
7241 # type: textblock
7242 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1209
7243 msgid ""
7244 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7245 "L<find(1)> option I<-print0>."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1214
7250 msgid "This command is not limited in the number of names that it can return."
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1219
7255 msgid "The result list is not sorted."
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1793
7260 msgid "(Added in 1.0.74)"
7261 msgstr ""
7262
7263 # type: =head2
7264 #: ../src/guestfs-actions.pod:1795
7265 msgid "guestfs_findfs_label"
7266 msgstr ""
7267
7268 # type: verbatim
7269 #: ../src/guestfs-actions.pod:1797
7270 #, no-wrap
7271 msgid ""
7272 " char *\n"
7273 " guestfs_findfs_label (guestfs_h *g,\n"
7274 "                       const char *label);\n"
7275 "\n"
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1229
7280 msgid ""
7281 "This command searches the filesystems and returns the one which has the "
7282 "given label.  An error is returned if no such filesystem can be found."
7283 msgstr ""
7284
7285 # type: textblock
7286 #: ../src/guestfs-actions.pod:1805
7287 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7288 msgstr ""
7289
7290 # type: =head2
7291 #: ../src/guestfs-actions.pod:1812
7292 msgid "guestfs_findfs_uuid"
7293 msgstr ""
7294
7295 # type: verbatim
7296 #: ../src/guestfs-actions.pod:1814
7297 #, no-wrap
7298 msgid ""
7299 " char *\n"
7300 " guestfs_findfs_uuid (guestfs_h *g,\n"
7301 "                      const char *uuid);\n"
7302 "\n"
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1239
7307 msgid ""
7308 "This command searches the filesystems and returns the one which has the "
7309 "given UUID.  An error is returned if no such filesystem can be found."
7310 msgstr ""
7311
7312 # type: textblock
7313 #: ../src/guestfs-actions.pod:1822
7314 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7315 msgstr ""
7316
7317 # type: =head2
7318 #: ../src/guestfs-actions.pod:1829
7319 msgid "guestfs_fsck"
7320 msgstr ""
7321
7322 # type: verbatim
7323 #: ../src/guestfs-actions.pod:1831
7324 #, no-wrap
7325 msgid ""
7326 " int\n"
7327 " guestfs_fsck (guestfs_h *g,\n"
7328 "               const char *fstype,\n"
7329 "               const char *device);\n"
7330 "\n"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1249
7335 msgid ""
7336 "This runs the filesystem checker (fsck) on C<device> which should have "
7337 "filesystem type C<fstype>."
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1252
7342 msgid ""
7343 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7344 "codes from C<fsck>."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1261
7349 msgid "Multiple status codes can be summed together."
7350 msgstr ""
7351
7352 # type: textblock
7353 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1265
7354 msgid ""
7355 "A non-zero return code can mean \"success\", for example if errors have been "
7356 "corrected on the filesystem."
7357 msgstr ""
7358
7359 # type: textblock
7360 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1270
7361 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7362 msgstr ""
7363
7364 # type: textblock
7365 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1275
7366 msgid ""
7367 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7368 msgstr ""
7369
7370 # type: textblock
7371 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:6693
7372 msgid "(Added in 1.0.16)"
7373 msgstr ""
7374
7375 # type: =head2
7376 #: ../src/guestfs-actions.pod:1868
7377 msgid "guestfs_get_append"
7378 msgstr ""
7379
7380 # type: verbatim
7381 #: ../src/guestfs-actions.pod:1870
7382 #, no-wrap
7383 msgid ""
7384 " const char *\n"
7385 " guestfs_get_append (guestfs_h *g);\n"
7386 "\n"
7387 msgstr ""
7388
7389 # type: textblock
7390 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1281
7391 msgid ""
7392 "Return the additional kernel options which are added to the guest kernel "
7393 "command line."
7394 msgstr ""
7395
7396 # type: textblock
7397 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1284
7398 msgid "If C<NULL> then no options are added."
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1878
7403 msgid ""
7404 "This function returns a string which may be NULL.  There is no way to return "
7405 "an error from this function.  The string is owned by the guest handle and "
7406 "must I<not> be freed."
7407 msgstr ""
7408
7409 # type: textblock
7410 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:4734
7411 #: ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5565
7412 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5600
7413 #: ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:6364
7414 #: ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6736
7415 msgid "(Added in 1.0.26)"
7416 msgstr ""
7417
7418 # type: =head2
7419 #: ../src/guestfs-actions.pod:1884
7420 msgid "guestfs_get_autosync"
7421 msgstr ""
7422
7423 # type: verbatim
7424 #: ../src/guestfs-actions.pod:1886
7425 #, no-wrap
7426 msgid ""
7427 " int\n"
7428 " guestfs_get_autosync (guestfs_h *g);\n"
7429 "\n"
7430 msgstr ""
7431
7432 # type: textblock
7433 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1290
7434 msgid "Get the autosync flag."
7435 msgstr ""
7436
7437 # type: =head2
7438 #: ../src/guestfs-actions.pod:1895
7439 msgid "guestfs_get_direct"
7440 msgstr ""
7441
7442 # type: verbatim
7443 #: ../src/guestfs-actions.pod:1897
7444 #, no-wrap
7445 msgid ""
7446 " int\n"
7447 " guestfs_get_direct (guestfs_h *g);\n"
7448 "\n"
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1296
7453 msgid "Return the direct appliance mode flag."
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5238
7458 msgid "(Added in 1.0.72)"
7459 msgstr ""
7460
7461 # type: =head2
7462 #: ../src/guestfs-actions.pod:1906
7463 msgid "guestfs_get_e2label"
7464 msgstr ""
7465
7466 # type: verbatim
7467 #: ../src/guestfs-actions.pod:1908
7468 #, no-wrap
7469 msgid ""
7470 " char *\n"
7471 " guestfs_get_e2label (guestfs_h *g,\n"
7472 "                      const char *device);\n"
7473 "\n"
7474 msgstr ""
7475
7476 # type: textblock
7477 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1302
7478 msgid ""
7479 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7480 msgstr ""
7481
7482 # type: textblock
7483 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1305
7484 msgid ""
7485 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
7490 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
7491 msgid "(Added in 1.0.15)"
7492 msgstr ""
7493
7494 # type: =head2
7495 #: ../src/guestfs-actions.pod:1927
7496 msgid "guestfs_get_e2uuid"
7497 msgstr ""
7498
7499 # type: verbatim
7500 #: ../src/guestfs-actions.pod:1929
7501 #, no-wrap
7502 msgid ""
7503 " char *\n"
7504 " guestfs_get_e2uuid (guestfs_h *g,\n"
7505 "                     const char *device);\n"
7506 "\n"
7507 msgstr ""
7508
7509 # type: textblock
7510 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1316
7511 msgid ""
7512 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1319
7517 msgid ""
7518 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7519 msgstr ""
7520
7521 # type: =head2
7522 #: ../src/guestfs-actions.pod:1948
7523 msgid "guestfs_get_memsize"
7524 msgstr ""
7525
7526 # type: verbatim
7527 #: ../src/guestfs-actions.pod:1950
7528 #, no-wrap
7529 msgid ""
7530 " int\n"
7531 " guestfs_get_memsize (guestfs_h *g);\n"
7532 "\n"
7533 msgstr ""
7534
7535 # type: textblock
7536 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1330
7537 msgid ""
7538 "This gets the memory size in megabytes allocated to the qemu subprocess."
7539 msgstr ""
7540
7541 # type: textblock
7542 #: ../src/guestfs-actions.pod:1956
7543 msgid ""
7544 "If C<guestfs_set_memsize> was not called on this handle, and if "
7545 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7546 "value for memsize."
7547 msgstr ""
7548
7549 # type: textblock
7550 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
7551 #: ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5398
7552 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7553 #: ../fish/guestfish-actions.pod:3508 ../fish/guestfish-actions.pod:3595
7554 msgid ""
7555 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:3886
7560 #: ../src/guestfs-actions.pod:4001 ../src/guestfs-actions.pod:4020
7561 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4051
7562 #: ../src/guestfs-actions.pod:4068 ../src/guestfs-actions.pod:4081
7563 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:5296
7564 #: ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:6140
7565 msgid "(Added in 1.0.55)"
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:1967
7570 msgid "guestfs_get_network"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:1969
7575 #, no-wrap
7576 msgid ""
7577 " int\n"
7578 " guestfs_get_network (guestfs_h *g);\n"
7579 "\n"
7580 msgstr ""
7581
7582 # type: textblock
7583 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1344
7584 msgid "This returns the enable network flag."
7585 msgstr ""
7586
7587 # type: textblock
7588 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5315
7589 msgid "(Added in 1.5.4)"
7590 msgstr ""
7591
7592 # type: =head2
7593 #: ../src/guestfs-actions.pod:1978
7594 msgid "guestfs_get_path"
7595 msgstr ""
7596
7597 # type: verbatim
7598 #: ../src/guestfs-actions.pod:1980
7599 #, no-wrap
7600 msgid ""
7601 " const char *\n"
7602 " guestfs_get_path (guestfs_h *g);\n"
7603 "\n"
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1350
7608 msgid "Return the current search path."
7609 msgstr ""
7610
7611 # type: textblock
7612 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1352
7613 msgid ""
7614 "This is always non-NULL.  If it wasn't set already, then this will return "
7615 "the default path."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
7620 msgid ""
7621 "This function returns a string, or NULL on error.  The string is owned by "
7622 "the guest handle and must I<not> be freed."
7623 msgstr ""
7624
7625 # type: =head2
7626 #: ../src/guestfs-actions.pod:1993
7627 msgid "guestfs_get_pid"
7628 msgstr ""
7629
7630 # type: verbatim
7631 #: ../src/guestfs-actions.pod:1995
7632 #, no-wrap
7633 msgid ""
7634 " int\n"
7635 " guestfs_get_pid (guestfs_h *g);\n"
7636 "\n"
7637 msgstr ""
7638
7639 # type: textblock
7640 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1361
7641 msgid ""
7642 "Return the process ID of the qemu subprocess.  If there is no qemu "
7643 "subprocess, then this will return an error."
7644 msgstr ""
7645
7646 # type: textblock
7647 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1364
7648 msgid "This is an internal call used for debugging and testing."
7649 msgstr ""
7650
7651 # type: textblock
7652 #: ../src/guestfs-actions.pod:2005
7653 msgid "(Added in 1.0.56)"
7654 msgstr ""
7655
7656 # type: =head2
7657 #: ../src/guestfs-actions.pod:2007
7658 msgid "guestfs_get_qemu"
7659 msgstr ""
7660
7661 # type: verbatim
7662 #: ../src/guestfs-actions.pod:2009
7663 #, no-wrap
7664 msgid ""
7665 " const char *\n"
7666 " guestfs_get_qemu (guestfs_h *g);\n"
7667 "\n"
7668 msgstr ""
7669
7670 # type: textblock
7671 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1370
7672 msgid "Return the current qemu binary."
7673 msgstr ""
7674
7675 # type: textblock
7676 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1372
7677 msgid ""
7678 "This is always non-NULL.  If it wasn't set already, then this will return "
7679 "the default qemu binary name."
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5360
7684 msgid "(Added in 1.0.6)"
7685 msgstr ""
7686
7687 # type: =head2
7688 #: ../src/guestfs-actions.pod:2022
7689 msgid "guestfs_get_recovery_proc"
7690 msgstr ""
7691
7692 # type: verbatim
7693 #: ../src/guestfs-actions.pod:2024
7694 #, no-wrap
7695 msgid ""
7696 " int\n"
7697 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7698 "\n"
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1379
7703 msgid "Return the recovery process enabled flag."
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3026
7708 #: ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:3693
7709 #: ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:4664
7710 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5384
7711 #: ../src/guestfs-actions.pod:6043 ../src/guestfs-actions.pod:6063
7712 #: ../src/guestfs-actions.pod:6245
7713 msgid "(Added in 1.0.77)"
7714 msgstr ""
7715
7716 # type: =head2
7717 #: ../src/guestfs-actions.pod:2033
7718 msgid "guestfs_get_selinux"
7719 msgstr ""
7720
7721 # type: verbatim
7722 #: ../src/guestfs-actions.pod:2035
7723 #, no-wrap
7724 msgid ""
7725 " int\n"
7726 " guestfs_get_selinux (guestfs_h *g);\n"
7727 "\n"
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:2038
7732 msgid ""
7733 "This returns the current setting of the selinux flag which is passed to the "
7734 "appliance at boot time.  See C<guestfs_set_selinux>."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
7739 #: ../src/guestfs-actions.pod:5403 ../src/guestfs-actions.pod:5457
7740 msgid "(Added in 1.0.67)"
7741 msgstr ""
7742
7743 # type: =head2
7744 #: ../src/guestfs-actions.pod:2048
7745 msgid "guestfs_get_state"
7746 msgstr ""
7747
7748 # type: verbatim
7749 #: ../src/guestfs-actions.pod:2050
7750 #, no-wrap
7751 msgid ""
7752 " int\n"
7753 " guestfs_get_state (guestfs_h *g);\n"
7754 "\n"
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1395
7759 msgid ""
7760 "This returns the current state as an opaque integer.  This is only useful "
7761 "for printing debug and internal error messages."
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:2829
7766 #: ../src/guestfs-actions.pod:2858 ../src/guestfs-actions.pod:2919
7767 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:1398
7768 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1959
7769 #: ../fish/guestfish-actions.pod:1997 ../fish/guestfish-actions.pod:2013
7770 msgid "For more information on states, see L<guestfs(3)>."
7771 msgstr ""
7772
7773 # type: =head2
7774 #: ../src/guestfs-actions.pod:2062
7775 msgid "guestfs_get_trace"
7776 msgstr ""
7777
7778 # type: verbatim
7779 #: ../src/guestfs-actions.pod:2064
7780 #, no-wrap
7781 msgid ""
7782 " int\n"
7783 " guestfs_get_trace (guestfs_h *g);\n"
7784 "\n"
7785 msgstr ""
7786
7787 # type: textblock
7788 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1404
7789 msgid "Return the command trace flag."
7790 msgstr ""
7791
7792 # type: =head2
7793 #: ../src/guestfs-actions.pod:2073
7794 msgid "guestfs_get_umask"
7795 msgstr ""
7796
7797 # type: verbatim
7798 #: ../src/guestfs-actions.pod:2075
7799 #, no-wrap
7800 msgid ""
7801 " int\n"
7802 " guestfs_get_umask (guestfs_h *g);\n"
7803 "\n"
7804 msgstr ""
7805
7806 # type: textblock
7807 #: ../src/guestfs-actions.pod:2078
7808 msgid ""
7809 "Return the current umask.  By default the umask is C<022> unless it has been "
7810 "set by calling C<guestfs_umask>."
7811 msgstr ""
7812
7813 # type: =head2
7814 #: ../src/guestfs-actions.pod:2085
7815 msgid "guestfs_get_verbose"
7816 msgstr ""
7817
7818 # type: verbatim
7819 #: ../src/guestfs-actions.pod:2087
7820 #, no-wrap
7821 msgid ""
7822 " int\n"
7823 " guestfs_get_verbose (guestfs_h *g);\n"
7824 "\n"
7825 msgstr ""
7826
7827 # type: textblock
7828 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1417
7829 msgid "This returns the verbose messages flag."
7830 msgstr ""
7831
7832 # type: =head2
7833 #: ../src/guestfs-actions.pod:2096
7834 msgid "guestfs_getcon"
7835 msgstr ""
7836
7837 # type: verbatim
7838 #: ../src/guestfs-actions.pod:2098
7839 #, no-wrap
7840 msgid ""
7841 " char *\n"
7842 " guestfs_getcon (guestfs_h *g);\n"
7843 "\n"
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1423
7848 msgid "This gets the SELinux security context of the daemon."
7849 msgstr ""
7850
7851 # type: textblock
7852 #: ../src/guestfs-actions.pod:2103
7853 msgid ""
7854 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7855 msgstr ""
7856
7857 # type: =head2
7858 #: ../src/guestfs-actions.pod:2111
7859 msgid "guestfs_getxattrs"
7860 msgstr ""
7861
7862 # type: verbatim
7863 #: ../src/guestfs-actions.pod:2113
7864 #, no-wrap
7865 msgid ""
7866 " struct guestfs_xattr_list *\n"
7867 " guestfs_getxattrs (guestfs_h *g,\n"
7868 "                    const char *path);\n"
7869 "\n"
7870 msgstr ""
7871
7872 # type: textblock
7873 #: ../src/guestfs-actions.pod:2117 ../fish/guestfish-actions.pod:1432
7874 msgid ""
7875 "This call lists the extended attributes of the file or directory C<path>."
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:2120 ../fish/guestfish-actions.pod:1435
7880 msgid ""
7881 "At the system call level, this is a combination of the L<listxattr(2)> and "
7882 "L<getxattr(2)> calls."
7883 msgstr ""
7884
7885 # type: textblock
7886 #: ../src/guestfs-actions.pod:2123
7887 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3038
7892 #: ../src/guestfs-actions.pod:3689
7893 msgid ""
7894 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7895 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7896 msgstr ""
7897
7898 # type: textblock
7899 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3042
7900 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3243
7901 #: ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5476
7902 #: ../src/guestfs-actions.pod:6801
7903 msgid "(Added in 1.0.59)"
7904 msgstr ""
7905
7906 # type: =head2
7907 #: ../src/guestfs-actions.pod:2131
7908 msgid "guestfs_glob_expand"
7909 msgstr ""
7910
7911 # type: verbatim
7912 #: ../src/guestfs-actions.pod:2133
7913 #, no-wrap
7914 msgid ""
7915 " char **\n"
7916 " guestfs_glob_expand (guestfs_h *g,\n"
7917 "                      const char *pattern);\n"
7918 "\n"
7919 msgstr ""
7920
7921 # type: textblock
7922 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1444
7923 msgid ""
7924 "This command searches for all the pathnames matching C<pattern> according to "
7925 "the wildcard expansion rules used by the shell."
7926 msgstr ""
7927
7928 # type: textblock
7929 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1448
7930 msgid ""
7931 "If no paths match, then this returns an empty list (note: not an error)."
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2144 ../fish/guestfish-actions.pod:1451
7936 msgid ""
7937 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7938 "GLOB_BRACE>.  See that manual page for more details."
7939 msgstr ""
7940
7941 # type: textblock
7942 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:5641
7943 #: ../src/guestfs-actions.pod:5658
7944 msgid "(Added in 1.0.50)"
7945 msgstr ""
7946
7947 # type: =head2
7948 #: ../src/guestfs-actions.pod:2154
7949 msgid "guestfs_grep"
7950 msgstr ""
7951
7952 # type: verbatim
7953 #: ../src/guestfs-actions.pod:2156
7954 #, no-wrap
7955 msgid ""
7956 " char **\n"
7957 " guestfs_grep (guestfs_h *g,\n"
7958 "               const char *regex,\n"
7959 "               const char *path);\n"
7960 "\n"
7961 msgstr ""
7962
7963 # type: textblock
7964 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1459
7965 msgid "This calls the external C<grep> program and returns the matching lines."
7966 msgstr ""
7967
7968 # type: =head2
7969 #: ../src/guestfs-actions.pod:2173
7970 msgid "guestfs_grepi"
7971 msgstr ""
7972
7973 # type: verbatim
7974 #: ../src/guestfs-actions.pod:2175
7975 #, no-wrap
7976 msgid ""
7977 " char **\n"
7978 " guestfs_grepi (guestfs_h *g,\n"
7979 "                const char *regex,\n"
7980 "                const char *path);\n"
7981 "\n"
7982 msgstr ""
7983
7984 # type: textblock
7985 #: ../src/guestfs-actions.pod:2180 ../fish/guestfish-actions.pod:1469
7986 msgid ""
7987 "This calls the external C<grep -i> program and returns the matching lines."
7988 msgstr ""
7989
7990 # type: =head2
7991 #: ../src/guestfs-actions.pod:2192
7992 msgid "guestfs_grub_install"
7993 msgstr ""
7994
7995 # type: verbatim
7996 #: ../src/guestfs-actions.pod:2194
7997 #, no-wrap
7998 msgid ""
7999 " int\n"
8000 " guestfs_grub_install (guestfs_h *g,\n"
8001 "                       const char *root,\n"
8002 "                       const char *device);\n"
8003 "\n"
8004 msgstr ""
8005
8006 # type: textblock
8007 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1479
8008 msgid ""
8009 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8010 "the root directory being C<root>."
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1482
8015 msgid ""
8016 "Note: If grub-install reports the error \"No suitable drive was found in the "
8017 "generated device map.\" it may be that you need to create a C</boot/grub/"
8018 "device.map> file first that contains the mapping between grub device names "
8019 "and Linux device names.  It is usually sufficient to create a file "
8020 "containing:"
8021 msgstr ""
8022
8023 # type: verbatim
8024 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1489
8025 #, no-wrap
8026 msgid ""
8027 " (hd0) /dev/vda\n"
8028 "\n"
8029 msgstr ""
8030
8031 # type: textblock
8032 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1491
8033 msgid "replacing C</dev/vda> with the name of the installation device."
8034 msgstr ""
8035
8036 # type: textblock
8037 #: ../src/guestfs-actions.pod:2215
8038 msgid "(Added in 1.0.17)"
8039 msgstr ""
8040
8041 # type: =head2
8042 #: ../src/guestfs-actions.pod:2217
8043 msgid "guestfs_head"
8044 msgstr ""
8045
8046 # type: verbatim
8047 #: ../src/guestfs-actions.pod:2219
8048 #, no-wrap
8049 msgid ""
8050 " char **\n"
8051 " guestfs_head (guestfs_h *g,\n"
8052 "               const char *path);\n"
8053 "\n"
8054 msgstr ""
8055
8056 # type: textblock
8057 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1497
8058 msgid ""
8059 "This command returns up to the first 10 lines of a file as a list of strings."
8060 msgstr ""
8061
8062 # type: =head2
8063 #: ../src/guestfs-actions.pod:2235
8064 msgid "guestfs_head_n"
8065 msgstr ""
8066
8067 # type: verbatim
8068 #: ../src/guestfs-actions.pod:2237
8069 #, no-wrap
8070 msgid ""
8071 " char **\n"
8072 " guestfs_head_n (guestfs_h *g,\n"
8073 "                 int nrlines,\n"
8074 "                 const char *path);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1507
8080 msgid ""
8081 "If the parameter C<nrlines> is a positive number, this returns the first "
8082 "C<nrlines> lines of the file C<path>."
8083 msgstr ""
8084
8085 # type: textblock
8086 #: ../src/guestfs-actions.pod:2245 ../fish/guestfish-actions.pod:1510
8087 msgid ""
8088 "If the parameter C<nrlines> is a negative number, this returns lines from "
8089 "the file C<path>, excluding the last C<nrlines> lines."
8090 msgstr ""
8091
8092 # type: textblock
8093 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:5938
8094 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:3941
8095 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8096 msgstr ""
8097
8098 # type: =head2
8099 #: ../src/guestfs-actions.pod:2259
8100 msgid "guestfs_hexdump"
8101 msgstr ""
8102
8103 # type: verbatim
8104 #: ../src/guestfs-actions.pod:2261
8105 #, no-wrap
8106 msgid ""
8107 " char *\n"
8108 " guestfs_hexdump (guestfs_h *g,\n"
8109 "                  const char *path);\n"
8110 "\n"
8111 msgstr ""
8112
8113 # type: textblock
8114 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
8115 msgid ""
8116 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8117 "readable, canonical hex dump of the file."
8118 msgstr ""
8119
8120 # type: textblock
8121 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:5722
8122 #: ../src/guestfs-actions.pod:5777
8123 msgid "(Added in 1.0.22)"
8124 msgstr ""
8125
8126 # type: =head2
8127 #: ../src/guestfs-actions.pod:2276
8128 msgid "guestfs_initrd_cat"
8129 msgstr ""
8130
8131 # type: verbatim
8132 #: ../src/guestfs-actions.pod:2278
8133 #, no-wrap
8134 msgid ""
8135 " char *\n"
8136 " guestfs_initrd_cat (guestfs_h *g,\n"
8137 "                     const char *initrdpath,\n"
8138 "                     const char *filename,\n"
8139 "                     size_t *size_r);\n"
8140 "\n"
8141 msgstr ""
8142
8143 # type: textblock
8144 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1532
8145 msgid ""
8146 "This command unpacks the file C<filename> from the initrd file called "
8147 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8148 "character."
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2288 ../fish/guestfish-actions.pod:1536
8153 msgid ""
8154 "For example, in guestfish you could use the following command to examine the "
8155 "boot script (usually called C</init>)  contained in a Linux initrd or "
8156 "initramfs image:"
8157 msgstr ""
8158
8159 # type: verbatim
8160 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1540
8161 #, no-wrap
8162 msgid ""
8163 " initrd-cat /boot/initrd-<version>.img init\n"
8164 "\n"
8165 msgstr ""
8166
8167 # type: textblock
8168 #: ../src/guestfs-actions.pod:2294
8169 msgid "See also C<guestfs_initrd_list>."
8170 msgstr ""
8171
8172 # type: textblock
8173 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:4657
8174 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4864
8175 msgid ""
8176 "This function returns a buffer, or NULL on error.  The size of the returned "
8177 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8178 "after use>."
8179 msgstr ""
8180
8181 # type: =head2
8182 #: ../src/guestfs-actions.pod:2305
8183 msgid "guestfs_initrd_list"
8184 msgstr ""
8185
8186 # type: verbatim
8187 #: ../src/guestfs-actions.pod:2307
8188 #, no-wrap
8189 msgid ""
8190 " char **\n"
8191 " guestfs_initrd_list (guestfs_h *g,\n"
8192 "                      const char *path);\n"
8193 "\n"
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1551
8198 msgid "This command lists out files contained in an initrd."
8199 msgstr ""
8200
8201 # type: textblock
8202 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
8203 msgid ""
8204 "The files are listed without any initial C</> character.  The files are "
8205 "listed in the order they appear (not necessarily alphabetical).  Directory "
8206 "names are listed as separate items."
8207 msgstr ""
8208
8209 # type: textblock
8210 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1557
8211 msgid ""
8212 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8213 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8214 "files)."
8215 msgstr ""
8216
8217 # type: =head2
8218 #: ../src/guestfs-actions.pod:2327
8219 msgid "guestfs_inotify_add_watch"
8220 msgstr ""
8221
8222 # type: verbatim
8223 #: ../src/guestfs-actions.pod:2329
8224 #, no-wrap
8225 msgid ""
8226 " int64_t\n"
8227 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8228 "                            const char *path,\n"
8229 "                            int mask);\n"
8230 "\n"
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2334 ../fish/guestfish-actions.pod:1565
8235 msgid "Watch C<path> for the events listed in C<mask>."
8236 msgstr ""
8237
8238 # type: textblock
8239 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
8240 msgid ""
8241 "Note that if C<path> is a directory then events within that directory are "
8242 "watched, but this does I<not> happen recursively (in subdirectories)."
8243 msgstr ""
8244
8245 # type: textblock
8246 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
8247 msgid ""
8248 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8249 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8250 msgstr ""
8251
8252 # type: =head2
8253 #: ../src/guestfs-actions.pod:2348
8254 msgid "guestfs_inotify_close"
8255 msgstr ""
8256
8257 # type: verbatim
8258 #: ../src/guestfs-actions.pod:2350
8259 #, no-wrap
8260 msgid ""
8261 " int\n"
8262 " guestfs_inotify_close (guestfs_h *g);\n"
8263 "\n"
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2353 ../fish/guestfish-actions.pod:1579
8268 msgid ""
8269 "This closes the inotify handle which was previously opened by inotify_init.  "
8270 "It removes all watches, throws away any pending events, and deallocates all "
8271 "resources."
8272 msgstr ""
8273
8274 # type: =head2
8275 #: ../src/guestfs-actions.pod:2361
8276 msgid "guestfs_inotify_files"
8277 msgstr ""
8278
8279 # type: verbatim
8280 #: ../src/guestfs-actions.pod:2363
8281 #, no-wrap
8282 msgid ""
8283 " char **\n"
8284 " guestfs_inotify_files (guestfs_h *g);\n"
8285 "\n"
8286 msgstr ""
8287
8288 # type: textblock
8289 #: ../src/guestfs-actions.pod:2366
8290 msgid ""
8291 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8292 "returns a list of pathnames of objects that were touched.  The returned "
8293 "pathnames are sorted and deduplicated."
8294 msgstr ""
8295
8296 # type: =head2
8297 #: ../src/guestfs-actions.pod:2376
8298 msgid "guestfs_inotify_init"
8299 msgstr ""
8300
8301 # type: verbatim
8302 #: ../src/guestfs-actions.pod:2378
8303 #, no-wrap
8304 msgid ""
8305 " int\n"
8306 " guestfs_inotify_init (guestfs_h *g,\n"
8307 "                       int maxevents);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1595
8313 msgid ""
8314 "This command creates a new inotify handle.  The inotify subsystem can be "
8315 "used to notify events which happen to objects in the guest filesystem."
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2386
8320 msgid ""
8321 "C<maxevents> is the maximum number of events which will be queued up between "
8322 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8323 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8324 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8325 "throws away events, but records the fact that it threw them away by setting "
8326 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8327 "C<guestfs_inotify_read>)."
8328 msgstr ""
8329
8330 # type: textblock
8331 #: ../src/guestfs-actions.pod:2396
8332 msgid ""
8333 "Before any events are generated, you have to add some watches to the "
8334 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8335 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8336 msgstr ""
8337
8338 # type: textblock
8339 #: ../src/guestfs-actions.pod:2402
8340 msgid ""
8341 "Queued up events should be read periodically by calling "
8342 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8343 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8344 "often enough then you risk the internal queue overflowing."
8345 msgstr ""
8346
8347 # type: textblock
8348 #: ../src/guestfs-actions.pod:2409
8349 msgid ""
8350 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8351 "This also removes any watches automatically."
8352 msgstr ""
8353
8354 # type: textblock
8355 #: ../src/guestfs-actions.pod:2413 ../fish/guestfish-actions.pod:1626
8356 msgid ""
8357 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8358 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8359 "that there is one global inotify handle per libguestfs instance."
8360 msgstr ""
8361
8362 # type: =head2
8363 #: ../src/guestfs-actions.pod:2422
8364 msgid "guestfs_inotify_read"
8365 msgstr ""
8366
8367 # type: verbatim
8368 #: ../src/guestfs-actions.pod:2424
8369 #, no-wrap
8370 msgid ""
8371 " struct guestfs_inotify_event_list *\n"
8372 " guestfs_inotify_read (guestfs_h *g);\n"
8373 "\n"
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1635
8378 msgid ""
8379 "Return the complete queue of events that have happened since the previous "
8380 "read call."
8381 msgstr ""
8382
8383 # type: textblock
8384 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1638
8385 msgid "If no events have happened, this returns an empty list."
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1640
8390 msgid ""
8391 "I<Note>: In order to make sure that all events have been read, you must call "
8392 "this function repeatedly until it returns an empty list.  The reason is that "
8393 "the call will read events up to the maximum appliance-to-host message size "
8394 "and leave remaining events in the queue."
8395 msgstr ""
8396
8397 # type: textblock
8398 #: ../src/guestfs-actions.pod:2438
8399 msgid ""
8400 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8401 "there was an error.  I<The caller must call "
8402 "C<guestfs_free_inotify_event_list> after use>."
8403 msgstr ""
8404
8405 # type: =head2
8406 #: ../src/guestfs-actions.pod:2444
8407 msgid "guestfs_inotify_rm_watch"
8408 msgstr ""
8409
8410 # type: verbatim
8411 #: ../src/guestfs-actions.pod:2446
8412 #, no-wrap
8413 msgid ""
8414 " int\n"
8415 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8416 "                           int wd);\n"
8417 "\n"
8418 msgstr ""
8419
8420 # type: textblock
8421 #: ../src/guestfs-actions.pod:2450
8422 msgid ""
8423 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8424 msgstr ""
8425
8426 # type: =head2
8427 #: ../src/guestfs-actions.pod:2457
8428 msgid "guestfs_inspect_get_arch"
8429 msgstr ""
8430
8431 # type: verbatim
8432 #: ../src/guestfs-actions.pod:2459
8433 #, no-wrap
8434 msgid ""
8435 " char *\n"
8436 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8437 "                           const char *root);\n"
8438 "\n"
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:2486
8443 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2585
8444 #: ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:2633
8445 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:2708
8446 #: ../src/guestfs-actions.pod:2746
8447 msgid ""
8448 "This function should only be called with a root device string as returned by "
8449 "C<guestfs_inspect_os>."
8450 msgstr ""
8451
8452 # type: textblock
8453 #: ../src/guestfs-actions.pod:2466
8454 msgid ""
8455 "This returns the architecture of the inspected operating system.  The "
8456 "possible return values are listed under C<guestfs_file_architecture>."
8457 msgstr ""
8458
8459 # type: textblock
8460 #: ../src/guestfs-actions.pod:2470 ../fish/guestfish-actions.pod:1664
8461 msgid ""
8462 "If the architecture could not be determined, then the string C<unknown> is "
8463 "returned."
8464 msgstr ""
8465
8466 # type: textblock
8467 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2546
8468 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2677
8469 #: ../src/guestfs-actions.pod:2696 ../src/guestfs-actions.pod:2733
8470 #: ../src/guestfs-actions.pod:2756 ../src/guestfs-actions.pod:2796
8471 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1733
8472 #: ../fish/guestfish-actions.pod:1772 ../fish/guestfish-actions.pod:1827
8473 #: ../fish/guestfish-actions.pod:1840 ../fish/guestfish-actions.pod:1871
8474 #: ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:1921
8475 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8476 msgstr ""
8477
8478 # type: =head2
8479 #: ../src/guestfs-actions.pod:2480
8480 msgid "guestfs_inspect_get_distro"
8481 msgstr ""
8482
8483 # type: verbatim
8484 #: ../src/guestfs-actions.pod:2482
8485 #, no-wrap
8486 msgid ""
8487 " char *\n"
8488 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8489 "                             const char *root);\n"
8490 "\n"
8491 msgstr ""
8492
8493 # type: textblock
8494 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1676
8495 msgid ""
8496 "This returns the distro (distribution) of the inspected operating system."
8497 msgstr ""
8498
8499 # type: textblock
8500 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1679
8501 msgid "Currently defined distros are:"
8502 msgstr ""
8503
8504 # type: =item
8505 #: ../src/guestfs-actions.pod:2496 ../fish/guestfish-actions.pod:1683
8506 msgid "\"archlinux\""
8507 msgstr ""
8508
8509 # type: textblock
8510 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1685
8511 msgid "Arch Linux."
8512 msgstr ""
8513
8514 # type: =item
8515 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1687
8516 msgid "\"debian\""
8517 msgstr ""
8518
8519 # type: textblock
8520 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1689
8521 msgid "Debian or a Debian-derived distro such as Ubuntu."
8522 msgstr ""
8523
8524 # type: =item
8525 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1691
8526 msgid "\"fedora\""
8527 msgstr ""
8528
8529 # type: textblock
8530 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1693
8531 msgid "Fedora."
8532 msgstr ""
8533
8534 # type: =item
8535 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1695
8536 msgid "\"gentoo\""
8537 msgstr ""
8538
8539 # type: textblock
8540 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1697
8541 msgid "Gentoo."
8542 msgstr ""
8543
8544 # type: =item
8545 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1699
8546 msgid "\"meego\""
8547 msgstr ""
8548
8549 # type: textblock
8550 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1701
8551 msgid "MeeGo."
8552 msgstr ""
8553
8554 # type: =item
8555 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1703
8556 msgid "\"pardus\""
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1705
8561 msgid "Pardus."
8562 msgstr ""
8563
8564 # type: =item
8565 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1707
8566 msgid "\"redhat-based\""
8567 msgstr ""
8568
8569 # type: textblock
8570 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1709
8571 msgid "Some Red Hat-derived distro."
8572 msgstr ""
8573
8574 # type: =item
8575 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1711
8576 msgid "\"rhel\""
8577 msgstr ""
8578
8579 # type: textblock
8580 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1713
8581 msgid "Red Hat Enterprise Linux and some derivatives."
8582 msgstr ""
8583
8584 # type: =item
8585 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2720
8586 #: ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1858
8587 msgid "\"windows\""
8588 msgstr ""
8589
8590 # type: textblock
8591 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1717
8592 msgid ""
8593 "Windows does not have distributions.  This string is returned if the OS type "
8594 "is Windows."
8595 msgstr ""
8596
8597 # type: =item
8598 #: ../src/guestfs-actions.pod:2533 ../fish/guestfish-actions.pod:1720
8599 msgid "\"ubuntu\""
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1722
8604 msgid "Ubuntu."
8605 msgstr ""
8606
8607 # type: =item
8608 #: ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2724
8609 #: ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1862
8610 msgid "\"unknown\""
8611 msgstr ""
8612
8613 # type: textblock
8614 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1726
8615 msgid "The distro could not be determined."
8616 msgstr ""
8617
8618 # type: textblock
8619 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2730
8620 #: ../fish/guestfish-actions.pod:1730 ../fish/guestfish-actions.pod:1868
8621 msgid ""
8622 "Future versions of libguestfs may return other strings here.  The caller "
8623 "should be prepared to handle any string."
8624 msgstr ""
8625
8626 # type: =head2
8627 #: ../src/guestfs-actions.pod:2553
8628 msgid "guestfs_inspect_get_filesystems"
8629 msgstr ""
8630
8631 # type: verbatim
8632 #: ../src/guestfs-actions.pod:2555
8633 #, no-wrap
8634 msgid ""
8635 " char **\n"
8636 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8637 "                                  const char *root);\n"
8638 "\n"
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1742
8643 msgid ""
8644 "This returns a list of all the filesystems that we think are associated with "
8645 "this operating system.  This includes the root filesystem, other ordinary "
8646 "filesystems, and non-mounted devices like swap partitions."
8647 msgstr ""
8648
8649 # type: textblock
8650 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1747
8651 msgid ""
8652 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8653 "to be shared between operating systems."
8654 msgstr ""
8655
8656 # type: textblock
8657 #: ../src/guestfs-actions.pod:2570
8658 msgid ""
8659 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8660 "C<guestfs_inspect_get_mountpoints>."
8661 msgstr ""
8662
8663 # type: =head2
8664 #: ../src/guestfs-actions.pod:2579
8665 msgid "guestfs_inspect_get_major_version"
8666 msgstr ""
8667
8668 # type: verbatim
8669 #: ../src/guestfs-actions.pod:2581
8670 #, no-wrap
8671 msgid ""
8672 " int\n"
8673 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8674 "                                    const char *root);\n"
8675 "\n"
8676 msgstr ""
8677
8678 # type: textblock
8679 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1760
8680 msgid ""
8681 "This returns the major version number of the inspected operating system."
8682 msgstr ""
8683
8684 # type: textblock
8685 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1763
8686 msgid ""
8687 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8688 "popular public names used by the operating system.  Notably the operating "
8689 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8690 "1).  You can find out the real versions corresponding to releases of Windows "
8691 "by consulting Wikipedia or MSDN."
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2618
8696 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1784
8697 msgid "If the version could not be determined, then C<0> is returned."
8698 msgstr ""
8699
8700 # type: =head2
8701 #: ../src/guestfs-actions.pod:2606
8702 msgid "guestfs_inspect_get_minor_version"
8703 msgstr ""
8704
8705 # type: verbatim
8706 #: ../src/guestfs-actions.pod:2608
8707 #, no-wrap
8708 msgid ""
8709 " int\n"
8710 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8711 "                                    const char *root);\n"
8712 "\n"
8713 msgstr ""
8714
8715 # type: textblock
8716 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1781
8717 msgid ""
8718 "This returns the minor version number of the inspected operating system."
8719 msgstr ""
8720
8721 # type: textblock
8722 #: ../src/guestfs-actions.pod:2620
8723 msgid ""
8724 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8725 "C<guestfs_inspect_get_major_version>."
8726 msgstr ""
8727
8728 # type: =head2
8729 #: ../src/guestfs-actions.pod:2627
8730 msgid "guestfs_inspect_get_mountpoints"
8731 msgstr ""
8732
8733 # type: verbatim
8734 #: ../src/guestfs-actions.pod:2629
8735 #, no-wrap
8736 msgid ""
8737 " char **\n"
8738 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8739 "                                  const char *root);\n"
8740 "\n"
8741 msgstr ""
8742
8743 # type: textblock
8744 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1796
8745 msgid ""
8746 "This returns a hash of where we think the filesystems associated with this "
8747 "operating system should be mounted.  Callers should note that this is at "
8748 "best an educated guess made by reading configuration files such as C</etc/"
8749 "fstab>."
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1801
8754 msgid ""
8755 "Each element in the returned hashtable has a key which is the path of the "
8756 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8757 "mounted there (eg. C</dev/sda1>)."
8758 msgstr ""
8759
8760 # type: textblock
8761 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1806
8762 msgid ""
8763 "Non-mounted devices such as swap devices are I<not> returned in this list."
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2649
8768 msgid ""
8769 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8770 "C<guestfs_inspect_get_filesystems>."
8771 msgstr ""
8772
8773 # type: textblock
8774 #: ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:3095
8775 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:6079
8776 msgid ""
8777 "This function returns a NULL-terminated array of strings, or NULL if there "
8778 "was an error.  The array of strings will always have length C<2n+1>, where "
8779 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8780 "caller must free the strings and the array after use>."
8781 msgstr ""
8782
8783 # type: =head2
8784 #: ../src/guestfs-actions.pod:2660
8785 msgid "guestfs_inspect_get_product_name"
8786 msgstr ""
8787
8788 # type: verbatim
8789 #: ../src/guestfs-actions.pod:2662
8790 #, no-wrap
8791 msgid ""
8792 " char *\n"
8793 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8794 "                                   const char *root);\n"
8795 "\n"
8796 msgstr ""
8797
8798 # type: textblock
8799 #: ../src/guestfs-actions.pod:2669 ../fish/guestfish-actions.pod:1819
8800 msgid ""
8801 "This returns the product name of the inspected operating system.  The "
8802 "product name is generally some freeform string which can be displayed to the "
8803 "user, but should not be parsed by programs."
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1824
8808 msgid ""
8809 "If the product name could not be determined, then the string C<unknown> is "
8810 "returned."
8811 msgstr ""
8812
8813 # type: =head2
8814 #: ../src/guestfs-actions.pod:2684
8815 msgid "guestfs_inspect_get_roots"
8816 msgstr ""
8817
8818 # type: verbatim
8819 #: ../src/guestfs-actions.pod:2686
8820 #, no-wrap
8821 msgid ""
8822 " char **\n"
8823 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8824 "\n"
8825 msgstr ""
8826
8827 # type: textblock
8828 #: ../src/guestfs-actions.pod:2689
8829 msgid ""
8830 "This function is a convenient way to get the list of root devices, as "
8831 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8832 "the whole inspection process."
8833 msgstr ""
8834
8835 # type: textblock
8836 #: ../src/guestfs-actions.pod:2693
8837 msgid ""
8838 "This returns an empty list if either no root devices were found or the "
8839 "caller has not called C<guestfs_inspect_os>."
8840 msgstr ""
8841
8842 # type: =head2
8843 #: ../src/guestfs-actions.pod:2702
8844 msgid "guestfs_inspect_get_type"
8845 msgstr ""
8846
8847 # type: verbatim
8848 #: ../src/guestfs-actions.pod:2704
8849 #, no-wrap
8850 msgid ""
8851 " char *\n"
8852 " guestfs_inspect_get_type (guestfs_h *g,\n"
8853 "                           const char *root);\n"
8854 "\n"
8855 msgstr ""
8856
8857 # type: textblock
8858 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1849
8859 msgid ""
8860 "This returns the type of the inspected operating system.  Currently defined "
8861 "types are:"
8862 msgstr ""
8863
8864 # type: =item
8865 #: ../src/guestfs-actions.pod:2716 ../fish/guestfish-actions.pod:1854
8866 msgid "\"linux\""
8867 msgstr ""
8868
8869 # type: textblock
8870 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1856
8871 msgid "Any Linux-based operating system."
8872 msgstr ""
8873
8874 # type: textblock
8875 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1860
8876 msgid "Any Microsoft Windows operating system."
8877 msgstr ""
8878
8879 # type: textblock
8880 #: ../src/guestfs-actions.pod:2726 ../fish/guestfish-actions.pod:1864
8881 msgid "The operating system type could not be determined."
8882 msgstr ""
8883
8884 # type: =head2
8885 #: ../src/guestfs-actions.pod:2740
8886 msgid "guestfs_inspect_get_windows_systemroot"
8887 msgstr ""
8888
8889 # type: verbatim
8890 #: ../src/guestfs-actions.pod:2742
8891 #, no-wrap
8892 msgid ""
8893 " char *\n"
8894 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8895 "                                         const char *root);\n"
8896 "\n"
8897 msgstr ""
8898
8899 # type: textblock
8900 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:1880
8901 msgid ""
8902 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8903 "is a directory path such as C</WINDOWS>."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:2752 ../fish/guestfish-actions.pod:1883
8908 msgid ""
8909 "This call assumes that the guest is Windows and that the systemroot could be "
8910 "determined by inspection.  If this is not the case then an error is returned."
8911 msgstr ""
8912
8913 # type: textblock
8914 #: ../src/guestfs-actions.pod:2761
8915 msgid "(Added in 1.5.25)"
8916 msgstr ""
8917
8918 # type: =head2
8919 #: ../src/guestfs-actions.pod:2763
8920 msgid "guestfs_inspect_os"
8921 msgstr ""
8922
8923 # type: verbatim
8924 #: ../src/guestfs-actions.pod:2765
8925 #, no-wrap
8926 msgid ""
8927 " char **\n"
8928 " guestfs_inspect_os (guestfs_h *g);\n"
8929 "\n"
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1893
8934 msgid ""
8935 "This function uses other libguestfs functions and certain heuristics to "
8936 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8937 "for operating systems."
8938 msgstr ""
8939
8940 # type: textblock
8941 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1897
8942 msgid "The list returned is empty if no operating systems were found."
8943 msgstr ""
8944
8945 # type: textblock
8946 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1899
8947 msgid ""
8948 "If one operating system was found, then this returns a list with a single "
8949 "element, which is the name of the root filesystem of this operating system.  "
8950 "It is also possible for this function to return a list containing more than "
8951 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8952 "element being the root filesystem of one of the operating systems."
8953 msgstr ""
8954
8955 # type: textblock
8956 #: ../src/guestfs-actions.pod:2781
8957 msgid ""
8958 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8959 "functions in order to query further information about each operating system, "
8960 "such as the name and version."
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2786
8965 msgid ""
8966 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8967 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8968 "the contents.  This should be called with no disks currently mounted.  The "
8969 "function may also use Augeas, so any existing Augeas handle will be closed."
8970 msgstr ""
8971
8972 # type: textblock
8973 #: ../src/guestfs-actions.pod:2792 ../fish/guestfish-actions.pod:1917
8974 msgid ""
8975 "This function cannot decrypt encrypted disks.  The caller must do that first "
8976 "(supplying the necessary keys) if the disk is encrypted."
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:2798 ../src/guestfs-actions.pod:3053
8981 #: ../src/guestfs-actions.pod:3115
8982 msgid "See also C<guestfs_list_filesystems>."
8983 msgstr ""
8984
8985 # type: =head2
8986 #: ../src/guestfs-actions.pod:2806
8987 msgid "guestfs_is_blockdev"
8988 msgstr ""
8989
8990 # type: verbatim
8991 #: ../src/guestfs-actions.pod:2808
8992 #, no-wrap
8993 msgid ""
8994 " int\n"
8995 " guestfs_is_blockdev (guestfs_h *g,\n"
8996 "                      const char *path);\n"
8997 "\n"
8998 msgstr ""
8999
9000 # type: textblock
9001 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1929
9002 msgid ""
9003 "This returns C<true> if and only if there is a block device with the given "
9004 "C<path> name."
9005 msgstr ""
9006
9007 # type: textblock
9008 #: ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:2844
9009 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2889
9010 #: ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:2961
9011 #: ../src/guestfs-actions.pod:2976
9012 msgid "See also C<guestfs_stat>."
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:2819 ../src/guestfs-actions.pod:2848
9017 #: ../src/guestfs-actions.pod:2893 ../src/guestfs-actions.pod:2965
9018 #: ../src/guestfs-actions.pod:2980
9019 msgid "(Added in 1.5.10)"
9020 msgstr ""
9021
9022 # type: =head2
9023 #: ../src/guestfs-actions.pod:2821
9024 msgid "guestfs_is_busy"
9025 msgstr ""
9026
9027 # type: verbatim
9028 #: ../src/guestfs-actions.pod:2823
9029 #, no-wrap
9030 msgid ""
9031 " int\n"
9032 " guestfs_is_busy (guestfs_h *g);\n"
9033 "\n"
9034 msgstr ""
9035
9036 # type: textblock
9037 #: ../src/guestfs-actions.pod:2826 ../fish/guestfish-actions.pod:1938
9038 msgid ""
9039 "This returns true iff this handle is busy processing a command (in the "
9040 "C<BUSY> state)."
9041 msgstr ""
9042
9043 # type: =head2
9044 #: ../src/guestfs-actions.pod:2835
9045 msgid "guestfs_is_chardev"
9046 msgstr ""
9047
9048 # type: verbatim
9049 #: ../src/guestfs-actions.pod:2837
9050 #, no-wrap
9051 msgid ""
9052 " int\n"
9053 " guestfs_is_chardev (guestfs_h *g,\n"
9054 "                     const char *path);\n"
9055 "\n"
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:2841 ../fish/guestfish-actions.pod:1947
9060 msgid ""
9061 "This returns C<true> if and only if there is a character device with the "
9062 "given C<path> name."
9063 msgstr ""
9064
9065 # type: =head2
9066 #: ../src/guestfs-actions.pod:2850
9067 msgid "guestfs_is_config"
9068 msgstr ""
9069
9070 # type: verbatim
9071 #: ../src/guestfs-actions.pod:2852
9072 #, no-wrap
9073 msgid ""
9074 " int\n"
9075 " guestfs_is_config (guestfs_h *g);\n"
9076 "\n"
9077 msgstr ""
9078
9079 # type: textblock
9080 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1956
9081 msgid ""
9082 "This returns true iff this handle is being configured (in the C<CONFIG> "
9083 "state)."
9084 msgstr ""
9085
9086 # type: =head2
9087 #: ../src/guestfs-actions.pod:2864
9088 msgid "guestfs_is_dir"
9089 msgstr ""
9090
9091 # type: verbatim
9092 #: ../src/guestfs-actions.pod:2866
9093 #, no-wrap
9094 msgid ""
9095 " int\n"
9096 " guestfs_is_dir (guestfs_h *g,\n"
9097 "                 const char *path);\n"
9098 "\n"
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1965
9103 msgid ""
9104 "This returns C<true> if and only if there is a directory with the given "
9105 "C<path> name.  Note that it returns false for other objects like files."
9106 msgstr ""
9107
9108 # type: =head2
9109 #: ../src/guestfs-actions.pod:2880
9110 msgid "guestfs_is_fifo"
9111 msgstr ""
9112
9113 # type: verbatim
9114 #: ../src/guestfs-actions.pod:2882
9115 #, no-wrap
9116 msgid ""
9117 " int\n"
9118 " guestfs_is_fifo (guestfs_h *g,\n"
9119 "                  const char *path);\n"
9120 "\n"
9121 msgstr ""
9122
9123 # type: textblock
9124 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1975
9125 msgid ""
9126 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9127 "given C<path> name."
9128 msgstr ""
9129
9130 # type: =head2
9131 #: ../src/guestfs-actions.pod:2895
9132 msgid "guestfs_is_file"
9133 msgstr ""
9134
9135 # type: verbatim
9136 #: ../src/guestfs-actions.pod:2897
9137 #, no-wrap
9138 msgid ""
9139 " int\n"
9140 " guestfs_is_file (guestfs_h *g,\n"
9141 "                  const char *path);\n"
9142 "\n"
9143 msgstr ""
9144
9145 # type: textblock
9146 #: ../src/guestfs-actions.pod:2901 ../fish/guestfish-actions.pod:1984
9147 msgid ""
9148 "This returns C<true> if and only if there is a regular file with the given "
9149 "C<path> name.  Note that it returns false for other objects like directories."
9150 msgstr ""
9151
9152 # type: =head2
9153 #: ../src/guestfs-actions.pod:2911
9154 msgid "guestfs_is_launching"
9155 msgstr ""
9156
9157 # type: verbatim
9158 #: ../src/guestfs-actions.pod:2913
9159 #, no-wrap
9160 msgid ""
9161 " int\n"
9162 " guestfs_is_launching (guestfs_h *g);\n"
9163 "\n"
9164 msgstr ""
9165
9166 # type: textblock
9167 #: ../src/guestfs-actions.pod:2916 ../fish/guestfish-actions.pod:1994
9168 msgid ""
9169 "This returns true iff this handle is launching the subprocess (in the "
9170 "C<LAUNCHING> state)."
9171 msgstr ""
9172
9173 # type: =head2
9174 #: ../src/guestfs-actions.pod:2925
9175 msgid "guestfs_is_lv"
9176 msgstr ""
9177
9178 # type: verbatim
9179 #: ../src/guestfs-actions.pod:2927
9180 #, no-wrap
9181 msgid ""
9182 " int\n"
9183 " guestfs_is_lv (guestfs_h *g,\n"
9184 "                const char *device);\n"
9185 "\n"
9186 msgstr ""
9187
9188 # type: textblock
9189 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2003
9190 msgid ""
9191 "This command tests whether C<device> is a logical volume, and returns true "
9192 "iff this is the case."
9193 msgstr ""
9194
9195 # type: =head2
9196 #: ../src/guestfs-actions.pod:2938
9197 msgid "guestfs_is_ready"
9198 msgstr ""
9199
9200 # type: verbatim
9201 #: ../src/guestfs-actions.pod:2940
9202 #, no-wrap
9203 msgid ""
9204 " int\n"
9205 " guestfs_is_ready (guestfs_h *g);\n"
9206 "\n"
9207 msgstr ""
9208
9209 # type: textblock
9210 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2010
9211 msgid ""
9212 "This returns true iff this handle is ready to accept commands (in the "
9213 "C<READY> state)."
9214 msgstr ""
9215
9216 # type: =head2
9217 #: ../src/guestfs-actions.pod:2952
9218 msgid "guestfs_is_socket"
9219 msgstr ""
9220
9221 # type: verbatim
9222 #: ../src/guestfs-actions.pod:2954
9223 #, no-wrap
9224 msgid ""
9225 " int\n"
9226 " guestfs_is_socket (guestfs_h *g,\n"
9227 "                    const char *path);\n"
9228 "\n"
9229 msgstr ""
9230
9231 # type: textblock
9232 #: ../src/guestfs-actions.pod:2958 ../fish/guestfish-actions.pod:2019
9233 msgid ""
9234 "This returns C<true> if and only if there is a Unix domain socket with the "
9235 "given C<path> name."
9236 msgstr ""
9237
9238 # type: =head2
9239 #: ../src/guestfs-actions.pod:2967
9240 msgid "guestfs_is_symlink"
9241 msgstr ""
9242
9243 # type: verbatim
9244 #: ../src/guestfs-actions.pod:2969
9245 #, no-wrap
9246 msgid ""
9247 " int\n"
9248 " guestfs_is_symlink (guestfs_h *g,\n"
9249 "                     const char *path);\n"
9250 "\n"
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2028
9255 msgid ""
9256 "This returns C<true> if and only if there is a symbolic link with the given "
9257 "C<path> name."
9258 msgstr ""
9259
9260 # type: =head2
9261 #: ../src/guestfs-actions.pod:2982
9262 msgid "guestfs_kill_subprocess"
9263 msgstr ""
9264
9265 # type: verbatim
9266 #: ../src/guestfs-actions.pod:2984
9267 #, no-wrap
9268 msgid ""
9269 " int\n"
9270 " guestfs_kill_subprocess (guestfs_h *g);\n"
9271 "\n"
9272 msgstr ""
9273
9274 # type: textblock
9275 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2037
9276 msgid "This kills the qemu subprocess.  You should never need to call this."
9277 msgstr ""
9278
9279 # type: =head2
9280 #: ../src/guestfs-actions.pod:2993
9281 msgid "guestfs_launch"
9282 msgstr ""
9283
9284 # type: verbatim
9285 #: ../src/guestfs-actions.pod:2995
9286 #, no-wrap
9287 msgid ""
9288 " int\n"
9289 " guestfs_launch (guestfs_h *g);\n"
9290 "\n"
9291 msgstr ""
9292
9293 # type: textblock
9294 #: ../src/guestfs-actions.pod:2998 ../fish/guestfish-actions.pod:2045
9295 msgid ""
9296 "Internally libguestfs is implemented by running a virtual machine using "
9297 "L<qemu(1)>."
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2048
9302 msgid ""
9303 "You should call this after configuring the handle (eg. adding drives) but "
9304 "before performing any actions."
9305 msgstr ""
9306
9307 # type: =head2
9308 #: ../src/guestfs-actions.pod:3008
9309 msgid "guestfs_lchown"
9310 msgstr ""
9311
9312 # type: verbatim
9313 #: ../src/guestfs-actions.pod:3010
9314 #, no-wrap
9315 msgid ""
9316 " int\n"
9317 " guestfs_lchown (guestfs_h *g,\n"
9318 "                 int owner,\n"
9319 "                 int group,\n"
9320 "                 const char *path);\n"
9321 "\n"
9322 msgstr ""
9323
9324 # type: textblock
9325 #: ../src/guestfs-actions.pod:3016
9326 msgid ""
9327 "Change the file owner to C<owner> and group to C<group>.  This is like "
9328 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9329 "changed, not the target."
9330 msgstr ""
9331
9332 # type: =head2
9333 #: ../src/guestfs-actions.pod:3028
9334 msgid "guestfs_lgetxattrs"
9335 msgstr ""
9336
9337 # type: verbatim
9338 #: ../src/guestfs-actions.pod:3030
9339 #, no-wrap
9340 msgid ""
9341 " struct guestfs_xattr_list *\n"
9342 " guestfs_lgetxattrs (guestfs_h *g,\n"
9343 "                     const char *path);\n"
9344 "\n"
9345 msgstr ""
9346
9347 # type: textblock
9348 #: ../src/guestfs-actions.pod:3034
9349 msgid ""
9350 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9351 "then it returns the extended attributes of the link itself."
9352 msgstr ""
9353
9354 # type: =head2
9355 #: ../src/guestfs-actions.pod:3044
9356 msgid "guestfs_list_devices"
9357 msgstr ""
9358
9359 # type: verbatim
9360 #: ../src/guestfs-actions.pod:3046
9361 #, no-wrap
9362 msgid ""
9363 " char **\n"
9364 " guestfs_list_devices (guestfs_h *g);\n"
9365 "\n"
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2075
9370 msgid "List all the block devices."
9371 msgstr ""
9372
9373 # type: textblock
9374 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2077
9375 msgid "The full block device names are returned, eg. C</dev/sda>."
9376 msgstr ""
9377
9378 # type: =head2
9379 #: ../src/guestfs-actions.pod:3061
9380 msgid "guestfs_list_filesystems"
9381 msgstr ""
9382
9383 # type: verbatim
9384 #: ../src/guestfs-actions.pod:3063
9385 #, no-wrap
9386 msgid ""
9387 " char **\n"
9388 " guestfs_list_filesystems (guestfs_h *g);\n"
9389 "\n"
9390 msgstr ""
9391
9392 # type: textblock
9393 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2085
9394 msgid ""
9395 "This inspection command looks for filesystems on partitions, block devices "
9396 "and logical volumes, returning a list of devices containing filesystems and "
9397 "their type."
9398 msgstr ""
9399
9400 # type: textblock
9401 #: ../src/guestfs-actions.pod:3070 ../fish/guestfish-actions.pod:2089
9402 msgid ""
9403 "The return value is a hash, where the keys are the devices containing "
9404 "filesystems, and the values are the filesystem types.  For example:"
9405 msgstr ""
9406
9407 # type: verbatim
9408 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2093
9409 #, no-wrap
9410 msgid ""
9411 " \"/dev/sda1\" => \"ntfs\"\n"
9412 " \"/dev/sda2\" => \"ext2\"\n"
9413 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9414 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9415 "\n"
9416 msgstr ""
9417
9418 # type: textblock
9419 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2098
9420 msgid ""
9421 "The value can have the special value \"unknown\", meaning the content of the "
9422 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9423 msgstr ""
9424
9425 # type: textblock
9426 #: ../src/guestfs-actions.pod:3083
9427 msgid ""
9428 "This command runs other libguestfs commands, which might include "
9429 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9430 "soon after launch and only when nothing is mounted."
9431 msgstr ""
9432
9433 # type: textblock
9434 #: ../src/guestfs-actions.pod:3087
9435 msgid ""
9436 "Not all of the filesystems returned will be mountable.  In particular, swap "
9437 "partitions are returned in the list.  Also this command does not check that "
9438 "each filesystem found is valid and mountable, and some filesystems might be "
9439 "mountable but require special options.  Filesystems may not all belong to a "
9440 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
9441 msgstr ""
9442
9443 # type: textblock
9444 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:4624
9445 msgid "(Added in 1.5.15)"
9446 msgstr ""
9447
9448 # type: =head2
9449 #: ../src/guestfs-actions.pod:3103
9450 msgid "guestfs_list_partitions"
9451 msgstr ""
9452
9453 # type: verbatim
9454 #: ../src/guestfs-actions.pod:3105
9455 #, no-wrap
9456 msgid ""
9457 " char **\n"
9458 " guestfs_list_partitions (guestfs_h *g);\n"
9459 "\n"
9460 msgstr ""
9461
9462 # type: textblock
9463 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2118
9464 msgid "List all the partitions detected on all block devices."
9465 msgstr ""
9466
9467 # type: textblock
9468 #: ../src/guestfs-actions.pod:3110 ../fish/guestfish-actions.pod:2120
9469 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9470 msgstr ""
9471
9472 # type: textblock
9473 #: ../src/guestfs-actions.pod:3112
9474 msgid ""
9475 "This does not return logical volumes.  For that you will need to call "
9476 "C<guestfs_lvs>."
9477 msgstr ""
9478
9479 # type: =head2
9480 #: ../src/guestfs-actions.pod:3123
9481 msgid "guestfs_ll"
9482 msgstr ""
9483
9484 # type: verbatim
9485 #: ../src/guestfs-actions.pod:3125
9486 #, no-wrap
9487 msgid ""
9488 " char *\n"
9489 " guestfs_ll (guestfs_h *g,\n"
9490 "             const char *directory);\n"
9491 "\n"
9492 msgstr ""
9493
9494 # type: textblock
9495 #: ../src/guestfs-actions.pod:3129 ../fish/guestfish-actions.pod:2131
9496 msgid ""
9497 "List the files in C<directory> (relative to the root directory, there is no "
9498 "cwd) in the format of 'ls -la'."
9499 msgstr ""
9500
9501 # type: textblock
9502 #: ../src/guestfs-actions.pod:3132 ../fish/guestfish-actions.pod:2134
9503 msgid ""
9504 "This command is mostly useful for interactive sessions.  It is I<not> "
9505 "intended that you try to parse the output string."
9506 msgstr ""
9507
9508 # type: =head2
9509 #: ../src/guestfs-actions.pod:3140
9510 msgid "guestfs_ln"
9511 msgstr ""
9512
9513 # type: verbatim
9514 #: ../src/guestfs-actions.pod:3142
9515 #, no-wrap
9516 msgid ""
9517 " int\n"
9518 " guestfs_ln (guestfs_h *g,\n"
9519 "             const char *target,\n"
9520 "             const char *linkname);\n"
9521 "\n"
9522 msgstr ""
9523
9524 # type: textblock
9525 #: ../src/guestfs-actions.pod:3147 ../fish/guestfish-actions.pod:2141
9526 msgid "This command creates a hard link using the C<ln> command."
9527 msgstr ""
9528
9529 # type: =head2
9530 #: ../src/guestfs-actions.pod:3153
9531 msgid "guestfs_ln_f"
9532 msgstr ""
9533
9534 # type: verbatim
9535 #: ../src/guestfs-actions.pod:3155
9536 #, no-wrap
9537 msgid ""
9538 " int\n"
9539 " guestfs_ln_f (guestfs_h *g,\n"
9540 "               const char *target,\n"
9541 "               const char *linkname);\n"
9542 "\n"
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2147
9547 msgid ""
9548 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9549 "option removes the link (C<linkname>) if it exists already."
9550 msgstr ""
9551
9552 # type: =head2
9553 #: ../src/guestfs-actions.pod:3167
9554 msgid "guestfs_ln_s"
9555 msgstr ""
9556
9557 # type: verbatim
9558 #: ../src/guestfs-actions.pod:3169
9559 #, no-wrap
9560 msgid ""
9561 " int\n"
9562 " guestfs_ln_s (guestfs_h *g,\n"
9563 "               const char *target,\n"
9564 "               const char *linkname);\n"
9565 "\n"
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2154
9570 msgid "This command creates a symbolic link using the C<ln -s> command."
9571 msgstr ""
9572
9573 # type: =head2
9574 #: ../src/guestfs-actions.pod:3180
9575 msgid "guestfs_ln_sf"
9576 msgstr ""
9577
9578 # type: verbatim
9579 #: ../src/guestfs-actions.pod:3182
9580 #, no-wrap
9581 msgid ""
9582 " int\n"
9583 " guestfs_ln_sf (guestfs_h *g,\n"
9584 "                const char *target,\n"
9585 "                const char *linkname);\n"
9586 "\n"
9587 msgstr ""
9588
9589 # type: textblock
9590 #: ../src/guestfs-actions.pod:3187 ../fish/guestfish-actions.pod:2160
9591 msgid ""
9592 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9593 "option removes the link (C<linkname>) if it exists already."
9594 msgstr ""
9595
9596 # type: =head2
9597 #: ../src/guestfs-actions.pod:3194
9598 msgid "guestfs_lremovexattr"
9599 msgstr ""
9600
9601 # type: verbatim
9602 #: ../src/guestfs-actions.pod:3196
9603 #, no-wrap
9604 msgid ""
9605 " int\n"
9606 " guestfs_lremovexattr (guestfs_h *g,\n"
9607 "                       const char *xattr,\n"
9608 "                       const char *path);\n"
9609 "\n"
9610 msgstr ""
9611
9612 # type: textblock
9613 #: ../src/guestfs-actions.pod:3201
9614 msgid ""
9615 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9616 "link, then it removes an extended attribute of the link itself."
9617 msgstr ""
9618
9619 # type: =head2
9620 #: ../src/guestfs-actions.pod:3209
9621 msgid "guestfs_ls"
9622 msgstr ""
9623
9624 # type: verbatim
9625 #: ../src/guestfs-actions.pod:3211
9626 #, no-wrap
9627 msgid ""
9628 " char **\n"
9629 " guestfs_ls (guestfs_h *g,\n"
9630 "             const char *directory);\n"
9631 "\n"
9632 msgstr ""
9633
9634 # type: textblock
9635 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2175
9636 msgid ""
9637 "List the files in C<directory> (relative to the root directory, there is no "
9638 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9639 msgstr ""
9640
9641 # type: textblock
9642 #: ../src/guestfs-actions.pod:3219
9643 msgid ""
9644 "This command is mostly useful for interactive sessions.  Programs should "
9645 "probably use C<guestfs_readdir> instead."
9646 msgstr ""
9647
9648 # type: =head2
9649 #: ../src/guestfs-actions.pod:3228
9650 msgid "guestfs_lsetxattr"
9651 msgstr ""
9652
9653 # type: verbatim
9654 #: ../src/guestfs-actions.pod:3230
9655 #, no-wrap
9656 msgid ""
9657 " int\n"
9658 " guestfs_lsetxattr (guestfs_h *g,\n"
9659 "                    const char *xattr,\n"
9660 "                    const char *val,\n"
9661 "                    int vallen,\n"
9662 "                    const char *path);\n"
9663 "\n"
9664 msgstr ""
9665
9666 # type: textblock
9667 #: ../src/guestfs-actions.pod:3237
9668 msgid ""
9669 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9670 "then it sets an extended attribute of the link itself."
9671 msgstr ""
9672
9673 # type: =head2
9674 #: ../src/guestfs-actions.pod:3245
9675 msgid "guestfs_lstat"
9676 msgstr ""
9677
9678 # type: verbatim
9679 #: ../src/guestfs-actions.pod:3247
9680 #, no-wrap
9681 msgid ""
9682 " struct guestfs_stat *\n"
9683 " guestfs_lstat (guestfs_h *g,\n"
9684 "                const char *path);\n"
9685 "\n"
9686 msgstr ""
9687
9688 # type: textblock
9689 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:5678
9690 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:3776
9691 msgid "Returns file information for the given C<path>."
9692 msgstr ""
9693
9694 # type: textblock
9695 #: ../src/guestfs-actions.pod:3253
9696 msgid ""
9697 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9698 "link, then the link is stat-ed, not the file it refers to."
9699 msgstr ""
9700
9701 # type: textblock
9702 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2200
9703 msgid "This is the same as the C<lstat(2)> system call."
9704 msgstr ""
9705
9706 # type: textblock
9707 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:5682
9708 msgid ""
9709 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9710 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9711 msgstr ""
9712
9713 # type: textblock
9714 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:5686
9715 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:6085
9716 msgid "(Added in 0.9.2)"
9717 msgstr ""
9718
9719 # type: =head2
9720 #: ../src/guestfs-actions.pod:3265
9721 msgid "guestfs_lstatlist"
9722 msgstr ""
9723
9724 # type: verbatim
9725 #: ../src/guestfs-actions.pod:3267
9726 #, no-wrap
9727 msgid ""
9728 " struct guestfs_stat_list *\n"
9729 " guestfs_lstatlist (guestfs_h *g,\n"
9730 "                    const char *path,\n"
9731 "                    char *const *names);\n"
9732 "\n"
9733 msgstr ""
9734
9735 # type: textblock
9736 #: ../src/guestfs-actions.pod:3272
9737 msgid ""
9738 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9739 "files, where all files are in the directory C<path>.  C<names> is the list "
9740 "of files from this directory."
9741 msgstr ""
9742
9743 # type: textblock
9744 #: ../src/guestfs-actions.pod:3276 ../fish/guestfish-actions.pod:2210
9745 msgid ""
9746 "On return you get a list of stat structs, with a one-to-one correspondence "
9747 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9748 "then the C<ino> field of that structure is set to C<-1>."
9749 msgstr ""
9750
9751 # type: textblock
9752 #: ../src/guestfs-actions.pod:3281
9753 msgid ""
9754 "This call is intended for programs that want to efficiently list a directory "
9755 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9756 "for a similarly efficient call for getting extended attributes.  Very long "
9757 "directory listings might cause the protocol message size to be exceeded, "
9758 "causing this call to fail.  The caller must split up such requests into "
9759 "smaller groups of names."
9760 msgstr ""
9761
9762 # type: textblock
9763 #: ../src/guestfs-actions.pod:3289
9764 msgid ""
9765 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9766 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9767 msgstr ""
9768
9769 # type: =head2
9770 #: ../src/guestfs-actions.pod:3295
9771 msgid "guestfs_luks_add_key"
9772 msgstr ""
9773
9774 # type: verbatim
9775 #: ../src/guestfs-actions.pod:3297
9776 #, no-wrap
9777 msgid ""
9778 " int\n"
9779 " guestfs_luks_add_key (guestfs_h *g,\n"
9780 "                       const char *device,\n"
9781 "                       const char *key,\n"
9782 "                       const char *newkey,\n"
9783 "                       int keyslot);\n"
9784 "\n"
9785 msgstr ""
9786
9787 # type: textblock
9788 #: ../src/guestfs-actions.pod:3304 ../fish/guestfish-actions.pod:2227
9789 msgid ""
9790 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9791 "existing key, and is used to access the device.  C<newkey> is the new key to "
9792 "add.  C<keyslot> is the key slot that will be replaced."
9793 msgstr ""
9794
9795 # type: textblock
9796 #: ../src/guestfs-actions.pod:3309
9797 msgid ""
9798 "Note that if C<keyslot> already contains a key, then this command will "
9799 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:3355
9804 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3398
9805 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3449
9806 msgid ""
9807 "This function takes a key or passphrase parameter which could contain "
9808 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9809 "information."
9810 msgstr ""
9811
9812 # type: textblock
9813 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3359
9814 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3402
9815 msgid "(Added in 1.5.2)"
9816 msgstr ""
9817
9818 # type: =head2
9819 #: ../src/guestfs-actions.pod:3321
9820 msgid "guestfs_luks_close"
9821 msgstr ""
9822
9823 # type: verbatim
9824 #: ../src/guestfs-actions.pod:3323
9825 #, no-wrap
9826 msgid ""
9827 " int\n"
9828 " guestfs_luks_close (guestfs_h *g,\n"
9829 "                     const char *device);\n"
9830 "\n"
9831 msgstr ""
9832
9833 # type: textblock
9834 #: ../src/guestfs-actions.pod:3327
9835 msgid ""
9836 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9837 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9838 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9839 "underlying block device."
9840 msgstr ""
9841
9842 # type: textblock
9843 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3434
9844 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3503
9845 #: ../src/guestfs-actions.pod:3551
9846 msgid "(Added in 1.5.1)"
9847 msgstr ""
9848
9849 # type: =head2
9850 #: ../src/guestfs-actions.pod:3337
9851 msgid "guestfs_luks_format"
9852 msgstr ""
9853
9854 # type: verbatim
9855 #: ../src/guestfs-actions.pod:3339
9856 #, no-wrap
9857 msgid ""
9858 " int\n"
9859 " guestfs_luks_format (guestfs_h *g,\n"
9860 "                      const char *device,\n"
9861 "                      const char *key,\n"
9862 "                      int keyslot);\n"
9863 "\n"
9864 msgstr ""
9865
9866 # type: textblock
9867 #: ../src/guestfs-actions.pod:3345 ../fish/guestfish-actions.pod:2253
9868 msgid ""
9869 "This command erases existing data on C<device> and formats the device as a "
9870 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9871 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9872 msgstr ""
9873
9874 # type: textblock
9875 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:3375
9876 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:4375
9877 #: ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5513
9878 #: ../src/guestfs-actions.pod:5536 ../src/guestfs-actions.pod:5562
9879 #: ../src/guestfs-actions.pod:6712 ../fish/guestfish-actions.pod:2261
9880 #: ../fish/guestfish-actions.pod:2274 ../fish/guestfish-actions.pod:2358
9881 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:3395
9882 #: ../fish/guestfish-actions.pod:3675 ../fish/guestfish-actions.pod:3691
9883 #: ../fish/guestfish-actions.pod:3706 ../fish/guestfish-actions.pod:4421
9884 msgid ""
9885 "B<This command is dangerous.  Without careful use you can easily destroy all "
9886 "your data>."
9887 msgstr ""
9888
9889 # type: =head2
9890 #: ../src/guestfs-actions.pod:3361
9891 msgid "guestfs_luks_format_cipher"
9892 msgstr ""
9893
9894 # type: verbatim
9895 #: ../src/guestfs-actions.pod:3363
9896 #, no-wrap
9897 msgid ""
9898 " int\n"
9899 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9900 "                             const char *device,\n"
9901 "                             const char *key,\n"
9902 "                             int keyslot,\n"
9903 "                             const char *cipher);\n"
9904 "\n"
9905 msgstr ""
9906
9907 # type: textblock
9908 #: ../src/guestfs-actions.pod:3370
9909 msgid ""
9910 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9911 "set the C<cipher> used."
9912 msgstr ""
9913
9914 # type: =head2
9915 #: ../src/guestfs-actions.pod:3384
9916 msgid "guestfs_luks_kill_slot"
9917 msgstr ""
9918
9919 # type: verbatim
9920 #: ../src/guestfs-actions.pod:3386
9921 #, no-wrap
9922 msgid ""
9923 " int\n"
9924 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9925 "                         const char *device,\n"
9926 "                         const char *key,\n"
9927 "                         int keyslot);\n"
9928 "\n"
9929 msgstr ""
9930
9931 # type: textblock
9932 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2281
9933 msgid ""
9934 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9935 "device C<device>.  C<key> must be one of the I<other> keys."
9936 msgstr ""
9937
9938 # type: =head2
9939 #: ../src/guestfs-actions.pod:3404
9940 msgid "guestfs_luks_open"
9941 msgstr ""
9942
9943 # type: verbatim
9944 #: ../src/guestfs-actions.pod:3406
9945 #, no-wrap
9946 msgid ""
9947 " int\n"
9948 " guestfs_luks_open (guestfs_h *g,\n"
9949 "                    const char *device,\n"
9950 "                    const char *key,\n"
9951 "                    const char *mapname);\n"
9952 "\n"
9953 msgstr ""
9954
9955 # type: textblock
9956 #: ../src/guestfs-actions.pod:3412 ../fish/guestfish-actions.pod:2292
9957 msgid ""
9958 "This command opens a block device which has been encrypted according to the "
9959 "Linux Unified Key Setup (LUKS) standard."
9960 msgstr ""
9961
9962 # type: textblock
9963 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2295
9964 msgid "C<device> is the encrypted block device or partition."
9965 msgstr ""
9966
9967 # type: textblock
9968 #: ../src/guestfs-actions.pod:3417 ../fish/guestfish-actions.pod:2297
9969 msgid ""
9970 "The caller must supply one of the keys associated with the LUKS block "
9971 "device, in the C<key> parameter."
9972 msgstr ""
9973
9974 # type: textblock
9975 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2300
9976 msgid ""
9977 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9978 "writes to this block device are decrypted from and encrypted to the "
9979 "underlying C<device> respectively."
9980 msgstr ""
9981
9982 # type: textblock
9983 #: ../src/guestfs-actions.pod:3424
9984 msgid ""
9985 "If this block device contains LVM volume groups, then calling "
9986 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9987 "visible."
9988 msgstr ""
9989
9990 # type: =head2
9991 #: ../src/guestfs-actions.pod:3436
9992 msgid "guestfs_luks_open_ro"
9993 msgstr ""
9994
9995 # type: verbatim
9996 #: ../src/guestfs-actions.pod:3438
9997 #, no-wrap
9998 msgid ""
9999 " int\n"
10000 " guestfs_luks_open_ro (guestfs_h *g,\n"
10001 "                       const char *device,\n"
10002 "                       const char *key,\n"
10003 "                       const char *mapname);\n"
10004 "\n"
10005 msgstr ""
10006
10007 # type: textblock
10008 #: ../src/guestfs-actions.pod:3444
10009 msgid ""
10010 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10011 "created."
10012 msgstr ""
10013
10014 # type: =head2
10015 #: ../src/guestfs-actions.pod:3455
10016 msgid "guestfs_lvcreate"
10017 msgstr ""
10018
10019 # type: verbatim
10020 #: ../src/guestfs-actions.pod:3457
10021 #, no-wrap
10022 msgid ""
10023 " int\n"
10024 " guestfs_lvcreate (guestfs_h *g,\n"
10025 "                   const char *logvol,\n"
10026 "                   const char *volgroup,\n"
10027 "                   int mbytes);\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2325
10033 msgid ""
10034 "This creates an LVM logical volume called C<logvol> on the volume group "
10035 "C<volgroup>, with C<size> megabytes."
10036 msgstr ""
10037
10038 # type: =head2
10039 #: ../src/guestfs-actions.pod:3470
10040 msgid "guestfs_lvm_canonical_lv_name"
10041 msgstr ""
10042
10043 # type: verbatim
10044 #: ../src/guestfs-actions.pod:3472
10045 #, no-wrap
10046 msgid ""
10047 " char *\n"
10048 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10049 "                                const char *lvname);\n"
10050 "\n"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2332
10055 msgid ""
10056 "This converts alternative naming schemes for LVs that you might find to the "
10057 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10058 "LV>."
10059 msgstr ""
10060
10061 # type: textblock
10062 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2336
10063 msgid ""
10064 "This command returns an error if the C<lvname> parameter does not refer to a "
10065 "logical volume."
10066 msgstr ""
10067
10068 # type: textblock
10069 #: ../src/guestfs-actions.pod:3483
10070 msgid "See also C<guestfs_is_lv>."
10071 msgstr ""
10072
10073 # type: textblock
10074 #: ../src/guestfs-actions.pod:3488
10075 msgid "(Added in 1.5.24)"
10076 msgstr ""
10077
10078 # type: =head2
10079 #: ../src/guestfs-actions.pod:3490
10080 msgid "guestfs_lvm_clear_filter"
10081 msgstr ""
10082
10083 # type: verbatim
10084 #: ../src/guestfs-actions.pod:3492
10085 #, no-wrap
10086 msgid ""
10087 " int\n"
10088 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10089 "\n"
10090 msgstr ""
10091
10092 # type: textblock
10093 #: ../src/guestfs-actions.pod:3495
10094 msgid ""
10095 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10096 "see every block device."
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3540
10101 #: ../fish/guestfish-actions.pod:2348 ../fish/guestfish-actions.pod:2379
10102 msgid ""
10103 "This command also clears the LVM cache and performs a volume group scan."
10104 msgstr ""
10105
10106 # type: =head2
10107 #: ../src/guestfs-actions.pod:3505
10108 msgid "guestfs_lvm_remove_all"
10109 msgstr ""
10110
10111 # type: verbatim
10112 #: ../src/guestfs-actions.pod:3507
10113 #, no-wrap
10114 msgid ""
10115 " int\n"
10116 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10117 "\n"
10118 msgstr ""
10119
10120 # type: textblock
10121 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2355
10122 msgid ""
10123 "This command removes all LVM logical volumes, volume groups and physical "
10124 "volumes."
10125 msgstr ""
10126
10127 # type: =head2
10128 #: ../src/guestfs-actions.pod:3520
10129 msgid "guestfs_lvm_set_filter"
10130 msgstr ""
10131
10132 # type: verbatim
10133 #: ../src/guestfs-actions.pod:3522
10134 #, no-wrap
10135 msgid ""
10136 " int\n"
10137 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10138 "                         char *const *devices);\n"
10139 "\n"
10140 msgstr ""
10141
10142 # type: textblock
10143 #: ../src/guestfs-actions.pod:3526 ../fish/guestfish-actions.pod:2365
10144 msgid ""
10145 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10146 "block devices in the list C<devices>, and will ignore all other attached "
10147 "block devices."
10148 msgstr ""
10149
10150 # type: textblock
10151 #: ../src/guestfs-actions.pod:3530 ../fish/guestfish-actions.pod:2369
10152 msgid ""
10153 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10154 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10155 "there are two types of duplication possible: either cloned PVs/VGs which "
10156 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10157 "same name.  In normal operation you cannot create this situation, but you "
10158 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10159 "inside the LVM metadata."
10160 msgstr ""
10161
10162 # type: textblock
10163 #: ../src/guestfs-actions.pod:3543 ../fish/guestfish-actions.pod:2382
10164 msgid "You can filter whole block devices or individual partitions."
10165 msgstr ""
10166
10167 # type: textblock
10168 #: ../src/guestfs-actions.pod:3545 ../fish/guestfish-actions.pod:2384
10169 msgid ""
10170 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10171 "filesystem), even if you are not filtering out that VG."
10172 msgstr ""
10173
10174 # type: =head2
10175 #: ../src/guestfs-actions.pod:3553
10176 msgid "guestfs_lvremove"
10177 msgstr ""
10178
10179 # type: verbatim
10180 #: ../src/guestfs-actions.pod:3555
10181 #, no-wrap
10182 msgid ""
10183 " int\n"
10184 " guestfs_lvremove (guestfs_h *g,\n"
10185 "                   const char *device);\n"
10186 "\n"
10187 msgstr ""
10188
10189 # type: textblock
10190 #: ../src/guestfs-actions.pod:3559 ../fish/guestfish-actions.pod:2392
10191 msgid ""
10192 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10193 "LV, such as C</dev/VG/LV>."
10194 msgstr ""
10195
10196 # type: textblock
10197 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2395
10198 msgid ""
10199 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10200 "dev/VG>."
10201 msgstr ""
10202
10203 # type: textblock
10204 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:4721
10205 #: ../src/guestfs-actions.pod:6451
10206 msgid "(Added in 1.0.13)"
10207 msgstr ""
10208
10209 # type: =head2
10210 #: ../src/guestfs-actions.pod:3569
10211 msgid "guestfs_lvrename"
10212 msgstr ""
10213
10214 # type: verbatim
10215 #: ../src/guestfs-actions.pod:3571
10216 #, no-wrap
10217 msgid ""
10218 " int\n"
10219 " guestfs_lvrename (guestfs_h *g,\n"
10220 "                   const char *logvol,\n"
10221 "                   const char *newlogvol);\n"
10222 "\n"
10223 msgstr ""
10224
10225 # type: textblock
10226 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2402
10227 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10228 msgstr ""
10229
10230 # type: textblock
10231 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:6464
10232 msgid "(Added in 1.0.83)"
10233 msgstr ""
10234
10235 # type: =head2
10236 #: ../src/guestfs-actions.pod:3582
10237 msgid "guestfs_lvresize"
10238 msgstr ""
10239
10240 # type: verbatim
10241 #: ../src/guestfs-actions.pod:3584
10242 #, no-wrap
10243 msgid ""
10244 " int\n"
10245 " guestfs_lvresize (guestfs_h *g,\n"
10246 "                   const char *device,\n"
10247 "                   int mbytes);\n"
10248 "\n"
10249 msgstr ""
10250
10251 # type: textblock
10252 #: ../src/guestfs-actions.pod:3589 ../fish/guestfish-actions.pod:2408
10253 msgid ""
10254 "This resizes (expands or shrinks) an existing LVM logical volume to "
10255 "C<mbytes>.  When reducing, data in the reduced part is lost."
10256 msgstr ""
10257
10258 # type: =head2
10259 #: ../src/guestfs-actions.pod:3597
10260 msgid "guestfs_lvresize_free"
10261 msgstr ""
10262
10263 # type: verbatim
10264 #: ../src/guestfs-actions.pod:3599
10265 #, no-wrap
10266 msgid ""
10267 " int\n"
10268 " guestfs_lvresize_free (guestfs_h *g,\n"
10269 "                        const char *lv,\n"
10270 "                        int percent);\n"
10271 "\n"
10272 msgstr ""
10273
10274 # type: textblock
10275 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2416
10276 msgid ""
10277 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10278 "remaining free space in the volume group.  Commonly you would call this with "
10279 "pc = 100 which expands the logical volume as much as possible, using all "
10280 "remaining free space in the volume group."
10281 msgstr ""
10282
10283 # type: textblock
10284 #: ../src/guestfs-actions.pod:3612
10285 msgid "(Added in 1.3.3)"
10286 msgstr ""
10287
10288 # type: =head2
10289 #: ../src/guestfs-actions.pod:3614
10290 msgid "guestfs_lvs"
10291 msgstr ""
10292
10293 # type: verbatim
10294 #: ../src/guestfs-actions.pod:3616
10295 #, no-wrap
10296 msgid ""
10297 " char **\n"
10298 " guestfs_lvs (guestfs_h *g);\n"
10299 "\n"
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2426
10304 msgid ""
10305 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10306 "(8)> command."
10307 msgstr ""
10308
10309 # type: textblock
10310 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2429
10311 msgid ""
10312 "This returns a list of the logical volume device names (eg. C</dev/"
10313 "VolGroup00/LogVol00>)."
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3625
10318 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10319 msgstr ""
10320
10321 # type: =head2
10322 #: ../src/guestfs-actions.pod:3633
10323 msgid "guestfs_lvs_full"
10324 msgstr ""
10325
10326 # type: verbatim
10327 #: ../src/guestfs-actions.pod:3635
10328 #, no-wrap
10329 msgid ""
10330 " struct guestfs_lvm_lv_list *\n"
10331 " guestfs_lvs_full (guestfs_h *g);\n"
10332 "\n"
10333 msgstr ""
10334
10335 # type: textblock
10336 #: ../src/guestfs-actions.pod:3638 ../fish/guestfish-actions.pod:2438
10337 msgid ""
10338 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10339 "(8)> command.  The \"full\" version includes all fields."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3641
10344 msgid ""
10345 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10346 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10347 msgstr ""
10348
10349 # type: =head2
10350 #: ../src/guestfs-actions.pod:3647
10351 msgid "guestfs_lvuuid"
10352 msgstr ""
10353
10354 # type: verbatim
10355 #: ../src/guestfs-actions.pod:3649
10356 #, no-wrap
10357 msgid ""
10358 " char *\n"
10359 " guestfs_lvuuid (guestfs_h *g,\n"
10360 "                 const char *device);\n"
10361 "\n"
10362 msgstr ""
10363
10364 # type: textblock
10365 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2445
10366 msgid "This command returns the UUID of the LVM LV C<device>."
10367 msgstr ""
10368
10369 # type: =head2
10370 #: ../src/guestfs-actions.pod:3660
10371 msgid "guestfs_lxattrlist"
10372 msgstr ""
10373
10374 # type: verbatim
10375 #: ../src/guestfs-actions.pod:3662
10376 #, no-wrap
10377 msgid ""
10378 " struct guestfs_xattr_list *\n"
10379 " guestfs_lxattrlist (guestfs_h *g,\n"
10380 "                     const char *path,\n"
10381 "                     char *const *names);\n"
10382 "\n"
10383 msgstr ""
10384
10385 # type: textblock
10386 #: ../src/guestfs-actions.pod:3667 ../fish/guestfish-actions.pod:2451
10387 msgid ""
10388 "This call allows you to get the extended attributes of multiple files, where "
10389 "all files are in the directory C<path>.  C<names> is the list of files from "
10390 "this directory."
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2455
10395 msgid ""
10396 "On return you get a flat list of xattr structs which must be interpreted "
10397 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10398 "C<attrval> in this struct is zero-length to indicate there was an error "
10399 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10400 "number (the number of following attributes for this file, which could be C<"
10401 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10402 "for the first named file.  This repeats for the second and subsequent files."
10403 msgstr ""
10404
10405 # type: textblock
10406 #: ../src/guestfs-actions.pod:3681
10407 msgid ""
10408 "This call is intended for programs that want to efficiently list a directory "
10409 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10410 "a similarly efficient call for getting standard stats.  Very long directory "
10411 "listings might cause the protocol message size to be exceeded, causing this "
10412 "call to fail.  The caller must split up such requests into smaller groups of "
10413 "names."
10414 msgstr ""
10415
10416 # type: =head2
10417 #: ../src/guestfs-actions.pod:3695
10418 msgid "guestfs_mkdir"
10419 msgstr ""
10420
10421 # type: verbatim
10422 #: ../src/guestfs-actions.pod:3697
10423 #, no-wrap
10424 msgid ""
10425 " int\n"
10426 " guestfs_mkdir (guestfs_h *g,\n"
10427 "                const char *path);\n"
10428 "\n"
10429 msgstr ""
10430
10431 # type: textblock
10432 #: ../src/guestfs-actions.pod:3701 ../fish/guestfish-actions.pod:2477
10433 msgid "Create a directory named C<path>."
10434 msgstr ""
10435
10436 # type: =head2
10437 #: ../src/guestfs-actions.pod:3707
10438 msgid "guestfs_mkdir_mode"
10439 msgstr ""
10440
10441 # type: verbatim
10442 #: ../src/guestfs-actions.pod:3709
10443 #, no-wrap
10444 msgid ""
10445 " int\n"
10446 " guestfs_mkdir_mode (guestfs_h *g,\n"
10447 "                     const char *path,\n"
10448 "                     int mode);\n"
10449 "\n"
10450 msgstr ""
10451
10452 # type: textblock
10453 #: ../src/guestfs-actions.pod:3714 ../fish/guestfish-actions.pod:2483
10454 msgid ""
10455 "This command creates a directory, setting the initial permissions of the "
10456 "directory to C<mode>."
10457 msgstr ""
10458
10459 # type: textblock
10460 #: ../src/guestfs-actions.pod:3717 ../fish/guestfish-actions.pod:2486
10461 msgid ""
10462 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10463 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10464 "other ways."
10465 msgstr ""
10466
10467 # type: textblock
10468 #: ../src/guestfs-actions.pod:3721
10469 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10470 msgstr ""
10471
10472 # type: =head2
10473 #: ../src/guestfs-actions.pod:3727
10474 msgid "guestfs_mkdir_p"
10475 msgstr ""
10476
10477 # type: verbatim
10478 #: ../src/guestfs-actions.pod:3729
10479 #, no-wrap
10480 msgid ""
10481 " int\n"
10482 " guestfs_mkdir_p (guestfs_h *g,\n"
10483 "                  const char *path);\n"
10484 "\n"
10485 msgstr ""
10486
10487 # type: textblock
10488 #: ../src/guestfs-actions.pod:3733 ../fish/guestfish-actions.pod:2496
10489 msgid ""
10490 "Create a directory named C<path>, creating any parent directories as "
10491 "necessary.  This is like the C<mkdir -p> shell command."
10492 msgstr ""
10493
10494 # type: =head2
10495 #: ../src/guestfs-actions.pod:3740
10496 msgid "guestfs_mkdtemp"
10497 msgstr ""
10498
10499 # type: verbatim
10500 #: ../src/guestfs-actions.pod:3742
10501 #, no-wrap
10502 msgid ""
10503 " char *\n"
10504 " guestfs_mkdtemp (guestfs_h *g,\n"
10505 "                  const char *template);\n"
10506 "\n"
10507 msgstr ""
10508
10509 # type: textblock
10510 #: ../src/guestfs-actions.pod:3746 ../fish/guestfish-actions.pod:2503
10511 msgid ""
10512 "This command creates a temporary directory.  The C<template> parameter "
10513 "should be a full pathname for the temporary directory name with the final "
10514 "six characters being \"XXXXXX\"."
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2508
10519 msgid ""
10520 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10521 "being suitable for Windows filesystems."
10522 msgstr ""
10523
10524 # type: textblock
10525 #: ../src/guestfs-actions.pod:3754 ../fish/guestfish-actions.pod:2511
10526 msgid "The name of the temporary directory that was created is returned."
10527 msgstr ""
10528
10529 # type: textblock
10530 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2514
10531 msgid "The temporary directory is created with mode 0700 and is owned by root."
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3760 ../fish/guestfish-actions.pod:2517
10536 msgid ""
10537 "The caller is responsible for deleting the temporary directory and its "
10538 "contents after use."
10539 msgstr ""
10540
10541 # type: textblock
10542 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2520
10543 msgid "See also: L<mkdtemp(3)>"
10544 msgstr ""
10545
10546 # type: =head2
10547 #: ../src/guestfs-actions.pod:3770
10548 msgid "guestfs_mke2fs_J"
10549 msgstr ""
10550
10551 # type: verbatim
10552 #: ../src/guestfs-actions.pod:3772
10553 #, no-wrap
10554 msgid ""
10555 " int\n"
10556 " guestfs_mke2fs_J (guestfs_h *g,\n"
10557 "                   const char *fstype,\n"
10558 "                   int blocksize,\n"
10559 "                   const char *device,\n"
10560 "                   const char *journal);\n"
10561 "\n"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2526
10566 msgid ""
10567 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10568 "C<journal>.  It is equivalent to the command:"
10569 msgstr ""
10570
10571 # type: verbatim
10572 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2530
10573 #, no-wrap
10574 msgid ""
10575 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10576 "\n"
10577 msgstr ""
10578
10579 # type: textblock
10580 #: ../src/guestfs-actions.pod:3785
10581 msgid "See also C<guestfs_mke2journal>."
10582 msgstr ""
10583
10584 # type: textblock
10585 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3807
10586 #: ../src/guestfs-actions.pod:3825 ../src/guestfs-actions.pod:3841
10587 #: ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3869
10588 #: ../src/guestfs-actions.pod:3921 ../src/guestfs-actions.pod:4111
10589 msgid "(Added in 1.0.68)"
10590 msgstr ""
10591
10592 # type: =head2
10593 #: ../src/guestfs-actions.pod:3791
10594 msgid "guestfs_mke2fs_JL"
10595 msgstr ""
10596
10597 # type: verbatim
10598 #: ../src/guestfs-actions.pod:3793
10599 #, no-wrap
10600 msgid ""
10601 " int\n"
10602 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10603 "                    const char *fstype,\n"
10604 "                    int blocksize,\n"
10605 "                    const char *device,\n"
10606 "                    const char *label);\n"
10607 "\n"
10608 msgstr ""
10609
10610 # type: textblock
10611 #: ../src/guestfs-actions.pod:3800 ../fish/guestfish-actions.pod:2538
10612 msgid ""
10613 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10614 "the journal labeled C<label>."
10615 msgstr ""
10616
10617 # type: textblock
10618 #: ../src/guestfs-actions.pod:3803
10619 msgid "See also C<guestfs_mke2journal_L>."
10620 msgstr ""
10621
10622 # type: =head2
10623 #: ../src/guestfs-actions.pod:3809
10624 msgid "guestfs_mke2fs_JU"
10625 msgstr ""
10626
10627 # type: verbatim
10628 #: ../src/guestfs-actions.pod:3811
10629 #, no-wrap
10630 msgid ""
10631 " int\n"
10632 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10633 "                    const char *fstype,\n"
10634 "                    int blocksize,\n"
10635 "                    const char *device,\n"
10636 "                    const char *uuid);\n"
10637 "\n"
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3818 ../fish/guestfish-actions.pod:2547
10642 msgid ""
10643 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10644 "the journal with UUID C<uuid>."
10645 msgstr ""
10646
10647 # type: textblock
10648 #: ../src/guestfs-actions.pod:3821
10649 msgid "See also C<guestfs_mke2journal_U>."
10650 msgstr ""
10651
10652 # type: =head2
10653 #: ../src/guestfs-actions.pod:3827
10654 msgid "guestfs_mke2journal"
10655 msgstr ""
10656
10657 # type: verbatim
10658 #: ../src/guestfs-actions.pod:3829
10659 #, no-wrap
10660 msgid ""
10661 " int\n"
10662 " guestfs_mke2journal (guestfs_h *g,\n"
10663 "                      int blocksize,\n"
10664 "                      const char *device);\n"
10665 "\n"
10666 msgstr ""
10667
10668 # type: textblock
10669 #: ../src/guestfs-actions.pod:3834 ../fish/guestfish-actions.pod:2556
10670 msgid ""
10671 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10672 "command:"
10673 msgstr ""
10674
10675 # type: verbatim
10676 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2559
10677 #, no-wrap
10678 msgid ""
10679 " mke2fs -O journal_dev -b blocksize device\n"
10680 "\n"
10681 msgstr ""
10682
10683 # type: =head2
10684 #: ../src/guestfs-actions.pod:3843
10685 msgid "guestfs_mke2journal_L"
10686 msgstr ""
10687
10688 # type: verbatim
10689 #: ../src/guestfs-actions.pod:3845
10690 #, no-wrap
10691 msgid ""
10692 " int\n"
10693 " guestfs_mke2journal_L (guestfs_h *g,\n"
10694 "                        int blocksize,\n"
10695 "                        const char *label,\n"
10696 "                        const char *device);\n"
10697 "\n"
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2565
10702 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10703 msgstr ""
10704
10705 # type: =head2
10706 #: ../src/guestfs-actions.pod:3857
10707 msgid "guestfs_mke2journal_U"
10708 msgstr ""
10709
10710 # type: verbatim
10711 #: ../src/guestfs-actions.pod:3859
10712 #, no-wrap
10713 msgid ""
10714 " int\n"
10715 " guestfs_mke2journal_U (guestfs_h *g,\n"
10716 "                        int blocksize,\n"
10717 "                        const char *uuid,\n"
10718 "                        const char *device);\n"
10719 "\n"
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2571
10724 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10725 msgstr ""
10726
10727 # type: =head2
10728 #: ../src/guestfs-actions.pod:3871
10729 msgid "guestfs_mkfifo"
10730 msgstr ""
10731
10732 # type: verbatim
10733 #: ../src/guestfs-actions.pod:3873
10734 #, no-wrap
10735 msgid ""
10736 " int\n"
10737 " guestfs_mkfifo (guestfs_h *g,\n"
10738 "                 int mode,\n"
10739 "                 const char *path);\n"
10740 "\n"
10741 msgstr ""
10742
10743 # type: textblock
10744 #: ../src/guestfs-actions.pod:3878
10745 msgid ""
10746 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10747 "is just a convenient wrapper around C<guestfs_mknod>."
10748 msgstr ""
10749
10750 # type: =head2
10751 #: ../src/guestfs-actions.pod:3888
10752 msgid "guestfs_mkfs"
10753 msgstr ""
10754
10755 # type: verbatim
10756 #: ../src/guestfs-actions.pod:3890
10757 #, no-wrap
10758 msgid ""
10759 " int\n"
10760 " guestfs_mkfs (guestfs_h *g,\n"
10761 "               const char *fstype,\n"
10762 "               const char *device);\n"
10763 "\n"
10764 msgstr ""
10765
10766 # type: textblock
10767 #: ../src/guestfs-actions.pod:3895 ../fish/guestfish-actions.pod:2587
10768 msgid ""
10769 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10770 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10771 msgstr ""
10772
10773 # type: =head2
10774 #: ../src/guestfs-actions.pod:3903
10775 msgid "guestfs_mkfs_b"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #: ../src/guestfs-actions.pod:3905
10780 #, no-wrap
10781 msgid ""
10782 " int\n"
10783 " guestfs_mkfs_b (guestfs_h *g,\n"
10784 "                 const char *fstype,\n"
10785 "                 int blocksize,\n"
10786 "                 const char *device);\n"
10787 "\n"
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3911
10792 msgid ""
10793 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10794 "block size of the resulting filesystem.  Supported block sizes depend on the "
10795 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3916 ../fish/guestfish-actions.pod:2600
10800 msgid ""
10801 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10802 "cluster size."
10803 msgstr ""
10804
10805 # type: =head2
10806 #: ../src/guestfs-actions.pod:3923
10807 msgid "guestfs_mkmountpoint"
10808 msgstr ""
10809
10810 # type: verbatim
10811 #: ../src/guestfs-actions.pod:3925
10812 #, no-wrap
10813 msgid ""
10814 " int\n"
10815 " guestfs_mkmountpoint (guestfs_h *g,\n"
10816 "                       const char *exemptpath);\n"
10817 "\n"
10818 msgstr ""
10819
10820 # type: textblock
10821 #: ../src/guestfs-actions.pod:3929
10822 msgid ""
10823 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10824 "that can be used to create extra mountpoints before mounting the first "
10825 "filesystem."
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:3933 ../fish/guestfish-actions.pod:2611
10830 msgid ""
10831 "These calls are I<only> necessary in some very limited circumstances, mainly "
10832 "the case where you want to mount a mix of unrelated and/or read-only "
10833 "filesystems together."
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:3937 ../fish/guestfish-actions.pod:2615
10838 msgid ""
10839 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10840 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10841 "inside that.  You can unpack this as follows in guestfish:"
10842 msgstr ""
10843
10844 # type: verbatim
10845 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:2620
10846 #, no-wrap
10847 msgid ""
10848 " add-ro Fedora-11-i686-Live.iso\n"
10849 " run\n"
10850 " mkmountpoint /cd\n"
10851 " mkmountpoint /sqsh\n"
10852 " mkmountpoint /ext3fs\n"
10853 " mount /dev/sda /cd\n"
10854 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10855 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10856 "\n"
10857 msgstr ""
10858
10859 # type: textblock
10860 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2629
10861 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10862 msgstr ""
10863
10864 # type: textblock
10865 #: ../src/guestfs-actions.pod:3953
10866 msgid ""
10867 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10868 "may get unexpected errors if you try to mix these calls.  It is safest to "
10869 "manually unmount filesystems and remove mountpoints after use."
10870 msgstr ""
10871
10872 # type: textblock
10873 #: ../src/guestfs-actions.pod:3957
10874 msgid ""
10875 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10876 "first, so for this to work for manual mountpoints, you must ensure that the "
10877 "innermost mountpoints have the longest pathnames, as in the example code "
10878 "above."
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2640
10883 msgid ""
10884 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:3964
10889 msgid ""
10890 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10891 "means that C<guestfs_umount_all> is called when the handle is closed which "
10892 "can also trigger these issues."
10893 msgstr ""
10894
10895 # type: textblock
10896 #: ../src/guestfs-actions.pod:3970 ../src/guestfs-actions.pod:4229
10897 #: ../src/guestfs-actions.pod:5122
10898 msgid "(Added in 1.0.62)"
10899 msgstr ""
10900
10901 # type: =head2
10902 #: ../src/guestfs-actions.pod:3972
10903 msgid "guestfs_mknod"
10904 msgstr ""
10905
10906 # type: verbatim
10907 #: ../src/guestfs-actions.pod:3974
10908 #, no-wrap
10909 msgid ""
10910 " int\n"
10911 " guestfs_mknod (guestfs_h *g,\n"
10912 "                int mode,\n"
10913 "                int devmajor,\n"
10914 "                int devminor,\n"
10915 "                const char *path);\n"
10916 "\n"
10917 msgstr ""
10918
10919 # type: textblock
10920 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2650
10921 msgid ""
10922 "This call creates block or character special devices, or named pipes (FIFOs)."
10923 msgstr ""
10924
10925 # type: textblock
10926 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2653
10927 msgid ""
10928 "The C<mode> parameter should be the mode, using the standard constants.  "
10929 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10930 "used when creating block and character special devices."
10931 msgstr ""
10932
10933 # type: textblock
10934 #: ../src/guestfs-actions.pod:3989
10935 msgid ""
10936 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10937 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10938 "regular file).  These constants are available in the standard Linux header "
10939 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10940 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10941 "the appropriate constant for you."
10942 msgstr ""
10943
10944 # type: =head2
10945 #: ../src/guestfs-actions.pod:4003
10946 msgid "guestfs_mknod_b"
10947 msgstr ""
10948
10949 # type: verbatim
10950 #: ../src/guestfs-actions.pod:4005
10951 #, no-wrap
10952 msgid ""
10953 " int\n"
10954 " guestfs_mknod_b (guestfs_h *g,\n"
10955 "                  int mode,\n"
10956 "                  int devmajor,\n"
10957 "                  int devminor,\n"
10958 "                  const char *path);\n"
10959 "\n"
10960 msgstr ""
10961
10962 # type: textblock
10963 #: ../src/guestfs-actions.pod:4012
10964 msgid ""
10965 "This call creates a block device node called C<path> with mode C<mode> and "
10966 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10967 "wrapper around C<guestfs_mknod>."
10968 msgstr ""
10969
10970 # type: =head2
10971 #: ../src/guestfs-actions.pod:4022
10972 msgid "guestfs_mknod_c"
10973 msgstr ""
10974
10975 # type: verbatim
10976 #: ../src/guestfs-actions.pod:4024
10977 #, no-wrap
10978 msgid ""
10979 " int\n"
10980 " guestfs_mknod_c (guestfs_h *g,\n"
10981 "                  int mode,\n"
10982 "                  int devmajor,\n"
10983 "                  int devminor,\n"
10984 "                  const char *path);\n"
10985 "\n"
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:4031
10990 msgid ""
10991 "This call creates a char device node called C<path> with mode C<mode> and "
10992 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10993 "wrapper around C<guestfs_mknod>."
10994 msgstr ""
10995
10996 # type: =head2
10997 #: ../src/guestfs-actions.pod:4041
10998 msgid "guestfs_mkswap"
10999 msgstr ""
11000
11001 # type: verbatim
11002 #: ../src/guestfs-actions.pod:4043
11003 #, no-wrap
11004 msgid ""
11005 " int\n"
11006 " guestfs_mkswap (guestfs_h *g,\n"
11007 "                 const char *device);\n"
11008 "\n"
11009 msgstr ""
11010
11011 # type: textblock
11012 #: ../src/guestfs-actions.pod:4047 ../fish/guestfish-actions.pod:2692
11013 msgid "Create a swap partition on C<device>."
11014 msgstr ""
11015
11016 # type: =head2
11017 #: ../src/guestfs-actions.pod:4053
11018 msgid "guestfs_mkswap_L"
11019 msgstr ""
11020
11021 # type: verbatim
11022 #: ../src/guestfs-actions.pod:4055
11023 #, no-wrap
11024 msgid ""
11025 " int\n"
11026 " guestfs_mkswap_L (guestfs_h *g,\n"
11027 "                   const char *label,\n"
11028 "                   const char *device);\n"
11029 "\n"
11030 msgstr ""
11031
11032 # type: textblock
11033 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:2698
11034 msgid "Create a swap partition on C<device> with label C<label>."
11035 msgstr ""
11036
11037 # type: textblock
11038 #: ../src/guestfs-actions.pod:4062 ../fish/guestfish-actions.pod:2700
11039 msgid ""
11040 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11041 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11042 "or swap tools."
11043 msgstr ""
11044
11045 # type: =head2
11046 #: ../src/guestfs-actions.pod:4070
11047 msgid "guestfs_mkswap_U"
11048 msgstr ""
11049
11050 # type: verbatim
11051 #: ../src/guestfs-actions.pod:4072
11052 #, no-wrap
11053 msgid ""
11054 " int\n"
11055 " guestfs_mkswap_U (guestfs_h *g,\n"
11056 "                   const char *uuid,\n"
11057 "                   const char *device);\n"
11058 "\n"
11059 msgstr ""
11060
11061 # type: textblock
11062 #: ../src/guestfs-actions.pod:4077 ../fish/guestfish-actions.pod:2708
11063 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11064 msgstr ""
11065
11066 # type: =head2
11067 #: ../src/guestfs-actions.pod:4083
11068 msgid "guestfs_mkswap_file"
11069 msgstr ""
11070
11071 # type: verbatim
11072 #: ../src/guestfs-actions.pod:4085
11073 #, no-wrap
11074 msgid ""
11075 " int\n"
11076 " guestfs_mkswap_file (guestfs_h *g,\n"
11077 "                      const char *path);\n"
11078 "\n"
11079 msgstr ""
11080
11081 # type: textblock
11082 #: ../src/guestfs-actions.pod:4089 ../fish/guestfish-actions.pod:2714
11083 msgid "Create a swap file."
11084 msgstr ""
11085
11086 # type: textblock
11087 #: ../src/guestfs-actions.pod:4091
11088 msgid ""
11089 "This command just writes a swap file signature to an existing file.  To "
11090 "create the file itself, use something like C<guestfs_fallocate>."
11091 msgstr ""
11092
11093 # type: =head2
11094 #: ../src/guestfs-actions.pod:4098
11095 msgid "guestfs_modprobe"
11096 msgstr ""
11097
11098 # type: verbatim
11099 #: ../src/guestfs-actions.pod:4100
11100 #, no-wrap
11101 msgid ""
11102 " int\n"
11103 " guestfs_modprobe (guestfs_h *g,\n"
11104 "                   const char *modulename);\n"
11105 "\n"
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:4104 ../fish/guestfish-actions.pod:2723
11110 msgid "This loads a kernel module in the appliance."
11111 msgstr ""
11112
11113 # type: textblock
11114 #: ../src/guestfs-actions.pod:4106 ../fish/guestfish-actions.pod:2725
11115 msgid ""
11116 "The kernel module must have been whitelisted when libguestfs was built (see "
11117 "C<appliance/kmod.whitelist.in> in the source)."
11118 msgstr ""
11119
11120 # type: =head2
11121 #: ../src/guestfs-actions.pod:4113
11122 msgid "guestfs_mount"
11123 msgstr ""
11124
11125 # type: verbatim
11126 #: ../src/guestfs-actions.pod:4115
11127 #, no-wrap
11128 msgid ""
11129 " int\n"
11130 " guestfs_mount (guestfs_h *g,\n"
11131 "                const char *device,\n"
11132 "                const char *mountpoint);\n"
11133 "\n"
11134 msgstr ""
11135
11136 # type: textblock
11137 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:2732
11138 msgid ""
11139 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11140 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11141 "those block devices contain partitions, they will have the usual names (eg. "
11142 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11143 msgstr ""
11144
11145 # type: textblock
11146 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2738
11147 msgid ""
11148 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11149 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11150 "mounted on directories which already exist."
11151 msgstr ""
11152
11153 # type: textblock
11154 #: ../src/guestfs-actions.pod:4131 ../fish/guestfish-actions.pod:2743
11155 msgid ""
11156 "The mounted filesystem is writable, if we have sufficient permissions on the "
11157 "underlying device."
11158 msgstr ""
11159
11160 # type: textblock
11161 #: ../src/guestfs-actions.pod:4134
11162 msgid ""
11163 "B<Important note:> When you use this call, the filesystem options C<sync> "
11164 "and C<noatime> are set implicitly.  This was originally done because we "
11165 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11166 "very large negative performance impact and negligible effect on "
11167 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11168 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11169 "(use an empty string for the first parameter if you don't want any options)."
11170 msgstr ""
11171
11172 # type: =head2
11173 #: ../src/guestfs-actions.pod:4148
11174 msgid "guestfs_mount_loop"
11175 msgstr ""
11176
11177 # type: verbatim
11178 #: ../src/guestfs-actions.pod:4150
11179 #, no-wrap
11180 msgid ""
11181 " int\n"
11182 " guestfs_mount_loop (guestfs_h *g,\n"
11183 "                     const char *file,\n"
11184 "                     const char *mountpoint);\n"
11185 "\n"
11186 msgstr ""
11187
11188 # type: textblock
11189 #: ../src/guestfs-actions.pod:4155 ../fish/guestfish-actions.pod:2760
11190 msgid ""
11191 "This command lets you mount C<file> (a filesystem image in a file) on a "
11192 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11193 "mountpoint>."
11194 msgstr ""
11195
11196 # type: =head2
11197 #: ../src/guestfs-actions.pod:4163
11198 msgid "guestfs_mount_options"
11199 msgstr ""
11200
11201 # type: verbatim
11202 #: ../src/guestfs-actions.pod:4165
11203 #, no-wrap
11204 msgid ""
11205 " int\n"
11206 " guestfs_mount_options (guestfs_h *g,\n"
11207 "                        const char *options,\n"
11208 "                        const char *device,\n"
11209 "                        const char *mountpoint);\n"
11210 "\n"
11211 msgstr ""
11212
11213 # type: textblock
11214 #: ../src/guestfs-actions.pod:4171
11215 msgid ""
11216 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11217 "the mount options as for the L<mount(8)> I<-o> flag."
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:4175 ../fish/guestfish-actions.pod:2772
11222 msgid ""
11223 "If the C<options> parameter is an empty string, then no options are passed "
11224 "(all options default to whatever the filesystem uses)."
11225 msgstr ""
11226
11227 # type: textblock
11228 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4195
11229 #: ../src/guestfs-actions.pod:4212
11230 msgid "(Added in 1.0.10)"
11231 msgstr ""
11232
11233 # type: =head2
11234 #: ../src/guestfs-actions.pod:4183
11235 msgid "guestfs_mount_ro"
11236 msgstr ""
11237
11238 # type: verbatim
11239 #: ../src/guestfs-actions.pod:4185
11240 #, no-wrap
11241 msgid ""
11242 " int\n"
11243 " guestfs_mount_ro (guestfs_h *g,\n"
11244 "                   const char *device,\n"
11245 "                   const char *mountpoint);\n"
11246 "\n"
11247 msgstr ""
11248
11249 # type: textblock
11250 #: ../src/guestfs-actions.pod:4190
11251 msgid ""
11252 "This is the same as the C<guestfs_mount> command, but it mounts the "
11253 "filesystem with the read-only (I<-o ro>) flag."
11254 msgstr ""
11255
11256 # type: =head2
11257 #: ../src/guestfs-actions.pod:4197
11258 msgid "guestfs_mount_vfs"
11259 msgstr ""
11260
11261 # type: verbatim
11262 #: ../src/guestfs-actions.pod:4199
11263 #, no-wrap
11264 msgid ""
11265 " int\n"
11266 " guestfs_mount_vfs (guestfs_h *g,\n"
11267 "                    const char *options,\n"
11268 "                    const char *vfstype,\n"
11269 "                    const char *device,\n"
11270 "                    const char *mountpoint);\n"
11271 "\n"
11272 msgstr ""
11273
11274 # type: textblock
11275 #: ../src/guestfs-actions.pod:4206
11276 msgid ""
11277 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11278 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
11279 "t> flags."
11280 msgstr ""
11281
11282 # type: =head2
11283 #: ../src/guestfs-actions.pod:4214
11284 msgid "guestfs_mountpoints"
11285 msgstr ""
11286
11287 # type: verbatim
11288 #: ../src/guestfs-actions.pod:4216
11289 #, no-wrap
11290 msgid ""
11291 " char **\n"
11292 " guestfs_mountpoints (guestfs_h *g);\n"
11293 "\n"
11294 msgstr ""
11295
11296 # type: textblock
11297 #: ../src/guestfs-actions.pod:4219
11298 msgid ""
11299 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11300 "devices.  This one returns a hash table (map) of device name to directory "
11301 "where the device is mounted."
11302 msgstr ""
11303
11304 # type: =head2
11305 #: ../src/guestfs-actions.pod:4231
11306 msgid "guestfs_mounts"
11307 msgstr ""
11308
11309 # type: verbatim
11310 #: ../src/guestfs-actions.pod:4233
11311 #, no-wrap
11312 msgid ""
11313 " char **\n"
11314 " guestfs_mounts (guestfs_h *g);\n"
11315 "\n"
11316 msgstr ""
11317
11318 # type: textblock
11319 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:2803
11320 msgid ""
11321 "This returns the list of currently mounted filesystems.  It returns the list "
11322 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:2806
11327 msgid "Some internal mounts are not shown."
11328 msgstr ""
11329
11330 # type: textblock
11331 #: ../src/guestfs-actions.pod:4241
11332 msgid "See also: C<guestfs_mountpoints>"
11333 msgstr ""
11334
11335 # type: =head2
11336 #: ../src/guestfs-actions.pod:4249
11337 msgid "guestfs_mv"
11338 msgstr ""
11339
11340 # type: verbatim
11341 #: ../src/guestfs-actions.pod:4251
11342 #, no-wrap
11343 msgid ""
11344 " int\n"
11345 " guestfs_mv (guestfs_h *g,\n"
11346 "             const char *src,\n"
11347 "             const char *dest);\n"
11348 "\n"
11349 msgstr ""
11350
11351 # type: textblock
11352 #: ../src/guestfs-actions.pod:4256 ../fish/guestfish-actions.pod:2814
11353 msgid ""
11354 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11355 "destination filename or destination directory."
11356 msgstr ""
11357
11358 # type: =head2
11359 #: ../src/guestfs-actions.pod:4263
11360 msgid "guestfs_ntfs_3g_probe"
11361 msgstr ""
11362
11363 # type: verbatim
11364 #: ../src/guestfs-actions.pod:4265
11365 #, no-wrap
11366 msgid ""
11367 " int\n"
11368 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11369 "                        int rw,\n"
11370 "                        const char *device);\n"
11371 "\n"
11372 msgstr ""
11373
11374 # type: textblock
11375 #: ../src/guestfs-actions.pod:4270 ../fish/guestfish-actions.pod:2821
11376 msgid ""
11377 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11378 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11379 "write, and some cannot be mounted at all)."
11380 msgstr ""
11381
11382 # type: textblock
11383 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:2825
11384 msgid ""
11385 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11386 "can be mounted read-write.  Set it to false if you want to test if the "
11387 "volume can be mounted read-only."
11388 msgstr ""
11389
11390 # type: textblock
11391 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2829
11392 msgid ""
11393 "The return value is an integer which C<0> if the operation would succeed, or "
11394 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11395 msgstr ""
11396
11397 # type: textblock
11398 #: ../src/guestfs-actions.pod:4284
11399 msgid "(Added in 1.0.43)"
11400 msgstr ""
11401
11402 # type: =head2
11403 #: ../src/guestfs-actions.pod:4286
11404 msgid "guestfs_ntfsresize"
11405 msgstr ""
11406
11407 # type: verbatim
11408 #: ../src/guestfs-actions.pod:4288
11409 #, no-wrap
11410 msgid ""
11411 " int\n"
11412 " guestfs_ntfsresize (guestfs_h *g,\n"
11413 "                     const char *device);\n"
11414 "\n"
11415 msgstr ""
11416
11417 # type: textblock
11418 #: ../src/guestfs-actions.pod:4292 ../fish/guestfish-actions.pod:2837
11419 msgid ""
11420 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11421 "size of the underlying device.  See also L<ntfsresize(8)>."
11422 msgstr ""
11423
11424 # type: =head2
11425 #: ../src/guestfs-actions.pod:4300
11426 msgid "guestfs_ntfsresize_size"
11427 msgstr ""
11428
11429 # type: verbatim
11430 #: ../src/guestfs-actions.pod:4302
11431 #, no-wrap
11432 msgid ""
11433 " int\n"
11434 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11435 "                          const char *device,\n"
11436 "                          int64_t size);\n"
11437 "\n"
11438 msgstr ""
11439
11440 # type: textblock
11441 #: ../src/guestfs-actions.pod:4307
11442 msgid ""
11443 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11444 "to specify the new size (in bytes) explicitly."
11445 msgstr ""
11446
11447 # type: textblock
11448 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:4748
11449 #: ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:5070
11450 msgid "(Added in 1.3.14)"
11451 msgstr ""
11452
11453 # type: =head2
11454 #: ../src/guestfs-actions.pod:4314
11455 msgid "guestfs_part_add"
11456 msgstr ""
11457
11458 # type: verbatim
11459 #: ../src/guestfs-actions.pod:4316
11460 #, no-wrap
11461 msgid ""
11462 " int\n"
11463 " guestfs_part_add (guestfs_h *g,\n"
11464 "                   const char *device,\n"
11465 "                   const char *prlogex,\n"
11466 "                   int64_t startsect,\n"
11467 "                   int64_t endsect);\n"
11468 "\n"
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4323
11473 msgid ""
11474 "This command adds a partition to C<device>.  If there is no partition table "
11475 "on the device, call C<guestfs_part_init> first."
11476 msgstr ""
11477
11478 # type: textblock
11479 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:2855
11480 msgid ""
11481 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11482 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11483 "C<logical>) and C<e> (or C<extended>) partition types."
11484 msgstr ""
11485
11486 # type: textblock
11487 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2860
11488 msgid ""
11489 "C<startsect> and C<endsect> are the start and end of the partition in "
11490 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11491 "from the end of the disk (C<-1> is the last sector)."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4335
11496 msgid ""
11497 "Creating a partition which covers the whole disk is not so easy.  Use "
11498 "C<guestfs_part_disk> to do that."
11499 msgstr ""
11500
11501 # type: textblock
11502 #: ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4378
11503 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4509
11504 #: ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4566
11505 #: ../src/guestfs-actions.pod:4606
11506 msgid "(Added in 1.0.78)"
11507 msgstr ""
11508
11509 # type: =head2
11510 #: ../src/guestfs-actions.pod:4342
11511 msgid "guestfs_part_del"
11512 msgstr ""
11513
11514 # type: verbatim
11515 #: ../src/guestfs-actions.pod:4344
11516 #, no-wrap
11517 msgid ""
11518 " int\n"
11519 " guestfs_part_del (guestfs_h *g,\n"
11520 "                   const char *device,\n"
11521 "                   int partnum);\n"
11522 "\n"
11523 msgstr ""
11524
11525 # type: textblock
11526 #: ../src/guestfs-actions.pod:4349 ../fish/guestfish-actions.pod:2871
11527 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11528 msgstr ""
11529
11530 # type: textblock
11531 #: ../src/guestfs-actions.pod:4351 ../fish/guestfish-actions.pod:2873
11532 msgid ""
11533 "Note that in the case of MBR partitioning, deleting an extended partition "
11534 "also deletes any logical partitions it contains."
11535 msgstr ""
11536
11537 # type: =head2
11538 #: ../src/guestfs-actions.pod:4359
11539 msgid "guestfs_part_disk"
11540 msgstr ""
11541
11542 # type: verbatim
11543 #: ../src/guestfs-actions.pod:4361
11544 #, no-wrap
11545 msgid ""
11546 " int\n"
11547 " guestfs_part_disk (guestfs_h *g,\n"
11548 "                    const char *device,\n"
11549 "                    const char *parttype);\n"
11550 "\n"
11551 msgstr ""
11552
11553 # type: textblock
11554 #: ../src/guestfs-actions.pod:4366
11555 msgid ""
11556 "This command is simply a combination of C<guestfs_part_init> followed by "
11557 "C<guestfs_part_add> to create a single primary partition covering the whole "
11558 "disk."
11559 msgstr ""
11560
11561 # type: textblock
11562 #: ../src/guestfs-actions.pod:4370
11563 msgid ""
11564 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11565 "possible values are described in C<guestfs_part_init>."
11566 msgstr ""
11567
11568 # type: =head2
11569 #: ../src/guestfs-actions.pod:4380
11570 msgid "guestfs_part_get_bootable"
11571 msgstr ""
11572
11573 # type: verbatim
11574 #: ../src/guestfs-actions.pod:4382
11575 #, no-wrap
11576 msgid ""
11577 " int\n"
11578 " guestfs_part_get_bootable (guestfs_h *g,\n"
11579 "                            const char *device,\n"
11580 "                            int partnum);\n"
11581 "\n"
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2895
11586 msgid ""
11587 "This command returns true if the partition C<partnum> on C<device> has the "
11588 "bootable flag set."
11589 msgstr ""
11590
11591 # type: textblock
11592 #: ../src/guestfs-actions.pod:4390
11593 msgid "See also C<guestfs_part_set_bootable>."
11594 msgstr ""
11595
11596 # type: =head2
11597 #: ../src/guestfs-actions.pod:4396
11598 msgid "guestfs_part_get_mbr_id"
11599 msgstr ""
11600
11601 # type: verbatim
11602 #: ../src/guestfs-actions.pod:4398
11603 #, no-wrap
11604 msgid ""
11605 " int\n"
11606 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11607 "                          const char *device,\n"
11608 "                          int partnum);\n"
11609 "\n"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2904
11614 msgid ""
11615 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11616 "partition C<partnum>."
11617 msgstr ""
11618
11619 # type: textblock
11620 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4582
11621 msgid ""
11622 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11623 "undefined results for other partition table types (see "
11624 "C<guestfs_part_get_parttype>)."
11625 msgstr ""
11626
11627 # type: =head2
11628 #: ../src/guestfs-actions.pod:4414
11629 msgid "guestfs_part_get_parttype"
11630 msgstr ""
11631
11632 # type: verbatim
11633 #: ../src/guestfs-actions.pod:4416
11634 #, no-wrap
11635 msgid ""
11636 " char *\n"
11637 " guestfs_part_get_parttype (guestfs_h *g,\n"
11638 "                            const char *device);\n"
11639 "\n"
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:2915
11644 msgid ""
11645 "This command examines the partition table on C<device> and returns the "
11646 "partition table type (format) being used."
11647 msgstr ""
11648
11649 # type: textblock
11650 #: ../src/guestfs-actions.pod:4423
11651 msgid ""
11652 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11653 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11654 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11655 msgstr ""
11656
11657 # type: =head2
11658 #: ../src/guestfs-actions.pod:4433
11659 msgid "guestfs_part_init"
11660 msgstr ""
11661
11662 # type: verbatim
11663 #: ../src/guestfs-actions.pod:4435
11664 #, no-wrap
11665 msgid ""
11666 " int\n"
11667 " guestfs_part_init (guestfs_h *g,\n"
11668 "                    const char *device,\n"
11669 "                    const char *parttype);\n"
11670 "\n"
11671 msgstr ""
11672
11673 # type: textblock
11674 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:2927
11675 msgid ""
11676 "This creates an empty partition table on C<device> of one of the partition "
11677 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11678 "(for large disks)."
11679 msgstr ""
11680
11681 # type: textblock
11682 #: ../src/guestfs-actions.pod:4444
11683 msgid ""
11684 "Initially there are no partitions.  Following this, you should call "
11685 "C<guestfs_part_add> for each partition required."
11686 msgstr ""
11687
11688 # type: textblock
11689 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2934
11690 msgid "Possible values for C<parttype> are:"
11691 msgstr ""
11692
11693 # type: =item
11694 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:2938
11695 msgid "B<efi> | B<gpt>"
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2940
11700 msgid "Intel EFI / GPT partition table."
11701 msgstr ""
11702
11703 # type: textblock
11704 #: ../src/guestfs-actions.pod:4455 ../fish/guestfish-actions.pod:2942
11705 msgid ""
11706 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11707 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11708 "the C<mbr> format."
11709 msgstr ""
11710
11711 # type: =item
11712 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2946
11713 msgid "B<mbr> | B<msdos>"
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2948
11718 msgid ""
11719 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11720 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11721 "TB.  For large disks we recommend using C<gpt>."
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:2955
11726 msgid ""
11727 "Other partition table types that may work but are not supported include:"
11728 msgstr ""
11729
11730 # type: =item
11731 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:2960
11732 msgid "B<aix>"
11733 msgstr ""
11734
11735 # type: textblock
11736 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:2962
11737 msgid "AIX disk labels."
11738 msgstr ""
11739
11740 # type: =item
11741 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:2964
11742 msgid "B<amiga> | B<rdb>"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2966
11747 msgid "Amiga \"Rigid Disk Block\" format."
11748 msgstr ""
11749
11750 # type: =item
11751 #: ../src/guestfs-actions.pod:4481 ../fish/guestfish-actions.pod:2968
11752 msgid "B<bsd>"
11753 msgstr ""
11754
11755 # type: textblock
11756 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:2970
11757 msgid "BSD disk labels."
11758 msgstr ""
11759
11760 # type: =item
11761 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:2972
11762 msgid "B<dasd>"
11763 msgstr ""
11764
11765 # type: textblock
11766 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:2974
11767 msgid "DASD, used on IBM mainframes."
11768 msgstr ""
11769
11770 # type: =item
11771 #: ../src/guestfs-actions.pod:4489 ../fish/guestfish-actions.pod:2976
11772 msgid "B<dvh>"
11773 msgstr ""
11774
11775 # type: textblock
11776 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:2978
11777 msgid "MIPS/SGI volumes."
11778 msgstr ""
11779
11780 # type: =item
11781 #: ../src/guestfs-actions.pod:4493 ../fish/guestfish-actions.pod:2980
11782 msgid "B<mac>"
11783 msgstr ""
11784
11785 # type: textblock
11786 #: ../src/guestfs-actions.pod:4495 ../fish/guestfish-actions.pod:2982
11787 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11788 msgstr ""
11789
11790 # type: =item
11791 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:2984
11792 msgid "B<pc98>"
11793 msgstr ""
11794
11795 # type: textblock
11796 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:2986
11797 msgid "NEC PC-98 format, common in Japan apparently."
11798 msgstr ""
11799
11800 # type: =item
11801 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:2988
11802 msgid "B<sun>"
11803 msgstr ""
11804
11805 # type: textblock
11806 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:2990
11807 msgid "Sun disk labels."
11808 msgstr ""
11809
11810 # type: =head2
11811 #: ../src/guestfs-actions.pod:4511
11812 msgid "guestfs_part_list"
11813 msgstr ""
11814
11815 # type: verbatim
11816 #: ../src/guestfs-actions.pod:4513
11817 #, no-wrap
11818 msgid ""
11819 " struct guestfs_partition_list *\n"
11820 " guestfs_part_list (guestfs_h *g,\n"
11821 "                    const char *device);\n"
11822 "\n"
11823 msgstr ""
11824
11825 # type: textblock
11826 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:2998
11827 msgid ""
11828 "This command parses the partition table on C<device> and returns the list of "
11829 "partitions found."
11830 msgstr ""
11831
11832 # type: textblock
11833 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3001
11834 msgid "The fields in the returned structure are:"
11835 msgstr ""
11836
11837 # type: =item
11838 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3005
11839 msgid "B<part_num>"
11840 msgstr ""
11841
11842 # type: textblock
11843 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3007
11844 msgid "Partition number, counting from 1."
11845 msgstr ""
11846
11847 # type: =item
11848 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3009
11849 msgid "B<part_start>"
11850 msgstr ""
11851
11852 # type: textblock
11853 #: ../src/guestfs-actions.pod:4530
11854 msgid ""
11855 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11856 "the device's sector size, see C<guestfs_blockdev_getss>."
11857 msgstr ""
11858
11859 # type: =item
11860 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3014
11861 msgid "B<part_end>"
11862 msgstr ""
11863
11864 # type: textblock
11865 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3016
11866 msgid "End of the partition in bytes."
11867 msgstr ""
11868
11869 # type: =item
11870 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3018
11871 msgid "B<part_size>"
11872 msgstr ""
11873
11874 # type: textblock
11875 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3020
11876 msgid "Size of the partition in bytes."
11877 msgstr ""
11878
11879 # type: textblock
11880 #: ../src/guestfs-actions.pod:4543
11881 msgid ""
11882 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
11883 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
11884 "use>."
11885 msgstr ""
11886
11887 # type: =head2
11888 #: ../src/guestfs-actions.pod:4549
11889 msgid "guestfs_part_set_bootable"
11890 msgstr ""
11891
11892 # type: verbatim
11893 #: ../src/guestfs-actions.pod:4551
11894 #, no-wrap
11895 msgid ""
11896 " int\n"
11897 " guestfs_part_set_bootable (guestfs_h *g,\n"
11898 "                            const char *device,\n"
11899 "                            int partnum,\n"
11900 "                            int bootable);\n"
11901 "\n"
11902 msgstr ""
11903
11904 # type: textblock
11905 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3028
11906 msgid ""
11907 "This sets the bootable flag on partition numbered C<partnum> on device "
11908 "C<device>.  Note that partitions are numbered from 1."
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3031
11913 msgid ""
11914 "The bootable flag is used by some operating systems (notably Windows) to "
11915 "determine which partition to boot from.  It is by no means universally "
11916 "recognized."
11917 msgstr ""
11918
11919 # type: =head2
11920 #: ../src/guestfs-actions.pod:4568
11921 msgid "guestfs_part_set_mbr_id"
11922 msgstr ""
11923
11924 # type: verbatim
11925 #: ../src/guestfs-actions.pod:4570
11926 #, no-wrap
11927 msgid ""
11928 " int\n"
11929 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11930 "                          const char *device,\n"
11931 "                          int partnum,\n"
11932 "                          int idbyte);\n"
11933 "\n"
11934 msgstr ""
11935
11936 # type: textblock
11937 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3039
11938 msgid ""
11939 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11940 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11941 "documentation are in fact hexadecimal numbers, but usually documented "
11942 "without any leading \"0x\" which might be confusing."
11943 msgstr ""
11944
11945 # type: =head2
11946 #: ../src/guestfs-actions.pod:4590
11947 msgid "guestfs_part_set_name"
11948 msgstr ""
11949
11950 # type: verbatim
11951 #: ../src/guestfs-actions.pod:4592
11952 #, no-wrap
11953 msgid ""
11954 " int\n"
11955 " guestfs_part_set_name (guestfs_h *g,\n"
11956 "                        const char *device,\n"
11957 "                        int partnum,\n"
11958 "                        const char *name);\n"
11959 "\n"
11960 msgstr ""
11961
11962 # type: textblock
11963 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3053
11964 msgid ""
11965 "This sets the partition name on partition numbered C<partnum> on device "
11966 "C<device>.  Note that partitions are numbered from 1."
11967 msgstr ""
11968
11969 # type: textblock
11970 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3056
11971 msgid ""
11972 "The partition name can only be set on certain types of partition table.  "
11973 "This works on C<gpt> but not on C<mbr> partitions."
11974 msgstr ""
11975
11976 # type: =head2
11977 #: ../src/guestfs-actions.pod:4608
11978 msgid "guestfs_part_to_dev"
11979 msgstr ""
11980
11981 # type: verbatim
11982 #: ../src/guestfs-actions.pod:4610
11983 #, no-wrap
11984 msgid ""
11985 " char *\n"
11986 " guestfs_part_to_dev (guestfs_h *g,\n"
11987 "                      const char *partition);\n"
11988 "\n"
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3063
11993 msgid ""
11994 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11995 "partition number, returning the device name (eg. \"/dev/sdb\")."
11996 msgstr ""
11997
11998 # type: textblock
11999 #: ../src/guestfs-actions.pod:4618
12000 msgid ""
12001 "The named partition must exist, for example as a string returned from "
12002 "C<guestfs_list_partitions>."
12003 msgstr ""
12004
12005 # type: =head2
12006 #: ../src/guestfs-actions.pod:4626
12007 msgid "guestfs_ping_daemon"
12008 msgstr ""
12009
12010 # type: verbatim
12011 #: ../src/guestfs-actions.pod:4628
12012 #, no-wrap
12013 msgid ""
12014 " int\n"
12015 " guestfs_ping_daemon (guestfs_h *g);\n"
12016 "\n"
12017 msgstr ""
12018
12019 # type: textblock
12020 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3074
12021 msgid ""
12022 "This is a test probe into the guestfs daemon running inside the qemu "
12023 "subprocess.  Calling this function checks that the daemon responds to the "
12024 "ping message, without affecting the daemon or attached block device(s) in "
12025 "any other way."
12026 msgstr ""
12027
12028 # type: =head2
12029 #: ../src/guestfs-actions.pod:4640
12030 msgid "guestfs_pread"
12031 msgstr ""
12032
12033 # type: verbatim
12034 #: ../src/guestfs-actions.pod:4642
12035 #, no-wrap
12036 msgid ""
12037 " char *\n"
12038 " guestfs_pread (guestfs_h *g,\n"
12039 "                const char *path,\n"
12040 "                int count,\n"
12041 "                int64_t offset,\n"
12042 "                size_t *size_r);\n"
12043 "\n"
12044 msgstr ""
12045
12046 # type: textblock
12047 #: ../src/guestfs-actions.pod:4649 ../fish/guestfish-actions.pod:3083
12048 msgid ""
12049 "This command lets you read part of a file.  It reads C<count> bytes of the "
12050 "file, starting at C<offset>, from file C<path>."
12051 msgstr ""
12052
12053 # type: textblock
12054 #: ../src/guestfs-actions.pod:4652 ../src/guestfs-actions.pod:4678
12055 #: ../fish/guestfish-actions.pod:3086 ../fish/guestfish-actions.pod:3101
12056 msgid ""
12057 "This may read fewer bytes than requested.  For further details see the "
12058 "L<pread(2)> system call."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4655
12063 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12064 msgstr ""
12065
12066 # type: =head2
12067 #: ../src/guestfs-actions.pod:4666
12068 msgid "guestfs_pread_device"
12069 msgstr ""
12070
12071 # type: verbatim
12072 #: ../src/guestfs-actions.pod:4668
12073 #, no-wrap
12074 msgid ""
12075 " char *\n"
12076 " guestfs_pread_device (guestfs_h *g,\n"
12077 "                       const char *device,\n"
12078 "                       int count,\n"
12079 "                       int64_t offset,\n"
12080 "                       size_t *size_r);\n"
12081 "\n"
12082 msgstr ""
12083
12084 # type: textblock
12085 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3098
12086 msgid ""
12087 "This command lets you read part of a file.  It reads C<count> bytes of "
12088 "C<device>, starting at C<offset>."
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4681
12093 msgid "See also C<guestfs_pread>."
12094 msgstr ""
12095
12096 # type: textblock
12097 #: ../src/guestfs-actions.pod:4690
12098 msgid "(Added in 1.5.21)"
12099 msgstr ""
12100
12101 # type: =head2
12102 #: ../src/guestfs-actions.pod:4692
12103 msgid "guestfs_pvcreate"
12104 msgstr ""
12105
12106 # type: verbatim
12107 #: ../src/guestfs-actions.pod:4694
12108 #, no-wrap
12109 msgid ""
12110 " int\n"
12111 " guestfs_pvcreate (guestfs_h *g,\n"
12112 "                   const char *device);\n"
12113 "\n"
12114 msgstr ""
12115
12116 # type: textblock
12117 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3113
12118 msgid ""
12119 "This creates an LVM physical volume on the named C<device>, where C<device> "
12120 "should usually be a partition name such as C</dev/sda1>."
12121 msgstr ""
12122
12123 # type: =head2
12124 #: ../src/guestfs-actions.pod:4706
12125 msgid "guestfs_pvremove"
12126 msgstr ""
12127
12128 # type: verbatim
12129 #: ../src/guestfs-actions.pod:4708
12130 #, no-wrap
12131 msgid ""
12132 " int\n"
12133 " guestfs_pvremove (guestfs_h *g,\n"
12134 "                   const char *device);\n"
12135 "\n"
12136 msgstr ""
12137
12138 # type: textblock
12139 #: ../src/guestfs-actions.pod:4712 ../fish/guestfish-actions.pod:3121
12140 msgid ""
12141 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12142 "it."
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4715 ../fish/guestfish-actions.pod:3124
12147 msgid ""
12148 "The implementation uses the C<pvremove> command which refuses to wipe "
12149 "physical volumes that contain any volume groups, so you have to remove those "
12150 "first."
12151 msgstr ""
12152
12153 # type: =head2
12154 #: ../src/guestfs-actions.pod:4723
12155 msgid "guestfs_pvresize"
12156 msgstr ""
12157
12158 # type: verbatim
12159 #: ../src/guestfs-actions.pod:4725
12160 #, no-wrap
12161 msgid ""
12162 " int\n"
12163 " guestfs_pvresize (guestfs_h *g,\n"
12164 "                   const char *device);\n"
12165 "\n"
12166 msgstr ""
12167
12168 # type: textblock
12169 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3132
12170 msgid ""
12171 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12172 "the new size of the underlying device."
12173 msgstr ""
12174
12175 # type: =head2
12176 #: ../src/guestfs-actions.pod:4736
12177 msgid "guestfs_pvresize_size"
12178 msgstr ""
12179
12180 # type: verbatim
12181 #: ../src/guestfs-actions.pod:4738
12182 #, no-wrap
12183 msgid ""
12184 " int\n"
12185 " guestfs_pvresize_size (guestfs_h *g,\n"
12186 "                        const char *device,\n"
12187 "                        int64_t size);\n"
12188 "\n"
12189 msgstr ""
12190
12191 # type: textblock
12192 #: ../src/guestfs-actions.pod:4743
12193 msgid ""
12194 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12195 "specify the new size (in bytes) explicitly."
12196 msgstr ""
12197
12198 # type: =head2
12199 #: ../src/guestfs-actions.pod:4750
12200 msgid "guestfs_pvs"
12201 msgstr ""
12202
12203 # type: verbatim
12204 #: ../src/guestfs-actions.pod:4752
12205 #, no-wrap
12206 msgid ""
12207 " char **\n"
12208 " guestfs_pvs (guestfs_h *g);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3146
12214 msgid ""
12215 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12216 "(8)> command."
12217 msgstr ""
12218
12219 # type: textblock
12220 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3149
12221 msgid ""
12222 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12223 "sda2>)."
12224 msgstr ""
12225
12226 # type: textblock
12227 #: ../src/guestfs-actions.pod:4761
12228 msgid "See also C<guestfs_pvs_full>."
12229 msgstr ""
12230
12231 # type: =head2
12232 #: ../src/guestfs-actions.pod:4769
12233 msgid "guestfs_pvs_full"
12234 msgstr ""
12235
12236 # type: verbatim
12237 #: ../src/guestfs-actions.pod:4771
12238 #, no-wrap
12239 msgid ""
12240 " struct guestfs_lvm_pv_list *\n"
12241 " guestfs_pvs_full (guestfs_h *g);\n"
12242 "\n"
12243 msgstr ""
12244
12245 # type: textblock
12246 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3158
12247 msgid ""
12248 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12249 "(8)> command.  The \"full\" version includes all fields."
12250 msgstr ""
12251
12252 # type: textblock
12253 #: ../src/guestfs-actions.pod:4777
12254 msgid ""
12255 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12256 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12257 msgstr ""
12258
12259 # type: =head2
12260 #: ../src/guestfs-actions.pod:4783
12261 msgid "guestfs_pvuuid"
12262 msgstr ""
12263
12264 # type: verbatim
12265 #: ../src/guestfs-actions.pod:4785
12266 #, no-wrap
12267 msgid ""
12268 " char *\n"
12269 " guestfs_pvuuid (guestfs_h *g,\n"
12270 "                 const char *device);\n"
12271 "\n"
12272 msgstr ""
12273
12274 # type: textblock
12275 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3165
12276 msgid "This command returns the UUID of the LVM PV C<device>."
12277 msgstr ""
12278
12279 # type: =head2
12280 #: ../src/guestfs-actions.pod:4796
12281 msgid "guestfs_pwrite"
12282 msgstr ""
12283
12284 # type: verbatim
12285 #: ../src/guestfs-actions.pod:4798
12286 #, no-wrap
12287 msgid ""
12288 " int\n"
12289 " guestfs_pwrite (guestfs_h *g,\n"
12290 "                 const char *path,\n"
12291 "                 const char *content,\n"
12292 "                 size_t content_size,\n"
12293 "                 int64_t offset);\n"
12294 "\n"
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4805 ../fish/guestfish-actions.pod:3171
12299 msgid ""
12300 "This command writes to part of a file.  It writes the data buffer C<content> "
12301 "to the file C<path> starting at offset C<offset>."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3174
12306 msgid ""
12307 "This command implements the L<pwrite(2)> system call, and like that system "
12308 "call it may not write the full data requested.  The return value is the "
12309 "number of bytes that were actually written to the file.  This could even be "
12310 "0, although short writes are unlikely for regular files in ordinary "
12311 "circumstances."
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4814
12316 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12317 msgstr ""
12318
12319 # type: =head2
12320 #: ../src/guestfs-actions.pod:4823
12321 msgid "guestfs_pwrite_device"
12322 msgstr ""
12323
12324 # type: verbatim
12325 #: ../src/guestfs-actions.pod:4825
12326 #, no-wrap
12327 msgid ""
12328 " int\n"
12329 " guestfs_pwrite_device (guestfs_h *g,\n"
12330 "                        const char *device,\n"
12331 "                        const char *content,\n"
12332 "                        size_t content_size,\n"
12333 "                        int64_t offset);\n"
12334 "\n"
12335 msgstr ""
12336
12337 # type: textblock
12338 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3189
12339 msgid ""
12340 "This command writes to part of a device.  It writes the data buffer "
12341 "C<content> to C<device> starting at offset C<offset>."
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3192
12346 msgid ""
12347 "This command implements the L<pwrite(2)> system call, and like that system "
12348 "call it may not write the full data requested (although short writes to disk "
12349 "devices and partitions are probably impossible with standard Linux kernels)."
12350 msgstr ""
12351
12352 # type: textblock
12353 #: ../src/guestfs-actions.pod:4840
12354 msgid "See also C<guestfs_pwrite>."
12355 msgstr ""
12356
12357 # type: textblock
12358 #: ../src/guestfs-actions.pod:4847
12359 msgid "(Added in 1.5.20)"
12360 msgstr ""
12361
12362 # type: =head2
12363 #: ../src/guestfs-actions.pod:4849
12364 msgid "guestfs_read_file"
12365 msgstr ""
12366
12367 # type: verbatim
12368 #: ../src/guestfs-actions.pod:4851
12369 #, no-wrap
12370 msgid ""
12371 " char *\n"
12372 " guestfs_read_file (guestfs_h *g,\n"
12373 "                    const char *path,\n"
12374 "                    size_t *size_r);\n"
12375 "\n"
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3206
12380 msgid "This calls returns the contents of the file C<path> as a buffer."
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4859
12385 msgid ""
12386 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12387 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12388 "function is limited in the total size of file that can be handled."
12389 msgstr ""
12390
12391 # type: textblock
12392 #: ../src/guestfs-actions.pod:4871
12393 msgid "(Added in 1.0.63)"
12394 msgstr ""
12395
12396 # type: =head2
12397 #: ../src/guestfs-actions.pod:4873
12398 msgid "guestfs_read_lines"
12399 msgstr ""
12400
12401 # type: verbatim
12402 #: ../src/guestfs-actions.pod:4875
12403 #, no-wrap
12404 msgid ""
12405 " char **\n"
12406 " guestfs_read_lines (guestfs_h *g,\n"
12407 "                     const char *path);\n"
12408 "\n"
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:4881 ../fish/guestfish-actions.pod:3223
12413 msgid ""
12414 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12415 "C<CRLF> character sequences are I<not> returned."
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4884
12420 msgid ""
12421 "Note that this function cannot correctly handle binary files (specifically, "
12422 "files containing C<\\0> character which is treated as end of line).  For "
12423 "those you need to use the C<guestfs_read_file> function which has a more "
12424 "complex interface."
12425 msgstr ""
12426
12427 # type: =head2
12428 #: ../src/guestfs-actions.pod:4895
12429 msgid "guestfs_readdir"
12430 msgstr ""
12431
12432 # type: verbatim
12433 #: ../src/guestfs-actions.pod:4897
12434 #, no-wrap
12435 msgid ""
12436 " struct guestfs_dirent_list *\n"
12437 " guestfs_readdir (guestfs_h *g,\n"
12438 "                  const char *dir);\n"
12439 "\n"
12440 msgstr ""
12441
12442 # type: textblock
12443 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3235
12444 msgid "This returns the list of directory entries in directory C<dir>."
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3237
12449 msgid ""
12450 "All entries in the directory are returned, including C<.> and C<..>.  The "
12451 "entries are I<not> sorted, but returned in the same order as the underlying "
12452 "filesystem."
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3241
12457 msgid ""
12458 "Also this call returns basic file type information about each file.  The "
12459 "C<ftyp> field will contain one of the following characters:"
12460 msgstr ""
12461
12462 # type: =item
12463 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3246
12464 msgid "'b'"
12465 msgstr ""
12466
12467 # type: textblock
12468 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3248
12469 msgid "Block special"
12470 msgstr ""
12471
12472 # type: =item
12473 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3250
12474 msgid "'c'"
12475 msgstr ""
12476
12477 # type: textblock
12478 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3252
12479 msgid "Char special"
12480 msgstr ""
12481
12482 # type: =item
12483 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3254
12484 msgid "'d'"
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3256
12489 msgid "Directory"
12490 msgstr ""
12491
12492 # type: =item
12493 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3258
12494 msgid "'f'"
12495 msgstr ""
12496
12497 # type: textblock
12498 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3260
12499 msgid "FIFO (named pipe)"
12500 msgstr ""
12501
12502 # type: =item
12503 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3262
12504 msgid "'l'"
12505 msgstr ""
12506
12507 # type: textblock
12508 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3264
12509 msgid "Symbolic link"
12510 msgstr ""
12511
12512 # type: =item
12513 #: ../src/guestfs-actions.pod:4932 ../fish/guestfish-actions.pod:3266
12514 msgid "'r'"
12515 msgstr ""
12516
12517 # type: textblock
12518 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3268
12519 msgid "Regular file"
12520 msgstr ""
12521
12522 # type: =item
12523 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3270
12524 msgid "'s'"
12525 msgstr ""
12526
12527 # type: textblock
12528 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3272
12529 msgid "Socket"
12530 msgstr ""
12531
12532 # type: =item
12533 #: ../src/guestfs-actions.pod:4940 ../fish/guestfish-actions.pod:3274
12534 msgid "'u'"
12535 msgstr ""
12536
12537 # type: textblock
12538 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3276
12539 msgid "Unknown file type"
12540 msgstr ""
12541
12542 # type: =item
12543 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3278
12544 msgid "'?'"
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3280
12549 msgid ""
12550 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12551 msgstr ""
12552
12553 # type: textblock
12554 #: ../src/guestfs-actions.pod:4951
12555 msgid ""
12556 "This function is primarily intended for use by programs.  To get a simple "
12557 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12558 "consumption, use C<guestfs_ll>."
12559 msgstr ""
12560
12561 # type: textblock
12562 #: ../src/guestfs-actions.pod:4955
12563 msgid ""
12564 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12565 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
12566 msgstr ""
12567
12568 # type: =head2
12569 #: ../src/guestfs-actions.pod:4961
12570 msgid "guestfs_readlink"
12571 msgstr ""
12572
12573 # type: verbatim
12574 #: ../src/guestfs-actions.pod:4963
12575 #, no-wrap
12576 msgid ""
12577 " char *\n"
12578 " guestfs_readlink (guestfs_h *g,\n"
12579 "                   const char *path);\n"
12580 "\n"
12581 msgstr ""
12582
12583 # type: textblock
12584 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3293
12585 msgid "This command reads the target of a symbolic link."
12586 msgstr ""
12587
12588 # type: =head2
12589 #: ../src/guestfs-actions.pod:4974
12590 msgid "guestfs_readlinklist"
12591 msgstr ""
12592
12593 # type: verbatim
12594 #: ../src/guestfs-actions.pod:4976
12595 #, no-wrap
12596 msgid ""
12597 " char **\n"
12598 " guestfs_readlinklist (guestfs_h *g,\n"
12599 "                       const char *path,\n"
12600 "                       char *const *names);\n"
12601 "\n"
12602 msgstr ""
12603
12604 # type: textblock
12605 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3299
12606 msgid ""
12607 "This call allows you to do a C<readlink> operation on multiple files, where "
12608 "all files are in the directory C<path>.  C<names> is the list of files from "
12609 "this directory."
12610 msgstr ""
12611
12612 # type: textblock
12613 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3303
12614 msgid ""
12615 "On return you get a list of strings, with a one-to-one correspondence to the "
12616 "C<names> list.  Each string is the value of the symbolic link."
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:4989 ../fish/guestfish-actions.pod:3307
12621 msgid ""
12622 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12623 "result string is the empty string C<\"\">.  However the whole operation is "
12624 "completed even if there were C<readlink(2)> errors, and so you can call this "
12625 "function with names where you don't know if they are symbolic links already "
12626 "(albeit slightly less efficient)."
12627 msgstr ""
12628
12629 # type: textblock
12630 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3314
12631 msgid ""
12632 "This call is intended for programs that want to efficiently list a directory "
12633 "contents without making many round-trips.  Very long directory listings "
12634 "might cause the protocol message size to be exceeded, causing this call to "
12635 "fail.  The caller must split up such requests into smaller groups of names."
12636 msgstr ""
12637
12638 # type: =head2
12639 #: ../src/guestfs-actions.pod:5009
12640 msgid "guestfs_realpath"
12641 msgstr ""
12642
12643 # type: verbatim
12644 #: ../src/guestfs-actions.pod:5011
12645 #, no-wrap
12646 msgid ""
12647 " char *\n"
12648 " guestfs_realpath (guestfs_h *g,\n"
12649 "                   const char *path);\n"
12650 "\n"
12651 msgstr ""
12652
12653 # type: textblock
12654 #: ../src/guestfs-actions.pod:5015 ../fish/guestfish-actions.pod:3325
12655 msgid ""
12656 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12657 "has no C<.>, C<..> or symbolic link path elements."
12658 msgstr ""
12659
12660 # type: =head2
12661 #: ../src/guestfs-actions.pod:5023
12662 msgid "guestfs_removexattr"
12663 msgstr ""
12664
12665 # type: verbatim
12666 #: ../src/guestfs-actions.pod:5025
12667 #, no-wrap
12668 msgid ""
12669 " int\n"
12670 " guestfs_removexattr (guestfs_h *g,\n"
12671 "                      const char *xattr,\n"
12672 "                      const char *path);\n"
12673 "\n"
12674 msgstr ""
12675
12676 # type: textblock
12677 #: ../src/guestfs-actions.pod:5030 ../fish/guestfish-actions.pod:3332
12678 msgid ""
12679 "This call removes the extended attribute named C<xattr> of the file C<path>."
12680 msgstr ""
12681
12682 # type: textblock
12683 #: ../src/guestfs-actions.pod:5033
12684 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12685 msgstr ""
12686
12687 # type: =head2
12688 #: ../src/guestfs-actions.pod:5039
12689 msgid "guestfs_resize2fs"
12690 msgstr ""
12691
12692 # type: verbatim
12693 #: ../src/guestfs-actions.pod:5041
12694 #, no-wrap
12695 msgid ""
12696 " int\n"
12697 " guestfs_resize2fs (guestfs_h *g,\n"
12698 "                    const char *device);\n"
12699 "\n"
12700 msgstr ""
12701
12702 # type: textblock
12703 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3341
12704 msgid ""
12705 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12706 "underlying device."
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:5048
12711 msgid ""
12712 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12713 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12714 "sometimes gives an error about this and sometimes not.  In any case, it is "
12715 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12716 msgstr ""
12717
12718 # type: =head2
12719 #: ../src/guestfs-actions.pod:5058
12720 msgid "guestfs_resize2fs_size"
12721 msgstr ""
12722
12723 # type: verbatim
12724 #: ../src/guestfs-actions.pod:5060
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_resize2fs_size (guestfs_h *g,\n"
12729 "                         const char *device,\n"
12730 "                         int64_t size);\n"
12731 "\n"
12732 msgstr ""
12733
12734 # type: textblock
12735 #: ../src/guestfs-actions.pod:5065
12736 msgid ""
12737 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12738 "to specify the new size (in bytes) explicitly."
12739 msgstr ""
12740
12741 # type: =head2
12742 #: ../src/guestfs-actions.pod:5072
12743 msgid "guestfs_rm"
12744 msgstr ""
12745
12746 # type: verbatim
12747 #: ../src/guestfs-actions.pod:5074
12748 #, no-wrap
12749 msgid ""
12750 " int\n"
12751 " guestfs_rm (guestfs_h *g,\n"
12752 "             const char *path);\n"
12753 "\n"
12754 msgstr ""
12755
12756 # type: textblock
12757 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3361
12758 msgid "Remove the single file C<path>."
12759 msgstr ""
12760
12761 # type: =head2
12762 #: ../src/guestfs-actions.pod:5084
12763 msgid "guestfs_rm_rf"
12764 msgstr ""
12765
12766 # type: verbatim
12767 #: ../src/guestfs-actions.pod:5086
12768 #, no-wrap
12769 msgid ""
12770 " int\n"
12771 " guestfs_rm_rf (guestfs_h *g,\n"
12772 "                const char *path);\n"
12773 "\n"
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3367
12778 msgid ""
12779 "Remove the file or directory C<path>, recursively removing the contents if "
12780 "its a directory.  This is like the C<rm -rf> shell command."
12781 msgstr ""
12782
12783 # type: =head2
12784 #: ../src/guestfs-actions.pod:5098
12785 msgid "guestfs_rmdir"
12786 msgstr ""
12787
12788 # type: verbatim
12789 #: ../src/guestfs-actions.pod:5100
12790 #, no-wrap
12791 msgid ""
12792 " int\n"
12793 " guestfs_rmdir (guestfs_h *g,\n"
12794 "                const char *path);\n"
12795 "\n"
12796 msgstr ""
12797
12798 # type: textblock
12799 #: ../src/guestfs-actions.pod:5104 ../fish/guestfish-actions.pod:3375
12800 msgid "Remove the single directory C<path>."
12801 msgstr ""
12802
12803 # type: =head2
12804 #: ../src/guestfs-actions.pod:5110
12805 msgid "guestfs_rmmountpoint"
12806 msgstr ""
12807
12808 # type: verbatim
12809 #: ../src/guestfs-actions.pod:5112
12810 #, no-wrap
12811 msgid ""
12812 " int\n"
12813 " guestfs_rmmountpoint (guestfs_h *g,\n"
12814 "                       const char *exemptpath);\n"
12815 "\n"
12816 msgstr ""
12817
12818 # type: textblock
12819 #: ../src/guestfs-actions.pod:5116
12820 msgid ""
12821 "This calls removes a mountpoint that was previously created with "
12822 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12823 msgstr ""
12824
12825 # type: =head2
12826 #: ../src/guestfs-actions.pod:5124
12827 msgid "guestfs_scrub_device"
12828 msgstr ""
12829
12830 # type: verbatim
12831 #: ../src/guestfs-actions.pod:5126
12832 #, no-wrap
12833 msgid ""
12834 " int\n"
12835 " guestfs_scrub_device (guestfs_h *g,\n"
12836 "                       const char *device);\n"
12837 "\n"
12838 msgstr ""
12839
12840 # type: textblock
12841 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3389
12842 msgid ""
12843 "This command writes patterns over C<device> to make data retrieval more "
12844 "difficult."
12845 msgstr ""
12846
12847 # type: textblock
12848 #: ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5154
12849 #: ../src/guestfs-actions.pod:5173 ../fish/guestfish-actions.pod:3392
12850 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3420
12851 msgid ""
12852 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12853 "more details."
12854 msgstr ""
12855
12856 # type: textblock
12857 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5159
12858 #: ../src/guestfs-actions.pod:5178
12859 msgid "(Added in 1.0.52)"
12860 msgstr ""
12861
12862 # type: =head2
12863 #: ../src/guestfs-actions.pod:5143
12864 msgid "guestfs_scrub_file"
12865 msgstr ""
12866
12867 # type: verbatim
12868 #: ../src/guestfs-actions.pod:5145
12869 #, no-wrap
12870 msgid ""
12871 " int\n"
12872 " guestfs_scrub_file (guestfs_h *g,\n"
12873 "                     const char *file);\n"
12874 "\n"
12875 msgstr ""
12876
12877 # type: textblock
12878 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3402
12879 msgid ""
12880 "This command writes patterns over a file to make data retrieval more "
12881 "difficult."
12882 msgstr ""
12883
12884 # type: textblock
12885 #: ../src/guestfs-actions.pod:5152 ../fish/guestfish-actions.pod:3405
12886 msgid "The file is I<removed> after scrubbing."
12887 msgstr ""
12888
12889 # type: =head2
12890 #: ../src/guestfs-actions.pod:5161
12891 msgid "guestfs_scrub_freespace"
12892 msgstr ""
12893
12894 # type: verbatim
12895 #: ../src/guestfs-actions.pod:5163
12896 #, no-wrap
12897 msgid ""
12898 " int\n"
12899 " guestfs_scrub_freespace (guestfs_h *g,\n"
12900 "                          const char *dir);\n"
12901 "\n"
12902 msgstr ""
12903
12904 # type: textblock
12905 #: ../src/guestfs-actions.pod:5167
12906 msgid ""
12907 "This command creates the directory C<dir> and then fills it with files until "
12908 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12909 "and deletes them.  The intention is to scrub any free space on the partition "
12910 "containing C<dir>."
12911 msgstr ""
12912
12913 # type: =head2
12914 #: ../src/guestfs-actions.pod:5180
12915 msgid "guestfs_set_append"
12916 msgstr ""
12917
12918 # type: verbatim
12919 #: ../src/guestfs-actions.pod:5182
12920 #, no-wrap
12921 msgid ""
12922 " int\n"
12923 " guestfs_set_append (guestfs_h *g,\n"
12924 "                     const char *append);\n"
12925 "\n"
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3429
12930 msgid ""
12931 "This function is used to add additional options to the guest kernel command "
12932 "line."
12933 msgstr ""
12934
12935 # type: textblock
12936 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3432
12937 msgid ""
12938 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12939 "environment variable."
12940 msgstr ""
12941
12942 # type: textblock
12943 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3435
12944 msgid ""
12945 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12946 "(libguestfs always adds a few of its own)."
12947 msgstr ""
12948
12949 # type: =head2
12950 #: ../src/guestfs-actions.pod:5199
12951 msgid "guestfs_set_autosync"
12952 msgstr ""
12953
12954 # type: verbatim
12955 #: ../src/guestfs-actions.pod:5201
12956 #, no-wrap
12957 msgid ""
12958 " int\n"
12959 " guestfs_set_autosync (guestfs_h *g,\n"
12960 "                       int autosync);\n"
12961 "\n"
12962 msgstr ""
12963
12964 # type: textblock
12965 #: ../src/guestfs-actions.pod:5205
12966 msgid ""
12967 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12968 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12969 "the handle is closed (also if the program exits without closing handles)."
12970 msgstr ""
12971
12972 # type: textblock
12973 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:3449
12974 msgid ""
12975 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12976 "disabled by default)."
12977 msgstr ""
12978
12979 # type: =head2
12980 #: ../src/guestfs-actions.pod:5217
12981 msgid "guestfs_set_direct"
12982 msgstr ""
12983
12984 # type: verbatim
12985 #: ../src/guestfs-actions.pod:5219
12986 #, no-wrap
12987 msgid ""
12988 " int\n"
12989 " guestfs_set_direct (guestfs_h *g,\n"
12990 "                     int direct);\n"
12991 "\n"
12992 msgstr ""
12993
12994 # type: textblock
12995 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3458
12996 msgid ""
12997 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12998 "passed directly through to the appliance once it is launched."
12999 msgstr ""
13000
13001 # type: textblock
13002 #: ../src/guestfs-actions.pod:5227
13003 msgid ""
13004 "One consequence of this is that log messages aren't caught by the library "
13005 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13006 "stdout."
13007 msgstr ""
13008
13009 # type: textblock
13010 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:3466
13011 msgid "You probably don't want to use this unless you know what you are doing."
13012 msgstr ""
13013
13014 # type: textblock
13015 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3469
13016 msgid "The default is disabled."
13017 msgstr ""
13018
13019 # type: =head2
13020 #: ../src/guestfs-actions.pod:5240
13021 msgid "guestfs_set_e2label"
13022 msgstr ""
13023
13024 # type: verbatim
13025 #: ../src/guestfs-actions.pod:5242
13026 #, no-wrap
13027 msgid ""
13028 " int\n"
13029 " guestfs_set_e2label (guestfs_h *g,\n"
13030 "                      const char *device,\n"
13031 "                      const char *label);\n"
13032 "\n"
13033 msgstr ""
13034
13035 # type: textblock
13036 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3475
13037 msgid ""
13038 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13039 "C<label>.  Filesystem labels are limited to 16 characters."
13040 msgstr ""
13041
13042 # type: textblock
13043 #: ../src/guestfs-actions.pod:5251
13044 msgid ""
13045 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13046 "the existing label on a filesystem."
13047 msgstr ""
13048
13049 # type: =head2
13050 #: ../src/guestfs-actions.pod:5258
13051 msgid "guestfs_set_e2uuid"
13052 msgstr ""
13053
13054 # type: verbatim
13055 #: ../src/guestfs-actions.pod:5260
13056 #, no-wrap
13057 msgid ""
13058 " int\n"
13059 " guestfs_set_e2uuid (guestfs_h *g,\n"
13060 "                     const char *device,\n"
13061 "                     const char *uuid);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3486
13067 msgid ""
13068 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13069 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13070 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13071 msgstr ""
13072
13073 # type: textblock
13074 #: ../src/guestfs-actions.pod:5270
13075 msgid ""
13076 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13077 "the existing UUID of a filesystem."
13078 msgstr ""
13079
13080 # type: =head2
13081 #: ../src/guestfs-actions.pod:5277
13082 msgid "guestfs_set_memsize"
13083 msgstr ""
13084
13085 # type: verbatim
13086 #: ../src/guestfs-actions.pod:5279
13087 #, no-wrap
13088 msgid ""
13089 " int\n"
13090 " guestfs_set_memsize (guestfs_h *g,\n"
13091 "                      int memsize);\n"
13092 "\n"
13093 msgstr ""
13094
13095 # type: textblock
13096 #: ../src/guestfs-actions.pod:5283
13097 msgid ""
13098 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13099 "This only has any effect if called before C<guestfs_launch>."
13100 msgstr ""
13101
13102 # type: textblock
13103 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3504
13104 msgid ""
13105 "You can also change this by setting the environment variable "
13106 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13107 msgstr ""
13108
13109 # type: =head2
13110 #: ../src/guestfs-actions.pod:5298
13111 msgid "guestfs_set_network"
13112 msgstr ""
13113
13114 # type: verbatim
13115 #: ../src/guestfs-actions.pod:5300
13116 #, no-wrap
13117 msgid ""
13118 " int\n"
13119 " guestfs_set_network (guestfs_h *g,\n"
13120 "                      int network);\n"
13121 "\n"
13122 msgstr ""
13123
13124 # type: textblock
13125 #: ../src/guestfs-actions.pod:5304 ../fish/guestfish-actions.pod:3517
13126 msgid ""
13127 "If C<network> is true, then the network is enabled in the libguestfs "
13128 "appliance.  The default is false."
13129 msgstr ""
13130
13131 # type: textblock
13132 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:3520
13133 msgid ""
13134 "This affects whether commands are able to access the network (see L<guestfs"
13135 "(3)/RUNNING COMMANDS>)."
13136 msgstr ""
13137
13138 # type: textblock
13139 #: ../src/guestfs-actions.pod:5310
13140 msgid ""
13141 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13142 "effect."
13143 msgstr ""
13144
13145 # type: =head2
13146 #: ../src/guestfs-actions.pod:5317
13147 msgid "guestfs_set_path"
13148 msgstr ""
13149
13150 # type: verbatim
13151 #: ../src/guestfs-actions.pod:5319
13152 #, no-wrap
13153 msgid ""
13154 " int\n"
13155 " guestfs_set_path (guestfs_h *g,\n"
13156 "                   const char *searchpath);\n"
13157 "\n"
13158 msgstr ""
13159
13160 # type: textblock
13161 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3532
13162 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13163 msgstr ""
13164
13165 # type: textblock
13166 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3534
13167 msgid ""
13168 "The default is C<$libdir/guestfs> unless overridden by setting "
13169 "C<LIBGUESTFS_PATH> environment variable."
13170 msgstr ""
13171
13172 # type: textblock
13173 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3537
13174 msgid "Setting C<path> to C<NULL> restores the default path."
13175 msgstr ""
13176
13177 # type: =head2
13178 #: ../src/guestfs-actions.pod:5334
13179 msgid "guestfs_set_qemu"
13180 msgstr ""
13181
13182 # type: verbatim
13183 #: ../src/guestfs-actions.pod:5336
13184 #, no-wrap
13185 msgid ""
13186 " int\n"
13187 " guestfs_set_qemu (guestfs_h *g,\n"
13188 "                   const char *qemu);\n"
13189 "\n"
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:3545
13194 msgid "Set the qemu binary that we will use."
13195 msgstr ""
13196
13197 # type: textblock
13198 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3547
13199 msgid ""
13200 "The default is chosen when the library was compiled by the configure script."
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3550
13205 msgid ""
13206 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13207 "variable."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3553
13212 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13213 msgstr ""
13214
13215 # type: textblock
13216 #: ../src/guestfs-actions.pod:5350 ../fish/guestfish-actions.pod:3555
13217 msgid ""
13218 "Note that you should call this function as early as possible after creating "
13219 "the handle.  This is because some pre-launch operations depend on testing "
13220 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13221 "don't retest features, and so you might see inconsistent results.  Using the "
13222 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13223 "the qemu binary at the same time as the handle is created."
13224 msgstr ""
13225
13226 # type: =head2
13227 #: ../src/guestfs-actions.pod:5362
13228 msgid "guestfs_set_recovery_proc"
13229 msgstr ""
13230
13231 # type: verbatim
13232 #: ../src/guestfs-actions.pod:5364
13233 #, no-wrap
13234 msgid ""
13235 " int\n"
13236 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13237 "                            int recoveryproc);\n"
13238 "\n"
13239 msgstr ""
13240
13241 # type: textblock
13242 #: ../src/guestfs-actions.pod:5368
13243 msgid ""
13244 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13245 "not create a recovery process.  The purpose of the recovery process is to "
13246 "stop runaway qemu processes in the case where the main program aborts "
13247 "abruptly."
13248 msgstr ""
13249
13250 # type: textblock
13251 #: ../src/guestfs-actions.pod:5373
13252 msgid ""
13253 "This only has any effect if called before C<guestfs_launch>, and the default "
13254 "is true."
13255 msgstr ""
13256
13257 # type: textblock
13258 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3577
13259 msgid ""
13260 "About the only time when you would want to disable this is if the main "
13261 "process will fork itself into the background (\"daemonize\" itself).  In "
13262 "this case the recovery process thinks that the main program has disappeared "
13263 "and so kills qemu, which is not very helpful."
13264 msgstr ""
13265
13266 # type: =head2
13267 #: ../src/guestfs-actions.pod:5386
13268 msgid "guestfs_set_selinux"
13269 msgstr ""
13270
13271 # type: verbatim
13272 #: ../src/guestfs-actions.pod:5388
13273 #, no-wrap
13274 msgid ""
13275 " int\n"
13276 " guestfs_set_selinux (guestfs_h *g,\n"
13277 "                      int selinux);\n"
13278 "\n"
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3589
13283 msgid ""
13284 "This sets the selinux flag that is passed to the appliance at boot time.  "
13285 "The default is C<selinux=0> (disabled)."
13286 msgstr ""
13287
13288 # type: textblock
13289 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3592
13290 msgid ""
13291 "Note that if SELinux is enabled, it is always in Permissive mode "
13292 "(C<enforcing=0>)."
13293 msgstr ""
13294
13295 # type: =head2
13296 #: ../src/guestfs-actions.pod:5405
13297 msgid "guestfs_set_trace"
13298 msgstr ""
13299
13300 # type: verbatim
13301 #: ../src/guestfs-actions.pod:5407
13302 #, no-wrap
13303 msgid ""
13304 " int\n"
13305 " guestfs_set_trace (guestfs_h *g,\n"
13306 "                    int trace);\n"
13307 "\n"
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3604
13312 msgid ""
13313 "If the command trace flag is set to 1, then commands are printed on stderr "
13314 "before they are executed in a format which is very similar to the one used "
13315 "by guestfish.  In other words, you can run a program with this enabled, and "
13316 "you will get out a script which you can feed to guestfish to perform the "
13317 "same set of actions."
13318 msgstr ""
13319
13320 # type: textblock
13321 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3611
13322 msgid ""
13323 "If you want to trace C API calls into libguestfs (and other libraries) then "
13324 "possibly a better way is to use the external ltrace(1) command."
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3615
13329 msgid ""
13330 "Command traces are disabled unless the environment variable "
13331 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13332 msgstr ""
13333
13334 # type: =head2
13335 #: ../src/guestfs-actions.pod:5429
13336 msgid "guestfs_set_verbose"
13337 msgstr ""
13338
13339 # type: verbatim
13340 #: ../src/guestfs-actions.pod:5431
13341 #, no-wrap
13342 msgid ""
13343 " int\n"
13344 " guestfs_set_verbose (guestfs_h *g,\n"
13345 "                      int verbose);\n"
13346 "\n"
13347 msgstr ""
13348
13349 # type: textblock
13350 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3624
13351 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:3626
13356 msgid ""
13357 "Verbose messages are disabled unless the environment variable "
13358 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13359 msgstr ""
13360
13361 # type: =head2
13362 #: ../src/guestfs-actions.pod:5444
13363 msgid "guestfs_setcon"
13364 msgstr ""
13365
13366 # type: verbatim
13367 #: ../src/guestfs-actions.pod:5446
13368 #, no-wrap
13369 msgid ""
13370 " int\n"
13371 " guestfs_setcon (guestfs_h *g,\n"
13372 "                 const char *context);\n"
13373 "\n"
13374 msgstr ""
13375
13376 # type: textblock
13377 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:3633
13378 msgid ""
13379 "This sets the SELinux security context of the daemon to the string "
13380 "C<context>."
13381 msgstr ""
13382
13383 # type: textblock
13384 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3636
13385 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13386 msgstr ""
13387
13388 # type: =head2
13389 #: ../src/guestfs-actions.pod:5459
13390 msgid "guestfs_setxattr"
13391 msgstr ""
13392
13393 # type: verbatim
13394 #: ../src/guestfs-actions.pod:5461
13395 #, no-wrap
13396 msgid ""
13397 " int\n"
13398 " guestfs_setxattr (guestfs_h *g,\n"
13399 "                   const char *xattr,\n"
13400 "                   const char *val,\n"
13401 "                   int vallen,\n"
13402 "                   const char *path);\n"
13403 "\n"
13404 msgstr ""
13405
13406 # type: textblock
13407 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:3642
13408 msgid ""
13409 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13410 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5472
13415 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13416 msgstr ""
13417
13418 # type: =head2
13419 #: ../src/guestfs-actions.pod:5478
13420 msgid "guestfs_sfdisk"
13421 msgstr ""
13422
13423 # type: verbatim
13424 #: ../src/guestfs-actions.pod:5480
13425 #, no-wrap
13426 msgid ""
13427 " int\n"
13428 " guestfs_sfdisk (guestfs_h *g,\n"
13429 "                 const char *device,\n"
13430 "                 int cyls,\n"
13431 "                 int heads,\n"
13432 "                 int sectors,\n"
13433 "                 char *const *lines);\n"
13434 "\n"
13435 msgstr ""
13436
13437 # type: textblock
13438 #: ../src/guestfs-actions.pod:5488 ../fish/guestfish-actions.pod:3652
13439 msgid ""
13440 "This is a direct interface to the L<sfdisk(8)> program for creating "
13441 "partitions on block devices."
13442 msgstr ""
13443
13444 # type: textblock
13445 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3655
13446 msgid "C<device> should be a block device, for example C</dev/sda>."
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3657
13451 msgid ""
13452 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13453 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13454 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13455 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13456 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13457 "the kernel) cannot work out the right geometry and you will need to tell it."
13458 msgstr ""
13459
13460 # type: textblock
13461 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3665
13462 msgid ""
13463 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13464 "refer to the L<sfdisk(8)> manpage."
13465 msgstr ""
13466
13467 # type: textblock
13468 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:3668
13469 msgid ""
13470 "To create a single partition occupying the whole disk, you would pass "
13471 "C<lines> as a single element list, when the single element being the string "
13472 "C<,> (comma)."
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5508
13477 msgid ""
13478 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13479 msgstr ""
13480
13481 # type: =head2
13482 #: ../src/guestfs-actions.pod:5518
13483 msgid "guestfs_sfdiskM"
13484 msgstr ""
13485
13486 # type: verbatim
13487 #: ../src/guestfs-actions.pod:5520
13488 #, no-wrap
13489 msgid ""
13490 " int\n"
13491 " guestfs_sfdiskM (guestfs_h *g,\n"
13492 "                  const char *device,\n"
13493 "                  char *const *lines);\n"
13494 "\n"
13495 msgstr ""
13496
13497 # type: textblock
13498 #: ../src/guestfs-actions.pod:5525
13499 msgid ""
13500 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13501 "partition sizes are specified in megabytes only (rounded to the nearest "
13502 "cylinder) and you don't need to specify the cyls, heads and sectors "
13503 "parameters which were rarely if ever used anyway."
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5531
13508 msgid ""
13509 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13510 "C<guestfs_part_disk>"
13511 msgstr ""
13512
13513 # type: =head2
13514 #: ../src/guestfs-actions.pod:5541
13515 msgid "guestfs_sfdisk_N"
13516 msgstr ""
13517
13518 # type: verbatim
13519 #: ../src/guestfs-actions.pod:5543
13520 #, no-wrap
13521 msgid ""
13522 " int\n"
13523 " guestfs_sfdisk_N (guestfs_h *g,\n"
13524 "                   const char *device,\n"
13525 "                   int partnum,\n"
13526 "                   int cyls,\n"
13527 "                   int heads,\n"
13528 "                   int sectors,\n"
13529 "                   const char *line);\n"
13530 "\n"
13531 msgstr ""
13532
13533 # type: textblock
13534 #: ../src/guestfs-actions.pod:5552 ../fish/guestfish-actions.pod:3698
13535 msgid ""
13536 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13537 "(note: C<n> counts from 1)."
13538 msgstr ""
13539
13540 # type: textblock
13541 #: ../src/guestfs-actions.pod:5555
13542 msgid ""
13543 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13544 "for the cyls/heads/sectors parameters."
13545 msgstr ""
13546
13547 # type: textblock
13548 #: ../src/guestfs-actions.pod:5558
13549 msgid "See also: C<guestfs_part_add>"
13550 msgstr ""
13551
13552 # type: =head2
13553 #: ../src/guestfs-actions.pod:5567
13554 msgid "guestfs_sfdisk_disk_geometry"
13555 msgstr ""
13556
13557 # type: verbatim
13558 #: ../src/guestfs-actions.pod:5569
13559 #, no-wrap
13560 msgid ""
13561 " char *\n"
13562 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13563 "                               const char *device);\n"
13564 "\n"
13565 msgstr ""
13566
13567 # type: textblock
13568 #: ../src/guestfs-actions.pod:5573
13569 msgid ""
13570 "This displays the disk geometry of C<device> read from the partition table.  "
13571 "Especially in the case where the underlying block device has been resized, "
13572 "this can be different from the kernel's idea of the geometry (see "
13573 "C<guestfs_sfdisk_kernel_geometry>)."
13574 msgstr ""
13575
13576 # type: textblock
13577 #: ../src/guestfs-actions.pod:5578 ../src/guestfs-actions.pod:5594
13578 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3727
13579 msgid "The result is in human-readable format, and not designed to be parsed."
13580 msgstr ""
13581
13582 # type: =head2
13583 #: ../src/guestfs-actions.pod:5586
13584 msgid "guestfs_sfdisk_kernel_geometry"
13585 msgstr ""
13586
13587 # type: verbatim
13588 #: ../src/guestfs-actions.pod:5588
13589 #, no-wrap
13590 msgid ""
13591 " char *\n"
13592 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13593 "                                 const char *device);\n"
13594 "\n"
13595 msgstr ""
13596
13597 # type: textblock
13598 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3725
13599 msgid "This displays the kernel's idea of the geometry of C<device>."
13600 msgstr ""
13601
13602 # type: =head2
13603 #: ../src/guestfs-actions.pod:5602
13604 msgid "guestfs_sfdisk_l"
13605 msgstr ""
13606
13607 # type: verbatim
13608 #: ../src/guestfs-actions.pod:5604
13609 #, no-wrap
13610 msgid ""
13611 " char *\n"
13612 " guestfs_sfdisk_l (guestfs_h *g,\n"
13613 "                   const char *device);\n"
13614 "\n"
13615 msgstr ""
13616
13617 # type: textblock
13618 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3734
13619 msgid ""
13620 "This displays the partition table on C<device>, in the human-readable output "
13621 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5612
13626 msgid "See also: C<guestfs_part_list>"
13627 msgstr ""
13628
13629 # type: =head2
13630 #: ../src/guestfs-actions.pod:5619
13631 msgid "guestfs_sh"
13632 msgstr ""
13633
13634 # type: verbatim
13635 #: ../src/guestfs-actions.pod:5621
13636 #, no-wrap
13637 msgid ""
13638 " char *\n"
13639 " guestfs_sh (guestfs_h *g,\n"
13640 "             const char *command);\n"
13641 "\n"
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5625 ../fish/guestfish-actions.pod:3744
13646 msgid ""
13647 "This call runs a command from the guest filesystem via the guest's C</bin/"
13648 "sh>."
13649 msgstr ""
13650
13651 # type: textblock
13652 #: ../src/guestfs-actions.pod:5628
13653 msgid "This is like C<guestfs_command>, but passes the command to:"
13654 msgstr ""
13655
13656 # type: verbatim
13657 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3749
13658 #, no-wrap
13659 msgid ""
13660 " /bin/sh -c \"command\"\n"
13661 "\n"
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5632 ../fish/guestfish-actions.pod:3751
13666 msgid ""
13667 "Depending on the guest's shell, this usually results in wildcards being "
13668 "expanded, shell expressions being interpolated and so on."
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5636
13673 msgid "All the provisos about C<guestfs_command> apply to this call."
13674 msgstr ""
13675
13676 # type: =head2
13677 #: ../src/guestfs-actions.pod:5643
13678 msgid "guestfs_sh_lines"
13679 msgstr ""
13680
13681 # type: verbatim
13682 #: ../src/guestfs-actions.pod:5645
13683 #, no-wrap
13684 msgid ""
13685 " char **\n"
13686 " guestfs_sh_lines (guestfs_h *g,\n"
13687 "                   const char *command);\n"
13688 "\n"
13689 msgstr ""
13690
13691 # type: textblock
13692 #: ../src/guestfs-actions.pod:5649
13693 msgid ""
13694 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13695 "lines."
13696 msgstr ""
13697
13698 # type: textblock
13699 #: ../src/guestfs-actions.pod:5652
13700 msgid "See also: C<guestfs_command_lines>"
13701 msgstr ""
13702
13703 # type: =head2
13704 #: ../src/guestfs-actions.pod:5660
13705 msgid "guestfs_sleep"
13706 msgstr ""
13707
13708 # type: verbatim
13709 #: ../src/guestfs-actions.pod:5662
13710 #, no-wrap
13711 msgid ""
13712 " int\n"
13713 " guestfs_sleep (guestfs_h *g,\n"
13714 "                int secs);\n"
13715 "\n"
13716 msgstr ""
13717
13718 # type: textblock
13719 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3770
13720 msgid "Sleep for C<secs> seconds."
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5670
13725 msgid "(Added in 1.0.41)"
13726 msgstr ""
13727
13728 # type: =head2
13729 #: ../src/guestfs-actions.pod:5672 ../src/guestfs-structs.pod:109
13730 msgid "guestfs_stat"
13731 msgstr ""
13732
13733 # type: verbatim
13734 #: ../src/guestfs-actions.pod:5674
13735 #, no-wrap
13736 msgid ""
13737 " struct guestfs_stat *\n"
13738 " guestfs_stat (guestfs_h *g,\n"
13739 "               const char *path);\n"
13740 "\n"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:3778
13745 msgid "This is the same as the C<stat(2)> system call."
13746 msgstr ""
13747
13748 # type: =head2
13749 #: ../src/guestfs-actions.pod:5688 ../src/guestfs-structs.pod:135
13750 msgid "guestfs_statvfs"
13751 msgstr ""
13752
13753 # type: verbatim
13754 #: ../src/guestfs-actions.pod:5690
13755 #, no-wrap
13756 msgid ""
13757 " struct guestfs_statvfs *\n"
13758 " guestfs_statvfs (guestfs_h *g,\n"
13759 "                  const char *path);\n"
13760 "\n"
13761 msgstr ""
13762
13763 # type: textblock
13764 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3784
13765 msgid ""
13766 "Returns file system statistics for any mounted file system.  C<path> should "
13767 "be a file or directory in the mounted file system (typically it is the mount "
13768 "point itself, but it doesn't need to be)."
13769 msgstr ""
13770
13771 # type: textblock
13772 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3788
13773 msgid "This is the same as the C<statvfs(2)> system call."
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5700
13778 msgid ""
13779 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13780 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13781 msgstr ""
13782
13783 # type: =head2
13784 #: ../src/guestfs-actions.pod:5706
13785 msgid "guestfs_strings"
13786 msgstr ""
13787
13788 # type: verbatim
13789 #: ../src/guestfs-actions.pod:5708
13790 #, no-wrap
13791 msgid ""
13792 " char **\n"
13793 " guestfs_strings (guestfs_h *g,\n"
13794 "                  const char *path);\n"
13795 "\n"
13796 msgstr ""
13797
13798 # type: textblock
13799 #: ../src/guestfs-actions.pod:5712 ../fish/guestfish-actions.pod:3794
13800 msgid ""
13801 "This runs the L<strings(1)> command on a file and returns the list of "
13802 "printable strings found."
13803 msgstr ""
13804
13805 # type: =head2
13806 #: ../src/guestfs-actions.pod:5724
13807 msgid "guestfs_strings_e"
13808 msgstr ""
13809
13810 # type: verbatim
13811 #: ../src/guestfs-actions.pod:5726
13812 #, no-wrap
13813 msgid ""
13814 " char **\n"
13815 " guestfs_strings_e (guestfs_h *g,\n"
13816 "                    const char *encoding,\n"
13817 "                    const char *path);\n"
13818 "\n"
13819 msgstr ""
13820
13821 # type: textblock
13822 #: ../src/guestfs-actions.pod:5731
13823 msgid ""
13824 "This is like the C<guestfs_strings> command, but allows you to specify the "
13825 "encoding of strings that are looked for in the source file C<path>."
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5735 ../fish/guestfish-actions.pod:3808
13830 msgid "Allowed encodings are:"
13831 msgstr ""
13832
13833 # type: =item
13834 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3812
13835 msgid "s"
13836 msgstr ""
13837
13838 # type: textblock
13839 #: ../src/guestfs-actions.pod:5741
13840 msgid ""
13841 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13842 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13843 msgstr ""
13844
13845 # type: =item
13846 #: ../src/guestfs-actions.pod:5744 ../fish/guestfish-actions.pod:3817
13847 msgid "S"
13848 msgstr ""
13849
13850 # type: textblock
13851 #: ../src/guestfs-actions.pod:5746 ../fish/guestfish-actions.pod:3819
13852 msgid "Single 8-bit-byte characters."
13853 msgstr ""
13854
13855 # type: =item
13856 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3821
13857 msgid "b"
13858 msgstr ""
13859
13860 # type: textblock
13861 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3823
13862 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13863 msgstr ""
13864
13865 # type: =item
13866 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3826
13867 msgid "l (lower case letter L)"
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5755 ../fish/guestfish-actions.pod:3828
13872 msgid ""
13873 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13874 "examining binaries in Windows guests."
13875 msgstr ""
13876
13877 # type: =item
13878 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3831
13879 msgid "B"
13880 msgstr ""
13881
13882 # type: textblock
13883 #: ../src/guestfs-actions.pod:5760 ../fish/guestfish-actions.pod:3833
13884 msgid "32-bit big endian such as UCS-4BE."
13885 msgstr ""
13886
13887 # type: =item
13888 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3835
13889 msgid "L"
13890 msgstr ""
13891
13892 # type: textblock
13893 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3837
13894 msgid "32-bit little endian such as UCS-4LE."
13895 msgstr ""
13896
13897 # type: textblock
13898 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:3841
13899 msgid "The returned strings are transcoded to UTF-8."
13900 msgstr ""
13901
13902 # type: =head2
13903 #: ../src/guestfs-actions.pod:5779
13904 msgid "guestfs_swapoff_device"
13905 msgstr ""
13906
13907 # type: verbatim
13908 #: ../src/guestfs-actions.pod:5781
13909 #, no-wrap
13910 msgid ""
13911 " int\n"
13912 " guestfs_swapoff_device (guestfs_h *g,\n"
13913 "                         const char *device);\n"
13914 "\n"
13915 msgstr ""
13916
13917 # type: textblock
13918 #: ../src/guestfs-actions.pod:5785
13919 msgid ""
13920 "This command disables the libguestfs appliance swap device or partition "
13921 "named C<device>.  See C<guestfs_swapon_device>."
13922 msgstr ""
13923
13924 # type: =head2
13925 #: ../src/guestfs-actions.pod:5793
13926 msgid "guestfs_swapoff_file"
13927 msgstr ""
13928
13929 # type: verbatim
13930 #: ../src/guestfs-actions.pod:5795
13931 #, no-wrap
13932 msgid ""
13933 " int\n"
13934 " guestfs_swapoff_file (guestfs_h *g,\n"
13935 "                       const char *file);\n"
13936 "\n"
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3858
13941 msgid "This command disables the libguestfs appliance swap on file."
13942 msgstr ""
13943
13944 # type: =head2
13945 #: ../src/guestfs-actions.pod:5805
13946 msgid "guestfs_swapoff_label"
13947 msgstr ""
13948
13949 # type: verbatim
13950 #: ../src/guestfs-actions.pod:5807
13951 #, no-wrap
13952 msgid ""
13953 " int\n"
13954 " guestfs_swapoff_label (guestfs_h *g,\n"
13955 "                        const char *label);\n"
13956 "\n"
13957 msgstr ""
13958
13959 # type: textblock
13960 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3864
13961 msgid ""
13962 "This command disables the libguestfs appliance swap on labeled swap "
13963 "partition."
13964 msgstr ""
13965
13966 # type: =head2
13967 #: ../src/guestfs-actions.pod:5818
13968 msgid "guestfs_swapoff_uuid"
13969 msgstr ""
13970
13971 # type: verbatim
13972 #: ../src/guestfs-actions.pod:5820
13973 #, no-wrap
13974 msgid ""
13975 " int\n"
13976 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13977 "                       const char *uuid);\n"
13978 "\n"
13979 msgstr ""
13980
13981 # type: textblock
13982 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3871
13983 msgid ""
13984 "This command disables the libguestfs appliance swap partition with the given "
13985 "UUID."
13986 msgstr ""
13987
13988 # type: =head2
13989 #: ../src/guestfs-actions.pod:5831
13990 msgid "guestfs_swapon_device"
13991 msgstr ""
13992
13993 # type: verbatim
13994 #: ../src/guestfs-actions.pod:5833
13995 #, no-wrap
13996 msgid ""
13997 " int\n"
13998 " guestfs_swapon_device (guestfs_h *g,\n"
13999 "                        const char *device);\n"
14000 "\n"
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-actions.pod:5837
14005 msgid ""
14006 "This command enables the libguestfs appliance to use the swap device or "
14007 "partition named C<device>.  The increased memory is made available for all "
14008 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5842 ../fish/guestfish-actions.pod:3883
14013 msgid ""
14014 "Note that you should not swap to existing guest swap partitions unless you "
14015 "know what you are doing.  They may contain hibernation information, or other "
14016 "information that the guest doesn't want you to trash.  You also risk leaking "
14017 "information about the host to the guest this way.  Instead, attach a new "
14018 "host device to the guest and swap on that."
14019 msgstr ""
14020
14021 # type: =head2
14022 #: ../src/guestfs-actions.pod:5853
14023 msgid "guestfs_swapon_file"
14024 msgstr ""
14025
14026 # type: verbatim
14027 #: ../src/guestfs-actions.pod:5855
14028 #, no-wrap
14029 msgid ""
14030 " int\n"
14031 " guestfs_swapon_file (guestfs_h *g,\n"
14032 "                      const char *file);\n"
14033 "\n"
14034 msgstr ""
14035
14036 # type: textblock
14037 #: ../src/guestfs-actions.pod:5859
14038 msgid ""
14039 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14040 "notes."
14041 msgstr ""
14042
14043 # type: =head2
14044 #: ../src/guestfs-actions.pod:5866
14045 msgid "guestfs_swapon_label"
14046 msgstr ""
14047
14048 # type: verbatim
14049 #: ../src/guestfs-actions.pod:5868
14050 #, no-wrap
14051 msgid ""
14052 " int\n"
14053 " guestfs_swapon_label (guestfs_h *g,\n"
14054 "                       const char *label);\n"
14055 "\n"
14056 msgstr ""
14057
14058 # type: textblock
14059 #: ../src/guestfs-actions.pod:5872
14060 msgid ""
14061 "This command enables swap to a labeled swap partition.  See "
14062 "C<guestfs_swapon_device> for other notes."
14063 msgstr ""
14064
14065 # type: =head2
14066 #: ../src/guestfs-actions.pod:5879
14067 msgid "guestfs_swapon_uuid"
14068 msgstr ""
14069
14070 # type: verbatim
14071 #: ../src/guestfs-actions.pod:5881
14072 #, no-wrap
14073 msgid ""
14074 " int\n"
14075 " guestfs_swapon_uuid (guestfs_h *g,\n"
14076 "                      const char *uuid);\n"
14077 "\n"
14078 msgstr ""
14079
14080 # type: textblock
14081 #: ../src/guestfs-actions.pod:5885
14082 msgid ""
14083 "This command enables swap to a swap partition with the given UUID.  See "
14084 "C<guestfs_swapon_device> for other notes."
14085 msgstr ""
14086
14087 # type: =head2
14088 #: ../src/guestfs-actions.pod:5892
14089 msgid "guestfs_sync"
14090 msgstr ""
14091
14092 # type: verbatim
14093 #: ../src/guestfs-actions.pod:5894
14094 #, no-wrap
14095 msgid ""
14096 " int\n"
14097 " guestfs_sync (guestfs_h *g);\n"
14098 "\n"
14099 msgstr ""
14100
14101 # type: textblock
14102 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3915
14103 msgid ""
14104 "This syncs the disk, so that any writes are flushed through to the "
14105 "underlying disk image."
14106 msgstr ""
14107
14108 # type: textblock
14109 #: ../src/guestfs-actions.pod:5900 ../fish/guestfish-actions.pod:3918
14110 msgid ""
14111 "You should always call this if you have modified a disk image, before "
14112 "closing the handle."
14113 msgstr ""
14114
14115 # type: =head2
14116 #: ../src/guestfs-actions.pod:5907
14117 msgid "guestfs_tail"
14118 msgstr ""
14119
14120 # type: verbatim
14121 #: ../src/guestfs-actions.pod:5909
14122 #, no-wrap
14123 msgid ""
14124 " char **\n"
14125 " guestfs_tail (guestfs_h *g,\n"
14126 "               const char *path);\n"
14127 "\n"
14128 msgstr ""
14129
14130 # type: textblock
14131 #: ../src/guestfs-actions.pod:5913 ../fish/guestfish-actions.pod:3925
14132 msgid ""
14133 "This command returns up to the last 10 lines of a file as a list of strings."
14134 msgstr ""
14135
14136 # type: =head2
14137 #: ../src/guestfs-actions.pod:5925
14138 msgid "guestfs_tail_n"
14139 msgstr ""
14140
14141 # type: verbatim
14142 #: ../src/guestfs-actions.pod:5927
14143 #, no-wrap
14144 msgid ""
14145 " char **\n"
14146 " guestfs_tail_n (guestfs_h *g,\n"
14147 "                 int nrlines,\n"
14148 "                 const char *path);\n"
14149 "\n"
14150 msgstr ""
14151
14152 # type: textblock
14153 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3935
14154 msgid ""
14155 "If the parameter C<nrlines> is a positive number, this returns the last "
14156 "C<nrlines> lines of the file C<path>."
14157 msgstr ""
14158
14159 # type: textblock
14160 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3938
14161 msgid ""
14162 "If the parameter C<nrlines> is a negative number, this returns lines from "
14163 "the file C<path>, starting with the C<-nrlines>th line."
14164 msgstr ""
14165
14166 # type: =head2
14167 #: ../src/guestfs-actions.pod:5949
14168 msgid "guestfs_tar_in"
14169 msgstr ""
14170
14171 # type: verbatim
14172 #: ../src/guestfs-actions.pod:5951
14173 #, no-wrap
14174 msgid ""
14175 " int\n"
14176 " guestfs_tar_in (guestfs_h *g,\n"
14177 "                 const char *tarfile,\n"
14178 "                 const char *directory);\n"
14179 "\n"
14180 msgstr ""
14181
14182 # type: textblock
14183 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3950
14184 msgid ""
14185 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14186 "tar file) into C<directory>."
14187 msgstr ""
14188
14189 # type: textblock
14190 #: ../src/guestfs-actions.pod:5959
14191 msgid ""
14192 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:5981
14197 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6013
14198 msgid "(Added in 1.0.3)"
14199 msgstr ""
14200
14201 # type: =head2
14202 #: ../src/guestfs-actions.pod:5966
14203 msgid "guestfs_tar_out"
14204 msgstr ""
14205
14206 # type: verbatim
14207 #: ../src/guestfs-actions.pod:5968
14208 #, no-wrap
14209 msgid ""
14210 " int\n"
14211 " guestfs_tar_out (guestfs_h *g,\n"
14212 "                  const char *directory,\n"
14213 "                  const char *tarfile);\n"
14214 "\n"
14215 msgstr ""
14216
14217 # type: textblock
14218 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:3962
14219 msgid ""
14220 "This command packs the contents of C<directory> and downloads it to local "
14221 "file C<tarfile>."
14222 msgstr ""
14223
14224 # type: textblock
14225 #: ../src/guestfs-actions.pod:5976
14226 msgid ""
14227 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14228 "C<guestfs_txz_out>."
14229 msgstr ""
14230
14231 # type: =head2
14232 #: ../src/guestfs-actions.pod:5983
14233 msgid "guestfs_tgz_in"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #: ../src/guestfs-actions.pod:5985
14238 #, no-wrap
14239 msgid ""
14240 " int\n"
14241 " guestfs_tgz_in (guestfs_h *g,\n"
14242 "                 const char *tarball,\n"
14243 "                 const char *directory);\n"
14244 "\n"
14245 msgstr ""
14246
14247 # type: textblock
14248 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:3974
14249 msgid ""
14250 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14251 "tar file) into C<directory>."
14252 msgstr ""
14253
14254 # type: textblock
14255 #: ../src/guestfs-actions.pod:5993
14256 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14257 msgstr ""
14258
14259 # type: =head2
14260 #: ../src/guestfs-actions.pod:5999
14261 msgid "guestfs_tgz_out"
14262 msgstr ""
14263
14264 # type: verbatim
14265 #: ../src/guestfs-actions.pod:6001
14266 #, no-wrap
14267 msgid ""
14268 " int\n"
14269 " guestfs_tgz_out (guestfs_h *g,\n"
14270 "                  const char *directory,\n"
14271 "                  const char *tarball);\n"
14272 "\n"
14273 msgstr ""
14274
14275 # type: textblock
14276 #: ../src/guestfs-actions.pod:6006 ../fish/guestfish-actions.pod:3985
14277 msgid ""
14278 "This command packs the contents of C<directory> and downloads it to local "
14279 "file C<tarball>."
14280 msgstr ""
14281
14282 # type: textblock
14283 #: ../src/guestfs-actions.pod:6009
14284 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14285 msgstr ""
14286
14287 # type: =head2
14288 #: ../src/guestfs-actions.pod:6015
14289 msgid "guestfs_touch"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #: ../src/guestfs-actions.pod:6017
14294 #, no-wrap
14295 msgid ""
14296 " int\n"
14297 " guestfs_touch (guestfs_h *g,\n"
14298 "                const char *path);\n"
14299 "\n"
14300 msgstr ""
14301
14302 # type: textblock
14303 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:3996
14304 msgid ""
14305 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14306 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14307 "length file."
14308 msgstr ""
14309
14310 # type: textblock
14311 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4000
14312 msgid ""
14313 "This command only works on regular files, and will fail on other file types "
14314 "such as directories, symbolic links, block special etc."
14315 msgstr ""
14316
14317 # type: =head2
14318 #: ../src/guestfs-actions.pod:6032
14319 msgid "guestfs_truncate"
14320 msgstr ""
14321
14322 # type: verbatim
14323 #: ../src/guestfs-actions.pod:6034
14324 #, no-wrap
14325 msgid ""
14326 " int\n"
14327 " guestfs_truncate (guestfs_h *g,\n"
14328 "                   const char *path);\n"
14329 "\n"
14330 msgstr ""
14331
14332 # type: textblock
14333 #: ../src/guestfs-actions.pod:6038 ../fish/guestfish-actions.pod:4007
14334 msgid ""
14335 "This command truncates C<path> to a zero-length file.  The file must exist "
14336 "already."
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:6045
14341 msgid "guestfs_truncate_size"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:6047
14346 #, no-wrap
14347 msgid ""
14348 " int\n"
14349 " guestfs_truncate_size (guestfs_h *g,\n"
14350 "                        const char *path,\n"
14351 "                        int64_t size);\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: textblock
14356 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4014
14357 msgid ""
14358 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14359 "already."
14360 msgstr ""
14361
14362 # type: textblock
14363 #: ../src/guestfs-actions.pod:6055
14364 msgid ""
14365 "If the current file size is less than C<size> then the file is extended to "
14366 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14367 "blocks are not allocated for the file until you write to it).  To create a "
14368 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14369 msgstr ""
14370
14371 # type: =head2
14372 #: ../src/guestfs-actions.pod:6065
14373 msgid "guestfs_tune2fs_l"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #: ../src/guestfs-actions.pod:6067
14378 #, no-wrap
14379 msgid ""
14380 " char **\n"
14381 " guestfs_tune2fs_l (guestfs_h *g,\n"
14382 "                    const char *device);\n"
14383 "\n"
14384 msgstr ""
14385
14386 # type: textblock
14387 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4027
14388 msgid ""
14389 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14390 "C<device>."
14391 msgstr ""
14392
14393 # type: textblock
14394 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4030
14395 msgid ""
14396 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14397 "for more details.  The list of fields returned isn't clearly defined, and "
14398 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14399 "and the filesystem itself."
14400 msgstr ""
14401
14402 # type: =head2
14403 #: ../src/guestfs-actions.pod:6087
14404 msgid "guestfs_txz_in"
14405 msgstr ""
14406
14407 # type: verbatim
14408 #: ../src/guestfs-actions.pod:6089
14409 #, no-wrap
14410 msgid ""
14411 " int\n"
14412 " guestfs_txz_in (guestfs_h *g,\n"
14413 "                 const char *tarball,\n"
14414 "                 const char *directory);\n"
14415 "\n"
14416 msgstr ""
14417
14418 # type: textblock
14419 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4039
14420 msgid ""
14421 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14422 "tar file) into C<directory>."
14423 msgstr ""
14424
14425 # type: =head2
14426 #: ../src/guestfs-actions.pod:6101
14427 msgid "guestfs_txz_out"
14428 msgstr ""
14429
14430 # type: verbatim
14431 #: ../src/guestfs-actions.pod:6103
14432 #, no-wrap
14433 msgid ""
14434 " int\n"
14435 " guestfs_txz_out (guestfs_h *g,\n"
14436 "                  const char *directory,\n"
14437 "                  const char *tarball);\n"
14438 "\n"
14439 msgstr ""
14440
14441 # type: textblock
14442 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4048
14443 msgid ""
14444 "This command packs the contents of C<directory> and downloads it to local "
14445 "file C<tarball> (as an xz compressed tar archive)."
14446 msgstr ""
14447
14448 # type: =head2
14449 #: ../src/guestfs-actions.pod:6115
14450 msgid "guestfs_umask"
14451 msgstr ""
14452
14453 # type: verbatim
14454 #: ../src/guestfs-actions.pod:6117
14455 #, no-wrap
14456 msgid ""
14457 " int\n"
14458 " guestfs_umask (guestfs_h *g,\n"
14459 "                int mask);\n"
14460 "\n"
14461 msgstr ""
14462
14463 # type: textblock
14464 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4057
14465 msgid ""
14466 "This function sets the mask used for creating new files and device nodes to "
14467 "C<mask & 0777>."
14468 msgstr ""
14469
14470 # type: textblock
14471 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4060
14472 msgid ""
14473 "Typical umask values would be C<022> which creates new files with "
14474 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14475 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14476 msgstr ""
14477
14478 # type: textblock
14479 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4065
14480 msgid ""
14481 "The default umask is C<022>.  This is important because it means that "
14482 "directories and device nodes will be created with C<0644> or C<0755> mode "
14483 "even if you specify C<0777>."
14484 msgstr ""
14485
14486 # type: textblock
14487 #: ../src/guestfs-actions.pod:6133
14488 msgid ""
14489 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14490 "C<guestfs_mkdir>."
14491 msgstr ""
14492
14493 # type: textblock
14494 #: ../src/guestfs-actions.pod:6136 ../fish/guestfish-actions.pod:4072
14495 msgid "This call returns the previous umask."
14496 msgstr ""
14497
14498 # type: =head2
14499 #: ../src/guestfs-actions.pod:6142
14500 msgid "guestfs_umount"
14501 msgstr ""
14502
14503 # type: verbatim
14504 #: ../src/guestfs-actions.pod:6144
14505 #, no-wrap
14506 msgid ""
14507 " int\n"
14508 " guestfs_umount (guestfs_h *g,\n"
14509 "                 const char *pathordevice);\n"
14510 "\n"
14511 msgstr ""
14512
14513 # type: textblock
14514 #: ../src/guestfs-actions.pod:6148 ../fish/guestfish-actions.pod:4080
14515 msgid ""
14516 "This unmounts the given filesystem.  The filesystem may be specified either "
14517 "by its mountpoint (path) or the device which contains the filesystem."
14518 msgstr ""
14519
14520 # type: =head2
14521 #: ../src/guestfs-actions.pod:6156
14522 msgid "guestfs_umount_all"
14523 msgstr ""
14524
14525 # type: verbatim
14526 #: ../src/guestfs-actions.pod:6158
14527 #, no-wrap
14528 msgid ""
14529 " int\n"
14530 " guestfs_umount_all (guestfs_h *g);\n"
14531 "\n"
14532 msgstr ""
14533
14534 # type: textblock
14535 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4090
14536 msgid "This unmounts all mounted filesystems."
14537 msgstr ""
14538
14539 # type: textblock
14540 #: ../src/guestfs-actions.pod:6163 ../fish/guestfish-actions.pod:4092
14541 msgid "Some internal mounts are not unmounted by this call."
14542 msgstr ""
14543
14544 # type: =head2
14545 #: ../src/guestfs-actions.pod:6169
14546 msgid "guestfs_upload"
14547 msgstr ""
14548
14549 # type: verbatim
14550 #: ../src/guestfs-actions.pod:6171
14551 #, no-wrap
14552 msgid ""
14553 " int\n"
14554 " guestfs_upload (guestfs_h *g,\n"
14555 "                 const char *filename,\n"
14556 "                 const char *remotefilename);\n"
14557 "\n"
14558 msgstr ""
14559
14560 # type: textblock
14561 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6195
14562 #: ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4111
14563 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14564 msgstr ""
14565
14566 # type: textblock
14567 #: ../src/guestfs-actions.pod:6181
14568 msgid "See also C<guestfs_download>."
14569 msgstr ""
14570
14571 # type: =head2
14572 #: ../src/guestfs-actions.pod:6187
14573 msgid "guestfs_upload_offset"
14574 msgstr ""
14575
14576 # type: verbatim
14577 #: ../src/guestfs-actions.pod:6189
14578 #, no-wrap
14579 msgid ""
14580 " int\n"
14581 " guestfs_upload_offset (guestfs_h *g,\n"
14582 "                        const char *filename,\n"
14583 "                        const char *remotefilename,\n"
14584 "                        int64_t offset);\n"
14585 "\n"
14586 msgstr ""
14587
14588 # type: textblock
14589 #: ../src/guestfs-actions.pod:6198 ../fish/guestfish-actions.pod:4114
14590 msgid ""
14591 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14592 "The intention is to overwrite parts of existing files or devices, although "
14593 "if a non-existant file is specified then it is created with a \"hole\" "
14594 "before C<offset>.  The size of the data written is implicit in the size of "
14595 "the source C<filename>."
14596 msgstr ""
14597
14598 # type: textblock
14599 #: ../src/guestfs-actions.pod:6205
14600 msgid ""
14601 "Note that there is no limit on the amount of data that can be uploaded with "
14602 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14603 "full amount unless an error occurs."
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6210
14608 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14609 msgstr ""
14610
14611 # type: =head2
14612 #: ../src/guestfs-actions.pod:6216
14613 msgid "guestfs_utimens"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #: ../src/guestfs-actions.pod:6218
14618 #, no-wrap
14619 msgid ""
14620 " int\n"
14621 " guestfs_utimens (guestfs_h *g,\n"
14622 "                  const char *path,\n"
14623 "                  int64_t atsecs,\n"
14624 "                  int64_t atnsecs,\n"
14625 "                  int64_t mtsecs,\n"
14626 "                  int64_t mtnsecs);\n"
14627 "\n"
14628 msgstr ""
14629
14630 # type: textblock
14631 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4134
14632 msgid "This command sets the timestamps of a file with nanosecond precision."
14633 msgstr ""
14634
14635 # type: textblock
14636 #: ../src/guestfs-actions.pod:6229 ../fish/guestfish-actions.pod:4137
14637 msgid ""
14638 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14639 "from the epoch."
14640 msgstr ""
14641
14642 # type: textblock
14643 #: ../src/guestfs-actions.pod:6232 ../fish/guestfish-actions.pod:4140
14644 msgid ""
14645 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14646 "nanoseconds from the epoch."
14647 msgstr ""
14648
14649 # type: textblock
14650 #: ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:4143
14651 msgid ""
14652 "If the C<*nsecs> field contains the special value C<-1> then the "
14653 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14654 "ignored in this case)."
14655 msgstr ""
14656
14657 # type: textblock
14658 #: ../src/guestfs-actions.pod:6239 ../fish/guestfish-actions.pod:4147
14659 msgid ""
14660 "If the C<*nsecs> field contains the special value C<-2> then the "
14661 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14662 "in this case)."
14663 msgstr ""
14664
14665 # type: =head2
14666 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-structs.pod:175
14667 msgid "guestfs_version"
14668 msgstr ""
14669
14670 # type: verbatim
14671 #: ../src/guestfs-actions.pod:6249
14672 #, no-wrap
14673 msgid ""
14674 " struct guestfs_version *\n"
14675 " guestfs_version (guestfs_h *g);\n"
14676 "\n"
14677 msgstr ""
14678
14679 # type: textblock
14680 #: ../src/guestfs-actions.pod:6252 ../fish/guestfish-actions.pod:4155
14681 msgid ""
14682 "Return the libguestfs version number that the program is linked against."
14683 msgstr ""
14684
14685 # type: textblock
14686 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4158
14687 msgid ""
14688 "Note that because of dynamic linking this is not necessarily the version of "
14689 "libguestfs that you compiled against.  You can compile the program, and then "
14690 "at runtime dynamically link against a completely different C<libguestfs.so> "
14691 "library."
14692 msgstr ""
14693
14694 # type: textblock
14695 #: ../src/guestfs-actions.pod:6260 ../fish/guestfish-actions.pod:4163
14696 msgid ""
14697 "This call was added in version C<1.0.58>.  In previous versions of "
14698 "libguestfs there was no way to get the version number.  From C code you can "
14699 "use dynamic linker functions to find out if this symbol exists (if it "
14700 "doesn't, then it's an earlier version)."
14701 msgstr ""
14702
14703 # type: textblock
14704 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4169
14705 msgid ""
14706 "The call returns a structure with four elements.  The first three (C<major>, "
14707 "C<minor> and C<release>) are numbers and correspond to the usual version "
14708 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14709 "but may be used for distro-specific information."
14710 msgstr ""
14711
14712 # type: textblock
14713 #: ../src/guestfs-actions.pod:6272 ../fish/guestfish-actions.pod:4175
14714 msgid ""
14715 "To construct the original version string: C<$major.$minor.$release$extra>"
14716 msgstr ""
14717
14718 # type: textblock
14719 #: ../src/guestfs-actions.pod:6275 ../fish/guestfish-actions.pod:4178
14720 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6277
14725 msgid ""
14726 "I<Note:> Don't use this call to test for availability of features.  In "
14727 "enterprise distributions we backport features from later versions into "
14728 "earlier versions, making this an unreliable way to test for features.  Use "
14729 "C<guestfs_available> instead."
14730 msgstr ""
14731
14732 # type: textblock
14733 #: ../src/guestfs-actions.pod:6283
14734 msgid ""
14735 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14736 "error.  I<The caller must call C<guestfs_free_version> after use>."
14737 msgstr ""
14738
14739 # type: textblock
14740 #: ../src/guestfs-actions.pod:6287
14741 msgid "(Added in 1.0.58)"
14742 msgstr ""
14743
14744 # type: =head2
14745 #: ../src/guestfs-actions.pod:6289
14746 msgid "guestfs_vfs_label"
14747 msgstr ""
14748
14749 # type: verbatim
14750 #: ../src/guestfs-actions.pod:6291
14751 #, no-wrap
14752 msgid ""
14753 " char *\n"
14754 " guestfs_vfs_label (guestfs_h *g,\n"
14755 "                    const char *device);\n"
14756 "\n"
14757 msgstr ""
14758
14759 # type: textblock
14760 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4190
14761 msgid "This returns the filesystem label of the filesystem on C<device>."
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4193
14766 msgid "If the filesystem is unlabeled, this returns the empty string."
14767 msgstr ""
14768
14769 # type: textblock
14770 #: ../src/guestfs-actions.pod:6300
14771 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../src/guestfs-actions.pod:6305 ../src/guestfs-actions.pod:6342
14776 msgid "(Added in 1.3.18)"
14777 msgstr ""
14778
14779 # type: =head2
14780 #: ../src/guestfs-actions.pod:6307
14781 msgid "guestfs_vfs_type"
14782 msgstr ""
14783
14784 # type: verbatim
14785 #: ../src/guestfs-actions.pod:6309
14786 #, no-wrap
14787 msgid ""
14788 " char *\n"
14789 " guestfs_vfs_type (guestfs_h *g,\n"
14790 "                   const char *device);\n"
14791 "\n"
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4201
14796 msgid ""
14797 "This command gets the filesystem type corresponding to the filesystem on "
14798 "C<device>."
14799 msgstr ""
14800
14801 # type: textblock
14802 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4204
14803 msgid ""
14804 "For most filesystems, the result is the name of the Linux VFS module which "
14805 "would be used to mount this filesystem if you mounted it without specifying "
14806 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14807 msgstr ""
14808
14809 # type: =head2
14810 #: ../src/guestfs-actions.pod:6326
14811 msgid "guestfs_vfs_uuid"
14812 msgstr ""
14813
14814 # type: verbatim
14815 #: ../src/guestfs-actions.pod:6328
14816 #, no-wrap
14817 msgid ""
14818 " char *\n"
14819 " guestfs_vfs_uuid (guestfs_h *g,\n"
14820 "                   const char *device);\n"
14821 "\n"
14822 msgstr ""
14823
14824 # type: textblock
14825 #: ../src/guestfs-actions.pod:6332 ../fish/guestfish-actions.pod:4213
14826 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../src/guestfs-actions.pod:6335 ../fish/guestfish-actions.pod:4216
14831 msgid "If the filesystem does not have a UUID, this returns the empty string."
14832 msgstr ""
14833
14834 # type: textblock
14835 #: ../src/guestfs-actions.pod:6337
14836 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14837 msgstr ""
14838
14839 # type: =head2
14840 #: ../src/guestfs-actions.pod:6344
14841 msgid "guestfs_vg_activate"
14842 msgstr ""
14843
14844 # type: verbatim
14845 #: ../src/guestfs-actions.pod:6346
14846 #, no-wrap
14847 msgid ""
14848 " int\n"
14849 " guestfs_vg_activate (guestfs_h *g,\n"
14850 "                      int activate,\n"
14851 "                      char *const *volgroups);\n"
14852 "\n"
14853 msgstr ""
14854
14855 # type: textblock
14856 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4224
14857 msgid ""
14858 "This command activates or (if C<activate> is false) deactivates all logical "
14859 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14860 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14861 "deactivated, then those devices disappear."
14862 msgstr ""
14863
14864 # type: textblock
14865 #: ../src/guestfs-actions.pod:6357 ../fish/guestfish-actions.pod:4230
14866 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14867 msgstr ""
14868
14869 # type: textblock
14870 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4232
14871 msgid ""
14872 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14873 "activated or deactivated."
14874 msgstr ""
14875
14876 # type: =head2
14877 #: ../src/guestfs-actions.pod:6366
14878 msgid "guestfs_vg_activate_all"
14879 msgstr ""
14880
14881 # type: verbatim
14882 #: ../src/guestfs-actions.pod:6368
14883 #, no-wrap
14884 msgid ""
14885 " int\n"
14886 " guestfs_vg_activate_all (guestfs_h *g,\n"
14887 "                          int activate);\n"
14888 "\n"
14889 msgstr ""
14890
14891 # type: textblock
14892 #: ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:4239
14893 msgid ""
14894 "This command activates or (if C<activate> is false) deactivates all logical "
14895 "volumes in all volume groups.  If activated, then they are made known to the "
14896 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14897 "those devices disappear."
14898 msgstr ""
14899
14900 # type: textblock
14901 #: ../src/guestfs-actions.pod:6378 ../fish/guestfish-actions.pod:4245
14902 msgid "This command is the same as running C<vgchange -a y|n>"
14903 msgstr ""
14904
14905 # type: =head2
14906 #: ../src/guestfs-actions.pod:6384
14907 msgid "guestfs_vgcreate"
14908 msgstr ""
14909
14910 # type: verbatim
14911 #: ../src/guestfs-actions.pod:6386
14912 #, no-wrap
14913 msgid ""
14914 " int\n"
14915 " guestfs_vgcreate (guestfs_h *g,\n"
14916 "                   const char *volgroup,\n"
14917 "                   char *const *physvols);\n"
14918 "\n"
14919 msgstr ""
14920
14921 # type: textblock
14922 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4251
14923 msgid ""
14924 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14925 "of physical volumes C<physvols>."
14926 msgstr ""
14927
14928 # type: =head2
14929 #: ../src/guestfs-actions.pod:6398
14930 msgid "guestfs_vglvuuids"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #: ../src/guestfs-actions.pod:6400
14935 #, no-wrap
14936 msgid ""
14937 " char **\n"
14938 " guestfs_vglvuuids (guestfs_h *g,\n"
14939 "                    const char *vgname);\n"
14940 "\n"
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4258
14945 msgid ""
14946 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14947 "volumes created in this volume group."
14948 msgstr ""
14949
14950 # type: textblock
14951 #: ../src/guestfs-actions.pod:6407
14952 msgid ""
14953 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14954 "associate logical volumes and volume groups."
14955 msgstr ""
14956
14957 # type: textblock
14958 #: ../src/guestfs-actions.pod:6410
14959 msgid "See also C<guestfs_vgpvuuids>."
14960 msgstr ""
14961
14962 # type: =head2
14963 #: ../src/guestfs-actions.pod:6418
14964 msgid "guestfs_vgpvuuids"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #: ../src/guestfs-actions.pod:6420
14969 #, no-wrap
14970 msgid ""
14971 " char **\n"
14972 " guestfs_vgpvuuids (guestfs_h *g,\n"
14973 "                    const char *vgname);\n"
14974 "\n"
14975 msgstr ""
14976
14977 # type: textblock
14978 #: ../src/guestfs-actions.pod:6424 ../fish/guestfish-actions.pod:4270
14979 msgid ""
14980 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14981 "volumes that this volume group resides on."
14982 msgstr ""
14983
14984 # type: textblock
14985 #: ../src/guestfs-actions.pod:6427
14986 msgid ""
14987 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14988 "associate physical volumes and volume groups."
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6430
14993 msgid "See also C<guestfs_vglvuuids>."
14994 msgstr ""
14995
14996 # type: =head2
14997 #: ../src/guestfs-actions.pod:6438
14998 msgid "guestfs_vgremove"
14999 msgstr ""
15000
15001 # type: verbatim
15002 #: ../src/guestfs-actions.pod:6440
15003 #, no-wrap
15004 msgid ""
15005 " int\n"
15006 " guestfs_vgremove (guestfs_h *g,\n"
15007 "                   const char *vgname);\n"
15008 "\n"
15009 msgstr ""
15010
15011 # type: textblock
15012 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4282
15013 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15014 msgstr ""
15015
15016 # type: textblock
15017 #: ../src/guestfs-actions.pod:6446 ../fish/guestfish-actions.pod:4284
15018 msgid ""
15019 "This also forcibly removes all logical volumes in the volume group (if any)."
15020 msgstr ""
15021
15022 # type: =head2
15023 #: ../src/guestfs-actions.pod:6453
15024 msgid "guestfs_vgrename"
15025 msgstr ""
15026
15027 # type: verbatim
15028 #: ../src/guestfs-actions.pod:6455
15029 #, no-wrap
15030 msgid ""
15031 " int\n"
15032 " guestfs_vgrename (guestfs_h *g,\n"
15033 "                   const char *volgroup,\n"
15034 "                   const char *newvolgroup);\n"
15035 "\n"
15036 msgstr ""
15037
15038 # type: textblock
15039 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4291
15040 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15041 msgstr ""
15042
15043 # type: =head2
15044 #: ../src/guestfs-actions.pod:6466
15045 msgid "guestfs_vgs"
15046 msgstr ""
15047
15048 # type: verbatim
15049 #: ../src/guestfs-actions.pod:6468
15050 #, no-wrap
15051 msgid ""
15052 " char **\n"
15053 " guestfs_vgs (guestfs_h *g);\n"
15054 "\n"
15055 msgstr ""
15056
15057 # type: textblock
15058 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4297
15059 msgid ""
15060 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15061 "> command."
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6474 ../fish/guestfish-actions.pod:4300
15066 msgid ""
15067 "This returns a list of just the volume group names that were detected (eg. "
15068 "C<VolGroup00>)."
15069 msgstr ""
15070
15071 # type: textblock
15072 #: ../src/guestfs-actions.pod:6477
15073 msgid "See also C<guestfs_vgs_full>."
15074 msgstr ""
15075
15076 # type: =head2
15077 #: ../src/guestfs-actions.pod:6485
15078 msgid "guestfs_vgs_full"
15079 msgstr ""
15080
15081 # type: verbatim
15082 #: ../src/guestfs-actions.pod:6487
15083 #, no-wrap
15084 msgid ""
15085 " struct guestfs_lvm_vg_list *\n"
15086 " guestfs_vgs_full (guestfs_h *g);\n"
15087 "\n"
15088 msgstr ""
15089
15090 # type: textblock
15091 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4309
15092 msgid ""
15093 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15094 "> command.  The \"full\" version includes all fields."
15095 msgstr ""
15096
15097 # type: textblock
15098 #: ../src/guestfs-actions.pod:6493
15099 msgid ""
15100 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15101 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15102 msgstr ""
15103
15104 # type: =head2
15105 #: ../src/guestfs-actions.pod:6499
15106 msgid "guestfs_vgscan"
15107 msgstr ""
15108
15109 # type: verbatim
15110 #: ../src/guestfs-actions.pod:6501
15111 #, no-wrap
15112 msgid ""
15113 " int\n"
15114 " guestfs_vgscan (guestfs_h *g);\n"
15115 "\n"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6504 ../fish/guestfish-actions.pod:4316
15120 msgid ""
15121 "This rescans all block devices and rebuilds the list of LVM physical "
15122 "volumes, volume groups and logical volumes."
15123 msgstr ""
15124
15125 # type: =head2
15126 #: ../src/guestfs-actions.pod:6511
15127 msgid "guestfs_vguuid"
15128 msgstr ""
15129
15130 # type: verbatim
15131 #: ../src/guestfs-actions.pod:6513
15132 #, no-wrap
15133 msgid ""
15134 " char *\n"
15135 " guestfs_vguuid (guestfs_h *g,\n"
15136 "                 const char *vgname);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-actions.pod:6517 ../fish/guestfish-actions.pod:4323
15142 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15143 msgstr ""
15144
15145 # type: =head2
15146 #: ../src/guestfs-actions.pod:6524
15147 msgid "guestfs_wait_ready"
15148 msgstr ""
15149
15150 # type: verbatim
15151 #: ../src/guestfs-actions.pod:6526
15152 #, no-wrap
15153 msgid ""
15154 " int\n"
15155 " guestfs_wait_ready (guestfs_h *g);\n"
15156 "\n"
15157 msgstr ""
15158
15159 # type: textblock
15160 #: ../src/guestfs-actions.pod:6529
15161 msgid "This function is a no op."
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../src/guestfs-actions.pod:6531
15166 msgid ""
15167 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15168 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15169 "is no longer necessary because C<guestfs_launch> now does the waiting."
15170 msgstr ""
15171
15172 # type: textblock
15173 #: ../src/guestfs-actions.pod:6536
15174 msgid ""
15175 "If you see any calls to this function in code then you can just remove them, "
15176 "unless you want to retain compatibility with older versions of the API."
15177 msgstr ""
15178
15179 # type: =head2
15180 #: ../src/guestfs-actions.pod:6544
15181 msgid "guestfs_wc_c"
15182 msgstr ""
15183
15184 # type: verbatim
15185 #: ../src/guestfs-actions.pod:6546
15186 #, no-wrap
15187 msgid ""
15188 " int\n"
15189 " guestfs_wc_c (guestfs_h *g,\n"
15190 "               const char *path);\n"
15191 "\n"
15192 msgstr ""
15193
15194 # type: textblock
15195 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4329
15196 msgid ""
15197 "This command counts the characters in a file, using the C<wc -c> external "
15198 "command."
15199 msgstr ""
15200
15201 # type: =head2
15202 #: ../src/guestfs-actions.pod:6557
15203 msgid "guestfs_wc_l"
15204 msgstr ""
15205
15206 # type: verbatim
15207 #: ../src/guestfs-actions.pod:6559
15208 #, no-wrap
15209 msgid ""
15210 " int\n"
15211 " guestfs_wc_l (guestfs_h *g,\n"
15212 "               const char *path);\n"
15213 "\n"
15214 msgstr ""
15215
15216 # type: textblock
15217 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4336
15218 msgid ""
15219 "This command counts the lines in a file, using the C<wc -l> external command."
15220 msgstr ""
15221
15222 # type: =head2
15223 #: ../src/guestfs-actions.pod:6570
15224 msgid "guestfs_wc_w"
15225 msgstr ""
15226
15227 # type: verbatim
15228 #: ../src/guestfs-actions.pod:6572
15229 #, no-wrap
15230 msgid ""
15231 " int\n"
15232 " guestfs_wc_w (guestfs_h *g,\n"
15233 "               const char *path);\n"
15234 "\n"
15235 msgstr ""
15236
15237 # type: textblock
15238 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4343
15239 msgid ""
15240 "This command counts the words in a file, using the C<wc -w> external command."
15241 msgstr ""
15242
15243 # type: =head2
15244 #: ../src/guestfs-actions.pod:6583
15245 msgid "guestfs_write"
15246 msgstr ""
15247
15248 # type: verbatim
15249 #: ../src/guestfs-actions.pod:6585
15250 #, no-wrap
15251 msgid ""
15252 " int\n"
15253 " guestfs_write (guestfs_h *g,\n"
15254 "                const char *path,\n"
15255 "                const char *content,\n"
15256 "                size_t content_size);\n"
15257 "\n"
15258 msgstr ""
15259
15260 # type: textblock
15261 #: ../src/guestfs-actions.pod:6591 ../fish/guestfish-actions.pod:4350
15262 msgid ""
15263 "This call creates a file called C<path>.  The content of the file is the "
15264 "string C<content> (which can contain any 8 bit data)."
15265 msgstr ""
15266
15267 # type: =head2
15268 #: ../src/guestfs-actions.pod:6601
15269 msgid "guestfs_write_file"
15270 msgstr ""
15271
15272 # type: verbatim
15273 #: ../src/guestfs-actions.pod:6603
15274 #, no-wrap
15275 msgid ""
15276 " int\n"
15277 " guestfs_write_file (guestfs_h *g,\n"
15278 "                     const char *path,\n"
15279 "                     const char *content,\n"
15280 "                     int size);\n"
15281 "\n"
15282 msgstr ""
15283
15284 # type: textblock
15285 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4360
15286 msgid ""
15287 "This call creates a file called C<path>.  The contents of the file is the "
15288 "string C<content> (which can contain any 8 bit data), with length C<size>."
15289 msgstr ""
15290
15291 # type: textblock
15292 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4364
15293 msgid ""
15294 "As a special case, if C<size> is C<0> then the length is calculated using "
15295 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15296 msgstr ""
15297
15298 # type: textblock
15299 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4368
15300 msgid ""
15301 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15302 "I<not> work, even if the length is specified."
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../src/guestfs-actions.pod:6625 ../fish/guestfish-actions.pod:4374
15307 msgid ""
15308 "This function is deprecated.  In new code, use the C<write> call instead."
15309 msgstr ""
15310
15311 # type: =head2
15312 #: ../src/guestfs-actions.pod:6634
15313 msgid "guestfs_zegrep"
15314 msgstr ""
15315
15316 # type: verbatim
15317 #: ../src/guestfs-actions.pod:6636
15318 #, no-wrap
15319 msgid ""
15320 " char **\n"
15321 " guestfs_zegrep (guestfs_h *g,\n"
15322 "                 const char *regex,\n"
15323 "                 const char *path);\n"
15324 "\n"
15325 msgstr ""
15326
15327 # type: textblock
15328 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4385
15329 msgid ""
15330 "This calls the external C<zegrep> program and returns the matching lines."
15331 msgstr ""
15332
15333 # type: =head2
15334 #: ../src/guestfs-actions.pod:6653
15335 msgid "guestfs_zegrepi"
15336 msgstr ""
15337
15338 # type: verbatim
15339 #: ../src/guestfs-actions.pod:6655
15340 #, no-wrap
15341 msgid ""
15342 " char **\n"
15343 " guestfs_zegrepi (guestfs_h *g,\n"
15344 "                  const char *regex,\n"
15345 "                  const char *path);\n"
15346 "\n"
15347 msgstr ""
15348
15349 # type: textblock
15350 #: ../src/guestfs-actions.pod:6660 ../fish/guestfish-actions.pod:4395
15351 msgid ""
15352 "This calls the external C<zegrep -i> program and returns the matching lines."
15353 msgstr ""
15354
15355 # type: =head2
15356 #: ../src/guestfs-actions.pod:6672
15357 msgid "guestfs_zero"
15358 msgstr ""
15359
15360 # type: verbatim
15361 #: ../src/guestfs-actions.pod:6674
15362 #, no-wrap
15363 msgid ""
15364 " int\n"
15365 " guestfs_zero (guestfs_h *g,\n"
15366 "               const char *device);\n"
15367 "\n"
15368 msgstr ""
15369
15370 # type: textblock
15371 #: ../src/guestfs-actions.pod:6678 ../fish/guestfish-actions.pod:4405
15372 msgid "This command writes zeroes over the first few blocks of C<device>."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4407
15377 msgid ""
15378 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15379 "securely wipe the device).  It should be sufficient to remove any partition "
15380 "tables, filesystem superblocks and so on."
15381 msgstr ""
15382
15383 # type: textblock
15384 #: ../src/guestfs-actions.pod:6684
15385 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15386 msgstr ""
15387
15388 # type: =head2
15389 #: ../src/guestfs-actions.pod:6695
15390 msgid "guestfs_zero_device"
15391 msgstr ""
15392
15393 # type: verbatim
15394 #: ../src/guestfs-actions.pod:6697
15395 #, no-wrap
15396 msgid ""
15397 " int\n"
15398 " guestfs_zero_device (guestfs_h *g,\n"
15399 "                      const char *device);\n"
15400 "\n"
15401 msgstr ""
15402
15403 # type: textblock
15404 #: ../src/guestfs-actions.pod:6701
15405 msgid ""
15406 "This command writes zeroes over the entire C<device>.  Compare with "
15407 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15408 msgstr ""
15409
15410 # type: textblock
15411 #: ../src/guestfs-actions.pod:6715
15412 msgid "(Added in 1.3.1)"
15413 msgstr ""
15414
15415 # type: =head2
15416 #: ../src/guestfs-actions.pod:6717
15417 msgid "guestfs_zerofree"
15418 msgstr ""
15419
15420 # type: verbatim
15421 #: ../src/guestfs-actions.pod:6719
15422 #, no-wrap
15423 msgid ""
15424 " int\n"
15425 " guestfs_zerofree (guestfs_h *g,\n"
15426 "                   const char *device);\n"
15427 "\n"
15428 msgstr ""
15429
15430 # type: textblock
15431 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4428
15432 msgid ""
15433 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15434 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15435 "possible to compress the filesystem more effectively."
15436 msgstr ""
15437
15438 # type: textblock
15439 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4433
15440 msgid "You should B<not> run this program if the filesystem is mounted."
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../src/guestfs-actions.pod:6731 ../fish/guestfish-actions.pod:4436
15445 msgid ""
15446 "It is possible that using this program can damage the filesystem or data on "
15447 "the filesystem."
15448 msgstr ""
15449
15450 # type: =head2
15451 #: ../src/guestfs-actions.pod:6738
15452 msgid "guestfs_zfgrep"
15453 msgstr ""
15454
15455 # type: verbatim
15456 #: ../src/guestfs-actions.pod:6740
15457 #, no-wrap
15458 msgid ""
15459 " char **\n"
15460 " guestfs_zfgrep (guestfs_h *g,\n"
15461 "                 const char *pattern,\n"
15462 "                 const char *path);\n"
15463 "\n"
15464 msgstr ""
15465
15466 # type: textblock
15467 #: ../src/guestfs-actions.pod:6745 ../fish/guestfish-actions.pod:4443
15468 msgid ""
15469 "This calls the external C<zfgrep> program and returns the matching lines."
15470 msgstr ""
15471
15472 # type: =head2
15473 #: ../src/guestfs-actions.pod:6757
15474 msgid "guestfs_zfgrepi"
15475 msgstr ""
15476
15477 # type: verbatim
15478 #: ../src/guestfs-actions.pod:6759
15479 #, no-wrap
15480 msgid ""
15481 " char **\n"
15482 " guestfs_zfgrepi (guestfs_h *g,\n"
15483 "                  const char *pattern,\n"
15484 "                  const char *path);\n"
15485 "\n"
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4453
15490 msgid ""
15491 "This calls the external C<zfgrep -i> program and returns the matching lines."
15492 msgstr ""
15493
15494 # type: =head2
15495 #: ../src/guestfs-actions.pod:6776
15496 msgid "guestfs_zfile"
15497 msgstr ""
15498
15499 # type: verbatim
15500 #: ../src/guestfs-actions.pod:6778
15501 #, no-wrap
15502 msgid ""
15503 " char *\n"
15504 " guestfs_zfile (guestfs_h *g,\n"
15505 "                const char *meth,\n"
15506 "                const char *path);\n"
15507 "\n"
15508 msgstr ""
15509
15510 # type: textblock
15511 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4463
15512 msgid ""
15513 "This command runs C<file> after first decompressing C<path> using C<method>."
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4466
15518 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15519 msgstr ""
15520
15521 # type: textblock
15522 #: ../src/guestfs-actions.pod:6788
15523 msgid ""
15524 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15525 "files."
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../src/guestfs-actions.pod:6794 ../fish/guestfish-actions.pod:4471
15530 msgid ""
15531 "This function is deprecated.  In new code, use the C<file> call instead."
15532 msgstr ""
15533
15534 # type: =head2
15535 #: ../src/guestfs-actions.pod:6803
15536 msgid "guestfs_zgrep"
15537 msgstr ""
15538
15539 # type: verbatim
15540 #: ../src/guestfs-actions.pod:6805
15541 #, no-wrap
15542 msgid ""
15543 " char **\n"
15544 " guestfs_zgrep (guestfs_h *g,\n"
15545 "                const char *regex,\n"
15546 "                const char *path);\n"
15547 "\n"
15548 msgstr ""
15549
15550 # type: textblock
15551 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4482
15552 msgid ""
15553 "This calls the external C<zgrep> program and returns the matching lines."
15554 msgstr ""
15555
15556 # type: =head2
15557 #: ../src/guestfs-actions.pod:6822
15558 msgid "guestfs_zgrepi"
15559 msgstr ""
15560
15561 # type: verbatim
15562 #: ../src/guestfs-actions.pod:6824
15563 #, no-wrap
15564 msgid ""
15565 " char **\n"
15566 " guestfs_zgrepi (guestfs_h *g,\n"
15567 "                 const char *regex,\n"
15568 "                 const char *path);\n"
15569 "\n"
15570 msgstr ""
15571
15572 # type: textblock
15573 #: ../src/guestfs-actions.pod:6829 ../fish/guestfish-actions.pod:4492
15574 msgid ""
15575 "This calls the external C<zgrep -i> program and returns the matching lines."
15576 msgstr ""
15577
15578 # type: =item
15579 #: ../src/guestfs-availability.pod:3
15580 msgid "B<augeas>"
15581 msgstr ""
15582
15583 # type: textblock
15584 #: ../src/guestfs-availability.pod:5
15585 msgid ""
15586 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
15587 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
15588 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
15589 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
15590 "L</guestfs_aug_save> L</guestfs_aug_set>"
15591 msgstr ""
15592
15593 # type: =item
15594 #: ../src/guestfs-availability.pod:21
15595 msgid "B<inotify>"
15596 msgstr ""
15597
15598 # type: textblock
15599 #: ../src/guestfs-availability.pod:23
15600 msgid ""
15601 "The following functions: L</guestfs_inotify_add_watch> L</"
15602 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
15603 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15604 msgstr ""
15605
15606 # type: =item
15607 #: ../src/guestfs-availability.pod:31
15608 msgid "B<linuxfsuuid>"
15609 msgstr ""
15610
15611 # type: textblock
15612 #: ../src/guestfs-availability.pod:33
15613 msgid ""
15614 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15615 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15616 msgstr ""
15617
15618 # type: =item
15619 #: ../src/guestfs-availability.pod:40
15620 msgid "B<linuxmodules>"
15621 msgstr ""
15622
15623 # type: textblock
15624 #: ../src/guestfs-availability.pod:42
15625 msgid "The following functions: L</guestfs_modprobe>"
15626 msgstr ""
15627
15628 # type: =item
15629 #: ../src/guestfs-availability.pod:45
15630 msgid "B<linuxxattrs>"
15631 msgstr ""
15632
15633 # type: textblock
15634 #: ../src/guestfs-availability.pod:47
15635 msgid ""
15636 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15637 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15638 "guestfs_removexattr> L</guestfs_setxattr>"
15639 msgstr ""
15640
15641 # type: =item
15642 #: ../src/guestfs-availability.pod:56
15643 msgid "B<luks>"
15644 msgstr ""
15645
15646 # type: textblock
15647 #: ../src/guestfs-availability.pod:58
15648 msgid ""
15649 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15650 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15651 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15652 msgstr ""
15653
15654 # type: =item
15655 #: ../src/guestfs-availability.pod:67
15656 msgid "B<lvm2>"
15657 msgstr ""
15658
15659 # type: textblock
15660 #: ../src/guestfs-availability.pod:69
15661 msgid ""
15662 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15663 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15664 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15665 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15666 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15667 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15668 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15669 msgstr ""
15670
15671 # type: =item
15672 #: ../src/guestfs-availability.pod:92
15673 msgid "B<mknod>"
15674 msgstr ""
15675
15676 # type: textblock
15677 #: ../src/guestfs-availability.pod:94
15678 msgid ""
15679 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15680 "guestfs_mknod_b> L</guestfs_mknod_c>"
15681 msgstr ""
15682
15683 # type: =item
15684 #: ../src/guestfs-availability.pod:100
15685 msgid "B<ntfs3g>"
15686 msgstr ""
15687
15688 # type: textblock
15689 #: ../src/guestfs-availability.pod:102
15690 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15691 msgstr ""
15692
15693 # type: =item
15694 #: ../src/guestfs-availability.pod:105
15695 msgid "B<ntfsprogs>"
15696 msgstr ""
15697
15698 # type: textblock
15699 #: ../src/guestfs-availability.pod:107
15700 msgid ""
15701 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15702 msgstr ""
15703
15704 # type: =item
15705 #: ../src/guestfs-availability.pod:111
15706 msgid "B<realpath>"
15707 msgstr ""
15708
15709 # type: textblock
15710 #: ../src/guestfs-availability.pod:113
15711 msgid "The following functions: L</guestfs_realpath>"
15712 msgstr ""
15713
15714 # type: =item
15715 #: ../src/guestfs-availability.pod:116
15716 msgid "B<scrub>"
15717 msgstr ""
15718
15719 # type: textblock
15720 #: ../src/guestfs-availability.pod:118
15721 msgid ""
15722 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15723 "guestfs_scrub_freespace>"
15724 msgstr ""
15725
15726 # type: =item
15727 #: ../src/guestfs-availability.pod:123
15728 msgid "B<selinux>"
15729 msgstr ""
15730
15731 # type: textblock
15732 #: ../src/guestfs-availability.pod:125
15733 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15734 msgstr ""
15735
15736 # type: =item
15737 #: ../src/guestfs-availability.pod:129
15738 msgid "B<xz>"
15739 msgstr ""
15740
15741 # type: textblock
15742 #: ../src/guestfs-availability.pod:131
15743 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15744 msgstr ""
15745
15746 # type: =item
15747 #: ../src/guestfs-availability.pod:135
15748 msgid "B<zerofree>"
15749 msgstr ""
15750
15751 # type: textblock
15752 #: ../src/guestfs-availability.pod:137
15753 msgid "The following functions: L</guestfs_zerofree>"
15754 msgstr ""
15755
15756 # type: =head2
15757 #: ../src/guestfs-structs.pod:1
15758 msgid "guestfs_int_bool"
15759 msgstr ""
15760
15761 # type: verbatim
15762 #: ../src/guestfs-structs.pod:3
15763 #, no-wrap
15764 msgid ""
15765 " struct guestfs_int_bool {\n"
15766 "   int32_t i;\n"
15767 "   int32_t b;\n"
15768 " };\n"
15769 " \n"
15770 msgstr ""
15771
15772 # type: verbatim
15773 #: ../src/guestfs-structs.pod:8
15774 #, no-wrap
15775 msgid ""
15776 " struct guestfs_int_bool_list {\n"
15777 "   uint32_t len; /* Number of elements in list. */\n"
15778 "   struct guestfs_int_bool *val; /* Elements. */\n"
15779 " };\n"
15780 " \n"
15781 msgstr ""
15782
15783 # type: verbatim
15784 #: ../src/guestfs-structs.pod:13
15785 #, no-wrap
15786 msgid ""
15787 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15788 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15789 "\n"
15790 msgstr ""
15791
15792 # type: =head2
15793 #: ../src/guestfs-structs.pod:16
15794 msgid "guestfs_lvm_pv"
15795 msgstr ""
15796
15797 # type: verbatim
15798 #: ../src/guestfs-structs.pod:18
15799 #, no-wrap
15800 msgid ""
15801 " struct guestfs_lvm_pv {\n"
15802 "   char *pv_name;\n"
15803 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15804 "   char pv_uuid[32];\n"
15805 "   char *pv_fmt;\n"
15806 "   uint64_t pv_size;\n"
15807 "   uint64_t dev_size;\n"
15808 "   uint64_t pv_free;\n"
15809 "   uint64_t pv_used;\n"
15810 "   char *pv_attr;\n"
15811 "   int64_t pv_pe_count;\n"
15812 "   int64_t pv_pe_alloc_count;\n"
15813 "   char *pv_tags;\n"
15814 "   uint64_t pe_start;\n"
15815 "   int64_t pv_mda_count;\n"
15816 "   uint64_t pv_mda_free;\n"
15817 " };\n"
15818 " \n"
15819 msgstr ""
15820
15821 # type: verbatim
15822 #: ../src/guestfs-structs.pod:36
15823 #, no-wrap
15824 msgid ""
15825 " struct guestfs_lvm_pv_list {\n"
15826 "   uint32_t len; /* Number of elements in list. */\n"
15827 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15828 " };\n"
15829 " \n"
15830 msgstr ""
15831
15832 # type: verbatim
15833 #: ../src/guestfs-structs.pod:41
15834 #, no-wrap
15835 msgid ""
15836 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15837 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15838 "\n"
15839 msgstr ""
15840
15841 # type: =head2
15842 #: ../src/guestfs-structs.pod:44
15843 msgid "guestfs_lvm_vg"
15844 msgstr ""
15845
15846 # type: verbatim
15847 #: ../src/guestfs-structs.pod:46
15848 #, no-wrap
15849 msgid ""
15850 " struct guestfs_lvm_vg {\n"
15851 "   char *vg_name;\n"
15852 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15853 "   char vg_uuid[32];\n"
15854 "   char *vg_fmt;\n"
15855 "   char *vg_attr;\n"
15856 "   uint64_t vg_size;\n"
15857 "   uint64_t vg_free;\n"
15858 "   char *vg_sysid;\n"
15859 "   uint64_t vg_extent_size;\n"
15860 "   int64_t vg_extent_count;\n"
15861 "   int64_t vg_free_count;\n"
15862 "   int64_t max_lv;\n"
15863 "   int64_t max_pv;\n"
15864 "   int64_t pv_count;\n"
15865 "   int64_t lv_count;\n"
15866 "   int64_t snap_count;\n"
15867 "   int64_t vg_seqno;\n"
15868 "   char *vg_tags;\n"
15869 "   int64_t vg_mda_count;\n"
15870 "   uint64_t vg_mda_free;\n"
15871 " };\n"
15872 " \n"
15873 msgstr ""
15874
15875 # type: verbatim
15876 #: ../src/guestfs-structs.pod:69
15877 #, no-wrap
15878 msgid ""
15879 " struct guestfs_lvm_vg_list {\n"
15880 "   uint32_t len; /* Number of elements in list. */\n"
15881 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15882 " };\n"
15883 " \n"
15884 msgstr ""
15885
15886 # type: verbatim
15887 #: ../src/guestfs-structs.pod:74
15888 #, no-wrap
15889 msgid ""
15890 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15891 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15892 "\n"
15893 msgstr ""
15894
15895 # type: =head2
15896 #: ../src/guestfs-structs.pod:77
15897 msgid "guestfs_lvm_lv"
15898 msgstr ""
15899
15900 # type: verbatim
15901 #: ../src/guestfs-structs.pod:79
15902 #, no-wrap
15903 msgid ""
15904 " struct guestfs_lvm_lv {\n"
15905 "   char *lv_name;\n"
15906 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15907 "   char lv_uuid[32];\n"
15908 "   char *lv_attr;\n"
15909 "   int64_t lv_major;\n"
15910 "   int64_t lv_minor;\n"
15911 "   int64_t lv_kernel_major;\n"
15912 "   int64_t lv_kernel_minor;\n"
15913 "   uint64_t lv_size;\n"
15914 "   int64_t seg_count;\n"
15915 "   char *origin;\n"
15916 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15917 "   float snap_percent;\n"
15918 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15919 "   float copy_percent;\n"
15920 "   char *move_pv;\n"
15921 "   char *lv_tags;\n"
15922 "   char *mirror_log;\n"
15923 "   char *modules;\n"
15924 " };\n"
15925 " \n"
15926 msgstr ""
15927
15928 # type: verbatim
15929 #: ../src/guestfs-structs.pod:101
15930 #, no-wrap
15931 msgid ""
15932 " struct guestfs_lvm_lv_list {\n"
15933 "   uint32_t len; /* Number of elements in list. */\n"
15934 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15935 " };\n"
15936 " \n"
15937 msgstr ""
15938
15939 # type: verbatim
15940 #: ../src/guestfs-structs.pod:106
15941 #, no-wrap
15942 msgid ""
15943 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15944 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15945 "\n"
15946 msgstr ""
15947
15948 # type: verbatim
15949 #: ../src/guestfs-structs.pod:111
15950 #, no-wrap
15951 msgid ""
15952 " struct guestfs_stat {\n"
15953 "   int64_t dev;\n"
15954 "   int64_t ino;\n"
15955 "   int64_t mode;\n"
15956 "   int64_t nlink;\n"
15957 "   int64_t uid;\n"
15958 "   int64_t gid;\n"
15959 "   int64_t rdev;\n"
15960 "   int64_t size;\n"
15961 "   int64_t blksize;\n"
15962 "   int64_t blocks;\n"
15963 "   int64_t atime;\n"
15964 "   int64_t mtime;\n"
15965 "   int64_t ctime;\n"
15966 " };\n"
15967 " \n"
15968 msgstr ""
15969
15970 # type: verbatim
15971 #: ../src/guestfs-structs.pod:127
15972 #, no-wrap
15973 msgid ""
15974 " struct guestfs_stat_list {\n"
15975 "   uint32_t len; /* Number of elements in list. */\n"
15976 "   struct guestfs_stat *val; /* Elements. */\n"
15977 " };\n"
15978 " \n"
15979 msgstr ""
15980
15981 # type: verbatim
15982 #: ../src/guestfs-structs.pod:132
15983 #, no-wrap
15984 msgid ""
15985 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15986 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15987 "\n"
15988 msgstr ""
15989
15990 # type: verbatim
15991 #: ../src/guestfs-structs.pod:137
15992 #, no-wrap
15993 msgid ""
15994 " struct guestfs_statvfs {\n"
15995 "   int64_t bsize;\n"
15996 "   int64_t frsize;\n"
15997 "   int64_t blocks;\n"
15998 "   int64_t bfree;\n"
15999 "   int64_t bavail;\n"
16000 "   int64_t files;\n"
16001 "   int64_t ffree;\n"
16002 "   int64_t favail;\n"
16003 "   int64_t fsid;\n"
16004 "   int64_t flag;\n"
16005 "   int64_t namemax;\n"
16006 " };\n"
16007 " \n"
16008 msgstr ""
16009
16010 # type: verbatim
16011 #: ../src/guestfs-structs.pod:151
16012 #, no-wrap
16013 msgid ""
16014 " struct guestfs_statvfs_list {\n"
16015 "   uint32_t len; /* Number of elements in list. */\n"
16016 "   struct guestfs_statvfs *val; /* Elements. */\n"
16017 " };\n"
16018 " \n"
16019 msgstr ""
16020
16021 # type: verbatim
16022 #: ../src/guestfs-structs.pod:156
16023 #, no-wrap
16024 msgid ""
16025 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16026 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16027 "\n"
16028 msgstr ""
16029
16030 # type: =head2
16031 #: ../src/guestfs-structs.pod:159
16032 msgid "guestfs_dirent"
16033 msgstr ""
16034
16035 # type: verbatim
16036 #: ../src/guestfs-structs.pod:161
16037 #, no-wrap
16038 msgid ""
16039 " struct guestfs_dirent {\n"
16040 "   int64_t ino;\n"
16041 "   char ftyp;\n"
16042 "   char *name;\n"
16043 " };\n"
16044 " \n"
16045 msgstr ""
16046
16047 # type: verbatim
16048 #: ../src/guestfs-structs.pod:167
16049 #, no-wrap
16050 msgid ""
16051 " struct guestfs_dirent_list {\n"
16052 "   uint32_t len; /* Number of elements in list. */\n"
16053 "   struct guestfs_dirent *val; /* Elements. */\n"
16054 " };\n"
16055 " \n"
16056 msgstr ""
16057
16058 # type: verbatim
16059 #: ../src/guestfs-structs.pod:172
16060 #, no-wrap
16061 msgid ""
16062 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16063 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16064 "\n"
16065 msgstr ""
16066
16067 # type: verbatim
16068 #: ../src/guestfs-structs.pod:177
16069 #, no-wrap
16070 msgid ""
16071 " struct guestfs_version {\n"
16072 "   int64_t major;\n"
16073 "   int64_t minor;\n"
16074 "   int64_t release;\n"
16075 "   char *extra;\n"
16076 " };\n"
16077 " \n"
16078 msgstr ""
16079
16080 # type: verbatim
16081 #: ../src/guestfs-structs.pod:184
16082 #, no-wrap
16083 msgid ""
16084 " struct guestfs_version_list {\n"
16085 "   uint32_t len; /* Number of elements in list. */\n"
16086 "   struct guestfs_version *val; /* Elements. */\n"
16087 " };\n"
16088 " \n"
16089 msgstr ""
16090
16091 # type: verbatim
16092 #: ../src/guestfs-structs.pod:189
16093 #, no-wrap
16094 msgid ""
16095 " void guestfs_free_version (struct guestfs_free_version *);\n"
16096 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16097 "\n"
16098 msgstr ""
16099
16100 # type: =head2
16101 #: ../src/guestfs-structs.pod:192
16102 msgid "guestfs_xattr"
16103 msgstr ""
16104
16105 # type: verbatim
16106 #: ../src/guestfs-structs.pod:194
16107 #, no-wrap
16108 msgid ""
16109 " struct guestfs_xattr {\n"
16110 "   char *attrname;\n"
16111 "   /* The next two fields describe a byte array. */\n"
16112 "   uint32_t attrval_len;\n"
16113 "   char *attrval;\n"
16114 " };\n"
16115 " \n"
16116 msgstr ""
16117
16118 # type: verbatim
16119 #: ../src/guestfs-structs.pod:201
16120 #, no-wrap
16121 msgid ""
16122 " struct guestfs_xattr_list {\n"
16123 "   uint32_t len; /* Number of elements in list. */\n"
16124 "   struct guestfs_xattr *val; /* Elements. */\n"
16125 " };\n"
16126 " \n"
16127 msgstr ""
16128
16129 # type: verbatim
16130 #: ../src/guestfs-structs.pod:206
16131 #, no-wrap
16132 msgid ""
16133 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16134 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16135 "\n"
16136 msgstr ""
16137
16138 # type: =head2
16139 #: ../src/guestfs-structs.pod:209
16140 msgid "guestfs_inotify_event"
16141 msgstr ""
16142
16143 # type: verbatim
16144 #: ../src/guestfs-structs.pod:211
16145 #, no-wrap
16146 msgid ""
16147 " struct guestfs_inotify_event {\n"
16148 "   int64_t in_wd;\n"
16149 "   uint32_t in_mask;\n"
16150 "   uint32_t in_cookie;\n"
16151 "   char *in_name;\n"
16152 " };\n"
16153 " \n"
16154 msgstr ""
16155
16156 # type: verbatim
16157 #: ../src/guestfs-structs.pod:218
16158 #, no-wrap
16159 msgid ""
16160 " struct guestfs_inotify_event_list {\n"
16161 "   uint32_t len; /* Number of elements in list. */\n"
16162 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16163 " };\n"
16164 " \n"
16165 msgstr ""
16166
16167 # type: verbatim
16168 #: ../src/guestfs-structs.pod:223
16169 #, no-wrap
16170 msgid ""
16171 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16172 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16173 "\n"
16174 msgstr ""
16175
16176 # type: =head2
16177 #: ../src/guestfs-structs.pod:226
16178 msgid "guestfs_partition"
16179 msgstr ""
16180
16181 # type: verbatim
16182 #: ../src/guestfs-structs.pod:228
16183 #, no-wrap
16184 msgid ""
16185 " struct guestfs_partition {\n"
16186 "   int32_t part_num;\n"
16187 "   uint64_t part_start;\n"
16188 "   uint64_t part_end;\n"
16189 "   uint64_t part_size;\n"
16190 " };\n"
16191 " \n"
16192 msgstr ""
16193
16194 # type: verbatim
16195 #: ../src/guestfs-structs.pod:235
16196 #, no-wrap
16197 msgid ""
16198 " struct guestfs_partition_list {\n"
16199 "   uint32_t len; /* Number of elements in list. */\n"
16200 "   struct guestfs_partition *val; /* Elements. */\n"
16201 " };\n"
16202 " \n"
16203 msgstr ""
16204
16205 # type: verbatim
16206 #: ../src/guestfs-structs.pod:240
16207 #, no-wrap
16208 msgid ""
16209 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16210 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16211 "\n"
16212 msgstr ""
16213
16214 # type: textblock
16215 #: ../fish/guestfish.pod:5
16216 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16217 msgstr ""
16218
16219 # type: verbatim
16220 #: ../fish/guestfish.pod:9
16221 #, no-wrap
16222 msgid ""
16223 " guestfish [--options] [commands]\n"
16224 "\n"
16225 msgstr ""
16226
16227 # type: verbatim
16228 #: ../fish/guestfish.pod:11
16229 #, no-wrap
16230 msgid ""
16231 " guestfish\n"
16232 "\n"
16233 msgstr ""
16234
16235 # type: verbatim
16236 #: ../fish/guestfish.pod:13
16237 #, no-wrap
16238 msgid ""
16239 " guestfish [--ro|--rw] -a disk.img\n"
16240 "\n"
16241 msgstr ""
16242
16243 # type: verbatim
16244 #: ../fish/guestfish.pod:15
16245 #, no-wrap
16246 msgid ""
16247 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16248 "\n"
16249 msgstr ""
16250
16251 # type: verbatim
16252 #: ../fish/guestfish.pod:17
16253 #, no-wrap
16254 msgid ""
16255 " guestfish -d libvirt-domain\n"
16256 "\n"
16257 msgstr ""
16258
16259 # type: verbatim
16260 #: ../fish/guestfish.pod:19
16261 #, no-wrap
16262 msgid ""
16263 " guestfish [--ro|--rw] -a disk.img -i\n"
16264 "\n"
16265 msgstr ""
16266
16267 # type: verbatim
16268 #: ../fish/guestfish.pod:21
16269 #, no-wrap
16270 msgid ""
16271 " guestfish -d libvirt-domain -i\n"
16272 "\n"
16273 msgstr ""
16274
16275 # type: =head1
16276 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
16277 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16278 #: ../tools/virt-rescue.pl:41
16279 msgid "WARNING"
16280 msgstr ""
16281
16282 # type: textblock
16283 #: ../fish/guestfish.pod:25
16284 msgid ""
16285 "Using guestfish in read/write mode on live virtual machines can be "
16286 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16287 "option to use guestfish safely if the disk image or virtual machine might be "
16288 "live."
16289 msgstr ""
16290
16291 # type: textblock
16292 #: ../fish/guestfish.pod:32
16293 msgid ""
16294 "Guestfish is a shell and command-line tool for examining and modifying "
16295 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16296 "functionality of the guestfs API, see L<guestfs(3)>."
16297 msgstr ""
16298
16299 # type: textblock
16300 #: ../fish/guestfish.pod:36
16301 msgid ""
16302 "Guestfish gives you structured access to the libguestfs API, from shell "
16303 "scripts or the command line or interactively.  If you want to rescue a "
16304 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16305 "command."
16306 msgstr ""
16307
16308 # type: =head1
16309 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846
16310 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
16311 #: ../tools/virt-resize.pl:66 ../tools/virt-tar.pl:45
16312 msgid "EXAMPLES"
16313 msgstr ""
16314
16315 # type: =head2
16316 #: ../fish/guestfish.pod:43
16317 msgid "As an interactive shell"
16318 msgstr ""
16319
16320 # type: verbatim
16321 #: ../fish/guestfish.pod:45
16322 #, no-wrap
16323 msgid ""
16324 " $ guestfish\n"
16325 " \n"
16326 msgstr ""
16327
16328 # type: verbatim
16329 #: ../fish/guestfish.pod:47
16330 #, no-wrap
16331 msgid ""
16332 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16333 " editing virtual machine filesystems.\n"
16334 " \n"
16335 msgstr ""
16336
16337 # type: verbatim
16338 #: ../fish/guestfish.pod:50
16339 #, no-wrap
16340 msgid ""
16341 " Type: 'help' for a list of commands\n"
16342 "       'man' to read the manual\n"
16343 "       'quit' to quit the shell\n"
16344 " \n"
16345 msgstr ""
16346
16347 # type: verbatim
16348 #: ../fish/guestfish.pod:54
16349 #, no-wrap
16350 msgid ""
16351 " ><fs> add-ro disk.img\n"
16352 " ><fs> run\n"
16353 " ><fs> list-filesystems\n"
16354 " /dev/sda1: ext4\n"
16355 " /dev/vg_guest/lv_root: ext4\n"
16356 " /dev/vg_guest/lv_swap: swap\n"
16357 " ><fs> mount /dev/vg_guest/lv_root /\n"
16358 " ><fs> cat /etc/fstab\n"
16359 " # /etc/fstab\n"
16360 " # Created by anaconda\n"
16361 " [...]\n"
16362 " ><fs> exit\n"
16363 "\n"
16364 msgstr ""
16365
16366 # type: =head2
16367 #: ../fish/guestfish.pod:67
16368 msgid "From shell scripts"
16369 msgstr ""
16370
16371 # type: textblock
16372 #: ../fish/guestfish.pod:69
16373 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16374 msgstr ""
16375
16376 # type: verbatim
16377 #: ../fish/guestfish.pod:71
16378 #, no-wrap
16379 msgid ""
16380 " guestfish <<_EOF_\n"
16381 " add disk.img\n"
16382 " run\n"
16383 " mount /dev/vg_guest/lv_root /\n"
16384 " write /etc/motd \"Welcome, new users\"\n"
16385 " _EOF_\n"
16386 "\n"
16387 msgstr ""
16388
16389 # type: textblock
16390 #: ../fish/guestfish.pod:78
16391 msgid "List the LVM logical volumes in a disk image:"
16392 msgstr ""
16393
16394 # type: verbatim
16395 #: ../fish/guestfish.pod:80
16396 #, no-wrap
16397 msgid ""
16398 " guestfish -a disk.img --ro <<_EOF_\n"
16399 " run\n"
16400 " lvs\n"
16401 " _EOF_\n"
16402 "\n"
16403 msgstr ""
16404
16405 # type: textblock
16406 #: ../fish/guestfish.pod:85
16407 msgid "List all the filesystems in a disk image:"
16408 msgstr ""
16409
16410 # type: verbatim
16411 #: ../fish/guestfish.pod:87
16412 #, no-wrap
16413 msgid ""
16414 " guestfish -a disk.img --ro <<_EOF_\n"
16415 " run\n"
16416 " list-filesystems\n"
16417 " _EOF_\n"
16418 "\n"
16419 msgstr ""
16420
16421 # type: =head2
16422 #: ../fish/guestfish.pod:92
16423 msgid "On one command line"
16424 msgstr ""
16425
16426 # type: textblock
16427 #: ../fish/guestfish.pod:94
16428 msgid "Update C</etc/resolv.conf> in a guest:"
16429 msgstr ""
16430
16431 # type: verbatim
16432 #: ../fish/guestfish.pod:96
16433 #, no-wrap
16434 msgid ""
16435 " guestfish \\\n"
16436 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16437 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16438 "\n"
16439 msgstr ""
16440
16441 # type: textblock
16442 #: ../fish/guestfish.pod:100
16443 msgid "Edit C</boot/grub/grub.conf> interactively:"
16444 msgstr ""
16445
16446 # type: verbatim
16447 #: ../fish/guestfish.pod:102
16448 #, no-wrap
16449 msgid ""
16450 " guestfish --rw --add disk.img \\\n"
16451 "   --mount /dev/vg_guest/lv_root \\\n"
16452 "   --mount /dev/sda1:/boot \\\n"
16453 "   edit /boot/grub/grub.conf\n"
16454 "\n"
16455 msgstr ""
16456
16457 # type: =head2
16458 #: ../fish/guestfish.pod:107
16459 msgid "Mount disks automatically"
16460 msgstr ""
16461
16462 # type: textblock
16463 #: ../fish/guestfish.pod:109
16464 msgid ""
16465 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16466 msgstr ""
16467
16468 # type: verbatim
16469 #: ../fish/guestfish.pod:112
16470 #, no-wrap
16471 msgid ""
16472 " guestfish --ro -a disk.img -i cat /etc/group\n"
16473 "\n"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../fish/guestfish.pod:114
16478 #, no-wrap
16479 msgid ""
16480 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16481 "\n"
16482 msgstr ""
16483
16484 # type: textblock
16485 #: ../fish/guestfish.pod:116
16486 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16487 msgstr ""
16488
16489 # type: verbatim
16490 #: ../fish/guestfish.pod:118
16491 #, no-wrap
16492 msgid ""
16493 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16494 "\n"
16495 msgstr ""
16496
16497 # type: =head2
16498 #: ../fish/guestfish.pod:120
16499 msgid "As a script interpreter"
16500 msgstr ""
16501
16502 # type: textblock
16503 #: ../fish/guestfish.pod:122
16504 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16505 msgstr ""
16506
16507 # type: verbatim
16508 #: ../fish/guestfish.pod:124
16509 #, no-wrap
16510 msgid ""
16511 " #!/usr/bin/guestfish -f\n"
16512 " sparse test1.img 100M\n"
16513 " run\n"
16514 " part-disk /dev/sda mbr\n"
16515 " mkfs ext2 /dev/sda1\n"
16516 "\n"
16517 msgstr ""
16518
16519 # type: =head2
16520 #: ../fish/guestfish.pod:130
16521 msgid "Start with a prepared disk"
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:132
16526 msgid ""
16527 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16528 "single ext2-formatted partition:"
16529 msgstr ""
16530
16531 # type: verbatim
16532 #: ../fish/guestfish.pod:135
16533 #, no-wrap
16534 msgid ""
16535 " guestfish -N fs\n"
16536 "\n"
16537 msgstr ""
16538
16539 # type: textblock
16540 #: ../fish/guestfish.pod:137
16541 msgid "To list what is available do:"
16542 msgstr ""
16543
16544 # type: verbatim
16545 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16546 #, no-wrap
16547 msgid ""
16548 " guestfish -N help | less\n"
16549 "\n"
16550 msgstr ""
16551
16552 # type: =head2
16553 #: ../fish/guestfish.pod:141
16554 msgid "Remote control"
16555 msgstr ""
16556
16557 # type: verbatim
16558 #: ../fish/guestfish.pod:143
16559 #, no-wrap
16560 msgid ""
16561 " eval \"`guestfish --listen`\"\n"
16562 " guestfish --remote add-ro disk.img\n"
16563 " guestfish --remote run\n"
16564 " guestfish --remote lvs\n"
16565 "\n"
16566 msgstr ""
16567
16568 # type: =head1
16569 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
16570 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
16571 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
16572 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
16573 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-tar.pl:98
16574 #: ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153
16575 #: ../tools/virt-list-partitions.pl:51
16576 msgid "OPTIONS"
16577 msgstr ""
16578
16579 # type: =item
16580 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
16581 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
16582 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
16583 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
16584 #: ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111
16585 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16586 msgid "B<--help>"
16587 msgstr ""
16588
16589 # type: textblock
16590 #: ../fish/guestfish.pod:154
16591 msgid "Displays general help on options."
16592 msgstr ""
16593
16594 # type: =item
16595 #: ../fish/guestfish.pod:156
16596 msgid "B<-h> | B<--cmd-help>"
16597 msgstr ""
16598
16599 # type: textblock
16600 #: ../fish/guestfish.pod:158
16601 msgid "Lists all available guestfish commands."
16602 msgstr ""
16603
16604 # type: =item
16605 #: ../fish/guestfish.pod:160
16606 msgid "B<-h cmd> | B<--cmd-help cmd>"
16607 msgstr ""
16608
16609 # type: textblock
16610 #: ../fish/guestfish.pod:162
16611 msgid "Displays detailed help on a single command C<cmd>."
16612 msgstr ""
16613
16614 # type: =item
16615 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16616 msgid "B<-a image> | B<--add image>"
16617 msgstr ""
16618
16619 # type: textblock
16620 #: ../fish/guestfish.pod:166
16621 msgid "Add a block device or virtual machine image to the shell."
16622 msgstr ""
16623
16624 # type: textblock
16625 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16626 msgid ""
16627 "The format of the disk image is auto-detected.  To override this and force a "
16628 "particular format use the I<--format=..> option."
16629 msgstr ""
16630
16631 # type: =item
16632 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16633 msgid "B<-c URI> | B<--connect URI>"
16634 msgstr ""
16635
16636 # type: textblock
16637 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16638 msgid ""
16639 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16640 "URI to use.  The default is to use the default libvirt connection."
16641 msgstr ""
16642
16643 # type: =item
16644 #: ../fish/guestfish.pod:177
16645 msgid "B<--csh>"
16646 msgstr ""
16647
16648 # type: textblock
16649 #: ../fish/guestfish.pod:179
16650 msgid ""
16651 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16652 "section L</REMOTE CONTROL AND CSH> below."
16653 msgstr ""
16654
16655 # type: =item
16656 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16657 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16658 msgstr ""
16659
16660 # type: textblock
16661 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16662 msgid ""
16663 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16664 "used, then any libvirt domain can be used.  However in write mode, only "
16665 "libvirt domains which are shut down can be named here."
16666 msgstr ""
16667
16668 # type: =item
16669 #: ../fish/guestfish.pod:188
16670 msgid "B<-D> | B<--no-dest-paths>"
16671 msgstr ""
16672
16673 # type: textblock
16674 #: ../fish/guestfish.pod:190
16675 msgid ""
16676 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16677 "to hit the tab key to complete paths on the guest filesystem, but this "
16678 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16679 "allow this feature to be disabled."
16680 msgstr ""
16681
16682 # type: =item
16683 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16684 msgid "B<--echo-keys>"
16685 msgstr ""
16686
16687 # type: textblock
16688 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16689 msgid ""
16690 "When prompting for keys and passphrases, guestfish normally turns echoing "
16691 "off so you cannot see what you are typing.  If you are not worried about "
16692 "Tempest attacks and there is no one else in the room you can specify this "
16693 "flag to see what you are typing."
16694 msgstr ""
16695
16696 # type: =item
16697 #: ../fish/guestfish.pod:202
16698 msgid "B<-f file> | B<--file file>"
16699 msgstr ""
16700
16701 # type: textblock
16702 #: ../fish/guestfish.pod:204
16703 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16704 msgstr ""
16705
16706 # type: verbatim
16707 #: ../fish/guestfish.pod:207
16708 #, no-wrap
16709 msgid ""
16710 " #!/usr/bin/guestfish -f\n"
16711 "\n"
16712 msgstr ""
16713
16714 # type: =item
16715 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16716 msgid "B<--format=raw|qcow2|..> | B<--format>"
16717 msgstr ""
16718
16719 # type: textblock
16720 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16721 msgid ""
16722 "The default for the I<-a> option is to auto-detect the format of the disk "
16723 "image.  Using this forces the disk format for I<-a> options which follow on "
16724 "the command line.  Using I<--format> with no argument switches back to auto-"
16725 "detection for subsequent I<-a> options."
16726 msgstr ""
16727
16728 # type: textblock
16729 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543
16730 #: ../inspector/virt-inspector.pl:549
16731 msgid "For example:"
16732 msgstr ""
16733
16734 # type: verbatim
16735 #: ../fish/guestfish.pod:218
16736 #, no-wrap
16737 msgid ""
16738 " guestfish --format=raw -a disk.img\n"
16739 "\n"
16740 msgstr ""
16741
16742 # type: textblock
16743 #: ../fish/guestfish.pod:220
16744 msgid "forces raw format (no auto-detection) for C<disk.img>."
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../fish/guestfish.pod:222
16749 #, no-wrap
16750 msgid ""
16751 " guestfish --format=raw -a disk.img --format -a another.img\n"
16752 "\n"
16753 msgstr ""
16754
16755 # type: textblock
16756 #: ../fish/guestfish.pod:224
16757 msgid ""
16758 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16759 "detection for C<another.img>."
16760 msgstr ""
16761
16762 # type: textblock
16763 #: ../fish/guestfish.pod:227
16764 msgid ""
16765 "If you have untrusted raw-format guest disk images, you should use this "
16766 "option to specify the disk format.  This avoids a possible security problem "
16767 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16768 msgstr ""
16769
16770 # type: =item
16771 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16772 msgid "B<-i> | B<--inspector>"
16773 msgstr ""
16774
16775 # type: textblock
16776 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16777 msgid ""
16778 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16779 "system and mount filesystems as they would be mounted on the real virtual "
16780 "machine."
16781 msgstr ""
16782
16783 # type: textblock
16784 #: ../fish/guestfish.pod:238
16785 msgid "Typical usage is either:"
16786 msgstr ""
16787
16788 # type: verbatim
16789 #: ../fish/guestfish.pod:240
16790 #, no-wrap
16791 msgid ""
16792 " guestfish -d myguest -i\n"
16793 "\n"
16794 msgstr ""
16795
16796 # type: textblock
16797 #: ../fish/guestfish.pod:242
16798 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16799 msgstr ""
16800
16801 # type: verbatim
16802 #: ../fish/guestfish.pod:244
16803 #, no-wrap
16804 msgid ""
16805 " guestfish --ro -d myguest -i\n"
16806 "\n"
16807 msgstr ""
16808
16809 # type: textblock
16810 #: ../fish/guestfish.pod:246
16811 msgid "(for active domains, readonly), or specify the block device directly:"
16812 msgstr ""
16813
16814 # type: verbatim
16815 #: ../fish/guestfish.pod:248
16816 #, no-wrap
16817 msgid ""
16818 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16819 "\n"
16820 msgstr ""
16821
16822 # type: textblock
16823 #: ../fish/guestfish.pod:250
16824 msgid ""
16825 "Note that the command line syntax changed slightly over older versions of "
16826 "guestfish.  You can still use the old syntax:"
16827 msgstr ""
16828
16829 # type: verbatim
16830 #: ../fish/guestfish.pod:253
16831 #, no-wrap
16832 msgid ""
16833 " guestfish [--ro] -i disk.img\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: verbatim
16838 #: ../fish/guestfish.pod:255
16839 #, no-wrap
16840 msgid ""
16841 " guestfish [--ro] -i libvirt-domain\n"
16842 "\n"
16843 msgstr ""
16844
16845 # type: =item
16846 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16847 msgid "B<--keys-from-stdin>"
16848 msgstr ""
16849
16850 # type: textblock
16851 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16852 msgid ""
16853 "Read key or passphrase parameters from stdin.  The default is to try to read "
16854 "passphrases from the user by opening C</dev/tty>."
16855 msgstr ""
16856
16857 # type: =item
16858 #: ../fish/guestfish.pod:262
16859 msgid "B<--listen>"
16860 msgstr ""
16861
16862 # type: textblock
16863 #: ../fish/guestfish.pod:264
16864 msgid ""
16865 "Fork into the background and listen for remote commands.  See section L</"
16866 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16867 msgstr ""
16868
16869 # type: =item
16870 #: ../fish/guestfish.pod:267
16871 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16872 msgstr ""
16873
16874 # type: textblock
16875 #: ../fish/guestfish.pod:269
16876 msgid "Mount the named partition or logical volume on the given mountpoint."
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:271
16881 msgid "If the mountpoint is omitted, it defaults to C</>."
16882 msgstr ""
16883
16884 # type: textblock
16885 #: ../fish/guestfish.pod:273
16886 msgid "You have to mount something on C</> before most commands will work."
16887 msgstr ""
16888
16889 # type: textblock
16890 #: ../fish/guestfish.pod:275
16891 msgid ""
16892 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16893 "launched."
16894 msgstr ""
16895
16896 # type: textblock
16897 #: ../fish/guestfish.pod:278
16898 msgid ""
16899 "If you don't know what filesystems a disk image contains, you can either run "
16900 "guestfish without this option, then list the partitions and LVs available "
16901 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16902 "list-filesystems(1)> program."
16903 msgstr ""
16904
16905 # type: =item
16906 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16907 msgid "B<-n> | B<--no-sync>"
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:285
16912 msgid ""
16913 "Disable autosync.  This is enabled by default.  See the discussion of "
16914 "autosync in the L<guestfs(3)> manpage."
16915 msgstr ""
16916
16917 # type: =item
16918 #: ../fish/guestfish.pod:288
16919 msgid "B<-N type> | B<--new type> | B<-N help>"
16920 msgstr ""
16921
16922 # type: textblock
16923 #: ../fish/guestfish.pod:290
16924 msgid ""
16925 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16926 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16927 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16928 "IMAGES> below."
16929 msgstr ""
16930
16931 # type: =item
16932 #: ../fish/guestfish.pod:295
16933 msgid "B<--progress-bars>"
16934 msgstr ""
16935
16936 # type: textblock
16937 #: ../fish/guestfish.pod:297
16938 msgid "Enable progress bars, even when guestfish is used non-interactively."
16939 msgstr ""
16940
16941 # type: textblock
16942 #: ../fish/guestfish.pod:299
16943 msgid ""
16944 "Progress bars are enabled by default when guestfish is used as an "
16945 "interactive shell."
16946 msgstr ""
16947
16948 # type: =item
16949 #: ../fish/guestfish.pod:302
16950 msgid "B<--no-progress-bars>"
16951 msgstr ""
16952
16953 # type: textblock
16954 #: ../fish/guestfish.pod:304
16955 msgid "Disable progress bars."
16956 msgstr ""
16957
16958 # type: =item
16959 #: ../fish/guestfish.pod:306
16960 msgid "B<--remote[=pid]>"
16961 msgstr ""
16962
16963 # type: textblock
16964 #: ../fish/guestfish.pod:308
16965 msgid ""
16966 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16967 "CONTROL GUESTFISH OVER A SOCKET> below."
16968 msgstr ""
16969
16970 # type: =item
16971 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
16972 msgid "B<-r> | B<--ro>"
16973 msgstr ""
16974
16975 # type: textblock
16976 #: ../fish/guestfish.pod:313
16977 msgid ""
16978 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16979 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16980 msgstr ""
16981
16982 # type: textblock
16983 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
16984 msgid ""
16985 "The option must always be used if the disk image or virtual machine might be "
16986 "running, and is generally recommended in cases where you don't need write "
16987 "access to the disk."
16988 msgstr ""
16989
16990 # type: textblock
16991 #: ../fish/guestfish.pod:320
16992 msgid ""
16993 "Note that prepared disk images created with I<-N> are not affected by the "
16994 "I<--ro> option."
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:323
16999 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17000 msgstr ""
17001
17002 # type: =item
17003 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208
17004 #: ../tools/virt-rescue.pl:195
17005 msgid "B<--selinux>"
17006 msgstr ""
17007
17008 # type: textblock
17009 #: ../fish/guestfish.pod:327
17010 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17011 msgstr ""
17012
17013 # type: =item
17014 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
17015 msgid "B<-v> | B<--verbose>"
17016 msgstr ""
17017
17018 # type: textblock
17019 #: ../fish/guestfish.pod:331
17020 msgid ""
17021 "Enable very verbose messages.  This is particularly useful if you find a bug."
17022 msgstr ""
17023
17024 # type: =item
17025 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
17026 msgid "B<-V> | B<--version>"
17027 msgstr ""
17028
17029 # type: textblock
17030 #: ../fish/guestfish.pod:336
17031 msgid "Display the guestfish / libguestfs version number and exit."
17032 msgstr ""
17033
17034 # type: =item
17035 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
17036 msgid "B<-w> | B<--rw>"
17037 msgstr ""
17038
17039 # type: textblock
17040 #: ../fish/guestfish.pod:340
17041 msgid ""
17042 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17043 "WRITE> below."
17044 msgstr ""
17045
17046 # type: =item
17047 #: ../fish/guestfish.pod:343
17048 msgid "B<-x>"
17049 msgstr ""
17050
17051 # type: textblock
17052 #: ../fish/guestfish.pod:345
17053 msgid "Echo each command before executing it."
17054 msgstr ""
17055
17056 # type: =head1
17057 #: ../fish/guestfish.pod:349
17058 msgid "COMMANDS ON COMMAND LINE"
17059 msgstr ""
17060
17061 # type: textblock
17062 #: ../fish/guestfish.pod:351
17063 msgid ""
17064 "Any additional (non-option) arguments are treated as commands to execute."
17065 msgstr ""
17066
17067 # type: textblock
17068 #: ../fish/guestfish.pod:354
17069 msgid ""
17070 "Commands to execute should be separated by a colon (C<:>), where the colon "
17071 "is a separate parameter.  Thus:"
17072 msgstr ""
17073
17074 # type: verbatim
17075 #: ../fish/guestfish.pod:357
17076 #, no-wrap
17077 msgid ""
17078 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17079 "\n"
17080 msgstr ""
17081
17082 # type: textblock
17083 #: ../fish/guestfish.pod:359
17084 msgid ""
17085 "If there are no additional arguments, then we enter a shell, either an "
17086 "interactive shell with a prompt (if the input is a terminal) or a non-"
17087 "interactive shell."
17088 msgstr ""
17089
17090 # type: textblock
17091 #: ../fish/guestfish.pod:363
17092 msgid ""
17093 "In either command line mode or non-interactive shell, the first command that "
17094 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17095 "prompt) if a command fails, you can continue to enter commands."
17096 msgstr ""
17097
17098 # type: =head1
17099 #: ../fish/guestfish.pod:368
17100 msgid "USING launch (OR run)"
17101 msgstr ""
17102
17103 # type: textblock
17104 #: ../fish/guestfish.pod:370
17105 msgid ""
17106 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17107 "then launch it, then mount any disks you need, and finally issue actions/"
17108 "commands.  So the general order of the day is:"
17109 msgstr ""
17110
17111 # type: textblock
17112 #: ../fish/guestfish.pod:378
17113 msgid "add or -a/--add"
17114 msgstr ""
17115
17116 # type: textblock
17117 #: ../fish/guestfish.pod:382
17118 msgid "launch (aka run)"
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:386
17123 msgid "mount or -m/--mount"
17124 msgstr ""
17125
17126 # type: textblock
17127 #: ../fish/guestfish.pod:390
17128 msgid "any other commands"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish.pod:394
17133 msgid ""
17134 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17135 "guest before mounting or performing any other commands."
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:397
17140 msgid ""
17141 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17142 "I<--new> options were given then C<run> is done automatically, simply "
17143 "because guestfish can't perform the action you asked for without doing this."
17144 msgstr ""
17145
17146 # type: =head1
17147 #: ../fish/guestfish.pod:402
17148 msgid "OPENING DISKS FOR READ AND WRITE"
17149 msgstr ""
17150
17151 # type: textblock
17152 #: ../fish/guestfish.pod:404
17153 msgid ""
17154 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17155 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17156 "open disk images read-only or for writing."
17157 msgstr ""
17158
17159 # type: textblock
17160 #: ../fish/guestfish.pod:408
17161 msgid ""
17162 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17163 "disk images supplied on the command line for write.  To open a disk image "
17164 "read-only you have to do I<-a image --ro>."
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:412
17169 msgid ""
17170 "This matters: If you accidentally open a live VM disk image writable then "
17171 "you will cause irreversible disk corruption."
17172 msgstr ""
17173
17174 # type: textblock
17175 #: ../fish/guestfish.pod:415
17176 msgid ""
17177 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17178 "images will be opened read-only.  You will have to either specify "
17179 "I<guestfish --rw> or change a configuration file in order to get write "
17180 "access for disk images specified by those other command line options."
17181 msgstr ""
17182
17183 # type: textblock
17184 #: ../fish/guestfish.pod:420
17185 msgid ""
17186 "This version of guestfish has a I<--rw> option which does nothing (it is "
17187 "already the default).  However it is highly recommended that you use this "
17188 "option to indicate that guestfish needs write access, and to prepare your "
17189 "scripts for the day when this option will be required for write access."
17190 msgstr ""
17191
17192 # type: textblock
17193 #: ../fish/guestfish.pod:426
17194 msgid ""
17195 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17196 "other libguestfs program apart from guestfish and guestmount."
17197 msgstr ""
17198
17199 # type: =head1
17200 #: ../fish/guestfish.pod:429
17201 msgid "QUOTING"
17202 msgstr ""
17203
17204 # type: textblock
17205 #: ../fish/guestfish.pod:431
17206 msgid ""
17207 "You can quote ordinary parameters using either single or double quotes.  For "
17208 "example:"
17209 msgstr ""
17210
17211 # type: verbatim
17212 #: ../fish/guestfish.pod:434
17213 #, no-wrap
17214 msgid ""
17215 " add \"file with a space.img\"\n"
17216 "\n"
17217 msgstr ""
17218
17219 # type: verbatim
17220 #: ../fish/guestfish.pod:436
17221 #, no-wrap
17222 msgid ""
17223 " rm '/file name'\n"
17224 "\n"
17225 msgstr ""
17226
17227 # type: verbatim
17228 #: ../fish/guestfish.pod:438
17229 #, no-wrap
17230 msgid ""
17231 " rm '/\"'\n"
17232 "\n"
17233 msgstr ""
17234
17235 # type: textblock
17236 #: ../fish/guestfish.pod:440
17237 msgid ""
17238 "A few commands require a list of strings to be passed.  For these, use a "
17239 "whitespace-separated list, enclosed in quotes.  Strings containing "
17240 "whitespace to be passed through must be enclosed in single quotes.  A "
17241 "literal single quote must be escaped with a backslash."
17242 msgstr ""
17243
17244 # type: verbatim
17245 #: ../fish/guestfish.pod:445
17246 #, no-wrap
17247 msgid ""
17248 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17249 " command \"/bin/echo 'foo      bar'\"\n"
17250 " command \"/bin/echo \\'foo\\'\"\n"
17251 "\n"
17252 msgstr ""
17253
17254 # type: =head1
17255 #: ../fish/guestfish.pod:449
17256 msgid "OPTIONAL ARGUMENTS"
17257 msgstr ""
17258
17259 # type: textblock
17260 #: ../fish/guestfish.pod:451
17261 msgid ""
17262 "Some commands take optional arguments.  These arguments appear in this "
17263 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17264 msgstr ""
17265
17266 # type: verbatim
17267 #: ../fish/guestfish.pod:455
17268 #, no-wrap
17269 msgid ""
17270 " add-drive-opts filename\n"
17271 "\n"
17272 msgstr ""
17273
17274 # type: verbatim
17275 #: ../fish/guestfish.pod:457
17276 #, no-wrap
17277 msgid ""
17278 " add-drive-opts filename readonly:true\n"
17279 "\n"
17280 msgstr ""
17281
17282 # type: verbatim
17283 #: ../fish/guestfish.pod:459
17284 #, no-wrap
17285 msgid ""
17286 " add-drive-opts filename format:qcow2 readonly:false\n"
17287 "\n"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:461
17292 msgid ""
17293 "Each optional argument can appear at most once.  All optional arguments must "
17294 "appear after the required ones."
17295 msgstr ""
17296
17297 # type: =head1
17298 #: ../fish/guestfish.pod:464
17299 msgid "NUMBERS"
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:466
17304 msgid ""
17305 "This section applies to all commands which can take integers as parameters."
17306 msgstr ""
17307
17308 # type: =head2
17309 #: ../fish/guestfish.pod:469
17310 msgid "SIZE SUFFIX"
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish.pod:471
17315 msgid ""
17316 "When the command takes a parameter measured in bytes, you can use one of the "
17317 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17318 msgstr ""
17319
17320 # type: =item
17321 #: ../fish/guestfish.pod:477
17322 msgid "B<k> or B<K> or B<KiB>"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:479
17327 msgid "The size in kilobytes (multiplied by 1024)."
17328 msgstr ""
17329
17330 # type: =item
17331 #: ../fish/guestfish.pod:481
17332 msgid "B<KB>"
17333 msgstr ""
17334
17335 # type: textblock
17336 #: ../fish/guestfish.pod:483
17337 msgid "The size in SI 1000 byte units."
17338 msgstr ""
17339
17340 # type: =item
17341 #: ../fish/guestfish.pod:485
17342 msgid "B<M> or B<MiB>"
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:487
17347 msgid "The size in megabytes (multiplied by 1048576)."
17348 msgstr ""
17349
17350 # type: =item
17351 #: ../fish/guestfish.pod:489
17352 msgid "B<MB>"
17353 msgstr ""
17354
17355 # type: textblock
17356 #: ../fish/guestfish.pod:491
17357 msgid "The size in SI 1000000 byte units."
17358 msgstr ""
17359
17360 # type: =item
17361 #: ../fish/guestfish.pod:493
17362 msgid "B<G> or B<GiB>"
17363 msgstr ""
17364
17365 # type: textblock
17366 #: ../fish/guestfish.pod:495
17367 msgid "The size in gigabytes (multiplied by 2**30)."
17368 msgstr ""
17369
17370 # type: =item
17371 #: ../fish/guestfish.pod:497
17372 msgid "B<GB>"
17373 msgstr ""
17374
17375 # type: textblock
17376 #: ../fish/guestfish.pod:499
17377 msgid "The size in SI 10**9 byte units."
17378 msgstr ""
17379
17380 # type: =item
17381 #: ../fish/guestfish.pod:501
17382 msgid "B<T> or B<TiB>"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish.pod:503
17387 msgid "The size in terabytes (multiplied by 2**40)."
17388 msgstr ""
17389
17390 # type: =item
17391 #: ../fish/guestfish.pod:505
17392 msgid "B<TB>"
17393 msgstr ""
17394
17395 # type: textblock
17396 #: ../fish/guestfish.pod:507
17397 msgid "The size in SI 10**12 byte units."
17398 msgstr ""
17399
17400 # type: =item
17401 #: ../fish/guestfish.pod:509
17402 msgid "B<P> or B<PiB>"
17403 msgstr ""
17404
17405 # type: textblock
17406 #: ../fish/guestfish.pod:511
17407 msgid "The size in petabytes (multiplied by 2**50)."
17408 msgstr ""
17409
17410 # type: =item
17411 #: ../fish/guestfish.pod:513
17412 msgid "B<PB>"
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish.pod:515
17417 msgid "The size in SI 10**15 byte units."
17418 msgstr ""
17419
17420 # type: =item
17421 #: ../fish/guestfish.pod:517
17422 msgid "B<E> or B<EiB>"
17423 msgstr ""
17424
17425 # type: textblock
17426 #: ../fish/guestfish.pod:519
17427 msgid "The size in exabytes (multiplied by 2**60)."
17428 msgstr ""
17429
17430 # type: =item
17431 #: ../fish/guestfish.pod:521
17432 msgid "B<EB>"
17433 msgstr ""
17434
17435 # type: textblock
17436 #: ../fish/guestfish.pod:523
17437 msgid "The size in SI 10**18 byte units."
17438 msgstr ""
17439
17440 # type: =item
17441 #: ../fish/guestfish.pod:525
17442 msgid "B<Z> or B<ZiB>"
17443 msgstr ""
17444
17445 # type: textblock
17446 #: ../fish/guestfish.pod:527
17447 msgid "The size in zettabytes (multiplied by 2**70)."
17448 msgstr ""
17449
17450 # type: =item
17451 #: ../fish/guestfish.pod:529
17452 msgid "B<ZB>"
17453 msgstr ""
17454
17455 # type: textblock
17456 #: ../fish/guestfish.pod:531
17457 msgid "The size in SI 10**21 byte units."
17458 msgstr ""
17459
17460 # type: =item
17461 #: ../fish/guestfish.pod:533
17462 msgid "B<Y> or B<YiB>"
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish.pod:535
17467 msgid "The size in yottabytes (multiplied by 2**80)."
17468 msgstr ""
17469
17470 # type: =item
17471 #: ../fish/guestfish.pod:537
17472 msgid "B<YB>"
17473 msgstr ""
17474
17475 # type: textblock
17476 #: ../fish/guestfish.pod:539
17477 msgid "The size in SI 10**24 byte units."
17478 msgstr ""
17479
17480 # type: verbatim
17481 #: ../fish/guestfish.pod:545
17482 #, no-wrap
17483 msgid ""
17484 " truncate-size /file 1G\n"
17485 "\n"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish.pod:547
17490 msgid "would truncate the file to 1 gigabyte."
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:549
17495 msgid ""
17496 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17497 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17498 "suffix will probably not do what you expect."
17499 msgstr ""
17500
17501 # type: =head2
17502 #: ../fish/guestfish.pod:553
17503 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17504 msgstr ""
17505
17506 # type: textblock
17507 #: ../fish/guestfish.pod:555
17508 msgid ""
17509 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17510 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17511 msgstr ""
17512
17513 # type: verbatim
17514 #: ../fish/guestfish.pod:558
17515 #, no-wrap
17516 msgid ""
17517 " 1234      decimal number 1234\n"
17518 " 02322     octal number, equivalent to decimal 1234\n"
17519 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17520 "\n"
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:562
17525 msgid ""
17526 "When using the C<chmod> command, you almost always want to specify an octal "
17527 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17528 "L<chmod(1)> program):"
17529 msgstr ""
17530
17531 # type: verbatim
17532 #: ../fish/guestfish.pod:566
17533 #, no-wrap
17534 msgid ""
17535 " chmod 0777 /public  # OK\n"
17536 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17537 "\n"
17538 msgstr ""
17539
17540 # type: textblock
17541 #: ../fish/guestfish.pod:569
17542 msgid ""
17543 "Commands that return numbers usually print them in decimal, but some "
17544 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17545 "octal, preceeded by C<0>)."
17546 msgstr ""
17547
17548 # type: =head1
17549 #: ../fish/guestfish.pod:573
17550 msgid "WILDCARDS AND GLOBBING"
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish.pod:575
17555 msgid ""
17556 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17557 "(globbing) by default.  So for example the following will not do what you "
17558 "expect:"
17559 msgstr ""
17560
17561 # type: verbatim
17562 #: ../fish/guestfish.pod:579
17563 #, no-wrap
17564 msgid ""
17565 " rm-rf /home/*\n"
17566 "\n"
17567 msgstr ""
17568
17569 # type: textblock
17570 #: ../fish/guestfish.pod:581
17571 msgid ""
17572 "Assuming you don't have a directory called literally C</home/*> then the "
17573 "above command will return an error."
17574 msgstr ""
17575
17576 # type: textblock
17577 #: ../fish/guestfish.pod:584
17578 msgid "To perform wildcard expansion, use the C<glob> command."
17579 msgstr ""
17580
17581 # type: verbatim
17582 #: ../fish/guestfish.pod:586
17583 #, no-wrap
17584 msgid ""
17585 " glob rm-rf /home/*\n"
17586 "\n"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:588
17591 msgid ""
17592 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17593 "many times), equivalent to:"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #: ../fish/guestfish.pod:591
17598 #, no-wrap
17599 msgid ""
17600 " rm-rf /home/jim\n"
17601 " rm-rf /home/joe\n"
17602 " rm-rf /home/mary\n"
17603 "\n"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:595
17608 msgid "C<glob> only works on simple guest paths and not on device names."
17609 msgstr ""
17610
17611 # type: textblock
17612 #: ../fish/guestfish.pod:597
17613 msgid ""
17614 "If you have several parameters, each containing a wildcard, then glob will "
17615 "perform a Cartesian product."
17616 msgstr ""
17617
17618 # type: =head1
17619 #: ../fish/guestfish.pod:600
17620 msgid "COMMENTS"
17621 msgstr ""
17622
17623 # type: textblock
17624 #: ../fish/guestfish.pod:602
17625 msgid ""
17626 "Any line which starts with a I<#> character is treated as a comment and "
17627 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17628 "a command.  For example:"
17629 msgstr ""
17630
17631 # type: verbatim
17632 #: ../fish/guestfish.pod:606
17633 #, no-wrap
17634 msgid ""
17635 " # this is a comment\n"
17636 "         # this is a comment\n"
17637 " foo # NOT a comment\n"
17638 "\n"
17639 msgstr ""
17640
17641 # type: textblock
17642 #: ../fish/guestfish.pod:610
17643 msgid "Blank lines are also ignored."
17644 msgstr ""
17645
17646 # type: =head1
17647 #: ../fish/guestfish.pod:612
17648 msgid "RUNNING COMMANDS LOCALLY"
17649 msgstr ""
17650
17651 # type: textblock
17652 #: ../fish/guestfish.pod:614
17653 msgid ""
17654 "Any line which starts with a I<!> character is treated as a command sent to "
17655 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17656 msgstr ""
17657
17658 # type: verbatim
17659 #: ../fish/guestfish.pod:618
17660 #, no-wrap
17661 msgid ""
17662 " !mkdir local\n"
17663 " tgz-out /remote local/remote-data.tar.gz\n"
17664 "\n"
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish.pod:621
17669 msgid ""
17670 "will create a directory C<local> on the host, and then export the contents "
17671 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17672 "(See C<tgz-out>)."
17673 msgstr ""
17674
17675 # type: textblock
17676 #: ../fish/guestfish.pod:625
17677 msgid ""
17678 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17679 "effect, due to the way that subprocesses work in Unix."
17680 msgstr ""
17681
17682 # type: =head1
17683 #: ../fish/guestfish.pod:628
17684 msgid "PIPES"
17685 msgstr ""
17686
17687 # type: textblock
17688 #: ../fish/guestfish.pod:630
17689 msgid ""
17690 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17691 "command (a guestfish command) to the second command (any host command).  For "
17692 "example:"
17693 msgstr ""
17694
17695 # type: verbatim
17696 #: ../fish/guestfish.pod:634
17697 #, no-wrap
17698 msgid ""
17699 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17700 "\n"
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish.pod:636
17705 msgid ""
17706 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17707 "program).  The above command would list all accounts in the guest filesystem "
17708 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish.pod:641
17713 #, no-wrap
17714 msgid ""
17715 " hexdump /bin/ls | head\n"
17716 " list-devices | tail -1\n"
17717 " tgz-out / - | tar ztf -\n"
17718 "\n"
17719 msgstr ""
17720
17721 # type: textblock
17722 #: ../fish/guestfish.pod:645
17723 msgid ""
17724 "The space before the pipe symbol is required, any space after the pipe "
17725 "symbol is optional.  Everything after the pipe symbol is just passed "
17726 "straight to the host shell, so it can contain redirections, globs and "
17727 "anything else that makes sense on the host side."
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish.pod:650
17732 msgid ""
17733 "To use a literal argument which begins with a pipe symbol, you have to quote "
17734 "it, eg:"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish.pod:653
17739 #, no-wrap
17740 msgid ""
17741 " echo \"|\"\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: =head1
17746 #: ../fish/guestfish.pod:655
17747 msgid "HOME DIRECTORIES"
17748 msgstr ""
17749
17750 # type: textblock
17751 #: ../fish/guestfish.pod:657
17752 msgid ""
17753 "If a parameter starts with the character C<~> then the tilde may be expanded "
17754 "as a home directory path (either C<~> for the current user's home directory, "
17755 "or C<~user> for another user)."
17756 msgstr ""
17757
17758 # type: textblock
17759 #: ../fish/guestfish.pod:661
17760 msgid ""
17761 "Note that home directory expansion happens for users known I<on the host>, "
17762 "not in the guest filesystem."
17763 msgstr ""
17764
17765 # type: textblock
17766 #: ../fish/guestfish.pod:664
17767 msgid ""
17768 "To use a literal argument which begins with a tilde, you have to quote it, "
17769 "eg:"
17770 msgstr ""
17771
17772 # type: verbatim
17773 #: ../fish/guestfish.pod:667
17774 #, no-wrap
17775 msgid ""
17776 " echo \"~\"\n"
17777 "\n"
17778 msgstr ""
17779
17780 # type: textblock
17781 #: ../fish/guestfish.pod:671
17782 msgid ""
17783 "Libguestfs has some support for Linux guests encrypted according to the "
17784 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17785 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17786 "LUKS is supported."
17787 msgstr ""
17788
17789 # type: textblock
17790 #: ../fish/guestfish.pod:676
17791 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17792 msgstr ""
17793
17794 # type: verbatim
17795 #: ../fish/guestfish.pod:678
17796 #, no-wrap
17797 msgid ""
17798 " ><fs> vfs-type /dev/sda2\n"
17799 " crypto_LUKS\n"
17800 "\n"
17801 msgstr ""
17802
17803 # type: textblock
17804 #: ../fish/guestfish.pod:681
17805 msgid ""
17806 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17807 "device called C</dev/mapper/luksdev>."
17808 msgstr ""
17809
17810 # type: verbatim
17811 #: ../fish/guestfish.pod:684
17812 #, no-wrap
17813 msgid ""
17814 " ><fs> luks-open /dev/sda2 luksdev\n"
17815 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17816 "\n"
17817 msgstr ""
17818
17819 # type: textblock
17820 #: ../fish/guestfish.pod:687
17821 msgid ""
17822 "Finally you have to tell LVM to scan for volume groups on the newly created "
17823 "mapper device:"
17824 msgstr ""
17825
17826 # type: verbatim
17827 #: ../fish/guestfish.pod:690
17828 #, no-wrap
17829 msgid ""
17830 " vgscan\n"
17831 " vg-activate-all true\n"
17832 "\n"
17833 msgstr ""
17834
17835 # type: textblock
17836 #: ../fish/guestfish.pod:693
17837 msgid "The logical volume(s) can now be mounted in the usual way."
17838 msgstr ""
17839
17840 # type: textblock
17841 #: ../fish/guestfish.pod:695
17842 msgid ""
17843 "Before closing a LUKS device you must unmount any logical volumes on it and "
17844 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17845 "one.  Then you can close the mapper device:"
17846 msgstr ""
17847
17848 # type: verbatim
17849 #: ../fish/guestfish.pod:699
17850 #, no-wrap
17851 msgid ""
17852 " vg-activate false /dev/VG\n"
17853 " luks-close /dev/mapper/luksdev\n"
17854 "\n"
17855 msgstr ""
17856
17857 # type: =head1
17858 #: ../fish/guestfish.pod:702
17859 msgid "WINDOWS PATHS"
17860 msgstr ""
17861
17862 # type: textblock
17863 #: ../fish/guestfish.pod:704
17864 msgid ""
17865 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17866 "(with some limitations).  The following commands are equivalent:"
17867 msgstr ""
17868
17869 # type: verbatim
17870 #: ../fish/guestfish.pod:707
17871 #, no-wrap
17872 msgid ""
17873 " file /WINDOWS/system32/config/system.LOG\n"
17874 "\n"
17875 msgstr ""
17876
17877 # type: verbatim
17878 #: ../fish/guestfish.pod:709
17879 #, no-wrap
17880 msgid ""
17881 " file win:/windows/system32/config/system.log\n"
17882 "\n"
17883 msgstr ""
17884
17885 # type: verbatim
17886 #: ../fish/guestfish.pod:711
17887 #, no-wrap
17888 msgid ""
17889 " file win:\\windows\\system32\\config\\system.log\n"
17890 "\n"
17891 msgstr ""
17892
17893 # type: verbatim
17894 #: ../fish/guestfish.pod:713
17895 #, no-wrap
17896 msgid ""
17897 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17898 "\n"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:715
17903 msgid ""
17904 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17905 "handles case insensitivity like Windows would.  This only works in argument "
17906 "positions that expect a path."
17907 msgstr ""
17908
17909 # type: =head1
17910 #: ../fish/guestfish.pod:719
17911 msgid "UPLOADING AND DOWNLOADING FILES"
17912 msgstr ""
17913
17914 # type: textblock
17915 #: ../fish/guestfish.pod:721
17916 msgid ""
17917 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17918 "others which upload from or download to a local file, you can use the "
17919 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17920 msgstr ""
17921
17922 # type: verbatim
17923 #: ../fish/guestfish.pod:725
17924 #, no-wrap
17925 msgid ""
17926 " upload - /foo\n"
17927 "\n"
17928 msgstr ""
17929
17930 # type: textblock
17931 #: ../fish/guestfish.pod:727
17932 msgid ""
17933 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17934 msgstr ""
17935
17936 # type: verbatim
17937 #: ../fish/guestfish.pod:730
17938 #, no-wrap
17939 msgid ""
17940 " tar-out /etc - | tar tf -\n"
17941 "\n"
17942 msgstr ""
17943
17944 # type: textblock
17945 #: ../fish/guestfish.pod:732
17946 msgid ""
17947 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17948 "command (see L</PIPES>)."
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish.pod:735
17953 msgid ""
17954 "When using C<-> to read from stdin, the input is read up to the end of "
17955 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17956 "some arbitrary end marker:"
17957 msgstr ""
17958
17959 # type: verbatim
17960 #: ../fish/guestfish.pod:739
17961 #, no-wrap
17962 msgid ""
17963 " upload -<<END /foo\n"
17964 " input line 1\n"
17965 " input line 2\n"
17966 " input line 3\n"
17967 " END\n"
17968 "\n"
17969 msgstr ""
17970
17971 # type: textblock
17972 #: ../fish/guestfish.pod:745
17973 msgid ""
17974 "Any string of characters can be used instead of C<END>.  The end marker must "
17975 "appear on a line of its own, without any preceeding or following characters "
17976 "(not even spaces)."
17977 msgstr ""
17978
17979 # type: textblock
17980 #: ../fish/guestfish.pod:749
17981 msgid ""
17982 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17983 "upload local files (so-called \"FileIn\" parameters in the generator)."
17984 msgstr ""
17985
17986 # type: =head1
17987 #: ../fish/guestfish.pod:752
17988 msgid "EXIT ON ERROR BEHAVIOUR"
17989 msgstr ""
17990
17991 # type: textblock
17992 #: ../fish/guestfish.pod:754
17993 msgid ""
17994 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17995 "taking commands from a human over a tty), and will exit on the first error "
17996 "in non-interactive mode (scripts, commands given on the command line)."
17997 msgstr ""
17998
17999 # type: textblock
18000 #: ../fish/guestfish.pod:759
18001 msgid ""
18002 "If you prefix a command with a I<-> character, then that command will not "
18003 "cause guestfish to exit, even if that (one) command returns an error."
18004 msgstr ""
18005
18006 # type: =head1
18007 #: ../fish/guestfish.pod:763
18008 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish.pod:765
18013 msgid ""
18014 "Guestfish can be remote-controlled over a socket.  This is useful "
18015 "particularly in shell scripts where you want to make several different "
18016 "changes to a filesystem, but you don't want the overhead of starting up a "
18017 "guestfish process each time."
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:770
18022 msgid "Start a guestfish server process using:"
18023 msgstr ""
18024
18025 # type: verbatim
18026 #: ../fish/guestfish.pod:772
18027 #, no-wrap
18028 msgid ""
18029 " eval \"`guestfish --listen`\"\n"
18030 "\n"
18031 msgstr ""
18032
18033 # type: textblock
18034 #: ../fish/guestfish.pod:774
18035 msgid "and then send it commands by doing:"
18036 msgstr ""
18037
18038 # type: verbatim
18039 #: ../fish/guestfish.pod:776
18040 #, no-wrap
18041 msgid ""
18042 " guestfish --remote cmd [...]\n"
18043 "\n"
18044 msgstr ""
18045
18046 # type: textblock
18047 #: ../fish/guestfish.pod:778
18048 msgid "To cause the server to exit, send it the exit command:"
18049 msgstr ""
18050
18051 # type: verbatim
18052 #: ../fish/guestfish.pod:780
18053 #, no-wrap
18054 msgid ""
18055 " guestfish --remote exit\n"
18056 "\n"
18057 msgstr ""
18058
18059 # type: textblock
18060 #: ../fish/guestfish.pod:782
18061 msgid ""
18062 "Note that the server will normally exit if there is an error in a command.  "
18063 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18064 "BEHAVIOUR>."
18065 msgstr ""
18066
18067 # type: =head2
18068 #: ../fish/guestfish.pod:786
18069 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18070 msgstr ""
18071
18072 # type: textblock
18073 #: ../fish/guestfish.pod:788
18074 msgid ""
18075 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18076 "is how the I<--remote> option knows where to send the commands.  You can "
18077 "have several guestfish listener processes running using:"
18078 msgstr ""
18079
18080 # type: verbatim
18081 #: ../fish/guestfish.pod:792
18082 #, no-wrap
18083 msgid ""
18084 " eval \"`guestfish --listen`\"\n"
18085 " pid1=$GUESTFISH_PID\n"
18086 " eval \"`guestfish --listen`\"\n"
18087 " pid2=$GUESTFISH_PID\n"
18088 " ...\n"
18089 " guestfish --remote=$pid1 cmd\n"
18090 " guestfish --remote=$pid2 cmd\n"
18091 "\n"
18092 msgstr ""
18093
18094 # type: =head2
18095 #: ../fish/guestfish.pod:800
18096 msgid "REMOTE CONTROL AND CSH"
18097 msgstr ""
18098
18099 # type: textblock
18100 #: ../fish/guestfish.pod:802
18101 msgid ""
18102 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18103 "option:"
18104 msgstr ""
18105
18106 # type: verbatim
18107 #: ../fish/guestfish.pod:805
18108 #, no-wrap
18109 msgid ""
18110 " eval \"`guestfish --listen --csh`\"\n"
18111 "\n"
18112 msgstr ""
18113
18114 # type: =head2
18115 #: ../fish/guestfish.pod:807
18116 msgid "REMOTE CONTROL DETAILS"
18117 msgstr ""
18118
18119 # type: textblock
18120 #: ../fish/guestfish.pod:809
18121 msgid ""
18122 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18123 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18124 "and C<$PID> is the process ID of the server."
18125 msgstr ""
18126
18127 # type: textblock
18128 #: ../fish/guestfish.pod:813
18129 msgid "Guestfish client and server versions must match exactly."
18130 msgstr ""
18131
18132 # type: =head1
18133 #: ../fish/guestfish.pod:815
18134 msgid "PREPARED DISK IMAGES"
18135 msgstr ""
18136
18137 # type: textblock
18138 #: ../fish/guestfish.pod:817
18139 msgid ""
18140 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18141 "preformatted disk images that guestfish can make for you to save typing.  "
18142 "This is particularly useful for testing purposes.  This option is used "
18143 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18144 "can be mixed with I<-a>)."
18145 msgstr ""
18146
18147 # type: textblock
18148 #: ../fish/guestfish.pod:823
18149 msgid ""
18150 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18151 "the second and so on.  Existing files in the current directory are "
18152 "I<overwritten>."
18153 msgstr ""
18154
18155 # type: textblock
18156 #: ../fish/guestfish.pod:827
18157 msgid ""
18158 "The type briefly describes how the disk should be sized, partitioned, how "
18159 "filesystem(s) should be created, and how content should be added.  "
18160 "Optionally the type can be followed by extra parameters, separated by C<:> "
18161 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18162 "allocated disk, containing a single partition, with the partition formatted "
18163 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18164 "disk instead."
18165 msgstr ""
18166
18167 # type: textblock
18168 #: ../fish/guestfish.pod:835
18169 msgid "To list the available types and any extra parameters they take, run:"
18170 msgstr ""
18171
18172 # type: textblock
18173 #: ../fish/guestfish.pod:839
18174 msgid ""
18175 "Note that the prepared filesystem is not mounted.  You would usually have to "
18176 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18177 msgstr ""
18178
18179 # type: textblock
18180 #: ../fish/guestfish.pod:843
18181 msgid ""
18182 "If any I<-N> or I<--new> options are given, the guest is automatically "
18183 "launched."
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish.pod:848
18188 msgid "Create a 100MB disk with an ext4-formatted partition:"
18189 msgstr ""
18190
18191 # type: verbatim
18192 #: ../fish/guestfish.pod:850
18193 #, no-wrap
18194 msgid ""
18195 " guestfish -N fs:ext4\n"
18196 "\n"
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:852
18201 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18202 msgstr ""
18203
18204 # type: verbatim
18205 #: ../fish/guestfish.pod:854
18206 #, no-wrap
18207 msgid ""
18208 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18209 "\n"
18210 msgstr ""
18211
18212 # type: textblock
18213 #: ../fish/guestfish.pod:856
18214 msgid "Create a blank 200MB disk:"
18215 msgstr ""
18216
18217 # type: verbatim
18218 #: ../fish/guestfish.pod:858
18219 #, no-wrap
18220 msgid ""
18221 " guestfish -N disk:200M\n"
18222 "\n"
18223 msgstr ""
18224
18225 # type: =head1
18226 #: ../fish/guestfish.pod:860
18227 msgid "PROGRESS BARS"
18228 msgstr ""
18229
18230 # type: textblock
18231 #: ../fish/guestfish.pod:862
18232 msgid ""
18233 "Some (not all) long-running commands send progress notification messages as "
18234 "they are running.  Guestfish turns these messages into progress bars."
18235 msgstr ""
18236
18237 # type: textblock
18238 #: ../fish/guestfish.pod:866
18239 msgid ""
18240 "When a command that supports progress bars takes longer than two seconds to "
18241 "run, and if progress bars are enabled, then you will see one appearing below "
18242 "the command:"
18243 msgstr ""
18244
18245 # type: verbatim
18246 #: ../fish/guestfish.pod:870
18247 #, no-wrap
18248 msgid ""
18249 " ><fs> copy-size /large-file /another-file 2048M\n"
18250 " / 10% [#####-----------------------------------------] 00:30\n"
18251 "\n"
18252 msgstr ""
18253
18254 # type: textblock
18255 #: ../fish/guestfish.pod:873
18256 msgid ""
18257 "The spinner on the left hand side moves round once for every progress "
18258 "notification received from the backend.  This is a (reasonably) golden "
18259 "assurance that the command is \"doing something\" even if the progress bar "
18260 "is not moving, because the command is able to send the progress "
18261 "notifications.  When the bar reaches 100% and the command finishes, the "
18262 "spinner disappears."
18263 msgstr ""
18264
18265 # type: textblock
18266 #: ../fish/guestfish.pod:880
18267 msgid ""
18268 "Progress bars are enabled by default when guestfish is used interactively.  "
18269 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18270 "and you can disable them completely using I<--no-progress-bars>."
18271 msgstr ""
18272
18273 # type: =head1
18274 #: ../fish/guestfish.pod:885
18275 msgid "GUESTFISH COMMANDS"
18276 msgstr ""
18277
18278 # type: textblock
18279 #: ../fish/guestfish.pod:887
18280 msgid ""
18281 "The commands in this section are guestfish convenience commands, in other "
18282 "words, they are not part of the L<guestfs(3)> API."
18283 msgstr ""
18284
18285 # type: =head2
18286 #: ../fish/guestfish.pod:890
18287 msgid "help"
18288 msgstr ""
18289
18290 # type: verbatim
18291 #: ../fish/guestfish.pod:892
18292 #, no-wrap
18293 msgid ""
18294 " help\n"
18295 " help cmd\n"
18296 "\n"
18297 msgstr ""
18298
18299 # type: textblock
18300 #: ../fish/guestfish.pod:895
18301 msgid "Without any parameter, this provides general help."
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:897
18306 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18307 msgstr ""
18308
18309 # type: =head2
18310 #: ../fish/guestfish.pod:899
18311 msgid "quit | exit"
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish.pod:901
18316 msgid "This exits guestfish.  You can also use C<^D> key."
18317 msgstr ""
18318
18319 # type: textblock
18320 #: ../fish/guestfish.pod:903
18321 msgid "@FISH_COMMANDS@"
18322 msgstr ""
18323
18324 # type: =head1
18325 #: ../fish/guestfish.pod:905
18326 msgid "COMMANDS"
18327 msgstr ""
18328
18329 # type: =head1
18330 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
18331 msgid "EXIT CODE"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:911
18336 msgid ""
18337 "guestfish returns 0 if the commands completed without error, or 1 if there "
18338 "was an error."
18339 msgstr ""
18340
18341 # type: =item
18342 #: ../fish/guestfish.pod:918
18343 msgid "EDITOR"
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../fish/guestfish.pod:920
18348 msgid ""
18349 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18350 "C<vi>."
18351 msgstr ""
18352
18353 # type: =item
18354 #: ../fish/guestfish.pod:923
18355 msgid "GUESTFISH_PID"
18356 msgstr ""
18357
18358 # type: textblock
18359 #: ../fish/guestfish.pod:925
18360 msgid ""
18361 "Used with the I<--remote> option to specify the remote guestfish process to "
18362 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18363 msgstr ""
18364
18365 # type: =item
18366 #: ../fish/guestfish.pod:929
18367 msgid "HEXEDITOR"
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish.pod:931
18372 msgid ""
18373 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18374 "not specified, the external L<hexedit(1)> program is used."
18375 msgstr ""
18376
18377 # type: =item
18378 #: ../fish/guestfish.pod:935
18379 msgid "HOME"
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish.pod:937
18384 msgid ""
18385 "If compiled with GNU readline support, various files in the home directory "
18386 "can be used.  See L</FILES>."
18387 msgstr ""
18388
18389 # type: textblock
18390 #: ../fish/guestfish.pod:946
18391 msgid ""
18392 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18393 "effect as using the B<-v> option."
18394 msgstr ""
18395
18396 # type: textblock
18397 #: ../fish/guestfish.pod:958
18398 msgid ""
18399 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18400 "the discussion of paths in L<guestfs(3)>."
18401 msgstr ""
18402
18403 # type: textblock
18404 #: ../fish/guestfish.pod:969
18405 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18406 msgstr ""
18407
18408 # type: =item
18409 #: ../fish/guestfish.pod:971
18410 msgid "PAGER"
18411 msgstr ""
18412
18413 # type: textblock
18414 #: ../fish/guestfish.pod:973
18415 msgid ""
18416 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18417 "C<more>."
18418 msgstr ""
18419
18420 # type: =head1
18421 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
18422 msgid "FILES"
18423 msgstr ""
18424
18425 # type: =item
18426 #: ../fish/guestfish.pod:992
18427 msgid "$HOME/.guestfish"
18428 msgstr ""
18429
18430 # type: textblock
18431 #: ../fish/guestfish.pod:994
18432 msgid ""
18433 "If compiled with GNU readline support, then the command history is saved in "
18434 "this file."
18435 msgstr ""
18436
18437 # type: =item
18438 #: ../fish/guestfish.pod:997
18439 msgid "$HOME/.inputrc"
18440 msgstr ""
18441
18442 # type: =item
18443 #: ../fish/guestfish.pod:999
18444 msgid "/etc/inputrc"
18445 msgstr ""
18446
18447 # type: textblock
18448 #: ../fish/guestfish.pod:1001
18449 msgid ""
18450 "If compiled with GNU readline support, then these files can be used to "
18451 "configure readline.  For further information, please see L<readline(3)/"
18452 "INITIALIZATION FILE>."
18453 msgstr ""
18454
18455 # type: textblock
18456 #: ../fish/guestfish.pod:1005
18457 msgid "To write rules which only apply to guestfish, use:"
18458 msgstr ""
18459
18460 # type: verbatim
18461 #: ../fish/guestfish.pod:1007
18462 #, no-wrap
18463 msgid ""
18464 " $if guestfish\n"
18465 " ...\n"
18466 " $endif\n"
18467 "\n"
18468 msgstr ""
18469
18470 # type: textblock
18471 #: ../fish/guestfish.pod:1011
18472 msgid ""
18473 "Variables that you can set in inputrc that change the behaviour of guestfish "
18474 "in useful ways include:"
18475 msgstr ""
18476
18477 # type: =item
18478 #: ../fish/guestfish.pod:1016
18479 msgid "completion-ignore-case (default: on)"
18480 msgstr ""
18481
18482 # type: textblock
18483 #: ../fish/guestfish.pod:1018
18484 msgid ""
18485 "By default, guestfish will ignore case when tab-completing paths on the "
18486 "disk.  Use:"
18487 msgstr ""
18488
18489 # type: verbatim
18490 #: ../fish/guestfish.pod:1021
18491 #, no-wrap
18492 msgid ""
18493 " set completion-ignore-case off\n"
18494 "\n"
18495 msgstr ""
18496
18497 # type: textblock
18498 #: ../fish/guestfish.pod:1023
18499 msgid "to make guestfish case sensitive."
18500 msgstr ""
18501
18502 # type: =item
18503 #: ../fish/guestfish.pod:1027
18504 msgid "test1.img"
18505 msgstr ""
18506
18507 # type: =item
18508 #: ../fish/guestfish.pod:1029
18509 msgid "test2.img (etc)"
18510 msgstr ""
18511
18512 # type: textblock
18513 #: ../fish/guestfish.pod:1031
18514 msgid ""
18515 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18516 "will be created in the file C<test1.img> in the current directory.  The "
18517 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18518 "the same name will be overwritten."
18519 msgstr ""
18520
18521 # type: textblock
18522 #: ../fish/guestfish.pod:1040
18523 msgid ""
18524 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18525 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
18526 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18527 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124
18532 #: ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:598
18533 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
18534 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
18535 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
18536 #: ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285
18537 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
18538 msgid ""
18539 "This program is free software; you can redistribute it and/or modify it "
18540 "under the terms of the GNU General Public License as published by the Free "
18541 "Software Foundation; either version 2 of the License, or (at your option) "
18542 "any later version."
18543 msgstr ""
18544
18545 # type: textblock
18546 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129
18547 #: ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:603
18548 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
18549 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
18550 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
18551 #: ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290
18552 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
18553 msgid ""
18554 "This program is distributed in the hope that it will be useful, but WITHOUT "
18555 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18556 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18557 "more details."
18558 msgstr ""
18559
18560 # type: textblock
18561 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134
18562 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:608
18563 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
18564 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
18565 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
18566 #: ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295
18567 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
18568 msgid ""
18569 "You should have received a copy of the GNU General Public License along with "
18570 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18571 "Ave, Cambridge, MA 02139, USA."
18572 msgstr ""
18573
18574 # type: =head2
18575 #: ../fish/guestfish-actions.pod:1
18576 msgid "add-cdrom"
18577 msgstr ""
18578
18579 # type: verbatim
18580 #: ../fish/guestfish-actions.pod:3
18581 #, no-wrap
18582 msgid ""
18583 " add-cdrom filename\n"
18584 "\n"
18585 msgstr ""
18586
18587 # type: textblock
18588 #: ../fish/guestfish-actions.pod:15
18589 msgid ""
18590 "This call checks for the existence of C<filename>.  This stops you from "
18591 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18592 "and C<http:> URLs.  To specify those, use the general L</config> call "
18593 "instead."
18594 msgstr ""
18595
18596 # type: textblock
18597 #: ../fish/guestfish-actions.pod:22
18598 msgid ""
18599 "If you just want to add an ISO file (often you use this as an efficient way "
18600 "to transfer large files into the guest), then you should probably use L</add-"
18601 "drive-ro> instead."
18602 msgstr ""
18603
18604 # type: =head2
18605 #: ../fish/guestfish-actions.pod:35
18606 msgid "add-domain"
18607 msgstr ""
18608
18609 # type: =head2
18610 #: ../fish/guestfish-actions.pod:37
18611 msgid "domain"
18612 msgstr ""
18613
18614 # type: verbatim
18615 #: ../fish/guestfish-actions.pod:39
18616 #, no-wrap
18617 msgid ""
18618 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18619 "\n"
18620 msgstr ""
18621
18622 # type: textblock
18623 #: ../fish/guestfish-actions.pod:41
18624 msgid ""
18625 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18626 "It works by connecting to libvirt, requesting the domain and domain XML from "
18627 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18628 msgstr ""
18629
18630 # type: textblock
18631 #: ../fish/guestfish-actions.pod:58
18632 msgid ""
18633 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
18634 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
18635 "libvirt URI (or one set through an environment variable, see the libvirt "
18636 "documentation for full details).  If you are using the C API directly then "
18637 "it is more flexible to create the libvirt connection object yourself, get "
18638 "the domain object, and call L</add-libvirt-dom>."
18639 msgstr ""
18640
18641 # type: textblock
18642 #: ../fish/guestfish-actions.pod:66
18643 msgid ""
18644 "The other optional parameters are passed directly through to L</add-drive-"
18645 "opts>."
18646 msgstr ""
18647
18648 # type: textblock
18649 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18650 msgid ""
18651 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
18652 msgstr ""
18653
18654 # type: =head2
18655 #: ../fish/guestfish-actions.pod:71
18656 msgid "add-drive"
18657 msgstr ""
18658
18659 # type: verbatim
18660 #: ../fish/guestfish-actions.pod:73
18661 #, no-wrap
18662 msgid ""
18663 " add-drive filename\n"
18664 "\n"
18665 msgstr ""
18666
18667 # type: textblock
18668 #: ../fish/guestfish-actions.pod:75
18669 msgid ""
18670 "This function is the equivalent of calling L</add-drive-opts> with no "
18671 "optional parameters, so the disk is added writable, with the format being "
18672 "detected automatically."
18673 msgstr ""
18674
18675 # type: textblock
18676 #: ../fish/guestfish-actions.pod:79
18677 msgid ""
18678 "Automatic detection of the format opens you up to a potential security hole "
18679 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18680 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18681 "you should think about replacing calls to this function with calls to L</add-"
18682 "drive-opts>, and specifying the format."
18683 msgstr ""
18684
18685 # type: =head2
18686 #: ../fish/guestfish-actions.pod:86
18687 msgid "add-drive-opts"
18688 msgstr ""
18689
18690 # type: =head2
18691 #: ../fish/guestfish-actions.pod:88
18692 msgid "add"
18693 msgstr ""
18694
18695 # type: verbatim
18696 #: ../fish/guestfish-actions.pod:90
18697 #, no-wrap
18698 msgid ""
18699 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18700 "\n"
18701 msgstr ""
18702
18703 # type: textblock
18704 #: ../fish/guestfish-actions.pod:117
18705 msgid ""
18706 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
18707 "add-drive-ro>) then the format is automatically detected.  Possible formats "
18708 "include C<raw> and C<qcow2>."
18709 msgstr ""
18710
18711 # type: textblock
18712 #: ../fish/guestfish-actions.pod:128
18713 msgid ""
18714 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
18715 "add-drive-with-if> call (q.v.)"
18716 msgstr ""
18717
18718 # type: =head2
18719 #: ../fish/guestfish-actions.pod:135
18720 msgid "add-drive-ro"
18721 msgstr ""
18722
18723 # type: =head2
18724 #: ../fish/guestfish-actions.pod:137
18725 msgid "add-ro"
18726 msgstr ""
18727
18728 # type: verbatim
18729 #: ../fish/guestfish-actions.pod:139
18730 #, no-wrap
18731 msgid ""
18732 " add-drive-ro filename\n"
18733 "\n"
18734 msgstr ""
18735
18736 # type: textblock
18737 #: ../fish/guestfish-actions.pod:141
18738 msgid ""
18739 "This function is the equivalent of calling L</add-drive-opts> with the "
18740 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18741 "is added read-only, with the format being detected automatically."
18742 msgstr ""
18743
18744 # type: =head2
18745 #: ../fish/guestfish-actions.pod:146
18746 msgid "add-drive-ro-with-if"
18747 msgstr ""
18748
18749 # type: verbatim
18750 #: ../fish/guestfish-actions.pod:148
18751 #, no-wrap
18752 msgid ""
18753 " add-drive-ro-with-if filename iface\n"
18754 "\n"
18755 msgstr ""
18756
18757 # type: textblock
18758 #: ../fish/guestfish-actions.pod:150
18759 msgid ""
18760 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18761 "interface emulation to use at run time."
18762 msgstr ""
18763
18764 # type: =head2
18765 #: ../fish/guestfish-actions.pod:160
18766 msgid "add-drive-with-if"
18767 msgstr ""
18768
18769 # type: verbatim
18770 #: ../fish/guestfish-actions.pod:162
18771 #, no-wrap
18772 msgid ""
18773 " add-drive-with-if filename iface\n"
18774 "\n"
18775 msgstr ""
18776
18777 # type: textblock
18778 #: ../fish/guestfish-actions.pod:164
18779 msgid ""
18780 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18781 "interface emulation to use at run time."
18782 msgstr ""
18783
18784 # type: =head2
18785 #: ../fish/guestfish-actions.pod:174
18786 msgid "aug-clear"
18787 msgstr ""
18788
18789 # type: verbatim
18790 #: ../fish/guestfish-actions.pod:176
18791 #, no-wrap
18792 msgid ""
18793 " aug-clear augpath\n"
18794 "\n"
18795 msgstr ""
18796
18797 # type: =head2
18798 #: ../fish/guestfish-actions.pod:181
18799 msgid "aug-close"
18800 msgstr ""
18801
18802 # type: verbatim
18803 #: ../fish/guestfish-actions.pod:183
18804 #, no-wrap
18805 msgid ""
18806 " aug-close\n"
18807 "\n"
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish-actions.pod:185
18812 msgid ""
18813 "Close the current Augeas handle and free up any resources used by it.  After "
18814 "calling this, you have to call L</aug-init> again before you can use any "
18815 "other Augeas functions."
18816 msgstr ""
18817
18818 # type: =head2
18819 #: ../fish/guestfish-actions.pod:190
18820 msgid "aug-defnode"
18821 msgstr ""
18822
18823 # type: verbatim
18824 #: ../fish/guestfish-actions.pod:192
18825 #, no-wrap
18826 msgid ""
18827 " aug-defnode name expr val\n"
18828 "\n"
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish-actions.pod:197
18833 msgid ""
18834 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18835 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18836 "containing that single node."
18837 msgstr ""
18838
18839 # type: =head2
18840 #: ../fish/guestfish-actions.pod:205
18841 msgid "aug-defvar"
18842 msgstr ""
18843
18844 # type: verbatim
18845 #: ../fish/guestfish-actions.pod:207
18846 #, no-wrap
18847 msgid ""
18848 " aug-defvar name expr\n"
18849 "\n"
18850 msgstr ""
18851
18852 # type: =head2
18853 #: ../fish/guestfish-actions.pod:216
18854 msgid "aug-get"
18855 msgstr ""
18856
18857 # type: verbatim
18858 #: ../fish/guestfish-actions.pod:218
18859 #, no-wrap
18860 msgid ""
18861 " aug-get augpath\n"
18862 "\n"
18863 msgstr ""
18864
18865 # type: =head2
18866 #: ../fish/guestfish-actions.pod:223
18867 msgid "aug-init"
18868 msgstr ""
18869
18870 # type: verbatim
18871 #: ../fish/guestfish-actions.pod:225
18872 #, no-wrap
18873 msgid ""
18874 " aug-init root flags\n"
18875 "\n"
18876 msgstr ""
18877
18878 # type: textblock
18879 #: ../fish/guestfish-actions.pod:231
18880 msgid "You must call this before using any other L</aug-*> commands."
18881 msgstr ""
18882
18883 # type: textblock
18884 #: ../fish/guestfish-actions.pod:266
18885 msgid "Do not load the tree in L</aug-init>."
18886 msgstr ""
18887
18888 # type: textblock
18889 #: ../fish/guestfish-actions.pod:270
18890 msgid "To close the handle, you can call L</aug-close>."
18891 msgstr ""
18892
18893 # type: =head2
18894 #: ../fish/guestfish-actions.pod:274
18895 msgid "aug-insert"
18896 msgstr ""
18897
18898 # type: verbatim
18899 #: ../fish/guestfish-actions.pod:276
18900 #, no-wrap
18901 msgid ""
18902 " aug-insert augpath label true|false\n"
18903 "\n"
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:286
18908 msgid "aug-load"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:288
18913 #, no-wrap
18914 msgid ""
18915 " aug-load\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: =head2
18920 #: ../fish/guestfish-actions.pod:295
18921 msgid "aug-ls"
18922 msgstr ""
18923
18924 # type: verbatim
18925 #: ../fish/guestfish-actions.pod:297
18926 #, no-wrap
18927 msgid ""
18928 " aug-ls augpath\n"
18929 "\n"
18930 msgstr ""
18931
18932 # type: textblock
18933 #: ../fish/guestfish-actions.pod:299
18934 msgid ""
18935 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18936 "resulting nodes into alphabetical order."
18937 msgstr ""
18938
18939 # type: =head2
18940 #: ../fish/guestfish-actions.pod:302
18941 msgid "aug-match"
18942 msgstr ""
18943
18944 # type: verbatim
18945 #: ../fish/guestfish-actions.pod:304
18946 #, no-wrap
18947 msgid ""
18948 " aug-match augpath\n"
18949 "\n"
18950 msgstr ""
18951
18952 # type: =head2
18953 #: ../fish/guestfish-actions.pod:310
18954 msgid "aug-mv"
18955 msgstr ""
18956
18957 # type: verbatim
18958 #: ../fish/guestfish-actions.pod:312
18959 #, no-wrap
18960 msgid ""
18961 " aug-mv src dest\n"
18962 "\n"
18963 msgstr ""
18964
18965 # type: =head2
18966 #: ../fish/guestfish-actions.pod:317
18967 msgid "aug-rm"
18968 msgstr ""
18969
18970 # type: verbatim
18971 #: ../fish/guestfish-actions.pod:319
18972 #, no-wrap
18973 msgid ""
18974 " aug-rm augpath\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: =head2
18979 #: ../fish/guestfish-actions.pod:325
18980 msgid "aug-save"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #: ../fish/guestfish-actions.pod:327
18985 #, no-wrap
18986 msgid ""
18987 " aug-save\n"
18988 "\n"
18989 msgstr ""
18990
18991 # type: textblock
18992 #: ../fish/guestfish-actions.pod:331
18993 msgid ""
18994 "The flags which were passed to L</aug-init> affect exactly how files are "
18995 "saved."
18996 msgstr ""
18997
18998 # type: =head2
18999 #: ../fish/guestfish-actions.pod:334
19000 msgid "aug-set"
19001 msgstr ""
19002
19003 # type: verbatim
19004 #: ../fish/guestfish-actions.pod:336
19005 #, no-wrap
19006 msgid ""
19007 " aug-set augpath val\n"
19008 "\n"
19009 msgstr ""
19010
19011 # type: textblock
19012 #: ../fish/guestfish-actions.pod:340
19013 msgid ""
19014 "In the Augeas API, it is possible to clear a node by setting the value to "
19015 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19016 "this call.  Instead you must use the L</aug-clear> call."
19017 msgstr ""
19018
19019 # type: =head2
19020 #: ../fish/guestfish-actions.pod:345
19021 msgid "available"
19022 msgstr ""
19023
19024 # type: verbatim
19025 #: ../fish/guestfish-actions.pod:347
19026 #, no-wrap
19027 msgid ""
19028 " available 'groups ...'\n"
19029 "\n"
19030 msgstr ""
19031
19032 # type: textblock
19033 #: ../fish/guestfish-actions.pod:353
19034 msgid ""
19035 "The libguestfs groups, and the functions that those groups correspond to, "
19036 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19037 "runtime by calling L</available-all-groups>."
19038 msgstr ""
19039
19040 # type: textblock
19041 #: ../fish/guestfish-actions.pod:377
19042 msgid "You must call L</launch> before calling this function."
19043 msgstr ""
19044
19045 # type: textblock
19046 #: ../fish/guestfish-actions.pod:399
19047 msgid ""
19048 "This call was added in version C<1.0.80>.  In previous versions of "
19049 "libguestfs all you could do would be to speculatively execute a command to "
19050 "find out if the daemon implemented it.  See also L</version>."
19051 msgstr ""
19052
19053 # type: =head2
19054 #: ../fish/guestfish-actions.pod:406
19055 msgid "available-all-groups"
19056 msgstr ""
19057
19058 # type: verbatim
19059 #: ../fish/guestfish-actions.pod:408
19060 #, no-wrap
19061 msgid ""
19062 " available-all-groups\n"
19063 "\n"
19064 msgstr ""
19065
19066 # type: textblock
19067 #: ../fish/guestfish-actions.pod:410
19068 msgid ""
19069 "This command returns a list of all optional groups that this daemon knows "
19070 "about.  Note this returns both supported and unsupported groups.  To find "
19071 "out which ones the daemon can actually support you have to call L</"
19072 "available> on each member of the returned list."
19073 msgstr ""
19074
19075 # type: textblock
19076 #: ../fish/guestfish-actions.pod:416
19077 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19078 msgstr ""
19079
19080 # type: =head2
19081 #: ../fish/guestfish-actions.pod:418
19082 msgid "base64-in"
19083 msgstr ""
19084
19085 # type: verbatim
19086 #: ../fish/guestfish-actions.pod:420
19087 #, no-wrap
19088 msgid ""
19089 " base64-in (base64file|-) filename\n"
19090 "\n"
19091 msgstr ""
19092
19093 # type: textblock
19094 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19095 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19096 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19097 #: ../fish/guestfish-actions.pod:3956 ../fish/guestfish-actions.pod:3968
19098 #: ../fish/guestfish-actions.pod:3979 ../fish/guestfish-actions.pod:3990
19099 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4051
19100 #: ../fish/guestfish-actions.pod:4105 ../fish/guestfish-actions.pod:4128
19101 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19102 msgstr ""
19103
19104 # type: =head2
19105 #: ../fish/guestfish-actions.pod:427
19106 msgid "base64-out"
19107 msgstr ""
19108
19109 # type: verbatim
19110 #: ../fish/guestfish-actions.pod:429
19111 #, no-wrap
19112 msgid ""
19113 " base64-out filename (base64file|-)\n"
19114 "\n"
19115 msgstr ""
19116
19117 # type: =head2
19118 #: ../fish/guestfish-actions.pod:436
19119 msgid "blockdev-flushbufs"
19120 msgstr ""
19121
19122 # type: verbatim
19123 #: ../fish/guestfish-actions.pod:438
19124 #, no-wrap
19125 msgid ""
19126 " blockdev-flushbufs device\n"
19127 "\n"
19128 msgstr ""
19129
19130 # type: =head2
19131 #: ../fish/guestfish-actions.pod:445
19132 msgid "blockdev-getbsz"
19133 msgstr ""
19134
19135 # type: verbatim
19136 #: ../fish/guestfish-actions.pod:447
19137 #, no-wrap
19138 msgid ""
19139 " blockdev-getbsz device\n"
19140 "\n"
19141 msgstr ""
19142
19143 # type: =head2
19144 #: ../fish/guestfish-actions.pod:456
19145 msgid "blockdev-getro"
19146 msgstr ""
19147
19148 # type: verbatim
19149 #: ../fish/guestfish-actions.pod:458
19150 #, no-wrap
19151 msgid ""
19152 " blockdev-getro device\n"
19153 "\n"
19154 msgstr ""
19155
19156 # type: =head2
19157 #: ../fish/guestfish-actions.pod:465
19158 msgid "blockdev-getsize64"
19159 msgstr ""
19160
19161 # type: verbatim
19162 #: ../fish/guestfish-actions.pod:467
19163 #, no-wrap
19164 msgid ""
19165 " blockdev-getsize64 device\n"
19166 "\n"
19167 msgstr ""
19168
19169 # type: textblock
19170 #: ../fish/guestfish-actions.pod:471
19171 msgid "See also L</blockdev-getsz>."
19172 msgstr ""
19173
19174 # type: =head2
19175 #: ../fish/guestfish-actions.pod:475
19176 msgid "blockdev-getss"
19177 msgstr ""
19178
19179 # type: verbatim
19180 #: ../fish/guestfish-actions.pod:477
19181 #, no-wrap
19182 msgid ""
19183 " blockdev-getss device\n"
19184 "\n"
19185 msgstr ""
19186
19187 # type: textblock
19188 #: ../fish/guestfish-actions.pod:482
19189 msgid ""
19190 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19191 msgstr ""
19192
19193 # type: =head2
19194 #: ../fish/guestfish-actions.pod:487
19195 msgid "blockdev-getsz"
19196 msgstr ""
19197
19198 # type: verbatim
19199 #: ../fish/guestfish-actions.pod:489
19200 #, no-wrap
19201 msgid ""
19202 " blockdev-getsz device\n"
19203 "\n"
19204 msgstr ""
19205
19206 # type: textblock
19207 #: ../fish/guestfish-actions.pod:494
19208 msgid ""
19209 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19210 "blockdev-getsize64> for the more useful I<size in bytes>."
19211 msgstr ""
19212
19213 # type: =head2
19214 #: ../fish/guestfish-actions.pod:500
19215 msgid "blockdev-rereadpt"
19216 msgstr ""
19217
19218 # type: verbatim
19219 #: ../fish/guestfish-actions.pod:502
19220 #, no-wrap
19221 msgid ""
19222 " blockdev-rereadpt device\n"
19223 "\n"
19224 msgstr ""
19225
19226 # type: =head2
19227 #: ../fish/guestfish-actions.pod:508
19228 msgid "blockdev-setbsz"
19229 msgstr ""
19230
19231 # type: verbatim
19232 #: ../fish/guestfish-actions.pod:510
19233 #, no-wrap
19234 msgid ""
19235 " blockdev-setbsz device blocksize\n"
19236 "\n"
19237 msgstr ""
19238
19239 # type: =head2
19240 #: ../fish/guestfish-actions.pod:519
19241 msgid "blockdev-setro"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #: ../fish/guestfish-actions.pod:521
19246 #, no-wrap
19247 msgid ""
19248 " blockdev-setro device\n"
19249 "\n"
19250 msgstr ""
19251
19252 # type: =head2
19253 #: ../fish/guestfish-actions.pod:527
19254 msgid "blockdev-setrw"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #: ../fish/guestfish-actions.pod:529
19259 #, no-wrap
19260 msgid ""
19261 " blockdev-setrw device\n"
19262 "\n"
19263 msgstr ""
19264
19265 # type: =head2
19266 #: ../fish/guestfish-actions.pod:535
19267 msgid "case-sensitive-path"
19268 msgstr ""
19269
19270 # type: verbatim
19271 #: ../fish/guestfish-actions.pod:537
19272 #, no-wrap
19273 msgid ""
19274 " case-sensitive-path path\n"
19275 "\n"
19276 msgstr ""
19277
19278 # type: textblock
19279 #: ../fish/guestfish-actions.pod:561
19280 msgid ""
19281 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
19282 "WINDOWS/system32\"> (the exact return value would depend on details of how "
19283 "the directories were originally created under Windows)."
19284 msgstr ""
19285
19286 # type: textblock
19287 #: ../fish/guestfish-actions.pod:569
19288 msgid "See also L</realpath>."
19289 msgstr ""
19290
19291 # type: =head2
19292 #: ../fish/guestfish-actions.pod:571
19293 msgid "cat"
19294 msgstr ""
19295
19296 # type: verbatim
19297 #: ../fish/guestfish-actions.pod:573
19298 #, no-wrap
19299 msgid ""
19300 " cat path\n"
19301 "\n"
19302 msgstr ""
19303
19304 # type: textblock
19305 #: ../fish/guestfish-actions.pod:577
19306 msgid ""
19307 "Note that this function cannot correctly handle binary files (specifically, "
19308 "files containing C<\\0> character which is treated as end of string).  For "
19309 "those you need to use the L</read-file> or L</download> functions which have "
19310 "a more complex interface."
19311 msgstr ""
19312
19313 # type: =head2
19314 #: ../fish/guestfish-actions.pod:585
19315 msgid "checksum"
19316 msgstr ""
19317
19318 # type: verbatim
19319 #: ../fish/guestfish-actions.pod:587
19320 #, no-wrap
19321 msgid ""
19322 " checksum csumtype path\n"
19323 "\n"
19324 msgstr ""
19325
19326 # type: textblock
19327 #: ../fish/guestfish-actions.pod:630
19328 msgid "To get the checksum for a device, use L</checksum-device>."
19329 msgstr ""
19330
19331 # type: textblock
19332 #: ../fish/guestfish-actions.pod:632
19333 msgid "To get the checksums for many files, use L</checksums-out>."
19334 msgstr ""
19335
19336 # type: =head2
19337 #: ../fish/guestfish-actions.pod:634
19338 msgid "checksum-device"
19339 msgstr ""
19340
19341 # type: verbatim
19342 #: ../fish/guestfish-actions.pod:636
19343 #, no-wrap
19344 msgid ""
19345 " checksum-device csumtype device\n"
19346 "\n"
19347 msgstr ""
19348
19349 # type: textblock
19350 #: ../fish/guestfish-actions.pod:638
19351 msgid ""
19352 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19353 "device named C<device>.  For the types of checksums supported see the L</"
19354 "checksum> command."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:642
19359 msgid "checksums-out"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:644
19364 #, no-wrap
19365 msgid ""
19366 " checksums-out csumtype directory (sumsfile|-)\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:660
19372 msgid "chmod"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:662
19377 #, no-wrap
19378 msgid ""
19379 " chmod mode path\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:673
19385 msgid "chown"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:675
19390 #, no-wrap
19391 msgid ""
19392 " chown owner group path\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:683
19398 msgid "command"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:685
19403 #, no-wrap
19404 msgid ""
19405 " command 'arguments ...'\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: textblock
19410 #: ../fish/guestfish-actions.pod:692
19411 msgid ""
19412 "The single parameter is an argv-style list of arguments.  The first element "
19413 "is the name of the program to run.  Subsequent elements are parameters.  The "
19414 "list must be non-empty (ie. must contain a program name).  Note that the "
19415 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19416 msgstr ""
19417
19418 # type: =head2
19419 #: ../fish/guestfish-actions.pod:720
19420 msgid "command-lines"
19421 msgstr ""
19422
19423 # type: verbatim
19424 #: ../fish/guestfish-actions.pod:722
19425 #, no-wrap
19426 msgid ""
19427 " command-lines 'arguments ...'\n"
19428 "\n"
19429 msgstr ""
19430
19431 # type: textblock
19432 #: ../fish/guestfish-actions.pod:724
19433 msgid ""
19434 "This is the same as L</command>, but splits the result into a list of lines."
19435 msgstr ""
19436
19437 # type: textblock
19438 #: ../fish/guestfish-actions.pod:727
19439 msgid "See also: L</sh-lines>"
19440 msgstr ""
19441
19442 # type: =head2
19443 #: ../fish/guestfish-actions.pod:732
19444 msgid "config"
19445 msgstr ""
19446
19447 # type: verbatim
19448 #: ../fish/guestfish-actions.pod:734
19449 #, no-wrap
19450 msgid ""
19451 " config qemuparam qemuvalue\n"
19452 "\n"
19453 msgstr ""
19454
19455 # type: =head2
19456 #: ../fish/guestfish-actions.pod:745
19457 msgid "copy-size"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #: ../fish/guestfish-actions.pod:747
19462 #, no-wrap
19463 msgid ""
19464 " copy-size src dest size\n"
19465 "\n"
19466 msgstr ""
19467
19468 # type: =head2
19469 #: ../fish/guestfish-actions.pod:755
19470 msgid "cp"
19471 msgstr ""
19472
19473 # type: verbatim
19474 #: ../fish/guestfish-actions.pod:757
19475 #, no-wrap
19476 msgid ""
19477 " cp src dest\n"
19478 "\n"
19479 msgstr ""
19480
19481 # type: =head2
19482 #: ../fish/guestfish-actions.pod:762
19483 msgid "cp-a"
19484 msgstr ""
19485
19486 # type: verbatim
19487 #: ../fish/guestfish-actions.pod:764
19488 #, no-wrap
19489 msgid ""
19490 " cp-a src dest\n"
19491 "\n"
19492 msgstr ""
19493
19494 # type: =head2
19495 #: ../fish/guestfish-actions.pod:769
19496 msgid "dd"
19497 msgstr ""
19498
19499 # type: verbatim
19500 #: ../fish/guestfish-actions.pod:771
19501 #, no-wrap
19502 msgid ""
19503 " dd src dest\n"
19504 "\n"
19505 msgstr ""
19506
19507 # type: textblock
19508 #: ../fish/guestfish-actions.pod:778
19509 msgid ""
19510 "If the destination is a device, it must be as large or larger than the "
19511 "source file or device, otherwise the copy will fail.  This command cannot do "
19512 "partial copies (see L</copy-size>)."
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:782
19517 msgid "df"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:784
19522 #, no-wrap
19523 msgid ""
19524 " df\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: =head2
19529 #: ../fish/guestfish-actions.pod:792
19530 msgid "df-h"
19531 msgstr ""
19532
19533 # type: verbatim
19534 #: ../fish/guestfish-actions.pod:794
19535 #, no-wrap
19536 msgid ""
19537 " df-h\n"
19538 "\n"
19539 msgstr ""
19540
19541 # type: =head2
19542 #: ../fish/guestfish-actions.pod:803
19543 msgid "dmesg"
19544 msgstr ""
19545
19546 # type: verbatim
19547 #: ../fish/guestfish-actions.pod:805
19548 #, no-wrap
19549 msgid ""
19550 " dmesg\n"
19551 "\n"
19552 msgstr ""
19553
19554 # type: textblock
19555 #: ../fish/guestfish-actions.pod:811
19556 msgid ""
19557 "Another way to get the same information is to enable verbose messages with "
19558 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19559 "before running the program."
19560 msgstr ""
19561
19562 # type: =head2
19563 #: ../fish/guestfish-actions.pod:816
19564 msgid "download"
19565 msgstr ""
19566
19567 # type: verbatim
19568 #: ../fish/guestfish-actions.pod:818
19569 #, no-wrap
19570 msgid ""
19571 " download remotefilename (filename|-)\n"
19572 "\n"
19573 msgstr ""
19574
19575 # type: textblock
19576 #: ../fish/guestfish-actions.pod:825
19577 msgid "See also L</upload>, L</cat>."
19578 msgstr ""
19579
19580 # type: =head2
19581 #: ../fish/guestfish-actions.pod:829
19582 msgid "download-offset"
19583 msgstr ""
19584
19585 # type: verbatim
19586 #: ../fish/guestfish-actions.pod:831
19587 #, no-wrap
19588 msgid ""
19589 " download-offset remotefilename (filename|-) offset size\n"
19590 "\n"
19591 msgstr ""
19592
19593 # type: textblock
19594 #: ../fish/guestfish-actions.pod:839
19595 msgid ""
19596 "Note that there is no limit on the amount of data that can be downloaded "
19597 "with this call, unlike with L</pread>, and this call always reads the full "
19598 "amount unless an error occurs."
19599 msgstr ""
19600
19601 # type: textblock
19602 #: ../fish/guestfish-actions.pod:844
19603 msgid "See also L</download>, L</pread>."
19604 msgstr ""
19605
19606 # type: =head2
19607 #: ../fish/guestfish-actions.pod:848
19608 msgid "drop-caches"
19609 msgstr ""
19610
19611 # type: verbatim
19612 #: ../fish/guestfish-actions.pod:850
19613 #, no-wrap
19614 msgid ""
19615 " drop-caches whattodrop\n"
19616 "\n"
19617 msgstr ""
19618
19619 # type: =head2
19620 #: ../fish/guestfish-actions.pod:862
19621 msgid "du"
19622 msgstr ""
19623
19624 # type: verbatim
19625 #: ../fish/guestfish-actions.pod:864
19626 #, no-wrap
19627 msgid ""
19628 " du path\n"
19629 "\n"
19630 msgstr ""
19631
19632 # type: =head2
19633 #: ../fish/guestfish-actions.pod:876
19634 msgid "e2fsck-f"
19635 msgstr ""
19636
19637 # type: verbatim
19638 #: ../fish/guestfish-actions.pod:878
19639 #, no-wrap
19640 msgid ""
19641 " e2fsck-f device\n"
19642 "\n"
19643 msgstr ""
19644
19645 # type: textblock
19646 #: ../fish/guestfish-actions.pod:884
19647 msgid ""
19648 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19649 "should use L</fsck>."
19650 msgstr ""
19651
19652 # type: =head2
19653 #: ../fish/guestfish-actions.pod:887
19654 msgid "echo-daemon"
19655 msgstr ""
19656
19657 # type: verbatim
19658 #: ../fish/guestfish-actions.pod:889
19659 #, no-wrap
19660 msgid ""
19661 " echo-daemon 'words ...'\n"
19662 "\n"
19663 msgstr ""
19664
19665 # type: textblock
19666 #: ../fish/guestfish-actions.pod:896
19667 msgid "See also L</ping-daemon>."
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:898
19672 msgid "egrep"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:900
19677 #, no-wrap
19678 msgid ""
19679 " egrep regex path\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: =head2
19684 #: ../fish/guestfish-actions.pod:908
19685 msgid "egrepi"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #: ../fish/guestfish-actions.pod:910
19690 #, no-wrap
19691 msgid ""
19692 " egrepi regex path\n"
19693 "\n"
19694 msgstr ""
19695
19696 # type: =head2
19697 #: ../fish/guestfish-actions.pod:918
19698 msgid "equal"
19699 msgstr ""
19700
19701 # type: verbatim
19702 #: ../fish/guestfish-actions.pod:920
19703 #, no-wrap
19704 msgid ""
19705 " equal file1 file2\n"
19706 "\n"
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:927
19711 msgid "exists"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:929
19716 #, no-wrap
19717 msgid ""
19718 " exists path\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: textblock
19723 #: ../fish/guestfish-actions.pod:934
19724 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19725 msgstr ""
19726
19727 # type: =head2
19728 #: ../fish/guestfish-actions.pod:936
19729 msgid "fallocate"
19730 msgstr ""
19731
19732 # type: verbatim
19733 #: ../fish/guestfish-actions.pod:938
19734 #, no-wrap
19735 msgid ""
19736 " fallocate path len\n"
19737 "\n"
19738 msgstr ""
19739
19740 # type: =head2
19741 #: ../fish/guestfish-actions.pod:955
19742 msgid "fallocate64"
19743 msgstr ""
19744
19745 # type: verbatim
19746 #: ../fish/guestfish-actions.pod:957
19747 #, no-wrap
19748 msgid ""
19749 " fallocate64 path len\n"
19750 "\n"
19751 msgstr ""
19752
19753 # type: textblock
19754 #: ../fish/guestfish-actions.pod:963
19755 msgid ""
19756 "Note that this call allocates disk blocks for the file.  To create a sparse "
19757 "file use L</truncate-size> instead."
19758 msgstr ""
19759
19760 # type: textblock
19761 #: ../fish/guestfish-actions.pod:966
19762 msgid ""
19763 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19764 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19765 "maximum size of files created through that call to 1GB."
19766 msgstr ""
19767
19768 # type: =head2
19769 #: ../fish/guestfish-actions.pod:975
19770 msgid "fgrep"
19771 msgstr ""
19772
19773 # type: verbatim
19774 #: ../fish/guestfish-actions.pod:977
19775 #, no-wrap
19776 msgid ""
19777 " fgrep pattern path\n"
19778 "\n"
19779 msgstr ""
19780
19781 # type: =head2
19782 #: ../fish/guestfish-actions.pod:985
19783 msgid "fgrepi"
19784 msgstr ""
19785
19786 # type: verbatim
19787 #: ../fish/guestfish-actions.pod:987
19788 #, no-wrap
19789 msgid ""
19790 " fgrepi pattern path\n"
19791 "\n"
19792 msgstr ""
19793
19794 # type: =head2
19795 #: ../fish/guestfish-actions.pod:995
19796 msgid "file"
19797 msgstr ""
19798
19799 # type: verbatim
19800 #: ../fish/guestfish-actions.pod:997
19801 #, no-wrap
19802 msgid ""
19803 " file path\n"
19804 "\n"
19805 msgstr ""
19806
19807 # type: textblock
19808 #: ../fish/guestfish-actions.pod:1009
19809 msgid ""
19810 "This command can also be used on C</dev/> devices (and partitions, LV "
19811 "names).  You can for example use this to determine if a device contains a "
19812 "filesystem, although it's usually better to use L</vfs-type>."
19813 msgstr ""
19814
19815 # type: =head2
19816 #: ../fish/guestfish-actions.pod:1019
19817 msgid "file-architecture"
19818 msgstr ""
19819
19820 # type: verbatim
19821 #: ../fish/guestfish-actions.pod:1021
19822 #, no-wrap
19823 msgid ""
19824 " file-architecture filename\n"
19825 "\n"
19826 msgstr ""
19827
19828 # type: =head2
19829 #: ../fish/guestfish-actions.pod:1124
19830 msgid "filesize"
19831 msgstr ""
19832
19833 # type: verbatim
19834 #: ../fish/guestfish-actions.pod:1126
19835 #, no-wrap
19836 msgid ""
19837 " filesize file\n"
19838 "\n"
19839 msgstr ""
19840
19841 # type: textblock
19842 #: ../fish/guestfish-actions.pod:1130
19843 msgid ""
19844 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19845 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19846 msgstr ""
19847
19848 # type: =head2
19849 #: ../fish/guestfish-actions.pod:1134
19850 msgid "fill"
19851 msgstr ""
19852
19853 # type: verbatim
19854 #: ../fish/guestfish-actions.pod:1136
19855 #, no-wrap
19856 msgid ""
19857 " fill c len path\n"
19858 "\n"
19859 msgstr ""
19860
19861 # type: textblock
19862 #: ../fish/guestfish-actions.pod:1142
19863 msgid ""
19864 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19865 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19866 "L</fill-pattern>."
19867 msgstr ""
19868
19869 # type: =head2
19870 #: ../fish/guestfish-actions.pod:1147
19871 msgid "fill-pattern"
19872 msgstr ""
19873
19874 # type: verbatim
19875 #: ../fish/guestfish-actions.pod:1149
19876 #, no-wrap
19877 msgid ""
19878 " fill-pattern pattern len path\n"
19879 "\n"
19880 msgstr ""
19881
19882 # type: textblock
19883 #: ../fish/guestfish-actions.pod:1151
19884 msgid ""
19885 "This function is like L</fill> except that it creates a new file of length "
19886 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19887 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19888 "bytes."
19889 msgstr ""
19890
19891 # type: =head2
19892 #: ../fish/guestfish-actions.pod:1156
19893 msgid "find"
19894 msgstr ""
19895
19896 # type: verbatim
19897 #: ../fish/guestfish-actions.pod:1158
19898 #, no-wrap
19899 msgid ""
19900 " find directory\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: textblock
19905 #: ../fish/guestfish-actions.pod:1172
19906 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19907 msgstr ""
19908
19909 # type: textblock
19910 #: ../fish/guestfish-actions.pod:1185
19911 msgid "See also L</find0>."
19912 msgstr ""
19913
19914 # type: =head2
19915 #: ../fish/guestfish-actions.pod:1190
19916 msgid "find0"
19917 msgstr ""
19918
19919 # type: verbatim
19920 #: ../fish/guestfish-actions.pod:1192
19921 #, no-wrap
19922 msgid ""
19923 " find0 directory (files|-)\n"
19924 "\n"
19925 msgstr ""
19926
19927 # type: textblock
19928 #: ../fish/guestfish-actions.pod:1198
19929 msgid ""
19930 "This command works the same way as L</find> with the following exceptions:"
19931 msgstr ""
19932
19933 # type: =head2
19934 #: ../fish/guestfish-actions.pod:1225
19935 msgid "findfs-label"
19936 msgstr ""
19937
19938 # type: verbatim
19939 #: ../fish/guestfish-actions.pod:1227
19940 #, no-wrap
19941 msgid ""
19942 " findfs-label label\n"
19943 "\n"
19944 msgstr ""
19945
19946 # type: textblock
19947 #: ../fish/guestfish-actions.pod:1233
19948 msgid "To find the label of a filesystem, use L</vfs-label>."
19949 msgstr ""
19950
19951 # type: =head2
19952 #: ../fish/guestfish-actions.pod:1235
19953 msgid "findfs-uuid"
19954 msgstr ""
19955
19956 # type: verbatim
19957 #: ../fish/guestfish-actions.pod:1237
19958 #, no-wrap
19959 msgid ""
19960 " findfs-uuid uuid\n"
19961 "\n"
19962 msgstr ""
19963
19964 # type: textblock
19965 #: ../fish/guestfish-actions.pod:1243
19966 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19967 msgstr ""
19968
19969 # type: =head2
19970 #: ../fish/guestfish-actions.pod:1245
19971 msgid "fsck"
19972 msgstr ""
19973
19974 # type: verbatim
19975 #: ../fish/guestfish-actions.pod:1247
19976 #, no-wrap
19977 msgid ""
19978 " fsck fstype device\n"
19979 "\n"
19980 msgstr ""
19981
19982 # type: =head2
19983 #: ../fish/guestfish-actions.pod:1277
19984 msgid "get-append"
19985 msgstr ""
19986
19987 # type: verbatim
19988 #: ../fish/guestfish-actions.pod:1279
19989 #, no-wrap
19990 msgid ""
19991 " get-append\n"
19992 "\n"
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:1286
19997 msgid "get-autosync"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:1288
20002 #, no-wrap
20003 msgid ""
20004 " get-autosync\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: =head2
20009 #: ../fish/guestfish-actions.pod:1292
20010 msgid "get-direct"
20011 msgstr ""
20012
20013 # type: verbatim
20014 #: ../fish/guestfish-actions.pod:1294
20015 #, no-wrap
20016 msgid ""
20017 " get-direct\n"
20018 "\n"
20019 msgstr ""
20020
20021 # type: =head2
20022 #: ../fish/guestfish-actions.pod:1298
20023 msgid "get-e2label"
20024 msgstr ""
20025
20026 # type: verbatim
20027 #: ../fish/guestfish-actions.pod:1300
20028 #, no-wrap
20029 msgid ""
20030 " get-e2label device\n"
20031 "\n"
20032 msgstr ""
20033
20034 # type: =head2
20035 #: ../fish/guestfish-actions.pod:1312
20036 msgid "get-e2uuid"
20037 msgstr ""
20038
20039 # type: verbatim
20040 #: ../fish/guestfish-actions.pod:1314
20041 #, no-wrap
20042 msgid ""
20043 " get-e2uuid device\n"
20044 "\n"
20045 msgstr ""
20046
20047 # type: =head2
20048 #: ../fish/guestfish-actions.pod:1326
20049 msgid "get-memsize"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #: ../fish/guestfish-actions.pod:1328
20054 #, no-wrap
20055 msgid ""
20056 " get-memsize\n"
20057 "\n"
20058 msgstr ""
20059
20060 # type: textblock
20061 #: ../fish/guestfish-actions.pod:1333
20062 msgid ""
20063 "If L</set-memsize> was not called on this handle, and if "
20064 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20065 "value for memsize."
20066 msgstr ""
20067
20068 # type: =head2
20069 #: ../fish/guestfish-actions.pod:1340
20070 msgid "get-network"
20071 msgstr ""
20072
20073 # type: verbatim
20074 #: ../fish/guestfish-actions.pod:1342
20075 #, no-wrap
20076 msgid ""
20077 " get-network\n"
20078 "\n"
20079 msgstr ""
20080
20081 # type: =head2
20082 #: ../fish/guestfish-actions.pod:1346
20083 msgid "get-path"
20084 msgstr ""
20085
20086 # type: verbatim
20087 #: ../fish/guestfish-actions.pod:1348
20088 #, no-wrap
20089 msgid ""
20090 " get-path\n"
20091 "\n"
20092 msgstr ""
20093
20094 # type: =head2
20095 #: ../fish/guestfish-actions.pod:1355
20096 msgid "get-pid"
20097 msgstr ""
20098
20099 # type: =head2
20100 #: ../fish/guestfish-actions.pod:1357
20101 msgid "pid"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #: ../fish/guestfish-actions.pod:1359
20106 #, no-wrap
20107 msgid ""
20108 " get-pid\n"
20109 "\n"
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:1366
20114 msgid "get-qemu"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:1368
20119 #, no-wrap
20120 msgid ""
20121 " get-qemu\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: =head2
20126 #: ../fish/guestfish-actions.pod:1375
20127 msgid "get-recovery-proc"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #: ../fish/guestfish-actions.pod:1377
20132 #, no-wrap
20133 msgid ""
20134 " get-recovery-proc\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: =head2
20139 #: ../fish/guestfish-actions.pod:1381
20140 msgid "get-selinux"
20141 msgstr ""
20142
20143 # type: verbatim
20144 #: ../fish/guestfish-actions.pod:1383
20145 #, no-wrap
20146 msgid ""
20147 " get-selinux\n"
20148 "\n"
20149 msgstr ""
20150
20151 # type: textblock
20152 #: ../fish/guestfish-actions.pod:1385
20153 msgid ""
20154 "This returns the current setting of the selinux flag which is passed to the "
20155 "appliance at boot time.  See L</set-selinux>."
20156 msgstr ""
20157
20158 # type: =head2
20159 #: ../fish/guestfish-actions.pod:1391
20160 msgid "get-state"
20161 msgstr ""
20162
20163 # type: verbatim
20164 #: ../fish/guestfish-actions.pod:1393
20165 #, no-wrap
20166 msgid ""
20167 " get-state\n"
20168 "\n"
20169 msgstr ""
20170
20171 # type: =head2
20172 #: ../fish/guestfish-actions.pod:1400
20173 msgid "get-trace"
20174 msgstr ""
20175
20176 # type: verbatim
20177 #: ../fish/guestfish-actions.pod:1402
20178 #, no-wrap
20179 msgid ""
20180 " get-trace\n"
20181 "\n"
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:1406
20186 msgid "get-umask"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:1408
20191 #, no-wrap
20192 msgid ""
20193 " get-umask\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:1410
20199 msgid ""
20200 "Return the current umask.  By default the umask is C<022> unless it has been "
20201 "set by calling L</umask>."
20202 msgstr ""
20203
20204 # type: =head2
20205 #: ../fish/guestfish-actions.pod:1413
20206 msgid "get-verbose"
20207 msgstr ""
20208
20209 # type: verbatim
20210 #: ../fish/guestfish-actions.pod:1415
20211 #, no-wrap
20212 msgid ""
20213 " get-verbose\n"
20214 "\n"
20215 msgstr ""
20216
20217 # type: =head2
20218 #: ../fish/guestfish-actions.pod:1419
20219 msgid "getcon"
20220 msgstr ""
20221
20222 # type: verbatim
20223 #: ../fish/guestfish-actions.pod:1421
20224 #, no-wrap
20225 msgid ""
20226 " getcon\n"
20227 "\n"
20228 msgstr ""
20229
20230 # type: textblock
20231 #: ../fish/guestfish-actions.pod:1425
20232 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20233 msgstr ""
20234
20235 # type: =head2
20236 #: ../fish/guestfish-actions.pod:1428
20237 msgid "getxattrs"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #: ../fish/guestfish-actions.pod:1430
20242 #, no-wrap
20243 msgid ""
20244 " getxattrs path\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: textblock
20249 #: ../fish/guestfish-actions.pod:1438
20250 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20251 msgstr ""
20252
20253 # type: =head2
20254 #: ../fish/guestfish-actions.pod:1440
20255 msgid "glob-expand"
20256 msgstr ""
20257
20258 # type: verbatim
20259 #: ../fish/guestfish-actions.pod:1442
20260 #, no-wrap
20261 msgid ""
20262 " glob-expand pattern\n"
20263 "\n"
20264 msgstr ""
20265
20266 # type: =head2
20267 #: ../fish/guestfish-actions.pod:1455
20268 msgid "grep"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #: ../fish/guestfish-actions.pod:1457
20273 #, no-wrap
20274 msgid ""
20275 " grep regex path\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: =head2
20280 #: ../fish/guestfish-actions.pod:1465
20281 msgid "grepi"
20282 msgstr ""
20283
20284 # type: verbatim
20285 #: ../fish/guestfish-actions.pod:1467
20286 #, no-wrap
20287 msgid ""
20288 " grepi regex path\n"
20289 "\n"
20290 msgstr ""
20291
20292 # type: =head2
20293 #: ../fish/guestfish-actions.pod:1475
20294 msgid "grub-install"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #: ../fish/guestfish-actions.pod:1477
20299 #, no-wrap
20300 msgid ""
20301 " grub-install root device\n"
20302 "\n"
20303 msgstr ""
20304
20305 # type: =head2
20306 #: ../fish/guestfish-actions.pod:1493
20307 msgid "head"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #: ../fish/guestfish-actions.pod:1495
20312 #, no-wrap
20313 msgid ""
20314 " head path\n"
20315 "\n"
20316 msgstr ""
20317
20318 # type: =head2
20319 #: ../fish/guestfish-actions.pod:1503
20320 msgid "head-n"
20321 msgstr ""
20322
20323 # type: verbatim
20324 #: ../fish/guestfish-actions.pod:1505
20325 #, no-wrap
20326 msgid ""
20327 " head-n nrlines path\n"
20328 "\n"
20329 msgstr ""
20330
20331 # type: =head2
20332 #: ../fish/guestfish-actions.pod:1518
20333 msgid "hexdump"
20334 msgstr ""
20335
20336 # type: verbatim
20337 #: ../fish/guestfish-actions.pod:1520
20338 #, no-wrap
20339 msgid ""
20340 " hexdump path\n"
20341 "\n"
20342 msgstr ""
20343
20344 # type: =head2
20345 #: ../fish/guestfish-actions.pod:1528
20346 msgid "initrd-cat"
20347 msgstr ""
20348
20349 # type: verbatim
20350 #: ../fish/guestfish-actions.pod:1530
20351 #, no-wrap
20352 msgid ""
20353 " initrd-cat initrdpath filename\n"
20354 "\n"
20355 msgstr ""
20356
20357 # type: textblock
20358 #: ../fish/guestfish-actions.pod:1542
20359 msgid "See also L</initrd-list>."
20360 msgstr ""
20361
20362 # type: =head2
20363 #: ../fish/guestfish-actions.pod:1547
20364 msgid "initrd-list"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #: ../fish/guestfish-actions.pod:1549
20369 #, no-wrap
20370 msgid ""
20371 " initrd-list path\n"
20372 "\n"
20373 msgstr ""
20374
20375 # type: =head2
20376 #: ../fish/guestfish-actions.pod:1561
20377 msgid "inotify-add-watch"
20378 msgstr ""
20379
20380 # type: verbatim
20381 #: ../fish/guestfish-actions.pod:1563
20382 #, no-wrap
20383 msgid ""
20384 " inotify-add-watch path mask\n"
20385 "\n"
20386 msgstr ""
20387
20388 # type: =head2
20389 #: ../fish/guestfish-actions.pod:1575
20390 msgid "inotify-close"
20391 msgstr ""
20392
20393 # type: verbatim
20394 #: ../fish/guestfish-actions.pod:1577
20395 #, no-wrap
20396 msgid ""
20397 " inotify-close\n"
20398 "\n"
20399 msgstr ""
20400
20401 # type: =head2
20402 #: ../fish/guestfish-actions.pod:1583
20403 msgid "inotify-files"
20404 msgstr ""
20405
20406 # type: verbatim
20407 #: ../fish/guestfish-actions.pod:1585
20408 #, no-wrap
20409 msgid ""
20410 " inotify-files\n"
20411 "\n"
20412 msgstr ""
20413
20414 # type: textblock
20415 #: ../fish/guestfish-actions.pod:1587
20416 msgid ""
20417 "This function is a helpful wrapper around L</inotify-read> which just "
20418 "returns a list of pathnames of objects that were touched.  The returned "
20419 "pathnames are sorted and deduplicated."
20420 msgstr ""
20421
20422 # type: =head2
20423 #: ../fish/guestfish-actions.pod:1591
20424 msgid "inotify-init"
20425 msgstr ""
20426
20427 # type: verbatim
20428 #: ../fish/guestfish-actions.pod:1593
20429 #, no-wrap
20430 msgid ""
20431 " inotify-init maxevents\n"
20432 "\n"
20433 msgstr ""
20434
20435 # type: textblock
20436 #: ../fish/guestfish-actions.pod:1599
20437 msgid ""
20438 "C<maxevents> is the maximum number of events which will be queued up between "
20439 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20440 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20441 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20442 "but records the fact that it threw them away by setting a flag "
20443 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20444 msgstr ""
20445
20446 # type: textblock
20447 #: ../fish/guestfish-actions.pod:1609
20448 msgid ""
20449 "Before any events are generated, you have to add some watches to the "
20450 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20451 "L</inotify-watch-all>."
20452 msgstr ""
20453
20454 # type: textblock
20455 #: ../fish/guestfish-actions.pod:1615
20456 msgid ""
20457 "Queued up events should be read periodically by calling L</inotify-read> (or "
20458 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20459 "If you don't read the events out often enough then you risk the internal "
20460 "queue overflowing."
20461 msgstr ""
20462
20463 # type: textblock
20464 #: ../fish/guestfish-actions.pod:1622
20465 msgid ""
20466 "The handle should be closed after use by calling L</inotify-close>.  This "
20467 "also removes any watches automatically."
20468 msgstr ""
20469
20470 # type: =head2
20471 #: ../fish/guestfish-actions.pod:1631
20472 msgid "inotify-read"
20473 msgstr ""
20474
20475 # type: verbatim
20476 #: ../fish/guestfish-actions.pod:1633
20477 #, no-wrap
20478 msgid ""
20479 " inotify-read\n"
20480 "\n"
20481 msgstr ""
20482
20483 # type: =head2
20484 #: ../fish/guestfish-actions.pod:1646
20485 msgid "inotify-rm-watch"
20486 msgstr ""
20487
20488 # type: verbatim
20489 #: ../fish/guestfish-actions.pod:1648
20490 #, no-wrap
20491 msgid ""
20492 " inotify-rm-watch wd\n"
20493 "\n"
20494 msgstr ""
20495
20496 # type: textblock
20497 #: ../fish/guestfish-actions.pod:1650
20498 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20499 msgstr ""
20500
20501 # type: =head2
20502 #: ../fish/guestfish-actions.pod:1653
20503 msgid "inspect-get-arch"
20504 msgstr ""
20505
20506 # type: verbatim
20507 #: ../fish/guestfish-actions.pod:1655
20508 #, no-wrap
20509 msgid ""
20510 " inspect-get-arch root\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: textblock
20515 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
20516 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1757
20517 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1793
20518 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1846
20519 #: ../fish/guestfish-actions.pod:1877
20520 msgid ""
20521 "This function should only be called with a root device string as returned by "
20522 "L</inspect-os>."
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:1660
20527 msgid ""
20528 "This returns the architecture of the inspected operating system.  The "
20529 "possible return values are listed under L</file-architecture>."
20530 msgstr ""
20531
20532 # type: =head2
20533 #: ../fish/guestfish-actions.pod:1669
20534 msgid "inspect-get-distro"
20535 msgstr ""
20536
20537 # type: verbatim
20538 #: ../fish/guestfish-actions.pod:1671
20539 #, no-wrap
20540 msgid ""
20541 " inspect-get-distro root\n"
20542 "\n"
20543 msgstr ""
20544
20545 # type: =head2
20546 #: ../fish/guestfish-actions.pod:1735
20547 msgid "inspect-get-filesystems"
20548 msgstr ""
20549
20550 # type: verbatim
20551 #: ../fish/guestfish-actions.pod:1737
20552 #, no-wrap
20553 msgid ""
20554 " inspect-get-filesystems root\n"
20555 "\n"
20556 msgstr ""
20557
20558 # type: textblock
20559 #: ../fish/guestfish-actions.pod:1750
20560 msgid ""
20561 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20562 "get-mountpoints>."
20563 msgstr ""
20564
20565 # type: =head2
20566 #: ../fish/guestfish-actions.pod:1753
20567 msgid "inspect-get-major-version"
20568 msgstr ""
20569
20570 # type: verbatim
20571 #: ../fish/guestfish-actions.pod:1755
20572 #, no-wrap
20573 msgid ""
20574 " inspect-get-major-version root\n"
20575 "\n"
20576 msgstr ""
20577
20578 # type: =head2
20579 #: ../fish/guestfish-actions.pod:1774
20580 msgid "inspect-get-minor-version"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #: ../fish/guestfish-actions.pod:1776
20585 #, no-wrap
20586 msgid ""
20587 " inspect-get-minor-version root\n"
20588 "\n"
20589 msgstr ""
20590
20591 # type: textblock
20592 #: ../fish/guestfish-actions.pod:1786
20593 msgid ""
20594 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20595 "get-major-version>."
20596 msgstr ""
20597
20598 # type: =head2
20599 #: ../fish/guestfish-actions.pod:1789
20600 msgid "inspect-get-mountpoints"
20601 msgstr ""
20602
20603 # type: verbatim
20604 #: ../fish/guestfish-actions.pod:1791
20605 #, no-wrap
20606 msgid ""
20607 " inspect-get-mountpoints root\n"
20608 "\n"
20609 msgstr ""
20610
20611 # type: textblock
20612 #: ../fish/guestfish-actions.pod:1809
20613 msgid ""
20614 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
20615 "get-filesystems>."
20616 msgstr ""
20617
20618 # type: =head2
20619 #: ../fish/guestfish-actions.pod:1812
20620 msgid "inspect-get-product-name"
20621 msgstr ""
20622
20623 # type: verbatim
20624 #: ../fish/guestfish-actions.pod:1814
20625 #, no-wrap
20626 msgid ""
20627 " inspect-get-product-name root\n"
20628 "\n"
20629 msgstr ""
20630
20631 # type: =head2
20632 #: ../fish/guestfish-actions.pod:1829
20633 msgid "inspect-get-roots"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #: ../fish/guestfish-actions.pod:1831
20638 #, no-wrap
20639 msgid ""
20640 " inspect-get-roots\n"
20641 "\n"
20642 msgstr ""
20643
20644 # type: textblock
20645 #: ../fish/guestfish-actions.pod:1833
20646 msgid ""
20647 "This function is a convenient way to get the list of root devices, as "
20648 "returned from a previous call to L</inspect-os>, but without redoing the "
20649 "whole inspection process."
20650 msgstr ""
20651
20652 # type: textblock
20653 #: ../fish/guestfish-actions.pod:1837
20654 msgid ""
20655 "This returns an empty list if either no root devices were found or the "
20656 "caller has not called L</inspect-os>."
20657 msgstr ""
20658
20659 # type: =head2
20660 #: ../fish/guestfish-actions.pod:1842
20661 msgid "inspect-get-type"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #: ../fish/guestfish-actions.pod:1844
20666 #, no-wrap
20667 msgid ""
20668 " inspect-get-type root\n"
20669 "\n"
20670 msgstr ""
20671
20672 # type: =head2
20673 #: ../fish/guestfish-actions.pod:1873
20674 msgid "inspect-get-windows-systemroot"
20675 msgstr ""
20676
20677 # type: verbatim
20678 #: ../fish/guestfish-actions.pod:1875
20679 #, no-wrap
20680 msgid ""
20681 " inspect-get-windows-systemroot root\n"
20682 "\n"
20683 msgstr ""
20684
20685 # type: =head2
20686 #: ../fish/guestfish-actions.pod:1889
20687 msgid "inspect-os"
20688 msgstr ""
20689
20690 # type: verbatim
20691 #: ../fish/guestfish-actions.pod:1891
20692 #, no-wrap
20693 msgid ""
20694 " inspect-os\n"
20695 "\n"
20696 msgstr ""
20697
20698 # type: textblock
20699 #: ../fish/guestfish-actions.pod:1906
20700 msgid ""
20701 "You can pass the root string(s) returned to other L</inspect-get-*> "
20702 "functions in order to query further information about each operating system, "
20703 "such as the name and version."
20704 msgstr ""
20705
20706 # type: textblock
20707 #: ../fish/guestfish-actions.pod:1911
20708 msgid ""
20709 "This function uses other libguestfs features such as L</mount-ro> and L</"
20710 "umount-all> in order to mount and unmount filesystems and look at the "
20711 "contents.  This should be called with no disks currently mounted.  The "
20712 "function may also use Augeas, so any existing Augeas handle will be closed."
20713 msgstr ""
20714
20715 # type: textblock
20716 #: ../fish/guestfish-actions.pod:1923 ../fish/guestfish-actions.pod:2079
20717 #: ../fish/guestfish-actions.pod:2125
20718 msgid "See also L</list-filesystems>."
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:1925
20723 msgid "is-blockdev"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:1927
20728 #, no-wrap
20729 msgid ""
20730 " is-blockdev path\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: textblock
20735 #: ../fish/guestfish-actions.pod:1932 ../fish/guestfish-actions.pod:1950
20736 #: ../fish/guestfish-actions.pod:1969 ../fish/guestfish-actions.pod:1978
20737 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish-actions.pod:2022
20738 #: ../fish/guestfish-actions.pod:2031
20739 msgid "See also L</stat>."
20740 msgstr ""
20741
20742 # type: =head2
20743 #: ../fish/guestfish-actions.pod:1934
20744 msgid "is-busy"
20745 msgstr ""
20746
20747 # type: verbatim
20748 #: ../fish/guestfish-actions.pod:1936
20749 #, no-wrap
20750 msgid ""
20751 " is-busy\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: =head2
20756 #: ../fish/guestfish-actions.pod:1943
20757 msgid "is-chardev"
20758 msgstr ""
20759
20760 # type: verbatim
20761 #: ../fish/guestfish-actions.pod:1945
20762 #, no-wrap
20763 msgid ""
20764 " is-chardev path\n"
20765 "\n"
20766 msgstr ""
20767
20768 # type: =head2
20769 #: ../fish/guestfish-actions.pod:1952
20770 msgid "is-config"
20771 msgstr ""
20772
20773 # type: verbatim
20774 #: ../fish/guestfish-actions.pod:1954
20775 #, no-wrap
20776 msgid ""
20777 " is-config\n"
20778 "\n"
20779 msgstr ""
20780
20781 # type: =head2
20782 #: ../fish/guestfish-actions.pod:1961
20783 msgid "is-dir"
20784 msgstr ""
20785
20786 # type: verbatim
20787 #: ../fish/guestfish-actions.pod:1963
20788 #, no-wrap
20789 msgid ""
20790 " is-dir path\n"
20791 "\n"
20792 msgstr ""
20793
20794 # type: =head2
20795 #: ../fish/guestfish-actions.pod:1971
20796 msgid "is-fifo"
20797 msgstr ""
20798
20799 # type: verbatim
20800 #: ../fish/guestfish-actions.pod:1973
20801 #, no-wrap
20802 msgid ""
20803 " is-fifo path\n"
20804 "\n"
20805 msgstr ""
20806
20807 # type: =head2
20808 #: ../fish/guestfish-actions.pod:1980
20809 msgid "is-file"
20810 msgstr ""
20811
20812 # type: verbatim
20813 #: ../fish/guestfish-actions.pod:1982
20814 #, no-wrap
20815 msgid ""
20816 " is-file path\n"
20817 "\n"
20818 msgstr ""
20819
20820 # type: =head2
20821 #: ../fish/guestfish-actions.pod:1990
20822 msgid "is-launching"
20823 msgstr ""
20824
20825 # type: verbatim
20826 #: ../fish/guestfish-actions.pod:1992
20827 #, no-wrap
20828 msgid ""
20829 " is-launching\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: =head2
20834 #: ../fish/guestfish-actions.pod:1999
20835 msgid "is-lv"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #: ../fish/guestfish-actions.pod:2001
20840 #, no-wrap
20841 msgid ""
20842 " is-lv device\n"
20843 "\n"
20844 msgstr ""
20845
20846 # type: =head2
20847 #: ../fish/guestfish-actions.pod:2006
20848 msgid "is-ready"
20849 msgstr ""
20850
20851 # type: verbatim
20852 #: ../fish/guestfish-actions.pod:2008
20853 #, no-wrap
20854 msgid ""
20855 " is-ready\n"
20856 "\n"
20857 msgstr ""
20858
20859 # type: =head2
20860 #: ../fish/guestfish-actions.pod:2015
20861 msgid "is-socket"
20862 msgstr ""
20863
20864 # type: verbatim
20865 #: ../fish/guestfish-actions.pod:2017
20866 #, no-wrap
20867 msgid ""
20868 " is-socket path\n"
20869 "\n"
20870 msgstr ""
20871
20872 # type: =head2
20873 #: ../fish/guestfish-actions.pod:2024
20874 msgid "is-symlink"
20875 msgstr ""
20876
20877 # type: verbatim
20878 #: ../fish/guestfish-actions.pod:2026
20879 #, no-wrap
20880 msgid ""
20881 " is-symlink path\n"
20882 "\n"
20883 msgstr ""
20884
20885 # type: =head2
20886 #: ../fish/guestfish-actions.pod:2033
20887 msgid "kill-subprocess"
20888 msgstr ""
20889
20890 # type: verbatim
20891 #: ../fish/guestfish-actions.pod:2035
20892 #, no-wrap
20893 msgid ""
20894 " kill-subprocess\n"
20895 "\n"
20896 msgstr ""
20897
20898 # type: =head2
20899 #: ../fish/guestfish-actions.pod:2039
20900 msgid "launch"
20901 msgstr ""
20902
20903 # type: =head2
20904 #: ../fish/guestfish-actions.pod:2041
20905 msgid "run"
20906 msgstr ""
20907
20908 # type: verbatim
20909 #: ../fish/guestfish-actions.pod:2043
20910 #, no-wrap
20911 msgid ""
20912 " launch\n"
20913 "\n"
20914 msgstr ""
20915
20916 # type: =head2
20917 #: ../fish/guestfish-actions.pod:2051
20918 msgid "lchown"
20919 msgstr ""
20920
20921 # type: verbatim
20922 #: ../fish/guestfish-actions.pod:2053
20923 #, no-wrap
20924 msgid ""
20925 " lchown owner group path\n"
20926 "\n"
20927 msgstr ""
20928
20929 # type: textblock
20930 #: ../fish/guestfish-actions.pod:2055
20931 msgid ""
20932 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
20933 "chown> but if C<path> is a symlink then the link itself is changed, not the "
20934 "target."
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:2063
20939 msgid "lgetxattrs"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:2065
20944 #, no-wrap
20945 msgid ""
20946 " lgetxattrs path\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: textblock
20951 #: ../fish/guestfish-actions.pod:2067
20952 msgid ""
20953 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20954 "it returns the extended attributes of the link itself."
20955 msgstr ""
20956
20957 # type: =head2
20958 #: ../fish/guestfish-actions.pod:2071
20959 msgid "list-devices"
20960 msgstr ""
20961
20962 # type: verbatim
20963 #: ../fish/guestfish-actions.pod:2073
20964 #, no-wrap
20965 msgid ""
20966 " list-devices\n"
20967 "\n"
20968 msgstr ""
20969
20970 # type: =head2
20971 #: ../fish/guestfish-actions.pod:2081
20972 msgid "list-filesystems"
20973 msgstr ""
20974
20975 # type: verbatim
20976 #: ../fish/guestfish-actions.pod:2083
20977 #, no-wrap
20978 msgid ""
20979 " list-filesystems\n"
20980 "\n"
20981 msgstr ""
20982
20983 # type: textblock
20984 #: ../fish/guestfish-actions.pod:2102
20985 msgid ""
20986 "This command runs other libguestfs commands, which might include L</mount> "
20987 "and L</umount>, and therefore you should use this soon after launch and only "
20988 "when nothing is mounted."
20989 msgstr ""
20990
20991 # type: textblock
20992 #: ../fish/guestfish-actions.pod:2106
20993 msgid ""
20994 "Not all of the filesystems returned will be mountable.  In particular, swap "
20995 "partitions are returned in the list.  Also this command does not check that "
20996 "each filesystem found is valid and mountable, and some filesystems might be "
20997 "mountable but require special options.  Filesystems may not all belong to a "
20998 "single logical operating system (use L</inspect-os> to look for OSes)."
20999 msgstr ""
21000
21001 # type: =head2
21002 #: ../fish/guestfish-actions.pod:2114
21003 msgid "list-partitions"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #: ../fish/guestfish-actions.pod:2116
21008 #, no-wrap
21009 msgid ""
21010 " list-partitions\n"
21011 "\n"
21012 msgstr ""
21013
21014 # type: textblock
21015 #: ../fish/guestfish-actions.pod:2122
21016 msgid ""
21017 "This does not return logical volumes.  For that you will need to call L</"
21018 "lvs>."
21019 msgstr ""
21020
21021 # type: =head2
21022 #: ../fish/guestfish-actions.pod:2127
21023 msgid "ll"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #: ../fish/guestfish-actions.pod:2129
21028 #, no-wrap
21029 msgid ""
21030 " ll directory\n"
21031 "\n"
21032 msgstr ""
21033
21034 # type: =head2
21035 #: ../fish/guestfish-actions.pod:2137
21036 msgid "ln"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #: ../fish/guestfish-actions.pod:2139
21041 #, no-wrap
21042 msgid ""
21043 " ln target linkname\n"
21044 "\n"
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:2143
21049 msgid "ln-f"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:2145
21054 #, no-wrap
21055 msgid ""
21056 " ln-f target linkname\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:2150
21062 msgid "ln-s"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:2152
21067 #, no-wrap
21068 msgid ""
21069 " ln-s target linkname\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: =head2
21074 #: ../fish/guestfish-actions.pod:2156
21075 msgid "ln-sf"
21076 msgstr ""
21077
21078 # type: verbatim
21079 #: ../fish/guestfish-actions.pod:2158
21080 #, no-wrap
21081 msgid ""
21082 " ln-sf target linkname\n"
21083 "\n"
21084 msgstr ""
21085
21086 # type: =head2
21087 #: ../fish/guestfish-actions.pod:2163
21088 msgid "lremovexattr"
21089 msgstr ""
21090
21091 # type: verbatim
21092 #: ../fish/guestfish-actions.pod:2165
21093 #, no-wrap
21094 msgid ""
21095 " lremovexattr xattr path\n"
21096 "\n"
21097 msgstr ""
21098
21099 # type: textblock
21100 #: ../fish/guestfish-actions.pod:2167
21101 msgid ""
21102 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21103 "it removes an extended attribute of the link itself."
21104 msgstr ""
21105
21106 # type: =head2
21107 #: ../fish/guestfish-actions.pod:2171
21108 msgid "ls"
21109 msgstr ""
21110
21111 # type: verbatim
21112 #: ../fish/guestfish-actions.pod:2173
21113 #, no-wrap
21114 msgid ""
21115 " ls directory\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: textblock
21120 #: ../fish/guestfish-actions.pod:2179
21121 msgid ""
21122 "This command is mostly useful for interactive sessions.  Programs should "
21123 "probably use L</readdir> instead."
21124 msgstr ""
21125
21126 # type: =head2
21127 #: ../fish/guestfish-actions.pod:2182
21128 msgid "lsetxattr"
21129 msgstr ""
21130
21131 # type: verbatim
21132 #: ../fish/guestfish-actions.pod:2184
21133 #, no-wrap
21134 msgid ""
21135 " lsetxattr xattr val vallen path\n"
21136 "\n"
21137 msgstr ""
21138
21139 # type: textblock
21140 #: ../fish/guestfish-actions.pod:2186
21141 msgid ""
21142 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21143 "sets an extended attribute of the link itself."
21144 msgstr ""
21145
21146 # type: =head2
21147 #: ../fish/guestfish-actions.pod:2190
21148 msgid "lstat"
21149 msgstr ""
21150
21151 # type: verbatim
21152 #: ../fish/guestfish-actions.pod:2192
21153 #, no-wrap
21154 msgid ""
21155 " lstat path\n"
21156 "\n"
21157 msgstr ""
21158
21159 # type: textblock
21160 #: ../fish/guestfish-actions.pod:2196
21161 msgid ""
21162 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21163 "the link is stat-ed, not the file it refers to."
21164 msgstr ""
21165
21166 # type: =head2
21167 #: ../fish/guestfish-actions.pod:2202
21168 msgid "lstatlist"
21169 msgstr ""
21170
21171 # type: verbatim
21172 #: ../fish/guestfish-actions.pod:2204
21173 #, no-wrap
21174 msgid ""
21175 " lstatlist path 'names ...'\n"
21176 "\n"
21177 msgstr ""
21178
21179 # type: textblock
21180 #: ../fish/guestfish-actions.pod:2206
21181 msgid ""
21182 "This call allows you to perform the L</lstat> operation on multiple files, "
21183 "where all files are in the directory C<path>.  C<names> is the list of files "
21184 "from this directory."
21185 msgstr ""
21186
21187 # type: textblock
21188 #: ../fish/guestfish-actions.pod:2215
21189 msgid ""
21190 "This call is intended for programs that want to efficiently list a directory "
21191 "contents without making many round-trips.  See also L</lxattrlist> for a "
21192 "similarly efficient call for getting extended attributes.  Very long "
21193 "directory listings might cause the protocol message size to be exceeded, "
21194 "causing this call to fail.  The caller must split up such requests into "
21195 "smaller groups of names."
21196 msgstr ""
21197
21198 # type: =head2
21199 #: ../fish/guestfish-actions.pod:2223
21200 msgid "luks-add-key"
21201 msgstr ""
21202
21203 # type: verbatim
21204 #: ../fish/guestfish-actions.pod:2225
21205 #, no-wrap
21206 msgid ""
21207 " luks-add-key device keyslot\n"
21208 "\n"
21209 msgstr ""
21210
21211 # type: textblock
21212 #: ../fish/guestfish-actions.pod:2232
21213 msgid ""
21214 "Note that if C<keyslot> already contains a key, then this command will "
21215 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21216 msgstr ""
21217
21218 # type: textblock
21219 #: ../fish/guestfish-actions.pod:2236 ../fish/guestfish-actions.pod:2258
21220 #: ../fish/guestfish-actions.pod:2271 ../fish/guestfish-actions.pod:2285
21221 #: ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2318
21222 msgid ""
21223 "This command has one or more key or passphrase parameters.  Guestfish will "
21224 "prompt for these separately."
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:2239
21229 msgid "luks-close"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:2241
21234 #, no-wrap
21235 msgid ""
21236 " luks-close device\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: textblock
21241 #: ../fish/guestfish-actions.pod:2243
21242 msgid ""
21243 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
21244 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
21245 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
21246 "block device."
21247 msgstr ""
21248
21249 # type: =head2
21250 #: ../fish/guestfish-actions.pod:2249
21251 msgid "luks-format"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #: ../fish/guestfish-actions.pod:2251
21256 #, no-wrap
21257 msgid ""
21258 " luks-format device keyslot\n"
21259 "\n"
21260 msgstr ""
21261
21262 # type: =head2
21263 #: ../fish/guestfish-actions.pod:2264
21264 msgid "luks-format-cipher"
21265 msgstr ""
21266
21267 # type: verbatim
21268 #: ../fish/guestfish-actions.pod:2266
21269 #, no-wrap
21270 msgid ""
21271 " luks-format-cipher device keyslot cipher\n"
21272 "\n"
21273 msgstr ""
21274
21275 # type: textblock
21276 #: ../fish/guestfish-actions.pod:2268
21277 msgid ""
21278 "This command is the same as L</luks-format> but it also allows you to set "
21279 "the C<cipher> used."
21280 msgstr ""
21281
21282 # type: =head2
21283 #: ../fish/guestfish-actions.pod:2277
21284 msgid "luks-kill-slot"
21285 msgstr ""
21286
21287 # type: verbatim
21288 #: ../fish/guestfish-actions.pod:2279
21289 #, no-wrap
21290 msgid ""
21291 " luks-kill-slot device keyslot\n"
21292 "\n"
21293 msgstr ""
21294
21295 # type: =head2
21296 #: ../fish/guestfish-actions.pod:2288
21297 msgid "luks-open"
21298 msgstr ""
21299
21300 # type: verbatim
21301 #: ../fish/guestfish-actions.pod:2290
21302 #, no-wrap
21303 msgid ""
21304 " luks-open device mapname\n"
21305 "\n"
21306 msgstr ""
21307
21308 # type: textblock
21309 #: ../fish/guestfish-actions.pod:2304
21310 msgid ""
21311 "If this block device contains LVM volume groups, then calling L</vgscan> "
21312 "followed by L</vg-activate-all> will make them visible."
21313 msgstr ""
21314
21315 # type: =head2
21316 #: ../fish/guestfish-actions.pod:2311
21317 msgid "luks-open-ro"
21318 msgstr ""
21319
21320 # type: verbatim
21321 #: ../fish/guestfish-actions.pod:2313
21322 #, no-wrap
21323 msgid ""
21324 " luks-open-ro device mapname\n"
21325 "\n"
21326 msgstr ""
21327
21328 # type: textblock
21329 #: ../fish/guestfish-actions.pod:2315
21330 msgid ""
21331 "This is the same as L</luks-open> except that a read-only mapping is created."
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:2321
21336 msgid "lvcreate"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #: ../fish/guestfish-actions.pod:2323
21341 #, no-wrap
21342 msgid ""
21343 " lvcreate logvol volgroup mbytes\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:2328
21349 msgid "lvm-canonical-lv-name"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:2330
21354 #, no-wrap
21355 msgid ""
21356 " lvm-canonical-lv-name lvname\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: textblock
21361 #: ../fish/guestfish-actions.pod:2339
21362 msgid "See also L</is-lv>."
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:2341
21367 msgid "lvm-clear-filter"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:2343
21372 #, no-wrap
21373 msgid ""
21374 " lvm-clear-filter\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: textblock
21379 #: ../fish/guestfish-actions.pod:2345
21380 msgid ""
21381 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21382 "block device."
21383 msgstr ""
21384
21385 # type: =head2
21386 #: ../fish/guestfish-actions.pod:2351
21387 msgid "lvm-remove-all"
21388 msgstr ""
21389
21390 # type: verbatim
21391 #: ../fish/guestfish-actions.pod:2353
21392 #, no-wrap
21393 msgid ""
21394 " lvm-remove-all\n"
21395 "\n"
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:2361
21400 msgid "lvm-set-filter"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:2363
21405 #, no-wrap
21406 msgid ""
21407 " lvm-set-filter 'devices ...'\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:2388
21413 msgid "lvremove"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:2390
21418 #, no-wrap
21419 msgid ""
21420 " lvremove device\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: =head2
21425 #: ../fish/guestfish-actions.pod:2398
21426 msgid "lvrename"
21427 msgstr ""
21428
21429 # type: verbatim
21430 #: ../fish/guestfish-actions.pod:2400
21431 #, no-wrap
21432 msgid ""
21433 " lvrename logvol newlogvol\n"
21434 "\n"
21435 msgstr ""
21436
21437 # type: =head2
21438 #: ../fish/guestfish-actions.pod:2404
21439 msgid "lvresize"
21440 msgstr ""
21441
21442 # type: verbatim
21443 #: ../fish/guestfish-actions.pod:2406
21444 #, no-wrap
21445 msgid ""
21446 " lvresize device mbytes\n"
21447 "\n"
21448 msgstr ""
21449
21450 # type: =head2
21451 #: ../fish/guestfish-actions.pod:2412
21452 msgid "lvresize-free"
21453 msgstr ""
21454
21455 # type: verbatim
21456 #: ../fish/guestfish-actions.pod:2414
21457 #, no-wrap
21458 msgid ""
21459 " lvresize-free lv percent\n"
21460 "\n"
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:2422
21465 msgid "lvs"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:2424
21470 #, no-wrap
21471 msgid ""
21472 " lvs\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: textblock
21477 #: ../fish/guestfish-actions.pod:2432
21478 msgid "See also L</lvs-full>, L</list-filesystems>."
21479 msgstr ""
21480
21481 # type: =head2
21482 #: ../fish/guestfish-actions.pod:2434
21483 msgid "lvs-full"
21484 msgstr ""
21485
21486 # type: verbatim
21487 #: ../fish/guestfish-actions.pod:2436
21488 #, no-wrap
21489 msgid ""
21490 " lvs-full\n"
21491 "\n"
21492 msgstr ""
21493
21494 # type: =head2
21495 #: ../fish/guestfish-actions.pod:2441
21496 msgid "lvuuid"
21497 msgstr ""
21498
21499 # type: verbatim
21500 #: ../fish/guestfish-actions.pod:2443
21501 #, no-wrap
21502 msgid ""
21503 " lvuuid device\n"
21504 "\n"
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:2447
21509 msgid "lxattrlist"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:2449
21514 #, no-wrap
21515 msgid ""
21516 " lxattrlist path 'names ...'\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: textblock
21521 #: ../fish/guestfish-actions.pod:2465
21522 msgid ""
21523 "This call is intended for programs that want to efficiently list a directory "
21524 "contents without making many round-trips.  See also L</lstatlist> for a "
21525 "similarly efficient call for getting standard stats.  Very long directory "
21526 "listings might cause the protocol message size to be exceeded, causing this "
21527 "call to fail.  The caller must split up such requests into smaller groups of "
21528 "names."
21529 msgstr ""
21530
21531 # type: =head2
21532 #: ../fish/guestfish-actions.pod:2473
21533 msgid "mkdir"
21534 msgstr ""
21535
21536 # type: verbatim
21537 #: ../fish/guestfish-actions.pod:2475
21538 #, no-wrap
21539 msgid ""
21540 " mkdir path\n"
21541 "\n"
21542 msgstr ""
21543
21544 # type: =head2
21545 #: ../fish/guestfish-actions.pod:2479
21546 msgid "mkdir-mode"
21547 msgstr ""
21548
21549 # type: verbatim
21550 #: ../fish/guestfish-actions.pod:2481
21551 #, no-wrap
21552 msgid ""
21553 " mkdir-mode path mode\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: textblock
21558 #: ../fish/guestfish-actions.pod:2490
21559 msgid "See also L</mkdir>, L</umask>"
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:2492
21564 msgid "mkdir-p"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:2494
21569 #, no-wrap
21570 msgid ""
21571 " mkdir-p path\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:2499
21577 msgid "mkdtemp"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:2501
21582 #, no-wrap
21583 msgid ""
21584 " mkdtemp template\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:2522
21590 msgid "mke2fs-J"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:2524
21595 #, no-wrap
21596 msgid ""
21597 " mke2fs-J fstype blocksize device journal\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: textblock
21602 #: ../fish/guestfish-actions.pod:2532
21603 msgid "See also L</mke2journal>."
21604 msgstr ""
21605
21606 # type: =head2
21607 #: ../fish/guestfish-actions.pod:2534
21608 msgid "mke2fs-JL"
21609 msgstr ""
21610
21611 # type: verbatim
21612 #: ../fish/guestfish-actions.pod:2536
21613 #, no-wrap
21614 msgid ""
21615 " mke2fs-JL fstype blocksize device label\n"
21616 "\n"
21617 msgstr ""
21618
21619 # type: textblock
21620 #: ../fish/guestfish-actions.pod:2541
21621 msgid "See also L</mke2journal-L>."
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:2543
21626 msgid "mke2fs-JU"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:2545
21631 #, no-wrap
21632 msgid ""
21633 " mke2fs-JU fstype blocksize device uuid\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: textblock
21638 #: ../fish/guestfish-actions.pod:2550
21639 msgid "See also L</mke2journal-U>."
21640 msgstr ""
21641
21642 # type: =head2
21643 #: ../fish/guestfish-actions.pod:2552
21644 msgid "mke2journal"
21645 msgstr ""
21646
21647 # type: verbatim
21648 #: ../fish/guestfish-actions.pod:2554
21649 #, no-wrap
21650 msgid ""
21651 " mke2journal blocksize device\n"
21652 "\n"
21653 msgstr ""
21654
21655 # type: =head2
21656 #: ../fish/guestfish-actions.pod:2561
21657 msgid "mke2journal-L"
21658 msgstr ""
21659
21660 # type: verbatim
21661 #: ../fish/guestfish-actions.pod:2563
21662 #, no-wrap
21663 msgid ""
21664 " mke2journal-L blocksize label device\n"
21665 "\n"
21666 msgstr ""
21667
21668 # type: =head2
21669 #: ../fish/guestfish-actions.pod:2567
21670 msgid "mke2journal-U"
21671 msgstr ""
21672
21673 # type: verbatim
21674 #: ../fish/guestfish-actions.pod:2569
21675 #, no-wrap
21676 msgid ""
21677 " mke2journal-U blocksize uuid device\n"
21678 "\n"
21679 msgstr ""
21680
21681 # type: =head2
21682 #: ../fish/guestfish-actions.pod:2573
21683 msgid "mkfifo"
21684 msgstr ""
21685
21686 # type: verbatim
21687 #: ../fish/guestfish-actions.pod:2575
21688 #, no-wrap
21689 msgid ""
21690 " mkfifo mode path\n"
21691 "\n"
21692 msgstr ""
21693
21694 # type: textblock
21695 #: ../fish/guestfish-actions.pod:2577
21696 msgid ""
21697 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21698 "is just a convenient wrapper around L</mknod>."
21699 msgstr ""
21700
21701 # type: =head2
21702 #: ../fish/guestfish-actions.pod:2583
21703 msgid "mkfs"
21704 msgstr ""
21705
21706 # type: verbatim
21707 #: ../fish/guestfish-actions.pod:2585
21708 #, no-wrap
21709 msgid ""
21710 " mkfs fstype device\n"
21711 "\n"
21712 msgstr ""
21713
21714 # type: =head2
21715 #: ../fish/guestfish-actions.pod:2591
21716 msgid "mkfs-b"
21717 msgstr ""
21718
21719 # type: verbatim
21720 #: ../fish/guestfish-actions.pod:2593
21721 #, no-wrap
21722 msgid ""
21723 " mkfs-b fstype blocksize device\n"
21724 "\n"
21725 msgstr ""
21726
21727 # type: textblock
21728 #: ../fish/guestfish-actions.pod:2595
21729 msgid ""
21730 "This call is similar to L</mkfs>, but it allows you to control the block "
21731 "size of the resulting filesystem.  Supported block sizes depend on the "
21732 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:2603
21737 msgid "mkmountpoint"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:2605
21742 #, no-wrap
21743 msgid ""
21744 " mkmountpoint exemptpath\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: textblock
21749 #: ../fish/guestfish-actions.pod:2607
21750 msgid ""
21751 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21752 "to create extra mountpoints before mounting the first filesystem."
21753 msgstr ""
21754
21755 # type: textblock
21756 #: ../fish/guestfish-actions.pod:2631
21757 msgid ""
21758 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21759 "unexpected errors if you try to mix these calls.  It is safest to manually "
21760 "unmount filesystems and remove mountpoints after use."
21761 msgstr ""
21762
21763 # type: textblock
21764 #: ../fish/guestfish-actions.pod:2635
21765 msgid ""
21766 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21767 "for this to work for manual mountpoints, you must ensure that the innermost "
21768 "mountpoints have the longest pathnames, as in the example code above."
21769 msgstr ""
21770
21771 # type: textblock
21772 #: ../fish/guestfish-actions.pod:2642
21773 msgid ""
21774 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21775 "that L</umount-all> is called when the handle is closed which can also "
21776 "trigger these issues."
21777 msgstr ""
21778
21779 # type: =head2
21780 #: ../fish/guestfish-actions.pod:2646
21781 msgid "mknod"
21782 msgstr ""
21783
21784 # type: verbatim
21785 #: ../fish/guestfish-actions.pod:2648
21786 #, no-wrap
21787 msgid ""
21788 " mknod mode devmajor devminor path\n"
21789 "\n"
21790 msgstr ""
21791
21792 # type: textblock
21793 #: ../fish/guestfish-actions.pod:2658
21794 msgid ""
21795 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21796 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21797 "regular file).  These constants are available in the standard Linux header "
21798 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21799 "wrappers around this command which bitwise OR in the appropriate constant "
21800 "for you."
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:2668
21805 msgid "mknod-b"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:2670
21810 #, no-wrap
21811 msgid ""
21812 " mknod-b mode devmajor devminor path\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: textblock
21817 #: ../fish/guestfish-actions.pod:2672
21818 msgid ""
21819 "This call creates a block device node called C<path> with mode C<mode> and "
21820 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21821 "wrapper around L</mknod>."
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:2678
21826 msgid "mknod-c"
21827 msgstr ""
21828
21829 # type: verbatim
21830 #: ../fish/guestfish-actions.pod:2680
21831 #, no-wrap
21832 msgid ""
21833 " mknod-c mode devmajor devminor path\n"
21834 "\n"
21835 msgstr ""
21836
21837 # type: textblock
21838 #: ../fish/guestfish-actions.pod:2682
21839 msgid ""
21840 "This call creates a char device node called C<path> with mode C<mode> and "
21841 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21842 "wrapper around L</mknod>."
21843 msgstr ""
21844
21845 # type: =head2
21846 #: ../fish/guestfish-actions.pod:2688
21847 msgid "mkswap"
21848 msgstr ""
21849
21850 # type: verbatim
21851 #: ../fish/guestfish-actions.pod:2690
21852 #, no-wrap
21853 msgid ""
21854 " mkswap device\n"
21855 "\n"
21856 msgstr ""
21857
21858 # type: =head2
21859 #: ../fish/guestfish-actions.pod:2694
21860 msgid "mkswap-L"
21861 msgstr ""
21862
21863 # type: verbatim
21864 #: ../fish/guestfish-actions.pod:2696
21865 #, no-wrap
21866 msgid ""
21867 " mkswap-L label device\n"
21868 "\n"
21869 msgstr ""
21870
21871 # type: =head2
21872 #: ../fish/guestfish-actions.pod:2704
21873 msgid "mkswap-U"
21874 msgstr ""
21875
21876 # type: verbatim
21877 #: ../fish/guestfish-actions.pod:2706
21878 #, no-wrap
21879 msgid ""
21880 " mkswap-U uuid device\n"
21881 "\n"
21882 msgstr ""
21883
21884 # type: =head2
21885 #: ../fish/guestfish-actions.pod:2710
21886 msgid "mkswap-file"
21887 msgstr ""
21888
21889 # type: verbatim
21890 #: ../fish/guestfish-actions.pod:2712
21891 #, no-wrap
21892 msgid ""
21893 " mkswap-file path\n"
21894 "\n"
21895 msgstr ""
21896
21897 # type: textblock
21898 #: ../fish/guestfish-actions.pod:2716
21899 msgid ""
21900 "This command just writes a swap file signature to an existing file.  To "
21901 "create the file itself, use something like L</fallocate>."
21902 msgstr ""
21903
21904 # type: =head2
21905 #: ../fish/guestfish-actions.pod:2719
21906 msgid "modprobe"
21907 msgstr ""
21908
21909 # type: verbatim
21910 #: ../fish/guestfish-actions.pod:2721
21911 #, no-wrap
21912 msgid ""
21913 " modprobe modulename\n"
21914 "\n"
21915 msgstr ""
21916
21917 # type: =head2
21918 #: ../fish/guestfish-actions.pod:2728
21919 msgid "mount"
21920 msgstr ""
21921
21922 # type: verbatim
21923 #: ../fish/guestfish-actions.pod:2730
21924 #, no-wrap
21925 msgid ""
21926 " mount device mountpoint\n"
21927 "\n"
21928 msgstr ""
21929
21930 # type: textblock
21931 #: ../fish/guestfish-actions.pod:2746
21932 msgid ""
21933 "B<Important note:> When you use this call, the filesystem options C<sync> "
21934 "and C<noatime> are set implicitly.  This was originally done because we "
21935 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21936 "very large negative performance impact and negligible effect on "
21937 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21938 "code that needs performance, and instead use L</mount-options> (use an empty "
21939 "string for the first parameter if you don't want any options)."
21940 msgstr ""
21941
21942 # type: =head2
21943 #: ../fish/guestfish-actions.pod:2756
21944 msgid "mount-loop"
21945 msgstr ""
21946
21947 # type: verbatim
21948 #: ../fish/guestfish-actions.pod:2758
21949 #, no-wrap
21950 msgid ""
21951 " mount-loop file mountpoint\n"
21952 "\n"
21953 msgstr ""
21954
21955 # type: =head2
21956 #: ../fish/guestfish-actions.pod:2764
21957 msgid "mount-options"
21958 msgstr ""
21959
21960 # type: verbatim
21961 #: ../fish/guestfish-actions.pod:2766
21962 #, no-wrap
21963 msgid ""
21964 " mount-options options device mountpoint\n"
21965 "\n"
21966 msgstr ""
21967
21968 # type: textblock
21969 #: ../fish/guestfish-actions.pod:2768
21970 msgid ""
21971 "This is the same as the L</mount> command, but it allows you to set the "
21972 "mount options as for the L<mount(8)> I<-o> flag."
21973 msgstr ""
21974
21975 # type: =head2
21976 #: ../fish/guestfish-actions.pod:2776
21977 msgid "mount-ro"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #: ../fish/guestfish-actions.pod:2778
21982 #, no-wrap
21983 msgid ""
21984 " mount-ro device mountpoint\n"
21985 "\n"
21986 msgstr ""
21987
21988 # type: textblock
21989 #: ../fish/guestfish-actions.pod:2780
21990 msgid ""
21991 "This is the same as the L</mount> command, but it mounts the filesystem with "
21992 "the read-only (I<-o ro>) flag."
21993 msgstr ""
21994
21995 # type: =head2
21996 #: ../fish/guestfish-actions.pod:2783
21997 msgid "mount-vfs"
21998 msgstr ""
21999
22000 # type: verbatim
22001 #: ../fish/guestfish-actions.pod:2785
22002 #, no-wrap
22003 msgid ""
22004 " mount-vfs options vfstype device mountpoint\n"
22005 "\n"
22006 msgstr ""
22007
22008 # type: textblock
22009 #: ../fish/guestfish-actions.pod:2787
22010 msgid ""
22011 "This is the same as the L</mount> command, but it allows you to set both the "
22012 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22013 msgstr ""
22014
22015 # type: =head2
22016 #: ../fish/guestfish-actions.pod:2791
22017 msgid "mountpoints"
22018 msgstr ""
22019
22020 # type: verbatim
22021 #: ../fish/guestfish-actions.pod:2793
22022 #, no-wrap
22023 msgid ""
22024 " mountpoints\n"
22025 "\n"
22026 msgstr ""
22027
22028 # type: textblock
22029 #: ../fish/guestfish-actions.pod:2795
22030 msgid ""
22031 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22032 "This one returns a hash table (map) of device name to directory where the "
22033 "device is mounted."
22034 msgstr ""
22035
22036 # type: =head2
22037 #: ../fish/guestfish-actions.pod:2799
22038 msgid "mounts"
22039 msgstr ""
22040
22041 # type: verbatim
22042 #: ../fish/guestfish-actions.pod:2801
22043 #, no-wrap
22044 msgid ""
22045 " mounts\n"
22046 "\n"
22047 msgstr ""
22048
22049 # type: textblock
22050 #: ../fish/guestfish-actions.pod:2808
22051 msgid "See also: L</mountpoints>"
22052 msgstr ""
22053
22054 # type: =head2
22055 #: ../fish/guestfish-actions.pod:2810
22056 msgid "mv"
22057 msgstr ""
22058
22059 # type: verbatim
22060 #: ../fish/guestfish-actions.pod:2812
22061 #, no-wrap
22062 msgid ""
22063 " mv src dest\n"
22064 "\n"
22065 msgstr ""
22066
22067 # type: =head2
22068 #: ../fish/guestfish-actions.pod:2817
22069 msgid "ntfs-3g-probe"
22070 msgstr ""
22071
22072 # type: verbatim
22073 #: ../fish/guestfish-actions.pod:2819
22074 #, no-wrap
22075 msgid ""
22076 " ntfs-3g-probe true|false device\n"
22077 "\n"
22078 msgstr ""
22079
22080 # type: =head2
22081 #: ../fish/guestfish-actions.pod:2833
22082 msgid "ntfsresize"
22083 msgstr ""
22084
22085 # type: verbatim
22086 #: ../fish/guestfish-actions.pod:2835
22087 #, no-wrap
22088 msgid ""
22089 " ntfsresize device\n"
22090 "\n"
22091 msgstr ""
22092
22093 # type: =head2
22094 #: ../fish/guestfish-actions.pod:2841
22095 msgid "ntfsresize-size"
22096 msgstr ""
22097
22098 # type: verbatim
22099 #: ../fish/guestfish-actions.pod:2843
22100 #, no-wrap
22101 msgid ""
22102 " ntfsresize-size device size\n"
22103 "\n"
22104 msgstr ""
22105
22106 # type: textblock
22107 #: ../fish/guestfish-actions.pod:2845
22108 msgid ""
22109 "This command is the same as L</ntfsresize> except that it allows you to "
22110 "specify the new size (in bytes) explicitly."
22111 msgstr ""
22112
22113 # type: =head2
22114 #: ../fish/guestfish-actions.pod:2848
22115 msgid "part-add"
22116 msgstr ""
22117
22118 # type: verbatim
22119 #: ../fish/guestfish-actions.pod:2850
22120 #, no-wrap
22121 msgid ""
22122 " part-add device prlogex startsect endsect\n"
22123 "\n"
22124 msgstr ""
22125
22126 # type: textblock
22127 #: ../fish/guestfish-actions.pod:2852
22128 msgid ""
22129 "This command adds a partition to C<device>.  If there is no partition table "
22130 "on the device, call L</part-init> first."
22131 msgstr ""
22132
22133 # type: textblock
22134 #: ../fish/guestfish-actions.pod:2864
22135 msgid ""
22136 "Creating a partition which covers the whole disk is not so easy.  Use L</"
22137 "part-disk> to do that."
22138 msgstr ""
22139
22140 # type: =head2
22141 #: ../fish/guestfish-actions.pod:2867
22142 msgid "part-del"
22143 msgstr ""
22144
22145 # type: verbatim
22146 #: ../fish/guestfish-actions.pod:2869
22147 #, no-wrap
22148 msgid ""
22149 " part-del device partnum\n"
22150 "\n"
22151 msgstr ""
22152
22153 # type: =head2
22154 #: ../fish/guestfish-actions.pod:2877
22155 msgid "part-disk"
22156 msgstr ""
22157
22158 # type: verbatim
22159 #: ../fish/guestfish-actions.pod:2879
22160 #, no-wrap
22161 msgid ""
22162 " part-disk device parttype\n"
22163 "\n"
22164 msgstr ""
22165
22166 # type: textblock
22167 #: ../fish/guestfish-actions.pod:2881
22168 msgid ""
22169 "This command is simply a combination of L</part-init> followed by L</part-"
22170 "add> to create a single primary partition covering the whole disk."
22171 msgstr ""
22172
22173 # type: textblock
22174 #: ../fish/guestfish-actions.pod:2885
22175 msgid ""
22176 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22177 "possible values are described in L</part-init>."
22178 msgstr ""
22179
22180 # type: =head2
22181 #: ../fish/guestfish-actions.pod:2891
22182 msgid "part-get-bootable"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #: ../fish/guestfish-actions.pod:2893
22187 #, no-wrap
22188 msgid ""
22189 " part-get-bootable device partnum\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: textblock
22194 #: ../fish/guestfish-actions.pod:2898
22195 msgid "See also L</part-set-bootable>."
22196 msgstr ""
22197
22198 # type: =head2
22199 #: ../fish/guestfish-actions.pod:2900
22200 msgid "part-get-mbr-id"
22201 msgstr ""
22202
22203 # type: verbatim
22204 #: ../fish/guestfish-actions.pod:2902
22205 #, no-wrap
22206 msgid ""
22207 " part-get-mbr-id device partnum\n"
22208 "\n"
22209 msgstr ""
22210
22211 # type: textblock
22212 #: ../fish/guestfish-actions.pod:2907 ../fish/guestfish-actions.pod:3045
22213 msgid ""
22214 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22215 "undefined results for other partition table types (see L</part-get-"
22216 "parttype>)."
22217 msgstr ""
22218
22219 # type: =head2
22220 #: ../fish/guestfish-actions.pod:2911
22221 msgid "part-get-parttype"
22222 msgstr ""
22223
22224 # type: verbatim
22225 #: ../fish/guestfish-actions.pod:2913
22226 #, no-wrap
22227 msgid ""
22228 " part-get-parttype device\n"
22229 "\n"
22230 msgstr ""
22231
22232 # type: textblock
22233 #: ../fish/guestfish-actions.pod:2918
22234 msgid ""
22235 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22236 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22237 "possible, although unusual.  See L</part-init> for a full list."
22238 msgstr ""
22239
22240 # type: =head2
22241 #: ../fish/guestfish-actions.pod:2923
22242 msgid "part-init"
22243 msgstr ""
22244
22245 # type: verbatim
22246 #: ../fish/guestfish-actions.pod:2925
22247 #, no-wrap
22248 msgid ""
22249 " part-init device parttype\n"
22250 "\n"
22251 msgstr ""
22252
22253 # type: textblock
22254 #: ../fish/guestfish-actions.pod:2931
22255 msgid ""
22256 "Initially there are no partitions.  Following this, you should call L</part-"
22257 "add> for each partition required."
22258 msgstr ""
22259
22260 # type: =head2
22261 #: ../fish/guestfish-actions.pod:2994
22262 msgid "part-list"
22263 msgstr ""
22264
22265 # type: verbatim
22266 #: ../fish/guestfish-actions.pod:2996
22267 #, no-wrap
22268 msgid ""
22269 " part-list device\n"
22270 "\n"
22271 msgstr ""
22272
22273 # type: textblock
22274 #: ../fish/guestfish-actions.pod:3011
22275 msgid ""
22276 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22277 "the device's sector size, see L</blockdev-getss>."
22278 msgstr ""
22279
22280 # type: =head2
22281 #: ../fish/guestfish-actions.pod:3024
22282 msgid "part-set-bootable"
22283 msgstr ""
22284
22285 # type: verbatim
22286 #: ../fish/guestfish-actions.pod:3026
22287 #, no-wrap
22288 msgid ""
22289 " part-set-bootable device partnum true|false\n"
22290 "\n"
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:3035
22295 msgid "part-set-mbr-id"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:3037
22300 #, no-wrap
22301 msgid ""
22302 " part-set-mbr-id device partnum idbyte\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:3049
22308 msgid "part-set-name"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:3051
22313 #, no-wrap
22314 msgid ""
22315 " part-set-name device partnum name\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: =head2
22320 #: ../fish/guestfish-actions.pod:3059
22321 msgid "part-to-dev"
22322 msgstr ""
22323
22324 # type: verbatim
22325 #: ../fish/guestfish-actions.pod:3061
22326 #, no-wrap
22327 msgid ""
22328 " part-to-dev partition\n"
22329 "\n"
22330 msgstr ""
22331
22332 # type: textblock
22333 #: ../fish/guestfish-actions.pod:3067
22334 msgid ""
22335 "The named partition must exist, for example as a string returned from L</"
22336 "list-partitions>."
22337 msgstr ""
22338
22339 # type: =head2
22340 #: ../fish/guestfish-actions.pod:3070
22341 msgid "ping-daemon"
22342 msgstr ""
22343
22344 # type: verbatim
22345 #: ../fish/guestfish-actions.pod:3072
22346 #, no-wrap
22347 msgid ""
22348 " ping-daemon\n"
22349 "\n"
22350 msgstr ""
22351
22352 # type: =head2
22353 #: ../fish/guestfish-actions.pod:3079
22354 msgid "pread"
22355 msgstr ""
22356
22357 # type: verbatim
22358 #: ../fish/guestfish-actions.pod:3081
22359 #, no-wrap
22360 msgid ""
22361 " pread path count offset\n"
22362 "\n"
22363 msgstr ""
22364
22365 # type: textblock
22366 #: ../fish/guestfish-actions.pod:3089
22367 msgid "See also L</pwrite>, L</pread-device>."
22368 msgstr ""
22369
22370 # type: =head2
22371 #: ../fish/guestfish-actions.pod:3094
22372 msgid "pread-device"
22373 msgstr ""
22374
22375 # type: verbatim
22376 #: ../fish/guestfish-actions.pod:3096
22377 #, no-wrap
22378 msgid ""
22379 " pread-device device count offset\n"
22380 "\n"
22381 msgstr ""
22382
22383 # type: textblock
22384 #: ../fish/guestfish-actions.pod:3104
22385 msgid "See also L</pread>."
22386 msgstr ""
22387
22388 # type: =head2
22389 #: ../fish/guestfish-actions.pod:3109
22390 msgid "pvcreate"
22391 msgstr ""
22392
22393 # type: verbatim
22394 #: ../fish/guestfish-actions.pod:3111
22395 #, no-wrap
22396 msgid ""
22397 " pvcreate device\n"
22398 "\n"
22399 msgstr ""
22400
22401 # type: =head2
22402 #: ../fish/guestfish-actions.pod:3117
22403 msgid "pvremove"
22404 msgstr ""
22405
22406 # type: verbatim
22407 #: ../fish/guestfish-actions.pod:3119
22408 #, no-wrap
22409 msgid ""
22410 " pvremove device\n"
22411 "\n"
22412 msgstr ""
22413
22414 # type: =head2
22415 #: ../fish/guestfish-actions.pod:3128
22416 msgid "pvresize"
22417 msgstr ""
22418
22419 # type: verbatim
22420 #: ../fish/guestfish-actions.pod:3130
22421 #, no-wrap
22422 msgid ""
22423 " pvresize device\n"
22424 "\n"
22425 msgstr ""
22426
22427 # type: =head2
22428 #: ../fish/guestfish-actions.pod:3135
22429 msgid "pvresize-size"
22430 msgstr ""
22431
22432 # type: verbatim
22433 #: ../fish/guestfish-actions.pod:3137
22434 #, no-wrap
22435 msgid ""
22436 " pvresize-size device size\n"
22437 "\n"
22438 msgstr ""
22439
22440 # type: textblock
22441 #: ../fish/guestfish-actions.pod:3139
22442 msgid ""
22443 "This command is the same as L</pvresize> except that it allows you to "
22444 "specify the new size (in bytes) explicitly."
22445 msgstr ""
22446
22447 # type: =head2
22448 #: ../fish/guestfish-actions.pod:3142
22449 msgid "pvs"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #: ../fish/guestfish-actions.pod:3144
22454 #, no-wrap
22455 msgid ""
22456 " pvs\n"
22457 "\n"
22458 msgstr ""
22459
22460 # type: textblock
22461 #: ../fish/guestfish-actions.pod:3152
22462 msgid "See also L</pvs-full>."
22463 msgstr ""
22464
22465 # type: =head2
22466 #: ../fish/guestfish-actions.pod:3154
22467 msgid "pvs-full"
22468 msgstr ""
22469
22470 # type: verbatim
22471 #: ../fish/guestfish-actions.pod:3156
22472 #, no-wrap
22473 msgid ""
22474 " pvs-full\n"
22475 "\n"
22476 msgstr ""
22477
22478 # type: =head2
22479 #: ../fish/guestfish-actions.pod:3161
22480 msgid "pvuuid"
22481 msgstr ""
22482
22483 # type: verbatim
22484 #: ../fish/guestfish-actions.pod:3163
22485 #, no-wrap
22486 msgid ""
22487 " pvuuid device\n"
22488 "\n"
22489 msgstr ""
22490
22491 # type: =head2
22492 #: ../fish/guestfish-actions.pod:3167
22493 msgid "pwrite"
22494 msgstr ""
22495
22496 # type: verbatim
22497 #: ../fish/guestfish-actions.pod:3169
22498 #, no-wrap
22499 msgid ""
22500 " pwrite path content offset\n"
22501 "\n"
22502 msgstr ""
22503
22504 # type: textblock
22505 #: ../fish/guestfish-actions.pod:3180
22506 msgid "See also L</pread>, L</pwrite-device>."
22507 msgstr ""
22508
22509 # type: =head2
22510 #: ../fish/guestfish-actions.pod:3185
22511 msgid "pwrite-device"
22512 msgstr ""
22513
22514 # type: verbatim
22515 #: ../fish/guestfish-actions.pod:3187
22516 #, no-wrap
22517 msgid ""
22518 " pwrite-device device content offset\n"
22519 "\n"
22520 msgstr ""
22521
22522 # type: textblock
22523 #: ../fish/guestfish-actions.pod:3197
22524 msgid "See also L</pwrite>."
22525 msgstr ""
22526
22527 # type: =head2
22528 #: ../fish/guestfish-actions.pod:3202
22529 msgid "read-file"
22530 msgstr ""
22531
22532 # type: verbatim
22533 #: ../fish/guestfish-actions.pod:3204
22534 #, no-wrap
22535 msgid ""
22536 " read-file path\n"
22537 "\n"
22538 msgstr ""
22539
22540 # type: textblock
22541 #: ../fish/guestfish-actions.pod:3209
22542 msgid ""
22543 "Unlike L</cat>, this function can correctly handle files that contain "
22544 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22545 "is limited in the total size of file that can be handled."
22546 msgstr ""
22547
22548 # type: =head2
22549 #: ../fish/guestfish-actions.pod:3217
22550 msgid "read-lines"
22551 msgstr ""
22552
22553 # type: verbatim
22554 #: ../fish/guestfish-actions.pod:3219
22555 #, no-wrap
22556 msgid ""
22557 " read-lines path\n"
22558 "\n"
22559 msgstr ""
22560
22561 # type: textblock
22562 #: ../fish/guestfish-actions.pod:3226
22563 msgid ""
22564 "Note that this function cannot correctly handle binary files (specifically, "
22565 "files containing C<\\0> character which is treated as end of line).  For "
22566 "those you need to use the L</read-file> function which has a more complex "
22567 "interface."
22568 msgstr ""
22569
22570 # type: =head2
22571 #: ../fish/guestfish-actions.pod:3231
22572 msgid "readdir"
22573 msgstr ""
22574
22575 # type: verbatim
22576 #: ../fish/guestfish-actions.pod:3233
22577 #, no-wrap
22578 msgid ""
22579 " readdir dir\n"
22580 "\n"
22581 msgstr ""
22582
22583 # type: textblock
22584 #: ../fish/guestfish-actions.pod:3285
22585 msgid ""
22586 "This function is primarily intended for use by programs.  To get a simple "
22587 "list of names, use L</ls>.  To get a printable directory for human "
22588 "consumption, use L</ll>."
22589 msgstr ""
22590
22591 # type: =head2
22592 #: ../fish/guestfish-actions.pod:3289
22593 msgid "readlink"
22594 msgstr ""
22595
22596 # type: verbatim
22597 #: ../fish/guestfish-actions.pod:3291
22598 #, no-wrap
22599 msgid ""
22600 " readlink path\n"
22601 "\n"
22602 msgstr ""
22603
22604 # type: =head2
22605 #: ../fish/guestfish-actions.pod:3295
22606 msgid "readlinklist"
22607 msgstr ""
22608
22609 # type: verbatim
22610 #: ../fish/guestfish-actions.pod:3297
22611 #, no-wrap
22612 msgid ""
22613 " readlinklist path 'names ...'\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: =head2
22618 #: ../fish/guestfish-actions.pod:3321
22619 msgid "realpath"
22620 msgstr ""
22621
22622 # type: verbatim
22623 #: ../fish/guestfish-actions.pod:3323
22624 #, no-wrap
22625 msgid ""
22626 " realpath path\n"
22627 "\n"
22628 msgstr ""
22629
22630 # type: =head2
22631 #: ../fish/guestfish-actions.pod:3328
22632 msgid "removexattr"
22633 msgstr ""
22634
22635 # type: verbatim
22636 #: ../fish/guestfish-actions.pod:3330
22637 #, no-wrap
22638 msgid ""
22639 " removexattr xattr path\n"
22640 "\n"
22641 msgstr ""
22642
22643 # type: textblock
22644 #: ../fish/guestfish-actions.pod:3335
22645 msgid "See also: L</lremovexattr>, L<attr(5)>."
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:3337
22650 msgid "resize2fs"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:3339
22655 #, no-wrap
22656 msgid ""
22657 " resize2fs device\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: textblock
22662 #: ../fish/guestfish-actions.pod:3344
22663 msgid ""
22664 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22665 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22666 "gives an error about this and sometimes not.  In any case, it is always safe "
22667 "to call L</e2fsck-f> before calling this function."
22668 msgstr ""
22669
22670 # type: =head2
22671 #: ../fish/guestfish-actions.pod:3350
22672 msgid "resize2fs-size"
22673 msgstr ""
22674
22675 # type: verbatim
22676 #: ../fish/guestfish-actions.pod:3352
22677 #, no-wrap
22678 msgid ""
22679 " resize2fs-size device size\n"
22680 "\n"
22681 msgstr ""
22682
22683 # type: textblock
22684 #: ../fish/guestfish-actions.pod:3354
22685 msgid ""
22686 "This command is the same as L</resize2fs> except that it allows you to "
22687 "specify the new size (in bytes) explicitly."
22688 msgstr ""
22689
22690 # type: =head2
22691 #: ../fish/guestfish-actions.pod:3357
22692 msgid "rm"
22693 msgstr ""
22694
22695 # type: verbatim
22696 #: ../fish/guestfish-actions.pod:3359
22697 #, no-wrap
22698 msgid ""
22699 " rm path\n"
22700 "\n"
22701 msgstr ""
22702
22703 # type: =head2
22704 #: ../fish/guestfish-actions.pod:3363
22705 msgid "rm-rf"
22706 msgstr ""
22707
22708 # type: verbatim
22709 #: ../fish/guestfish-actions.pod:3365
22710 #, no-wrap
22711 msgid ""
22712 " rm-rf path\n"
22713 "\n"
22714 msgstr ""
22715
22716 # type: =head2
22717 #: ../fish/guestfish-actions.pod:3371
22718 msgid "rmdir"
22719 msgstr ""
22720
22721 # type: verbatim
22722 #: ../fish/guestfish-actions.pod:3373
22723 #, no-wrap
22724 msgid ""
22725 " rmdir path\n"
22726 "\n"
22727 msgstr ""
22728
22729 # type: =head2
22730 #: ../fish/guestfish-actions.pod:3377
22731 msgid "rmmountpoint"
22732 msgstr ""
22733
22734 # type: verbatim
22735 #: ../fish/guestfish-actions.pod:3379
22736 #, no-wrap
22737 msgid ""
22738 " rmmountpoint exemptpath\n"
22739 "\n"
22740 msgstr ""
22741
22742 # type: textblock
22743 #: ../fish/guestfish-actions.pod:3381
22744 msgid ""
22745 "This calls removes a mountpoint that was previously created with L</"
22746 "mkmountpoint>.  See L</mkmountpoint> for full details."
22747 msgstr ""
22748
22749 # type: =head2
22750 #: ../fish/guestfish-actions.pod:3385
22751 msgid "scrub-device"
22752 msgstr ""
22753
22754 # type: verbatim
22755 #: ../fish/guestfish-actions.pod:3387
22756 #, no-wrap
22757 msgid ""
22758 " scrub-device device\n"
22759 "\n"
22760 msgstr ""
22761
22762 # type: =head2
22763 #: ../fish/guestfish-actions.pod:3398
22764 msgid "scrub-file"
22765 msgstr ""
22766
22767 # type: verbatim
22768 #: ../fish/guestfish-actions.pod:3400
22769 #, no-wrap
22770 msgid ""
22771 " scrub-file file\n"
22772 "\n"
22773 msgstr ""
22774
22775 # type: =head2
22776 #: ../fish/guestfish-actions.pod:3410
22777 msgid "scrub-freespace"
22778 msgstr ""
22779
22780 # type: verbatim
22781 #: ../fish/guestfish-actions.pod:3412
22782 #, no-wrap
22783 msgid ""
22784 " scrub-freespace dir\n"
22785 "\n"
22786 msgstr ""
22787
22788 # type: textblock
22789 #: ../fish/guestfish-actions.pod:3414
22790 msgid ""
22791 "This command creates the directory C<dir> and then fills it with files until "
22792 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22793 "deletes them.  The intention is to scrub any free space on the partition "
22794 "containing C<dir>."
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:3423
22799 msgid "set-append"
22800 msgstr ""
22801
22802 # type: =head2
22803 #: ../fish/guestfish-actions.pod:3425
22804 msgid "append"
22805 msgstr ""
22806
22807 # type: verbatim
22808 #: ../fish/guestfish-actions.pod:3427
22809 #, no-wrap
22810 msgid ""
22811 " set-append append\n"
22812 "\n"
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:3438
22817 msgid "set-autosync"
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:3440
22822 msgid "autosync"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:3442
22827 #, no-wrap
22828 msgid ""
22829 " set-autosync true|false\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-actions.pod:3444
22835 msgid ""
22836 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22837 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22838 "closed (also if the program exits without closing handles)."
22839 msgstr ""
22840
22841 # type: =head2
22842 #: ../fish/guestfish-actions.pod:3452
22843 msgid "set-direct"
22844 msgstr ""
22845
22846 # type: =head2
22847 #: ../fish/guestfish-actions.pod:3454
22848 msgid "direct"
22849 msgstr ""
22850
22851 # type: verbatim
22852 #: ../fish/guestfish-actions.pod:3456
22853 #, no-wrap
22854 msgid ""
22855 " set-direct true|false\n"
22856 "\n"
22857 msgstr ""
22858
22859 # type: textblock
22860 #: ../fish/guestfish-actions.pod:3462
22861 msgid ""
22862 "One consequence of this is that log messages aren't caught by the library "
22863 "and handled by L</set-log-message-callback>, but go straight to stdout."
22864 msgstr ""
22865
22866 # type: =head2
22867 #: ../fish/guestfish-actions.pod:3471
22868 msgid "set-e2label"
22869 msgstr ""
22870
22871 # type: verbatim
22872 #: ../fish/guestfish-actions.pod:3473
22873 #, no-wrap
22874 msgid ""
22875 " set-e2label device label\n"
22876 "\n"
22877 msgstr ""
22878
22879 # type: textblock
22880 #: ../fish/guestfish-actions.pod:3479
22881 msgid ""
22882 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22883 "label on a filesystem."
22884 msgstr ""
22885
22886 # type: =head2
22887 #: ../fish/guestfish-actions.pod:3482
22888 msgid "set-e2uuid"
22889 msgstr ""
22890
22891 # type: verbatim
22892 #: ../fish/guestfish-actions.pod:3484
22893 #, no-wrap
22894 msgid ""
22895 " set-e2uuid device uuid\n"
22896 "\n"
22897 msgstr ""
22898
22899 # type: textblock
22900 #: ../fish/guestfish-actions.pod:3491
22901 msgid ""
22902 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22903 "UUID of a filesystem."
22904 msgstr ""
22905
22906 # type: =head2
22907 #: ../fish/guestfish-actions.pod:3494
22908 msgid "set-memsize"
22909 msgstr ""
22910
22911 # type: =head2
22912 #: ../fish/guestfish-actions.pod:3496
22913 msgid "memsize"
22914 msgstr ""
22915
22916 # type: verbatim
22917 #: ../fish/guestfish-actions.pod:3498
22918 #, no-wrap
22919 msgid ""
22920 " set-memsize memsize\n"
22921 "\n"
22922 msgstr ""
22923
22924 # type: textblock
22925 #: ../fish/guestfish-actions.pod:3500
22926 msgid ""
22927 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22928 "This only has any effect if called before L</launch>."
22929 msgstr ""
22930
22931 # type: =head2
22932 #: ../fish/guestfish-actions.pod:3511
22933 msgid "set-network"
22934 msgstr ""
22935
22936 # type: =head2
22937 #: ../fish/guestfish-actions.pod:3513
22938 msgid "network"
22939 msgstr ""
22940
22941 # type: verbatim
22942 #: ../fish/guestfish-actions.pod:3515
22943 #, no-wrap
22944 msgid ""
22945 " set-network true|false\n"
22946 "\n"
22947 msgstr ""
22948
22949 # type: textblock
22950 #: ../fish/guestfish-actions.pod:3523
22951 msgid ""
22952 "You must call this before calling L</launch>, otherwise it has no effect."
22953 msgstr ""
22954
22955 # type: =head2
22956 #: ../fish/guestfish-actions.pod:3526
22957 msgid "set-path"
22958 msgstr ""
22959
22960 # type: =head2
22961 #: ../fish/guestfish-actions.pod:3528
22962 msgid "path"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../fish/guestfish-actions.pod:3530
22967 #, no-wrap
22968 msgid ""
22969 " set-path searchpath\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: =head2
22974 #: ../fish/guestfish-actions.pod:3539
22975 msgid "set-qemu"
22976 msgstr ""
22977
22978 # type: =head2
22979 #: ../fish/guestfish-actions.pod:3541
22980 msgid "qemu"
22981 msgstr ""
22982
22983 # type: verbatim
22984 #: ../fish/guestfish-actions.pod:3543
22985 #, no-wrap
22986 msgid ""
22987 " set-qemu qemu\n"
22988 "\n"
22989 msgstr ""
22990
22991 # type: =head2
22992 #: ../fish/guestfish-actions.pod:3563
22993 msgid "set-recovery-proc"
22994 msgstr ""
22995
22996 # type: =head2
22997 #: ../fish/guestfish-actions.pod:3565
22998 msgid "recovery-proc"
22999 msgstr ""
23000
23001 # type: verbatim
23002 #: ../fish/guestfish-actions.pod:3567
23003 #, no-wrap
23004 msgid ""
23005 " set-recovery-proc true|false\n"
23006 "\n"
23007 msgstr ""
23008
23009 # type: textblock
23010 #: ../fish/guestfish-actions.pod:3569
23011 msgid ""
23012 "If this is called with the parameter C<false> then L</launch> does not "
23013 "create a recovery process.  The purpose of the recovery process is to stop "
23014 "runaway qemu processes in the case where the main program aborts abruptly."
23015 msgstr ""
23016
23017 # type: textblock
23018 #: ../fish/guestfish-actions.pod:3574
23019 msgid ""
23020 "This only has any effect if called before L</launch>, and the default is "
23021 "true."
23022 msgstr ""
23023
23024 # type: =head2
23025 #: ../fish/guestfish-actions.pod:3583
23026 msgid "set-selinux"
23027 msgstr ""
23028
23029 # type: =head2
23030 #: ../fish/guestfish-actions.pod:3585
23031 msgid "selinux"
23032 msgstr ""
23033
23034 # type: verbatim
23035 #: ../fish/guestfish-actions.pod:3587
23036 #, no-wrap
23037 msgid ""
23038 " set-selinux true|false\n"
23039 "\n"
23040 msgstr ""
23041
23042 # type: =head2
23043 #: ../fish/guestfish-actions.pod:3598
23044 msgid "set-trace"
23045 msgstr ""
23046
23047 # type: =head2
23048 #: ../fish/guestfish-actions.pod:3600
23049 msgid "trace"
23050 msgstr ""
23051
23052 # type: verbatim
23053 #: ../fish/guestfish-actions.pod:3602
23054 #, no-wrap
23055 msgid ""
23056 " set-trace true|false\n"
23057 "\n"
23058 msgstr ""
23059
23060 # type: =head2
23061 #: ../fish/guestfish-actions.pod:3618
23062 msgid "set-verbose"
23063 msgstr ""
23064
23065 # type: =head2
23066 #: ../fish/guestfish-actions.pod:3620
23067 msgid "verbose"
23068 msgstr ""
23069
23070 # type: verbatim
23071 #: ../fish/guestfish-actions.pod:3622
23072 #, no-wrap
23073 msgid ""
23074 " set-verbose true|false\n"
23075 "\n"
23076 msgstr ""
23077
23078 # type: =head2
23079 #: ../fish/guestfish-actions.pod:3629
23080 msgid "setcon"
23081 msgstr ""
23082
23083 # type: verbatim
23084 #: ../fish/guestfish-actions.pod:3631
23085 #, no-wrap
23086 msgid ""
23087 " setcon context\n"
23088 "\n"
23089 msgstr ""
23090
23091 # type: =head2
23092 #: ../fish/guestfish-actions.pod:3638
23093 msgid "setxattr"
23094 msgstr ""
23095
23096 # type: verbatim
23097 #: ../fish/guestfish-actions.pod:3640
23098 #, no-wrap
23099 msgid ""
23100 " setxattr xattr val vallen path\n"
23101 "\n"
23102 msgstr ""
23103
23104 # type: textblock
23105 #: ../fish/guestfish-actions.pod:3646
23106 msgid "See also: L</lsetxattr>, L<attr(5)>."
23107 msgstr ""
23108
23109 # type: =head2
23110 #: ../fish/guestfish-actions.pod:3648
23111 msgid "sfdisk"
23112 msgstr ""
23113
23114 # type: verbatim
23115 #: ../fish/guestfish-actions.pod:3650
23116 #, no-wrap
23117 msgid ""
23118 " sfdisk device cyls heads sectors 'lines ...'\n"
23119 "\n"
23120 msgstr ""
23121
23122 # type: textblock
23123 #: ../fish/guestfish-actions.pod:3672
23124 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23125 msgstr ""
23126
23127 # type: =head2
23128 #: ../fish/guestfish-actions.pod:3678
23129 msgid "sfdiskM"
23130 msgstr ""
23131
23132 # type: verbatim
23133 #: ../fish/guestfish-actions.pod:3680
23134 #, no-wrap
23135 msgid ""
23136 " sfdiskM device 'lines ...'\n"
23137 "\n"
23138 msgstr ""
23139
23140 # type: textblock
23141 #: ../fish/guestfish-actions.pod:3682
23142 msgid ""
23143 "This is a simplified interface to the L</sfdisk> command, where partition "
23144 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23145 "you don't need to specify the cyls, heads and sectors parameters which were "
23146 "rarely if ever used anyway."
23147 msgstr ""
23148
23149 # type: textblock
23150 #: ../fish/guestfish-actions.pod:3688
23151 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23152 msgstr ""
23153
23154 # type: =head2
23155 #: ../fish/guestfish-actions.pod:3694
23156 msgid "sfdisk-N"
23157 msgstr ""
23158
23159 # type: verbatim
23160 #: ../fish/guestfish-actions.pod:3696
23161 #, no-wrap
23162 msgid ""
23163 " sfdisk-N device partnum cyls heads sectors line\n"
23164 "\n"
23165 msgstr ""
23166
23167 # type: textblock
23168 #: ../fish/guestfish-actions.pod:3701
23169 msgid ""
23170 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23171 "cyls/heads/sectors parameters."
23172 msgstr ""
23173
23174 # type: textblock
23175 #: ../fish/guestfish-actions.pod:3704
23176 msgid "See also: L</part-add>"
23177 msgstr ""
23178
23179 # type: =head2
23180 #: ../fish/guestfish-actions.pod:3709
23181 msgid "sfdisk-disk-geometry"
23182 msgstr ""
23183
23184 # type: verbatim
23185 #: ../fish/guestfish-actions.pod:3711
23186 #, no-wrap
23187 msgid ""
23188 " sfdisk-disk-geometry device\n"
23189 "\n"
23190 msgstr ""
23191
23192 # type: textblock
23193 #: ../fish/guestfish-actions.pod:3713
23194 msgid ""
23195 "This displays the disk geometry of C<device> read from the partition table.  "
23196 "Especially in the case where the underlying block device has been resized, "
23197 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
23198 "kernel-geometry>)."
23199 msgstr ""
23200
23201 # type: =head2
23202 #: ../fish/guestfish-actions.pod:3721
23203 msgid "sfdisk-kernel-geometry"
23204 msgstr ""
23205
23206 # type: verbatim
23207 #: ../fish/guestfish-actions.pod:3723
23208 #, no-wrap
23209 msgid ""
23210 " sfdisk-kernel-geometry device\n"
23211 "\n"
23212 msgstr ""
23213
23214 # type: =head2
23215 #: ../fish/guestfish-actions.pod:3730
23216 msgid "sfdisk-l"
23217 msgstr ""
23218
23219 # type: verbatim
23220 #: ../fish/guestfish-actions.pod:3732
23221 #, no-wrap
23222 msgid ""
23223 " sfdisk-l device\n"
23224 "\n"
23225 msgstr ""
23226
23227 # type: textblock
23228 #: ../fish/guestfish-actions.pod:3738
23229 msgid "See also: L</part-list>"
23230 msgstr ""
23231
23232 # type: =head2
23233 #: ../fish/guestfish-actions.pod:3740
23234 msgid "sh"
23235 msgstr ""
23236
23237 # type: verbatim
23238 #: ../fish/guestfish-actions.pod:3742
23239 #, no-wrap
23240 msgid ""
23241 " sh command\n"
23242 "\n"
23243 msgstr ""
23244
23245 # type: textblock
23246 #: ../fish/guestfish-actions.pod:3747
23247 msgid "This is like L</command>, but passes the command to:"
23248 msgstr ""
23249
23250 # type: textblock
23251 #: ../fish/guestfish-actions.pod:3755
23252 msgid "All the provisos about L</command> apply to this call."
23253 msgstr ""
23254
23255 # type: =head2
23256 #: ../fish/guestfish-actions.pod:3757
23257 msgid "sh-lines"
23258 msgstr ""
23259
23260 # type: verbatim
23261 #: ../fish/guestfish-actions.pod:3759
23262 #, no-wrap
23263 msgid ""
23264 " sh-lines command\n"
23265 "\n"
23266 msgstr ""
23267
23268 # type: textblock
23269 #: ../fish/guestfish-actions.pod:3761
23270 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23271 msgstr ""
23272
23273 # type: textblock
23274 #: ../fish/guestfish-actions.pod:3764
23275 msgid "See also: L</command-lines>"
23276 msgstr ""
23277
23278 # type: =head2
23279 #: ../fish/guestfish-actions.pod:3766
23280 msgid "sleep"
23281 msgstr ""
23282
23283 # type: verbatim
23284 #: ../fish/guestfish-actions.pod:3768
23285 #, no-wrap
23286 msgid ""
23287 " sleep secs\n"
23288 "\n"
23289 msgstr ""
23290
23291 # type: =head2
23292 #: ../fish/guestfish-actions.pod:3772
23293 msgid "stat"
23294 msgstr ""
23295
23296 # type: verbatim
23297 #: ../fish/guestfish-actions.pod:3774
23298 #, no-wrap
23299 msgid ""
23300 " stat path\n"
23301 "\n"
23302 msgstr ""
23303
23304 # type: =head2
23305 #: ../fish/guestfish-actions.pod:3780
23306 msgid "statvfs"
23307 msgstr ""
23308
23309 # type: verbatim
23310 #: ../fish/guestfish-actions.pod:3782
23311 #, no-wrap
23312 msgid ""
23313 " statvfs path\n"
23314 "\n"
23315 msgstr ""
23316
23317 # type: =head2
23318 #: ../fish/guestfish-actions.pod:3790
23319 msgid "strings"
23320 msgstr ""
23321
23322 # type: verbatim
23323 #: ../fish/guestfish-actions.pod:3792
23324 #, no-wrap
23325 msgid ""
23326 " strings path\n"
23327 "\n"
23328 msgstr ""
23329
23330 # type: =head2
23331 #: ../fish/guestfish-actions.pod:3800
23332 msgid "strings-e"
23333 msgstr ""
23334
23335 # type: verbatim
23336 #: ../fish/guestfish-actions.pod:3802
23337 #, no-wrap
23338 msgid ""
23339 " strings-e encoding path\n"
23340 "\n"
23341 msgstr ""
23342
23343 # type: textblock
23344 #: ../fish/guestfish-actions.pod:3804
23345 msgid ""
23346 "This is like the L</strings> command, but allows you to specify the encoding "
23347 "of strings that are looked for in the source file C<path>."
23348 msgstr ""
23349
23350 # type: textblock
23351 #: ../fish/guestfish-actions.pod:3814
23352 msgid ""
23353 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23354 "ISO-8859-X (this is what L</strings> uses)."
23355 msgstr ""
23356
23357 # type: =head2
23358 #: ../fish/guestfish-actions.pod:3846
23359 msgid "swapoff-device"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fish/guestfish-actions.pod:3848
23364 #, no-wrap
23365 msgid ""
23366 " swapoff-device device\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: textblock
23371 #: ../fish/guestfish-actions.pod:3850
23372 msgid ""
23373 "This command disables the libguestfs appliance swap device or partition "
23374 "named C<device>.  See L</swapon-device>."
23375 msgstr ""
23376
23377 # type: =head2
23378 #: ../fish/guestfish-actions.pod:3854
23379 msgid "swapoff-file"
23380 msgstr ""
23381
23382 # type: verbatim
23383 #: ../fish/guestfish-actions.pod:3856
23384 #, no-wrap
23385 msgid ""
23386 " swapoff-file file\n"
23387 "\n"
23388 msgstr ""
23389
23390 # type: =head2
23391 #: ../fish/guestfish-actions.pod:3860
23392 msgid "swapoff-label"
23393 msgstr ""
23394
23395 # type: verbatim
23396 #: ../fish/guestfish-actions.pod:3862
23397 #, no-wrap
23398 msgid ""
23399 " swapoff-label label\n"
23400 "\n"
23401 msgstr ""
23402
23403 # type: =head2
23404 #: ../fish/guestfish-actions.pod:3867
23405 msgid "swapoff-uuid"
23406 msgstr ""
23407
23408 # type: verbatim
23409 #: ../fish/guestfish-actions.pod:3869
23410 #, no-wrap
23411 msgid ""
23412 " swapoff-uuid uuid\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: =head2
23417 #: ../fish/guestfish-actions.pod:3874
23418 msgid "swapon-device"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #: ../fish/guestfish-actions.pod:3876
23423 #, no-wrap
23424 msgid ""
23425 " swapon-device device\n"
23426 "\n"
23427 msgstr ""
23428
23429 # type: textblock
23430 #: ../fish/guestfish-actions.pod:3878
23431 msgid ""
23432 "This command enables the libguestfs appliance to use the swap device or "
23433 "partition named C<device>.  The increased memory is made available for all "
23434 "commands, for example those run using L</command> or L</sh>."
23435 msgstr ""
23436
23437 # type: =head2
23438 #: ../fish/guestfish-actions.pod:3890
23439 msgid "swapon-file"
23440 msgstr ""
23441
23442 # type: verbatim
23443 #: ../fish/guestfish-actions.pod:3892
23444 #, no-wrap
23445 msgid ""
23446 " swapon-file file\n"
23447 "\n"
23448 msgstr ""
23449
23450 # type: textblock
23451 #: ../fish/guestfish-actions.pod:3894
23452 msgid ""
23453 "This command enables swap to a file.  See L</swapon-device> for other notes."
23454 msgstr ""
23455
23456 # type: =head2
23457 #: ../fish/guestfish-actions.pod:3897
23458 msgid "swapon-label"
23459 msgstr ""
23460
23461 # type: verbatim
23462 #: ../fish/guestfish-actions.pod:3899
23463 #, no-wrap
23464 msgid ""
23465 " swapon-label label\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: textblock
23470 #: ../fish/guestfish-actions.pod:3901
23471 msgid ""
23472 "This command enables swap to a labeled swap partition.  See L</swapon-"
23473 "device> for other notes."
23474 msgstr ""
23475
23476 # type: =head2
23477 #: ../fish/guestfish-actions.pod:3904
23478 msgid "swapon-uuid"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #: ../fish/guestfish-actions.pod:3906
23483 #, no-wrap
23484 msgid ""
23485 " swapon-uuid uuid\n"
23486 "\n"
23487 msgstr ""
23488
23489 # type: textblock
23490 #: ../fish/guestfish-actions.pod:3908
23491 msgid ""
23492 "This command enables swap to a swap partition with the given UUID.  See L</"
23493 "swapon-device> for other notes."
23494 msgstr ""
23495
23496 # type: =head2
23497 #: ../fish/guestfish-actions.pod:3911
23498 msgid "sync"
23499 msgstr ""
23500
23501 # type: verbatim
23502 #: ../fish/guestfish-actions.pod:3913
23503 #, no-wrap
23504 msgid ""
23505 " sync\n"
23506 "\n"
23507 msgstr ""
23508
23509 # type: =head2
23510 #: ../fish/guestfish-actions.pod:3921
23511 msgid "tail"
23512 msgstr ""
23513
23514 # type: verbatim
23515 #: ../fish/guestfish-actions.pod:3923
23516 #, no-wrap
23517 msgid ""
23518 " tail path\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: =head2
23523 #: ../fish/guestfish-actions.pod:3931
23524 msgid "tail-n"
23525 msgstr ""
23526
23527 # type: verbatim
23528 #: ../fish/guestfish-actions.pod:3933
23529 #, no-wrap
23530 msgid ""
23531 " tail-n nrlines path\n"
23532 "\n"
23533 msgstr ""
23534
23535 # type: =head2
23536 #: ../fish/guestfish-actions.pod:3946
23537 msgid "tar-in"
23538 msgstr ""
23539
23540 # type: verbatim
23541 #: ../fish/guestfish-actions.pod:3948
23542 #, no-wrap
23543 msgid ""
23544 " tar-in (tarfile|-) directory\n"
23545 "\n"
23546 msgstr ""
23547
23548 # type: textblock
23549 #: ../fish/guestfish-actions.pod:3953
23550 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23551 msgstr ""
23552
23553 # type: =head2
23554 #: ../fish/guestfish-actions.pod:3958
23555 msgid "tar-out"
23556 msgstr ""
23557
23558 # type: verbatim
23559 #: ../fish/guestfish-actions.pod:3960
23560 #, no-wrap
23561 msgid ""
23562 " tar-out directory (tarfile|-)\n"
23563 "\n"
23564 msgstr ""
23565
23566 # type: textblock
23567 #: ../fish/guestfish-actions.pod:3965
23568 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23569 msgstr ""
23570
23571 # type: =head2
23572 #: ../fish/guestfish-actions.pod:3970
23573 msgid "tgz-in"
23574 msgstr ""
23575
23576 # type: verbatim
23577 #: ../fish/guestfish-actions.pod:3972
23578 #, no-wrap
23579 msgid ""
23580 " tgz-in (tarball|-) directory\n"
23581 "\n"
23582 msgstr ""
23583
23584 # type: textblock
23585 #: ../fish/guestfish-actions.pod:3977
23586 msgid "To upload an uncompressed tarball, use L</tar-in>."
23587 msgstr ""
23588
23589 # type: =head2
23590 #: ../fish/guestfish-actions.pod:3981
23591 msgid "tgz-out"
23592 msgstr ""
23593
23594 # type: verbatim
23595 #: ../fish/guestfish-actions.pod:3983
23596 #, no-wrap
23597 msgid ""
23598 " tgz-out directory (tarball|-)\n"
23599 "\n"
23600 msgstr ""
23601
23602 # type: textblock
23603 #: ../fish/guestfish-actions.pod:3988
23604 msgid "To download an uncompressed tarball, use L</tar-out>."
23605 msgstr ""
23606
23607 # type: =head2
23608 #: ../fish/guestfish-actions.pod:3992
23609 msgid "touch"
23610 msgstr ""
23611
23612 # type: verbatim
23613 #: ../fish/guestfish-actions.pod:3994
23614 #, no-wrap
23615 msgid ""
23616 " touch path\n"
23617 "\n"
23618 msgstr ""
23619
23620 # type: =head2
23621 #: ../fish/guestfish-actions.pod:4003
23622 msgid "truncate"
23623 msgstr ""
23624
23625 # type: verbatim
23626 #: ../fish/guestfish-actions.pod:4005
23627 #, no-wrap
23628 msgid ""
23629 " truncate path\n"
23630 "\n"
23631 msgstr ""
23632
23633 # type: =head2
23634 #: ../fish/guestfish-actions.pod:4010
23635 msgid "truncate-size"
23636 msgstr ""
23637
23638 # type: verbatim
23639 #: ../fish/guestfish-actions.pod:4012
23640 #, no-wrap
23641 msgid ""
23642 " truncate-size path size\n"
23643 "\n"
23644 msgstr ""
23645
23646 # type: textblock
23647 #: ../fish/guestfish-actions.pod:4017
23648 msgid ""
23649 "If the current file size is less than C<size> then the file is extended to "
23650 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23651 "blocks are not allocated for the file until you write to it).  To create a "
23652 "non-sparse file of zeroes, use L</fallocate64> instead."
23653 msgstr ""
23654
23655 # type: =head2
23656 #: ../fish/guestfish-actions.pod:4023
23657 msgid "tune2fs-l"
23658 msgstr ""
23659
23660 # type: verbatim
23661 #: ../fish/guestfish-actions.pod:4025
23662 #, no-wrap
23663 msgid ""
23664 " tune2fs-l device\n"
23665 "\n"
23666 msgstr ""
23667
23668 # type: =head2
23669 #: ../fish/guestfish-actions.pod:4035
23670 msgid "txz-in"
23671 msgstr ""
23672
23673 # type: verbatim
23674 #: ../fish/guestfish-actions.pod:4037
23675 #, no-wrap
23676 msgid ""
23677 " txz-in (tarball|-) directory\n"
23678 "\n"
23679 msgstr ""
23680
23681 # type: =head2
23682 #: ../fish/guestfish-actions.pod:4044
23683 msgid "txz-out"
23684 msgstr ""
23685
23686 # type: verbatim
23687 #: ../fish/guestfish-actions.pod:4046
23688 #, no-wrap
23689 msgid ""
23690 " txz-out directory (tarball|-)\n"
23691 "\n"
23692 msgstr ""
23693
23694 # type: =head2
23695 #: ../fish/guestfish-actions.pod:4053
23696 msgid "umask"
23697 msgstr ""
23698
23699 # type: verbatim
23700 #: ../fish/guestfish-actions.pod:4055
23701 #, no-wrap
23702 msgid ""
23703 " umask mask\n"
23704 "\n"
23705 msgstr ""
23706
23707 # type: textblock
23708 #: ../fish/guestfish-actions.pod:4069
23709 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23710 msgstr ""
23711
23712 # type: =head2
23713 #: ../fish/guestfish-actions.pod:4074
23714 msgid "umount"
23715 msgstr ""
23716
23717 # type: =head2
23718 #: ../fish/guestfish-actions.pod:4076
23719 msgid "unmount"
23720 msgstr ""
23721
23722 # type: verbatim
23723 #: ../fish/guestfish-actions.pod:4078
23724 #, no-wrap
23725 msgid ""
23726 " umount pathordevice\n"
23727 "\n"
23728 msgstr ""
23729
23730 # type: =head2
23731 #: ../fish/guestfish-actions.pod:4084
23732 msgid "umount-all"
23733 msgstr ""
23734
23735 # type: =head2
23736 #: ../fish/guestfish-actions.pod:4086
23737 msgid "unmount-all"
23738 msgstr ""
23739
23740 # type: verbatim
23741 #: ../fish/guestfish-actions.pod:4088
23742 #, no-wrap
23743 msgid ""
23744 " umount-all\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: =head2
23749 #: ../fish/guestfish-actions.pod:4094
23750 msgid "upload"
23751 msgstr ""
23752
23753 # type: verbatim
23754 #: ../fish/guestfish-actions.pod:4096
23755 #, no-wrap
23756 msgid ""
23757 " upload (filename|-) remotefilename\n"
23758 "\n"
23759 msgstr ""
23760
23761 # type: textblock
23762 #: ../fish/guestfish-actions.pod:4103
23763 msgid "See also L</download>."
23764 msgstr ""
23765
23766 # type: =head2
23767 #: ../fish/guestfish-actions.pod:4107
23768 msgid "upload-offset"
23769 msgstr ""
23770
23771 # type: verbatim
23772 #: ../fish/guestfish-actions.pod:4109
23773 #, no-wrap
23774 msgid ""
23775 " upload-offset (filename|-) remotefilename offset\n"
23776 "\n"
23777 msgstr ""
23778
23779 # type: textblock
23780 #: ../fish/guestfish-actions.pod:4121
23781 msgid ""
23782 "Note that there is no limit on the amount of data that can be uploaded with "
23783 "this call, unlike with L</pwrite>, and this call always writes the full "
23784 "amount unless an error occurs."
23785 msgstr ""
23786
23787 # type: textblock
23788 #: ../fish/guestfish-actions.pod:4126
23789 msgid "See also L</upload>, L</pwrite>."
23790 msgstr ""
23791
23792 # type: =head2
23793 #: ../fish/guestfish-actions.pod:4130
23794 msgid "utimens"
23795 msgstr ""
23796
23797 # type: verbatim
23798 #: ../fish/guestfish-actions.pod:4132
23799 #, no-wrap
23800 msgid ""
23801 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23802 "\n"
23803 msgstr ""
23804
23805 # type: =head2
23806 #: ../fish/guestfish-actions.pod:4151
23807 msgid "version"
23808 msgstr ""
23809
23810 # type: verbatim
23811 #: ../fish/guestfish-actions.pod:4153
23812 #, no-wrap
23813 msgid ""
23814 " version\n"
23815 "\n"
23816 msgstr ""
23817
23818 # type: textblock
23819 #: ../fish/guestfish-actions.pod:4180
23820 msgid ""
23821 "I<Note:> Don't use this call to test for availability of features.  In "
23822 "enterprise distributions we backport features from later versions into "
23823 "earlier versions, making this an unreliable way to test for features.  Use "
23824 "L</available> instead."
23825 msgstr ""
23826
23827 # type: =head2
23828 #: ../fish/guestfish-actions.pod:4186
23829 msgid "vfs-label"
23830 msgstr ""
23831
23832 # type: verbatim
23833 #: ../fish/guestfish-actions.pod:4188
23834 #, no-wrap
23835 msgid ""
23836 " vfs-label device\n"
23837 "\n"
23838 msgstr ""
23839
23840 # type: textblock
23841 #: ../fish/guestfish-actions.pod:4195
23842 msgid "To find a filesystem from the label, use L</findfs-label>."
23843 msgstr ""
23844
23845 # type: =head2
23846 #: ../fish/guestfish-actions.pod:4197
23847 msgid "vfs-type"
23848 msgstr ""
23849
23850 # type: verbatim
23851 #: ../fish/guestfish-actions.pod:4199
23852 #, no-wrap
23853 msgid ""
23854 " vfs-type device\n"
23855 "\n"
23856 msgstr ""
23857
23858 # type: =head2
23859 #: ../fish/guestfish-actions.pod:4209
23860 msgid "vfs-uuid"
23861 msgstr ""
23862
23863 # type: verbatim
23864 #: ../fish/guestfish-actions.pod:4211
23865 #, no-wrap
23866 msgid ""
23867 " vfs-uuid device\n"
23868 "\n"
23869 msgstr ""
23870
23871 # type: textblock
23872 #: ../fish/guestfish-actions.pod:4218
23873 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23874 msgstr ""
23875
23876 # type: =head2
23877 #: ../fish/guestfish-actions.pod:4220
23878 msgid "vg-activate"
23879 msgstr ""
23880
23881 # type: verbatim
23882 #: ../fish/guestfish-actions.pod:4222
23883 #, no-wrap
23884 msgid ""
23885 " vg-activate true|false 'volgroups ...'\n"
23886 "\n"
23887 msgstr ""
23888
23889 # type: =head2
23890 #: ../fish/guestfish-actions.pod:4235
23891 msgid "vg-activate-all"
23892 msgstr ""
23893
23894 # type: verbatim
23895 #: ../fish/guestfish-actions.pod:4237
23896 #, no-wrap
23897 msgid ""
23898 " vg-activate-all true|false\n"
23899 "\n"
23900 msgstr ""
23901
23902 # type: =head2
23903 #: ../fish/guestfish-actions.pod:4247
23904 msgid "vgcreate"
23905 msgstr ""
23906
23907 # type: verbatim
23908 #: ../fish/guestfish-actions.pod:4249
23909 #, no-wrap
23910 msgid ""
23911 " vgcreate volgroup 'physvols ...'\n"
23912 "\n"
23913 msgstr ""
23914
23915 # type: =head2
23916 #: ../fish/guestfish-actions.pod:4254
23917 msgid "vglvuuids"
23918 msgstr ""
23919
23920 # type: verbatim
23921 #: ../fish/guestfish-actions.pod:4256
23922 #, no-wrap
23923 msgid ""
23924 " vglvuuids vgname\n"
23925 "\n"
23926 msgstr ""
23927
23928 # type: textblock
23929 #: ../fish/guestfish-actions.pod:4261
23930 msgid ""
23931 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23932 "logical volumes and volume groups."
23933 msgstr ""
23934
23935 # type: textblock
23936 #: ../fish/guestfish-actions.pod:4264
23937 msgid "See also L</vgpvuuids>."
23938 msgstr ""
23939
23940 # type: =head2
23941 #: ../fish/guestfish-actions.pod:4266
23942 msgid "vgpvuuids"
23943 msgstr ""
23944
23945 # type: verbatim
23946 #: ../fish/guestfish-actions.pod:4268
23947 #, no-wrap
23948 msgid ""
23949 " vgpvuuids vgname\n"
23950 "\n"
23951 msgstr ""
23952
23953 # type: textblock
23954 #: ../fish/guestfish-actions.pod:4273
23955 msgid ""
23956 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23957 "physical volumes and volume groups."
23958 msgstr ""
23959
23960 # type: textblock
23961 #: ../fish/guestfish-actions.pod:4276
23962 msgid "See also L</vglvuuids>."
23963 msgstr ""
23964
23965 # type: =head2
23966 #: ../fish/guestfish-actions.pod:4278
23967 msgid "vgremove"
23968 msgstr ""
23969
23970 # type: verbatim
23971 #: ../fish/guestfish-actions.pod:4280
23972 #, no-wrap
23973 msgid ""
23974 " vgremove vgname\n"
23975 "\n"
23976 msgstr ""
23977
23978 # type: =head2
23979 #: ../fish/guestfish-actions.pod:4287
23980 msgid "vgrename"
23981 msgstr ""
23982
23983 # type: verbatim
23984 #: ../fish/guestfish-actions.pod:4289
23985 #, no-wrap
23986 msgid ""
23987 " vgrename volgroup newvolgroup\n"
23988 "\n"
23989 msgstr ""
23990
23991 # type: =head2
23992 #: ../fish/guestfish-actions.pod:4293
23993 msgid "vgs"
23994 msgstr ""
23995
23996 # type: verbatim
23997 #: ../fish/guestfish-actions.pod:4295
23998 #, no-wrap
23999 msgid ""
24000 " vgs\n"
24001 "\n"
24002 msgstr ""
24003
24004 # type: textblock
24005 #: ../fish/guestfish-actions.pod:4303
24006 msgid "See also L</vgs-full>."
24007 msgstr ""
24008
24009 # type: =head2
24010 #: ../fish/guestfish-actions.pod:4305
24011 msgid "vgs-full"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #: ../fish/guestfish-actions.pod:4307
24016 #, no-wrap
24017 msgid ""
24018 " vgs-full\n"
24019 "\n"
24020 msgstr ""
24021
24022 # type: =head2
24023 #: ../fish/guestfish-actions.pod:4312
24024 msgid "vgscan"
24025 msgstr ""
24026
24027 # type: verbatim
24028 #: ../fish/guestfish-actions.pod:4314
24029 #, no-wrap
24030 msgid ""
24031 " vgscan\n"
24032 "\n"
24033 msgstr ""
24034
24035 # type: =head2
24036 #: ../fish/guestfish-actions.pod:4319
24037 msgid "vguuid"
24038 msgstr ""
24039
24040 # type: verbatim
24041 #: ../fish/guestfish-actions.pod:4321
24042 #, no-wrap
24043 msgid ""
24044 " vguuid vgname\n"
24045 "\n"
24046 msgstr ""
24047
24048 # type: =head2
24049 #: ../fish/guestfish-actions.pod:4325
24050 msgid "wc-c"
24051 msgstr ""
24052
24053 # type: verbatim
24054 #: ../fish/guestfish-actions.pod:4327
24055 #, no-wrap
24056 msgid ""
24057 " wc-c path\n"
24058 "\n"
24059 msgstr ""
24060
24061 # type: =head2
24062 #: ../fish/guestfish-actions.pod:4332
24063 msgid "wc-l"
24064 msgstr ""
24065
24066 # type: verbatim
24067 #: ../fish/guestfish-actions.pod:4334
24068 #, no-wrap
24069 msgid ""
24070 " wc-l path\n"
24071 "\n"
24072 msgstr ""
24073
24074 # type: =head2
24075 #: ../fish/guestfish-actions.pod:4339
24076 msgid "wc-w"
24077 msgstr ""
24078
24079 # type: verbatim
24080 #: ../fish/guestfish-actions.pod:4341
24081 #, no-wrap
24082 msgid ""
24083 " wc-w path\n"
24084 "\n"
24085 msgstr ""
24086
24087 # type: =head2
24088 #: ../fish/guestfish-actions.pod:4346
24089 msgid "write"
24090 msgstr ""
24091
24092 # type: verbatim
24093 #: ../fish/guestfish-actions.pod:4348
24094 #, no-wrap
24095 msgid ""
24096 " write path content\n"
24097 "\n"
24098 msgstr ""
24099
24100 # type: =head2
24101 #: ../fish/guestfish-actions.pod:4356
24102 msgid "write-file"
24103 msgstr ""
24104
24105 # type: verbatim
24106 #: ../fish/guestfish-actions.pod:4358
24107 #, no-wrap
24108 msgid ""
24109 " write-file path content size\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: =head2
24114 #: ../fish/guestfish-actions.pod:4381
24115 msgid "zegrep"
24116 msgstr ""
24117
24118 # type: verbatim
24119 #: ../fish/guestfish-actions.pod:4383
24120 #, no-wrap
24121 msgid ""
24122 " zegrep regex path\n"
24123 "\n"
24124 msgstr ""
24125
24126 # type: =head2
24127 #: ../fish/guestfish-actions.pod:4391
24128 msgid "zegrepi"
24129 msgstr ""
24130
24131 # type: verbatim
24132 #: ../fish/guestfish-actions.pod:4393
24133 #, no-wrap
24134 msgid ""
24135 " zegrepi regex path\n"
24136 "\n"
24137 msgstr ""
24138
24139 # type: =head2
24140 #: ../fish/guestfish-actions.pod:4401
24141 msgid "zero"
24142 msgstr ""
24143
24144 # type: verbatim
24145 #: ../fish/guestfish-actions.pod:4403
24146 #, no-wrap
24147 msgid ""
24148 " zero device\n"
24149 "\n"
24150 msgstr ""
24151
24152 # type: textblock
24153 #: ../fish/guestfish-actions.pod:4411
24154 msgid "See also: L</zero-device>, L</scrub-device>."
24155 msgstr ""
24156
24157 # type: =head2
24158 #: ../fish/guestfish-actions.pod:4413
24159 msgid "zero-device"
24160 msgstr ""
24161
24162 # type: verbatim
24163 #: ../fish/guestfish-actions.pod:4415
24164 #, no-wrap
24165 msgid ""
24166 " zero-device device\n"
24167 "\n"
24168 msgstr ""
24169
24170 # type: textblock
24171 #: ../fish/guestfish-actions.pod:4417
24172 msgid ""
24173 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24174 "which just zeroes the first few blocks of a device."
24175 msgstr ""
24176
24177 # type: =head2
24178 #: ../fish/guestfish-actions.pod:4424
24179 msgid "zerofree"
24180 msgstr ""
24181
24182 # type: verbatim
24183 #: ../fish/guestfish-actions.pod:4426
24184 #, no-wrap
24185 msgid ""
24186 " zerofree device\n"
24187 "\n"
24188 msgstr ""
24189
24190 # type: =head2
24191 #: ../fish/guestfish-actions.pod:4439
24192 msgid "zfgrep"
24193 msgstr ""
24194
24195 # type: verbatim
24196 #: ../fish/guestfish-actions.pod:4441
24197 #, no-wrap
24198 msgid ""
24199 " zfgrep pattern path\n"
24200 "\n"
24201 msgstr ""
24202
24203 # type: =head2
24204 #: ../fish/guestfish-actions.pod:4449
24205 msgid "zfgrepi"
24206 msgstr ""
24207
24208 # type: verbatim
24209 #: ../fish/guestfish-actions.pod:4451
24210 #, no-wrap
24211 msgid ""
24212 " zfgrepi pattern path\n"
24213 "\n"
24214 msgstr ""
24215
24216 # type: =head2
24217 #: ../fish/guestfish-actions.pod:4459
24218 msgid "zfile"
24219 msgstr ""
24220
24221 # type: verbatim
24222 #: ../fish/guestfish-actions.pod:4461
24223 #, no-wrap
24224 msgid ""
24225 " zfile meth path\n"
24226 "\n"
24227 msgstr ""
24228
24229 # type: textblock
24230 #: ../fish/guestfish-actions.pod:4468
24231 msgid ""
24232 "Since 1.0.63, use L</file> instead which can now process compressed files."
24233 msgstr ""
24234
24235 # type: =head2
24236 #: ../fish/guestfish-actions.pod:4478
24237 msgid "zgrep"
24238 msgstr ""
24239
24240 # type: verbatim
24241 #: ../fish/guestfish-actions.pod:4480
24242 #, no-wrap
24243 msgid ""
24244 " zgrep regex path\n"
24245 "\n"
24246 msgstr ""
24247
24248 # type: =head2
24249 #: ../fish/guestfish-actions.pod:4488
24250 msgid "zgrepi"
24251 msgstr ""
24252
24253 # type: verbatim
24254 #: ../fish/guestfish-actions.pod:4490
24255 #, no-wrap
24256 msgid ""
24257 " zgrepi regex path\n"
24258 "\n"
24259 msgstr ""
24260
24261 # type: =head2
24262 #: ../fish/guestfish-commands.pod:1
24263 msgid "alloc"
24264 msgstr ""
24265
24266 # type: =head2
24267 #: ../fish/guestfish-commands.pod:3
24268 msgid "allocate"
24269 msgstr ""
24270
24271 # type: verbatim
24272 #: ../fish/guestfish-commands.pod:5
24273 #, no-wrap
24274 msgid ""
24275 " alloc filename size\n"
24276 "\n"
24277 msgstr ""
24278
24279 # type: textblock
24280 #: ../fish/guestfish-commands.pod:7
24281 msgid ""
24282 "This creates an empty (zeroed) file of the given size, and then adds so it "
24283 "can be further examined."
24284 msgstr ""
24285
24286 # type: textblock
24287 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24288 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24289 msgstr ""
24290
24291 # type: textblock
24292 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24293 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../fish/guestfish-commands.pod:14
24298 msgid ""
24299 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24300 "image, see L</PREPARED DISK IMAGES>."
24301 msgstr ""
24302
24303 # type: =head2
24304 #: ../fish/guestfish-commands.pod:17
24305 msgid "copy-in"
24306 msgstr ""
24307
24308 # type: verbatim
24309 #: ../fish/guestfish-commands.pod:19
24310 #, no-wrap
24311 msgid ""
24312 " copy-in local [local ...] /remotedir\n"
24313 "\n"
24314 msgstr ""
24315
24316 # type: textblock
24317 #: ../fish/guestfish-commands.pod:21
24318 msgid ""
24319 "C<copy-in> copies local files or directories recursively into the disk "
24320 "image, placing them in the directory called C</remotedir> (which must "
24321 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24322 "other commands as necessary."
24323 msgstr ""
24324
24325 # type: textblock
24326 #: ../fish/guestfish-commands.pod:26
24327 msgid ""
24328 "Multiple local files and directories can be specified, but the last "
24329 "parameter must always be a remote directory.  Wildcards cannot be used."
24330 msgstr ""
24331
24332 # type: =head2
24333 #: ../fish/guestfish-commands.pod:30
24334 msgid "copy-out"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #: ../fish/guestfish-commands.pod:32
24339 #, no-wrap
24340 msgid ""
24341 " copy-out remote [remote ...] localdir\n"
24342 "\n"
24343 msgstr ""
24344
24345 # type: textblock
24346 #: ../fish/guestfish-commands.pod:34
24347 msgid ""
24348 "C<copy-out> copies remote files or directories recursively out of the disk "
24349 "image, placing them on the host disk in a local directory called C<localdir> "
24350 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
24351 "download>, L</tar-out> and other commands as necessary."
24352 msgstr ""
24353
24354 # type: textblock
24355 #: ../fish/guestfish-commands.pod:40
24356 msgid ""
24357 "Multiple remote files and directories can be specified, but the last "
24358 "parameter must always be a local directory.  To download to the current "
24359 "directory, use C<.> as in:"
24360 msgstr ""
24361
24362 # type: verbatim
24363 #: ../fish/guestfish-commands.pod:44
24364 #, no-wrap
24365 msgid ""
24366 " copy-out /home .\n"
24367 "\n"
24368 msgstr ""
24369
24370 # type: textblock
24371 #: ../fish/guestfish-commands.pod:46
24372 msgid ""
24373 "Wildcards cannot be used in the ordinary command, but you can use them with "
24374 "the help of L</glob> like this:"
24375 msgstr ""
24376
24377 # type: verbatim
24378 #: ../fish/guestfish-commands.pod:49
24379 #, no-wrap
24380 msgid ""
24381 " glob copy-out /home/* .\n"
24382 "\n"
24383 msgstr ""
24384
24385 # type: =head2
24386 #: ../fish/guestfish-commands.pod:51
24387 msgid "echo"
24388 msgstr ""
24389
24390 # type: verbatim
24391 #: ../fish/guestfish-commands.pod:53
24392 #, no-wrap
24393 msgid ""
24394 " echo [params ...]\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: textblock
24399 #: ../fish/guestfish-commands.pod:55
24400 msgid "This echos the parameters to the terminal."
24401 msgstr ""
24402
24403 # type: =head2
24404 #: ../fish/guestfish-commands.pod:57
24405 msgid "edit"
24406 msgstr ""
24407
24408 # type: =head2
24409 #: ../fish/guestfish-commands.pod:59
24410 msgid "vi"
24411 msgstr ""
24412
24413 # type: =head2
24414 #: ../fish/guestfish-commands.pod:61
24415 msgid "emacs"
24416 msgstr ""
24417
24418 # type: verbatim
24419 #: ../fish/guestfish-commands.pod:63
24420 #, no-wrap
24421 msgid ""
24422 " edit filename\n"
24423 "\n"
24424 msgstr ""
24425
24426 # type: textblock
24427 #: ../fish/guestfish-commands.pod:65
24428 msgid ""
24429 "This is used to edit a file.  It downloads the file, edits it locally using "
24430 "your editor, then uploads the result."
24431 msgstr ""
24432
24433 # type: textblock
24434 #: ../fish/guestfish-commands.pod:68
24435 msgid ""
24436 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24437 "or C<emacs> you will get those corresponding editors."
24438 msgstr ""
24439
24440 # type: =head2
24441 #: ../fish/guestfish-commands.pod:72
24442 msgid "glob"
24443 msgstr ""
24444
24445 # type: verbatim
24446 #: ../fish/guestfish-commands.pod:74
24447 #, no-wrap
24448 msgid ""
24449 " glob command args...\n"
24450 "\n"
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../fish/guestfish-commands.pod:76
24455 msgid ""
24456 "Expand wildcards in any paths in the args list, and run C<command> "
24457 "repeatedly on each matching path."
24458 msgstr ""
24459
24460 # type: textblock
24461 #: ../fish/guestfish-commands.pod:79
24462 msgid "See L</WILDCARDS AND GLOBBING>."
24463 msgstr ""
24464
24465 # type: =head2
24466 #: ../fish/guestfish-commands.pod:81
24467 msgid "hexedit"
24468 msgstr ""
24469
24470 # type: verbatim
24471 #: ../fish/guestfish-commands.pod:83
24472 #, no-wrap
24473 msgid ""
24474 " hexedit <filename|device>\n"
24475 " hexedit <filename|device> <max>\n"
24476 " hexedit <filename|device> <start> <max>\n"
24477 "\n"
24478 msgstr ""
24479
24480 # type: textblock
24481 #: ../fish/guestfish-commands.pod:87
24482 msgid ""
24483 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24484 "device."
24485 msgstr ""
24486
24487 # type: textblock
24488 #: ../fish/guestfish-commands.pod:90
24489 msgid ""
24490 "This command works by downloading potentially the whole file or device, "
24491 "editing it locally, then uploading it.  If the file or device is large, you "
24492 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24493 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24494 "usual modifiers allowed such as C<1M> (1 megabyte)."
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../fish/guestfish-commands.pod:97
24499 msgid "For example to edit the first few sectors of a disk you might do:"
24500 msgstr ""
24501
24502 # type: verbatim
24503 #: ../fish/guestfish-commands.pod:100
24504 #, no-wrap
24505 msgid ""
24506 " hexedit /dev/sda 1M\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../fish/guestfish-commands.pod:102
24512 msgid ""
24513 "which would allow you to edit anywhere within the first megabyte of the disk."
24514 msgstr ""
24515
24516 # type: textblock
24517 #: ../fish/guestfish-commands.pod:105
24518 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24519 msgstr ""
24520
24521 # type: verbatim
24522 #: ../fish/guestfish-commands.pod:107
24523 #, no-wrap
24524 msgid ""
24525 " hexedit /dev/sda1 0x400 0x400\n"
24526 "\n"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fish/guestfish-commands.pod:109
24531 msgid "(assuming the superblock is in the standard location)."
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fish/guestfish-commands.pod:111
24536 msgid ""
24537 "This command requires the external L<hexedit(1)> program.  You can specify "
24538 "another program to use by setting the C<HEXEDITOR> environment variable."
24539 msgstr ""
24540
24541 # type: textblock
24542 #: ../fish/guestfish-commands.pod:115
24543 msgid "See also L</hexdump>."
24544 msgstr ""
24545
24546 # type: =head2
24547 #: ../fish/guestfish-commands.pod:117
24548 msgid "lcd"
24549 msgstr ""
24550
24551 # type: verbatim
24552 #: ../fish/guestfish-commands.pod:119
24553 #, no-wrap
24554 msgid ""
24555 " lcd directory\n"
24556 "\n"
24557 msgstr ""
24558
24559 # type: textblock
24560 #: ../fish/guestfish-commands.pod:121
24561 msgid ""
24562 "Change the local directory, ie. the current directory of guestfish itself."
24563 msgstr ""
24564
24565 # type: textblock
24566 #: ../fish/guestfish-commands.pod:124
24567 msgid "Note that C<!cd> won't do what you might expect."
24568 msgstr ""
24569
24570 # type: =head2
24571 #: ../fish/guestfish-commands.pod:126
24572 msgid "man"
24573 msgstr ""
24574
24575 # type: =head2
24576 #: ../fish/guestfish-commands.pod:128
24577 msgid "manual"
24578 msgstr ""
24579
24580 # type: verbatim
24581 #: ../fish/guestfish-commands.pod:130
24582 #, no-wrap
24583 msgid ""
24584 "  man\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../fish/guestfish-commands.pod:132
24590 msgid "Opens the manual page for guestfish."
24591 msgstr ""
24592
24593 # type: =head2
24594 #: ../fish/guestfish-commands.pod:134
24595 msgid "more"
24596 msgstr ""
24597
24598 # type: =head2
24599 #: ../fish/guestfish-commands.pod:136
24600 msgid "less"
24601 msgstr ""
24602
24603 # type: verbatim
24604 #: ../fish/guestfish-commands.pod:138
24605 #, no-wrap
24606 msgid ""
24607 " more filename\n"
24608 "\n"
24609 msgstr ""
24610
24611 # type: verbatim
24612 #: ../fish/guestfish-commands.pod:140
24613 #, no-wrap
24614 msgid ""
24615 " less filename\n"
24616 "\n"
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../fish/guestfish-commands.pod:142
24621 msgid "This is used to view a file."
24622 msgstr ""
24623
24624 # type: textblock
24625 #: ../fish/guestfish-commands.pod:144
24626 msgid ""
24627 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24628 "C<less> you will get the C<less> command specifically."
24629 msgstr ""
24630
24631 # type: =head2
24632 #: ../fish/guestfish-commands.pod:147
24633 msgid "reopen"
24634 msgstr ""
24635
24636 # type: verbatim
24637 #: ../fish/guestfish-commands.pod:149
24638 #, no-wrap
24639 msgid ""
24640 "  reopen\n"
24641 "\n"
24642 msgstr ""
24643
24644 # type: textblock
24645 #: ../fish/guestfish-commands.pod:151
24646 msgid ""
24647 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24648 "normally, because the handle is closed properly when guestfish exits.  "
24649 "However this is occasionally useful for testing."
24650 msgstr ""
24651
24652 # type: =head2
24653 #: ../fish/guestfish-commands.pod:155
24654 msgid "sparse"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #: ../fish/guestfish-commands.pod:157
24659 #, no-wrap
24660 msgid ""
24661 " sparse filename size\n"
24662 "\n"
24663 msgstr ""
24664
24665 # type: textblock
24666 #: ../fish/guestfish-commands.pod:159
24667 msgid ""
24668 "This creates an empty sparse file of the given size, and then adds so it can "
24669 "be further examined."
24670 msgstr ""
24671
24672 # type: textblock
24673 #: ../fish/guestfish-commands.pod:162
24674 msgid ""
24675 "In all respects it works the same as the L</alloc> command, except that the "
24676 "image file is allocated sparsely, which means that disk blocks are not "
24677 "assigned to the file until they are needed.  Sparse disk files only use "
24678 "space when written to, but they are slower and there is a danger you could "
24679 "run out of real disk space during a write operation."
24680 msgstr ""
24681
24682 # type: =head2
24683 #: ../fish/guestfish-commands.pod:172
24684 msgid "supported"
24685 msgstr ""
24686
24687 # type: verbatim
24688 #: ../fish/guestfish-commands.pod:174
24689 #, no-wrap
24690 msgid ""
24691 " supported\n"
24692 "\n"
24693 msgstr ""
24694
24695 # type: textblock
24696 #: ../fish/guestfish-commands.pod:176
24697 msgid ""
24698 "This command returns a list of the optional groups known to the daemon, and "
24699 "indicates which ones are supported by this build of the libguestfs appliance."
24700 msgstr ""
24701
24702 # type: textblock
24703 #: ../fish/guestfish-commands.pod:180
24704 msgid "See also L<guestfs(3)/AVAILABILITY>."
24705 msgstr ""
24706
24707 # type: =head2
24708 #: ../fish/guestfish-commands.pod:182
24709 msgid "time"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #: ../fish/guestfish-commands.pod:184
24714 #, no-wrap
24715 msgid ""
24716 " time command args...\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../fish/guestfish-commands.pod:186
24722 msgid ""
24723 "Run the command as usual, but print the elapsed time afterwards.  This can "
24724 "be useful for benchmarking operations."
24725 msgstr ""
24726
24727 # type: textblock
24728 #: ../test-tool/libguestfs-test-tool.pod:5
24729 msgid "libguestfs-test-tool - End user tests for libguestfs"
24730 msgstr ""
24731
24732 # type: verbatim
24733 #: ../test-tool/libguestfs-test-tool.pod:9
24734 #, no-wrap
24735 msgid ""
24736 " libguestfs-test-tool [--options]\n"
24737 "\n"
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../test-tool/libguestfs-test-tool.pod:13
24742 msgid ""
24743 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24744 "and developers, to allow them to check basic libguestfs functionality is "
24745 "working.  This is needed because libguestfs occasionally breaks for reasons "
24746 "beyond our control: usually because of changes in the underlying qemu or "
24747 "kernel packages, or the host environment."
24748 msgstr ""
24749
24750 # type: textblock
24751 #: ../test-tool/libguestfs-test-tool.pod:20
24752 msgid "If you suspect a problem in libguestfs, then just run:"
24753 msgstr ""
24754
24755 # type: verbatim
24756 #: ../test-tool/libguestfs-test-tool.pod:22
24757 #, no-wrap
24758 msgid ""
24759 " libguestfs-test-tool\n"
24760 "\n"
24761 msgstr ""
24762
24763 # type: textblock
24764 #: ../test-tool/libguestfs-test-tool.pod:24
24765 msgid "It will print lots of diagnostic messages."
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../test-tool/libguestfs-test-tool.pod:26
24770 msgid "If it runs to completion successfully, you will see this near the end:"
24771 msgstr ""
24772
24773 # type: verbatim
24774 #: ../test-tool/libguestfs-test-tool.pod:28
24775 #, no-wrap
24776 msgid ""
24777 " ===== TEST FINISHED OK =====\n"
24778 "\n"
24779 msgstr ""
24780
24781 # type: textblock
24782 #: ../test-tool/libguestfs-test-tool.pod:30
24783 msgid "and the test tool will exit with code 0."
24784 msgstr ""
24785
24786 # type: textblock
24787 #: ../test-tool/libguestfs-test-tool.pod:32
24788 msgid ""
24789 "If it fails (and/or exits with non-zero error code), please paste the "
24790 "B<complete, unedited> output of the test tool into a bug report.  More "
24791 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24792 "> website."
24793 msgstr ""
24794
24795 # type: =item
24796 #: ../test-tool/libguestfs-test-tool.pod:41
24797 msgid "I<--help>"
24798 msgstr ""
24799
24800 # type: textblock
24801 #: ../test-tool/libguestfs-test-tool.pod:43
24802 msgid "Display short usage information and exit."
24803 msgstr ""
24804
24805 # type: =item
24806 #: ../test-tool/libguestfs-test-tool.pod:45
24807 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24808 msgstr ""
24809
24810 # type: textblock
24811 #: ../test-tool/libguestfs-test-tool.pod:47
24812 msgid ""
24813 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24814 "normally look in the C<$libexec> directory that was configured when the tool "
24815 "was built."
24816 msgstr ""
24817
24818 # type: =item
24819 #: ../test-tool/libguestfs-test-tool.pod:51
24820 msgid "I<--qemu qemu_binary>"
24821 msgstr ""
24822
24823 # type: textblock
24824 #: ../test-tool/libguestfs-test-tool.pod:53
24825 msgid ""
24826 "If you have downloaded another qemu binary, point this option at the full "
24827 "path of the binary to try it."
24828 msgstr ""
24829
24830 # type: =item
24831 #: ../test-tool/libguestfs-test-tool.pod:56
24832 msgid "I<--qemudir qemu_source_dir>"
24833 msgstr ""
24834
24835 # type: textblock
24836 #: ../test-tool/libguestfs-test-tool.pod:58
24837 msgid ""
24838 "If you have compiled qemu from source, point this option at the source "
24839 "directory to try it."
24840 msgstr ""
24841
24842 # type: =item
24843 #: ../test-tool/libguestfs-test-tool.pod:61
24844 msgid "I<--timeout N>"
24845 msgstr ""
24846
24847 # type: textblock
24848 #: ../test-tool/libguestfs-test-tool.pod:63
24849 msgid ""
24850 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24851 "does not usually need to be adjusted unless your machine is very slow."
24852 msgstr ""
24853
24854 # type: =head1
24855 #: ../test-tool/libguestfs-test-tool.pod:69
24856 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24857 msgstr ""
24858
24859 # type: textblock
24860 #: ../test-tool/libguestfs-test-tool.pod:71
24861 msgid ""
24862 "If you have compiled another version of qemu from source and would like to "
24863 "try that, then you can use the I<--qemudir> option to point to the qemu "
24864 "source directory."
24865 msgstr ""
24866
24867 # type: textblock
24868 #: ../test-tool/libguestfs-test-tool.pod:75
24869 msgid ""
24870 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24871 "option to point to the binary."
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../test-tool/libguestfs-test-tool.pod:78
24876 msgid ""
24877 "When using an alternate qemu with libguestfs, usually you would need to "
24878 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
24879 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
24880 "use either of the I<--qemudir> or I<--qemu> options."
24881 msgstr ""
24882
24883 # type: textblock
24884 #: ../test-tool/libguestfs-test-tool.pod:85
24885 msgid ""
24886 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24887 "I<1> if there was an error."
24888 msgstr ""
24889
24890 # type: =item
24891 #: ../test-tool/libguestfs-test-tool.pod:92
24892 msgid "/usr/libexec/libguestfs-test-tool-helper"
24893 msgstr ""
24894
24895 # type: textblock
24896 #: ../test-tool/libguestfs-test-tool.pod:94
24897 msgid ""
24898 "This helper program is run inside the appliance and provides additional "
24899 "tests."
24900 msgstr ""
24901
24902 # type: =item
24903 #: ../test-tool/libguestfs-test-tool.pod:97
24904 msgid "/usr/bin/mkisofs"
24905 msgstr ""
24906
24907 # type: textblock
24908 #: ../test-tool/libguestfs-test-tool.pod:99
24909 msgid ""
24910 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24911 "which is used as part of the tests."
24912 msgstr ""
24913
24914 # type: textblock
24915 #: ../test-tool/libguestfs-test-tool.pod:106
24916 msgid ""
24917 "For the full list of environment variables which may affect libguestfs, "
24918 "please see the L<guestfs(3)> manual page."
24919 msgstr ""
24920
24921 # type: textblock
24922 #: ../test-tool/libguestfs-test-tool.pod:111
24923 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24924 msgstr ""
24925
24926 # type: textblock
24927 #: ../test-tool/libguestfs-test-tool.pod:121
24928 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24929 msgstr ""
24930
24931 # type: textblock
24932 #: ../fuse/guestmount.pod:5
24933 msgid ""
24934 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #: ../fuse/guestmount.pod:9
24939 #, no-wrap
24940 msgid ""
24941 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: verbatim
24946 #: ../fuse/guestmount.pod:11
24947 #, no-wrap
24948 msgid ""
24949 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24950 "\n"
24951 msgstr ""
24952
24953 # type: verbatim
24954 #: ../fuse/guestmount.pod:13
24955 #, no-wrap
24956 msgid ""
24957 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24958 "\n"
24959 msgstr ""
24960
24961 # type: textblock
24962 #: ../fuse/guestmount.pod:17
24963 msgid ""
24964 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24965 "machines.  If you do this, you risk disk corruption in the VM."
24966 msgstr ""
24967
24968 # type: textblock
24969 #: ../fuse/guestmount.pod:22
24970 msgid ""
24971 "The guestmount program can be used to mount virtual machine filesystems and "
24972 "other disk images on the host.  It uses libguestfs for access to the guest "
24973 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24974 "a mountable device."
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../fuse/guestmount.pod:27
24979 msgid ""
24980 "Along with other options, you have to give at least one device (I<-a> "
24981 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24982 "option) or use the I<-i> inspection option.  How this works is better "
24983 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24984 "below."
24985 msgstr ""
24986
24987 # type: textblock
24988 #: ../fuse/guestmount.pod:33
24989 msgid ""
24990 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24991 "by you, and the filesystem will not be visible to any other users unless you "
24992 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24993 "the filesystem, use the C<fusermount -u> command."
24994 msgstr ""
24995
24996 # type: textblock
24997 #: ../fuse/guestmount.pod:41
24998 msgid ""
24999 "For a typical Windows guest which has its main filesystem on the first "
25000 "partition:"
25001 msgstr ""
25002
25003 # type: verbatim
25004 #: ../fuse/guestmount.pod:44
25005 #, no-wrap
25006 msgid ""
25007 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25008 "\n"
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../fuse/guestmount.pod:46
25013 msgid ""
25014 "For a typical Linux guest which has a /boot filesystem on the first "
25015 "partition, and the root filesystem on a logical volume:"
25016 msgstr ""
25017
25018 # type: verbatim
25019 #: ../fuse/guestmount.pod:49
25020 #, no-wrap
25021 msgid ""
25022 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: textblock
25027 #: ../fuse/guestmount.pod:51
25028 msgid "To get libguestfs to detect guest mountpoints for you:"
25029 msgstr ""
25030
25031 # type: verbatim
25032 #: ../fuse/guestmount.pod:53
25033 #, no-wrap
25034 msgid ""
25035 " guestmount -a guest.img -i --ro /mnt\n"
25036 "\n"
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../fuse/guestmount.pod:55
25041 msgid "For a libvirt guest called \"Guest\" you could do:"
25042 msgstr ""
25043
25044 # type: verbatim
25045 #: ../fuse/guestmount.pod:57
25046 #, no-wrap
25047 msgid ""
25048 " guestmount -d Guest -i --ro /mnt\n"
25049 "\n"
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../fuse/guestmount.pod:59
25054 msgid ""
25055 "If you don't know what filesystems are contained in a guest or disk image, "
25056 "use L<virt-list-filesystems(1)> first:"
25057 msgstr ""
25058
25059 # type: verbatim
25060 #: ../fuse/guestmount.pod:62
25061 #, no-wrap
25062 msgid ""
25063 " virt-list-filesystems MyGuest\n"
25064 "\n"
25065 msgstr ""
25066
25067 # type: textblock
25068 #: ../fuse/guestmount.pod:64
25069 msgid ""
25070 "If you want to trace the libguestfs calls but without excessive debugging "
25071 "information, we recommend:"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #: ../fuse/guestmount.pod:67
25076 #, no-wrap
25077 msgid ""
25078 " guestmount [...] --trace /mnt\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: textblock
25083 #: ../fuse/guestmount.pod:69
25084 msgid "If you want to debug the program, we recommend:"
25085 msgstr ""
25086
25087 # type: verbatim
25088 #: ../fuse/guestmount.pod:71
25089 #, no-wrap
25090 msgid ""
25091 " guestmount [...] --trace --verbose /mnt\n"
25092 "\n"
25093 msgstr ""
25094
25095 # type: textblock
25096 #: ../fuse/guestmount.pod:79
25097 msgid "Add a block device or virtual machine image."
25098 msgstr ""
25099
25100 # type: =item
25101 #: ../fuse/guestmount.pod:96
25102 msgid "B<--dir-cache-timeout N>"
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../fuse/guestmount.pod:98
25107 msgid ""
25108 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25109 "seconds.  The readdir cache [actually, there are several semi-independent "
25110 "caches] is populated after a readdir(2) call with the stat and extended "
25111 "attributes of the files in the directory, in anticipation that they will be "
25112 "requested soon after."
25113 msgstr ""
25114
25115 # type: textblock
25116 #: ../fuse/guestmount.pod:104
25117 msgid ""
25118 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25119 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25120 "requests, only cache existing ones."
25121 msgstr ""
25122
25123 # type: textblock
25124 #: ../fuse/guestmount.pod:122
25125 msgid ""
25126 "If you have untrusted raw-format guest disk images, you should use this "
25127 "option to specify the disk format.  This avoids a possible security problem "
25128 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25129 "guestfs_add_drive_opts>."
25130 msgstr ""
25131
25132 # type: =item
25133 #: ../fuse/guestmount.pod:127
25134 msgid "B<--fuse-help>"
25135 msgstr ""
25136
25137 # type: textblock
25138 #: ../fuse/guestmount.pod:129
25139 msgid "Display help on special FUSE options (see I<-o> below)."
25140 msgstr ""
25141
25142 # type: textblock
25143 #: ../fuse/guestmount.pod:133
25144 msgid "Display brief help and exit."
25145 msgstr ""
25146
25147 # type: =item
25148 #: ../fuse/guestmount.pod:146
25149 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../fuse/guestmount.pod:148
25154 msgid ""
25155 "Mount the named partition or logical volume on the given mountpoint B<in the "
25156 "guest> (this has nothing to do with mountpoints in the host)."
25157 msgstr ""
25158
25159 # type: textblock
25160 #: ../fuse/guestmount.pod:151
25161 msgid ""
25162 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25163 "something on C</>."
25164 msgstr ""
25165
25166 # type: textblock
25167 #: ../fuse/guestmount.pod:156
25168 msgid ""
25169 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25170 "unmounted.  If you specify this option, then we don't attempt to sync the "
25171 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25172 msgstr ""
25173
25174 # type: =item
25175 #: ../fuse/guestmount.pod:161
25176 msgid "B<-o option> | B<--option option>"
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../fuse/guestmount.pod:163
25181 msgid "Pass extra options to FUSE."
25182 msgstr ""
25183
25184 # type: textblock
25185 #: ../fuse/guestmount.pod:165
25186 msgid ""
25187 "To get a list of all the extra options supported by FUSE, use the command "
25188 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25189 "of them are a good idea."
25190 msgstr ""
25191
25192 # type: verbatim
25193 #: ../fuse/guestmount.pod:169
25194 #, no-wrap
25195 msgid ""
25196 " guestmount --fuse-help\n"
25197 "\n"
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../fuse/guestmount.pod:171
25202 msgid "Some potentially useful FUSE options:"
25203 msgstr ""
25204
25205 # type: =item
25206 #: ../fuse/guestmount.pod:175
25207 msgid "B<-o allow_other>"
25208 msgstr ""
25209
25210 # type: textblock
25211 #: ../fuse/guestmount.pod:177
25212 msgid "Allow other users to see the filesystem."
25213 msgstr ""
25214
25215 # type: =item
25216 #: ../fuse/guestmount.pod:179
25217 msgid "B<-o attr_timeout=N>"
25218 msgstr ""
25219
25220 # type: textblock
25221 #: ../fuse/guestmount.pod:181
25222 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25223 msgstr ""
25224
25225 # type: =item
25226 #: ../fuse/guestmount.pod:183
25227 msgid "B<-o kernel_cache>"
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../fuse/guestmount.pod:185
25232 msgid ""
25233 "Allow the kernel to cache files (reduces the number of reads that have to go "
25234 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25235 "afford the extra memory usage."
25236 msgstr ""
25237
25238 # type: =item
25239 #: ../fuse/guestmount.pod:189
25240 msgid "B<-o uid=N> B<-o gid=N>"
25241 msgstr ""
25242
25243 # type: textblock
25244 #: ../fuse/guestmount.pod:191
25245 msgid ""
25246 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25247 "the chosen values."
25248 msgstr ""
25249
25250 # type: textblock
25251 #: ../fuse/guestmount.pod:198
25252 msgid ""
25253 "Add devices and mount everything read-only.  Also disallow writes and make "
25254 "the disk appear read-only to FUSE."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../fuse/guestmount.pod:201
25259 msgid ""
25260 "This is highly recommended if you are not going to edit the guest disk.  If "
25261 "the guest is running and this option is I<not> supplied, then there is a "
25262 "strong risk of disk corruption in the guest.  We try to prevent this from "
25263 "happening, but it is not always possible."
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../fuse/guestmount.pod:206
25268 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25269 msgstr ""
25270
25271 # type: textblock
25272 #: ../fuse/guestmount.pod:210
25273 msgid "Enable SELinux support for the guest."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../fuse/guestmount.pod:214
25278 msgid "Enable verbose messages from underlying libguestfs."
25279 msgstr ""
25280
25281 # type: textblock
25282 #: ../fuse/guestmount.pod:218
25283 msgid "Display the program version and exit."
25284 msgstr ""
25285
25286 # type: textblock
25287 #: ../fuse/guestmount.pod:222
25288 msgid ""
25289 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25290 "FOR READ AND WRITE>."
25291 msgstr ""
25292
25293 # type: =item
25294 #: ../fuse/guestmount.pod:225
25295 msgid "B<-x> | B<--trace>"
25296 msgstr ""
25297
25298 # type: textblock
25299 #: ../fuse/guestmount.pod:227
25300 msgid "Trace libguestfs calls."
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../fuse/guestmount.pod:229
25305 msgid "This also stops the daemon from forking into the background."
25306 msgstr ""
25307
25308 # type: textblock
25309 #: ../fuse/guestmount.pod:235
25310 msgid ""
25311 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25312 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
25313 "net/>."
25314 msgstr ""
25315
25316 # type: textblock
25317 #: ../inspector/virt-inspector.pl:35
25318 msgid ""
25319 "virt-inspector - Display operating system version and other information "
25320 "about a virtual machine"
25321 msgstr ""
25322
25323 # type: verbatim
25324 #: ../inspector/virt-inspector.pl:39
25325 #, no-wrap
25326 msgid ""
25327 " virt-inspector [--connect URI] domname\n"
25328 "\n"
25329 msgstr ""
25330
25331 # type: verbatim
25332 #: ../inspector/virt-inspector.pl:41
25333 #, no-wrap
25334 msgid ""
25335 " virt-inspector guest.img [guest.img ...]\n"
25336 "\n"
25337 msgstr ""
25338
25339 # type: textblock
25340 #: ../inspector/virt-inspector.pl:45
25341 msgid ""
25342 "B<virt-inspector> examines a virtual machine or disk image and tries to "
25343 "determine the version of the operating system and other information about "
25344 "the virtual machine."
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../inspector/virt-inspector.pl:49
25349 msgid "Virt-inspector produces XML output for feeding into other programs."
25350 msgstr ""
25351
25352 # type: textblock
25353 #: ../inspector/virt-inspector.pl:51
25354 msgid ""
25355 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
25356 "libvirt domain (see: C<virsh list --all>)."
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../inspector/virt-inspector.pl:54
25361 msgid ""
25362 "You can also run virt-inspector directly on disk images from a single "
25363 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
25364 "has several block devices, in which case you should list them one after "
25365 "another, with the first corresponding to the guest's C</dev/sda>, the second "
25366 "to the guest's C</dev/sdb> and so on."
25367 msgstr ""
25368
25369 # type: textblock
25370 #: ../inspector/virt-inspector.pl:60
25371 msgid ""
25372 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
25373 "inspect several virtual machines, you have to run virt-inspector several "
25374 "times (for example, from a shell script for-loop)."
25375 msgstr ""
25376
25377 # type: textblock
25378 #: ../inspector/virt-inspector.pl:65
25379 msgid ""
25380 "Because virt-inspector needs direct access to guest images, it won't "
25381 "normally work over remote libvirt connections."
25382 msgstr ""
25383
25384 # type: textblock
25385 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
25386 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
25387 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-tar.pl:108
25388 #: ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163
25389 #: ../tools/virt-list-partitions.pl:61
25390 msgid "Display brief help."
25391 msgstr ""
25392
25393 # type: =item
25394 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
25395 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
25396 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
25397 #: ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119
25398 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
25399 msgid "B<--version>"
25400 msgstr ""
25401
25402 # type: textblock
25403 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
25404 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
25405 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
25406 #: ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121
25407 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
25408 msgid "Display version number and exit."
25409 msgstr ""
25410
25411 # type: =item
25412 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
25413 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
25414 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-tar.pl:122
25415 #: ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
25416 msgid "B<--connect URI> | B<-c URI>"
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
25421 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
25422 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-tar.pl:124
25423 #: ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
25424 msgid ""
25425 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25426 "to the default libvirt hypervisor."
25427 msgstr ""
25428
25429 # type: textblock
25430 #: ../inspector/virt-inspector.pl:97
25431 msgid ""
25432 "Libvirt is only used if you specify a C<domname> on the command line.  If "
25433 "you specify guest block devices directly, then libvirt is not used at all."
25434 msgstr ""
25435
25436 # type: =item
25437 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
25438 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
25439 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
25440 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-tar.pl:134
25441 #: ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
25442 msgid "B<--format> raw"
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
25447 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
25448 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
25449 #: ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149
25450 #: ../tools/virt-list-partitions.pl:89
25451 msgid ""
25452 "Specify the format of disk images given on the command line.  If this is "
25453 "omitted then the format is autodetected from the content of the disk image."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
25458 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
25459 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
25460 #: ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153
25461 #: ../tools/virt-list-partitions.pl:93
25462 msgid ""
25463 "If disk images are requested from libvirt, then this program asks libvirt "
25464 "for this information.  In this case, the value of the format parameter is "
25465 "ignored."
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
25470 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
25471 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
25472 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
25473 #: ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157
25474 #: ../tools/virt-list-partitions.pl:97
25475 msgid ""
25476 "If working with untrusted raw-format guest disk images, you should ensure "
25477 "the format is always specified."
25478 msgstr ""
25479
25480 # type: =head1
25481 #: ../inspector/virt-inspector.pl:149
25482 msgid "XML FORMAT"
25483 msgstr ""
25484
25485 # type: textblock
25486 #: ../inspector/virt-inspector.pl:151
25487 msgid ""
25488 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
25489 "supplied with libguestfs.  This section is just an overview."
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../inspector/virt-inspector.pl:154
25494 msgid ""
25495 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
25496 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
25497 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
25498 "which is vanishingly rare in real world VMs."
25499 msgstr ""
25500
25501 # type: =head2
25502 #: ../inspector/virt-inspector.pl:159
25503 msgid "E<lt>operatingsystemE<gt>"
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../inspector/virt-inspector.pl:161
25508 msgid ""
25509 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
25510 "describe the operating system, its architecture, the descriptive \"product "
25511 "name\" string, the type of OS and so on, as in this example:"
25512 msgstr ""
25513
25514 # type: verbatim
25515 #: ../inspector/virt-inspector.pl:165
25516 #, no-wrap
25517 msgid ""
25518 " <operatingsystems>\n"
25519 "   <operatingsystem>\n"
25520 "     <root>/dev/sda2</root>\n"
25521 "     <name>windows</name>\n"
25522 "     <arch>i386</arch>\n"
25523 "     <distro>windows</distro>\n"
25524 "     <product_name>Windows 7 Enterprise</product_name>\n"
25525 "     <major_version>6</major_version>\n"
25526 "     <minor_version>1</minor_version>\n"
25527 "     <windows_systemroot>/Windows</windows_systemroot>\n"
25528 "\n"
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../inspector/virt-inspector.pl:176
25533 msgid ""
25534 "These fields are derived from the libguestfs inspection API, and you can "
25535 "find more details in L<guestfs(3)/INSPECTION>."
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../inspector/virt-inspector.pl:179
25540 msgid ""
25541 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
25542 "of view of libguestfs (block devices may have completely different names "
25543 "inside the VM itself)."
25544 msgstr ""
25545
25546 # type: =head2
25547 #: ../inspector/virt-inspector.pl:240
25548 msgid "E<lt>mountpointsE<gt>"
25549 msgstr ""
25550
25551 # type: textblock
25552 #: ../inspector/virt-inspector.pl:242
25553 msgid ""
25554 "Un*x-like guests typically have multiple filesystems which are mounted at "
25555 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
25556 "element which looks like this:"
25557 msgstr ""
25558
25559 # type: verbatim
25560 #: ../inspector/virt-inspector.pl:246
25561 #, no-wrap
25562 msgid ""
25563 " <operatingsystems>\n"
25564 "   <operatingsystem>\n"
25565 "     ...\n"
25566 "     <mountpoints>\n"
25567 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
25568 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
25569 "     </mountpoints>\n"
25570 "\n"
25571 msgstr ""
25572
25573 # type: textblock
25574 #: ../inspector/virt-inspector.pl:254
25575 msgid ""
25576 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
25577 "and may have completely different names inside the guest.  Only mountable "
25578 "filesystems appear in this list, not things like swap devices."
25579 msgstr ""
25580
25581 # type: =head2
25582 #: ../inspector/virt-inspector.pl:276
25583 msgid "E<lt>filesystemsE<gt>"
25584 msgstr ""
25585
25586 # type: textblock
25587 #: ../inspector/virt-inspector.pl:278
25588 msgid ""
25589 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
25590 "filesystems belonging to the guest, including swap and empty partitions.  "
25591 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
25592 "this OS or shared by this OS and other OSes)."
25593 msgstr ""
25594
25595 # type: textblock
25596 #: ../inspector/virt-inspector.pl:283
25597 msgid "You might see something like this:"
25598 msgstr ""
25599
25600 # type: verbatim
25601 #: ../inspector/virt-inspector.pl:285
25602 #, no-wrap
25603 msgid ""
25604 " <operatingsystems>\n"
25605 "   <operatingsystem>\n"
25606 "     ...\n"
25607 "     <filesystems>\n"
25608 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25609 "         <type>ext4</type>\n"
25610 "         <label>Fedora-13-x86_64</label>\n"
25611 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
25612 "       </filesystem>\n"
25613 "\n"
25614 msgstr ""
25615
25616 # type: textblock
25617 #: ../inspector/virt-inspector.pl:295
25618 msgid ""
25619 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
25620 "the label, and the UUID."
25621 msgstr ""
25622
25623 # type: =head2
25624 #: ../inspector/virt-inspector.pl:337
25625 msgid "E<lt>applicationsE<gt>"
25626 msgstr ""
25627
25628 # type: textblock
25629 #: ../inspector/virt-inspector.pl:339
25630 msgid ""
25631 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
25632 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25633 "machine.  At the moment we are only able to list RPMs and Debian packages "
25634 "installed, but in future we will support other Linux distros and Windows."
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../inspector/virt-inspector.pl:345
25639 msgid ""
25640 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25641 "Typical values would be C<rpm> and C<deb>."
25642 msgstr ""
25643
25644 # type: textblock
25645 #: ../inspector/virt-inspector.pl:348
25646 msgid ""
25647 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25648 "Typical values include C<yum>, C<up2date> and C<apt>"
25649 msgstr ""
25650
25651 # type: textblock
25652 #: ../inspector/virt-inspector.pl:351
25653 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25654 msgstr ""
25655
25656 # type: verbatim
25657 #: ../inspector/virt-inspector.pl:354
25658 #, no-wrap
25659 msgid ""
25660 " <operatingsystems>\n"
25661 "   <operatingsystem>\n"
25662 "     ...\n"
25663 "     <applications>\n"
25664 "       <application>\n"
25665 "         <name>coreutils</name>\n"
25666 "         <version>8.5</version>\n"
25667 "         <release>1</release>\n"
25668 "       </application>\n"
25669 "\n"
25670 msgstr ""
25671
25672 # type: textblock
25673 #: ../inspector/virt-inspector.pl:364
25674 msgid ""
25675 "(The version and release fields may not be available for some package types)."
25676 msgstr ""
25677
25678 # type: =head1
25679 #: ../inspector/virt-inspector.pl:544
25680 msgid "USING XPATH"
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../inspector/virt-inspector.pl:546
25685 msgid ""
25686 "You can use the XPath query language, and/or the xpath tool, in order to "
25687 "select parts of the XML."
25688 msgstr ""
25689
25690 # type: verbatim
25691 #: ../inspector/virt-inspector.pl:551
25692 #, no-wrap
25693 msgid ""
25694 " $ virt-inspector Guest | xpath //filesystems\n"
25695 " Found 1 nodes:\n"
25696 " -- NODE --\n"
25697 " <filesystems>\n"
25698 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25699 "        <type>ext4</type>\n"
25700 " [etc]\n"
25701 "\n"
25702 msgstr ""
25703
25704 # type: verbatim
25705 #: ../inspector/virt-inspector.pl:559
25706 #, no-wrap
25707 msgid ""
25708 " $ virt-inspector Guest | \\\n"
25709 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25710 " Query didn't return a nodeset. Value: ext4\n"
25711 "\n"
25712 msgstr ""
25713
25714 # type: =head2
25715 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
25716 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
25717 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
25718 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
25719 #: ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260
25720 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
25721 msgid "SHELL QUOTING"
25722 msgstr ""
25723
25724 # type: textblock
25725 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
25726 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
25727 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
25728 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-tar.pl:276
25729 #: ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529
25730 #: ../tools/virt-list-partitions.pl:249
25731 msgid ""
25732 "Libvirt guest names can contain arbitrary characters, some of which have "
25733 "meaning to the shell such as C<#> and space.  You may need to quote or "
25734 "escape these characters on the command line.  See the shell manual page L<sh"
25735 "(1)> for details."
25736 msgstr ""
25737
25738 # type: textblock
25739 #: ../inspector/virt-inspector.pl:572
25740 msgid ""
25741 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25742 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25743 msgstr ""
25744
25745 # type: textblock
25746 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
25747 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25748 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25749 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-tar.pl:294
25750 #: ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561
25751 #: ../tools/virt-list-partitions.pl:267
25752 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25753 msgstr ""
25754
25755 # type: textblock
25756 #: ../inspector/virt-inspector.pl:590
25757 msgid "Matthew Booth L<mbooth@redhat.com>"
25758 msgstr ""
25759
25760 # type: textblock
25761 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
25762 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25763 msgid "Copyright (C) 2010 Red Hat Inc."
25764 msgstr ""
25765
25766 # type: textblock
25767 #: ../tools/virt-edit.pl:34
25768 msgid "virt-edit - Edit a file in a virtual machine"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #: ../tools/virt-edit.pl:38
25773 #, no-wrap
25774 msgid ""
25775 " virt-edit [--options] domname file\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: verbatim
25780 #: ../tools/virt-edit.pl:40
25781 #, no-wrap
25782 msgid ""
25783 " virt-edit [--options] disk.img [disk.img ...] file\n"
25784 "\n"
25785 msgstr ""
25786
25787 # type: verbatim
25788 #: ../tools/virt-edit.pl:42
25789 #, no-wrap
25790 msgid ""
25791 " virt-edit [domname|disk.img] file -e 'expr'\n"
25792 "\n"
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../tools/virt-edit.pl:46
25797 msgid ""
25798 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25799 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25800 "doing this, but doesn't catch all cases."
25801 msgstr ""
25802
25803 # type: textblock
25804 #: ../tools/virt-edit.pl:52
25805 msgid ""
25806 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25807 "the named virtual machine (or disk image)."
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../tools/virt-edit.pl:55
25812 msgid ""
25813 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25814 "you should look at the L<guestfish(1)> tool."
25815 msgstr ""
25816
25817 # type: textblock
25818 #: ../tools/virt-edit.pl:60
25819 msgid "Edit the named files interactively:"
25820 msgstr ""
25821
25822 # type: verbatim
25823 #: ../tools/virt-edit.pl:62
25824 #, no-wrap
25825 msgid ""
25826 " virt-edit mydomain /boot/grub/grub.conf\n"
25827 "\n"
25828 msgstr ""
25829
25830 # type: verbatim
25831 #: ../tools/virt-edit.pl:64
25832 #, no-wrap
25833 msgid ""
25834 " virt-edit mydomain /etc/passwd\n"
25835 "\n"
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../tools/virt-edit.pl:66
25840 msgid ""
25841 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25842 "below).  To change the init default level to 5:"
25843 msgstr ""
25844
25845 # type: verbatim
25846 #: ../tools/virt-edit.pl:70
25847 #, no-wrap
25848 msgid ""
25849 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25850 "\n"
25851 msgstr ""
25852
25853 # type: =item
25854 #: ../tools/virt-edit.pl:96
25855 msgid "B<--backup extension> | B<-b extension>"
25856 msgstr ""
25857
25858 # type: textblock
25859 #: ../tools/virt-edit.pl:98
25860 msgid ""
25861 "Create a backup of the original file I<in the guest disk image>.  The backup "
25862 "has the original filename with C<extension> added."
25863 msgstr ""
25864
25865 # type: textblock
25866 #: ../tools/virt-edit.pl:101
25867 msgid ""
25868 "Usually the first character of C<extension> would be a dot C<.> so you would "
25869 "write:"
25870 msgstr ""
25871
25872 # type: verbatim
25873 #: ../tools/virt-edit.pl:104
25874 #, no-wrap
25875 msgid ""
25876 " virt-edit -b .orig [etc]\n"
25877 "\n"
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../tools/virt-edit.pl:106
25882 msgid "By default, no backup file is made."
25883 msgstr ""
25884
25885 # type: textblock
25886 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
25887 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
25888 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:127
25889 #: ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
25890 msgid ""
25891 "If you specify guest block devices directly, then libvirt is not used at all."
25892 msgstr ""
25893
25894 # type: =item
25895 #: ../tools/virt-edit.pl:141
25896 msgid "B<--expr EXPR> | B<-e EXPR>"
25897 msgstr ""
25898
25899 # type: textblock
25900 #: ../tools/virt-edit.pl:143
25901 msgid ""
25902 "Instead of launching the external editor, non-interactively apply the Perl "
25903 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25904 "EDITING> below."
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../tools/virt-edit.pl:147
25909 msgid ""
25910 "Be careful to properly quote the expression to prevent it from being altered "
25911 "by the shell."
25912 msgstr ""
25913
25914 # type: =head1
25915 #: ../tools/virt-edit.pl:268
25916 msgid "NON-INTERACTIVE EDITING"
25917 msgstr ""
25918
25919 # type: textblock
25920 #: ../tools/virt-edit.pl:270
25921 msgid ""
25922 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25923 "administrator can interactively edit the file."
25924 msgstr ""
25925
25926 # type: textblock
25927 #: ../tools/virt-edit.pl:273
25928 msgid ""
25929 "There are two ways also to use C<virt-edit> from scripts in order to make "
25930 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25931 "like this, it's less error-prone to write scripts directly using the "
25932 "libguestfs API and Augeas for configuration file editing.)"
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-edit.pl:279
25937 msgid ""
25938 "The first method is to temporarily set C<$EDITOR> to any script or program "
25939 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25940 "update C<tmpfile> in place however it likes."
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-edit.pl:283
25945 msgid ""
25946 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25947 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25948 "instances of C<foo> with C<bar> in a file:"
25949 msgstr ""
25950
25951 # type: verbatim
25952 #: ../tools/virt-edit.pl:287
25953 #, no-wrap
25954 msgid ""
25955 " virt-edit domname filename -e 's/foo/bar/'\n"
25956 "\n"
25957 msgstr ""
25958
25959 # type: textblock
25960 #: ../tools/virt-edit.pl:289
25961 msgid ""
25962 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25963 "For example to delete root's password you could do:"
25964 msgstr ""
25965
25966 # type: verbatim
25967 #: ../tools/virt-edit.pl:292
25968 #, no-wrap
25969 msgid ""
25970 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25971 "\n"
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../tools/virt-edit.pl:294
25976 msgid ""
25977 "What really happens is that the snippet is evaluated as a Perl expression "
25978 "for each line of the file.  The line, including the final C<\\n>, is passed "
25979 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25980 msgstr ""
25981
25982 # type: textblock
25983 #: ../tools/virt-edit.pl:299
25984 msgid ""
25985 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25986 "C<apache> user account from the password file you can do:"
25987 msgstr ""
25988
25989 # type: verbatim
25990 #: ../tools/virt-edit.pl:302
25991 #, no-wrap
25992 msgid ""
25993 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25994 "\n"
25995 msgstr ""
25996
25997 # type: textblock
25998 #: ../tools/virt-edit.pl:304
25999 msgid ""
26000 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26001 "the end of the file is rather difficult this way since there is no concept "
26002 "of \"last line of the file\" - your expression just doesn't get called "
26003 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26004 "want to do this."
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../tools/virt-edit.pl:310
26009 msgid ""
26010 "The variable C<$lineno> contains the current line number.  As is "
26011 "traditional, the first line in the file is number C<1>."
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../tools/virt-edit.pl:313
26016 msgid ""
26017 "The return value from the expression is ignored, but the expression may call "
26018 "C<die> in order to abort the whole program, leaving the original file "
26019 "untouched."
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../tools/virt-edit.pl:317
26024 msgid ""
26025 "Remember when matching the end of a line that C<$_> may contain the final C<"
26026 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26027 "newline then neither of these.  Thus to match or substitute some text at the "
26028 "end of a line, use this regular expression:"
26029 msgstr ""
26030
26031 # type: verbatim
26032 #: ../tools/virt-edit.pl:322
26033 #, no-wrap
26034 msgid ""
26035 " /some text(\\r?\\n)?$/\n"
26036 "\n"
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../tools/virt-edit.pl:324
26041 msgid ""
26042 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26043 "$_> itself (since that would remove all newlines from the file):"
26044 msgstr ""
26045
26046 # type: verbatim
26047 #: ../tools/virt-edit.pl:328
26048 #, no-wrap
26049 msgid ""
26050 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26051 "\n"
26052 msgstr ""
26053
26054 # type: =item
26055 #: ../tools/virt-edit.pl:334
26056 msgid "C<EDITOR>"
26057 msgstr ""
26058
26059 # type: textblock
26060 #: ../tools/virt-edit.pl:336
26061 msgid ""
26062 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26063 "\"emacs -nw\">"
26064 msgstr ""
26065
26066 # type: textblock
26067 #: ../tools/virt-edit.pl:339
26068 msgid "If not set, C<vi> is used."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-edit.pl:352
26073 msgid ""
26074 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26075 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26076 "L<perlre(1)>."
26077 msgstr ""
26078
26079 # type: =head1
26080 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26081 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
26082 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
26083 #: ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277
26084 #: ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
26085 msgid "AUTHOR"
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
26090 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
26091 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26092 msgstr ""
26093
26094 # type: textblock
26095 #: ../tools/virt-win-reg.pl:37
26096 msgid ""
26097 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26098 msgstr ""
26099
26100 # type: verbatim
26101 #: ../tools/virt-win-reg.pl:41
26102 #, no-wrap
26103 msgid ""
26104 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26105 "\n"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #: ../tools/virt-win-reg.pl:43
26110 #, no-wrap
26111 msgid ""
26112 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26113 "\n"
26114 msgstr ""
26115
26116 # type: verbatim
26117 #: ../tools/virt-win-reg.pl:45
26118 #, no-wrap
26119 msgid ""
26120 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26121 "\n"
26122 msgstr ""
26123
26124 # type: verbatim
26125 #: ../tools/virt-win-reg.pl:47
26126 #, no-wrap
26127 msgid ""
26128 " virt-win-reg --merge domname [input.reg ...]\n"
26129 "\n"
26130 msgstr ""
26131
26132 # type: verbatim
26133 #: ../tools/virt-win-reg.pl:49
26134 #, no-wrap
26135 msgid ""
26136 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26137 "\n"
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../tools/virt-win-reg.pl:53
26142 msgid ""
26143 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26144 "virtual machines.  If you do this, you I<will> get irreversible disk "
26145 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26146 "but doesn't catch all cases."
26147 msgstr ""
26148
26149 # type: textblock
26150 #: ../tools/virt-win-reg.pl:58
26151 msgid ""
26152 "Modifying the Windows Registry is an inherently risky operation.  The format "
26153 "is deliberately obscure and undocumented, and Registry changes can leave the "
26154 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26155 "you have a reliable backup first."
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-win-reg.pl:65
26160 msgid ""
26161 "This program can export and merge Windows Registry entries from a Windows "
26162 "guest."
26163 msgstr ""
26164
26165 # type: textblock
26166 #: ../tools/virt-win-reg.pl:68
26167 msgid ""
26168 "The first parameter is the libvirt guest name or the raw disk image of a "
26169 "Windows guest."
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-win-reg.pl:71
26174 msgid ""
26175 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26176 "exported (recursively).  For example:"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #: ../tools/virt-win-reg.pl:74
26181 #, no-wrap
26182 msgid ""
26183 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26184 "\n"
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-win-reg.pl:76
26189 msgid ""
26190 "You can also display single values from within registry keys, for example:"
26191 msgstr ""
26192
26193 # type: verbatim
26194 #: ../tools/virt-win-reg.pl:79
26195 #, no-wrap
26196 msgid ""
26197 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26198 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26199 " Windows 7 Enterprise\n"
26200 "\n"
26201 msgstr ""
26202
26203 # type: textblock
26204 #: ../tools/virt-win-reg.pl:83
26205 msgid ""
26206 "With C<--merge>, you can merge a textual regedit file into the Windows "
26207 "Registry:"
26208 msgstr ""
26209
26210 # type: verbatim
26211 #: ../tools/virt-win-reg.pl:86
26212 #, no-wrap
26213 msgid ""
26214 " $ virt-win-reg --merge Windows7 changes.reg\n"
26215 "\n"
26216 msgstr ""
26217
26218 # type: =head2
26219 #: ../tools/virt-win-reg.pl:88
26220 msgid "SUPPORTED SYSTEMS"
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-win-reg.pl:90
26225 msgid ""
26226 "The program currently supports Windows NT-derived guests starting with "
26227 "Windows XP through to at least Windows 7."
26228 msgstr ""
26229
26230 # type: textblock
26231 #: ../tools/virt-win-reg.pl:93
26232 msgid ""
26233 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26234 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26235 "and C<HKEY_USERS\\.DEFAULT>."
26236 msgstr ""
26237
26238 # type: textblock
26239 #: ../tools/virt-win-reg.pl:97
26240 msgid ""
26241 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26242 "C<HKEY_USERS>."
26243 msgstr ""
26244
26245 # type: textblock
26246 #: ../tools/virt-win-reg.pl:100
26247 msgid ""
26248 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26249 "time."
26250 msgstr ""
26251
26252 # type: =head2
26253 #: ../tools/virt-win-reg.pl:103
26254 msgid "NOTE"
26255 msgstr ""
26256
26257 # type: textblock
26258 #: ../tools/virt-win-reg.pl:105
26259 msgid ""
26260 "This program is only meant for simple access to the registry.  If you want "
26261 "to do complicated things with the registry, we suggest you download the "
26262 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26263 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26264 "L<hivexregedit(1)>."
26265 msgstr ""
26266
26267 # type: =head2
26268 #: ../tools/virt-win-reg.pl:111
26269 msgid "ENCODING"
26270 msgstr ""
26271
26272 # type: textblock
26273 #: ../tools/virt-win-reg.pl:113
26274 msgid ""
26275 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26276 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26277 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26278 "Windows-style line endings, you may need to reencode the whole file before "
26279 "or after processing."
26280 msgstr ""
26281
26282 # type: textblock
26283 #: ../tools/virt-win-reg.pl:119
26284 msgid ""
26285 "To reencode a file from Windows format to Linux (before processing it with "
26286 "the C<--merge> option), you would do something like this:"
26287 msgstr ""
26288
26289 # type: verbatim
26290 #: ../tools/virt-win-reg.pl:122
26291 #, no-wrap
26292 msgid ""
26293 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26294 "\n"
26295 msgstr ""
26296
26297 # type: textblock
26298 #: ../tools/virt-win-reg.pl:124
26299 msgid ""
26300 "To go in the opposite direction, after exporting and before sending the file "
26301 "to a Windows user, do something like this:"
26302 msgstr ""
26303
26304 # type: verbatim
26305 #: ../tools/virt-win-reg.pl:127
26306 #, no-wrap
26307 msgid ""
26308 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26309 "\n"
26310 msgstr ""
26311
26312 # type: textblock
26313 #: ../tools/virt-win-reg.pl:129
26314 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-win-reg.pl:131
26319 msgid ""
26320 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26321 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26322 "style (CRLF) line endings, like this:"
26323 msgstr ""
26324
26325 # type: verbatim
26326 #: ../tools/virt-win-reg.pl:135
26327 #, no-wrap
26328 msgid ""
26329 " $ file software.reg\n"
26330 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26331 " with CRLF line terminators\n"
26332 "\n"
26333 msgstr ""
26334
26335 # type: textblock
26336 #: ../tools/virt-win-reg.pl:139
26337 msgid "This file would need conversion before you could C<--merge> it."
26338 msgstr ""
26339
26340 # type: textblock
26341 #: ../tools/virt-win-reg.pl:143
26342 msgid ""
26343 "Be careful when passing parameters containing C<\\> (backslash) in the "
26344 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26345 "(but not both) to protect them from the shell."
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-win-reg.pl:147
26350 msgid "Paths and value names are case-insensitive."
26351 msgstr ""
26352
26353 # type: =head2
26354 #: ../tools/virt-win-reg.pl:149
26355 msgid "CurrentControlSet etc."
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-win-reg.pl:151
26360 msgid ""
26361 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26362 "Registry at the level of the hive file, and therefore you cannot modify "
26363 "these."
26364 msgstr ""
26365
26366 # type: textblock
26367 #: ../tools/virt-win-reg.pl:155
26368 msgid ""
26369 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26370 "circumstances it might refer to another control set.  The way to find out is "
26371 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26372 msgstr ""
26373
26374 # type: verbatim
26375 #: ../tools/virt-win-reg.pl:159
26376 #, no-wrap
26377 msgid ""
26378 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26379 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26380 " \"Current\"=dword:00000001\n"
26381 " \"Default\"=dword:00000001\n"
26382 " \"Failed\"=dword:00000000\n"
26383 " \"LastKnownGood\"=dword:00000002\n"
26384 "\n"
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../tools/virt-win-reg.pl:166
26389 msgid "\"Current\" is the one which Windows will choose when it boots."
26390 msgstr ""
26391
26392 # type: textblock
26393 #: ../tools/virt-win-reg.pl:168
26394 msgid ""
26395 "Similarly, other C<Current...> keys in the path may need to be replaced."
26396 msgstr ""
26397
26398 # type: =item
26399 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26400 msgid "B<--debug>"
26401 msgstr ""
26402
26403 # type: textblock
26404 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
26405 msgid "Enable debugging messages."
26406 msgstr ""
26407
26408 # type: =item
26409 #: ../tools/virt-win-reg.pl:232
26410 msgid "B<--merge>"
26411 msgstr ""
26412
26413 # type: textblock
26414 #: ../tools/virt-win-reg.pl:234
26415 msgid ""
26416 "In merge mode, this merges a textual regedit file into the Windows Registry "
26417 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26418 "displays or exports Registry entries instead."
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-win-reg.pl:238
26423 msgid ""
26424 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26425 "result in disk corruption.  However exporting (without this flag)  is always "
26426 "safe."
26427 msgstr ""
26428
26429 # type: =item
26430 #: ../tools/virt-win-reg.pl:246
26431 msgid "B<--encoding> UTF-16LE|ASCII"
26432 msgstr ""
26433
26434 # type: textblock
26435 #: ../tools/virt-win-reg.pl:248
26436 msgid ""
26437 "When merging (only), you may need to specify the encoding for strings to be "
26438 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26439 "(3)/ENCODING STRINGS>."
26440 msgstr ""
26441
26442 # type: textblock
26443 #: ../tools/virt-win-reg.pl:252
26444 msgid ""
26445 "The default is to use UTF-16LE, which should work with recent versions of "
26446 "Windows."
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../tools/virt-win-reg.pl:486
26451 msgid ""
26452 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26453 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26454 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26455 msgstr ""
26456
26457 # type: textblock
26458 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26459 msgid ""
26460 "When reporting bugs, please enable debugging and capture the I<complete> "
26461 "output:"
26462 msgstr ""
26463
26464 # type: verbatim
26465 #: ../tools/virt-win-reg.pl:504
26466 #, no-wrap
26467 msgid ""
26468 " export LIBGUESTFS_DEBUG=1\n"
26469 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26470 "\n"
26471 msgstr ""
26472
26473 # type: textblock
26474 #: ../tools/virt-win-reg.pl:507
26475 msgid ""
26476 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26477 "redhat.com/>"
26478 msgstr ""
26479
26480 # type: textblock
26481 #: ../tools/virt-df.pl:36
26482 msgid "virt-df - Display free space on virtual filesystems"
26483 msgstr ""
26484
26485 # type: verbatim
26486 #: ../tools/virt-df.pl:40
26487 #, no-wrap
26488 msgid ""
26489 " virt-df [--options]\n"
26490 "\n"
26491 msgstr ""
26492
26493 # type: verbatim
26494 #: ../tools/virt-df.pl:42
26495 #, no-wrap
26496 msgid ""
26497 " virt-df [--options] domname\n"
26498 "\n"
26499 msgstr ""
26500
26501 # type: verbatim
26502 #: ../tools/virt-df.pl:44
26503 #, no-wrap
26504 msgid ""
26505 " virt-df [--options] disk.img [disk.img ...]\n"
26506 "\n"
26507 msgstr ""
26508
26509 # type: textblock
26510 #: ../tools/virt-df.pl:48
26511 msgid ""
26512 "C<virt-df> is a command line tool to display free space on virtual machine "
26513 "filesystems.  Unlike other tools, it doesn't just display the amount of "
26514 "space allocated to a virtual machine, but can look inside the virtual "
26515 "machine to see how much space is really being used."
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-df.pl:53
26520 msgid ""
26521 "It is like the L<df(1)> command, but for virtual machines, except that it "
26522 "also works for Windows virtual machines."
26523 msgstr ""
26524
26525 # type: textblock
26526 #: ../tools/virt-df.pl:56
26527 msgid ""
26528 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
26529 "of all active and inactive guests, and performs a C<df>-type operation on "
26530 "each one in turn, printing out the results."
26531 msgstr ""
26532
26533 # type: textblock
26534 #: ../tools/virt-df.pl:60
26535 msgid ""
26536 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
26537 "either the single named libvirt domain, or on the disk image(s) listed on "
26538 "the command line (which must all belong to a single VM).  In this mode (with "
26539 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
26540 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
26541 msgstr ""
26542
26543 # type: textblock
26544 #: ../tools/virt-df.pl:67
26545 msgid ""
26546 "Use the C<--csv> option to get a format which can be easily parsed by other "
26547 "programs.  Other options are mostly similar to standard C<df> options.  See "
26548 "below for the complete list."
26549 msgstr ""
26550
26551 # type: =item
26552 #: ../tools/virt-df.pl:107
26553 msgid "B<--csv>"
26554 msgstr ""
26555
26556 # type: textblock
26557 #: ../tools/virt-df.pl:109
26558 msgid ""
26559 "Write out the results in CSV format (comma-separated values).  This format "
26560 "can be imported easily into databases and spreadsheets, but read L</NOTE "
26561 "ABOUT CSV FORMAT> below."
26562 msgstr ""
26563
26564 # type: =item
26565 #: ../tools/virt-df.pl:134
26566 msgid "B<--human-readable> | B<-h>"
26567 msgstr ""
26568
26569 # type: textblock
26570 #: ../tools/virt-df.pl:136
26571 msgid "Print sizes in human-readable format."
26572 msgstr ""
26573
26574 # type: textblock
26575 #: ../tools/virt-df.pl:138
26576 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
26577 msgstr ""
26578
26579 # type: =item
26580 #: ../tools/virt-df.pl:144
26581 msgid "B<--inodes> | B<-i>"
26582 msgstr ""
26583
26584 # type: textblock
26585 #: ../tools/virt-df.pl:146
26586 msgid "Print inodes instead of blocks."
26587 msgstr ""
26588
26589 # type: =item
26590 #: ../tools/virt-df.pl:152
26591 msgid "B<--one-per-guest>"
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-df.pl:154
26596 msgid ""
26597 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
26598 "disks from several guests to a single libguestfs appliance."
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-df.pl:157
26603 msgid "You might use this option in the following circumstances:"
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-df.pl:163
26608 msgid ""
26609 "If you think an untrusted guest might actively try to exploit the libguestfs "
26610 "appliance kernel, then this prevents one guest from interfering with the "
26611 "stats printed for another guest."
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-df.pl:169
26616 msgid ""
26617 "If the kernel has a bug which stops it from accessing a filesystem in one "
26618 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
26619 "and report stats for further guests."
26620 msgstr ""
26621
26622 # type: =item
26623 #: ../tools/virt-df.pl:180
26624 msgid "B<--uuid>"
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-df.pl:182
26629 msgid ""
26630 "Print UUIDs instead of names.  This is useful for following a guest even "
26631 "when the guest is migrated or renamed, or when two guests happen to have the "
26632 "same name."
26633 msgstr ""
26634
26635 # type: textblock
26636 #: ../tools/virt-df.pl:186
26637 msgid ""
26638 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
26639 "images, we still print the disk image name even when this option is "
26640 "specified."
26641 msgstr ""
26642
26643 # type: =head1
26644 #: ../tools/virt-df.pl:609
26645 msgid "NOTE ABOUT CSV FORMAT"
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-df.pl:611
26650 msgid ""
26651 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
26652 "should be easy to parse, but it is definitely not easy to parse."
26653 msgstr ""
26654
26655 # type: textblock
26656 #: ../tools/virt-df.pl:614
26657 msgid ""
26658 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26659 "reliably.  This example has two columns:"
26660 msgstr ""
26661
26662 # type: verbatim
26663 #: ../tools/virt-df.pl:617
26664 #, no-wrap
26665 msgid ""
26666 " \"foo,bar\",baz\n"
26667 "\n"
26668 msgstr ""
26669
26670 # type: textblock
26671 #: ../tools/virt-df.pl:619
26672 msgid ""
26673 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26674 "reliably.  This example has one row:"
26675 msgstr ""
26676
26677 # type: verbatim
26678 #: ../tools/virt-df.pl:622
26679 #, no-wrap
26680 msgid ""
26681 " \"foo\n"
26682 " bar\",baz\n"
26683 "\n"
26684 msgstr ""
26685
26686 # type: textblock
26687 #: ../tools/virt-df.pl:625
26688 msgid ""
26689 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26690 "packaged in major Linux distributions)."
26691 msgstr ""
26692
26693 # type: textblock
26694 #: ../tools/virt-df.pl:628
26695 msgid ""
26696 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26697 "or Python's built-in csv library)."
26698 msgstr ""
26699
26700 # type: textblock
26701 #: ../tools/virt-df.pl:631
26702 msgid "Most spreadsheets and databases can import CSV directly."
26703 msgstr ""
26704
26705 # type: textblock
26706 #: ../tools/virt-df.pl:642
26707 msgid ""
26708 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26709 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26710 msgstr ""
26711
26712 # type: textblock
26713 #: ../tools/virt-ls.pl:34
26714 msgid "virt-ls - List files in a virtual machine"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #: ../tools/virt-ls.pl:38
26719 #, no-wrap
26720 msgid ""
26721 " virt-ls [--options] domname directory\n"
26722 "\n"
26723 msgstr ""
26724
26725 # type: verbatim
26726 #: ../tools/virt-ls.pl:40
26727 #, no-wrap
26728 msgid ""
26729 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26730 "\n"
26731 msgstr ""
26732
26733 # type: textblock
26734 #: ../tools/virt-ls.pl:44
26735 msgid ""
26736 "C<virt-ls> is a command line tool to list the names of files in a directory "
26737 "inside a virtual machine or disk image."
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-ls.pl:47
26742 msgid ""
26743 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26744 "For more complex cases you should look at the L<guestfish(1)> tool."
26745 msgstr ""
26746
26747 # type: textblock
26748 #: ../tools/virt-ls.pl:51
26749 msgid ""
26750 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26751 "simple listing is like the ordinary L<ls(1)> command:"
26752 msgstr ""
26753
26754 # type: verbatim
26755 #: ../tools/virt-ls.pl:54
26756 #, no-wrap
26757 msgid ""
26758 " $ virt-ls myguest /\n"
26759 " bin\n"
26760 " boot\n"
26761 " [etc.]\n"
26762 "\n"
26763 msgstr ""
26764
26765 # type: textblock
26766 #: ../tools/virt-ls.pl:59
26767 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26768 msgstr ""
26769
26770 # type: verbatim
26771 #: ../tools/virt-ls.pl:61
26772 #, no-wrap
26773 msgid ""
26774 " $ virt-ls -l myguest /\n"
26775 " total 204\n"
26776 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26777 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26778 " [etc.]\n"
26779 "\n"
26780 msgstr ""
26781
26782 # type: textblock
26783 #: ../tools/virt-ls.pl:67
26784 msgid ""
26785 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26786 "and directories recursively:"
26787 msgstr ""
26788
26789 # type: verbatim
26790 #: ../tools/virt-ls.pl:70
26791 #, no-wrap
26792 msgid ""
26793 " $ virt-ls -R myguest /tmp\n"
26794 " foo\n"
26795 " foo/bar\n"
26796 " [etc.]\n"
26797 "\n"
26798 msgstr ""
26799
26800 # type: textblock
26801 #: ../tools/virt-ls.pl:75
26802 msgid ""
26803 "You I<cannot> combine these options.  To do more complicated things, use "
26804 "L<guestfish(1)>."
26805 msgstr ""
26806
26807 # type: =item
26808 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26809 #: ../tools/virt-list-partitions.pl:112
26810 msgid "B<-l> | B<--long>"
26811 msgstr ""
26812
26813 # type: =item
26814 #: ../tools/virt-ls.pl:133
26815 msgid "B<-R> | B<--recursive>"
26816 msgstr ""
26817
26818 # type: textblock
26819 #: ../tools/virt-ls.pl:135
26820 msgid ""
26821 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26822 "simple, flat list of the files in the named directory."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-ls.pl:138
26827 msgid ""
26828 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26829 "like the plain C<ls -l> command)."
26830 msgstr ""
26831
26832 # type: textblock
26833 #: ../tools/virt-ls.pl:141
26834 msgid ""
26835 "C<virt-ls -R> produces a recursive list of files starting at the named "
26836 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26837 "details."
26838 msgstr ""
26839
26840 # type: textblock
26841 #: ../tools/virt-ls.pl:145
26842 msgid "You cannot combine these options."
26843 msgstr ""
26844
26845 # type: textblock
26846 #: ../tools/virt-ls.pl:234
26847 msgid ""
26848 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26849 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26850 "org/>."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26855 #: ../tools/virt-tar.pl:298
26856 msgid "Copyright (C) 2009 Red Hat Inc."
26857 msgstr ""
26858
26859 # type: textblock
26860 #: ../tools/virt-resize.pl:42
26861 msgid "virt-resize - Resize a virtual machine disk"
26862 msgstr ""
26863
26864 # type: verbatim
26865 #: ../tools/virt-resize.pl:46
26866 #, no-wrap
26867 msgid ""
26868 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26869 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26870 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26871 "\n"
26872 msgstr ""
26873
26874 # type: textblock
26875 #: ../tools/virt-resize.pl:52
26876 msgid ""
26877 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26878 "larger or smaller overall, and resizing or deleting any partitions contained "
26879 "within."
26880 msgstr ""
26881
26882 # type: textblock
26883 #: ../tools/virt-resize.pl:56
26884 msgid ""
26885 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26886 "not> be used on live virtual machines - for consistent results, shut the "
26887 "virtual machine down before resizing it."
26888 msgstr ""
26889
26890 # type: textblock
26891 #: ../tools/virt-resize.pl:60
26892 msgid ""
26893 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
26894 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
26895 "read those manual pages first."
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-resize.pl:68
26900 msgid ""
26901 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26902 "fill the extra 5GB of space."
26903 msgstr ""
26904
26905 # type: verbatim
26906 #: ../tools/virt-resize.pl:71
26907 #, no-wrap
26908 msgid ""
26909 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26910 " virt-list-partitions -lht olddisk\n"
26911 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26912 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26913 "\n"
26914 msgstr ""
26915
26916 # type: textblock
26917 #: ../tools/virt-resize.pl:76
26918 msgid ""
26919 "As above, but make the /boot partition 200MB bigger, while giving the "
26920 "remaining space to /dev/sda2:"
26921 msgstr ""
26922
26923 # type: verbatim
26924 #: ../tools/virt-resize.pl:79
26925 #, no-wrap
26926 msgid ""
26927 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26928 "\n"
26929 msgstr ""
26930
26931 # type: textblock
26932 #: ../tools/virt-resize.pl:81
26933 msgid "As above, but the output format will be uncompressed qcow2:"
26934 msgstr ""
26935
26936 # type: verbatim
26937 #: ../tools/virt-resize.pl:83
26938 #, no-wrap
26939 msgid ""
26940 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26941 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26942 "\n"
26943 msgstr ""
26944
26945 # type: =head1
26946 #: ../tools/virt-resize.pl:86
26947 msgid "DETAILED USAGE"
26948 msgstr ""
26949
26950 # type: =head2
26951 #: ../tools/virt-resize.pl:88
26952 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26953 msgstr ""
26954
26955 # type: =item
26956 #: ../tools/virt-resize.pl:92
26957 msgid "1. Shut down the virtual machine"
26958 msgstr ""
26959
26960 # type: =item
26961 #: ../tools/virt-resize.pl:94
26962 msgid "2. Locate input disk image"
26963 msgstr ""
26964
26965 # type: textblock
26966 #: ../tools/virt-resize.pl:96
26967 msgid ""
26968 "Locate the input disk image (ie. the file or device on the host containing "
26969 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26970 "dumpxml> like this to find the disk image name:"
26971 msgstr ""
26972
26973 # type: verbatim
26974 #: ../tools/virt-resize.pl:100
26975 #, no-wrap
26976 msgid ""
26977 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26978 " Found 1 nodes:\n"
26979 " -- NODE --\n"
26980 " <source dev=\"/dev/vg/lv_guest\" />\n"
26981 "\n"
26982 msgstr ""
26983
26984 # type: =item
26985 #: ../tools/virt-resize.pl:105
26986 msgid "3. Look at current sizing"
26987 msgstr ""
26988
26989 # type: textblock
26990 #: ../tools/virt-resize.pl:107
26991 msgid ""
26992 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26993 msgstr ""
26994
26995 # type: verbatim
26996 #: ../tools/virt-resize.pl:110
26997 #, no-wrap
26998 msgid ""
26999 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
27000 " /dev/sda1 ext3 101.9M\n"
27001 " /dev/sda2 pv 7.9G\n"
27002 " /dev/sda device 8.0G\n"
27003 "\n"
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-resize.pl:115
27008 msgid ""
27009 "(This example is a virtual machine with an 8 GB disk which we would like to "
27010 "expand up to 10 GB)."
27011 msgstr ""
27012
27013 # type: =item
27014 #: ../tools/virt-resize.pl:118
27015 msgid "4. Create output disk"
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-resize.pl:120
27020 msgid ""
27021 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27022 "to store the resized output disk."
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-resize.pl:123
27027 msgid ""
27028 "To store the resized disk image in a file, create a file of a suitable size:"
27029 msgstr ""
27030
27031 # type: verbatim
27032 #: ../tools/virt-resize.pl:126
27033 #, no-wrap
27034 msgid ""
27035 " # rm -f outdisk\n"
27036 " # truncate -s 10G outdisk\n"
27037 "\n"
27038 msgstr ""
27039
27040 # type: textblock
27041 #: ../tools/virt-resize.pl:129
27042 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27043 msgstr ""
27044
27045 # type: verbatim
27046 #: ../tools/virt-resize.pl:131
27047 #, no-wrap
27048 msgid ""
27049 " # lvcreate -L 10G -n lv_name vg_name\n"
27050 "\n"
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-resize.pl:133
27055 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27056 msgstr ""
27057
27058 # type: verbatim
27059 #: ../tools/virt-resize.pl:135
27060 #, no-wrap
27061 msgid ""
27062 " # virsh pool-list\n"
27063 " # virsh vol-create-as poolname newvol 10G\n"
27064 "\n"
27065 msgstr ""
27066
27067 # type: =item
27068 #: ../tools/virt-resize.pl:138
27069 msgid "5. Resize"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-resize.pl:140
27074 msgid ""
27075 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27076 "file) and the output disk.  The output disk is the one created in the "
27077 "previous step."
27078 msgstr ""
27079
27080 # type: verbatim
27081 #: ../tools/virt-resize.pl:144
27082 #, no-wrap
27083 msgid ""
27084 " # virt-resize indisk outdisk\n"
27085 "\n"
27086 msgstr ""
27087
27088 # type: textblock
27089 #: ../tools/virt-resize.pl:146
27090 msgid ""
27091 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27092 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27093 "larger, then an extra, empty partition is created at the end of the disk "
27094 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27095 "error."
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-resize.pl:152
27100 msgid ""
27101 "More realistically you'd want to expand existing partitions in the disk "
27102 "image by passing extra options (for the full list see the L</OPTIONS> "
27103 "section below)."
27104 msgstr ""
27105
27106 # type: textblock
27107 #: ../tools/virt-resize.pl:156
27108 msgid ""
27109 "L</--expand> is the most useful option.  It expands the named partition "
27110 "within the disk to fill any extra space:"
27111 msgstr ""
27112
27113 # type: verbatim
27114 #: ../tools/virt-resize.pl:159
27115 #, no-wrap
27116 msgid ""
27117 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:161
27123 msgid ""
27124 "(In this case, an extra partition is I<not> created at the end of the disk, "
27125 "because there will be no unused space)."
27126 msgstr ""
27127
27128 # type: textblock
27129 #: ../tools/virt-resize.pl:164
27130 msgid ""
27131 "L</--resize> is the other commonly used option.  The following would "
27132 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27133 "rest of the available space:"
27134 msgstr ""
27135
27136 # type: verbatim
27137 #: ../tools/virt-resize.pl:168
27138 #, no-wrap
27139 msgid ""
27140 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27141 "     indisk outdisk\n"
27142 "\n"
27143 msgstr ""
27144
27145 # type: textblock
27146 #: ../tools/virt-resize.pl:171
27147 msgid ""
27148 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27149 "if virt-resize knows how, it will resize the contents, the equivalent of "
27150 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27151 ">.  However virt-resize does not know how to resize some filesystems, so you "
27152 "would have to online resize them after booting the guest.  And virt-resize "
27153 "also does not resize anything inside an LVM PV, it just resizes the PV "
27154 "itself and leaves the user to resize any LVs inside that PV as desired."
27155 msgstr ""
27156
27157 # type: textblock
27158 #: ../tools/virt-resize.pl:180
27159 msgid "Other options are covered below."
27160 msgstr ""
27161
27162 # type: =item
27163 #: ../tools/virt-resize.pl:182
27164 msgid "6. Test"
27165 msgstr ""
27166
27167 # type: textblock
27168 #: ../tools/virt-resize.pl:184
27169 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27170 msgstr ""
27171
27172 # type: textblock
27173 #: ../tools/virt-resize.pl:186
27174 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27175 msgstr ""
27176
27177 # type: verbatim
27178 #: ../tools/virt-resize.pl:188
27179 #, no-wrap
27180 msgid ""
27181 " # virsh edit guestname\n"
27182 "\n"
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-resize.pl:190
27187 msgid ""
27188 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27189 "html#elementsDisks>"
27190 msgstr ""
27191
27192 # type: textblock
27193 #: ../tools/virt-resize.pl:193
27194 msgid "Then start up the domain with the new, resized disk:"
27195 msgstr ""
27196
27197 # type: verbatim
27198 #: ../tools/virt-resize.pl:195
27199 #, no-wrap
27200 msgid ""
27201 " # virsh start guestname\n"
27202 "\n"
27203 msgstr ""
27204
27205 # type: textblock
27206 #: ../tools/virt-resize.pl:197
27207 msgid ""
27208 "and check that it still works.  See also the L</NOTES> section below for "
27209 "additional information."
27210 msgstr ""
27211
27212 # type: =item
27213 #: ../tools/virt-resize.pl:200
27214 msgid "7. Resize LVs etc inside the guest"
27215 msgstr ""
27216
27217 # type: textblock
27218 #: ../tools/virt-resize.pl:202
27219 msgid "(This can also be done offline using L<guestfish(1)>)"
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-resize.pl:204
27224 msgid ""
27225 "Once the guest has booted you should see the new space available, at least "
27226 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27227 "may need to resize LVs inside PVs, and also resize filesystem types that "
27228 "virt-resize does not know how to expand."
27229 msgstr ""
27230
27231 # type: =head2
27232 #: ../tools/virt-resize.pl:211
27233 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-resize.pl:213
27238 msgid ""
27239 "Shrinking is somewhat more complex than expanding, and only an overview is "
27240 "given here."
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-resize.pl:216
27245 msgid ""
27246 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27247 "filesystems).  The user has to shrink content before passing the disk image "
27248 "to virt-resize, and virt-resize will check that the content has been shrunk "
27249 "properly."
27250 msgstr ""
27251
27252 # type: textblock
27253 #: ../tools/virt-resize.pl:221
27254 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27255 msgstr ""
27256
27257 # type: textblock
27258 #: ../tools/virt-resize.pl:223
27259 msgid ""
27260 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27261 "steps 3 and 4 above to allocate a new disk image."
27262 msgstr ""
27263
27264 # type: textblock
27265 #: ../tools/virt-resize.pl:226
27266 msgid ""
27267 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27268 msgstr ""
27269
27270 # type: =head2
27271 #: ../tools/virt-resize.pl:229
27272 msgid "IGNORING OR DELETING PARTITIONS"
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-resize.pl:231
27277 msgid ""
27278 "virt-resize also gives a convenient way to ignore or delete partitions when "
27279 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27280 "up the copy where you don't care about the existing contents of a "
27281 "partition.  Deleting a partition removes it completely, but note that it "
27282 "also renumbers any partitions after the one which is deleted, which can "
27283 "leave some guests unbootable."
27284 msgstr ""
27285
27286 # type: =head2
27287 #: ../tools/virt-resize.pl:238
27288 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27289 msgstr ""
27290
27291 # type: textblock
27292 #: ../tools/virt-resize.pl:240
27293 msgid ""
27294 "If the input disk is in qcow2 format, then you may prefer that the output is "
27295 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27296 "the fly.  The output format is simply determined by the format of the empty "
27297 "output container that you provide.  Thus to create qcow2 output, use:"
27298 msgstr ""
27299
27300 # type: verbatim
27301 #: ../tools/virt-resize.pl:246
27302 #, no-wrap
27303 msgid ""
27304 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27305 "\n"
27306 msgstr ""
27307
27308 # type: textblock
27309 #: ../tools/virt-resize.pl:248
27310 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27311 msgstr ""
27312
27313 # type: textblock
27314 #: ../tools/virt-resize.pl:250
27315 msgid "Similarly, to get non-sparse raw output use:"
27316 msgstr ""
27317
27318 # type: verbatim
27319 #: ../tools/virt-resize.pl:252
27320 #, no-wrap
27321 msgid ""
27322 " fallocate -l size outdisk\n"
27323 "\n"
27324 msgstr ""
27325
27326 # type: textblock
27327 #: ../tools/virt-resize.pl:254
27328 msgid ""
27329 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27330 "dev/zero of=outdisk bs=1M count=..>)"
27331 msgstr ""
27332
27333 # type: textblock
27334 #: ../tools/virt-resize.pl:267
27335 msgid "Display help."
27336 msgstr ""
27337
27338 # type: =item
27339 #: ../tools/virt-resize.pl:281
27340 msgid "B<--resize part=size>"
27341 msgstr ""
27342
27343 # type: textblock
27344 #: ../tools/virt-resize.pl:283
27345 msgid ""
27346 "Resize the named partition (expanding or shrinking it) so that it has the "
27347 "given size."
27348 msgstr ""
27349
27350 # type: textblock
27351 #: ../tools/virt-resize.pl:286
27352 msgid ""
27353 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27354 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27355 "Exabytes; or as a percentage of the current size; or as a relative number or "
27356 "percentage.  For example:"
27357 msgstr ""
27358
27359 # type: verbatim
27360 #: ../tools/virt-resize.pl:291
27361 #, no-wrap
27362 msgid ""
27363 " --resize /dev/sda2=10G\n"
27364 "\n"
27365 msgstr ""
27366
27367 # type: verbatim
27368 #: ../tools/virt-resize.pl:293
27369 #, no-wrap
27370 msgid ""
27371 " --resize /dev/sda4=90%\n"
27372 "\n"
27373 msgstr ""
27374
27375 # type: verbatim
27376 #: ../tools/virt-resize.pl:295
27377 #, no-wrap
27378 msgid ""
27379 " --resize /dev/sda2=+1G\n"
27380 "\n"
27381 msgstr ""
27382
27383 # type: verbatim
27384 #: ../tools/virt-resize.pl:297
27385 #, no-wrap
27386 msgid ""
27387 " --resize /dev/sda2=-200M\n"
27388 "\n"
27389 msgstr ""
27390
27391 # type: verbatim
27392 #: ../tools/virt-resize.pl:299
27393 #, no-wrap
27394 msgid ""
27395 " --resize /dev/sda1=+128K\n"
27396 "\n"
27397 msgstr ""
27398
27399 # type: verbatim
27400 #: ../tools/virt-resize.pl:301
27401 #, no-wrap
27402 msgid ""
27403 " --resize /dev/sda1=+10%\n"
27404 "\n"
27405 msgstr ""
27406
27407 # type: verbatim
27408 #: ../tools/virt-resize.pl:303
27409 #, no-wrap
27410 msgid ""
27411 " --resize /dev/sda1=-10%\n"
27412 "\n"
27413 msgstr ""
27414
27415 # type: textblock
27416 #: ../tools/virt-resize.pl:305
27417 msgid ""
27418 "You can increase the size of any partition.  Virt-resize will expand the "
27419 "direct content of the partition if it knows how (see C<--expand> below)."
27420 msgstr ""
27421
27422 # type: textblock
27423 #: ../tools/virt-resize.pl:309
27424 msgid ""
27425 "You can only I<decrease> the size of partitions that contain filesystems or "
27426 "PVs which have already been shrunk.  Virt-resize will check this has been "
27427 "done before proceeding, or else will print an error (see also C<--resize-"
27428 "force>)."
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
27433 #: ../tools/virt-resize.pl:423
27434 msgid "You can give this option multiple times."
27435 msgstr ""
27436
27437 # type: =item
27438 #: ../tools/virt-resize.pl:320
27439 msgid "B<--resize-force part=size>"
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-resize.pl:322
27444 msgid ""
27445 "This is the same as C<--resize> except that it will let you decrease the "
27446 "size of any partition.  Generally this means you will lose any data which "
27447 "was at the end of the partition you shrink, but you may not care about that "
27448 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27449 "as a swap partition)."
27450 msgstr ""
27451
27452 # type: textblock
27453 #: ../tools/virt-resize.pl:328
27454 msgid "See also the C<--ignore> option."
27455 msgstr ""
27456
27457 # type: =item
27458 #: ../tools/virt-resize.pl:334
27459 msgid "B<--expand part>"
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-resize.pl:336
27464 msgid ""
27465 "Expand the named partition so it uses up all extra space (space left over "
27466 "after any other resize changes that you request have been done)."
27467 msgstr ""
27468
27469 # type: textblock
27470 #: ../tools/virt-resize.pl:339
27471 msgid ""
27472 "If virt-resize knows how, it will expand the direct content of the "
27473 "partition.  For example, if the partition is an LVM PV, it will expand the "
27474 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27475 "content it doesn't know about alone."
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-resize.pl:344
27480 msgid "Currently virt-resize can resize:"
27481 msgstr ""
27482
27483 # type: textblock
27484 #: ../tools/virt-resize.pl:350
27485 msgid ""
27486 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27487 "partition."
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-resize.pl:355
27492 msgid ""
27493 "NTFS filesystems contained directly in a partition, if libguestfs was "
27494 "compiled with support for NTFS."
27495 msgstr ""
27496
27497 # type: textblock
27498 #: ../tools/virt-resize.pl:358
27499 msgid ""
27500 "The filesystem must have been shut down consistently last time it was used.  "
27501 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27502 "consistency check, so at the first boot after resizing Windows will check "
27503 "the disk."
27504 msgstr ""
27505
27506 # type: textblock
27507 #: ../tools/virt-resize.pl:365
27508 msgid ""
27509 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
27510 "inside the PV.  The user will have to resize LVs as desired."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
27515 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27516 msgstr ""
27517
27518 # type: =item
27519 #: ../tools/virt-resize.pl:377
27520 msgid "B<--shrink part>"
27521 msgstr ""
27522
27523 # type: textblock
27524 #: ../tools/virt-resize.pl:379
27525 msgid ""
27526 "Shrink the named partition until the overall disk image fits in the "
27527 "destination.  The named partition B<must> contain a filesystem or PV which "
27528 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27529 "online tools).  Virt-resize will check this and give an error if it has not "
27530 "been done."
27531 msgstr ""
27532
27533 # type: textblock
27534 #: ../tools/virt-resize.pl:385
27535 msgid ""
27536 "The amount by which the overall disk must be shrunk (after carrying out all "
27537 "other operations requested by the user) is called the \"deficit\".  For "
27538 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27539 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27540 "would give an error unless the user specified a partition to shrink and that "
27541 "partition had more than a gigabyte of free space."
27542 msgstr ""
27543
27544 # type: =item
27545 #: ../tools/virt-resize.pl:399
27546 msgid "B<--ignore part>"
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-resize.pl:401
27551 msgid ""
27552 "Ignore the named partition.  Effectively this means the partition is "
27553 "allocated on the destination disk, but the content is not copied across from "
27554 "the source disk.  The content of the partition will be blank (all zero "
27555 "bytes)."
27556 msgstr ""
27557
27558 # type: =item
27559 #: ../tools/virt-resize.pl:412
27560 msgid "B<--delete part>"
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-resize.pl:414
27565 msgid ""
27566 "Delete the named partition.  It would be more accurate to describe this as "
27567 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27568 "the original disk image is left intact."
27569 msgstr ""
27570
27571 # type: textblock
27572 #: ../tools/virt-resize.pl:418
27573 msgid ""
27574 "Note that when you delete a partition, then anything contained in the "
27575 "partition is also deleted.  Furthermore, this causes any partitions that "
27576 "come after to be I<renumbered>, which can easily make your guest unbootable."
27577 msgstr ""
27578
27579 # type: =item
27580 #: ../tools/virt-resize.pl:429
27581 msgid "B<--LV-expand logvol>"
27582 msgstr ""
27583
27584 # type: textblock
27585 #: ../tools/virt-resize.pl:431
27586 msgid ""
27587 "This takes the logical volume and, as a final step, expands it to fill all "
27588 "the space available in its volume group.  A typical usage, assuming a Linux "
27589 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27590 "lv_root> would be:"
27591 msgstr ""
27592
27593 # type: verbatim
27594 #: ../tools/virt-resize.pl:436
27595 #, no-wrap
27596 msgid ""
27597 " virt-resize indisk outdisk \\\n"
27598 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27599 "\n"
27600 msgstr ""
27601
27602 # type: textblock
27603 #: ../tools/virt-resize.pl:439
27604 msgid ""
27605 "This would first expand the partition (and PV), and then expand the root "
27606 "device to fill the extra space in the PV."
27607 msgstr ""
27608
27609 # type: textblock
27610 #: ../tools/virt-resize.pl:442
27611 msgid ""
27612 "The contents of the LV are also resized if virt-resize knows how to do "
27613 "that.  You can stop virt-resize from trying to expand the content by using "
27614 "the option C<--no-expand-content>."
27615 msgstr ""
27616
27617 # type: textblock
27618 #: ../tools/virt-resize.pl:446
27619 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
27620 msgstr ""
27621
27622 # type: textblock
27623 #: ../tools/virt-resize.pl:449
27624 msgid ""
27625 "You can give this option multiple times, I<but> it doesn't make sense to do "
27626 "this unless the logical volumes you specify are all in different volume "
27627 "groups."
27628 msgstr ""
27629
27630 # type: =item
27631 #: ../tools/virt-resize.pl:457
27632 msgid "B<--no-copy-boot-loader>"
27633 msgstr ""
27634
27635 # type: textblock
27636 #: ../tools/virt-resize.pl:459
27637 msgid ""
27638 "By default, virt-resize copies over some sectors at the start of the disk "
27639 "(up to the beginning of the first partition).  Commonly these sectors "
27640 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27641 "in order for the guest to boot correctly."
27642 msgstr ""
27643
27644 # type: textblock
27645 #: ../tools/virt-resize.pl:464
27646 msgid ""
27647 "If you specify this flag, then this initial copy is not done.  You may need "
27648 "to reinstall the boot loader in this case."
27649 msgstr ""
27650
27651 # type: =item
27652 #: ../tools/virt-resize.pl:472
27653 msgid "B<--no-extra-partition>"
27654 msgstr ""
27655
27656 # type: textblock
27657 #: ../tools/virt-resize.pl:474
27658 msgid ""
27659 "By default, virt-resize creates an extra partition if there is any extra, "
27660 "unused space after all resizing has happened.  Use this option to prevent "
27661 "the extra partition from being created.  If you do this then the extra space "
27662 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27663 "tool in the guest."
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-resize.pl:480
27668 msgid ""
27669 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27670 "will be created."
27671 msgstr ""
27672
27673 # type: =item
27674 #: ../tools/virt-resize.pl:487
27675 msgid "B<--no-expand-content>"
27676 msgstr ""
27677
27678 # type: textblock
27679 #: ../tools/virt-resize.pl:489
27680 msgid ""
27681 "By default, virt-resize will try to expand the direct contents of "
27682 "partitions, if it knows how (see C<--expand> option above)."
27683 msgstr ""
27684
27685 # type: textblock
27686 #: ../tools/virt-resize.pl:492
27687 msgid ""
27688 "If you give the C<--no-expand-content> option then virt-resize will not "
27689 "attempt this."
27690 msgstr ""
27691
27692 # type: =item
27693 #: ../tools/virt-resize.pl:499
27694 msgid "B<-d> | B<--debug>"
27695 msgstr ""
27696
27697 # type: =item
27698 #: ../tools/virt-resize.pl:507
27699 msgid "B<-n> | B<--dryrun>"
27700 msgstr ""
27701
27702 # type: textblock
27703 #: ../tools/virt-resize.pl:509
27704 msgid "Print a summary of what would be done, but don't do anything."
27705 msgstr ""
27706
27707 # type: =item
27708 #: ../tools/virt-resize.pl:515
27709 msgid "B<-q> | B<--quiet>"
27710 msgstr ""
27711
27712 # type: textblock
27713 #: ../tools/virt-resize.pl:517
27714 msgid "Don't print the summary."
27715 msgstr ""
27716
27717 # type: textblock
27718 #: ../tools/virt-resize.pl:525
27719 msgid ""
27720 "Specify the format of the input disk image.  If this flag is not given then "
27721 "it is auto-detected from the image itself."
27722 msgstr ""
27723
27724 # type: textblock
27725 #: ../tools/virt-resize.pl:531
27726 msgid ""
27727 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27728 "AND NON-SPARSE RAW FORMATS>."
27729 msgstr ""
27730
27731 # type: =item
27732 #: ../tools/virt-resize.pl:538
27733 msgid "B<--output-format> raw"
27734 msgstr ""
27735
27736 # type: textblock
27737 #: ../tools/virt-resize.pl:540
27738 msgid ""
27739 "Specify the format of the output disk image.  If this flag is not given then "
27740 "it is auto-detected from the image itself."
27741 msgstr ""
27742
27743 # type: textblock
27744 #: ../tools/virt-resize.pl:546
27745 msgid ""
27746 "Note that you still need to create the output disk with the right format.  "
27747 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27748 msgstr ""
27749
27750 # type: =head1
27751 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27752 msgid "NOTES"
27753 msgstr ""
27754
27755 # type: =head2
27756 #: ../tools/virt-resize.pl:1424
27757 msgid "\"Partition 1 does not end on cylinder boundary.\""
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-resize.pl:1426
27762 msgid ""
27763 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27764 "means the partitions will not be aligned to the ancient CHS geometry.  "
27765 "However CHS geometry is meaningless for disks manufactured since the early "
27766 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27767 "cylinders is not required by any modern operating system."
27768 msgstr ""
27769
27770 # type: =head2
27771 #: ../tools/virt-resize.pl:1433
27772 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27773 msgstr ""
27774
27775 # type: textblock
27776 #: ../tools/virt-resize.pl:1435
27777 msgid ""
27778 "In Windows Vista and later versions, Microsoft switched to using a separate "
27779 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27780 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27781 "the boot partition.  Doing so seems to break the guest completely.  However "
27782 "expanding the second partition (ie. C: drive) should work."
27783 msgstr ""
27784
27785 # type: textblock
27786 #: ../tools/virt-resize.pl:1442
27787 msgid ""
27788 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27789 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27790 "it find errors) is nothing to worry about."
27791 msgstr ""
27792
27793 # type: =head2
27794 #: ../tools/virt-resize.pl:1446
27795 msgid "GUEST BOOT STUCK AT \"GRUB\""
27796 msgstr ""
27797
27798 # type: textblock
27799 #: ../tools/virt-resize.pl:1448
27800 msgid ""
27801 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27802 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27803 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27804 "although we think is to do with partition alignment."
27805 msgstr ""
27806
27807 # type: verbatim
27808 #: ../tools/virt-resize.pl:1453
27809 #, no-wrap
27810 msgid ""
27811 " guestfish -i -a newdisk\n"
27812 " ><fs> cat /boot/grub/device.map\n"
27813 " # check the contents of this file are sensible or\n"
27814 " # edit the file if necessary\n"
27815 " ><fs> grub-install / /dev/vda\n"
27816 " ><fs> exit\n"
27817 "\n"
27818 msgstr ""
27819
27820 # type: textblock
27821 #: ../tools/virt-resize.pl:1460
27822 msgid ""
27823 "For more flexible guest reconfiguration, including if you need to specify "
27824 "other parameters to grub-install, use L<virt-rescue(1)>."
27825 msgstr ""
27826
27827 # type: =head1
27828 #: ../tools/virt-resize.pl:1463
27829 msgid "ALTERNATIVE TOOLS"
27830 msgstr ""
27831
27832 # type: textblock
27833 #: ../tools/virt-resize.pl:1465
27834 msgid ""
27835 "There are several proprietary tools for resizing partitions.  We won't "
27836 "mention any here."
27837 msgstr ""
27838
27839 # type: textblock
27840 #: ../tools/virt-resize.pl:1468
27841 msgid ""
27842 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27843 "operations on disk images.  They can resize and move partitions, but I don't "
27844 "think they can do anything with the contents, and they certainly don't "
27845 "understand LVM."
27846 msgstr ""
27847
27848 # type: textblock
27849 #: ../tools/virt-resize.pl:1473
27850 msgid ""
27851 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27852 "but at a much lower level.  You will probably end up hand-calculating sector "
27853 "offsets, which is something that virt-resize was designed to avoid.  If you "
27854 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27855 "C<--debug> flag."
27856 msgstr ""
27857
27858 # type: textblock
27859 #: ../tools/virt-resize.pl:1488
27860 msgid ""
27861 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27862 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27863 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27864 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27865 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27866 msgstr ""
27867
27868 # type: textblock
27869 #: ../tools/virt-list-filesystems.pl:32
27870 msgid ""
27871 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27872 msgstr ""
27873
27874 # type: verbatim
27875 #: ../tools/virt-list-filesystems.pl:36
27876 #, no-wrap
27877 msgid ""
27878 " virt-list-filesystems [--options] domname\n"
27879 "\n"
27880 msgstr ""
27881
27882 # type: verbatim
27883 #: ../tools/virt-list-filesystems.pl:38
27884 #, no-wrap
27885 msgid ""
27886 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27887 "\n"
27888 msgstr ""
27889
27890 # type: textblock
27891 #: ../tools/virt-list-filesystems.pl:42
27892 msgid ""
27893 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27894 "are contained in a virtual machine or disk image."
27895 msgstr ""
27896
27897 # type: textblock
27898 #: ../tools/virt-list-filesystems.pl:46
27899 msgid ""
27900 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27901 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27902 "> tool."
27903 msgstr ""
27904
27905 # type: textblock
27906 #: ../tools/virt-list-filesystems.pl:105
27907 msgid ""
27908 "With this option, C<virt-list-filesystems> displays the type of each "
27909 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27910 msgstr ""
27911
27912 # type: =item
27913 #: ../tools/virt-list-filesystems.pl:112
27914 msgid "B<-a> | B<--all>"
27915 msgstr ""
27916
27917 # type: textblock
27918 #: ../tools/virt-list-filesystems.pl:114
27919 msgid ""
27920 "Normally we only show mountable filesystems.  If this option is given then "
27921 "swap devices are shown too."
27922 msgstr ""
27923
27924 # type: textblock
27925 #: ../tools/virt-list-filesystems.pl:188
27926 msgid ""
27927 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
27928 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
27929 ">, L<http://libguestfs.org/>."
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-tar.pl:33
27934 msgid "virt-tar - Extract or upload files to a virtual machine"
27935 msgstr ""
27936
27937 # type: verbatim
27938 #: ../tools/virt-tar.pl:37
27939 #, no-wrap
27940 msgid ""
27941 " virt-tar [--options] -x domname directory tarball\n"
27942 "\n"
27943 msgstr ""
27944
27945 # type: verbatim
27946 #: ../tools/virt-tar.pl:39
27947 #, no-wrap
27948 msgid ""
27949 " virt-tar [--options] -u domname tarball directory\n"
27950 "\n"
27951 msgstr ""
27952
27953 # type: verbatim
27954 #: ../tools/virt-tar.pl:41
27955 #, no-wrap
27956 msgid ""
27957 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27958 "\n"
27959 msgstr ""
27960
27961 # type: verbatim
27962 #: ../tools/virt-tar.pl:43
27963 #, no-wrap
27964 msgid ""
27965 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27966 "\n"
27967 msgstr ""
27968
27969 # type: textblock
27970 #: ../tools/virt-tar.pl:47
27971 msgid "Download C</home> from the VM into a local tarball:"
27972 msgstr ""
27973
27974 # type: verbatim
27975 #: ../tools/virt-tar.pl:49
27976 #, no-wrap
27977 msgid ""
27978 " virt-tar -x domname /home home.tar\n"
27979 "\n"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #: ../tools/virt-tar.pl:51
27984 #, no-wrap
27985 msgid ""
27986 " virt-tar -zx domname /home home.tar.gz\n"
27987 "\n"
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-tar.pl:53
27992 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27993 msgstr ""
27994
27995 # type: verbatim
27996 #: ../tools/virt-tar.pl:55
27997 #, no-wrap
27998 msgid ""
27999 " virt-tar -u domname uploadstuff.tar /tmp\n"
28000 "\n"
28001 msgstr ""
28002
28003 # type: verbatim
28004 #: ../tools/virt-tar.pl:57
28005 #, no-wrap
28006 msgid ""
28007 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28008 "\n"
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-tar.pl:61
28013 msgid ""
28014 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28015 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28016 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-tar.pl:66
28021 msgid ""
28022 "You can use C<-x> (extract) on live virtual machines, but you might get "
28023 "inconsistent results or errors if there is filesystem activity inside the "
28024 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28025 "work, but the only way to guarantee consistent results is if the virtual "
28026 "machine is shut down."
28027 msgstr ""
28028
28029 # type: textblock
28030 #: ../tools/virt-tar.pl:74
28031 msgid ""
28032 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28033 "parts of a guest filesystem.  There are many possibilities: making backups, "
28034 "uploading data files, snooping on guest activity, fixing or customizing "
28035 "guests, etc."
28036 msgstr ""
28037
28038 # type: textblock
28039 #: ../tools/virt-tar.pl:79
28040 msgid ""
28041 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28042 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28043 "should look at the L<guestfish(1)> tool."
28044 msgstr ""
28045
28046 # type: textblock
28047 #: ../tools/virt-tar.pl:83
28048 msgid ""
28049 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28050 "its contents (recursively) from the virtual machine into a local tarball.  "
28051 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28052 "virtual machine.  You cannot use these two options together."
28053 msgstr ""
28054
28055 # type: textblock
28056 #: ../tools/virt-tar.pl:89
28057 msgid ""
28058 "In addition, you may need to use the C<-z> (gZip) option to enable "
28059 "compression.  When uploading, you have to specify C<-z> if the upload file "
28060 "is compressed because virt-tar won't detect this on its own."
28061 msgstr ""
28062
28063 # type: textblock
28064 #: ../tools/virt-tar.pl:93
28065 msgid ""
28066 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28067 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28068 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28069 "the L<libguestfs(3)> API)."
28070 msgstr ""
28071
28072 # type: =item
28073 #: ../tools/virt-tar.pl:151
28074 msgid "B<-x> | B<--extract> | B<--download>"
28075 msgstr ""
28076
28077 # type: =item
28078 #: ../tools/virt-tar.pl:153
28079 msgid "B<-u> | B<--upload>"
28080 msgstr ""
28081
28082 # type: textblock
28083 #: ../tools/virt-tar.pl:155
28084 msgid ""
28085 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28086 "local tarball."
28087 msgstr ""
28088
28089 # type: textblock
28090 #: ../tools/virt-tar.pl:158
28091 msgid ""
28092 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28093 "Please read the L</WARNING> section above before using this option."
28094 msgstr ""
28095
28096 # type: textblock
28097 #: ../tools/virt-tar.pl:162
28098 msgid "You must specify exactly one of these options."
28099 msgstr ""
28100
28101 # type: =item
28102 #: ../tools/virt-tar.pl:168
28103 msgid "B<-z> | B<--gzip>"
28104 msgstr ""
28105
28106 # type: textblock
28107 #: ../tools/virt-tar.pl:170
28108 msgid "Specify that the input or output tarball is gzip-compressed."
28109 msgstr ""
28110
28111 # type: textblock
28112 #: ../tools/virt-tar.pl:283
28113 msgid ""
28114 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28115 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28116 "org/>."
28117 msgstr ""
28118
28119 # type: textblock
28120 #: ../tools/virt-rescue.pl:33
28121 msgid "virt-rescue - Run a rescue shell on a virtual machine"
28122 msgstr ""
28123
28124 # type: verbatim
28125 #: ../tools/virt-rescue.pl:37
28126 #, no-wrap
28127 msgid ""
28128 " virt-rescue [--options] domname\n"
28129 "\n"
28130 msgstr ""
28131
28132 # type: verbatim
28133 #: ../tools/virt-rescue.pl:39
28134 #, no-wrap
28135 msgid ""
28136 " virt-rescue [--options] disk.img [disk.img ...]\n"
28137 "\n"
28138 msgstr ""
28139
28140 # type: textblock
28141 #: ../tools/virt-rescue.pl:43
28142 msgid ""
28143 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
28144 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
28145 "you from doing this, but doesn't catch all cases."
28146 msgstr ""
28147
28148 # type: textblock
28149 #: ../tools/virt-rescue.pl:47
28150 msgid ""
28151 "However if you use the I<--ro> (read only) option, then you can attach a "
28152 "shell to a live virtual machine.  The results might be strange or "
28153 "inconsistent at times but you won't get disk corruption."
28154 msgstr ""
28155
28156 # type: textblock
28157 #: ../tools/virt-rescue.pl:53
28158 msgid ""
28159 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
28160 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
28161 "recovery tools which you can use to examine or rescue a virtual machine or "
28162 "disk image."
28163 msgstr ""
28164
28165 # type: textblock
28166 #: ../tools/virt-rescue.pl:58
28167 msgid ""
28168 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
28169 "on disk image(s):"
28170 msgstr ""
28171
28172 # type: verbatim
28173 #: ../tools/virt-rescue.pl:61
28174 #, no-wrap
28175 msgid ""
28176 " virt-rescue GuestName\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: verbatim
28181 #: ../tools/virt-rescue.pl:63
28182 #, no-wrap
28183 msgid ""
28184 " virt-rescue --ro /path/to/disk.img\n"
28185 "\n"
28186 msgstr ""
28187
28188 # type: verbatim
28189 #: ../tools/virt-rescue.pl:65
28190 #, no-wrap
28191 msgid ""
28192 " virt-rescue /dev/sdc\n"
28193 "\n"
28194 msgstr ""
28195
28196 # type: textblock
28197 #: ../tools/virt-rescue.pl:67
28198 msgid "For live VMs you I<must> use the --ro option."
28199 msgstr ""
28200
28201 # type: textblock
28202 #: ../tools/virt-rescue.pl:69
28203 msgid ""
28204 "When you run virt-rescue on a virtual machine or disk image, you are placed "
28205 "in an interactive bash shell where you can use many ordinary Linux "
28206 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
28207 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
28208 "is an empty directory called C</sysroot> where you can mount filesystems."
28209 msgstr ""
28210
28211 # type: textblock
28212 #: ../tools/virt-rescue.pl:76
28213 msgid ""
28214 "In the example below, we list logical volumes, then choose one to mount "
28215 "under C</sysroot>:"
28216 msgstr ""
28217
28218 # type: verbatim
28219 #: ../tools/virt-rescue.pl:79
28220 #, no-wrap
28221 msgid ""
28222 " ><rescue> lvs\n"
28223 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
28224 " lv_root vg_f11x64 -wi-a-   8.83G\n"
28225 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
28226 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
28227 " ><rescue> ls /sysroot\n"
28228 "\n"
28229 msgstr ""
28230
28231 # type: textblock
28232 #: ../tools/virt-rescue.pl:86
28233 msgid ""
28234 "If you don't know what filesystems are available on the virtual machine then "
28235 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
28236 msgstr ""
28237
28238 # type: textblock
28239 #: ../tools/virt-rescue.pl:92
28240 msgid ""
28241 "Virt-rescue can be used on I<any> disk image file or device, not just a "
28242 "virtual machine.  For example you can use it on a blank file if you want to "
28243 "partition that file (although we would recommend using L<guestfish(1)> "
28244 "instead as it is more suitable for this purpose).  You can even use virt-"
28245 "rescue on things like SD cards."
28246 msgstr ""
28247
28248 # type: textblock
28249 #: ../tools/virt-rescue.pl:98
28250 msgid ""
28251 "This tool is just designed for quick interactive hacking on a virtual "
28252 "machine.  For more structured access to a virtual machine disk image, you "
28253 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
28254 "make scripted changes to guests, use L<guestfish(1)>."
28255 msgstr ""
28256
28257 # type: =item
28258 #: ../tools/virt-rescue.pl:127
28259 msgid "B<--append kernelopts>"
28260 msgstr ""
28261
28262 # type: textblock
28263 #: ../tools/virt-rescue.pl:129
28264 msgid "Pass additional options to the rescue kernel."
28265 msgstr ""
28266
28267 # type: =item
28268 #: ../tools/virt-rescue.pl:164
28269 msgid "B<--memsize MB> | B<-m MB>"
28270 msgstr ""
28271
28272 # type: textblock
28273 #: ../tools/virt-rescue.pl:166
28274 msgid ""
28275 "Change the amount of memory allocated to the rescue system.  The default is "
28276 "set by libguestfs and is small but adequate for running system tools.  The "
28277 "occasional program might need more memory.  The parameter is specified in "
28278 "megabytes."
28279 msgstr ""
28280
28281 # type: =item
28282 #: ../tools/virt-rescue.pl:175
28283 msgid "B<--network MB>"
28284 msgstr ""
28285
28286 # type: textblock
28287 #: ../tools/virt-rescue.pl:177
28288 msgid "Enable QEMU user networking in the guest."
28289 msgstr ""
28290
28291 # type: =item
28292 #: ../tools/virt-rescue.pl:183
28293 msgid "B<--ro> | B<-r>"
28294 msgstr ""
28295
28296 # type: textblock
28297 #: ../tools/virt-rescue.pl:185
28298 msgid "Open the image read-only."
28299 msgstr ""
28300
28301 # type: textblock
28302 #: ../tools/virt-rescue.pl:197
28303 msgid ""
28304 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
28305 "SELINUX> before using this option."
28306 msgstr ""
28307
28308 # type: textblock
28309 #: ../tools/virt-rescue.pl:257
28310 msgid ""
28311 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
28312 "ENVIRONMENT VARIABLES> for the complete list."
28313 msgstr ""
28314
28315 # type: textblock
28316 #: ../tools/virt-rescue.pl:269
28317 msgid ""
28318 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28319 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28320 msgstr ""
28321
28322 # type: textblock
28323 #: ../tools/virt-make-fs.pl:37
28324 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28325 msgstr ""
28326
28327 # type: verbatim
28328 #: ../tools/virt-make-fs.pl:41
28329 #, no-wrap
28330 msgid ""
28331 " virt-make-fs [--options] input.tar output.img\n"
28332 "\n"
28333 msgstr ""
28334
28335 # type: verbatim
28336 #: ../tools/virt-make-fs.pl:43
28337 #, no-wrap
28338 msgid ""
28339 " virt-make-fs [--options] input.tar.gz output.img\n"
28340 "\n"
28341 msgstr ""
28342
28343 # type: verbatim
28344 #: ../tools/virt-make-fs.pl:45
28345 #, no-wrap
28346 msgid ""
28347 " virt-make-fs [--options] directory output.img\n"
28348 "\n"
28349 msgstr ""
28350
28351 # type: textblock
28352 #: ../tools/virt-make-fs.pl:49
28353 msgid ""
28354 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28355 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28356 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28357 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28358 "you want to attach these filesystems to existing virtual machines (eg. to "
28359 "import large amounts of read-only data to a VM)."
28360 msgstr ""
28361
28362 # type: textblock
28363 #: ../tools/virt-make-fs.pl:57
28364 msgid "Basic usage is:"
28365 msgstr ""
28366
28367 # type: verbatim
28368 #: ../tools/virt-make-fs.pl:59
28369 #, no-wrap
28370 msgid ""
28371 " virt-make-fs input output\n"
28372 "\n"
28373 msgstr ""
28374
28375 # type: textblock
28376 #: ../tools/virt-make-fs.pl:61
28377 msgid ""
28378 "where C<input> is either a directory containing files that you want to add, "
28379 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28380 "C<output> is a disk image.  The input type is detected automatically.  The "
28381 "output disk image defaults to a raw ext2 image unless you specify extra "
28382 "flags (see L</OPTIONS> below)."
28383 msgstr ""
28384
28385 # type: =head2
28386 #: ../tools/virt-make-fs.pl:67
28387 msgid "EXTRA SPACE"
28388 msgstr ""
28389
28390 # type: textblock
28391 #: ../tools/virt-make-fs.pl:69
28392 msgid ""
28393 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28394 "the files that it contains, but might have extra space.  Depending on how "
28395 "you are going to use the output, you might think this extra space is wasted "
28396 "and want to minimize it, or you might want to leave space so that more files "
28397 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28398 "but you can use the C<--size> flag to leave space in the filesystem if you "
28399 "want it."
28400 msgstr ""
28401
28402 # type: textblock
28403 #: ../tools/virt-make-fs.pl:77
28404 msgid ""
28405 "An alternative way to leave extra space but not make the output image any "
28406 "bigger is to use an alternative disk image format (instead of the default "
28407 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28408 "image format (check your hypervisor supports this before using it).  This "
28409 "allows you to choose a large C<--size> but the extra space won't actually be "
28410 "allocated in the image until you try to store something in it."
28411 msgstr ""
28412
28413 # type: textblock
28414 #: ../tools/virt-make-fs.pl:85
28415 msgid ""
28416 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28417 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28418 "resize to build another image from scratch."
28419 msgstr ""
28420
28421 # type: =head3
28422 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28423 #: ../tools/virt-make-fs.pl:142
28424 msgid "EXAMPLE"
28425 msgstr ""
28426
28427 # type: verbatim
28428 #: ../tools/virt-make-fs.pl:91
28429 #, no-wrap
28430 msgid ""
28431 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28432 "\n"
28433 msgstr ""
28434
28435 # type: =head2
28436 #: ../tools/virt-make-fs.pl:93
28437 msgid "FILESYSTEM TYPE"
28438 msgstr ""
28439
28440 # type: textblock
28441 #: ../tools/virt-make-fs.pl:95
28442 msgid ""
28443 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28444 "libguestfs supports can be used (but I<not> read-only formats like "
28445 "ISO9660).  Here are some of the more common choices:"
28446 msgstr ""
28447
28448 # type: =item
28449 #: ../tools/virt-make-fs.pl:101
28450 msgid "I<ext3>"
28451 msgstr ""
28452
28453 # type: textblock
28454 #: ../tools/virt-make-fs.pl:103
28455 msgid ""
28456 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28457 "you are not going to use the filesystem in a way that requires the journal, "
28458 "then this is just wasted overhead."
28459 msgstr ""
28460
28461 # type: =item
28462 #: ../tools/virt-make-fs.pl:107
28463 msgid "I<ntfs> or I<vfat>"
28464 msgstr ""
28465
28466 # type: textblock
28467 #: ../tools/virt-make-fs.pl:109
28468 msgid "Useful if exporting data to a Windows guest."
28469 msgstr ""
28470
28471 # type: textblock
28472 #: ../tools/virt-make-fs.pl:111
28473 msgid ""
28474 "I<Note for vfat>: The tar archive or local directory must only contain files "
28475 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28476 "program running within libguestfs is unable to change the ownership of non-"
28477 "root files, since vfat itself does not support this."
28478 msgstr ""
28479
28480 # type: =item
28481 #: ../tools/virt-make-fs.pl:116
28482 msgid "I<minix>"
28483 msgstr ""
28484
28485 # type: textblock
28486 #: ../tools/virt-make-fs.pl:118
28487 msgid ""
28488 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28489 "total filesystem size."
28490 msgstr ""
28491
28492 # type: verbatim
28493 #: ../tools/virt-make-fs.pl:125
28494 #, no-wrap
28495 msgid ""
28496 " virt-make-fs --type=minix input minixfs.img\n"
28497 "\n"
28498 msgstr ""
28499
28500 # type: =head2
28501 #: ../tools/virt-make-fs.pl:127
28502 msgid "TO PARTITION OR NOT TO PARTITION"
28503 msgstr ""
28504
28505 # type: textblock
28506 #: ../tools/virt-make-fs.pl:129
28507 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28508 msgstr ""
28509
28510 # type: textblock
28511 #: ../tools/virt-make-fs.pl:131
28512 msgid ""
28513 "Adding a partition can make the disk image more compatible with certain "
28514 "virtualized operating systems which don't expect to see a filesystem "
28515 "directly located on a block device (Linux doesn't care and will happily "
28516 "handle both types)."
28517 msgstr ""
28518
28519 # type: textblock
28520 #: ../tools/virt-make-fs.pl:136
28521 msgid ""
28522 "On the other hand, if you have a partition table then the output image is no "
28523 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28524 "directly on a partitioned disk image.  (However libguestfs tools such as "
28525 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-make-fs.pl:144
28530 msgid "Add an MBR partition:"
28531 msgstr ""
28532
28533 # type: verbatim
28534 #: ../tools/virt-make-fs.pl:146
28535 #, no-wrap
28536 msgid ""
28537 " virt-make-fs --partition -- input disk.img\n"
28538 "\n"
28539 msgstr ""
28540
28541 # type: textblock
28542 #: ../tools/virt-make-fs.pl:148
28543 msgid ""
28544 "If the output disk image could be terabyte-sized or larger, it's better to "
28545 "use an EFI/GPT-compatible partition table:"
28546 msgstr ""
28547
28548 # type: verbatim
28549 #: ../tools/virt-make-fs.pl:151
28550 #, no-wrap
28551 msgid ""
28552 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28553 "\n"
28554 msgstr ""
28555
28556 # type: textblock
28557 #: ../tools/virt-make-fs.pl:179
28558 msgid "Enable debugging information."
28559 msgstr ""
28560
28561 # type: =item
28562 #: ../tools/virt-make-fs.pl:185
28563 msgid "B<--size=E<lt>NE<gt>>"
28564 msgstr ""
28565
28566 # type: =item
28567 #: ../tools/virt-make-fs.pl:187
28568 msgid "B<--size=+E<lt>NE<gt>>"
28569 msgstr ""
28570
28571 # type: =item
28572 #: ../tools/virt-make-fs.pl:189
28573 msgid "B<-s E<lt>NE<gt>>"
28574 msgstr ""
28575
28576 # type: =item
28577 #: ../tools/virt-make-fs.pl:191
28578 msgid "B<-s +E<lt>NE<gt>>"
28579 msgstr ""
28580
28581 # type: textblock
28582 #: ../tools/virt-make-fs.pl:193
28583 msgid ""
28584 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28585 msgstr ""
28586
28587 # type: textblock
28588 #: ../tools/virt-make-fs.pl:196
28589 msgid ""
28590 "If this option is I<not> given, then the output image will be just large "
28591 "enough to contain all the files, with not much wasted space."
28592 msgstr ""
28593
28594 # type: textblock
28595 #: ../tools/virt-make-fs.pl:199
28596 msgid ""
28597 "To choose a fixed size output disk, specify an absolute number followed by b/"
28598 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28599 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28600 "files, else you will get an error."
28601 msgstr ""
28602
28603 # type: textblock
28604 #: ../tools/virt-make-fs.pl:204
28605 msgid ""
28606 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28607 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28608 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28609 "the input files, and (approximately) an extra 200 MB free space."
28610 msgstr ""
28611
28612 # type: textblock
28613 #: ../tools/virt-make-fs.pl:210
28614 msgid ""
28615 "Note that virt-make-fs estimates free space, and therefore will not produce "
28616 "filesystems containing precisely the free space requested.  (It is much more "
28617 "expensive and time-consuming to produce a filesystem which has precisely the "
28618 "desired free space)."
28619 msgstr ""
28620
28621 # type: =item
28622 #: ../tools/virt-make-fs.pl:219
28623 msgid "B<--format=E<lt>fmtE<gt>>"
28624 msgstr ""
28625
28626 # type: =item
28627 #: ../tools/virt-make-fs.pl:221
28628 msgid "B<-F E<lt>fmtE<gt>>"
28629 msgstr ""
28630
28631 # type: textblock
28632 #: ../tools/virt-make-fs.pl:223
28633 msgid "Choose the output disk image format."
28634 msgstr ""
28635
28636 # type: textblock
28637 #: ../tools/virt-make-fs.pl:225
28638 msgid "The default is C<raw> (raw disk image)."
28639 msgstr ""
28640
28641 # type: textblock
28642 #: ../tools/virt-make-fs.pl:227
28643 msgid ""
28644 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28645 "that would really make sense here is C<qcow2>."
28646 msgstr ""
28647
28648 # type: =item
28649 #: ../tools/virt-make-fs.pl:234
28650 msgid "B<--type=E<lt>fsE<gt>>"
28651 msgstr ""
28652
28653 # type: =item
28654 #: ../tools/virt-make-fs.pl:236
28655 msgid "B<-t E<lt>fsE<gt>>"
28656 msgstr ""
28657
28658 # type: textblock
28659 #: ../tools/virt-make-fs.pl:238
28660 msgid "Choose the output filesystem type."
28661 msgstr ""
28662
28663 # type: textblock
28664 #: ../tools/virt-make-fs.pl:240
28665 msgid "The default is C<ext2>."
28666 msgstr ""
28667
28668 # type: textblock
28669 #: ../tools/virt-make-fs.pl:242
28670 msgid ""
28671 "Any filesystem which is supported read-write by libguestfs can be used here."
28672 msgstr ""
28673
28674 # type: =item
28675 #: ../tools/virt-make-fs.pl:249
28676 msgid "B<--partition>"
28677 msgstr ""
28678
28679 # type: =item
28680 #: ../tools/virt-make-fs.pl:251
28681 msgid "B<--partition=E<lt>parttypeE<gt>>"
28682 msgstr ""
28683
28684 # type: textblock
28685 #: ../tools/virt-make-fs.pl:253
28686 msgid ""
28687 "If specified, this flag adds an MBR partition table to the output disk image."
28688 msgstr ""
28689
28690 # type: textblock
28691 #: ../tools/virt-make-fs.pl:256
28692 msgid ""
28693 "You can change the partition table type, eg. C<--partition=gpt> for large "
28694 "disks."
28695 msgstr ""
28696
28697 # type: textblock
28698 #: ../tools/virt-make-fs.pl:259
28699 msgid ""
28700 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28701 "might consider the next parameter to be the partition type.  For example:"
28702 msgstr ""
28703
28704 # type: verbatim
28705 #: ../tools/virt-make-fs.pl:263
28706 #, no-wrap
28707 msgid ""
28708 " virt-make-fs --partition input.tar ...\n"
28709 "\n"
28710 msgstr ""
28711
28712 # type: textblock
28713 #: ../tools/virt-make-fs.pl:265
28714 msgid ""
28715 "would cause virt-make-fs to think you wanted to use a partition type of "
28716 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28717 "dash) between options and the input file argument:"
28718 msgstr ""
28719
28720 # type: verbatim
28721 #: ../tools/virt-make-fs.pl:269
28722 #, no-wrap
28723 msgid ""
28724 " virt-make-fs --partition -- input.tar ...\n"
28725 "\n"
28726 msgstr ""
28727
28728 # type: textblock
28729 #: ../tools/virt-make-fs.pl:536
28730 msgid ""
28731 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28732 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28733 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28734 msgstr ""
28735
28736 # type: verbatim
28737 #: ../tools/virt-make-fs.pl:553
28738 #, no-wrap
28739 msgid ""
28740 " export LIBGUESTFS_DEBUG=1\n"
28741 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28742 "\n"
28743 msgstr ""
28744
28745 # type: textblock
28746 #: ../tools/virt-make-fs.pl:556
28747 msgid ""
28748 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28749 "redhat.com/>"
28750 msgstr ""
28751
28752 # type: textblock
28753 #: ../tools/virt-list-partitions.pl:32
28754 msgid ""
28755 "virt-list-partitions - List partitions in a virtual machine or disk image"
28756 msgstr ""
28757
28758 # type: verbatim
28759 #: ../tools/virt-list-partitions.pl:36
28760 #, no-wrap
28761 msgid ""
28762 " virt-list-partitions [--options] domname\n"
28763 "\n"
28764 msgstr ""
28765
28766 # type: verbatim
28767 #: ../tools/virt-list-partitions.pl:38
28768 #, no-wrap
28769 msgid ""
28770 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28771 "\n"
28772 msgstr ""
28773
28774 # type: textblock
28775 #: ../tools/virt-list-partitions.pl:42
28776 msgid ""
28777 "C<virt-list-partitions> is a command line tool to list the partitions that "
28778 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28779 "first step to using L<virt-resize(1)>."
28780 msgstr ""
28781
28782 # type: textblock
28783 #: ../tools/virt-list-partitions.pl:47
28784 msgid ""
28785 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28786 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28787 "> tool."
28788 msgstr ""
28789
28790 # type: =item
28791 #: ../tools/virt-list-partitions.pl:104
28792 msgid "B<-h> | B<--human-readable>"
28793 msgstr ""
28794
28795 # type: textblock
28796 #: ../tools/virt-list-partitions.pl:106
28797 msgid "Show sizes in human-readable form (eg. \"1G\")."
28798 msgstr ""
28799
28800 # type: textblock
28801 #: ../tools/virt-list-partitions.pl:114
28802 msgid ""
28803 "With this option, C<virt-list-partitions> displays the type and size of each "
28804 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28805 msgstr ""
28806
28807 # type: =item
28808 #: ../tools/virt-list-partitions.pl:121
28809 msgid "B<-t> | B<--total>"
28810 msgstr ""
28811
28812 # type: textblock
28813 #: ../tools/virt-list-partitions.pl:123
28814 msgid ""
28815 "Display the total size of each block device (as a separate row or rows)."
28816 msgstr ""
28817
28818 # type: textblock
28819 #: ../tools/virt-list-partitions.pl:256
28820 msgid ""
28821 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28822 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28823 "libguestfs.org/>."
28824 msgstr ""